java.lang.ClassCastException: com.mirth.connect.donkey.model.message.Response cannot be cast to com.mirth.connect.userutil.Response at c31f0a67-692c-475c-a862-ca5bfaeb177b_Postprocessor:101 (doScript) at c31f0a67-692c-475c-a862-ca5bfaeb177b_Postprocessor:104

Mirth Project | Nick Rupley | 3 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

    When getResponseData() is called on an ImmutableConnectorMessage, an exception is thrown: \\ \\ {code}[2014-08-29 15:13:16,464] ERROR (com.mirth.connect.server.util.javascript.JavaScriptUtil:465): Error executing Postprocessor script from channel: c31f0a67-692c-475c-a862-ca5bfaeb177b com.mirth.connect.server.MirthJavascriptTransformerException: SOURCE CODE: 96: }97: }98: function doScript() {99: // This script executes once after a message has been processed100: // Responses returned from here will be stored as "Postprocessor" in the response map101: message.getConnectorMessages().get(1).getResponseData();102: return; 103: }LINE NUMBER: 101DETAILS: Wrapped java.lang.ClassCastException: com.mirth.connect.donkey.model.message.Response cannot be cast to com.mirth.connect.userutil.Response at c31f0a67-692c-475c-a862-ca5bfaeb177b_Postprocessor:101 (doScript) at c31f0a67-692c-475c-a862-ca5bfaeb177b_Postprocessor:104 at com.mirth.connect.server.util.javascript.JavaScriptUtil.executeScript(JavaScriptUtil.java:490) at com.mirth.connect.server.util.javascript.JavaScriptUtil.executePostprocessorScripts(JavaScriptUtil.java:243) at com.mirth.connect.server.transformers.JavaScriptPostprocessor$JavaScriptPostProcessorTask.call(JavaScriptPostprocessor.java:58) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)Caused by: java.lang.ClassCastException: com.mirth.connect.donkey.model.message.Response cannot be cast to com.mirth.connect.userutil.Response at com.mirth.connect.userutil.ImmutableConnectorMessage.getResponseData(ImmutableConnectorMessage.java:324) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3110) at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120) at com.mirth.connect.server.util.javascript.JavaScriptTask.executeScript(JavaScriptTask.java:49) at com.mirth.connect.server.util.javascript.JavaScriptUtil.executeScript(JavaScriptUtil.java:485) ... 6 more{code}

    Mirth Project | 3 years ago | Nick Rupley
    java.lang.ClassCastException: com.mirth.connect.donkey.model.message.Response cannot be cast to com.mirth.connect.userutil.Response at c31f0a67-692c-475c-a862-ca5bfaeb177b_Postprocessor:101 (doScript) at c31f0a67-692c-475c-a862-ca5bfaeb177b_Postprocessor:104
  2. 0

    When getResponseData() is called on an ImmutableConnectorMessage, an exception is thrown: \\ \\ {code}[2014-08-29 15:13:16,464] ERROR (com.mirth.connect.server.util.javascript.JavaScriptUtil:465): Error executing Postprocessor script from channel: c31f0a67-692c-475c-a862-ca5bfaeb177b com.mirth.connect.server.MirthJavascriptTransformerException: SOURCE CODE: 96: }97: }98: function doScript() {99: // This script executes once after a message has been processed100: // Responses returned from here will be stored as "Postprocessor" in the response map101: message.getConnectorMessages().get(1).getResponseData();102: return; 103: }LINE NUMBER: 101DETAILS: Wrapped java.lang.ClassCastException: com.mirth.connect.donkey.model.message.Response cannot be cast to com.mirth.connect.userutil.Response at c31f0a67-692c-475c-a862-ca5bfaeb177b_Postprocessor:101 (doScript) at c31f0a67-692c-475c-a862-ca5bfaeb177b_Postprocessor:104 at com.mirth.connect.server.util.javascript.JavaScriptUtil.executeScript(JavaScriptUtil.java:490) at com.mirth.connect.server.util.javascript.JavaScriptUtil.executePostprocessorScripts(JavaScriptUtil.java:243) at com.mirth.connect.server.transformers.JavaScriptPostprocessor$JavaScriptPostProcessorTask.call(JavaScriptPostprocessor.java:58) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)Caused by: java.lang.ClassCastException: com.mirth.connect.donkey.model.message.Response cannot be cast to com.mirth.connect.userutil.Response at com.mirth.connect.userutil.ImmutableConnectorMessage.getResponseData(ImmutableConnectorMessage.java:324) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3110) at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120) at com.mirth.connect.server.util.javascript.JavaScriptTask.executeScript(JavaScriptTask.java:49) at com.mirth.connect.server.util.javascript.JavaScriptUtil.executeScript(JavaScriptUtil.java:485) ... 6 more{code}

    Mirth Project | 3 years ago | Nick Rupley
    java.lang.ClassCastException: com.mirth.connect.donkey.model.message.Response cannot be cast to com.mirth.connect.userutil.Response
  3. 0

    Help:basic RMI question

    Google Groups | 2 decades ago | Paolo De Lutiis
    java.lang.ClassCastException: serverPackage.ServerClass_Stub at clientPackage.myApplet.init(myApplet.java:line#) at sun.applet.AppletPanel.run(AppletPanel.java:273) at java.lang.Thread.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Shared hosting Bungeecord problems.

    GitHub | 3 years ago | Arksenu
    java.lang.ClassCastException: bka cannot be cast to fs All my servers are set to onlinemode: false Here is my config.yml groups: arksenu: - admin disabled_commands: - find player_limit: -1 stats: 347d1d62-6fb6-4869-bd43-7d0745de8e3c permissions: default: - bungeecord.command.server - bungeecord.command.list admin: - bungeecord.command.ip - bungeecord.command.alert - bungeecord.command.end - bungeecord.command.reload listeners: - max_players: 18 fallback_server: hub host: 0.0.0.0:35289 bind_local_address: true ping_passthrough: false tab_list: GLOBAL_PING default_server: hub forced_hosts: pvp.md-5.net: hub tab_size: 60 force_default_server: true motd: ’Network’ query_enabled: false query_port: 25565 timeout: 30000 connection_throttle: 4000 servers: hub: address: 108.170.8.146:35289 restricted: false motd: test UvGames: address: 66.85.165.170:26200 restricted: false motd: test UvPrison: address: 66.85.128.90:25928 restricted: false motd: test ip_forward: false online_mode: true And here is my console message -> UpstreamBridge has disconnected disconnected with: Exception Connecting:RuntimeException : Server is online mode! @ net.md_5.bungee.ServerConnector:188
  6. 0

    Shared hosting Bungeecord problems.

    GitHub | 3 years ago | Arksenu
    java.lang.ClassCastException: bka cannot be cast to fs All my servers are set to onlinemode: false Here is my config.yml groups: arksenu: - admin disabled_commands: - find player_limit: -1 stats: 347d1d62-6fb6-4869-bd43-7d0745de8e3c permissions: default: - bungeecord.command.server - bungeecord.command.list admin: - bungeecord.command.ip - bungeecord.command.alert - bungeecord.command.end - bungeecord.command.reload listeners: - max_players: 18 fallback_server: hub host: 0.0.0.0:35289 bind_local_address: true ping_passthrough: false tab_list: GLOBAL_PING default_server: hub forced_hosts: pvp.md-5.net: hub tab_size: 60 force_default_server: true motd: ’Network’ query_enabled: false query_port: 25565 timeout: 30000 connection_throttle: 4000 servers: hub: address: 108.170.8.146:35289 restricted: false motd: test UvGames: address: 66.85.165.170:26200 restricted: false motd: test UvPrison: address: 66.85.128.90:25928 restricted: false motd: test ip_forward: false online_mode: true And here is my console message -> UpstreamBridge has disconnected disconnected with: Exception Connecting:RuntimeException : Server is online mode! @ net.md_5.bungee.ServerConnector:188

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.mirth.connect.donkey.model.message.Response cannot be cast to com.mirth.connect.userutil.Response

      at com.mirth.connect.userutil.ImmutableConnectorMessage.getResponseData()
    2. com.mirth.connect
      ImmutableConnectorMessage.getResponseData
      1. com.mirth.connect.userutil.ImmutableConnectorMessage.getResponseData(ImmutableConnectorMessage.java:324)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:483)
      4 frames
    4. Rhino
      InterpretedFunction.exec
      1. org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
      2. org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
      3. org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
      4. org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
      5. org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
      6. org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
      7. org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3110)
      8. org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120)
      8 frames
    5. com.mirth.connect
      JavaScriptPostprocessor$JavaScriptPostProcessorTask.call
      1. com.mirth.connect.server.util.javascript.JavaScriptTask.executeScript(JavaScriptTask.java:49)
      2. com.mirth.connect.server.util.javascript.JavaScriptUtil.executeScript(JavaScriptUtil.java:485)
      3. com.mirth.connect.server.util.javascript.JavaScriptUtil.executePostprocessorScripts(JavaScriptUtil.java:243)
      4. com.mirth.connect.server.transformers.JavaScriptPostprocessor$JavaScriptPostProcessorTask.call(JavaScriptPostprocessor.java:58)
      4 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames