Discussion:
[Middlegen-user] airline sample deploy to JBoss 3.0.3 throws null ptr exception
Scott Walters
2002-11-16 16:37:02 UTC
Permalink
Hi,

I built the airline sample for jboss against a postgres db using the
middlegen version I downloaded from cvs today. The sample build works
fine and I drop the airline.ear file into the jboss deploy dir. The
ejb's deploy ok but the war causes an NullPointerException in
org.mortbay.j2ee.session.Manager.start(Manager.java:159). I've been
stepping through the JBoss code with a debugger trying to figure out
what's going on but haven't had any success so far. Has anyone seen
this or figured it out?

Thanks,
Scott


The complete jboss log is...
2002-11-16 10:53:54,926 INFO [org.jboss.deployment.MainDeployer]
Starting deployment of package:
file:/C:/jboss3.3-src/jboss-3.0.3-src/build/output/jboss-3.0.3/server/default/deploy/airline.ear
2002-11-16 10:53:55,186 INFO [org.jboss.deployment.EARDeployer] Init
J2EE application:
file:/C:/jboss3.3-src/jboss-3.0.3-src/build/output/jboss-3.0.3/server/default/deploy/airline.ear
2002-11-16 10:54:08,335 INFO [org.jboss.ejb.EjbModule] Creating
2002-11-16 10:54:09,417 INFO [org.jboss.ejb.EjbModule] Deploying SeqBlock
2002-11-16 10:54:10,068 INFO [org.jboss.ejb.EjbModule] Deploying Sequence
2002-11-16 10:54:10,598 INFO [org.jboss.ejb.EjbModule] Deploying
Reservation
2002-11-16 10:54:11,099 INFO [org.jboss.ejb.EjbModule] Deploying Flight
2002-11-16 10:54:11,530 INFO [org.jboss.ejb.EjbModule] Deploying Person
2002-11-16 10:54:11,990 INFO [org.jboss.ejb.EjbModule] Deploying
SequenceSession
2002-11-16 10:54:15,556 INFO [org.jboss.ejb.EjbModule] Created
2002-11-16 10:54:15,576 INFO [org.jboss.ejb.EjbModule] Starting
2002-11-16 10:54:26,351 INFO
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.Sequence] Table
'seq_block' already exists
2002-11-16 10:54:26,732 INFO
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.SeqBlock] Table
'seq_block' already exists
2002-11-16 10:54:27,363 INFO
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.Flight] Table 'flights'
already exists
2002-11-16 10:54:28,044 INFO
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.Person] Table 'persons'
already exists
2002-11-16 10:54:28,755 INFO
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.Reservation] Table
'reservations' already exists
2002-11-16 10:54:28,945 INFO [org.jboss.ejb.EjbModule] Started
2002-11-16 10:54:38,639 INFO [org.jboss.jbossweb] Registered
jboss.web:Jetty=0,JBossWebApplicationContext=9,context=/airline
2002-11-16 10:55:56,110 INFO [org.jboss.jbossweb] Extract
jar:file:/C:/jboss3.3-src/jboss-3.0.3-src/build/output/jboss-3.0.3/server/default/tmp/deploy/server/default/deploy/airline.ear/77.airline.ear-contents/airline-web.war!/
to C:\DOCUME~1\ADMINI~1.DOM\LOCALS~1\Temp\Jetty_0_0_0_0_8080__airline\webapp
2002-11-16 10:56:05,013 INFO
[org.jboss.jetty.JBossWebApplicationContext#/airline] using
Distributable HttpSession Manager: ***@d0630
2002-11-16 12:25:18,821 INFO [org.jboss.jbossweb] Stopped
WebApplicationContext[/airline,jar:file:/C:/jboss3.3-src/jboss-3.0.3-src/build/output/jboss-3.0.3/server/default/tmp/deploy/server/default/deploy/airline.ear/77.airline.ear-contents/airline-web.war!/]
2002-11-16 12:25:18,942 INFO [org.jboss.jbossweb] Deregister
jboss.web:Jetty=0,JBossWebApplicationContext=9,context=/airline
2002-11-16 12:25:18,952 INFO [org.jboss.jbossweb] Successfully
undeployed
file:/C:/jboss3.3-src/jboss-3.0.3-src/build/output/jboss-3.0.3/server/default/tmp/deploy/server/default/deploy/airline.ear/77.airline.ear-contents/airline-web.war
2002-11-16 12:25:19,052 ERROR
[org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy:
org.jboss.deployment.scanner.URLDeploymentScanner$***@3a5d0cfd{
url=file:/C:/jboss3.3-src/jboss-3.0.3-src/build/output/jboss-3.0.3/server/default/deploy/airline.ear,
deployedLastModified=0 }
org.jboss.deployment.DeploymentException: - nested throwable:
(java.lang.NullPointerException)
at org.jboss.jetty.Jetty.deploy(Jetty.java:434)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:243)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:794)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:427)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:648)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:499)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:212)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)
Caused by: java.lang.NullPointerException
at org.mortbay.j2ee.session.Manager.start(Manager.java:159)
at org.mortbay.jetty.servlet.ServletHandler.start(ServletHandler.java:409)
at
org.mortbay.jetty.servlet.WebApplicationHandler.start(WebApplicationHandler.java:142)
at org.mortbay.http.HttpContext.startHandlers(HttpContext.java:1780)
at
org.jboss.jetty.JBossWebApplicationContext.startHandlers(JBossWebApplicationContext.java:280)
at org.mortbay.http.HttpContext.start(HttpContext.java:1750)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:471)
at
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
at org.jboss.jetty.Jetty.deploy(Jetty.java:412)
... 19 more
Scott Walters
2002-11-16 22:22:04 UTC
Permalink
Hi,

