web stats
HTTP Sender Connector - MC 3.5.1 vs MC 3.6.2 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 07-02-2019, 10:11 AM
phatneff phatneff is offline
Mirth Guru
 
Join Date: Jun 2014
Location: Cincinnati, OH
Posts: 179
phatneff is on a distinguished road
Send a message via AIM to phatneff
Default HTTP Sender Connector - MC 3.5.1 vs MC 3.6.2

We have a channel on MC 3.5.1 that contains two HTTP Sender destination connectors. The first one is a POST to get an login authorization token from the destination and the second one is another POST that sends the HL7 message to the destination. This works great. The receiving system gets the messages and sends an ACK back to Mirth.

We have also installed MC 3.6.2 on the same server but with a separate service to run the 3.6.2 instance. The channel mentioned above was imported and has all of the same settings as the 3.5.1 version. However, when the message reaches the destination connector, it queues in both of the HTTP Sender destinations with this error for each:

HTTP Sender error
ERROR MESSAGE: Error connecting to HTTP server
java.lang.ClassCastException


The Response Status is:

QUEUED: Error connecting to HTTP server [ClassCastException: null]

If the settings in both 3.5.1 and 3.6.2 are identical for the channel and connectors, what could possibly be the issue as to why a connection can't be established and messages can't be sent?

P.S. Only the corresponding MC service is running for whichever MC version we are using to test. We don't have both services running concurrently.

Let me know if you need anything else to help resolve this problem.
Reply With Quote
  #2  
Old 07-03-2019, 06:18 AM
phatneff phatneff is offline
Mirth Guru
 
Join Date: Jun 2014
Location: Cincinnati, OH
Posts: 179
phatneff is on a distinguished road
Send a message via AIM to phatneff
Default

Another Response Status message:

QUEUED: Error connecting to HTTP server [ClassCastException: [B cannot be cast to java.lang.String]
Reply With Quote
  #3  
Old 07-03-2019, 07:13 AM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 849
agermano is on a distinguished road
Default

That second one looks like you are passing a byte[] somewhere where it's expecting a String.

Maybe using a velocity variable for hostname or template or something?
Reply With Quote
  #4  
Old 07-03-2019, 07:16 AM
phatneff phatneff is offline
Mirth Guru
 
Join Date: Jun 2014
Location: Cincinnati, OH
Posts: 179
phatneff is on a distinguished road
Send a message via AIM to phatneff
Default

Nothing has changed from the 3.5.1 channel to the 3.6.2 channel as far as our development. I'm assuming it's some coding in MC that i can't access to resolve?
Reply With Quote
  #5  
Old 07-03-2019, 07:39 AM
phatneff phatneff is offline
Mirth Guru
 
Join Date: Jun 2014
Location: Cincinnati, OH
Posts: 179
phatneff is on a distinguished road
Send a message via AIM to phatneff
Default

Ok, now I'm seeing this, too:

ERROR (com.mirth.connect.connectors.http.HttpDispatcher: 746): Error processing queued message 119-3 (QUEUED) for channel Procura_ADT_Outbound (c32855df-cdf7-4c21-85e5-7cd5cff7a01a) on destination _get_auth. This error is expected if the message was manually removed from the queue.
com.mirth.connect.donkey.server.data.DonkeyDaoExce ption: org.postgresql.util.PSQLException: ERROR: insert or update on table "d_mc27" violates foreign key constraint "d_mc27_fkey" Detail: Key (message_id, metadata_id)=(119, 3) is not present in table "d_mm27".
at com.mirth.connect.donkey.server.data.jdbc.JdbcDao. storeContent(JdbcDao.java:336)
at com.mirth.connect.donkey.server.data.jdbc.JdbcDao. storeMessageContent(JdbcDao.java:264)
at com.mirth.connect.plugins.clustering.server.FenceD ao.storeMessageContent(FenceDao.java:89)
at com.mirth.connect.donkey.server.data.buffered.Buff eredDao.executeTasks(BufferedDao.java:117)
at com.mirth.connect.donkey.server.data.buffered.Buff eredDao.commit(BufferedDao.java:85)
at com.mirth.connect.donkey.server.data.buffered.Buff eredDao.commit(BufferedDao.java:72)
at com.mirth.connect.plugins.clustering.server.FenceD ao.commit(FenceDao.java:371)
at com.mirth.connect.donkey.server.channel.Destinatio nConnector.run(DestinationConnector.java:730)
at java.lang.Thread.run(Unknown Source)Caused by: org.postgresql.util.PSQLException: ERROR: insert or update on table "d_mc27" violates foreign key constraint "d_mc27_fkey" Detail: Key (message_id, metadata_id)=(119, 3) is not present in table "d_mm27".
at org.postgresql.core.v3.QueryExecutorImpl.receiveEr rorResponse(QueryExecutorImpl.java:2455)
at org.postgresql.core.v3.QueryExecutorImpl.processRe sults(QueryExecutorImpl.java:2155)
at org.postgresql.core.v3.QueryExecutorImpl.execute(Q ueryExecutorImpl.java:288)
at org.postgresql.jdbc.PgStatement.executeInternal(Pg Statement.java:430)
at org.postgresql.jdbc.PgStatement.execute(PgStatemen t.java:356)
at org.postgresql.jdbc.PgPreparedStatement.executeWit hFlags(PgPreparedStatement.java:168)
at org.postgresql.jdbc.PgPreparedStatement.executeUpd ate(PgPreparedStatement.java:135)
at com.mirth.connect.donkey.server.data.jdbc.JdbcDao. storeContent(JdbcDao.java:332)
... 8 more


There aren't tables "d_mc27" and "d_mm27" in the 3.6.2 postgresql db but they are in the 3.5.1 postgresql db. So how does this get resolved?
Reply With Quote
  #6  
Old 07-03-2019, 08:55 AM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 849
agermano is on a distinguished road
Default

Maybe try to clone the channel and use the clone? That should create all of the needed tables. Not sure why they wouldn't be there in the first place.
Reply With Quote
  #7  
Old 07-03-2019, 09:01 AM
phatneff phatneff is offline
Mirth Guru
 
Join Date: Jun 2014
Location: Cincinnati, OH
Posts: 179
phatneff is on a distinguished road
Send a message via AIM to phatneff
Default

Cloned it and got the same errors.
Reply With Quote
  #8  
Old 07-03-2019, 01:49 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 849
agermano is on a distinguished road
Default

Which errors? The first or last? Are you still missing tables?

Are you able to post your channel?
Reply With Quote
  #9  
Old 07-08-2019, 08:16 AM
phatneff phatneff is offline
Mirth Guru
 
Join Date: Jun 2014
Location: Cincinnati, OH
Posts: 179
phatneff is on a distinguished road
Send a message via AIM to phatneff
Default

Yes, both errors I've posted.

I don't think I can post the channel as it has connection information in it to an external customer.
Reply With Quote
  #10  
Old 07-08-2019, 09:37 AM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 849
agermano is on a distinguished road
Default

It shouldn't still be trying to use the same tables with a cloned channel. It should have assigned a new id to the new channel.
Reply With Quote
Reply

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 10:03 PM.


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