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

Rob Ratcliff rrr6399 at futuretek.com
Sun Apr 23 03:15:51 CEST 2017


Hi ,

I found this old article on reworking JacORB to work with Felix by
compiling without RMI support using -Dno-rmi=true.

http://apache-felix.18485.x6.nabble.com/Bundelizing-Jacorb-getting-screwed-tp4843264p4843270.html

What's the equivalent maven command to do this?

Any advice on this?

Rob


On 4/19/2017 4:07 PM, Rob Ratcliff wrote:
> 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)
> _______________________________________________
> jacorb-developer maillist  -  jacorb-developer at lists.spline.inf.fu-berlin.de
> https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer
>


-- 
Rob Ratcliff
FutureTek Software Consulting
We get it done.
cell: 512-633-5751
fax: 512-233-2873
web: http://www.futuretek.com
LinkedIn: https://www.linkedin.com/in/ratcliff


More information about the jacorb-developer mailing list