Hi Olivier,
Thanks for the great help and quick response.
I tried to get the transform service this way too. But still it gives null 
pointer exception. Please suggest. Here is my ode snippet:
TransformServiceCommon service = 
Framework.getService(TransformServiceCommon.class);
if(service!=null)
                                        List<TransformDocument> results = 
service.transform("wordMLinject", null, blob);

Exception is there at the first line of code only where I am getting the 
service.
Regards,
_______________________________________________________

Amit Gupta / Capgemini India / Mumbai 
Consultant / TS / CSD 
Telephone1: +91226789-2195 / Telephone 2: +919920331578 / Fax : +91226789-2091 
/ www.in.capgemini.com
[EMAIL PROTECTED]


 Together. Free your energies
_________________________________________________________


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Olivier Grisel
Sent: Tuesday, August 12, 2008 6:41 PM
To: [email protected]
Subject: Re: [Ecm] Transformation Service in Nuxeo5.1

Gupta, Amit a écrit :

> I looked up this bean just because NXTransform.getTransformService();
> was giging NullPointerException .

The NXTransform class is deprecated, please try with regular service lookup 
instead:

TransformServiceCommon tservice =
Framework.getService(TransformServiceCommon.class);
List<TransformDocument> resultingDocs = tservice.transform("transformerName",
                    null, blob);

-- 
Olivier

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to