java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • This strange issue happened on a channel that has multiple destinations in wich some use the defualt resource and others don't. Somehow this particular connector (wich uses the default resource) always throws this error. I was able to solve it by setting the default resource on the channel level. By looking at .DestinationChain ln 179 I was able to see that props.getResourceIds() is likely returning null. {code} 2015-07-16 12:28:07,955] ERROR (com.mirth.connect.donkey.server.channel.DestinationChain:179): Error processing destination MFN^M13_Add_General.mconn for channel 1f566e6d-3e35-479b-8146-e2fa043d5d36. java.lang.NullPointerException at java.util.LinkedHashSet.<init>(LinkedHashSet.java:168) at com.mirth.connect.donkey.model.channel.DestinationConnectorProperties.<init>(DestinationConnectorProperties.java:67) at com.mirth.connect.connectors.tcp.TcpDispatcherProperties.<init>(TcpDispatcherProperties.java:78) at com.mirth.connect.connectors.tcp.TcpDispatcherProperties.clone(TcpDispatcherProperties.java:266) at com.mirth.connect.donkey.server.channel.DestinationConnector.process(DestinationConnector.java:411) at com.mirth.connect.donkey.server.channel.DestinationChain.call(DestinationChain.java:155) at com.mirth.connect.donkey.server.channel.Channel.process(Channel.java:1656) at com.mirth.connect.donkey.server.channel.Channel.dispatchRawMessage(Channel.java:1155) at com.mirth.connect.donkey.server.channel.SourceConnector.dispatchRawMessage(SourceConnector.java:191) at com.mirth.connect.server.controllers.DonkeyEngineController.dispatchRawMessage(DonkeyEngineController.java:517) at com.mirth.connect.server.controllers.DonkeyMessageController.reprocessMessages(DonkeyMessageController.java:437) at com.mirth.connect.server.servlets.MessageObjectServlet$1.run(MessageObjectServlet.java:169) at java.lang.Thread.run(Thread.java:745) {code}
    via by Hugo Soares,
  • This strange issue happened on a channel that has multiple destinations in wich some use the defualt resource and others don't. Somehow this particular connector (wich uses the default resource) always throws this error. I was able to solve it by setting the default resource on the channel level. By looking at .DestinationChain ln 179 I was able to see that props.getResourceIds() is likely returning null. {code} 2015-07-16 12:28:07,955] ERROR (com.mirth.connect.donkey.server.channel.DestinationChain:179): Error processing destination MFN^M13_Add_General.mconn for channel 1f566e6d-3e35-479b-8146-e2fa043d5d36. java.lang.NullPointerException at java.util.LinkedHashSet.<init>(LinkedHashSet.java:168) at com.mirth.connect.donkey.model.channel.DestinationConnectorProperties.<init>(DestinationConnectorProperties.java:67) at com.mirth.connect.connectors.tcp.TcpDispatcherProperties.<init>(TcpDispatcherProperties.java:78) at com.mirth.connect.connectors.tcp.TcpDispatcherProperties.clone(TcpDispatcherProperties.java:266) at com.mirth.connect.donkey.server.channel.DestinationConnector.process(DestinationConnector.java:411) at com.mirth.connect.donkey.server.channel.DestinationChain.call(DestinationChain.java:155) at com.mirth.connect.donkey.server.channel.Channel.process(Channel.java:1656) at com.mirth.connect.donkey.server.channel.Channel.dispatchRawMessage(Channel.java:1155) at com.mirth.connect.donkey.server.channel.SourceConnector.dispatchRawMessage(SourceConnector.java:191) at com.mirth.connect.server.controllers.DonkeyEngineController.dispatchRawMessage(DonkeyEngineController.java:517) at com.mirth.connect.server.controllers.DonkeyMessageController.reprocessMessages(DonkeyMessageController.java:437) at com.mirth.connect.server.servlets.MessageObjectServlet$1.run(MessageObjectServlet.java:169) at java.lang.Thread.run(Thread.java:745) {code}
    via by Hugo Soares,
  • This appears to be the same as MIRTH-3749, but it *is* happening on Mirth 3.2.2.7694. The channel has multiple destinations, some work, some produce the error below. The destination that errors had been exported/imported from another channel. As with issue 3749, I was able to solve it by setting the default resource on the channel level. ERROR 2015-07-29 11:04:27,567 [Thread-25] com.mirth.connect.donkey.server.channel.DestinationChain: Error processing destination ORM for channel 007f0b33-4727-4304-84da-0f25fc403c4c. java.lang.NullPointerException at java.util.LinkedHashSet.<init>(Unknown Source) at com.mirth.connect.donkey.model.channel.DestinationConnectorProperties.<init>(DestinationConnectorProperties.java:67) at com.mirth.connect.connectors.js.JavaScriptDispatcherProperties.<init>(JavaScriptDispatcherProperties.java:36) at com.mirth.connect.connectors.js.JavaScriptDispatcherProperties.clone(JavaScriptDispatcherProperties.java:71) at com.mirth.connect.donkey.server.channel.DestinationConnector.process(DestinationConnector.java:402) at com.mirth.connect.donkey.server.channel.DestinationChain.call(DestinationChain.java:155) at com.mirth.connect.donkey.server.channel.Channel.process(Channel.java:1656) at com.mirth.connect.donkey.server.channel.Channel.dispatchRawMessage(Channel.java:1155) at com.mirth.connect.donkey.server.channel.SourceConnector.dispatchRawMessage(SourceConnector.java:191) at com.mirth.connect.server.controllers.DonkeyEngineController.dispatchRawMessage(DonkeyEngineController.java:517) at com.mirth.connect.server.controllers.DonkeyMessageController.reprocessMessages(DonkeyMessageController.java:437) at com.mirth.connect.server.servlets.MessageObjectServlet$1.run(MessageObjectServlet.java:169) at java.lang.Thread.run(Unknown Source)
    via by Mark Brighton,
  • This appears to be the same as MIRTH-3749, but it *is* happening on Mirth 3.2.2.7694. The channel has multiple destinations, some work, some produce the error below. The destination that errors had been exported/imported from another channel. As with issue 3749, I was able to solve it by setting the default resource on the channel level. ERROR 2015-07-29 11:04:27,567 [Thread-25] com.mirth.connect.donkey.server.channel.DestinationChain: Error processing destination ORM for channel 007f0b33-4727-4304-84da-0f25fc403c4c. java.lang.NullPointerException at java.util.LinkedHashSet.<init>(Unknown Source) at com.mirth.connect.donkey.model.channel.DestinationConnectorProperties.<init>(DestinationConnectorProperties.java:67) at com.mirth.connect.connectors.js.JavaScriptDispatcherProperties.<init>(JavaScriptDispatcherProperties.java:36) at com.mirth.connect.connectors.js.JavaScriptDispatcherProperties.clone(JavaScriptDispatcherProperties.java:71) at com.mirth.connect.donkey.server.channel.DestinationConnector.process(DestinationConnector.java:402) at com.mirth.connect.donkey.server.channel.DestinationChain.call(DestinationChain.java:155) at com.mirth.connect.donkey.server.channel.Channel.process(Channel.java:1656) at com.mirth.connect.donkey.server.channel.Channel.dispatchRawMessage(Channel.java:1155) at com.mirth.connect.donkey.server.channel.SourceConnector.dispatchRawMessage(SourceConnector.java:191) at com.mirth.connect.server.controllers.DonkeyEngineController.dispatchRawMessage(DonkeyEngineController.java:517) at com.mirth.connect.server.controllers.DonkeyMessageController.reprocessMessages(DonkeyMessageController.java:437) at com.mirth.connect.server.servlets.MessageObjectServlet$1.run(MessageObjectServlet.java:169) at java.lang.Thread.run(Unknown Source)
    via by Mark Brighton,
    • java.lang.NullPointerException at java.util.LinkedHashSet.<init>(LinkedHashSet.java:168) at com.mirth.connect.donkey.model.channel.DestinationConnectorProperties.<init>(DestinationConnectorProperties.java:67) at com.mirth.connect.connectors.tcp.TcpDispatcherProperties.<init>(TcpDispatcherProperties.java:78) at com.mirth.connect.connectors.tcp.TcpDispatcherProperties.clone(TcpDispatcherProperties.java:266) at com.mirth.connect.donkey.server.channel.DestinationConnector.process(DestinationConnector.java:411) at com.mirth.connect.donkey.server.channel.DestinationChain.call(DestinationChain.java:155) at com.mirth.connect.donkey.server.channel.Channel.process(Channel.java:1656) at com.mirth.connect.donkey.server.channel.Channel.dispatchRawMessage(Channel.java:1155) at com.mirth.connect.donkey.server.channel.SourceConnector.dispatchRawMessage(SourceConnector.java:191) at com.mirth.connect.server.controllers.DonkeyEngineController.dispatchRawMessage(DonkeyEngineController.java:517) at com.mirth.connect.server.controllers.DonkeyMessageController.reprocessMessages(DonkeyMessageController.java:437) at com.mirth.connect.server.servlets.MessageObjectServlet$1.run(MessageObjectServlet.java:169) at java.lang.Thread.run(Thread.java:745)
    No Bugmate found.