java.lang.NullPointerException at java.applet.Applet.getCodeBase(Unknown Source) at applet.trend.trendchart.getServletConnection(trendchart.java:212) ...
in what kind of situation getCodeBase() can return a null value?
SCEA, CISA.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35224
7
posted
0
The javadocs don't mention that it could or should ever return null.
Are you running this on a web server, via appletviewer or are you opening a local HTML file?
Loooking at it again I notice that it doesn't actually return null, it has an internal NPE. I'm surprised it works at all with the "applet/trend/trendchart"; that should contain dots, not slashes.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.