It's not a secret anymore!
The moose likes BEA/Weblogic and the fly likes Error from ejbc on ejbCreate and ejbPostCreate Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark "Error from ejbc on ejbCreate and ejbPostCreate" Watch "Error from ejbc on ejbCreate and ejbPostCreate" New topic
Author

Error from ejbc on ejbCreate and ejbPostCreate

Srinivas Bitla
Ranch Hand

Joined: Nov 10, 2003
Posts: 31
Hi All,
This is the error I am getting when I try to build my application in weblogic 8.1. I am sure 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: null
java.lang.NullPointerException
ERROR: at weblogic.ejb20.compliance.SessionBeanClassChecker.checkEJBContextIsNotTransient(SessionBeanClassChecker.java:60)
ERROR: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
ERROR: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
ERROR: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
ERROR: at java.lang.reflect.Method.invoke(Method.java:324)
ERROR: at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:278)
ERROR: at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:232)
ERROR: at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:810)
ERROR: at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:766)
ERROR: at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:200)
ERROR: at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
ERROR: at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:397)
ERROR: at weblogic.ejbc20.runBody(ejbc20.java:519)
ERROR: at weblogic.utils.compiler.Tool.run(Tool.java:146)
ERROR: at weblogic.utils.compiler.Tool.run(Tool.java:103)
ERROR: at weblogic.ejbc.main(ejbc.java:29)
ERROR: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
ERROR: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
ERROR: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
ERROR: at java.lang.reflect.Method.invoke(Method.java:324)
ERROR: at weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java:278)
ERROR: at weblogic.ant.taskdefs.j2ee.Ejbc.execute(Ejbc.java:144)
ERROR: at org.apache.tools.ant.Task.perform(Task.java:341)
ERROR: at org.apache.tools.ant.Target.execute(Target.java:309)
ERROR: at org.apache.tools.ant.Target.performTasks(Target.java:336)
ERROR: at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
ERROR: at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
ERROR: at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
ERROR: at org.apache.tools.ant.Task.perform(Task.java:341)
ERROR: at org.apache.tools.ant.Target.execute(Target.java:309)
ERROR: at org.apache.tools.ant.Target.performTasks(Target.java:336)
ERROR: at workshop.workspace.ant.AntSvcImpl$AntThread.executeTarget(AntSvcImpl.java:436)
ERROR: at workshop.workspace.ant.AntSvcImpl$AntThread.run(AntSvcImpl.java:382)
ERROR:
ERROR: ERROR: Error from ejbc: In EJB Facade, the bean class must implement directly or indirectly the javax.ejb.SessionBean interface.

ERROR: ERROR: Error from ejbc: In EJB Facade, the stateless session bean class must define a single ejbCreate method that takes no parameters.

ERROR: ERROR: Error from ejbc: In EJB Facade, the bean class must NOT be abstract.

ERROR: ERROR: Error from ejbc: In EJB Facade, the bean class must have a public constructor that takes no parameters.

ERROR: ERROR: ejbc couldn't invoke compiler
SourceLoader roots: 10
BUILD FAILED
ERROR: ERROR: Error from ejbc: null

My ejbCreate and ejbPostCreate methods...
public String ejbCreate(String companyId, String name, String address) {
setCompanyId(companyId);
setName(name);
setAddress(address);
return null;
}
public void ejbPostCreate(String companyId, String name, String address) {
}

thanks,
Srinivas.
Srinivas Bitla
Ranch Hand

Joined: Nov 10, 2003
Posts: 31
Hi All,
This is incorrect explanation. Sorry for the mistake. I request you to ignore it.
thanks,
Srinivas.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Error from ejbc on ejbCreate and ejbPostCreate
 
Similar Threads
Unable to run ejbc from within eclipse
problem in deploying my stateless session bean application
weblogic 6.1 EJB Entity Bean CMP compilation issue
Weblogic 6.1 - EJB compilation problem
Error from ejbc on stateless session bean