Hi,
this NPE is usually caused by an illegal URL/user/pwd combinition, use a
tool to verify your settings, check wether you have sufficient priviledges
to create tables (by issuing a create table statement) and good luck, there
are numerous posts regarding oracle problems, search the archive (via
jboss.org link)
Burkhard
----- Original Message -----
From: "Joshua Zhao" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 07, 2001 4:50 PM
Subject: [JBoss-user] EntityBean CreateException with Oracle8i
> Following the guide in
http://www.jboss.org/documentation/HTML/ch11s44.html,
> I have been able to run the examples from Richard Monson-Haefel's book
> "Enterprise JavaBeans" (Chap4). In this case, I used the default DB
> (Hypersonic). However, if I switch to Oracle8i, following the instructions
> from "Chapter 5. Customizing JAWS"
> (http://www.jboss.org/documentation/HTML/ch05.html) and others (JDBC
driver,
> jboss.jcml, and etc.), I get the following exception when I try to invoke
> com.titan.cabin.Client_1.
>
> javax.ejb.CreateException: Could not create
> entity:java.lang.NullPointerException
> at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown
> Source)
> at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
> at sun.rmi.server.UnicastRef.invoke(Unknown Source)
> at
>
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
> wn Source)
> at
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:248)
> at $Proxy0.create(Unknown Source)
> at com.titan.cabin.Client_1.main(Client_1.java:27)
>
> Any hints/comments would be greatly appreciated!
>
> Joshua Zhao
>
> FYI.
>
> I am using JBoss-2.2.1_Tomcat-3.2.1 with Windows NT workstation
environment.
> Below are what I have done for using Oracle8i:
> 1. Installed classes12.zip into the lib\ext directory;
> 2. Modified jboss.jcml as follows:
> <mbean code="org.jboss.jdbc.JdbcProvider"
> name="DefaultDomain:service=JdbcProvider">
> <attribute
>
name="Drivers">org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,orac
> le.jdbc.driver.OracleDriver</attribute>
> </mbean>
>
> <mbean code="org.jboss.jdbc.XADataSourceLoader"
> name="DefaultDomain:service=XADataSource,name=OracleDS">
> <attribute name="PoolName">OracleDS</attribute>
> <attribute
>
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
> l</attribute>
> <attribute
> name="URL">jdbc:oracle:thin:@localhost:1521:JXZORA60</attribute>
> <attribute name="JDBCUser">scott</attribute>
> <attribute name="Password">tiger</attribute>
> </mbean>
> 3. Modified jboss.properties by uncommenting the following line:
> jboss.xa.xidclass=oracle.jdbc.xa.OracleXid
> 4. Created a jaws.xml file in the META-INF and deployed with the cabin.jar
> <?xml version="1.0" encoding="UTF-8"?>
> <jaws>
> <datasource>java:/OracleDS</datasource>
> <type-mapping>Oracle8</type-mapping>
> <debug>false</debug>
>
> <default-entity>
> <create-table>false</create-table>
> <remove-table>false</remove-table>
> <tuned-updates>false</tuned-updates>
> <read-only>false</read-only>
> <time-out>300</time-out>
> <select-for-update>false</select-for-update>
> </default-entity>
>
> <type-mapping>
> <name>Oracle8</name>
> <!-- copy Oracle8 mapping from
> standardjaws.xml here -->
> </type-mapping>
> </jaws>
> 5. Created the table CABIN in the database.
>
> Below are from the start-up screen:
>
> [JDBC provider] Initializing
> [JDBC provider] Loaded JDBC-driver:org.hsql.jdbcDriver
> [JDBC provider] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver
> [JDBC provider] Loaded JDBC-driver:oracle.jdbc.driver.OracleDriver
> [JDBC provider] Initialized
> [Hypersonic] Initializing
> [Hypersonic] Initialized
> [InstantDB] Initializing
> [InstantDB] Initialized
> [DefaultDS] Initializing
> [DefaultDS] Initialized
> [OracleDS] Initializing
> [OracleDS] Initialized
> ......
> [Hypersonic] Starting
> [Hypersonic] Server 1.4 is running
> [Hypersonic] Database started
> [Hypersonic] Started
> [InstantDB] Starting
> [Hypersonic] Press [Ctrl]+[C] to abort
> [InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
> Enhydra InstantDB - Version 3.26
> [InstantDB] The Initial Developer of the Original Code is Lutris
> Technologies Inc.
> Portions created by Lutris are Copyright (C) 1997-2001 Lutris
Technologies,
> Inc.
> All Rights Reserved.
> [InstantDB] Started
> [DefaultDS] Starting
> [DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
> [DefaultDS] Started
> [OracleDS] Starting
> [OracleDS] XA Connection pool OracleDS bound to java:/OracleDS
> ......
> ......
> [Service Control] java.lang.NullPointerException
> [Service Control] at
> org.opentools.minerva.jdbc.xa.XAPoolDataSource.getCon
> nection(XAPoolDataSource.java:165)
> [Service Control] at
> org.jboss.jdbc.XADataSourceLoader.startService(XAData
> SourceLoader.java:330)
> [Service Control] at
> org.jboss.util.ServiceMBeanSupport.start(ServiceMBean
> Support.java:93)
> [Service Control] at java.lang.reflect.Method.invoke(Native Method)
> [Service Control] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
> rverImpl.java:1628)
> [Service Control] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
> rverImpl.java:1523)
> [Service Control] at
> org.jboss.util.ServiceControl.start(ServiceControl.ja
> va:97)
> [Service Control] at java.lang.reflect.Method.invoke(Native Method)
> [Service Control] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
> rverImpl.java:1628)
> [Service Control] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
> rverImpl.java:1523)
> [Service Control] at org.jboss.Main.<init>(Main.java:203)
> [Service Control] at org.jboss.Main$1.run(Main.java:107)
> [Service Control] at
> java.security.AccessController.doPrivileged(Native Me
> thod)
> [Service Control] at org.jboss.Main.main(Main.java:103)
> ......
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user