$java.lang.reflect.InvocationTargetException

Mirth Project | Hugo Soares | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    While connected to a remote server via the Mirth cli this error happens when runing exportcfg command. Confirmed that only happens on remote client an not on the server itself. Both client and server are using 3.2.1. but server is on linux and client is on windows. {code} Connected to Mirth Connect server @ https://192.168.4.196:8443 (3.2.1.7650) $java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.mirth.connect.cli.launcher.CommandLineLauncher.main(CommandLineLauncher.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(Unknown Source) at com.exe4j.runtime.WinLauncher.main(Unknown Source) at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source) Caused by: com.mirth.connect.donkey.util.xstream.SerializerException: com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException: No such field com.mirth.connect.model.ServerConfiguration.resourceProperties ---- Debugging information ---- field : resourceProperties class : com.mirth.connect.model.ServerConfiguration required-type : com.mirth.connect.model.Connector converter-type : com.mirth.connect.model.converters.MigratableConverter version : not available ------------------------------- at com.mirth.connect.model.converters.ObjectXMLSerializer.handleDeserializationException(ObjectXMLSerializer.java:300) at com.mirth.connect.model.converters.ObjectXMLSerializer.deserialize(ObjectXMLSerializer.java:193) at com.mirth.connect.client.core.Client.getServerConfiguration(Client.java:189) at com.mirth.connect.cli.CommandLineInterface.commandExportConfig(CommandLineInterface.java:653) at com.mirth.connect.cli.CommandLineInterface.executeStatement(CommandLineInterface.java:276) at com.mirth.connect.cli.CommandLineInterface.runConsole(CommandLineInterface.java:225) at com.mirth.connect.cli.CommandLineInterface.runShell(CommandLineInterface.java:190) at com.mirth.connect.cli.CommandLineInterface.run(CommandLineInterface.java:156) at com.mirth.connect.cli.CommandLineInterface.<init>(CommandLineInterface.java:98) ... 12 more Caused by: com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException: No such field com.mirth.connect.model.ServerConfiguration.resourceProperties ---- Debugging information ---- field : resourceProperties class : com.mirth.connect.model.ServerConfiguration required-type : com.mirth.connect.model.Connector converter-type : com.mirth.connect.model.converters.MigratableConverter version : not available ------------------------------- at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.handleUnknownField(AbstractReflectionConverter.java:495) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:351) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:257) at com.mirth.connect.model.converters.MigratableConverter.unmarshal(MigratableConverter.java:99) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1185) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1157) at com.mirth.connect.model.converters.ObjectXMLSerializer.deserialize(ObjectXMLSerializer.java:188) ... 19 more {code}

    Mirth Project | 2 years ago | Hugo Soares
    $java.lang.reflect.InvocationTargetException
  2. 0

    While connected to a remote server via the Mirth cli this error happens when runing exportcfg command. Confirmed that only happens on remote client an not on the server itself. Both client and server are using 3.2.1. but server is on linux and client is on windows. {code} Connected to Mirth Connect server @ https://192.168.4.196:8443 (3.2.1.7650) $java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.mirth.connect.cli.launcher.CommandLineLauncher.main(CommandLineLauncher.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(Unknown Source) at com.exe4j.runtime.WinLauncher.main(Unknown Source) at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source) Caused by: com.mirth.connect.donkey.util.xstream.SerializerException: com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException: No such field com.mirth.connect.model.ServerConfiguration.resourceProperties ---- Debugging information ---- field : resourceProperties class : com.mirth.connect.model.ServerConfiguration required-type : com.mirth.connect.model.Connector converter-type : com.mirth.connect.model.converters.MigratableConverter version : not available ------------------------------- at com.mirth.connect.model.converters.ObjectXMLSerializer.handleDeserializationException(ObjectXMLSerializer.java:300) at com.mirth.connect.model.converters.ObjectXMLSerializer.deserialize(ObjectXMLSerializer.java:193) at com.mirth.connect.client.core.Client.getServerConfiguration(Client.java:189) at com.mirth.connect.cli.CommandLineInterface.commandExportConfig(CommandLineInterface.java:653) at com.mirth.connect.cli.CommandLineInterface.executeStatement(CommandLineInterface.java:276) at com.mirth.connect.cli.CommandLineInterface.runConsole(CommandLineInterface.java:225) at com.mirth.connect.cli.CommandLineInterface.runShell(CommandLineInterface.java:190) at com.mirth.connect.cli.CommandLineInterface.run(CommandLineInterface.java:156) at com.mirth.connect.cli.CommandLineInterface.<init>(CommandLineInterface.java:98) ... 12 more Caused by: com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException: No such field com.mirth.connect.model.ServerConfiguration.resourceProperties ---- Debugging information ---- field : resourceProperties class : com.mirth.connect.model.ServerConfiguration required-type : com.mirth.connect.model.Connector converter-type : com.mirth.connect.model.converters.MigratableConverter version : not available ------------------------------- at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.handleUnknownField(AbstractReflectionConverter.java:495) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:351) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:257) at com.mirth.connect.model.converters.MigratableConverter.unmarshal(MigratableConverter.java:99) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1185) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1157) at com.mirth.connect.model.converters.ObjectXMLSerializer.deserialize(ObjectXMLSerializer.java:188) ... 19 more {code}

    Mirth Project | 2 years ago | Hugo Soares
    $java.lang.reflect.InvocationTargetException

    Root Cause Analysis

    1. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException

      No such field com.mirth.connect.model.ServerConfiguration.resourceProperties ---- Debugging information ---- field : resourceProperties class : com.mirth.connect.model.ServerConfiguration required-type : com.mirth.connect.model.Connector converter-type : com.mirth.connect.model.converters.MigratableConverter version : not available -------------------------------

      at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.handleUnknownField()
    2. XStream Core
      AbstractReflectionConverter.unmarshal
      1. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.handleUnknownField(AbstractReflectionConverter.java:495)
      2. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:351)
      3. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:257)
      3 frames
    3. com.mirth.connect
      MigratableConverter.unmarshal
      1. com.mirth.connect.model.converters.MigratableConverter.unmarshal(MigratableConverter.java:99)
      1 frame
    4. XStream Core
      XStream.unmarshal
      1. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      2. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      3. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
      4. com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
      5. com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
      6. com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1185)
      7. com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1157)
      7 frames
    5. com.mirth.connect
      CommandLineInterface.<init>
      1. com.mirth.connect.model.converters.ObjectXMLSerializer.deserialize(ObjectXMLSerializer.java:188)
      2. com.mirth.connect.client.core.Client.getServerConfiguration(Client.java:189)
      3. com.mirth.connect.cli.CommandLineInterface.commandExportConfig(CommandLineInterface.java:653)
      4. com.mirth.connect.cli.CommandLineInterface.executeStatement(CommandLineInterface.java:276)
      5. com.mirth.connect.cli.CommandLineInterface.runConsole(CommandLineInterface.java:225)
      6. com.mirth.connect.cli.CommandLineInterface.runShell(CommandLineInterface.java:190)
      7. com.mirth.connect.cli.CommandLineInterface.run(CommandLineInterface.java:156)
      8. com.mirth.connect.cli.CommandLineInterface.<init>(CommandLineInterface.java:98)
      8 frames
    6. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      4. java.lang.reflect.Constructor.newInstance(Unknown Source)
      4 frames
    7. com.mirth.connect
      CommandLineLauncher.main
      1. com.mirth.connect.cli.launcher.CommandLineLauncher.main(CommandLineLauncher.java:53)
      1 frame
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    9. com.exe4j.runtime
      WinLauncher.main
      1. com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
      2. com.exe4j.runtime.WinLauncher.main(Unknown Source)
      2 frames
    10. com.install4j.runtime
      WinLauncher.main
      1. com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)
      1 frame