我正在使用 IBM WCS 7 aurorab2b 商店。
我想检索partNumber
用户输入的描述。我得到catentryID
= 14726和-1。我尝试了以下方式,并且在创建实例时得到了langId
javax.ejb.DuplicateKeyException
CatalogEntryDescriptionAccessBean
try{
String catentID = catlogBean.getCatalogEntryReferenceNumber();
long catentryID = Long.parseLong(catentID);
Integer langID = Integer.parseInt(getLanguageId());
System.out.println("catEntryID:"+catentryID);
System.out.println("langID:"+langID+"");
CatalogEntryDescriptionAccessBean catlogDescriptionBean = new CatalogEntryDescriptionAccessBean(catentryID,langID);
if(catlogDescriptionBean == null)
System.out.println("catlogDescriptionBean is null");
else
System.out.println("catlogDescriptionBean is not null");
description = catlogDescriptionBean.getShortDescription();
}
catch(Exception e){
System.out.println("EXCEPTION IN DESCRPTN");
e.printStackTrace();
}