Applet - Oracle 8.0 database connectivity failing in Netscape Browser

I have written a Java Applet to connect to the Oracle (8.0) database. My Applet is residing in a remote server. The Applet connected to the database when run in Internet Explorer, but failed to connect to the database using Netscape Navigator (4.08) and resulted in the following error

############################

java.lang.NullPointerException

at oracle.jdbc.driver.OracleStatement.get_column_index(Compiled Code)

at oracle.jdbc.driver.OracleResultSet.findColumn(Compiled Code)

at oracle.jdbc.driver.OracleResultSet.getInt(Compiled Code)

at EmpActivityApplet.getActivityData(Compiled Code)

at EmpActivityApplet.paint(Compiled Code)

at java.awt.Component.dispatchEventImpl(Compiled Code)

at java.awt.Container.dispatchEventImpl(Compiled Code)

* at java.awt.Component.dispatchEvent(Compiled Code)

at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)

at java.awt.EventDispatchThread.run(Compiled Code)

at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)

############################

I have zipped the my Java Applet program with the Oracle Thin Driver classes (EmpActivityApplet.zip) and coded the following HTML page to load the Applet:

############################

<HTML>

<HEAD>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">

<TITLE>untitled</TITLE>

</head>

<body>

<applet code="EmpActivityApplet" CODEBASE="." ARCHIVE="EmpActivityApplet.zip"

WIDTH = 1000

HEIGHT = 300>

</applet>

</body>

</html>

############################

Please somebody help me in resolving this problem. This is urgent.

Please reply to mvnraju_undi@yahoo.com

Regards,

Raju.

[1918 byte] By [mvnraju_undi] at [2007-9-26 1:37:40]
# 1

Hi,

If ur Applet Needs to Access the System Resouces(JDBC API calls) u have to Make ur Applet trusted.U can Use the Keytool utility Bundled with JDK to Achecive this.The Actual Problem u may get is a Security Exception Due to which u cannot create a Connection Object which results in a Null Pointer Exception

thankx,

A.Md Abubacker

abubacker-1977 at 2007-6-29 2:24:42 > top of Java-index,Archived Forums,Java Programming...