web stats
Mirth and Stunnel - Mirth Community

Go Back   Mirth Community > Mirth Connect > General Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 07-11-2014, 05:43 AM
mirraraenn mirraraenn is offline
Mirth Newb
 
Join Date: Jun 2014
Posts: 16
mirraraenn is on a distinguished road
Exclamation Mirth and Stunnel

Hi there, first post and all. I setup Mirth and STunnel about 6 weeks ago and so far the two have played very nicely for sending\receiving HTTPS traffic with no issues whatsoever (using the HTTP Sender). Now I am to the point where I am starting to send query parameters with my HTTP URL when sending to STunnel, only this time Mirth is reporting sender errors and a JavaNULLLPointerException. So far as I can tell, the fault seems to lie with Mirth prematurely closing the stream. Has anyone else encountered this behavior? I've pasted below the full debug logs from STunnel for connections without (working) and with (not working) query parameters.

Working without query parameters
Code:
2014.07.10 10:59:38 LOG7[7328]: Remote socket (FD=364) initialized
2014.07.10 10:59:38 LOG7[7328]: SNI: sending servername: SITENAME
2014.07.10 10:59:38 LOG7[7328]: SSL state (connect): before/connect initialization
2014.07.10 10:59:38 LOG7[7328]: SSL state (connect): SSLv3 write client hello A
2014.07.10 10:59:39 LOG7[7328]: SSL state (connect): SSLv3 read server hello A
2014.07.10 10:59:39 LOG7[7328]: SSL state (connect): SSLv3 read finished A
2014.07.10 10:59:39 LOG7[7328]: SSL state (connect): SSLv3 write change cipher spec A
2014.07.10 10:59:39 LOG7[7328]: SSL state (connect): SSLv3 write finished A
2014.07.10 10:59:39 LOG7[7328]: SSL state (connect): SSLv3 flush data
2014.07.10 10:59:39 LOG7[7328]:    1 items in the session cache
2014.07.10 10:59:39 LOG7[7328]:    2 client connects (SSL_connect())
2014.07.10 10:59:39 LOG7[7328]:    2 client connects that finished
2014.07.10 10:59:39 LOG7[7328]:    0 client renegotiations requested
2014.07.10 10:59:39 LOG7[7328]:    0 server connects (SSL_accept())
2014.07.10 10:59:39 LOG7[7328]:    0 server connects that finished
2014.07.10 10:59:39 LOG7[7328]:    0 server renegotiations requested
2014.07.10 10:59:39 LOG7[7328]:    1 session cache hits
2014.07.10 10:59:39 LOG7[7328]:    0 external session cache hits
2014.07.10 10:59:39 LOG7[7328]:    0 session cache misses
2014.07.10 10:59:39 LOG7[7328]:    0 session cache timeouts
2014.07.10 10:59:39 LOG6[7328]: SSL connected: previous session reused
2014.07.10 10:59:40 LOG7[7328]: SSL_read returned WANT_READ: retrying
2014.07.10 10:59:40 LOG7[7328]: SSL_read returned WANT_READ: retrying
2014.07.10 10:59:40 LOG7[7328]: SSL_read returned WANT_READ: retrying
2014.07.10 10:59:40 LOG7[7328]: SSL_read returned WANT_READ: retrying
2014.07.10 10:59:40 LOG7[7328]: SSL_read returned WANT_READ: retrying
2014.07.10 11:00:11 LOG6[7132]: Read socket closed (readsocket)
2014.07.10 11:00:11 LOG7[7132]: Sending close_notify alert
2014.07.10 11:00:11 LOG7[7132]: SSL alert (write): warning: close notify
2014.07.10 11:00:11 LOG6[7132]: SSL_shutdown successfully sent close_notify alert
2014.07.10 11:00:11 LOG5[7132]: Connection closed: 8680 byte(s) sent to SSL, 10360 byte(s) sent to socket
Not Working with Query Parameters
Code:
2014.07.10 11:05:50 LOG7[5388]: Remote socket (FD=260) initialized
2014.07.10 11:05:50 LOG7[5388]: SNI: sending servername: SITENAME
2014.07.10 11:05:50 LOG7[5388]: SSL state (connect): before/connect initialization
2014.07.10 11:05:50 LOG7[5388]: SSL state (connect): SSLv3 write client hello A
2014.07.10 11:05:50 LOG7[5388]: SSL state (connect): SSLv3 read server hello A
2014.07.10 11:05:51 LOG7[5388]: SSL state (connect): SSLv3 read server certificate A
2014.07.10 11:05:51 LOG7[5388]: SSL state (connect): SSLv3 read server done A
2014.07.10 11:05:51 LOG7[5388]: SSL state (connect): SSLv3 write client key exchange A
2014.07.10 11:05:51 LOG7[5388]: SSL state (connect): SSLv3 write change cipher spec A
2014.07.10 11:05:51 LOG7[5388]: SSL state (connect): SSLv3 write finished A
2014.07.10 11:05:51 LOG7[5388]: SSL state (connect): SSLv3 flush data
2014.07.10 11:05:51 LOG7[5388]: SSL state (connect): SSLv3 read finished A
2014.07.10 11:05:51 LOG7[5388]:    2 items in the session cache
2014.07.10 11:05:51 LOG7[5388]:    3 client connects (SSL_connect())
2014.07.10 11:05:51 LOG7[5388]:    3 client connects that finished
2014.07.10 11:05:51 LOG7[5388]:    0 client renegotiations requested
2014.07.10 11:05:51 LOG7[5388]:    0 server connects (SSL_accept())
2014.07.10 11:05:51 LOG7[5388]:    0 server connects that finished
2014.07.10 11:05:51 LOG7[5388]:    0 server renegotiations requested
2014.07.10 11:05:51 LOG7[5388]:    1 session cache hits
2014.07.10 11:05:51 LOG7[5388]:    0 external session cache hits
2014.07.10 11:05:51 LOG7[5388]:    0 session cache misses
2014.07.10 11:05:51 LOG7[5388]:    0 session cache timeouts
2014.07.10 11:05:51 LOG6[5388]: SSL connected: new session negotiated
2014.07.10 11:05:51 LOG6[5388]: Negotiated TLSv1/SSLv3 ciphersuite: RC4-SHA (128-bit encryption)
2014.07.10 11:05:51 LOG6[5388]: Compression: null, expansion: null
2014.07.10 11:05:58 LOG7[7328]: SSL alert (read): warning: close notify
2014.07.10 11:05:58 LOG6[7328]: SSL closed (SSL_read)
2014.07.10 11:05:58 LOG7[7328]: Sent socket write shutdown
Mirth Error on HTTP Sender using query parameters
Code:
HTTP Sender error
ERROR MESSAGE: Error connecting to HTTP server
java.lang.NullPointerException
	at java.lang.String.<init>(Unknown Source)
	at com.mirth.connect.connectors.http.HttpDispatcher.send(HttpDispatcher.java:195)
	at com.mirth.connect.donkey.server.channel.DestinationConnector.handleSend(DestinationConnector.java:599)
	at com.mirth.connect.donkey.server.channel.DestinationConnector.process(DestinationConnector.java:336)
	at com.mirth.connect.donkey.server.channel.DestinationChain.call(DestinationChain.java:224)
	at com.mirth.connect.donkey.server.channel.Channel.process(Channel.java:1428)
	at com.mirth.connect.donkey.server.channel.Channel.dispatchRawMessage(Channel.java:956)
	at com.mirth.connect.donkey.server.channel.SourceConnector.dispatchRawMessage(SourceConnector.java:175)
	at com.mirth.connect.donkey.server.channel.SourceConnector.dispatchRawMessage(SourceConnector.java:152)
	at com.mirth.connect.connectors.jdbc.DatabaseReceiver.processRecord(DatabaseReceiver.java:198)
	at com.mirth.connect.connectors.jdbc.DatabaseReceiver.processResultSet(DatabaseReceiver.java:164)
	at com.mirth.connect.connectors.jdbc.DatabaseReceiver.poll(DatabaseReceiver.java:121)
	at com.mirth.connect.donkey.server.channel.PollConnector$PollConnectorTask.run(PollConnector.java:141)
	at java.util.TimerThread.mainLoop(Unknown Source)
	at java.util.TimerThread.run(Unknown Source)
Reply With Quote
Reply

Tags
http, parameter, query, sender, stunnel

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 08:42 PM.


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