users@glassfish.java.net

[GlassFish] NullPointerException when starting server with Eclipse Plugin

From: <glassfish_at_javadesktop.org>
Date: Fri, 21 Dec 2007 01:32:58 PST

Hello,
I'm running Glassfish V2 UR1 under W2000 Pro, using Eclipse Plugin. After installation (following instruction specified on glassfish.dev.java.net, ant -f setup.xml)
I try to start the server from Eclipse but I got the following Exception.
I cannot figure it out, any help would be appreciated !

Pascal

Exc is :

21-déc.-2007 10:16:58 com.sun.enterprise.server.PEMain main
INFO: Starting Sun Java System Application Server 9.1_01 (build b09d-fcs) ...
21-déc.-2007 10:16:58 com.sun.enterprise.server.PEMain$LoadMBeanServer doRun
INFO: MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor
21-déc.-2007 10:17:00 com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush
ATTENTION: java.util.logging.ErrorManager: 0: Error In getLogService
21-déc.-2007 10:17:00 com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush
ATTENTION:
java.lang.NullPointerException
        at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigModel(ServerBeansFactory.java:77)
        at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigBean(ServerBeansFactory.java:111)
        at com.sun.enterprise.server.logging.ServerLogManager.getLogService(ServerLogManager.java:365)
        at com.sun.enterprise.server.logging.ServerLogManager.reInitializeServerLoggers(ServerLogManager.java:545)
        at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:167)
        at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:101)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:401)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
        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 com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)

21-déc.-2007 10:17:00 com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush
ATTENTION:
java.util.logging.ErrorManager: 0: Exception caught in reInitializeServerLoggers
21-déc.-2007 10:17:00 com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush
ATTENTION:
java.lang.NullPointerException
        at com.sun.enterprise.server.logging.ServerLogManager.reInitializeServerLoggers(ServerLogManager.java:545)
        at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:167)
        at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:101)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:401)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
        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 com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)

21-déc.-2007 10:17:00 com.sun.enterprise.server.ApplicationServer printStartupInfo
INFO: CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.5.0] from [Sun Microsystems Inc.]
21-déc.-2007 10:17:00 com.sun.enterprise.instance.InstanceEnvironment createPassivatedEjbPaths
ATTENTION: InstanceEnv.createApplicationRootPath()
java.lang.NullPointerException
        at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigModel(ServerBeansFactory.java:77)
        at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigBean(ServerBeansFactory.java:111)
        at com.sun.enterprise.instance.InstanceEnvironment.createPassivatedEjbPaths(InstanceEnvironment.java:1126)
        at com.sun.enterprise.instance.InstanceEnvironment.init(InstanceEnvironment.java:350)
        at com.sun.enterprise.instance.InstanceEnvironment.getLibClassesPath(InstanceEnvironment.java:1478)
        at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:183)
        at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:101)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:401)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
        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 com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
21-déc.-2007 10:17:00 com.sun.enterprise.instance.InstanceEnvironment createHttpSessionStorePaths
ATTENTION: InstanceEnv.createApplicationRootPath()
java.lang.NullPointerException
        at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigModel(ServerBeansFactory.java:77)
        at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigBean(ServerBeansFactory.java:111)
        at com.sun.enterprise.instance.InstanceEnvironment.createHttpSessionStorePaths(InstanceEnvironment.java:1156)
        at com.sun.enterprise.instance.InstanceEnvironment.init(InstanceEnvironment.java:353)
        at com.sun.enterprise.instance.InstanceEnvironment.getLibClassesPath(InstanceEnvironment.java:1478)
        at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:183)
        at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:101)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:401)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
        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 com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
21-déc.-2007 10:17:00 com.sun.enterprise.jms.JmsProviderLifecycle <clinit>
INFO: Using MQ RA for Broker lifecycle control
21-déc.-2007 10:17:00 com.sun.enterprise.security.SecurityLifecycle <init>
INFO: SEC1002: Security Manager is OFF.
21-déc.-2007 10:17:01 com.sun.enterprise.server.PEMain run
GRAVE: CORE5071: An error occured during initialization
java.lang.NullPointerException
        at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigModel(ServerBeansFactory.java:77)
        at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigBean(ServerBeansFactory.java:111)
        at com.sun.enterprise.admin.server.core.AdminService.createAdminService(AdminService.java:228)
        at com.sun.enterprise.admin.server.core.AdminServiceLifeCycle.onInitialization(AdminServiceLifeCycle.java:115)
        at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:262)
        at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:101)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:401)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
        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 com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
21-déc.-2007 10:17:01 com.sun.enterprise.server.PEMain run
GRAVE: Server Startup failed. Exiting...
21-déc.-2007 10:17:01 com.sun.enterprise.server.PEMain run
INFO: Server shutdown in progress...
21-déc.-2007 10:17:01 com.sun.enterprise.server.ApplicationServer onShutdown
ATTENTION: CORE5061: Exception :
com.sun.appserv.server.ServerLifecycleException
        at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onShutdown(JmxConnectorLifecycle.java:171)
        at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:549)
        at com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:131)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:429)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
        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 com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
21-déc.-2007 10:17:01 com.sun.enterprise.server.ApplicationServer onShutdown
ATTENTION: CORE5061: Exception :
java.lang.NullPointerException
        at com.sun.enterprise.admin.server.core.AdminServiceLifeCycle.onShutdown(AdminServiceLifeCycle.java:155)
        at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:549)
        at com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:131)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:429)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
        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 com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
21-déc.-2007 10:17:02 com.sun.enterprise.server.ApplicationServer onTermination
ATTENTION: CORE5061: Exception :
java.lang.NullPointerException
        at com.sun.enterprise.admin.server.core.AdminServiceLifeCycle.onTermination(AdminServiceLifeCycle.java:168)
        at com.sun.enterprise.server.ApplicationServer.onTermination(ApplicationServer.java:587)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:434)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
        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 com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
21-déc.-2007 10:17:02 com.sun.enterprise.server.PEMain run
GRAVE: Server stopped due to Server startup failure.
[Message sent by forum member 'baumansp' (baumansp)]

http://forums.java.net/jive/thread.jspa?messageID=251097