Mirth Connect
  1. Mirth Connect
  2. MIRTH-2070

XStream no-args constructor and JDK serialization exceptions with Java 1.7

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.1
    • Component/s: Server
    • Labels:
      None

      Description

      XStream 1.3 does not support Java 7. Here are a couple issues that occur in Mirth Connect:

      When executing a "Test Read" from the Administrator:
      com.thoughtworks.xstream.converters.ConversionException: Cannot construct XXXXXXXXX as it does not have a no-args constructor

      On first startup:
      ERROR 2011-02-16 13:01:40,326 [Thread-1] com.mirth.connect.server.controllers.DefaultConfigurationController: error loading encryption key
      com.thoughtworks.xstream.converters.ConversionException: Cannot create java.security.KeyRep by JDK serialization : unrecognized type/format combination: null/null : Cannot create java.security.KeyRep by JDK serialization : unrecognized type/format combination: null/null
      ---- Debugging information ----
      message : Cannot create java.security.KeyRep by JDK serialization : unrecognized type/format combination: null/null
      cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
      cause-message : Cannot create java.security.KeyRep by JDK serialization : unrecognized type/format combination: null/null
      class : com.sun.crypto.provider.DESedeKey
      required-type : com.sun.crypto.provider.DESedeKey
      line number : 1
      -------------------------------

        Activity

        Hide
        Jacob Brauer added a comment -

        http://jira.codehaus.org/browse/XSTR-651

        Change ObjectXMLSerializer to use new XStream(new Sun14ReflectionProvider(), new XppDriver());

        Show
        Jacob Brauer added a comment - http://jira.codehaus.org/browse/XSTR-651 Change ObjectXMLSerializer to use new XStream(new Sun14ReflectionProvider(), new XppDriver());
        Hide
        Jacob Brauer added a comment -

        Manually set Sun14ReflectionProvider as the ReflectionProvider, since Java 7 causes XStream to not use this.

        Show
        Jacob Brauer added a comment - Manually set Sun14ReflectionProvider as the ReflectionProvider, since Java 7 causes XStream to not use this.

          People

          • Assignee:
            Jacob Brauer
            Reporter:
            Jacob Brauer
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development