3 Replies Latest reply: Nov 5, 2013 11:44 AM by Adrian Costil RSS

    BPM for WebLogic 10.3 JMS listener problem: SecurityException

    699947
      Hi!

      I have a BPM 10.3 engine running on WebLogic 10.3 and a BPM process that uses JMS listener global automatic activity. The JMS queue is located in a WebLogic 8.1 server.

      The global activity receives a message and tries to create a new process instance. At runtime a strange error occurs (see below). If I just log the message and comment the process creation out, the message is successfully consumed, but with the creation part it is not. The process creation itself is not the problem because other message listeners that call other process activities fail with similar errors.
      Btw, it's working in Studio, but not in WL10.

      Could someone explain me what happens and how to fix it?
      Have I misconfigured something?

      Thanks in advance,
      Jaanus

      The BPM engine log:
      ----------

      The task could not be successfully executed.
      Reason: 'fuego.papi.exception.ActivityFailedException: Activity '/MyProcess#Default-1.0/Begin[Begin]' task 'BeginIn' could not execute successfully.
      Detail:Method: 'BeginIn', Exception: 'Process execution engine execution error.'
      '.
      Caused by: Activity '/MyProcess#Default-1.0/Begin[Begin]' task 'BeginIn' could not execute successfully.
      Detail:Method: 'BeginIn', Exception: 'Process execution engine execution error.'

      Caused by: Process execution engine execution error.
      Caused by: Connector [TrinityEngine_J2EE_RUNTIME_FUEGOLABS_ARG:SQL:REMOTE_JDBC] caused an exception when getting a resource of type [0].
      Detail:Connector [TrinityEngine_J2EE_RUNTIME_FUEGOLABS_ARG:SQL:REMOTE_JDBC] caused an exception when getting a resource of type [0].

      Caused by: [Security:090398]Invalid Subject: principals=[weblogic, Administrators]
      fuego.lang.ComponentExecutionException: The task could not be successfully executed.
      Reason: 'fuego.papi.exception.ActivityFailedException: Activity '/MyProcess#Default-1.0/Begin[Begin]' task 'BeginIn' could not execute successfully.
      Detail:Method: 'BeginIn', Exception: 'Process execution engine execution error.'
      '.
           at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1094)
           at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1280)
           at fuego.server.execution.GlobalAutomaticJMSListeningHelper.executeJmsListener(GlobalAutomaticJMSListeningHelper.java:94)
           at fuego.server.AbstractProcessBean$45.execute(AbstractProcessBean.java:3017)
           at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
           at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
           at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
           at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
           at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
           at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
           at fuego.server.AbstractProcessBean.runGlobalJmsActivity(AbstractProcessBean.java:3023)
           at fuego.server.execution.GlobalJMSExecutor$1.run(GlobalJMSExecutor.java:113)
           at fuego.ejbengine.EJBProcessBean.executeTask(EJBProcessBean.java:147)
           at fuego.server.execution.GlobalJMSExecutor.execute(GlobalJMSExecutor.java:105)
           at fuego.ejbengine.EJBGlobalJMSExecutor.access$400(EJBGlobalJMSExecutor.java:43)
           at fuego.ejbengine.EJBGlobalJMSExecutor$JMSExecutorWorker.run(EJBGlobalJMSExecutor.java:213)
           at java.lang.Thread.run(Thread.java:619)
      Caused by: fuego.papi.exception.ActivityFailedException: Activity '/MyProcess#Default-1.0/Begin[Begin]' task 'BeginIn' could not execute successfully.
      Detail:Method: 'BeginIn', Exception: 'Process execution engine execution error.'

           at fuego.papi.exception.ActivityFailedException.create(ActivityFailedException.java:66)
           at fuego.server.AbstractProcessBean.createActivityFailedException(AbstractProcessBean.java:3690)
           at fuego.server.AbstractProcessBean.internalCreateInstance(AbstractProcessBean.java:4326)
           at fuego.server.AbstractProcessBean._doCreateInstance(AbstractProcessBean.java:3650)
           at fuego.server.AbstractProcessBean.createInstance(AbstractProcessBean.java:665)
           at fuego.server.AbstractProcessBean.createInstance(AbstractProcessBean.java:736)
           at fuego.components.Process.createInstance(Process.java:106)
           at fuego.components.ProcessInstance.create(ProcessInstance.java:392)
           at fuego.components.ProcessInstance.create(ProcessInstance.java:503)
           at oracle.MyProcess.Default_1_0.Instance.CIL_ootaJMSSonumit(Instance.xcdl:12)
           at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1085)
           ... 16 more
      Caused by: fuego.papi.impl.EngineExecutionException: Process execution engine execution error.
           at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:139)
           at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
           at fuego.server.AbstractProcessBean.internalCreateInstance(AbstractProcessBean.java:4320)
           ... 27 more
      Caused by: class fuego.lang.RuntimeExceptionShell ->> fuego.connector.ConnectorException: Connector [TrinityEngine_J2EE_RUNTIME_FUEGOLABS_ARG:SQL:REMOTE_JDBC] caused an exception when getting a resource of type [0].
      Detail:Connector [TrinityEngine_J2EE_RUNTIME_FUEGOLABS_ARG:SQL:REMOTE_JDBC] caused an exception when getting a resource of type [0].

           at fuego.server.service.EngineConnectorService.getConnection(EngineConnectorService.java:581)
           at fuego.server.service.EngineConnectorService.getEngineConnection(EngineConnectorService.java:300)
           at fuego.transaction.TransactionAction.getEngineHandle(TransactionAction.java:179)
           at fuego.server.execution.EngineExecutionContext.getEngineHandle(EngineExecutionContext.java:443)
           at fuego.server.AbstractInstanceService.create(AbstractInstanceService.java:302)
           at fuego.server.execution.microactivity.BeginMicroActivity.createInstance(BeginMicroActivity.java:95)
           at fuego.server.AbstractProcessBean$53.execute(AbstractProcessBean.java:3642)
           at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
           at fuego.transaction.TransactionAction.startNestedTransaction(TransactionAction.java:527)
           at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:548)
           at fuego.transaction.TransactionAction.start(TransactionAction.java:213)
           at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:125)
           at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
           at fuego.server.AbstractProcessBean.internalCreateInstance(AbstractProcessBean.java:4320)
           at fuego.server.AbstractProcessBean._doCreateInstance(AbstractProcessBean.java:3650)
           at fuego.server.AbstractProcessBean.createInstance(AbstractProcessBean.java:665)
           at fuego.server.AbstractProcessBean.createInstance(AbstractProcessBean.java:736)
           at fuego.components.Process.createInstance(Process.java:106)
           at fuego.components.ProcessInstance.create(ProcessInstance.java:392)
           at fuego.components.ProcessInstance.create(ProcessInstance.java:503)
           at oracle.MyProcess.Default_1_0.Instance.CIL_ootaJMSSonumit(Instance.xcdl:12)
           at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1085)
           at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1280)
           at fuego.server.execution.GlobalAutomaticJMSListeningHelper.executeJmsListener(GlobalAutomaticJMSListeningHelper.java:94)
           at fuego.server.AbstractProcessBean$45.execute(AbstractProcessBean.java:3017)
           at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
           at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:472)
           at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
           at fuego.transaction.TransactionAction.start(TransactionAction.java:213)
           at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:125)
           ... 8 more
      Caused by: fuego.connector.ConnectorException: Connector [TrinityEngine_J2EE_RUNTIME_FUEGOLABS_ARG:SQL:REMOTE_JDBC] caused an exception when getting a resource of type [0].
      Detail:Connector [TrinityEngine_J2EE_RUNTIME_FUEGOLABS_ARG:SQL:REMOTE_JDBC] caused an exception when getting a resource of type [0].

           at fuego.connector.ConnectorException.exceptionOnGetResource(ConnectorException.java:95)
           at fuego.connector.ConnectorTransaction.getResource(ConnectorTransaction.java:324)
           at fuego.connector.ConnectorTransaction.getResource(ConnectorTransaction.java:298)
           at fuego.connector.JDBCHelper.getConnection(JDBCHelper.java:41)
           at fuego.server.service.EngineConnectorService.getConnection(EngineConnectorService.java:578)
           at fuego.server.service.EngineConnectorService.getEngineConnection(EngineConnectorService.java:300)
           at fuego.transaction.TransactionAction.getEngineHandle(TransactionAction.java:179)
           at fuego.server.execution.EngineExecutionContext.getEngineHandle(EngineExecutionContext.java:443)
           at fuego.server.AbstractInstanceService.create(AbstractInstanceService.java:302)
           at fuego.server.execution.microactivity.BeginMicroActivity.createInstance(BeginMicroActivity.java:91)
           at fuego.server.AbstractProcessBean$53.execute(AbstractProcessBean.java:3642)
           at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
           at fuego.transaction.TransactionAction.startNestedTransaction(TransactionAction.java:527)
           at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:548)
           at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
           at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
           at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
           at fuego.server.AbstractProcessBean.internalCreateInstance(AbstractProcessBean.java:4320)
           at fuego.server.AbstractProcessBean._doCreateInstance(AbstractProcessBean.java:3650)
           at fuego.server.AbstractProcessBean.createInstance(AbstractProcessBean.java:665)
           at fuego.server.AbstractProcessBean.createInstance(AbstractProcessBean.java:736)
           at fuego.components.Process.createInstance(Process.java:106)
           at fuego.components.ProcessInstance.create(ProcessInstance.java:392)
           at fuego.components.ProcessInstance.create(ProcessInstance.java:503)
           at oracle.MyProcess.Default_1_0.Instance.CIL_ootaJMSSonumit(Instance.xcdl:12)
           at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1085)
           at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1280)
           at fuego.server.execution.GlobalAutomaticJMSListeningHelper.executeJmsListener(GlobalAutomaticJMSListeningHelper.java:94)
           at fuego.server.AbstractProcessBean$45.execute(AbstractProcessBean.java:3017)
           at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
           at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
           at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
           at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
           at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
           ... 8 more
      Caused by: java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators]
           at weblogic.security.service.SecurityServiceManager.seal(Unknown Source)
           at weblogic.security.service.IdentityUtility.authenticatedSubjectToIdentity(Unknown Source)
           at weblogic.security.service.RoleManager.getRoles(Unknown Source)
           at weblogic.security.service.AuthorizationManager.isAccessAllowed(Unknown Source)
           at weblogic.jndi.internal.ServerNamingNode.checkPermission(ServerNamingNode.java:442)
           at weblogic.jndi.internal.ServerNamingNode.checkLookup(ServerNamingNode.java:423)
           at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:180)
           at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
           at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
           at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:380)
           at javax.naming.InitialContext.lookup(InitialContext.java:392)
           at fuego.connector.impl.BaseRemoteConnector.getReferencedObject(BaseRemoteConnector.java:116)
           at fuego.connector.impl.BaseRemoteConnector.getReferencedObject(BaseRemoteConnector.java:107)
           at fuego.connector.impl.RemoteJDBCConnector.getConnection(RemoteJDBCConnector.java:75)
           at fuego.connector.impl.RemoteJDBCConnector.getConnection(RemoteJDBCConnector.java:64)
           at fuego.connector.impl.RemoteJDBCConnector.getResource(RemoteJDBCConnector.java:147)
           at fuego.connector.ConnectorTransaction.getResource(ConnectorTransaction.java:319)
           ... 43 more