Well the error reported is a NullPointerException in the
initializer for the driver you're trying to use. So clearly the driver
class is loaded (that is, you haven't put the JAR in the wrong place or
something). It's a little hard to say what is null in the initializer for
the driver (I think <clinit> means a static initializer, right?). But I
suspect this is a type 2 JDBC driver, meaning it requires some native
libraries which may not be available when you run it in jBoss. Can you
confirm that? If it is instead a type 3 or 4 JDBC driver, then perhaps
it's looking for configuration files or something? Too bad it's not open
source - you could just look up the line in the code... :)
Aaron
On Mon, 23 Oct 2000, Michael G. Drew wrote:
> Hi All,
>
> Has Anyone successfully configured HP's com.hp.jdbc.allbase.JdbcDriver
> for use with jBoss? I've tried to set it up, but when the server starts I
> get the error listed below. Thank you for any insight or help!
>
> [J2ee deployer> Initialized
> java.lang.ExceptionInitializerError: java.lang.NullPointerException
> at java.io.Writer.<init>(Writer.java:73)
> at java.io.OuputStreamWriter.<init>(OutputStreamWriter.java:95)
> at java.io.OuputStreamWriter.<init>(OutputStreamWriter.java:84)
> at java.io.PrintWriter.<init>(PrintWriter.java:106)
> at java.io.PrintWriter.<init>(PrintWriter.java:90)
> at com.hp.allbase.JdbcDriver.<clinit>(JdbcDriver.java:77)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:120)
> at org.jboss.jdbc.JdbcProvider.preRegister(JdbcProvider.java:61)
> at
> com.sun.management.jmx.MBeanServerImpl.preRegisterInvoker(MBeanServerImpl.java:2245)
> at
> com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:513)
> at javax.management.loading.MLet.getMBeansFromURL(MLet.java:523)
> at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
> at org.jboss.Main.<init>(Main.java:123)
> at org.jboss.Main.<init>(Main.java:98)
> at org.jboss.Main$1.run(Main.java:88)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.jboss.Main.main(Main.java:79)
>
> I noticed that earlier in the startup there are [JDBC] entries for
> both Hypersonic and InstantDB, but not for the TurboIMAGE (actually
> IMAGE/SQL) entry that I added. I'm assuming that it is trying to load that
> entry right here when the error occurs. Here are the config file entries:
>
> ******* jboss.properties **********
> jdbc.drivers =
> org.hsql.jdbcDriver,jdbc.idbDriver,com.hp.jdbc.allbase.JdbcDriver
>
> ******* jboss.conf ************
> <MLET CODE="org.jboss.jdbc.JdbcProvider"
> ARCHIVE="jboss.jar,idb.jar,hsql.jar,hpjdbc.jar"
> CODEBASE="../lib/ext/">
> </MLET>
> (((((( yes the hpjdbc.jar file is in ../lib/ext ))))))))))
> <MLET CODE="org.jboss.jdbc.XADataSourceLoader" ARCHIVE="jboss.jar,hpjdbc.jar"
> CODEBASE="../lib/ext/">
> <ARG TYPE="java.lang.String" VALUE="TurboIMAGE">
> <ARG
> TYPE="java.lang.String" VALUE="org.jboss.minerva.xa.XADataSourceImpl">
> </MLET>
>
> ******** jboss.jcml *********
> <mbean name="DefaultDomain:service=XADataSource,name=TurboIMAGE">
> <attribute
> name="URL">jdbc:allbase://123.123.123.123/DBEName?</attribute>
> <attribute name="JDBCUser">USER.ACCT</attribute>
> <attribute name="Password">USRPASS,ACCTPASS</attribute>
> </mbean>
>
>
> I have tested the jdbc driver from a stand alone (non-EJB) client and it
> works perfectly.
>
> Michael G. Drew
> Kishwaukee College
> Interface Programmer
> [EMAIL PROTECTED]
> (815) 825-2086 ext. 595
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]