[jacorb-developer] org.omg.CORBA.MARSHAL: buffer too small vmcid: 0x0

Amir Hooshangi amirhoshangi at gmail.com
Thu Oct 4 00:52:02 CEST 2012


Dear Nick

I simulated the suspected bug in out of our middlware ( which took 3 hour
!), and fortunately it's not Jacorb bug, it was simply our mistake in
coding. but Jacorb Exception was a bit confusing.

regards

On Wed, Oct 3, 2012 at 9:22 PM, Nick Cross <jacorb at goots.org> wrote:

> Hi,
>
> Thanks for that information.
>
> Can you please enter a ticket on bugzilla and provide a standalone,
> compilable, runnable test case.
>
> Thanks!
>
> Nick
>
>
> On 03/10/12 17:29, Amir Hooshangi wrote:
>
>> Nick
>>
>> I'm using Jacorb 3.0 final release. And i've lot's of generated IDL's
>> from TM Forums corba solutions.
>> In the server i put my object ot ANY this way :
>>
>>      Any objectNameAny = ORB.init().create_any();
>>          NamingAttributes_THelper.**insert(objectNameAny, new
>> NameAndStringValue_T[]{new     NameAndStringValue_T("**objectName",
>> "objectNameValue")});
>>          filterableDataBody[2].value = objectNameAny;
>>
>> and in the client i do :
>> NameAndStringValue_T objectName =
>> NameAndStringValue_THelper.**extract(propertys[i].value);
>>
>> which throws the exception, i think there should be somewhere to
>> increase the buffer size.
>>
>>
>> On Wed, Oct 3, 2012 at 7:29 PM, Nick Cross <jacorb at goots.org
>> <mailto:jacorb at goots.org>> wrote:
>>
>>
>>     Please provide the version of JacORB you are using and a compilable,
>>     runnable test case to demonstrate the problem. You can use bugzilla
>>     if you need to attach a set of files.
>>
>>     Thanks
>>
>>     Nick
>>
>>
>>
>>     On 03/10/12 16:23, Amir Hooshangi wrote:
>>
>>         Hi
>>
>>         I'm inserting a corba class to Any using one of my Helper
>>         classes it's like
>>         NamingAttributes_THelper.__**insert( any, object)
>>
>>
>>         but when i want to  extract it : e.g
>>           NameAndStringValue_THelper.__**extract()
>>
>>
>>         it says : Exception in thread "main" org.omg.CORBA.MARSHAL:
>>         buffer too
>>         small  vmcid: 0x0  minor code: 0  completed: No
>>         at
>>         org.jacorb.orb.CDRInputStream.**__read_string(CDRInputStream._**
>> _java:1217)
>>         at
>>         globaldefs.NameAndStringValue_**__THelper.read(__**
>> NameAndStringValue_THelper.__**java:72)
>>         at
>>         globaldefs.NameAndStringValue_**__THelper.extract(__**
>> NameAndStringValue_THelper.__**java:25)
>>
>>
>>         i've also made my jacorb MaxBuffersize in jacorb.properties but
>>         didn't work
>>         out
>>
>>         regards
>>         ______________________________**___________________
>>         jacorb-developer maillist  -
>>         jacorb-developer at lists.spline.**__inf.fu-berlin.de
>>         <mailto:jacorb-developer@**lists.spline.inf.fu-berlin.de<jacorb-developer at lists.spline.inf.fu-berlin.de>
>> >
>>         https://lists.spline.inf.fu-__**berlin.de/mailman/listinfo/__**
>> jacorb-developer<https://lists.spline.inf.fu-__berlin.de/mailman/listinfo/__jacorb-developer>
>>         <https://lists.spline.inf.fu-**berlin.de/mailman/listinfo/**
>> jacorb-developer<https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer>
>> >
>>
>>
>>
>>
>


More information about the jacorb-developer mailing list