Announcement

Collapse
No announcement yet.

ActiveMQ JMS Error - Not Sure What To Do About It

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ActiveMQ JMS Error - Not Sure What To Do About It

    Hi All!

    I'm relatively new to Mirth. I've been playing around with getting a simple LLP to JMS writer to work and find myself stuck and scratching my head as to where to look to get unstuck.

    The good news is that when I deploy the LLP to JMS writer it actually deploys and actually runs! (Yay!!) It successfully receives the message (I can see it in the Channel Messages area) but it errors off for Destination 1 with a Null Pointer error. Here's my config for the JMS Writer destination (I'm using version 4.1.1 of Apache's ActiveMQ - and yes - it was successfully started before I attempted to deploy the LLP to JMS Writer channel):

    JNDI Provider URL: tcp://localhost:61616
    JNDI Initial Context Factory: org.apache.activemq.jndi.ActiveMQInitialContextFac tory
    Connection Factory JNDI Name: TopicConnectionFactory
    Destination: MyTopic

    Template: ${message.rawData}

    In the Destination's transformer under Incoming Message I have an HL7 Message (below) with the parser properties "Use Strict Parser" unchecked (i.e. off). Here's the HL7 Message I pasted into the Incoming Data area (don't worry it's test data):

    MSH|^~\&|HBOC|MUOT|HCLL|MUOT|200704051153||ADT^A08 |19377098|D|2.3|19377098||AL||
    EVN|A08|200704051153||
    PID||00740437|00798761^^^A|40640~A121040|SHERYL^DI SASTER^^||19270908|M||2|PO BOX 234^LINE TWO FOR TESTING^GRAND RAPIDS^OH^43522^US^C^WOOD|WOOD|||ENGLISH^4^|W|AOG^ ^|0709500007^^^A|011-03-3030|
    PV1||O|C1^^^A^^^|3|||57375^MUTGI^ANAND^^^^MD|57375 ^MUTGI^ANAND^^^^MD|""|MED||||1|||57375^MUTGI^ANAND ^^^^MD|CLN&&A|0709500007^^^A|OH||||||||||||||||||| A|||||200704051040|||||

    Here's the text of the error I'm receiving:

    ERROR-407: JMS Connector error
    ERROR MESSAGE: Jms Error
    org.mule.umo.transformer.TransformerException: null (java.lang.NullPointerException)
    at com.webreach.mirth.server.mule.providers.jms.trans formers.AbstractJmsTransformer.transformToMessage( AbstractJmsTransformer.java:150)
    at com.webreach.mirth.server.mule.providers.jms.trans formers.MessageObjectToJMSMessage.doTransform(Mess ageObjectToJMSMessage.java:32)
    at com.webreach.mirth.server.mule.providers.jms.JmsMe ssageDispatcher.dispatchMessage(JmsMessageDispatch er.java:118)
    at com.webreach.mirth.server.mule.providers.jms.JmsMe ssageDispatcher.doSend(JmsMessageDispatcher.java:2 44)
    at org.mule.providers.AbstractMessageDispatcher.send( AbstractMessageDispatcher.java:166)
    at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:191)
    at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:130)
    at org.mule.routing.outbound.AbstractOutboundRouter.s end(AbstractOutboundRouter.java:85)
    at org.mule.routing.outbound.FilteringMulticastingRou ter.route(FilteringMulticastingRouter.java:89)
    at org.mule.routing.outbound.OutboundMessageRouter$1. doInTransaction(OutboundMessageRouter.java:78)
    at org.mule.transaction.TransactionTemplate.execute(T ransactionTemplate.java:48)
    at org.mule.routing.outbound.OutboundMessageRouter.ro ute(OutboundMessageRouter.java:82)
    at org.mule.impl.model.DefaultMuleProxy.onCall(Defaul tMuleProxy.java:247)
    at org.mule.impl.model.seda.SedaComponent.doSend(Seda Component.java:209)
    at org.mule.impl.model.AbstractComponent.sendEvent(Ab stractComponent.java:277)
    at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:201)
    at org.mule.routing.inbound.InboundMessageRouter.send (InboundMessageRouter.java:161)
    at org.mule.routing.inbound.InboundMessageRouter.rout e(InboundMessageRouter.java:128)
    at org.mule.providers.AbstractMessageReceiver$Default InternalMessageListener.onMessage(AbstractMessageR eceiver.java:492)
    at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:271)
    at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:243)
    at com.webreach.mirth.server.mule.providers.mllp.Mllp MessageReceiver$TcpWorker.processData(MllpMessageR eceiver.java:312)
    at com.webreach.mirth.server.mule.providers.mllp.Mllp MessageReceiver$TcpWorker.run(MllpMessageReceiver. java:278)
    at org.mule.impl.work.WorkerContext.run(WorkerContext .java:290)
    at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.runTask(ThreadPoolExecutor. java:650)
    at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.run(ThreadPoolExecutor.java :675)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
    at com.webreach.mirth.server.mule.providers.jms.trans formers.AbstractJmsTransformer.transformToMessage( AbstractJmsTransformer.java:105)
    ... 26 more

    Any pointers on where to go from here would be greatly appreciated!!!!

    Thanks in Advance!!!!

    Bob D.
    Bob Dilworth
    University of Toledo Medical Center
    Toledo, Ohio

  • #2
    Re: ActiveMQ JMS Error - Not Sure What To Do About It

    This is a known issue and will be fixed in 1.4.1 (a patch will probably also be released on the the site).

    -Chris
    Chris Lang

    Comment


    • #3
      Re: ActiveMQ JMS Error - Not Sure What To Do About It

      OK - Cool! Thanks!!!!!!!!!!!!!!!!!!

      Bob D.
      Bob Dilworth
      University of Toledo Medical Center
      Toledo, Ohio

      Comment

      Working...
      X