Hi
I have a problem with my applet which uses JDBC to retrieve the values from the oracle database. I try to create a chart with the data from the db. I find that applet works fine when i run with the appletviewer but it does not work properly when i see it on the browser. So what ever graphics shapes(rectangle) that i draw based on the values from the db does not appear on the browser. I learned that only signed applets can access and made a signed applet. I do not know how to proceed further. I have given the "codebase" and "archive" values properly in the <applet> tag.
I get the following error :
Cannot get connection
java.lang.NullPointerException
at Chart1.paint (Chart1.java:51)
at com/ms/awt/WComponentPeer.doClearAndPaint (WComponentPeer.java)
at com/ms/awt/WComponentPeer.paintNode (WComponentPeer.java)
at com/ms/ui/windowmanager/PaintRequest.run (PaintRequest.java)
at com/ms/ui/windowmanager/RunnableMessage.run (RunnableMessage.java)
at com/ms/awt/WSystemQueue.getMessage (WSystemQueue.java)
at com/ms/awt/WEventQueue.getNextEvent (WEventQueue.java)
at java/awt/EventDispatchThread.run (EventDispatchThread.java)
"Cannot get connection " is the msg that i give in the try catch block for SQLException...
Thanks in advance
nat
I have a problem with my applet which uses JDBC to retrieve the values from the oracle database. I try to create a chart with the data from the db. I find that applet works fine when i run with the appletviewer but it does not work properly when i see it on the browser. So what ever graphics shapes(rectangle) that i draw based on the values from the db does not appear on the browser. I learned that only signed applets can access and made a signed applet. I do not know how to proceed further. I have given the "codebase" and "archive" values properly in the <applet> tag.
I get the following error :
Cannot get connection
java.lang.NullPointerException
at Chart1.paint (Chart1.java:51)
at com/ms/awt/WComponentPeer.doClearAndPaint (WComponentPeer.java)
at com/ms/awt/WComponentPeer.paintNode (WComponentPeer.java)
at com/ms/ui/windowmanager/PaintRequest.run (PaintRequest.java)
at com/ms/ui/windowmanager/RunnableMessage.run (RunnableMessage.java)
at com/ms/awt/WSystemQueue.getMessage (WSystemQueue.java)
at com/ms/awt/WEventQueue.getNextEvent (WEventQueue.java)
at java/awt/EventDispatchThread.run (EventDispatchThread.java)
"Cannot get connection " is the msg that i give in the try catch block for SQLException...
Thanks in advance
nat