7 Replies Latest reply: Sep 20, 2011 5:49 AM by Jan-Derk Weitering RSS

    Cannot retrieve any messages in BAM from BPEL proces

    Jan-Derk Weitering
      Hi,

      I have read some step by step tutorials how te retrieve BPEL information in BAM.
      I made a data object in BAM ans a simple report to show te data.
      Then i have configured the BAM adapter in weblogic.
      Finally i have set up a BPEL proces with sensor activity and BAM sensor action.
      The proces however sends no data to BAM.

      Here are my setting for the BAM adapter:
      HostName     localhost
      InstanceName     ADCServer1
      Password     *****
      PortNumber     9001
      UserName          ontwikkelaar

      Are these the right settings? From Jdeveloper i can connect with BAM.

      Thanks in advance,

      Jan-Derk
        • 1. Re: Cannot retrieve any messages in BAM from BPEL proces
          user9285225
          Hi Jan-Derk,

          Can you try to put the hostname instead of localhost in your weblogic settings ?

          Did you map your sensor data with the data objects?

          If possible can you check the soa diagnostic log and paste the error/information here? so that we could debug further
          • 2. Re: Cannot retrieve any messages in BAM from BPEL proces
            Jan-Derk Weitering
            Hi,

            I tried the hostname too, but that did not work either.

            I mapped the sensor data.

            A fragment of the logging shows:


            Exception not handled by the Collaxa Cube system.
            an unhandled exception has been thrown in the Collaxa Cube systemr; exception reported is: "BINDING.JCA-12563
            Exception occured when binding was invoked.
            Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'writetoBAM' failed due to: javax.security.auth.login.LoginException: [Security:090304]Authentication Failed: User javax.security.auth.login.LoginException: [Security:090301]Password Not Supplied".
            The invoked JCA adapter raised a resource exception.
            Please examine the above error message carefully to determine a resolution.

                 at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.executeJcaInteraction(JCAInteractionInvoker.java:439)
                 at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.invokeJcaReference(JCAInteractionInvoker.java:548)
                 at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.invokeAsyncJcaReference(JCAInteractionInvoker.java:508)
                 at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAEndpointInteraction.performAsynchronousInteraction(JCAEndpointInteraction.java:491)
                 at oracle.integration.platform.blocks.adapter.client.JCABindingOperation.executeInputOnlyOperation(JCABindingOperation.java:156)
                 at com.collaxa.cube.engine.sensor.sa.publisher.bam.BAMConnectorImpl.process(BAMConnectorImpl.java:63)
                 at com.collaxa.cube.engine.sensor.sa.publisher.bam.BamPublisher.publish(BamPublisher.java:102)
                 at com.collaxa.cube.engine.sensor.sa.FilteredDataPublisher.publish(FilteredDataPublisher.java:119)
                 at com.collaxa.cube.engine.sensor.sa.BpelPublisher.publish(BpelPublisher.java:144)
                 at com.collaxa.cube.engine.sensor.registry.BpelSensorActionInfo.publish(BpelSensorActionInfo.java:148)
                 at com.collaxa.cube.engine.sensor.sa.DataRouter.send(DataRouter.java:94)
                 at com.collaxa.cube.engine.sensor.sa.DataRouter.send(DataRouter.java:134)
                 at com.collaxa.cube.engine.sensor.dca.DataCaptureAgency.send(DataCaptureAgency.java:232)
                 at com.collaxa.cube.engine.sensor.dca.DataCaptureAgency.sendActivityData(DataCaptureAgency.java:204)
                 at com.collaxa.cube.engine.sensor.dca.DataCaptureAgency.onActivityComplete(DataCaptureAgency.java:291)
                 at com.collaxa.cube.engine.util.CompositeInstanceObserver.onActivityComplete(CompositeInstanceObserver.java:61)
                 at com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform(BaseBPELActivityWMP.java:169)
                 at com.collaxa.cube.engine.CubeEngine._performActivity(CubeEngine.java:2463)
                 at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:2334)
                 at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1115)
                 at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:73)
                 at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:220)
                 at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:328)
                 at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4350)
                 at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4281)
                 at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:679)
                 at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:654)
                 at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:293)
                 at sun.reflect.GeneratedMethodAccessor1840.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
                 at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
                 at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
                 at com.bea.core.repackaged.springframework.jee.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:104)
                 at oracle.security.jps.ee.ejb.JpsAbsInterceptor$1.run(JpsAbsInterceptor.java:94)
                 at java.security.AccessController.doPrivileged(Native Method)
                 at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
                 at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
                 at oracle.security.jps.ee.ejb.JpsAbsInterceptor.runJaasMode(JpsAbsInterceptor.java:81)
                 at oracle.security.jps.ee.ejb.JpsAbsInterceptor.intercept(JpsAbsInterceptor.java:112)
                 at oracle.security.jps.ee.ejb.JpsInterceptor.intercept(JpsInterceptor.java:105)
                 at sun.reflect.GeneratedMethodAccessor1259.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
                 at com.bea.core.repackaged.springframework.jee.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:69)
                 at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
                 at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
                 at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
                 at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
                 at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
                 at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
                 at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
                 at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
                 at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
                 at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
                 at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
                 at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
                 at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
                 at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
                 at $Proxy278.handleInvoke(Unknown Source)
                 at com.collaxa.cube.engine.ejb.impl.bpel.BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.__WL_invoke(Unknown Source)
                 at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
                 at com.collaxa.cube.engine.ejb.impl.bpel.BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.handleInvoke(Unknown Source)
                 at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:35)
                 at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:140)
                 at com.collaxa.cube.engine.dispatch.BaseDispatchTask.process(BaseDispatchTask.java:88)
                 at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:64)
                 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                 at java.lang.Thread.run(Thread.java:662)
            Caused by: javax.resource.ResourceException: javax.security.auth.login.LoginException: [Security:090304]Authentication Failed: User javax.security.auth.login.LoginException: [Security:090301]Password Not Supplied
                 at oracle.bam.adapter.adc.ADCInteraction.execute(ADCInteraction.java:273)
                 at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.executeJcaInteraction(JCAInteractionInvoker.java:311)
                 ... 71 more
            Caused by: javax.security.auth.login.LoginException: [Security:090304]Authentication Failed: User javax.security.auth.login.LoginException: [Security:090301]Password Not Supplied
                 at oracle.security.jps.internal.jaas.module.authentication.JpsUserAuthenticationLoginModule.login(JpsUserAuthenticationLoginModule.java:71)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
                 at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
                 at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
                 at java.security.AccessController.doPrivileged(Native Method)
                 at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
                 at javax.security.auth.login.LoginContext.login(LoginContext.java:575)
                 at oracle.bam.common.security.authentication.BamLoginContext.loginJPS(BamLoginContext.java:319)
                 at oracle.bam.common.security.authentication.BamLoginContext.loginJPS(BamLoginContext.java:289)
                 at oracle.bam.common.security.authentication.BamLoginContext.login(BamLoginContext.java:157)
                 at oracle.bam.common.security.authentication.BamLoginContext.login(BamLoginContext.java:93)
                 at oracle.bam.adapter.adc.CachedConnection.<init>(CachedConnection.java:142)
                 at oracle.bam.adapter.adc.ADCManagedConnectionFactory.getCachedConnection(ADCManagedConnectionFactory.java:500)
                 at oracle.bam.adapter.adc.ADCInteraction.execute(ADCInteraction.java:234)
                 ... 72 more
            Caused by: oracle.security.jps.internal.jaas.module.AuthenticationException: [Security:090304]Authentication Failed: User javax.security.auth.login.LoginException: [Security:090301]Password Not Supplied
                 at oracle.security.jps.wls.jaas.module.authentication.WlsUserAuthenticator.authenticate(WlsUserAuthenticator.java:61)
                 at oracle.security.jps.internal.jaas.module.authentication.JpsUserAuthenticationLoginModule.login(JpsUserAuthenticationLoginModule.java:62)
                 ... 89 more
            Caused by: javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User javax.security.auth.login.LoginException: [Security:090301]Password Not Supplied
                 at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:261)
                 at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
                 at java.security.AccessController.doPrivileged(Native Method)
                 at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:106)
                 at sun.reflect.GeneratedMethodAccessor33203.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
                 at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
                 at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
                 at java.security.AccessController.doPrivileged(Native Method)
                 at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
                 at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
                 at com.bea.common.security.internal.service.JAASLoginServiceImpl.login(JAASLoginServiceImpl.java:113)
                 at sun.reflect.GeneratedMethodAccessor1341.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
                 at $Proxy25.login(Unknown Source)


            This is odd, the password is in the BAMadapter configured...
            • 3. Re: Cannot retrieve any messages in BAM from BPEL proces
              user9285225
              Hi,

              Can you tell whether the bam connection in Jdeveloper is working? Is it successful?

              Try to bounce the bam server alone and test again. Let me know the results
              • 4. Re: Cannot retrieve any messages in BAM from BPEL proces
                Jan-Derk Weitering
                Hi,

                The bam connection in Jdeveloper is working fine.

                I restarted bam_server but still facing exactly the same problem, error message is about password
                • 5. Re: Cannot retrieve any messages in BAM from BPEL proces
                  user9285225
                  I had this similar issue before and i resolved it... It was because i did not create the connection pool correctly.

                  Are you using SOAP or RMI connection factory for BAM? I used RMI connection factory and it worked perfectly fine
                  • 7. Re: Cannot retrieve any messages in BAM from BPEL proces
                    Jan-Derk Weitering
                    Solution found: The database account DEV_ORABAM was expired, so the error message was misleading in this case.