• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:


 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic