[jacorb-developer] Bad type on operand stack error when using JacORB and JBoss modules

Rob Ratcliff rrr6399 at futuretek.com
Wed Apr 19 23:07:29 CEST 2017


Hi,

I am using a GUI framework that use JBoss modules to manage plugins. My
plugin has a dependency on JacORB. I'm using the classloader for my
plugin by setting
Thread.getCurrentThread().setContextClassLoader(this.getClass().getClassLoader());
and I set the tccl property in JacORB
(System.setProperty("jacorb.classloaderpolicy", "tccl");

Any ideas for resolving the Bad type on operand stack error in the stack
trace below? Is there any way to eliminate the dependency on the JDK's
CORBA classes?

Thanks,

Rob


19 Apr 2017 15:58:10,264  WARN [AWT-EventQueue-0] (singleton:208) -
Warning - unknown codeset (Cp1252) - defaulting to ISO-8859-1
19 Apr 2017 15:58:10,266  WARN [AWT-EventQueue-0] (orb:208) - Warning -
unknown codeset (Cp1252) - defaulting to ISO-8859-1
19 Apr 2017 15:58:10,939 ERROR [AWT-EventQueue-0] (RaptorUEHandler:14) -
Thread unexpectedly terminated with exception: AWT-EventQue
ue-0, Bad type on operand stack
Exception Details:
  Location:
   
org/jacorb/orb/Delegate.getReference(Lorg/jacorb/poa/POA;)Lorg/omg/CORBA/portable/ObjectImpl;
@42: invokevirtual
  Reason:
    Type 'org/jacorb/orb/Reference' (current frame, stack[0]) is not
assignable to 'org/omg/CORBA/portable/ObjectImpl'
  Current Frame:
    bci: @42
    flags: { }
    locals: { 'org/jacorb/orb/Delegate', 'org/jacorb/poa/POA',
'java/lang/String', 'org/jacorb/orb/Reference' }
    stack: { 'org/jacorb/orb/Reference', 'org/jacorb/orb/Delegate' }
  Bytecode:
    0x0000000: 2bc6 0008 2a2b b500 e72a b400 10c7 000a
    0x0000010: 2ab6 00e8 a700 0a2a b400 10b4 00e9 4dbb
    0x0000020: 00ea 592c b700 eb4e 2d2a b600 ec2d b0
  Stackmap Table:
    same_frame(@9)
    same_frame(@23)
    same_locals_1_stack_item_frame(@30,Object[#675])

java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
   
org/jacorb/orb/Delegate.getReference(Lorg/jacorb/poa/POA;)Lorg/omg/CORBA/portable/ObjectImpl;
@42: invokevirtual
  Reason:
    Type 'org/jacorb/orb/Reference' (current frame, stack[0]) is not
assignable to 'org/omg/CORBA/portable/ObjectImpl'
  Current Frame:
    bci: @42
    flags: { }
    locals: { 'org/jacorb/orb/Delegate', 'org/jacorb/poa/POA',
'java/lang/String', 'org/jacorb/orb/Reference' }
    stack: { 'org/jacorb/orb/Reference', 'org/jacorb/orb/Delegate' }
  Bytecode:
    0x0000000: 2bc6 0008 2a2b b500 e72a b400 10c7 000a
    0x0000010: 2ab6 00e8 a700 0a2a b400 10b4 00e9 4dbb
    0x0000020: 00ea 592c b700 eb4e 2d2a b600 ec2d b0
  Stackmap Table:
    same_frame(@9)
    same_frame(@23)
    same_locals_1_stack_item_frame(@30,Object[#675])

        at org.jacorb.orb.ORB._getDelegate(ORB.java:586)
        at org.jacorb.orb.ORB.string_to_object(ORB.java:2466)


More information about the jacorb-developer mailing list