As far as I know it's thread safe. I've never experienced any threading
problems and it's used by manying people in a multithreaded environment.

If you can send a clean small-as-possible test case that can demonstrate
the problem, we'll be happy to look into it for you.

Thanks,

--Keith

Stefan Burkhardt wrote:
> 
> Hi,
> 
> In have a problem when I do two Marshallings in concurent Threads. The
> first marshalling fails with
> a NullPointerException. The second marshalling seems to be OK. Is Castor
> not Thread safe?
> I do not use the static marshalling methods. I allway create a new
> Marshaller-Object.
> 
> java.lang.reflect.InvocationTargetException
> java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
>         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:888)
>         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:973)
>         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:973)
>         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:540)
>         at 
>com.dcx.sein.mtm.dxi.client.transformer.ItemRequestTransformer.transformToXML(ItemRequestTransformer.java:95)
>         at 
>com.dcx.sein.mtm.dxi.client.transformer.ItemRequestTransformer.transform(ItemRequestTransformer.java:54)
>         
>atcom.dcx.sein.mtm.dxi.client.manager.GetItemRequestManager.doRequestTransformation(GetItemRequestManager.java:100)
>         
>atcom.dcx.sein.mtm.dxi.client.manager.GetItemRequestManager.execute(GetItemRequestManager.java:67)
>         
>atcom.dcx.sein.mtm.dxi.client.manager.RequestDistributer.getItem(RequestDistributer.java:78)
>         
>atcom.dcx.sein.mtm.dxi.client.controller.DXIController.getItem(DXIController.java:80)
>         
>atcom.dcx.sein.mtm.icom.dxi.DXIInternalCommunicationHandler.getItemDxi(DXIInternalCommunicationHandler.java:85)
>         at java.lang.reflect.Method.invoke(Native Method)
>         
>atcom.dcx.sein.mtm.icom.InternalCommunicationHandlerImpl.receiveMessage(InternalCommunicationHandlerImpl.java:112)
>         at com.dcx.sein.mtm.icom.ICOMHandlerDisposer.run(ICOMHandlerDisposer.java:38)
>         at java.lang.Thread.run(Unknown Source)
> java.lang.reflect.InvocationTargetException
> java.lang.reflect.InvocationTargetException
> java.lang.reflect.InvocationTargetException
> java.lang.reflect.InvocationTargetException
> java.lang.reflect.InvocationTargetException
> 
> regards,
> Stefan
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to