java.lang.ClassCastException: com.domain.MasterNumberHistory I added VM arguments to OC4J to track the class and classloaders in use: -Dexecutor.concurrent.tasks=12 -XX:MaxPermSize=512m -Xms1024m -Xmx1024m -Dclass.load.trace=class-defined:com.domain.MasterNumberHistory+loader+stack -Dclass.load.log.level=finest -Dclass.load.log.file=C:/A/loader-trace.txt -Doc4j.start.query=LoaderTree My application is named foo-rmv , and I found out that OC4J is loading the application classloader twice, as foo-rmv.root:0.0.0 foo-rmv.root:0.0.1 Here are entries from the trace from when the class was loaded - notice the two copies of the OC4J application classloader being used: Class to be defined: com.domain.MasterNumberHistory (1594 bytes). Loader: foo-rmv.root:0.0.1 . Source: /C:/oracle/oc4j_extended_101340/j2ee/home/applications/foo-rmv/foo-rmv-domain.jar (from manifest of /C:/oracle/oc4j_extended_101340/j2ee/home/applications/foo-rmv/foo-rmv-services.jar) Class to be defined: com.domain.MasterNumberHistory (1594 bytes). Loader: foo-rmv.root:0.0.0 . Source: /C:/oracle/oc4j_extended_101340/j2ee/home/applications/foo-rmv/foo-rmv-domain.jar (from manifest of /C:/oracle/oc4j_extended_101340/j2ee/home/applications/foo-rmv/foo-rmv-services.jar) Below, I’m including - messages from the trace about the classloaders in question - the loader tree ClassLoader messages ClassLoader created: *foo-rmv.root:0.0.0( (instance 1189cbb)

Oracle Community | 742865 | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    OC4J loading root classloader twice - ClassCastException

    Oracle Community | 7 years ago | 742865
    java.lang.ClassCastException: com.domain.MasterNumberHistory I added VM arguments to OC4J to track the class and classloaders in use: -Dexecutor.concurrent.tasks=12 -XX:MaxPermSize=512m -Xms1024m -Xmx1024m -Dclass.load.trace=class-defined:com.domain.MasterNumberHistory+loader+stack -Dclass.load.log.level=finest -Dclass.load.log.file=C:/A/loader-trace.txt -Doc4j.start.query=LoaderTree My application is named foo-rmv , and I found out that OC4J is loading the application classloader twice, as foo-rmv.root:0.0.0 foo-rmv.root:0.0.1 Here are entries from the trace from when the class was loaded - notice the two copies of the OC4J application classloader being used: Class to be defined: com.domain.MasterNumberHistory (1594 bytes). Loader: foo-rmv.root:0.0.1 . Source: /C:/oracle/oc4j_extended_101340/j2ee/home/applications/foo-rmv/foo-rmv-domain.jar (from manifest of /C:/oracle/oc4j_extended_101340/j2ee/home/applications/foo-rmv/foo-rmv-services.jar) Class to be defined: com.domain.MasterNumberHistory (1594 bytes). Loader: foo-rmv.root:0.0.0 . Source: /C:/oracle/oc4j_extended_101340/j2ee/home/applications/foo-rmv/foo-rmv-domain.jar (from manifest of /C:/oracle/oc4j_extended_101340/j2ee/home/applications/foo-rmv/foo-rmv-services.jar) Below, I’m including - messages from the trace about the classloaders in question - the loader tree ClassLoader messages ClassLoader created: *foo-rmv.root:0.0.0( (instance 1189cbb)
  2. 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.
  3. 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
  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

    SWTBot/Troubleshooting - Eclipsepedia

    eclipse.org | 1 year ago
    java.lang.ClassCastException: org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner .run(EclipseTestRunner.java:331) at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner .run(EclipseTestRunner.java:208) at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication .runTests(UITestApplication.java:115) at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work benchTestable.java:68)

    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.domain.MasterNumberHistory I added VM arguments to OC4J to track the class and classloaders in use: -Dexecutor.concurrent.tasks=12 -XX:MaxPermSize=512m -Xms1024m -Xmx1024m -Dclass.load.trace=class-defined:com.domain.MasterNumberHistory+loader+stack -Dclass.load.log.level=finest -Dclass.load.log.file=C:/A/loader-trace.txt -Doc4j.start.query=LoaderTree My application is named foo-rmv , and I found out that OC4J is loading the application classloader twice, as foo-rmv.root:0.0.0 foo-rmv.root:0.0.1 Here are entries from the trace from when the class was loaded - notice the two copies of the OC4J application classloader being used: Class to be defined: com.domain.MasterNumberHistory (1594 bytes). Loader: foo-rmv.root:0.0.1 . Source: /C:/oracle/oc4j_extended_101340/j2ee/home/applications/foo-rmv/foo-rmv-domain.jar (from manifest of /C:/oracle/oc4j_extended_101340/j2ee/home/applications/foo-rmv/foo-rmv-services.jar) Class to be defined: com.domain.MasterNumberHistory (1594 bytes). Loader: foo-rmv.root:0.0.0 . Source: /C:/oracle/oc4j_extended_101340/j2ee/home/applications/foo-rmv/foo-rmv-domain.jar (from manifest of /C:/oracle/oc4j_extended_101340/j2ee/home/applications/foo-rmv/foo-rmv-services.jar) Below, I’m including - messages from the trace about the classloaders in question - the loader tree ClassLoader messages ClassLoader created: *foo-rmv.root:0.0.0( (instance 1189cbb)

      at oracle.classloader.util.ClassLoadTracing$LoaderListener.loaderCreated()
    2. oracle.classloader.util
      ClassLoadTracing$LoaderListener.loaderCreated
      1. oracle.classloader.util.ClassLoadTracing$LoaderListener.loaderCreated(ClassLoadTracing.java:712)
      1 frame
    3. oracle.classloader
      PolicyClassLoader.<init>
      1. oracle.classloader.EventDispatcher.loaderCreated(EventDispatcher.java:200)
      2. oracle.classloader.PolicyClassLoader.<init>(PolicyClassLoader.java:441)
      2 frames
    4. oracle.oc4j.loader
      ConfigurationConsumer.createApplicationLoader
      1. oracle.oc4j.loader.config.ConfigurationConsumer.createApplicationLoader(ConfigurationConsumer.java:275)
      1 frame
    5. com.evermind.server
      ApplicationServerLauncher.run
      1. com.evermind.server.ApplicationStateRunning.createClassLoader(ApplicationStateRunning.java:1207)
      2. com.evermind.server.ApplicationStateRunning.initClassLoaders(ApplicationStateRunning.java:1215)
      3. com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:130)
      4. com.evermind.server.Application.setConfig(Application.java:454)
      5. com.evermind.server.Application.setConfig(Application.java:355)
      6. com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1895)
      7. com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1651)
      8. com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1034)
      9. com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
      9 frames
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame