I am trying to open image in server side , i tryied getCodeBase()+filename but applet throws NullpointerException how can i get path on server and read from or right to ?
That hard to say without knowing which object is null, and what the code is trying to do at that point. (In other words, post the relevant lines of code, and the full stack trace of the exception.) [ March 31, 2008: Message edited by: Ulf Dittmer ]
Completely ignoring exceptions is rarely a good idea, and definitely not here.
hassan ali
Ranch Hand
Joined: Apr 23, 2006
Posts: 127
posted
0
hi this Console message . i need to write TIFF file(nour2.tif) after loding nour.tiff and get Graphic(g) object and draw using it and save it as nour2.tiff
liveconnect: Invoking JS method: document liveconnect: Invoking JS method: URL basic: Referencing classloader: sun.plugin.ClassLoaderInfo@5d173, refcount=1 basic: Added progress listener: sun.plugin.util.GrayBoxPainter@ab95e6 basic: Loading applet ... basic: Initializing applet ... basic: Starting applet ... basic: completed perf rollup security: Loading Root CA certificates from D:\PROGRA~1\Java\JRE16~1.0_0\lib\security\cacerts security: Loaded Root CA certificates from D:\PROGRA~1\Java\JRE16~1.0_0\lib\security\cacerts security: Loading certificates from Deployment session certificate store security: Loaded certificates from Deployment session certificate store security: Loading certificates from Internet Explorer ROOT certificate store security: Loaded certificates from Internet Explorer ROOT certificate store security: Loading certificates from Internet Explorer TrustedPublisher certificate store security: Loaded certificates from Internet Explorer TrustedPublisher certificate store security: Validate the certificate chain using CertPath API security: Obtain certificate collection in Root CA certificate store security: Obtain certificate collection in Root CA certificate store security: The CRL support is disabled security: The OCSP support is disabled security: No timestamping info available security: Checking if certificate is in Deployment denied certificate store security: Checking if certificate is in Deployment permanent certificate store security: Checking if certificate is in Deployment session certificate store security: Checking if certificate is in Internet Explorer TrustedPublisher certificate store security: User has granted the priviledges to the code for this session only security: Adding certificate in Deployment session certificate store security: Added certificate in Deployment session certificate store security: Saving certificates in Deployment session certificate store security: Saved certificates in Deployment session certificate store basic: Loaded image: file:/D:/Documents%20and%20Settings/hasssan/Desktop/jaiapplet/nour.tif
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35443
9
posted
0
That's not a stack trace, those are just startup message sof the Java Plugin. But you said there was an exception, and for figuring out what causes that it's important to know where that occurs. So you need to tell us which line of code causes the exception, and -since you said it's a NullPointerException- you should start with examining which object is null.