2 Replies Latest reply on Dec 9, 2009 7:41 AM by CraigLeonard

    Using Active MQ with ES2 Turnkey

    CraigLeonard Level 1

      I'm trying to send a JMS message from an ES2 workflow, and have hit a problem I just can't solve.  I've embedded an ActiveMQ broker in JBoss, and exposed it through the JNDI context (I followed the instructions here: http://activemq.apache.org/integrating-apache-activemq-with-jboss.html).  In workbench, I'm able to see both my Queue and QueueConenctionFactory via JNDI, and have used them to configure a 'Send Message To Queue' process.  Whenever I run the process, however, I see the following trace in the logs:

       

      2009-12-09 11:46:12,058 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException in method: public abstract java.lang.Object com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterLocal.doSupports(c om.adobe.idp.dsc.transaction.TransactionDefinition,com.adobe.idp.dsc.transaction.Transacti onCallback) throws com.adobe.idp.dsc.DSCException, causedBy:
      java.lang.NullPointerException
      at com.adobe.livecycle.jms.JMSService.sendMessageToQueue(JMSService.java:251)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)
      at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)
      at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
      at com.adobe.idp.dsc.interceptor.impl.DocumentPassivationInterceptor.intercept(DocumentPassi vationInterceptor.java:53)
      at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
      at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
      at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTr ansactionCMTAdapterBean.java:357)
      at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports(Ej bTransactionCMTAdapterBean.java:227)

       

      To try and debug the problem, I added a BeanShell script before the send operation to validate that the QCF is available in JNDI - this appears to be the case.

       

      Any thoughts?