geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: Toplink Essentials JPA + Geronimo = NullPointerException
Date Fri, 29 Feb 2008 16:19:02 GMT
I think there's a good chance you are seeing a problem caused by  
https://issues.apache.org/jira/browse/GERONIMO-3880

We really need a admin console function to get and install upgrade  
jars :-)

Since we don't have that yet...
I'm assuming you are using geronimo 2.1.  I'd recommend you switch if  
you arent but will try for instructions for 2.0.2 also

in <geronimo-home>
mkdir -p repository/org/apache/geronimo/modules/geronimo-persistence- 
jpa10/2.2-SNAPSHOT
wget http://people.apache.org/repo/m2-snapshot-repository/org/apache/ 
geronimo/modules/geronimo-persistence-jpa10/2.2-SNAPSHOT/geronimo- 
persistence-jpa10-2.2-20080229.155614-3.jar
mv geronimo-persistence-jpa10-2.2-20080229.155614-3.jar    repository/ 
org/apache/geronimo/modules/geronimo-persistence-jpa10/2.2-SNAPSHOT/ 
geronimo-persistence-jpa10-2.2-SNAPSHOT.jar

then edit var/config/artifact_aliases.properties

add lines

org.apache.geronimo.modules/geronimo-persistence-jpa10// 
jar=org.apache..geronimo.modules/geronimo-persistence-jpa10/2.2- 
SNAPSHOT/jar
org.apache.geronimo.modules/geronimo-persistence-jpa10/2.1/ 
jar=org.apache.geronimo.modules/geronimo-persistence-jpa10/2.2- 
SNAPSHOT/jar


for g. 2.0.2:
wget http://people.apache.org/repo/m2-snapshot-repository/org/apache/ 
geronimo/modules/geronimo-persistence-jpa10/2.2-SNAPSHOT/geronimo- 
persistence-jpa10-2.2-20080229.155614-3.jar
mv geronimo-persistence-jpa10-2.2-20080229.155614-3.jar    repository/ 
org/apache/geronimo/modules/geronimo-persistence-jpa10/2.0.2/geronimo- 
persistence-jpa10-2.0.2.jar

Please let us know if this fixes the problem

thanks
david jencks

On Feb 28, 2008, at 2:25 PM, Brian Gregory wrote:

