EJB Exception : getEnvironment is deprecated

(Note : this question has been posted in 81beta.server.ejb also)
Hi All,
I am getting EJB Exception while deploying my ear file which contains a simple
stateless session bean (jar module) and a jsp accessing the SSB. (WLS 8.1)
Here is my code snippet that looks up SSB.
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL,"t3://192.168.66.39:7001");
try { Context ctx = new InitialContext(ht);
DemoHome1 d1 = (DemoHome1)ctx.lookup("java:comp/env/ejb1");
Demo1 demo = d1.create();
String str1 = demo.demoSelect();
System.out.println("Result from DemoBean : " + str1); }
Here is my <ejb-ref> element in web.xml
<ejb-ref>
<ejb-ref-name>ejb1</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>ejb.demo.DemoHome1</home>
<remote>ejb.demo.Demo1</remote>
<ejb-link>../Demo.jar#DemoBean</ejb-link>
</ejb-ref>
And the exception is here
<Jul 17, 2003 10:24:45 AM IST> <Error> <HTTP> <BEA-101019> <[ServletContext(id=5950347,name=sampletest,context-path=/sampletest)]
Servlet failed with IOException java.rmi.RemoteException: EJB Exception: ; nested
exception is: java.lang.RuntimeException: [EJB:010183]javax.ejb.EJBContext.getEnvironment
is deprecated in EJB 1.1. EJB 1.1 compliant containers are not required to implement
this method. Use java:comp/env instead. at weblogic.ejb20.internal.EJBRuntimeUtils.throwRemoteException(EJBRuntimeUtils.java:103)
at weblogic.ejb20.internal.BaseEJBHome.handleSystemException(BaseEJBHome.java:304)
at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:140) at
weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:70)
at ejb.demo.DemoBean_c3ndjf_EOImpl.demoSelect(DemoBean_c3ndjf_EOImpl.java:28)
at jsp_servlet.__sampletest._jspService(__sampletest.java:144) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:431)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6291)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97) at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3575)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2573)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
Caused by: java.lang.RuntimeException: [EJB:010183]javax.ejb.EJBContext.getEnvironment
is deprecated in EJB 1.1. EJB 1.1 compliant containers are not required to implement
this method. Use java:comp/env instead. at weblogic.ejb20.internal.BaseEJBContext.getEnvironment(BaseEJBContext.java:279)
at ejb.demo.DemoBean1.setSessionContext(DemoBean1.java:48) at ejb.demo.DemoBean_c3ndjf_Impl.setSessionContext(DemoBean_c3ndjf_Impl.java:111)
at weblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.java:267)
at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:157)
at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:109)
at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:140)
at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:130) ...
15 more
>
Anybody faced the same kind of problem and have an idea about the solution? Please.
Thanks Prema

Thanks for your Help, Rob.
Problem because of ctx.getEnvironment() in my setSessionContext()
Thanks
Prema
Rob Woollen <[email protected]> wrote:
The error is coming from your EJB, not a webapp. Somewhere in your EJB,
you're calling EJBContext.getEnvironment.
-- Rob
Prema wrote:
Rob Woollen <[email protected]> wrote:
Your EJB called the EJB 1.0! method EJBContext.getEnvironment. As
the
exception mentions, wee don't implement that method anymore and throw
a
RuntimeException.
You should be using java:/comp/env to get to environment properties.
-- Rob
Prema wrote:
(Note : this question has been posted in 81beta.server.ejb also)
Hi All,
I am getting EJB Exception while deploying my ear file which containsa simple
stateless session bean (jar module) and a jsp accessing the SSB. (WLS8.1)
Here is my code snippet that looks up SSB.
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL,"t3://192.168.66.39:7001");
try { Context ctx = new InitialContext(ht);
DemoHome1 d1 = (DemoHome1)ctx.lookup("java:comp/env/ejb1");
Demo1 demo = d1.create();
String str1 = demo.demoSelect();
System.out.println("Result from DemoBean : " + str1); }
Here is my <ejb-ref> element in web.xml
<ejb-ref>
<ejb-ref-name>ejb1</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>ejb.demo.DemoHome1</home>
<remote>ejb.demo.Demo1</remote>
<ejb-link>../Demo.jar#DemoBean</ejb-link>
</ejb-ref>
And the exception is here
<Jul 17, 2003 10:24:45 AM IST> <Error> <HTTP> <BEA-101019> <[ServletContext(id=5950347,name=sampletest,context-path=/sampletest)]
Servlet failed with IOException java.rmi.RemoteException: EJB Exception:; nested
exception is: java.lang.RuntimeException: [EJB:010183]javax.ejb.EJBContext.getEnvironment
is deprecated in EJB 1.1. EJB 1.1 compliant containers are not requiredto implement
this method. Use java:comp/env instead. at weblogic.ejb20.internal.EJBRuntimeUtils.throwRemoteException(EJBRuntimeUtils.java:103)
at weblogic.ejb20.internal.BaseEJBHome.handleSystemException(BaseEJBHome.java:304)
at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:140)at
weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:70)
at ejb.demo.DemoBean_c3ndjf_EOImpl.demoSelect(DemoBean_c3ndjf_EOImpl.java:28)
at jsp_servlet.__sampletest._jspService(__sampletest.java:144) at
weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:431)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6291)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3575)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2573)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178) atweblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
Caused by: java.lang.RuntimeException: [EJB:010183]javax.ejb.EJBContext.getEnvironment
is deprecated in EJB 1.1. EJB 1.1 compliant containers are not requiredto implement
this method. Use java:comp/env instead. at weblogic.ejb20.internal.BaseEJBContext.getEnvironment(BaseEJBContext.java:279)
at ejb.demo.DemoBean1.setSessionContext(DemoBean1.java:48) at ejb.demo.DemoBean_c3ndjf_Impl.setSessionContext(DemoBean_c3ndjf_Impl.java:111)
at weblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.java:267)
at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:157)
at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:109)
at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:140)
at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:130)...
15 more
Anybody faced the same kind of problem and have an idea about the
solution?
Please.
Thanks Prema
Hi,
I tried using JNDI name directly.
DemoHome1 d1 = (DemoHome1) ctx.lookup("DemoBean");
//DemoBean is my JNDI name
It is still displaying same error. What's wrong ? What's the exactway of
looking up an ejb from a web module in WLS 8.1 ?
Thanks in advance
Prema
>

Similar Messages

  • Java.rmi.RemoteException: EJB Exception: while calling an EJB method,

    Hi
    I am getting below error while calling a stateless EJB method. There is some validation checks while performing ejb's modify() method and a RuntimeException is thrown in case of validation failure.The modify() method internally calls other stateless ejb as well.
    The problem I'm facing is, instead of getting the expected RuntimeException in the Servlet, i am getting RemoteException. I am using WLS 9 MP1, all participating ejbs are stateless and i am using default transaction attributes(Supports) for these ejbs.
    The interesting part is, at the ejb layer RuntimeException is thrown as expected, but this exception changed to RemoteException at the servlet's end where i am catching the ejb call exceptions.
    I am new to WLS, please suggest/help me out of this exception.
    Any help is truly appreciated.
    java.rmi.RemoteException: EJB Exception: ; nested exception is: java.lang.RuntimeException:
         at weblogic.ejb.container.internal.EJBRuntimeUtils.throwRemoteException(EJBRuntimeUtils.java:95)
         at weblogic.ejb.container.internal.BaseEJBObject.handleSystemException(BaseEJBObject.java:713)
         at weblogic.ejb.container.internal.BaseEJBObject.handleSystemException(BaseEJBObject.java:681)
         at weblogic.ejb.container.internal.BaseEJBObject.postInvoke1(BaseEJBObject.java:447)
         at weblogic.ejb.container.internal.StatelessEJBObject.postInvoke1(StatelessEJBObject.java:72)
         at weblogic.ejb.container.internal.BaseEJBObject.postInvokeTxRetry(BaseEJBObject.java:374)
         at com.mycomp.base.BaseController_8x2e52_EOImpl.modify(BaseController_8x2e52_EOImpl.java:149)
         at com.mycomp.webgui.servlet.FrontComponent.service(FrontComponent.java:207)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3245)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2003)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1909)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Thanks!
    Edited by: user10721298 on Feb 23, 2009 4:16 AM

    Hi,
    If i don't misunderstand, you are using the RuntimeException as an application exception, right?
    Have you annotated it or denoted it in deployment descriptor?
    Thanks,
    Amy

  • EJB Exception occurred during invocation from home: com.bea.content.manager

    BEA 8.1 Team,
    Is there any limitation on BEA Repository such as number of nodes, etc.
    I have a serious production issue. All i could see from the LOG file is the stact trace which i have posted it here.
    ####<Aug 24, 2006 8:04:57 AM CDT> <Info> <EJB> <websrv11> <PORTALSRVR> <ExecuteThread: '99' for queue: 'weblogic.kernel.Default'> <jdcs1400> <BEA1-60BE09B7462F> <BEA-010051> <EJB Exception occurred during invocation from home: [email protected]67bc75 threw exception: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1438)
         at java.lang.String.substring(String.java:1411)
         at com.bea.content.PathHelper.removeFirst(PathHelper.java:168)
         at com.bea.content.manager.internal.NodeOpsBean.getNode(NodeOpsBean.java:680)
         at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:111)
         at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >
    ####<Aug 24, 2006 8:04:57 AM CDT> <Error> <HTTP> <websrv11> <PORTALSRVR> <ExecuteThread: '99' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-101020> <[ServletContext(id=30691960,name=myServicePoint,context-path=/myServicePoint)] Servlet failed with Exception
    javax.ejb.EJBException: EJB Exception: : java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1438)
         at java.lang.String.substring(String.java:1411)
         at com.bea.content.PathHelper.removeFirst(PathHelper.java:168)
         at com.bea.content.manager.internal.NodeOpsBean.getNode(NodeOpsBean.java:680)
         at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:111)
         at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    ; nested exception is: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1438)
         at java.lang.String.substring(String.java:1411)
         at com.bea.content.PathHelper.removeFirst(PathHelper.java:168)
         at com.bea.content.manager.internal.NodeOpsBean.getNode(NodeOpsBean.java:680)
         at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:111)
         at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    javax.ejb.EJBException: EJB Exception: : java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1438)
         at java.lang.String.substring(String.java:1411)
         at com.bea.content.PathHelper.removeFirst(PathHelper.java:168)
         at com.bea.content.manager.internal.NodeOpsBean.getNode(NodeOpsBean.java:680)
         at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:111)
         at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    ; nested exception is: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at weblogic.ejb20.internal.EJBRuntimeUtils.throwEJBException(EJBRuntimeUtils.java:152)
         at weblogic.ejb20.internal.BaseEJBLocalHome.handleSystemException(BaseEJBLocalHome.java:232)
         at weblogic.ejb20.internal.BaseEJBLocalObject.postInvoke(BaseEJBLocalObject.java:326)
         at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:122)
         at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >
    Any help would be greatly appreciated!!
    Thanks in Advance,
    -Nach.

    Hi Dragan,
    First of all we need to put some debug (System.out.println) to findout exactly which object reference is actually becoming NULL. From there only we can start diagnosis on this issue. that's the root. It should be very easy for your Developers to put some debug on that...because the NullPointerException is being thrown by your code...I m not Blaming on your Code... WLS may be responsible for that...but first of all we need to find out Which Object is becoming NULL.
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)

  • EJB Exception occurred during invocation from home or business:

    Friends,
    I have ejb application deployed in weblogic 10.3 with cluster environment. I have configured the following ejb-jar.xml
    <session>
    <ejb-name>PartSL</ejb-name>
    <home>com.gm.tm.ejb.session.part.PartSLHome</home>
    <remote>com.gm.tm.ejb.session.part.PartSL</remote>
    <ejb-class>com.gm.tm.ejb.session.part.PartSLBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <ejb-ref>
    <ejb-ref-name>ejb/PartBM</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <home>com.gm.tm.ejb.entity.partbm.PartHome</home>
    <remote>com.gm.tm.ejb.entity.partbm.Part</remote>
    <ejb-link>PartBM</ejb-link>
    </ejb-ref>
    <resource-ref>
    <description></description>
    <res-ref-name>jdbc/ToolMoveDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </session>
    Sometimes when user doing some manupulation, this object getting disapper and getting the error as EJB Exception occurred during invocation from home or business: com.gm.tm.ejb.session.part.PartSL_ex1s88_HomeImpl@175f214 threw exception: javax.ejb.EJBException: nested exception is: javax.naming.LinkException: [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'PartBM'. Resolved '' [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'PartBM'. Resolved '']; remaining name 'PartBM']; Link Remaining Name: 'PartBM'>
    JNDI tree is clusterable but is incompatible. Make sure all the servers in the cluster use the identical copy of object.
    Pls let me know if anyone know the root cause and i am new to EJB too. So pls help if anyone know better solution for this

    Yes exactly..Let me explain clearly. assume its deployed now and user started using that particular module. It works fine. Later point time like after few days or after few simultenous navigation of that particular ejb jndi object from the application, this exception comes. So for the short time fix, i restart the server and it will work fine and then after few hours/days , this exception comes and i need to restart again. So i need a permanent solution to avoid this issue.

  • EJB Exception Layer Design Feedback

    I am in the process of creating a EJB layer talking to EIS Tier via JCA adapter. The EJBs are all stateless. The EJBs would be used by servlets, ejbs, or jsps. The EJBs are stateless in nature. I would like to make sure the exception hierarchy I have is considered good design practice and if there are suggestions on how I may improve it. I decided to go for unchecked exception all through my design (this I don't want to change -- pretty sure about this).
    So, here is how I designed my exception class. One of my goals was to keep the exception handling very simple at the client-side and not inundate customers with too many types of exceptions. I decided to go for a has-A type relationship to model much of the exceptions because I couldn’t really classify some of them to be a is-A. All exceptions thrown by my EJB layer would be contained within MyApplicationException. A getCause() will give insight into the cause at a very fine level. A getMessage() would suffice for most situations. Whereever exceptions are being thrown, the cause is being stored.
    java.lang.Exception
    --java.lang.RuntimeException
    ___ --MyBaseException
    _______+----MyApplicationException (this is the container for all my exceptions)
    _______+----MyConfigException
    I created a exceptionhelper class that handles most of the exceptions and throws the right exception depending on the cause. For brevity sake, I am not including all code details in the sample below.
    At the EIS Tier level, we have AutomationExceptions or Windows exception being thrown. These exceptions get thrown by the Windows code that is running in the EIS Tier (server). These exceptions are caught by the EJB code, then we do some processing like looking up the windows error code and producing the right message. The exception is then thrown back to the client with more information (MyApplicationException->getCause() would return AutomationException)
    In the EJB code I have something like this….
    try {
    serverConn.connectToEISTier()
    } catch (AutomatedException e) {
    throw new MyApplicationException(“Custom Message.”, ExceptionHelper.handleAutomatedException(e)); }
    At the EJB level
    •we have create, and naming exceptions thrown either on failed lookup or something failing when creating the ejbs or there might be programming errors or there might be missing resources when EJB is trying to connect and possibly encounters data retrieval failures or Some sort of configuration error might be there in the deployment descriptor (user did soemthing wrong - wrong value for environment entry). All these are caught, and converted into runtime exception namely MyApplicationException. Where classification is deemed necessary we for e.g convert then contained exception to say configexception.
    try {  
         lookup the context()
    } catch(NamingException ex){
    Cause = new myConfigException(“lookup failed because ….”);
    Throw new MyApplicationException(cause);
    At the transport level: some communication exception happened.
    At the client level:
    Client might be calling the apis wrongly and breaching the contract, or possibly supplied wrong credentials.
    Please share feedback / thoughts.

    There is an interesting article that discusses EJB Exception Layering:
    http://www-128.ibm.com/developerworks/java/library/j-ejbexcept.html
    As a rule of thumb: in every layer, create two types of exceptions that extend from the appropriate class (application exceptions and system exceptions). The next layer catches these and handles them appropriately. This way, you hide the implementation of the layers. An example where this is implemented is Spring.
    To summarize, I like your idea, but I define exceptions for every layer and not put them in one hiearchy.
    Regards,
    Lonneke

  • BEA-010051 EJB Exception occurred during invocation from home:

    Hi,
    I am getting this exception (below)in the production env. the process is every night my application would load the data which is present in a perticular folder in to the database. After this process has continued for some days this error comes. This error started comming after i did some code changes where in i log all the actions which take place while loading into the database.
    It would be of great help if someone could help me out here.
    weblogic log:
    ####<14-Mar-2007 18:00:00 o'clock GMT> <Info> <Log Management> <dygwt01> <managed1_caprprd> <ExecuteThread: '1' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-170018> <The log file has been rotated to managed1_caprprd.log00300. Log messages will continue to be logged in /wls_domains/caprprd/logs/bea/managed1_caprprd.log.>
    ####<14-Mar-2007 18:00:00 o'clock GMT> <Info> <null> <unknown> <unknown> <ExecuteThread: '1' for queue: 'weblogic.kernel.Default'> <null> <null> <000000> <LogRotation trigger for logfile /wls_domains/caprprd/logs/bea/managed1_caprprd.log>
    ####<15-Mar-2007 04:21:04 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20908C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:21:05 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20928C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:21:19 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-209A8C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:21:20 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-209C8C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:21:31 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20A18C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:21:31 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20A38C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:21:31 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20A58C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:21:41 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20AC8C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:22:48 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20D38C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:22:58 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20D98C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:23:08 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20DB8C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:23:10 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20DD8C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:23:12 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20DF8C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:23:19 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20E58C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:23:22 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20E78C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:23:47 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-21008C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 05:36:53 o'clock GMT> <Info> <Security> <dygwt01> <managed1_caprprd> <ExecuteThread: '0' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-090067> <User lockout expired, unlocking user 602054364 in security realm myrealm.>
    ####<15-Mar-2007 05:45:21 o'clock GMT> <Notice> <Security> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-090078> <User 602054364 in security realm myrealm has had 5 invalid login attempts, locking account for 30 minutes.>
    ####<15-Mar-2007 06:31:03 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-221A8C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
         at com.bt.pe.capreg.serv.ejb.WebServiceBean.getBlobBytes(WebServiceBean.java:1068)
         at com.bt.pe.capreg.serv.ejb.WebService_auhh9w_EOImpl.getBlobBytes(WebService_auhh9w_EOImpl.java:5026)
         at com.bt.pe.capreg.serv.ejb.WebService_auhh9w_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:166)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:290)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:247)
         at com.bt.pe.capreg.serv.ejb.WebService_auhh9w_EOImpl_814_WLStub.getBlobBytes(Unknown Source)
         at com.bt.pe.capreg.web.action.GetBlobAction.execute(GetBlobAction.java:29)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bt.pe.capreg.web.servlet.TargetNameSpaceFilter.doFilter(TargetNameSpaceFilter.java:48)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bt.pe.capreg.web.servlet.AuthorizationFilter.doFilter(AuthorizationFilter.java:22)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bt.pe.capreg.web.servlet.SMHeaderFilter.doFilter(SMHeaderFilter.java:21)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:326)
         at com.bt.pe.capreg.web.servlet.BlobServlet.doGet(BlobServlet.java:19)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bt.pe.capreg.web.servlet.TargetNameSpaceFilter.doFilter(TargetNameSpaceFilter.java:45)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bt.pe.capreg.web.servlet.AuthorizationFilter.doFilter(AuthorizationFilter.java:22)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bt.pe.capreg.web.servlet.SMHeaderFilter.doFilter(SMHeaderFilter.java:21)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >

    Hi Sai,
    Below are the observation
    In Weblogic 8.1 sp6
    User : system
    Group Assigned : Administrators and OSSTrmi
    Group OSStrmi have assigned under Administrators as well
    In Weblogic 10.3.3
    User : system
    Group Assigned : Administrators
    Group OSSTrmi  is not assigned under Administrators
    Difference in assignment. here it seems. Please suggest
    Thx
    Sudip

  • Moving web-application from WebLogic 10.0.0 to 10.3.3 - EJB Exception

    Hello all,
    I've moved my web-application from weblogic 10.0.0 to the new platform with Weblogic 10.3.3. After this I had some JMSEceptions (unable to run JMS methods inside of servlet or EJB) and they were fixed. For now I got new exception:
    ####<07.12.2012 16:03:06 FET> <Info> <EJB> <pc-XXXXXX> <AdminServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <BEA1-00340877198035A73969> <1354885386932> <BEA-010227> <EJB Exception occurred during invocation from home or business: weblogic.ejb.container.internal.StatelessEJBHomeImpl@14df37f threw exception: javax.ejb.EJBTransactionRolledbackException: EJB Exception: : java.lang.ClassCastException: com.XXX.XXXX.XXXXXX.persistence.OperatorBean cannot be cast to com.XXX.XXXX.XXXXXX.persistence.SwitchboardBean
    at com.XXX.XXXX.XXXXXX.SwitchboardDataImpl.initialize(SwitchboardDataImpl.java:147) // itsSwitchboardBean = itsEntityManager.find(SwitchboardBean.class, switchboardNumber);
    at com.XXX.XXXX.XXXXXX.SwitchboardDataImpl.create(SwitchboardDataImpl.java:86)
    at com.XXX.XXXX.XXXXXX.SwitchboardDataEJB.create(SwitchboardDataEJB.java:64)
    persistence.xml:
    ... <persistence-unit name="xxxSwitchboard_PU" transaction-type="JTA">
    <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
    <jta-data-source>jdbc/xxSwitchboard</jta-data-source>
    <non-jta-data-source>jdbc/xxSwitchboard</non-jta-data-source>
    <class>com.XXX.XXXX.XXXXXX.switchboard.persistence.OwnerBean</class>
    <class>com.XXX.XXXX.XXXXXX.switchboard.persistence.OperatorBean</class>
    <class>com.XXX.XXXX.XXXXXX.switchboard.persistence.SwitchboardBean</class>
    <class>com.XXX.XXXX.XXXXXX.switchboard.persistence.CallBean</class>
    <exclude-unlisted-classes>false</exclude-unlisted-classes>
    </persistence-unit>...
    @Entity
    public class OperatorBean extends OwnerBean
    @ManyToOne(optional = true, fetch = FetchType.EAGER)
    private SwitchboardBean switchboard;
    @Entity
    public class SwitchboardBean extends OwnerBean
    @OneToMany(mappedBy = "switchboard", cascade = CascadeType.PERSIST, fetch = FetchType.LAZY)
    private List<OperatorBean> itsOperators = new ArrayList<OperatorBean>();
    Seems that it happened due to updating weblogic version (changes in jee, jms, ejb, jpa versions?). Could you please advice me how to fix this issue?
    Thanks, Ilya

    I belive there is no problems for this change, because the versions are the same for java at least for OaS, for weblogic you should see documentation. I think you can try deploying you app to new environment if you get any noclassdeffound error or something like it then you could have problems for versions.
    Regards

  • Java.rmi.RemoteException: EJB Exception: ; nested exception is:

    Hi All,
    Please some out help me out,
    i have a written a stateless session bean, which is compiled with out errors, and i deployed it in wblogic server.
    when i run my client program, i get this exceptions. please some one help me how to tackle this,
    Thanks in advance,
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    java.lang.NoClassDefFoundError: secure/SDK/SAPIAgent
    Start server side stack trace:
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    java.lang.NoClassDefFoundError: SDK/SAPIAgent
    java.lang.NoClassDefFoundError: SDK/SAPIAgent
    at SAPI.SAPIBean.<init>(SAPIBean.java:18)
    at SAPI.SAPIBean_163r2w_Impl.<init>(SAPIBean_163r2w_Impl.java:31)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:232)
    at weblogic.ejb20.manager.BaseEJBManager.allocateBean(BaseEJBManager.java:129)
    at weblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.java:266)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:148)
    at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:101)
    at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:142)
    at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:138)
    at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:70)
    at valyd.SAPI.SAPIBean_163r2w_EOImpl.getSession(SAPIBean_163r2w_EOImpl.java:234)
    at valyd.SAPI.SAPIBean_163r2w_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:455)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:396)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:731)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:391)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:261)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:223)
    End server side stack trace
    ; nested exception is: java.lang.NoClassDefFoundError: SDK/SAPIAgent
    Murali

    Hi All,
    Please some out help me out,
    i have a written a stateless session bean, which is compiled with out errors, and i deployed it in wblogic server.
    when i run my client program, i get this exceptions. please some one help me how to tackle this,
    Thanks in advance,
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    java.lang.NoClassDefFoundError: secure/SDK/SAPIAgent
    Start server side stack trace:
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    java.lang.NoClassDefFoundError: SDK/SAPIAgent
    java.lang.NoClassDefFoundError: SDK/SAPIAgent
    at SAPI.SAPIBean.<init>(SAPIBean.java:18)
    at SAPI.SAPIBean_163r2w_Impl.<init>(SAPIBean_163r2w_Impl.java:31)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:232)
    at weblogic.ejb20.manager.BaseEJBManager.allocateBean(BaseEJBManager.java:129)
    at weblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.java:266)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:148)
    at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:101)
    at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:142)
    at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:138)
    at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:70)
    at valyd.SAPI.SAPIBean_163r2w_EOImpl.getSession(SAPIBean_163r2w_EOImpl.java:234)
    at valyd.SAPI.SAPIBean_163r2w_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:455)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:396)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:731)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:391)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:261)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:223)
    End server side stack trace
    ; nested exception is: java.lang.NoClassDefFoundError: SDK/SAPIAgent
    Murali

  • Error javax.transaction.TransactionRolledbackException: EJB Exception

    Good afternoon, appeared to me the following error, anyone know what it is?
    oracle.iam.connectors.common.dao.OIMUtil : OIMUtil() : EJB Exception: : javax.transaction.TransactionRolledbackException: EJB Exception

    Hi,
    Thanks for the info..But I can't seem to figure out what wrong in my SP.
    This is my stored proc. and line no.20 pointing to ORA-06152 is the insert statement..
    Can someone help me out please!!
    CREATE OR REPLACE PROCEDURE "DBS1"."INS_EXPENSE"
    ( expense_type in VARCHAR2
    , party_payed_to in VARCHAR2
    , expense_amount in NUMBER
    , bill_date in DATE
    , booked_date in DATE
    , payed_from_acc in VARCHAR2
    , payed_to_acc in VARCHAR2
    , payment_mode in VARCHAR2
    , status in VARCHAR2
    , comment in VARCHAR2
    , entry_userid in VARCHAR2
    , last_chg_userid in VARCHAR2
    , expense_no out NUMBER
    IS
    BEGIN
    select max(EXPENSE_NO) into expense_no from DBS1.EXPENSE;
    expense_no := expense_no + 1;
    insert into DBS1.EXPENSE (EXPENSE_NO,EXPENSE_TYPE,PARTY_PAYED_TO
    ,EXPENSE_AMOUNT,BILL_DATE,BOOKED_DATE,PAYED_FROM_ACC,PAYED_TO_ACC
    ,PAYMENT_MODE,STATUS,COMMENT,ENTRY_TIMESTAMP,ENTRY_USERID
    ,LAST_CHANGE_TIMESTAMP,LAST_CHANGE_USERID) VALUES
    (expense_no,expense_type,party_payed_to,expense_amount,TO_DATE(bill_date,'yyyy-mm-dd')
    ,TO_DATE(booked_date,'yyyy-mm-dd'),payed_from_acc,payed_to_acc,payment_mode,status
    ,comment,SYSDATE,entry_userid,SYSDATE,last_chg_userid);
    END INS_EXPENSE;
    TIA

  • EJB Exceptions generate entry in trace file

    Every exception I throw an exception from an EJB generates a stack trace in the oracle trace file. These are business rule errors like "Withdrawal Denied: Insuffient Funds". Can I turn this off? The J2EE spec says that the container should notify when an EJBException is throw to the container. How do I get the container to ignore my custom exception? My exception class is just derived from RemoteException like in the below Oracle example.
    package employee;
    public class EmpException extends RemoteException
    public EmpException(String msg)
    super(msg);
    null

    Please refer:
    http://www.oracle.com/technology/oramag/oracle/09-mar/o29asktom.html?_template=/ocom/print
    Edited by: SKU on 19-Dec-2009 05:10

  • New to EJBs  exception in client code

    Hi i am new to EJBs when i execute the client code it is giving the following exceptions
    can any one tell me the steps to execute a simple EJB session bean. what class paths and what config and what xml files are required??
    i followed so many tutorials but the problem is not solved
    thanks
    here is the exception i wrote the JNDI name as "HelloWorld" in the weblogic-ejb-jar.xml (i am using weblogic 8.1 application server)
    Full compiler error(s):
    C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_FirstEjb_HelloClient\jsp_servlet\__helloclient.java:139: cannot resolve symbol
    symbol  : class HelloHome
    location: class jsp_servlet.__helloclient
            HelloHome home = (HelloHome) javax.rmi.PortableRemoteObject.narrow(obj,HelloHome.class); //[ /HelloClient.jsp; Line: 17]
            ^
    C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_FirstEjb_HelloClient\jsp_servlet\__helloclient.java:139: cannot resolve symbol
    symbol  : class HelloHome
    location: class jsp_servlet.__helloclient
            HelloHome home = (HelloHome) javax.rmi.PortableRemoteObject.narrow(obj,HelloHome.class); //[ /HelloClient.jsp; Line: 17]
                              ^
    C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_FirstEjb_HelloClient\jsp_servlet\__helloclient.java:139: cannot resolve symbol
    symbol  : class HelloHome
    location: class jsp_servlet.__helloclient
            HelloHome home = (HelloHome) javax.rmi.PortableRemoteObject.narrow(obj,HelloHome.class); //[ /HelloClient.jsp; Line: 17]
                                                                                   ^
    C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_FirstEjb_HelloClient\jsp_servlet\__helloclient.java:140: cannot resolve symbol
    symbol  : class Hello
    location: class jsp_servlet.__helloclient
            Hello hello = home.create(); //[ /HelloClient.jsp; Line: 18]
            ^
    4 errorsand the client jsp file is as follows
      <%@ page import="java.util.*"%>
    <%@ page import="javax.naming.InitialContext"%>
    <%@ page import="javax.naming.Context"%>
    <%@page language="java" contentType="text/html"%>
    <html>
        <head>
            <title>JSP Page</title>
        </head>
        <body>
            <%
                Properties props = System.getProperties();
                   out.println("SREENIVAS  FIRST EJB");
              try {
                   Context ctx = new InitialContext(props);
                Object obj = ctx.lookup("HelloWorld");
                HelloHome home = (HelloHome) javax.rmi.PortableRemoteObject.narrow(obj,HelloHome.class);
                Hello hello = home.create();
                   out.println(hello.hello());
                hello.remove();
                ctx.close();
            } catch (Exception e) {
                e.printStackTrace();
        %></body>
    </html>

    i got the output
    its working
    the change i did is
    i put all the remote,home and local interfaces in a package and added that package to a jar file.
    then i added the jar file to class path.
    import this package into your client class.
    thats it now just deploy your ejbmodule.jar and webapplication.war in the server and test the code
    bye bye

  • OIM 11g R2 - EJB Exception

    Hi,
    I wrote a schedule job in OIM 11g R2 which create recon events.Implemented the code with threading (code is working fine without threading) and getting the below exception
    :Exception occured: [EJB:010160]Security Violation: User: 'oiminternal' has insufficient permission to access EJB: type=<ejb>, application=oim#11.1.2.0.0, module=iam-ejb.jar, ejb=ReconOperationsService, method=createReconciliationEventsx, methodInterface=Remote, signature={oracle.iam.reconciliation.api.BatchAttributes,oracle.iam.reconciliation.api.InputData[],java.lang.String}
    Explored the forum and noticed that this error can be solved by closing the OIM  objects.But since we are using 11g APIs (UserManager,
    ReconOperationsService etc) and since there is no close() method provided for these APIs,I couldnt close the objects.Any solution to address this issue?.Thanks.

    Is it a clustered installation? Just try a restart of the server you are getting this exception on and you should be good. The recon operation would move to the next server if you bring this one down. I haven't seen this issue in R2 but in R1 there was a bug and eventually a fix for this issue, where the eclipse link jars had caching issue with internal OES in clustered mode and this issue used to come up under load conditions. May be this has re-surfaced in R2. If you are seeing this often then you should raise an SR. BTW, home oiminternal user is not deleted in your system.
    -Bikash

  • Help!  EJB exceptions become nullPointers when reaching JSP level

    When an exception is thrown in EJB and propagated up to JSP level, it becomes a null pointer. Still works fine when exception is thrown on JSP level.
              If somebody has had similar problem and knows a workaround, I would greatly appretiate any help.
              

    Hi could you elaborate a little. I'm a little confused first you said at JSP level
              it becomes a null pointer, then you say it works fine.
              I had similar problems before when the exception object in my error pages
              was null. Funny thing is that if the exception is thrown early enough in the
              life of the JSP, then the getMessage() and printStackTrace() methods
              work fine. However after some significant output to the JspWriter it
              becomes null (e.g. after including some files).
              I made a previous post regarding this and there was no response.
              Sergey wrote:
              > When an exception is thrown in EJB and propagated up to JSP level, it becomes a null pointer. Still works fine when exception is thrown on JSP level.
              >
              > If somebody has had similar problem and knows a workaround, I would greatly appretiate any help.
              

  • Unable to understand EJB exception

    Hi All,
    I have successfully developed and deployed an EJB using WSAD 5.1.2's WebSphere 5.0 Test Environment. I have even able to access the EJB using UTC(Universal Test Client) in WSAD and by launching the j2ee client module using WebSphere lauchClient program.
    I have now exposed this ejb as web service using AXIS 1.2 RC2 deployed as web module inside WSAD. This web service is properly exposed as web service as I can see it and access its wsdl when I access axis web services.
    Now I have written a standalone-outside-wsad web service client that uses AXIS stubs and when I try to consume to this ejb web service I am getting below error.
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace: java.lang.ClassCastException: Unable to load class: com.ram.test.interfaces._DemoHome_Stub
    at com.ibm.rmi.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:386)
    at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:156)
    at org.apache.axis.providers.java.EJBProvider.createRemoteEJB(EJBProvider.java:168)
    at org.apache.axis.providers.java.EJBProvider.makeNewServiceObject(EJBProvider.java:147)
    at org.apache.axis.providers.java.JavaProvider.getNewServiceObject(JavaProvider.java:258)
    at org.apache.axis.providers.java.JavaProvider.getServiceObject(JavaProvider.java:138)
    at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:310)
    Can anyone please tell me why is error occurring and how to solve it ?
    Thanks & Regards,
    Kumar.

    It is a web service client that uses axis stubs to commnunicate to the remote web service that exposes ejb ... why do I need to package the ejb interfaces with my web service client. the flow is
    outisde-wsad-web-service-client --> inside-wsad-axis-web-module --> inside-wsad-ejb-module

  • Client Handling of EJB Exceptions

    I am using a session facade to interact with a series of entity beans through local
    interfaces. One of the entity beans has a "name" property that must be unique
    in the database. If I attempt to create one of these entity beans with a "name"
    that is already being used I need to throw an exception back to the client to
    request that a new "name" be provided. What is the best way to provide this functionality?
    Here is some sample code to explain the process:
    Session Facade
    public ... intitiateTeam(...) {
    TeamLocal team = teamHome.create(name, ...);
    Team Entity Bean
    public Integer ejbCreate(String name, ...) {
    setName(name);
    Should I throw an exception from the entity bean that the session facade catches
    and then forwards back to the client?

    It's either a boolean return or an exception or similar. An exception is
    suitable if the request is to register because the registration has failed.
    Peace,
    Cameron Purdy
    Tangosol Inc.
    Tangosol Coherence: Clustered Coherent Cache for J2EE
    Information at http://www.tangosol.com/
    "willie" <[email protected]> wrote in message
    news:3c10fadd$[email protected]..
    >
    I am using a session facade to interact with a series of entity beansthrough local
    interfaces. One of the entity beans has a "name" property that must beunique
    in the database. If I attempt to create one of these entity beans with a"name"
    that is already being used I need to throw an exception back to the clientto
    request that a new "name" be provided. What is the best way to providethis functionality?
    >
    Here is some sample code to explain the process:
    Session Facade
    public ... intitiateTeam(...) {
    TeamLocal team = teamHome.create(name, ...);
    Team Entity Bean
    public Integer ejbCreate(String name, ...) {
    setName(name);
    Should I throw an exception from the entity bean that the session facadecatches
    and then forwards back to the client?

Maybe you are looking for

  • Facebook events not showing up in calendar app

    Hi I can see the events I've joined on facebook showing up on the calender app on my iphone (ios6) but can't see them on the ML (10.8.2) calendar app. my facebook account is linked with both machine. what do I miss? thanks in advance:)

  • CS5 support is falling down - the famous firewire issue

    As a loyal user of Adobe professioanl editing solutions for the last 10 years this past month has been a nightmare.  When I inquired about upgrading to CS5 from CS3 I was advised during an online chat with an Adobe person here on the site to upgrade

  • Weblogic dropping DB connections?

    I am currently runing WLS8.1 SP2 and Oracle9i for for my application. Whenever I leave the server running overnight, the first time I submit something I get the following error. After a server restart the problem is solved until the followng morning.

  • I am unable to restore from iCloud backup because the new phone has iOS 8.1.2 and the old phone has iOS 8.2? Any help.

    I Have just bought an iPhone 6 and want to restore my iPhone 4s via iCloud backup to the new iPhone 6. The setup of the iPhone 6 halted because according to the new phone it has iOS 8.1.2 whereas the backups were stored using iOS 8.2 following my upd

  • Time stamp help

    Hello, I have made this VI to collect measurements and I would like to record Date and time of the measurement in the same file but in different column than the measurements. Since I can't send data directly into an Excel file, I am collecting it in