Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-286

NPE deploying an ear with a java module

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-M2
    • 1.0-M2
    • deployment
    • None
    • fedora core 2
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
      geronimo CVS as of 2004-08-11

    Description

      When I try to deploy an ear I get an NPE. It looks as if the problem is that I have an entry

      <!-- POJO's -->
      <module>
      <java>g6o-ejb-client.jar</java>
      </module>

      in my application.xml. From a cursory look at EARConfigBuilder.java it looks as if it doesn't take java modules into account (it checks if the module is an EJB, web app, or connector) so it NPE's because currentModule is null. That's just a glance, though, so I could be wrong.

      tcabot@mad:~/try/incubator-geronimo$ java -jar target/geronimo-1.0-SNAPSHOT/bin/deployer.jar --install --module ~/try/hello-g6o/build/g6o.ear
      java.lang.NullPointerException
      at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.addModules(EARConfigBuilder.java:501)
      at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.access$100(EARConfigBuilder.java:72)
      at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$3.addModules(EARConfigBuilder.java:321)
      at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:361)
      at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:346)
      at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:244)
      at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)
      at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
      at org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
      at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
      at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:744)
      at org.apache.geronimo.gbean.jmx.RawInvoker.invoke(RawInvoker.java:89)
      at org.apache.geronimo.gbean.jmx.RawOperationInvoker.invoke(RawOperationInvoker.java:34)
      at org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMethodInterceptor.java:111)
      at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$7a1ca0ae.buildConfiguration(<generated>)
      at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:198)
      at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
      at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
      at org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
      at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
      at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:767)
      at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:218)
      at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
      at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:86)
      at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
      at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
      at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:205)
      at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1079)
      at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:231)
      at org.apache.geronimo.system.main.CommandLine.main(CommandLine.java:93)

      Attachments

        Activity

          People

            gianny Gianny Damour
            toby Tobias Schlitt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: