Message3393

Author shoyu
Recipients shoyu
Date 2008-08-04.10:25:19
SpamBayes Score 6.884054e-05
Marked as misclassified No
Message-id <1217845520.49.0.78503320192.issue1096@psf.upfronthosting.co.za>
In-reply-to
Content
Hello,

When I try to connect to Oracle using ojdbc6.jar on Java 1.6u7, with the
program:
{{{
from com.ziclix.python.sql import zxJDBC
...
dbora = zxJDBC.connect(dora,uora,pora,vora)
...
}}}

I have the message:

[oracle@vbh-app-ptd01 jython]$ bin/jython testenv.py
4 août 2008 12:20:40 oracle.jdbc.driver.OracleDriver registerMBeans
GRAVE: Error while registering Oracle JDBC Diagnosability MBean.
java.lang.NullPointerException
        at
oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:304)
        at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:213)
        at java.security.AccessController.doPrivileged(Native Method)
        at oracle.jdbc.driver.OracleDriver.<clinit>(OracleDriver.java:209)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at com.ziclix.python.sql.connect.Connect.__call__(Connect.java:87)
        at org.python.core.PyObject.__call__(PyObject.java:251)
        at org.python.core.PyObject.invoke(PyObject.java:3358)
        at org.python.pycode._pyx0.f$0(testenv.py)
        at org.python.pycode._pyx0.call_function(testenv.py)
        at org.python.core.PyTableCode.call(PyTableCode.java:182)
        at org.python.core.PyCode.call(PyCode.java:14)
        at org.python.core.Py.runCode(Py.java:1200)
        at
org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:155)
        at org.python.util.jython.main(jython.java:224)

But it seems that the connection is OK and the python program doesn't
crash. I don't have this problem with jython 2.3+. I use the last
version of ojdbc6.jar.

Best regards.

Stéphane.
History
Date User Action Args
2008-08-04 10:25:20shoyusetrecipients: + shoyu
2008-08-04 10:25:20shoyusetmessageid: <1217845520.49.0.78503320192.issue1096@psf.upfronthosting.co.za>
2008-08-04 10:25:20shoyulinkissue1096 messages
2008-08-04 10:25:20shoyucreate