Skip to main content

ClassCastException when starting JacORB

  • September 2, 2014
  • 0 replies
  • 0 views

Product: OpenFusion JacORB

Version: All

 

Description:

JacORB application fails to start and contains a stack trace with:

Caused by: java.lang.ClassCastException:
com.sun.corba.se.impl.orb.ORBSingleton
        at org.jacorb.orb.typecode.AbstractTypeCodeReader

Resolution:

All JDKs ship with an ORB, which is loaded by default. This problem occurs when the JVM picks up the Sun ORB classes instead of the JacORB classes.  

Options to resolve this problem:

  1. Make sure that the ORBSingleton properties are passed to the JVM on start up.
  2. Use the –Xbootclasspath to pass in the JacORB jar files instead of the –classpath.

The jaco script which is in the bin directory of the installation gives examples of this.Try starting your server using the jaco script to see if this works.


#KnowledgeDocs
#OpenFusion
#jacorborbsingletonxbootclasspath