>
> I'm using class + persistence.xml that work fine in a simple test  
> app but
> will not deploy as part of a webapp. I'm including the jars in WEB- 
> INF/lib
> (it appears to be finding them anyway).
>
> Anyone seen this before? (I couldn't find an answer in the groups)  
> Anyone
> used Toplink Essentials w/ Geronimo? Anyone know how I get more log  
> info? (I
> already have the toplink.logging.level set to FINEST with no output)
>
>
> 17:16:58,193 ERROR [GBeanInstanceState] Error while starting; GBean  
> is now
> in the FAILED state:
> abstractName="net.myapplication/MyWeb/1.0/car? 
> J2EEApplication=null,PersistenceUnitModule=WEB-INF/ 
> classes/,WebModule=net.myapplication/MyWeb/1.0/ 
> car,j2eeType=PersistenceUnit,name=toplinkPersistenceUnit"
> javax.persistence.PersistenceException: Exception [TOPLINK-28018]  
> (Oracle
> TopLink Essentials - 2.0 (Build b40-rc (03/21/2007))):
> oracle.toplink.essentials.exceptions.EntityManagerSetupException
> Exception Description: predeploy for PersistenceUnit
> [toplinkPersistenceUnit] failed.
> Internal Exception: java.lang.NullPointerException
> 	at
> oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.pre 
> deploy(EntityManagerSetupImpl.java:615)
> 	at
> oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.create 
> ContainerEntityManagerFactory(EntityManagerFactoryProvider.java:178)
> 	at
> org.apache.geronimo.persistence.PersistenceUnitGBean.<init> 
> (PersistenceUnitGBean.java:117)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native  
> Method)
> 	at
> sun.reflect.NativeConstructorAccessorImpl.newInstance 
> (NativeConstructorAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance 
> (DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> 	at
> org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance 
> (GBeanInstance.java:948)
> 	at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart( 
> GBeanInstanceState.java:268)
> 	at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start 
> (GBeanInstanceState.java:102)
> 	at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive 
> (GBeanInstanceState.java:124)
> 	at
> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive 
> (GBeanInstance.java:555)
> 	at
> org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean 
> (BasicKernel.java:379)
> 	at
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguration 
> GBeans(ConfigurationUtil.java:456)
> 	at
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start 
> (KernelConfigurationManager.java:187)
> 	at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConf 
> iguration(SimpleConfigurationManager.java:534)
> 	at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConf 
> iguration(SimpleConfigurationManager.java:515)
> 	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:585)
> 	at
> org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke 
> (ReflectionMethodInvoker.java:34)
> 	at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke 
> (GBeanOperation.java:124)
> 	at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke 
> (GBeanInstance.java:867)
> 	at
> org.apache.geronimo.kernel.basic.BasicKernel.invoke 
> (BasicKernel.java:239)
> 	at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java: 
> 342)
> 	at sun.reflect.GeneratedMethodAccessor156.invoke(Unknown Source)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
> org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke 
> (ReflectionMethodInvoker.java:34)
> 	at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke 
> (GBeanOperation.java:124)
> 	at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke 
> (GBeanInstance.java:867)
> 	at
> org.apache.geronimo.kernel.basic.BasicKernel.invoke 
> (BasicKernel.java:239)
> 	at
> org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke 
> (MBeanGBeanBridge.java:172)
> 	at
> com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke 
> (DynamicMetaDataImpl.java:213)
> 	at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
> 	at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke 
> (DefaultMBeanServerInterceptor.java:815)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke 
> (JmxMBeanServer.java:784)
> 	at
> javax.management.remote.rmi.RMIConnectionImpl.doOperation 
> (RMIConnectionImpl.java:1410)
> 	at
> javax.management.remote.rmi.RMIConnectionImpl.access$100 
> (RMIConnectionImpl.java:81)
> 	at
> javax.management.remote.rmi.RMIConnectionImpl 
> $PrivilegedOperation.run(RMIConnectionImpl.java:1247)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at
> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation 
> (RMIConnectionImpl.java:1350)
> 	at
> javax.management.remote.rmi.RMIConnectionImpl.invoke 
> (RMIConnectionImpl.java:784)
> 	at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java: 
> 294)
> 	at sun.rmi.transport.Transport$1.run(Transport.java:153)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> 	at sun.rmi.transport.tcp.TCPTransport.handleMessages 
> (TCPTransport.java:466)
> 	at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run 
> (TCPTransport.java:707)
> 	at java.lang.Thread.run(Thread.java:595)
> Caused by: Exception [TOPLINK-28018] (Oracle TopLink Essentials -  
> 2.0 (Build
> b40-rc (03/21/2007))):
> oracle.toplink.essentials.exceptions.EntityManagerSetupException
> Exception Description: predeploy for PersistenceUnit
> [toplinkPersistenceUnit] failed.
> Internal Exception: java.lang.NullPointerException
> 	at
> oracle.toplink.essentials.exceptions.EntityManagerSetupException.prede 
> ployFailed(EntityManagerSetupException.java:212)
> 	... 54 more
> Caused by: java.lang.NullPointerException
> 	at
> oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor 
> .buildEntityClassSetFromAnnotations(MetadataProcessor.java:475)
> 	at
> oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor 
> .buildEntityList(MetadataProcessor.java:447)
> 	at
> oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcesso 
> r.processORMetadata(PersistenceUnitProcessor.java:346)
> 	at
> oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.pre 
> deploy(EntityManagerSetupImpl.java:584)
> 	... 53 more
>
>
> -- 
> View this message in context: http://www.nabble.com/Toplink- 
> Essentials-JPA-%2B-Geronimo-%3D-NullPointerException- 
> tp15747518s134p15747518.html
> Sent from the Apache Geronimo - Users mailing list archive at  
> Nabble.com.
>



Mime
View raw message