No announcement yet.

ActiveMQ JMS Error - Not Sure What To Do About It

  • 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||
    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(
    at com.webreach.mirth.server.mule.providers.jms.trans formers.MessageObjectToJMSMessage.doTransform(Mess
    at com.webreach.mirth.server.mule.providers.jms.JmsMe ssageDispatcher.dispatchMessage(JmsMessageDispatch
    at com.webreach.mirth.server.mule.providers.jms.JmsMe ssageDispatcher.doSend( 44)
    at org.mule.providers.AbstractMessageDispatcher.send(
    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(
    at org.mule.routing.outbound.FilteringMulticastingRou ter.route(
    at org.mule.routing.outbound.OutboundMessageRouter$1. doInTransaction(
    at org.mule.transaction.TransactionTemplate.execute(T
    at ute(
    at org.mule.impl.model.DefaultMuleProxy.onCall(Defaul
    at org.mule.impl.model.seda.SedaComponent.doSend(Seda
    at org.mule.impl.model.AbstractComponent.sendEvent(Ab
    at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:201)
    at org.mule.routing.inbound.InboundMessageRouter.send (
    at org.mule.routing.inbound.InboundMessageRouter.rout e(
    at org.mule.providers.AbstractMessageReceiver$Default InternalMessageListener.onMessage(AbstractMessageR
    at org.mule.providers.AbstractMessageReceiver.routeMe ssage(
    at org.mule.providers.AbstractMessageReceiver.routeMe ssage(
    at com.webreach.mirth.server.mule.providers.mllp.Mllp MessageReceiver$TcpWorker.processData(MllpMessageR
    at com.webreach.mirth.server.mule.providers.mllp.Mllp MessageReceiver$ java:278)
    at .java:290)
    at eadPoolExecutor$Worker.runTask(ThreadPoolExecutor. java:650)
    at eadPoolExecutor$ :675)
    at Source)
    Caused by: java.lang.NullPointerException
    at com.webreach.mirth.server.mule.providers.jms.trans formers.AbstractJmsTransformer.transformToMessage(
    ... 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 Lang


    • #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