[
https://issues.apache.org/jira/browse/GERONIMO-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483811
]
David Jencks commented on GERONIMO-3018:
----------------------------------------
I think I fixed this in rev 521982. I picked JTA as the default if the
transaction type is not specified, but I did not check if that is the correct
default.
> Geronimy throws NullPointerException when deploying EAR
> -------------------------------------------------------
>
> Key: GERONIMO-3018
> URL: https://issues.apache.org/jira/browse/GERONIMO-3018
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: persistence
> Affects Versions: 2.0-M3
> Environment: OSX 10.4.9
> java version "1.5.0_07"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-134)
> Java HotSpot(TM) Client VM (build 1.5.0_07-83, mixed mode, sharing)
> Reporter: Loke
>
> When deploying an EAR for the first time, I get the stack trace shown below.
> There may obviously be problem with the EAR, but the application deploys
> properly in Glassfish, and in any case the application server should not
> shrow a NullPointerException.
> 05:12:36,748 WARN [startup] No ejb-jar.xml found assuming annotated beans
> present:
> /Users/foo/src/geronimo-jetty6-jee5-2.0-M3/var/temp/geronimo-deploymentUtil16663.tmpdir,
> module: geronimo-deploymentUtil16663.tmpdir
> 05:12:38,021 WARN [JettyModuleBuilder] Web application jsp.war does not
> contain a WEB-INF/geronimo-web.xml deployment plan. This may or may not be a
> problem, depending on whether you have things like resource references that
> need to be resolved. You can also give the deployer a separate deployment
> plan file on the command line.
> 05:12:38,284 INFO [config] Configuring app:
> geronimo-deploymentUtil16663.tmpdir
> 05:12:39,325 WARN [OpenEJB] Auto-deploying ejb GlobalManager:
> EjbDeployment(deployment-id=geronimo-deploymentUtil16663.tmpdir/GlobalManager,
> container-id=null)
> 05:12:39,325 WARN [OpenEJB] Auto-deploying ejb CustomerManager:
> EjbDeployment(deployment-id=geronimo-deploymentUtil16663.tmpdir/CustomerManager,
> container-id=null)
> 05:12:39,326 WARN [OpenEJB] Auto-deploying ejb DialogManager:
> EjbDeployment(deployment-id=geronimo-deploymentUtil16663.tmpdir/DialogManager,
> container-id=null)
> 05:12:39,326 WARN [OpenEJB] Auto-deploying ejb FilterManager:
> EjbDeployment(deployment-id=geronimo-deploymentUtil16663.tmpdir/FilterManager,
> container-id=null)
> 05:12:39,326 WARN [OpenEJB] Auto-deploying ejb PersonManager:
> EjbDeployment(deployment-id=geronimo-deploymentUtil16663.tmpdir/PersonManager,
> container-id=null)
> 05:12:39,326 WARN [OpenEJB] Auto-deploying ejb ProjectManager:
> EjbDeployment(deployment-id=geronimo-deploymentUtil16663.tmpdir/ProjectManager,
> container-id=null)
> 05:12:39,326 WARN [OpenEJB] Auto-deploying ejb TimeReportManager:
> EjbDeployment(deployment-id=geronimo-deploymentUtil16663.tmpdir/TimeReportManager,
> container-id=null)
> 05:12:40,193 INFO [config] Loaded Module: geronimo-deploymentUtil16663.tmpdir
> 05:12:42,828 ERROR [Deployer] Deployment failed due to
> java.lang.NullPointerException
> at
> org.apache.geronimo.persistence.builder.PersistenceUnitBuilder.installPersistenceUnitGBean(PersistenceUnitBuilder.java:142)
> at
> org.apache.geronimo.persistence.builder.PersistenceUnitBuilder.buildPersistenceUnits(PersistenceUnitBuilder.java:117)
> at
> org.apache.geronimo.persistence.builder.PersistenceUnitBuilder.build(PersistenceUnitBuilder.java:107)
> at
> org.apache.geronimo.persistence.builder.PersistenceUnitBuilder$$FastClassByCGLIB$$e8dd93fa.invoke(<generated>)
> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
> at
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> at
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
> at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> at
> org.apache.geronimo.deployment.NamespaceDrivenBuilder$$EnhancerByCGLIB$$dfade93d.build(<generated>)
> at
> org.apache.geronimo.deployment.NamespaceDrivenBuilderCollection.build(NamespaceDrivenBuilderCollection.java:48)
> at
> org.apache.geronimo.openejb.deployment.EjbModuleBuilder.initContext(EjbModuleBuilder.java:452)
> at
> org.apache.geronimo.openejb.deployment.EjbModuleBuilder$$FastClassByCGLIB$$cd80af20.invoke(<generated>)
> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
> at
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> at
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
> at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> at
> org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$3365039c.initContext(<generated>)
> at
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:539)
> at
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)
> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
> at
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> at
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
> at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> at
> org.apache.geronimo.j2ee.deployment.CorbaGBeanNameSource$$EnhancerByCGLIB$$6a927db1.buildConfiguration(<generated>)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124)
> at
> org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:855)
> at
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
> at
> org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:114)
> at
> org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:60)
> at java.lang.Thread.run(Thread.java:613)
> Deployer operation failed: java.lang.NullPointerException
> org.apache.geronimo.common.DeploymentException: java.lang.NullPointerException
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:383)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124)
> at
> org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:855)
> at
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
> at
> org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:114)
> at
> org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:60)
> at java.lang.Thread.run(Thread.java:613)
> Caused by: java.lang.NullPointerException
> at
> org.apache.geronimo.persistence.builder.PersistenceUnitBuilder.installPersistenceUnitGBean(PersistenceUnitBuilder.java:142)
> at
> org.apache.geronimo.persistence.builder.PersistenceUnitBuilder.buildPersistenceUnits(PersistenceUnitBuilder.java:117)
> at
> org.apache.geronimo.persistence.builder.PersistenceUnitBuilder.build(PersistenceUnitBuilder.java:107)
> at
> org.apache.geronimo.persistence.builder.PersistenceUnitBuilder$$FastClassByCGLIB$$e8dd93fa.invoke(<generated>)
> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
> at
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> at
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
> at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> at
> org.apache.geronimo.deployment.NamespaceDrivenBuilder$$EnhancerByCGLIB$$dfade93d.build(<generated>)
> at
> org.apache.geronimo.deployment.NamespaceDrivenBuilderCollection.build(NamespaceDrivenBuilderCollection.java:48)
> at
> org.apache.geronimo.openejb.deployment.EjbModuleBuilder.initContext(EjbModuleBuilder.java:452)
> at
> org.apache.geronimo.openejb.deployment.EjbModuleBuilder$$FastClassByCGLIB$$cd80af20.invoke(<generated>)
> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
> at
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> at
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
> at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> at
> org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$3365039c.initContext(<generated>)
> at
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:539)
> at
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)
> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
> at
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> at
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
> at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> at
> org.apache.geronimo.j2ee.deployment.CorbaGBeanNameSource$$EnhancerByCGLIB$$6a927db1.buildConfiguration(<generated>)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302)
> ... 10 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.