Hi, Please use the latest SDK 1.6.1. If you still get the same error, could you post the whole exception stack trace?
On Dec 20 2011, 4:01 am, sasikala vijaya <[email protected]> wrote: > Hi Team > 1. I have tried with this sample > applicaitonhttp://code.google.com/appengine/docs/java/conversion/overview.html#C... > . > 2.For Converting html-png conversion. > 3.I am getting ConversionError INTERNAL_ERROR: > java.lang.NullPointerException error. > 4.I am using sdk1.5.4 updated version and ecilpse galileo 3.4 version > 5.dosomethignWithAssert method i am getting error like create method > doSomethingWithAssert(byte[]) > 6.do i need to include any jar file to execute this api. > > Here is my code: > > @RequestMapping("/supportedfiletypesone") > public void doPost3(HttpServletRequest request,HttpServletResponse > response) throws InterruptedException, ExecutionException { > Asset asset = new Asset( > "text/html", "<b>some data<b>".getBytes(), "testfile.html"); > Document document = new Document(asset); > Conversion conversion = new Conversion(document, "image/png"); > > ConversionService service = > ConversionServiceFactory.getConversionService(); > System.out.println("service"+service); > ConversionResult result = service.convert(conversion); > System.out.println("result"+result); > > if (result.success()) { > // Note: in most cases, we will return data all in one asset, > // except that we return multiple assets for multi-page > images. > for (Asset asset1 : result.getOutputDoc().getAssets()) { > doSomethingWithAsset(asset1.getData()); > } > } else { > mLogger.info("result"+result.getErrorCode()); > } > } > private void doSomethingWithAsset(byte[] data) { > // TODO Auto-generated method stub > > } > > > > > > > > } -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
