-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: hibernate 2.1 and Websphere 4 in WSAD
PostPosted: Tue Dec 30, 2003 5:25 pm 
Newbie

Joined: Tue Dec 30, 2003 4:12 pm
Posts: 2
Location: Los Angeles
I am struggling with this problem. Please help

MY hibernate.cfg.xml looks like this.

<hibernate-configuration>

<session-factory>
<property name="connection.datasource">jdbc/autopay</property>
<property name="show_sql">true</property>
<property name="dialect">net.sf.hibernate.dialect.DB2Dialect</property>
<property name="transaction.factory_class">net.sf.hibernate.transaction.JTATransactionFactory</property>
<property name="transaction.manager_lookup_class">net.sf.hibernate.transaction.WebSphereTransactionManagerLookup</property>
<property name="jta.UserTransaction">UserTransaction</property>

<mapping resource="resources/xml/BankInformation.hbm.xml"/>

</session-factory>

</hibernate-configuration>




when I start my application I get this stack trace.

[12/30/03 13:23:29:029 PST] 669cde22 SystemOut U 2003-12-30 13:23:29,029 [Thread-1] INFO net.sf.hibernate.cfg.SettingsFactory - Use outer join fetching: true

[12/30/03 13:23:29:045 PST] 669cde22 SystemOut U 2003-12-30 13:23:29,045 [Thread-1] INFO net.sf.hibernate.util.NamingHelper - JNDI InitialContext properties:{}

[12/30/03 13:23:29:076 PST] 669cde22 SystemOut U 2003-12-30 13:23:29,076 [Thread-1] INFO net.sf.hibernate.connection.DatasourceConnectionProvider - Using datasource: jdbc/autopay

[12/30/03 13:23:29:091 PST] 669cde22 SystemOut U 2003-12-30 13:23:29,091 [Thread-1] INFO net.sf.hibernate.transaction.TransactionFactoryFactory - Transaction strategy: net.sf.hibernate.transaction.JTATransactionFactory

[12/30/03 13:23:29:107 PST] 669cde22 SystemOut U 2003-12-30 13:23:29,107 [Thread-1] INFO net.sf.hibernate.util.NamingHelper - JNDI InitialContext properties:{}

[12/30/03 13:23:29:107 PST] 669cde22 SystemOut U 2003-12-30 13:23:29,107 [Thread-1] INFO net.sf.hibernate.transaction.TransactionManagerLookupFactory - instantiating TransactionManagerLookup: net.sf.hibernate.transaction.WebSphereTransactionManagerLookup

[12/30/03 13:23:29:123 PST] 669cde22 SystemOut U 2003-12-30 13:23:29,123 [Thread-1] INFO net.sf.hibernate.transaction.TransactionManagerLookupFactory - instantiated TransactionManagerLookup

[12/30/03 13:23:29:138 PST] 669cde22 SystemOut U 2003-12-30 13:23:29,138 [Thread-1] INFO net.sf.hibernate.transaction.WebSphereTransactionManagerLookup - WebSphere 4

[12/30/03 13:23:29:138 PST] 669cde22 SystemOut U 2003-12-30 13:23:29,138 [Thread-1] INFO net.sf.hibernate.transaction.TransactionManagerLookupFactory - instantiating TransactionManagerLookup: net.sf.hibernate.transaction.WebSphereTransactionManagerLookup

[12/30/03 13:23:29:138 PST] 669cde22 SystemOut U 2003-12-30 13:23:29,138 [Thread-1] INFO net.sf.hibernate.transaction.TransactionManagerLookupFactory - instantiated TransactionManagerLookup

java.lang.ExceptionInInitializerError: java.lang.NullPointerException
at java.lang.String.length(String.java(Inlined Compiled Code))
at java.io.Win32FileSystem.normalize(Win32FileSystem.java(Compiled Code))
at java.io.Win32FileSystem.getUserPath(Win32FileSystem.java:283)
at java.io.Win32FileSystem.resolve(Win32FileSystem.java:299)
at java.io.File.getCanonicalPath(File.java:454)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1788)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1729)
at java.lang.Runtime.loadLibrary0(Runtime.java:780)
at java.lang.System.loadLibrary(System.java:865)
at COM.ibm.db2.jdbc.app.DB2Driver.<init>(DB2Driver.java:227)
at COM.ibm.db2.jdbc.app.DB2Driver.<clinit>(DB2Driver.java:130)
at COM.ibm.db2.jdbc.DB2BaseDataSource.isLoaded(DB2BaseDataSource.java:354)
at COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource.getPooledConnection(DB2ConnectionPoolDataSource.java:100)
at com.ibm.ejs.cm.portability.PortabilityLayerImpl.getInstance(PortabilityLayerImpl.java:982)
at com.ibm.ejs.cm.portability.PortabilityLayerFactory.getPortabilityLayer(PortabilityLayerFactory.java:62)
at com.ibm.ejs.cm.JDBC1PhaseRF.createConnectionFactory(JDBC1PhaseRF.java:57)
at com.ibm.ejs.cm.DataSourceImpl$3.run(DataSourceImpl.java:219)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.ejs.cm.DataSourceImpl.getSource(DataSourceImpl.java:217)
at com.ibm.ejs.cm.DataSourceImpl$1.run(DataSourceImpl.java:135)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.ejs.cm.DataSourceImpl.getConnection(DataSourceImpl.java:133)
at com.ibm.ejs.cm.DataSourceImpl.getConnection(DataSourceImpl.java:102)
at net.sf.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:59)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1078)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:724)
at com.i21.autopay.framework.persist.HibernateManager.init(HibernateManager.java:39)
at com.i21.autopay.framework.Framework.initSubSystems(Framework.java:68)
at com.i21.autopay.framework.ServerBootStrap.init(ServerBootStrap.java:12)
at com.TestCaseServlet.init(TestCaseServlet.java:69)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:802)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:141)
at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:254)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:107)
at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:84)
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:193)
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:325)
at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1217)
at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:145)
at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:259)
at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:168)
at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:856)
at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36)
at com.ibm.ws.runtime.Server.startModule(Server.java:617)
at com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333)
at com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:349)
at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:884)
at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV4$1.run(ServerRunnerV4.java:56)

This is such a bad problem that it causes my WAS instance to hang and I basically need to restart my WSAD . I cannot even stop the server
[/quote]


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 30, 2003 5:31 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
That exception is from INSIDE your jdbc.app.DB2Driver! Maybe it is looking for some native drivers that are not available via tha Path or something ? just guessing...

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 30, 2003 7:25 pm 
Newbie

Joined: Tue Dec 30, 2003 4:12 pm
Posts: 2
Location: Los Angeles
max wrote:
That exception is from INSIDE your jdbc.app.DB2Driver! Maybe it is looking for some native drivers that are not available via tha Path or something ? just guessing...


I think this is bug in Hibernate. I downloaded 2.03 and it works. I have posted this as bug


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 30, 2003 8:47 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
njuneja wrote:
max wrote:
That exception is from INSIDE your jdbc.app.DB2Driver! Maybe it is looking for some native drivers that are not available via tha Path or something ? just guessing...


I think this is bug in Hibernate. I downloaded 2.03 and it works. I have posted this as bug


Would you please try to step through your code and find out why a jdbc drivers is Null pointing INSIDE it's call to a loadLibrary() method !?

This is most likely something dependent on your exact environment - and thus most likely not a bug....but if it is then we can't find it without
*you* digging some more than just point a NullPointer into a commercial vendors initializing code.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.