Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error from ejbc on ejbPostCreate  RSS feed

 
han jing
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
This is the first time I come here.This is the error I am getting when I try to build my application in weblogic 8.1. I consider that I have both ejbCreate and ejbPostCreate properly defined, but still no clue what is going wrong. Any one have any idea?

ERROR: ERROR: Error from ejbc: In EJB MenuBean, the create method create(java.lang.Integer,java.lang.String,java.lang.String,java.lang.Integer) did not have a corresponding ejbPostCreate method in the bean class.
ERROR: ERROR: ejbc couldn't invoke compiler
public my.pkg.MenuBeanPK ejbCreate(Integer BrandCode,String BrandName,String Classification,Integer UnitPrice)
throws CreateException
{
setBrandcode(BrandCode);
setBrandname(BrandName);
setClassification(Classification);
setUnitprice(UnitPrice);
return null;
}

public void ejbPostCreate(Integer BrandCode,String BrandName,String Classification,int unitprice)
throws CreateException
{}
 
Lin Feng
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
public void ejbPostCreate(Integer BrandCode,String BrandName,String Classification,int unitprice)

The last parameter should be Integer other than int
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!