Jonathan Romley wrote:
> When we are parsing the template, the error is shown
> exception is thrown, and so no data is written to the outputstream of the pdf
> therefore it is of 0 bytes, and can't be read - so the reason we get File 
> does not begin with %PDF is resolved - there is no data in the file being 
> created to be read... Since iText is generating the doc to be read, we are 
> lead to the iText issue:
> 
> parser.parse(byteArray.toByteArrayInputStream() , new SAXmyHandler(document, 
> hashMap));
> 
> this is the line showing Null ptr exception
> 
> Not giving much info...
> 2008-07-25 07:11:37,626 ERROR 
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/ArtistForce].[action]
>  - Servlet.service() for servlet action threw exception
> java.lang.NullPointerException
>  at 
> org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:441)
>  at 
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)

In other words: your initial question was very misleading.
And you've discovered that you were wrong testing your code
in a web application. The next step is that you'll write a
standalone example that reproduces the problem, isn't it?
Or do you want us to use our psychic powers to discover...

I JUST NOTICE THAT YOU BROKE THE RULES!!!
YOU REPLIED TO [EMAIL PROTECTED] INSTEAD OF TO THE MAILING LIST!!!

Sorry, I don't answer mails that don't pass through the mailing list!
-- 
This answer is provided by 1T3XT BVBA

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to