• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Error from ejbc on ejbCreate and ejbPostCreate

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
This is incorrect explanation. Sorry for the mistake. I request you to ignore it.
thanks,
Srinivas.
 
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic