DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCJDOJCA-9
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Minor Minor
Assignee: Marco Schulze
Reporter: Marco Schulze
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus JDO JCA

autoStartMechanism=XML causes NullPointerException in JavaEE environment

Created: 01/Apr/10 12:52 PM   Updated: 30/Mar/16 09:39 AM   Resolved: 30/Mar/16 09:38 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Environment: JBoss 4.2.3.GA, MySQL 5.1.41, Sun Java 1.6.0_19 64-bit, Kubuntu 10.04

Forum Thread URL: http://www.jpox.org/servlet/forum/viewthread_thread,6037#32118


 Description  « Hide
When using DataNucleus with 'datanucleus.autoStartMechanism="XML"' like in this deployment descriptor

http://www.nightlabs.de/~marco/datanucleus/2010-03-31.00/JFire_JDO_chezfrancois.jfire.org.last/

a NullPointerException is thrown:

2010-03-31 22:42:08,090 INFO [org.jboss.resource.connectionmanager.TxConnectionManager] throwable from unregister connection
java.lang.NullPointerException
        at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.connectionClosed(TxConnectionManager.java:637)
        at org.datanucleus.jdo.connector.ManagedConnectionImpl.notifyClosed(ManagedConnectionImpl.java:361)
        at org.datanucleus.jdo.connector.PersistenceManagerImpl.close(PersistenceManagerImpl.java:175)
        at org.nightlabs.jfire.servermanager.ra.JFireServerManagerImpl.login(JFireServerManagerImpl.java:543)
        at org.nightlabs.jfire.jboss.authentication.JFireServerLoginModule.login(JFireServerLoginModule.java:175)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
        at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
        at org.nightlabs.unifiedjndi.jboss.client.UnifiedLoginContext.login(UnifiedLoginContext.java:317)

This NPE does not happen when using 'datanucleus.autoStartMechanism="SchemaTable"'.

Marco Schulze made changes - 01/Apr/10 12:52 PM
Field Original Value New Value
Description When using DataNucleus with 'datanucleus.autoStartMechanism="XML"' like in this deployment descriptor

http://www.nightlabs.de/~marco/datanucleus/2010-03-31.00/JFire_JDO_chezfrancois.jfire.org.last/

a NullPointerException is thrown:

2010-03-31 22:42:08,090 INFO [org.jboss.resource.connectionmanager.TxConnectionManager] throwable from unregister connection
java.lang.NullPointerException
        at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.connectionClosed(TxConnectionManager.java:637)
        at org.datanucleus.jdo.connector.ManagedConnectionImpl.notifyClosed(ManagedConnectionImpl.java:361)
        at org.datanucleus.jdo.connector.PersistenceManagerImpl.close(PersistenceManagerImpl.java:175)
        at org.nightlabs.jfire.servermanager.ra.JFireServerManagerImpl.login(JFireServerManagerImpl.java:543)
        at org.nightlabs.jfire.jboss.authentication.JFireServerLoginModule.login(JFireServerLoginModule.java:17
5)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
        at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
        at org.nightlabs.unifiedjndi.jboss.client.UnifiedLoginContext.login(UnifiedLoginContext.java:317)

This NPE does not happen when using 'datanucleus.autoStartMechanism="SchemaTable"'.
When using DataNucleus with 'datanucleus.autoStartMechanism="XML"' like in this deployment descriptor

http://www.nightlabs.de/~marco/datanucleus/2010-03-31.00/JFire_JDO_chezfrancois.jfire.org.last/

a NullPointerException is thrown:

2010-03-31 22:42:08,090 INFO [org.jboss.resource.connectionmanager.TxConnectionManager] throwable from unregister connection
java.lang.NullPointerException
        at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.connectionClosed(TxConnectionManager.java:637)
        at org.datanucleus.jdo.connector.ManagedConnectionImpl.notifyClosed(ManagedConnectionImpl.java:361)
        at org.datanucleus.jdo.connector.PersistenceManagerImpl.close(PersistenceManagerImpl.java:175)
        at org.nightlabs.jfire.servermanager.ra.JFireServerManagerImpl.login(JFireServerManagerImpl.java:543)
        at org.nightlabs.jfire.jboss.authentication.JFireServerLoginModule.login(JFireServerLoginModule.java:175)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
        at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
        at org.nightlabs.unifiedjndi.jboss.client.UnifiedLoginContext.login(UnifiedLoginContext.java:317)

This NPE does not happen when using 'datanucleus.autoStartMechanism="SchemaTable"'.
Andy Jefferson added a comment - 30/Mar/16 09:38 AM
No comment on this in 6 years. Assumed not a problem

Andy Jefferson made changes - 30/Mar/16 09:38 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Won't Fix [ 2 ]
Andy Jefferson made changes - 30/Mar/16 09:39 AM
Status Resolved [ 5 ] Closed [ 6 ]