| Summary | My Orbix client is getting the following error when invoking a CORBA server: "Exception in thread "main" org.omg.CORBA.BAD_PARAM: invalid buffer sub-range". What might be wrong? |
|---|---|
| Article Number | 13353 |
| Environment | All Supported Operating Systems Orbix |
| Question/Problem Description | My Orbix client is getting the following error when invoking a CORBA server: "Exception in thread "main" org.omg.CORBA.BAD_PARAM: invalid buffer sub-range". What might be wrong? When I return a null in a string from a CORBA operation, I get a "org.omg.CORBA.BAD_PARAM" in my Orbix Java client |
| Clarifying Information | |
| Error Message | |
| Defect/Enhancement Number | |
| Cause | |
| Resolution | CORBA IDL/JAVA mapping does not allow the passing of null types, such as, strings, sequences of strings etc. Either a MARSHAL exception or a BAD_PARAM will be thrown if a null string is marshalled. Section 4.11.3.2 of The Common Object Request Broker: Architecture and Specification (version 2.4) states regarding BAD_PARAM: "A parameter passed to a call is out of range or otherwise considered illegal. An ORB may raise this exception if null values or null pointers are passed to an operation (for language mappings where the concept of a null pointers or null values applies). BAD_PARAM can also be raised as a result of client generating requests with incorrect parameters using the DII. " |
| Workaround | |
| Notes | |
| Attachment |
| Created date: | 06 September 2011 |
|---|---|
| Last Modified: | 13 February 2013 |
| Last Published: | 23 June 2012 |
| First Published date: | 09 September 2011 |
#KnowledgeDocs
#Orbix




