| Summary | org.omg.CORBA.BAD_INV_ORDER: buffer already recycled |
|---|---|
| Article Number | 18001 |
| Environment | All Supported Operating Systems Orbix 6.3.4 Orbix Java Runtime |
| Question/Problem Description | org.omg.CORBA.BAD_INV_ORDER: buffer already recycled Orbix ORB failing with "org.omg.CORBA.BAD_INV_ORDER: buffer already recycled" when jacorb.jar is in boot classpath org.omg.CORBA.BAD_INV_ORDER: buffer already recycled at com.iona.corba.art.buffer.BufferImpl.do_recycle(Unknown Source) at com.iona.corba.art.buffer.BufferImpl.recycle(Unknown Source) at com.iona.corba.art.cdr.OutStreamImpl.do_close(Unknown Source) at com.iona.corba.giop.GIOP_1_2_OutStreamImpl.do_close(Unknown Source) at com.iona.corba.art.cdr.OutStreamImpl.close(Unknown Source) at com.iona.corba.art.binding.IORProxy$StreamWrapper.close(Unknown Source) at org.omg.CosNaming._NamingContextExtStub.resolve_str(_NamingContextExtStub.java:768) |
| Clarifying Information | |
| Error Message | |
| Defect/Enhancement Number | |
| Cause | When the jacorb.jar is "prepended" to the JVM's boot classpath; org.omg.CosNaming._NamingContextStub class is loaded from the Jacorb.jar rather than the JDK's rt.jar. The jacorb.jar version of _NamingContextStub calls outputstream.close() within the resolve() operation which is not present in the rt.jar version of the class. This extra call generates the "org.omg.CORBA.BAD_INV_ORDER buffer already recycled" exception. |
| Resolution | Ensure the JDK's rt.jar is placed before the Jacob.jar on the JVM's classpath. |
| Workaround | |
| Notes | |
| Attachment |
| Created date: | 06 September 2011 |
|---|---|
| Last Modified: | 13 February 2013 |
| Last Published: | 23 June 2012 |
| First Published date: | 10 September 2011 |
#Orbix
#KnowledgeDocs




