[jacorb-developer] cannot extract object using Helper class method extract

Nick Cross jacorb at goots.org
Thu Mar 14 11:03:27 CET 2013



It looks ok but could you provide details of the exception trace and a 
compilable testcase?

Regards

Nick

On 13/03/13 19:17, hello sir wrote:
> Hi all,
>
> Brand new to the mailing list. Just started working with jacorb 3.0 and run
> into this problem.
>
> *
>
> public* *class* Test {
>
> *public* *static* *void* main (String[] a) {
>
>     OverlayData overlayData = *new* OverlayData ("pathName1", "overlay2");
>
>     Any any = ORB.*init*().create_any();
>
>     OverlayDataHelper.*insert*(any, overlayData);
>
>     OverlayData testedObject = OverlayDataHelper.*extract*(any);
>
>     System.*out*.println(testedObject.pathname);
>
>     System.*out*.println(testedObject.overlay);
>
>     }
>
> }
>
> I get a NullPointerException at this line of code "OverlayData testedObject
> = OverlayDataHelper.*extract*(any);"
>
> Is this the correct way to extract my object????
>
>
>
> Please help, thanks in advance!
> _______________________________________________
> jacorb-developer maillist  -  jacorb-developer at lists.spline.inf.fu-berlin.de
> https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer
>



More information about the jacorb-developer mailing list