I could never get that code to work while testing in my IDE-- I juse Borland and Netbeans... no matter the version of of the sdk... that said -- I can use getcodebase outside of the IDE environment.. I think I had a problem with getimage and getcodebase used together within the IDEs. I also have not updated my version of Java.. so thank you for the heads up.
I check the current date with data already stored. If the date has changed I retrieve the new data file.. Unless I reinstall the servlet- after the date change-- the process will not trigger when called from a web page. I am deleting the contents of a table and adding new data for the current date.
I have used this process elsewhere and it works fine and if it was not working it would not work when I upload a new copy of the servlet. It does work.
I am using JDBC to update a database daily. The servlet acts on date triggers. The problem-- unless I reinstall the servlet each morning -- the database will not update. Looks like some sort of initialization problem. I am not sure if with my server or tomcat.
Yes, I am having the same problem and use applets quite a bit. I noticed the Crossword applet the Washington Post uses -- also flickers in the Mac FireFox browser. Safari works fine. So does FireFox on the PC.
Does anyone know if Mozilla plans to look into or fix this issue?
Exception in thread "main" java.lang.NullPointerExceptio
at java.applet.Applet.getCodeBase(Unknown Source
This error occurs when you are running from most IDE's or if the resource you are looking for is not located in the same directory as the class or jar file.
Since AJAX has become very popular- with its ability to connect to server side resources from the client browser-- will or has the Java applet follow suit? Maybe it has already, however I cannot find anything that suggests you can now access server side resources like a MySQL database.