File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Exception in thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException" Watch "Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException" New topic
Author

Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException

Moayad Abu Jaber
Ranch Hand

Joined: Jan 15, 2008
Posts: 80
Dear rancher,
I write application in applet the applet access the scanner and scanning the page after finish scanning save file into TIFF extension.

check my code below I called it into button action:



I check these objects "tifFile" and "tiffImage" all of them have a value
the first two rows you will see the value of these objects
you can see the exception below:



Best Regards,
Moayad Abu Jaber
SCJP 5.0, SCWCD 1.4, SCBCD 5.0
Ivan Ivanofff
Greenhorn

Joined: Jul 08, 2009
Posts: 2
I have similar problem with JAI.
Check policies, written in java.policy. There must be a string like this: grant codeBase <url> { permission java.security.AllPermission; };
More details you can see here: http://j-integra.intrinsyc.com/support/kb/article.aspx?id=30128
Moayad Abu Jaber
Ranch Hand

Joined: Jan 15, 2008
Posts: 80
Thanks for you replay,
Actually I forgot to post how I solved this problem, In my code I missed to add BufferedImage to ArrayList

really was funny problem
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException