web stats
Mirth 3.2.2 http sender error - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 10-22-2017, 11:46 PM
Tom123 Tom123 is offline
Mirth Newb
 
Join Date: Feb 2016
Posts: 8
Tom123 is on a distinguished road
Default Mirth 3.2.2 http sender error

I use Mirth 3.2.2.

I have channel which sends xml-message to another system.
I use http sender connector type


This channel sends many messages during day (hundreds), but sometimes (some messages/month) there is this kind of error in channel.




Errors: Processing error =

HTTP Sender error
org.mule.umo.routing.RoutingException: Failed to transform message before applying the filter. Failed to route event via endpoint: ImmutableMuleEndpoint{connector=com.mirth.connect. connectors.http.HttpConnector@4b482924, endpointUri=http://0.0.0.0:12046, transformer=Transformer{name='032126f6-a340-4cde-987f-76ea4ef13c00_source_preprocessor', returnClass=false, returnClass=false, sourceTypes=[]}, name='_httpEndpoint#475360884', type='receiver', properties={}, transactionConfig=org.mule.impl.MuleTransactionCon fig@6c1fe3f4, filter=null, deleteUnacceptedMessages=false, initialised=true, securityFilter=null, synchronous=true, initialState=started, createConnector=0}. Message payload is of type: java.lang.String
at org.mule.routing.inbound.SelectiveConsumer.isMatch (SelectiveConsumer.java:64)
at org.mule.routing.inbound.InboundMessageRouter.rout e(InboundMessageRouter.java:79)
at org.mule.providers.AbstractMessageReceiver$Default InternalMessageListener.onMessage(AbstractMessageR eceiver.java:487)
at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:266)
at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:225)
at com.mirth.connect.connectors.http.HttpMessageRecei ver.processData(HttpMessageReceiver.java:182)
at com.mirth.connect.connectors.http.HttpMessageRecei ver.access$400(HttpMessageReceiver.java:49)
at com.mirth.connect.connectors.http.HttpMessageRecei ver$RequestHandler.handle(HttpMessageReceiver.java :67)
at org.eclipse.jetty.server.handler.ContextHandler.do Handle(ContextHandler.java:943)
at org.eclipse.jetty.server.handler.ContextHandler.do Scope(ContextHandler.java:879)
at org.eclipse.jetty.server.handler.ScopedHandler.han dle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.HandlerWrapper.ha ndle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java :349)
at org.eclipse.jetty.server.HttpConnection.handleRequ est(HttpConnection.java:441)
at org.eclipse.jetty.server.HttpConnection$RequestHan dler.content(HttpConnection.java:936)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpPa rser.java:801)
at org.eclipse.jetty.http.HttpParser.parseAvailable(H ttpParser.java:224)
at org.eclipse.jetty.server.BlockingHttpConnection.ha ndle(BlockingHttpConnection.java:50)
at org.eclipse.jetty.server.bio.SocketConnector$Conne ctorEndPoint.run(SocketConnector.java:245)
at org.eclipse.jetty.util.thread.QueuedThreadPool.run Job(QueuedThreadPool.java:598)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.r un(QueuedThreadPool.java:533)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.mule.umo.transformer.TransformerException: java.lang.StringIndexOutOfBoundsException: String index out of range: -2 (com.mirth.connect.server.mule.adaptors.AdaptorExc eption)
at com.mirth.connect.server.mule.transformers.JavaScr iptTransformer.transform(JavaScriptTransformer.jav a:284)
at org.mule.transformers.AbstractEventAwareTransforme r.doTransform(AbstractEventAwareTransformer.java:4 8)
at org.mule.transformers.AbstractTransformer.transfor m(AbstractTransformer.java:197)
at org.mule.transformers.AbstractTransformer.transfor m(AbstractTransformer.java:200)
at org.mule.impl.MuleEvent.getTransformedMessage(Mule Event.java:251)
at org.mule.routing.inbound.SelectiveConsumer.isMatch (SelectiveConsumer.java:61)
... 21 more
Caused by: com.mirth.connect.server.mule.adaptors.AdaptorExce ption: java.lang.StringIndexOutOfBoundsException: String index out of range: -2
at com.mirth.connect.server.mule.adaptors.Adaptor.han dleException(Adaptor.java:89)
at com.mirth.connect.server.mule.adaptors.XMLAdaptor. populateMessage(XMLAdaptor.java:36)
at com.mirth.connect.server.mule.adaptors.Adaptor.get Message(Adaptor.java:61)
at com.mirth.connect.server.mule.transformers.JavaScr iptTransformer.transform(JavaScriptTransformer.jav a:255)
... 26 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -2
at java.lang.String.substring(String.java:1937)
at com.mirth.connect.server.mule.adaptors.XMLAdaptor. getNodeNameFromXMLString(XMLAdaptor.java:59)
at com.mirth.connect.server.mule.adaptors.XMLAdaptor. populateMessage(XMLAdaptor.java:33)
... 28 more


Sent Message is like this

URL: http://xxx.xxx.xxx:yyy
METHOD: POST

[HEADERS]

[PARAMETERS]

[CONTENT]

Response status = ERROR: Received error response from HTTP server.

What is the real reason of this kind of error
Attached Images
File Type: png HttpSender_Channel.PNG (114.7 KB, 12 views)

Last edited by Tom123; 10-23-2017 at 03:17 AM. Reason: added more data
Reply With Quote
Reply

Tags
http sender

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:23 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation