Mirth Community

Mirth Community (http://www.mirthcorp.com/community/forums/index.php)
-   Support (http://www.mirthcorp.com/community/forums/forumdisplay.php?f=6)
-   -   Mirth Connect and Java 8 (http://www.mirthcorp.com/community/forums/showthread.php?t=10283)

wayneh 03-26-2014 05:35 PM

Mirth Connect and Java 8
 
Java 8 was released recently and many of you may be wondering whether it is supported by Mirth Connect.

For Mirth Connect 3.0.0 and 3.0.1, unfortunately the answer is no. There is a bug in one of our 3rd party libraries that will cause certain objects to be serialized and deserialized incorrectly in Java 8. For this reason it is imperative that you do not use Java 8 for these versions of Mirth Connect. Even if your server is running on Java 6 or 7, it is important that you do not run the Administrator with Java 8 for these versions, otherwise you may lose information related to your channel or alert upon saving it. In 3.0.2 we will be fixing this issue by updating the library.

Please see the following links for more information regarding the bug.

http://jira.codehaus.org/browse/XSTR-739
http://jira.codehaus.org/browse/XSTR-746

Mirth Connect 2.2.3 and below do not appear to be affected by this bug.

Update
Mirth Connect 3.0.2 has been released and officially supports Java 8. However Java 8 is known to have shipped with bugs intact so be sure to perform your own tests if you are thinking of upgrading.

wheatin 03-28-2014 06:22 AM

Any idea when 3.0.2 will be released?

Will there be a 2.X version that officially supports Java 8, or only 3.X?

narupley 03-28-2014 06:32 AM

Quote:

Originally Posted by wheatin (Post 38407)
Any idea when 3.0.2 will be released?

Will there be a 2.X version that officially supports Java 8, or only 3.X?

3.0.2 is scheduled to be released very soon, within a couple of weeks most likely. At this time we are considering official support for Java 8 on 3.0.2 and above (not 2.x), but it is not guaranteed. As Wayne already noted, we will provide updates if and when that changes.

narupley 04-17-2014 07:31 AM

Mirth Connect 3.0.2 was released yesterday: http://www.mirthcorp.com/community/f...ad.php?t=10378

The release notes are here, and as you can see we have decided to officially support Java 8 for version 3.0.2 and above. This doesn't change the status of 3.0.0 and 3.0.1; Java 8 is still not supported on those specific versions because of the bug in XStream (MIRTH-3207). If you're on version 2.x, we recommend upgrading directly to 3.0.2.

Shamil 10-25-2014 12:04 PM

Mirth 3.1 and JDK 1.8.20 (x86): I tried the XSLT transformation step and I'm getting following warning messages. The step returns an expected result, however these warnings are annoying. Any hints how to overcome this?


Code:

Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
Compiler warnings:
  WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.'
Warning:  org.apache.xerces.parsers.SAXParser: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized.
Warning:  org.apache.xerces.parsers.SAXParser: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
Warning:  org.apache.xerces.parsers.SAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.


narupley 10-26-2014 09:37 AM

Quote:

Originally Posted by Shamil (Post 43178)
Mirth 3.1 and JDK 1.8.20 (x86): I tried the XSLT transformation step and I'm getting following warning messages. The step returns an expected result, however these warnings are annoying. Any hints how to overcome this?


Code:

Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
Compiler warnings:
  WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.'
Warning:  org.apache.xerces.parsers.SAXParser: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized.
Warning:  org.apache.xerces.parsers.SAXParser: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
Warning:  org.apache.xerces.parsers.SAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.


Search the forums first.

Those warnings are a known issue in Java that hasn't been fixed yet. They don't appear to have any ill-effect though, other than cluttering up the server log.

Shamil 11-03-2014 11:33 AM

.. <solved>

rts 11-21-2014 08:10 AM

Mirth 3.1.1.7461 and JAVA 8
 
I recently installed v3.1.1.7461 and Java 8 and experienced the following error with my JS reader:
INFO 2014-11-21 10:51:34,746 [pool-3-thread-7] js-connector: PX WebSvc - ERR : JavaException: java.net.SocketException: Connection reset

Please note that I downgraded to java 7 and this connector now works as designed.


here is a snip of my reader code:

var url = new java.net.URL(destURL);

// Open connection to url
var conn = url.openConnection();

conn.setDoOutput(true);
conn.setDoInput(true);
conn.setRequestMethod("POST");
conn.setRequestProperty("Content-length", data.length());
conn.setRequestProperty("Content-type", "text/xml");
var outStream = conn.getOutputStream();
var outWriter = new java.io.OutputStreamWriter(outStream);

outWriter.write(data);
outWriter.close();

// Get response
var respCode = conn.getResponseCode();
getResponse();
var response = new XML($('PX_WEBSVC_RESPONSE'));
var status = response['Status'].toString();

// Interrogate the status , log the error and move the message to the errored folder
if (respCode != 200 || status != 'Successful') {
..........blah
}


function getResponse()
{
var inputStream = conn.getInputStream();
var streamReader = new java.io.InputStreamReader(inputStream);
var respStream = new java.io.BufferedReader(streamReader);

//create variable to hold return data
//var buffer = new java.lang.StringBuffer();
var buffer = '';
var line = null;
while ((line = respStream.readLine()) != null) {
buffer = buffer + line;
}

channelMap.put('PX_WEBSVC_RESPONSE', buffer);

responseMap.put('PX_WEBSVC', ResponseFactory.getSentResponse(buffer))
respStream.close();

}


Thanks
Rick

narupley 11-21-2014 08:42 AM

Tried your code out and it works perfectly for me on 3.1.1 with Java 8u25. There's likely a problem specific to the server your connecting to, not something specific to Mirth Connect. Are you sending to an HTTPS server?

rts 11-21-2014 11:29 AM

Yes Nick this is an HTTPS server


All times are GMT -8. The time now is 03:31 PM.

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