Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
4 replies Latest Post - ‏2011-11-29T14:21:47Z by GWReeves
aandrzej
aandrzej
2 Posts
ACCEPTED ANSWER

Pinned topic JRules 7.01 with WPS 6.2 - DecisionServiceException

‏2010-02-09T23:27:18Z |
Hello

I have set up an environment with WPS 6.2 and ILOG RES 7.0.1. WPS and RES components sit on top of the single WAS server (6.1.0.23). I have verified the installation using the wizard in the RES admin console. In order to test the environment I have also deployed business process application and rule application used by that process. Process application uses decision service SCA component to communicate with the RES server. When I run my process I receive following exception:
2/9/10 12:23:07:421 CST 00000077 Core E CWSCA2001E: The SCA message-driven bean returned the following exception: "com.ibm.websphere.sca.ServiceRuntimeException: caused by: ilog.connector.ibm.runtime.exception.DecisionServiceException: An error occurred while the rule session was created.:
ilog.rules.res.session.IlrSessionCreationException: ilog.rules.res.session, Message code: 10044
ilog.rules.res.util.IlrRemoteException: Name comp/env/eis not found in context "java:".
".
2/9/10 12:23:07:593 CST 00000077 Recovery I com.ibm.wbiserver.manualrecovery.ext.ESExtensionImpl getESUtilFactory Initialized ESUtilFactory:com.ibm.wbiserver.sequencing.util.SPIUtil
2/9/10 12:23:07:593 CST 00000077 Recovery I com.ibm.wbiserver.manualrecovery.ejb.RecoveryMDBHelper getESExtension initialized esUtil:com.ibm.wbiserver.manualrecovery.ext.ESExtensionImpl
2/9/10 12:23:09:828 CST 00000077 ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "onMessage" on bean "BeanId(Validation_implApp#Validation_implEJB.jar#ServiceSIBusMessageBean, null)". Exception data: ilog.connector.ibm.runtime.exception.DecisionServiceException: An error occurred while the rule session was created.:
ilog.rules.res.session.IlrSessionCreationException: ilog.rules.res.session, Message code: 10044
ilog.rules.res.util.IlrRemoteException: Name comp/env/eis not found in context "java:".

at processes.verifyrequestor.VerifyEnrollmentRequest.EnrollmentValidation(VerifyEnrollmentRequest.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.ibm.ws.sca.internal.java.handler.JavaReflectionAdapter$2.run(JavaReflectionAdapter.java:152)
at java.security.AccessController.doPrivileged(AccessController.java:197)
at com.ibm.ws.sca.internal.java.handler.JavaReflectionAdapter.invoke(JavaReflectionAdapter.java:149)
at com.ibm.ws.sca.internal.java.handler.JavaImplementationHandler.invokeSync(JavaImplementationHandler.java:447)
at com.ibm.ws.sca.internal.java.handler.JavaImplementationHandler.processMessage(JavaImplementationHandler.java:306)
at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1287)
at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process(ManagedMessageImpl.java:834)
at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.processUOWMessage(ModuleSessionBean.java:336)
at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.transactionNotSupportedActivitySessionSupports(ModuleSessionBean.java:283)
at com.ibm.wsspi.sca.ejb.module.EJSLocalStatelessModule_43132892.transactionNotSupportedActivitySessionSupports(EJSLocalStatelessModule_43132892.java:199)
at com.ibm.ws.sca.internal.uow.handler.UOWStrategyImpl.transactionLocalActivitySessionAny(UOWStrategyImpl.java:411)
at com.ibm.ws.sca.internal.uow.handler.JoinUOWHandler.processMessage(JoinUOWHandler.java:134)
at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1298)
at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process(ManagedMessageImpl.java:834)
at com.ibm.ws.sca.internal.async.impl.AbstractAsyncInboundHandler.processMessage(AbstractAsyncInboundHandler.java:122)
at com.ibm.wsspi.sca.async.bean.impl.ServiceSIBusMessageBean.processMessage(ServiceSIBusMessageBean.java:282)
at com.ibm.wsspi.sca.async.bean.impl.ServiceSIBusMessageBean.access$000(ServiceSIBusMessageBean.java:54)
at com.ibm.wsspi.sca.async.bean.impl.ServiceSIBusMessageBean$1.onMessage(ServiceSIBusMessageBean.java:79)
at com.ibm.wbiserver.manualrecovery.ejb.RecoveryMDBHandler.processMessage(RecoveryMDBHandler.java:126)
at com.ibm.wbiserver.manualrecovery.ejb.RecoveryMDBHandler.onMessage(RecoveryMDBHandler.java:82)
at com.ibm.wsspi.sca.async.bean.impl.ServiceSIBusMessageBean.onMessage(ServiceSIBusMessageBean.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.ibm.ejs.container.MessageEndpointHandler.invokeMdbMethod(MessageEndpointHandler.java:1018)
at com.ibm.ejs.container.MessageEndpointHandler.invoke(MessageEndpointHandler.java:747)
at $Proxy19.onMessage(Unknown Source)
at com.ibm.ws.sib.ra.inbound.impl.SibRaEndpointInvokerImpl.invokeEndpoint(SibRaEndpointInvokerImpl.java:156)
at com.ibm.ws.sib.ra.inbound.impl.SibRaDispatcher.dispatch(SibRaDispatcher.java:788)
at com.ibm.ws.sib.ra.inbound.impl.SibRaSingleProcessListener$SibRaWork.run(SibRaSingleProcessListener.java:585)
at com.ibm.ejs.j2c.work.WorkProxy.run(WorkProxy.java:419)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)

SCA context:
Interaction: invokeAsyncWithCallback,EnrollmentValidation => {Validation_impl}VerifyEnrollmentRequest.component
Handler: com/ibm/ws/sca/internal/java/handler/JavaImplementationHandler (com.ibm.ws.sca.internal.java.handler.JavaImplementationHandler,com/ibm/wsspi/sca/extensions/ImplementationGroup2)

Wrapped by:
com.ibm.websphere.sca.ServiceRuntimeException: caused by: ilog.connector.ibm.runtime.exception.DecisionServiceException: An error occurred while the rule session was created.:
ilog.rules.res.session.IlrSessionCreationException: ilog.rules.res.session, Message code: 10044
ilog.rules.res.util.IlrRemoteException: Name comp/env/eis not found in context "java:".

at com.ibm.wsspi.sca.async.bean.impl.ServiceSIBusMessageBean.processMessage(ServiceSIBusMessageBean.java:336)
at com.ibm.wsspi.sca.async.bean.impl.ServiceSIBusMessageBean.access$000(ServiceSIBusMessageBean.java:54)
at com.ibm.wsspi.sca.async.bean.impl.ServiceSIBusMessageBean$1.onMessage(ServiceSIBusMessageBean.java:79)
at com.ibm.wbiserver.manualrecovery.ejb.RecoveryMDBHandler.processMessage(RecoveryMDBHandler.java:126)
at com.ibm.wbiserver.manualrecovery.ejb.RecoveryMDBHandler.onMessage(RecoveryMDBHandler.java:82)
at com.ibm.wsspi.sca.async.bean.impl.ServiceSIBusMessageBean.onMessage(ServiceSIBusMessageBean.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.ibm.ejs.container.MessageEndpointHandler.invokeMdbMethod(MessageEndpointHandler.java:1018)
at com.ibm.ejs.container.MessageEndpointHandler.invoke(MessageEndpointHandler.java:747)
at $Proxy19.onMessage(Unknown Source)
at com.ibm.ws.sib.ra.inbound.impl.SibRaEndpointInvokerImpl.invokeEndpoint(SibRaEndpointInvokerImpl.java:156)
at com.ibm.ws.sib.ra.inbound.impl.SibRaDispatcher.dispatch(SibRaDispatcher.java:788)
at com.ibm.ws.sib.ra.inbound.impl.SibRaSingleProcessListener$SibRaWork.run(SibRaSingleProcessListener.java:585)
at com.ibm.ejs.j2c.work.WorkProxy.run(WorkProxy.java:419)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
Caused by: ilog.connector.ibm.runtime.exception.DecisionServiceException: An error occurred while the rule session was created.:
ilog.rules.res.session.IlrSessionCreationException: ilog.rules.res.session, Message code: 10044
ilog.rules.res.util.IlrRemoteException: Name comp/env/eis not found in context "java:".

at processes.verifyrequestor.VerifyEnrollmentRequest.EnrollmentValidation(VerifyEnrollmentRequest.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.ibm.ws.sca.internal.java.handler.JavaReflectionAdapter$2.run(JavaReflectionAdapter.java:152)
at java.security.AccessController.doPrivileged(AccessController.java:197)
at com.ibm.ws.sca.internal.java.handler.JavaReflectionAdapter.invoke(JavaReflectionAdapter.java:149)
at com.ibm.ws.sca.internal.java.handler.JavaImplementationHandler.invokeSync(JavaImplementationHandler.java:447)
at com.ibm.ws.sca.internal.java.handler.JavaImplementationHandler.processMessage(JavaImplementationHandler.java:306)
at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1287)
at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process(ManagedMessageImpl.java:834)
at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.processUOWMessage(ModuleSessionBean.java:336)
at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.transactionNotSupportedActivitySessionSupports(ModuleSessionBean.java:283)
at com.ibm.wsspi.sca.ejb.module.EJSLocalStatelessModule_43132892.transactionNotSupportedActivitySessionSupports(EJSLocalStatelessModule_43132892.java:199)
at com.ibm.ws.sca.internal.uow.handler.UOWStrategyImpl.transactionLocalActivitySessionAny(UOWStrategyImpl.java:411)
at com.ibm.ws.sca.internal.uow.handler.JoinUOWHandler.processMessage(JoinUOWHandler.java:134)
at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1298)
at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process(ManagedMessageImpl.java:834)
at com.ibm.ws.sca.internal.async.impl.AbstractAsyncInboundHandler.processMessage(AbstractAsyncInboundHandler.java:122)
at com.ibm.wsspi.sca.async.bean.impl.ServiceSIBusMessageBean.processMessage(ServiceSIBusMessageBean.java:282)
... 17 more

I would appreciate any advice on what could be the cause of that problem.

Thank you.
Updated on 2011-11-29T14:21:47Z at 2011-11-29T14:21:47Z by GWReeves
  • SystemAdmin
    SystemAdmin
    945 Posts
    ACCEPTED ANSWER

    Re: JRules 7.01 with WPS 6.2 - DecisionServiceException

    ‏2010-02-10T09:50:20Z  in response to aandrzej
    Hi aandrzej,

    Are you using IlrPOJOSessionFactory?
    In this case, be sure that your did not miss to reference the XU in your descriptors.

    Hope this helps,

    Nicol@s
    • aandrzej
      aandrzej
      2 Posts
      ACCEPTED ANSWER

      Re: JRules 7.01 with WPS 6.2 - DecisionServiceException

      ‏2010-02-10T17:40:26Z  in response to SystemAdmin
      That was the problem. For some reason I have lost resource reference to connection factory.

      Thanks a lot,
      Andrzej
      • dipu_techy
        dipu_techy
        1 Post
        ACCEPTED ANSWER

        Re: JRules 7.01 with WPS 6.2 - DecisionServiceException

        ‏2010-06-17T09:28:12Z  in response to aandrzej
        Hi I am also facing the same issue as mentioned above , where do you actually added the XU reference.
        In my case i added the XU reference in the web.xml . Still does not work , please advice.
        • GWReeves
          GWReeves
          2 Posts
          ACCEPTED ANSWER

          Re: JRules 7.01 with WPS 6.2 - DecisionServiceException

          ‏2011-11-29T14:21:47Z  in response to dipu_techy
          Hi,
          I'm having the same problem. Did anyone answer you question of where to add the XU reference?
          Thanks