dev@glassfish.java.net

V3 build in Hudson

From: Shing Wai Chan <Shing-Wai.Chan_at_Sun.COM>
Date: Wed, 21 Oct 2009 16:15:41 -0700

When I look at Hudson log, I see NPE there even though the build is
completed (with blue status).
I think it would be good to fix that. It is a bit confusing there.
      Shing Wai Chan

INFO: jts.startup_msg
boo
Done calling EJB
Creating another container without closing...
Caught expected: Embedded EJB Container already exists
java.lang.NullPointerException
    at
org.glassfish.deployment.autodeploy.AutoDeployService.stopAutoDeployer(AutoDeployService.java:226)
    at
org.glassfish.deployment.autodeploy.AutoDeployService.preDestroy(AutoDeployService.java:152)
    at
com.sun.hk2.component.AbstractWombInhabitantImpl.dispose(AbstractWombInhabitantImpl.java:74)
    at
com.sun.hk2.component.SingletonInhabitant.release(SingletonInhabitant.java:66)
    at com.sun.hk2.component.LazyInhabitant.release(LazyInhabitant.java:112)
    at
com.sun.enterprise.v3.server.AppServerStartup.stop(AppServerStartup.java:383)
    at org.glassfish.api.embedded.Server.stop(Server.java:591)
    at
org.glassfish.ejb.embedded.EJBContainerImpl.stop(EJBContainerImpl.java:284)
    at
org.glassfish.ejb.embedded.EJBContainerImpl.forceClose(EJBContainerImpl.java:179)
    at
org.glassfish.ejb.embedded.EJBContainerImpl.close(EJBContainerImpl.java:165)
    at org.glassfish.distributions.test.UnitTest.test(UnitTest.java:87)
    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
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
    at
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
    at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
    at
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
    at
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
    at
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
    at
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
    at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
    at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
    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
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
    at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)
Oct 21, 2009 3:09:50 PM
org.glassfish.admin.mbeanserver.JMXStartupService shutdown
INFO: JMXStartupService: shutting down AMX and JMX
Oct 21, 2009 3:09:50 PM
org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread
shutdown
INFO: JMXStartupService: Stopped JMXConnectorServer:
service:jmx:rmi://evek-s10-10:8686/jndi/rmi://evek-s10-10:8686/jmxrmi
Oct 21, 2009 3:09:50 PM com.sun.enterprise.v3.server.AppServerStartup stop
INFO: Shutdown procedure finished
Oct 21, 2009 3:09:50 PM AppServerStartup run
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] exiting
Creating container after closing the previous...
Oct 21, 2009 3:09:50 PM
org.glassfish.ejb.embedded.EJBContainerProviderImpl getValidFile
SEVERE: ejb.embedded.location_not_exists
Oct 21, 2009 3:09:51 PM com.sun.enterprise.module.impl.HK2Factory initialize
WARNING: Singleton already initialized as
com.sun.enterprise.module.impl.HK2Factory_at_1d91364
Oct 21, 2009 3:09:51 PM org.glassfish.admin.monitor.MonitoringBootstrap
discoverProbeProviders
INFO: Discovering the ProbeProviders
Oct 21, 2009 3:09:51 PM com.sun.enterprise.v3.server.AppServerStartup$2 run
SEVERE: Error processing org.glassfish.admin.mbeanserver.JMXStartupService
java.lang.IllegalStateException
    at org.glassfish.admin.mbeanserver.BootAMX.<init>(BootAMX.java:70)
    at org.glassfish.admin.mbeanserver.BootAMX.create(BootAMX.java:85)
    at
org.glassfish.admin.mbeanserver.JMXStartupService.postConstruct(JMXStartupService.java:121)
    at
com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
    at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
    at java.security.AccessController.doPrivileged(Native Method)
    at
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
    at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
    at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
    at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
    at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
    at
com.sun.enterprise.v3.server.AppServerStartup$2.run(AppServerStartup.java:229)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
org.jvnet.hk2.component.ComponentException: Failed to create class
com.sun.enterprise.naming.GlassFishNamingBuilder
    at com.sun.hk2.component.ConstructorWomb.create(ConstructorWomb.java:76)
    at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:71)
    at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
    at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
    at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
    at
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:246)
    at
com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:129)
    at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:457)
    at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:401)
    at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:310)
    at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:303)
    at
com.sun.enterprise.glassfish.bootstrap.ASEmbedded.run(ASEmbedded.java:101)
    at
com.sun.enterprise.glassfish.bootstrap.AbstractMain.start(AbstractMain.java:41)
    at org.glassfish.api.embedded.Server.<init>(Server.java:284)
    at org.glassfish.api.embedded.Server.<init>(Server.java:61)
    at org.glassfish.api.embedded.Server$Builder.build(Server.java:158)
    at org.glassfish.api.embedded.Server$Builder.build(Server.java:140)
    at
org.glassfish.ejb.embedded.EJBContainerProviderImpl.init(EJBContainerProviderImpl.java:147)
    at
org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:114)
    at
javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:102)
    at org.glassfish.distributions.test.UnitTest.test(UnitTest.java:89)
    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
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
    at
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
    at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
    at
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
    at
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
    at
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
    at
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
    at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
    at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
    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
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
    at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)
Caused by: java.lang.IllegalStateException: InitialContextFactoryBuilder
already set
    at
javax.naming.spi.NamingManager.setInitialContextFactoryBuilder(NamingManager.java:692)
    at
com.sun.enterprise.naming.GlassFishNamingBuilder.<init>(GlassFishNamingBuilder.java:110)
    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:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at com.sun.hk2.component.ConstructorWomb.create(ConstructorWomb.java:68)
    ... 44 more
Oct 21, 2009 3:09:51 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: Startup service failed to start : Failed to create class
com.sun.enterprise.naming.GlassFishNamingBuilder
Oct 21, 2009 3:09:51 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: GlassFish v3 startup time : Embedded(358ms) startup services(52ms)
total(410ms)
Oct 21, 2009 3:09:51 PM org.glassfish.admin.monitor.MonitoringBootstrap
event
INFO: Discovering the XML ProbeProviders from lib/monitor
Oct 21, 2009 3:09:51 PM AppServerStartup run
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
Oct 21, 2009 3:09:51 PM
com.sun.enterprise.transaction.JavaEETransactionManagerSimplified
initDelegates
INFO: Using
com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate
as the delegate
Oct 21, 2009 3:09:51 PM com.sun.enterprise.security.SecurityLifecycle <init>
INFO: security.secmgroff
Oct 21, 2009 3:09:51 PM com.sun.enterprise.security.SecurityLifecycle
onInitialization
INFO: Security startup service called
Oct 21, 2009 3:09:51 PM com.sun.enterprise.security.SecurityLifecycle
onInitialization
INFO: Security service(s) started successfully....
DOL Loading time2
Oct 21, 2009 3:09:51 PM com.sun.ejb.containers.BaseContainer initializeHome
INFO: Portable JNDI names for EJB SampleEjb :
[java:global/test-classes/SampleEjb!org.glassfish.distributions.test.ejb.SampleEjb,
java:global/test-classes/SampleEjb]
java.lang.NullPointerException
    at
org.glassfish.deployment.autodeploy.AutoDeployService.stopAutoDeployer(AutoDeployService.java:226)
    at
org.glassfish.deployment.autodeploy.AutoDeployService.preDestroy(AutoDeployService.java:152)
    at
com.sun.hk2.component.AbstractWombInhabitantImpl.dispose(AbstractWombInhabitantImpl.java:74)
    at
com.sun.hk2.component.SingletonInhabitant.release(SingletonInhabitant.java:66)
    at com.sun.hk2.component.LazyInhabitant.release(LazyInhabitant.java:112)
    at
com.sun.enterprise.v3.server.AppServerStartup.stop(AppServerStartup.java:383)
    at org.glassfish.api.embedded.Server.stop(Server.java:591)
    at
org.glassfish.ejb.embedded.EJBContainerImpl.stop(EJBContainerImpl.java:284)
    at
org.glassfish.ejb.embedded.EJBContainerImpl.forceClose(EJBContainerImpl.java:179)
    at
org.glassfish.ejb.embedded.EJBContainerImpl.close(EJBContainerImpl.java:165)
    at org.glassfish.distributions.test.UnitTest.test(UnitTest.java:90)
    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
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
    at
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
    at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
    at
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
    at
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
    at
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
    at
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
    at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
    at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
    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
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
    at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)
Oct 21, 2009 3:09:51 PM com.sun.enterprise.v3.server.AppServerStartup stop
INFO: Shutdown procedure finished
Oct 21, 2009 3:09:51 PM AppServerStartup run
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] exiting
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.146 sec

Results :

Tests run: 6, Failures: 0, Errors: 0, Skipped: 0

[INFO] [antrun-extended:run]
[INFO] Executing tasks

create.distribution: