0 Replies Latest reply: Jul 10, 2014 3:15 PM by GabiS RSS

    Java NullPointerException using JCA Database Adapter and OSB 11g

    GabiS

      Hi All,

       

      I'm working in a project with OSB 11.1.1.5 and Database Adapter calling a store procedure to insert data in a table. When the service is executed, the response comes with an error java nullpointerexception and the Weblogic log shows the following:

       

      <BEA-380003> <Excepción en TransportManagerImpl.sendMessageAsync: unchecked exception:, java.lang.NullPointerException

      java.lang.NullPointerException

              at com.bea.wli.sb.transports.jca.binding.JCATransportOperationBindingServiceImpl.setURI(JCATransportOperationBindingServiceImpl.java:203)

              at com.bea.wli.sb.transports.jca.binding.JCATransportOutboundOperationBindingServiceImpl.setURI(JCATransportOutboundOperationBindingServiceImpl.java:209)

              at com.bea.wli.sb.transports.jca.JCATransportEndpoint.send(JCATransportEndpoint.java:160)

              at com.bea.wli.sb.transports.jca.JCATransportProvider.sendMessageAsync(JCATransportProvider.java:598)

              at sun.reflect.GeneratedMethodAccessor913.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at com.bea.wli.sb.transports.Util$1.invoke(Util.java:83)

              at $Proxy108.sendMessageAsync(Unknown Source)

              at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageAsync(LoadBalanceFailoverListener.java:148)

              at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToServiceAsync(LoadBalanceFailoverListener.java:603)

              at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToService(LoadBalanceFailoverListener.java:538)

              at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageToService(TransportManagerImpl.java:558)

              at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageAsync(TransportManagerImpl.java:426)

              at com.bea.wli.sb.test.service.ServiceMessageSender.send0(ServiceMessageSender.java:380)

              at com.bea.wli.sb.test.service.ServiceMessageSender.access$000(ServiceMessageSender.java:79)

              at com.bea.wli.sb.test.service.ServiceMessageSender$1.run(ServiceMessageSender.java:137)

              at com.bea.wli.sb.test.service.ServiceMessageSender$1.run(ServiceMessageSender.java:135)

              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)

              at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)

              at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityContextService.java:55)

              at com.bea.wli.sb.test.service.ServiceMessageSender.send(ServiceMessageSender.java:140)

              at com.bea.wli.sb.test.service.ServiceProcessor.invoke(ServiceProcessor.java:454)

              at com.bea.wli.sb.test.TestServiceImpl.invoke(TestServiceImpl.java:172)

              at com.bea.wli.sb.test.client.ejb.TestServiceEJBBean.invoke(TestServiceEJBBean.java:167)

              at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.__WL_invoke(Unknown Source)

              at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)

              at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.invoke(Unknown Source)

              at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_WLSkel.invoke(Unknown Source)

              at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)

              at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)

              at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)

              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)

              at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)

              at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)

              at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)

              at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

              at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

       

      The jca configuration is done in JDeveloper 11g using a OraDB 11gXE. However, this is deployed later in an environment with Oracle Database 10g (I think this is irrelevant). The FMW version is 11.1.1.5 over Exalogic. The error occurs in this environment (Two differente instances of FMW in Exalogic) but we haven't able to reproduce it in other environments.

       

      All the components appear as active in WLS console. At the first time, when the OSB service is deployed, it works fine but later it starts to fail.

      We tried redeploying the DBAdapter but nothing happened. If the service is redeployed, it start to work until next time. This is not acceptable in production environment.

       

      I'd believe that the problem is in the JCA Transport or JCA Framework themselves and not in DB Adapter.

       

      Has anyone faced the same issue with DB Adapter and OSB?

       

      Regards