Apparentely, this is an issue with the <distributable/> tag in web.xml.
When I remove it, it deploys without errors. I found the workaround at

https://sourceforge.net/tracker/?func=detail&atid=376685&aid=617585&group_id=22866.


Scott
Post by Scott Walters
Hi,
I built the airline sample for jboss against a postgres db using the
middlegen version I downloaded from cvs today. The sample build works
fine and I drop the airline.ear file into the jboss deploy dir. The
ejb's deploy ok but the war causes an NullPointerException in
org.mortbay.j2ee.session.Manager.start(Manager.java:159). I've been
stepping through the JBoss code with a debugger trying to figure out
what's going on but haven't had any success so far. Has anyone seen
this or figured it out?
Thanks,
Scott
The complete jboss log is...
2002-11-16 10:53:54,926 INFO [org.jboss.deployment.MainDeployer]
file:/C:/jboss3.3-src/jboss-3.0.3-src/build/output/jboss-3.0.3/server/default/deploy/airline.ear
2002-11-16 10:53:55,186 INFO [org.jboss.deployment.EARDeployer] Init
file:/C:/jboss3.3-src/jboss-3.0.3-src/build/output/jboss-3.0.3/server/default/deploy/airline.ear
2002-11-16 10:54:08,335 INFO [org.jboss.ejb.EjbModule] Creating
2002-11-16 10:54:09,417 INFO [org.jboss.ejb.EjbModule] Deploying SeqBlock
2002-11-16 10:54:10,068 INFO [org.jboss.ejb.EjbModule] Deploying Sequence
2002-11-16 10:54:10,598 INFO [org.jboss.ejb.EjbModule] Deploying
Reservation
2002-11-16 10:54:11,099 INFO [org.jboss.ejb.EjbModule] Deploying Flight
2002-11-16 10:54:11,530 INFO [org.jboss.ejb.EjbModule] Deploying Person
2002-11-16 10:54:11,990 INFO [org.jboss.ejb.EjbModule] Deploying
SequenceSession
2002-11-16 10:54:15,556 INFO [org.jboss.ejb.EjbModule] Created
2002-11-16 10:54:15,576 INFO [org.jboss.ejb.EjbModule] Starting
2002-11-16 10:54:26,351 INFO
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.Sequence] Table
'seq_block' already exists
2002-11-16 10:54:26,732 INFO
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.SeqBlock] Table
'seq_block' already exists
2002-11-16 10:54:27,363 INFO
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.Flight] Table 'flights'
already exists
2002-11-16 10:54:28,044 INFO
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.Person] Table 'persons'
already exists
2002-11-16 10:54:28,755 INFO
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.Reservation] Table
'reservations' already exists
2002-11-16 10:54:28,945 INFO [org.jboss.ejb.EjbModule] Started
2002-11-16 10:54:38,639 INFO [org.jboss.jbossweb] Registered
jboss.web:Jetty=0,JBossWebApplicationContext=9,context=/airline
2002-11-16 10:55:56,110 INFO [org.jboss.jbossweb] Extract
jar:file:/C:/jboss3.3-src/jboss-3.0.3-src/build/output/jboss-3.0.3/server/default/tmp/deploy/server/default/deploy/airline.ear/77.airline.ear-contents/airline-web.war!/
to
C:\DOCUME~1\ADMINI~1.DOM\LOCALS~1\Temp\Jetty_0_0_0_0_8080__airline\webapp
2002-11-16 10:56:05,013 INFO
[org.jboss.jetty.JBossWebApplicationContext#/airline] using
2002-11-16 12:25:18,821 INFO [org.jboss.jbossweb] Stopped
WebApplicationContext[/airline,jar:file:/C:/jboss3.3-src/jboss-3.0.3-src/build/output/jboss-3.0.3/server/default/tmp/deploy/server/default/deploy/airline.ear/77.airline.ear-contents/airline-web.war!/]
2002-11-16 12:25:18,942 INFO [org.jboss.jbossweb] Deregister
jboss.web:Jetty=0,JBossWebApplicationContext=9,context=/airline
2002-11-16 12:25:18,952 INFO [org.jboss.jbossweb] Successfully
undeployed
file:/C:/jboss3.3-src/jboss-3.0.3-src/build/output/jboss-3.0.3/server/default/tmp/deploy/server/default/deploy/airline.ear/77.airline.ear-contents/airline-web.war
2002-11-16 12:25:19,052 ERROR
url=file:/C:/jboss3.3-src/jboss-3.0.3-src/build/output/jboss-3.0.3/server/default/deploy/airline.ear,
deployedLastModified=0 }
(java.lang.NullPointerException)
at org.jboss.jetty.Jetty.deploy(Jetty.java:434)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:243)
at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:794)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:427)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:648)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:499)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:212)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)
Caused by: java.lang.NullPointerException
at org.mortbay.j2ee.session.Manager.start(Manager.java:159)
at
org.mortbay.jetty.servlet.ServletHandler.start(ServletHandler.java:409)
at
org.mortbay.jetty.servlet.WebApplicationHandler.start(WebApplicationHandler.java:142)
at org.mortbay.http.HttpContext.startHandlers(HttpContext.java:1780)
at
org.jboss.jetty.JBossWebApplicationContext.startHandlers(JBossWebApplicationContext.java:280)
at org.mortbay.http.HttpContext.start(HttpContext.java:1750)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:471)
at
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
at org.jboss.jetty.Jetty.deploy(Jetty.java:412)
... 19 more
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing your
web site with SSL, click here to get a FREE TRIAL of a Thawte Server
Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Loading...