Closed glassfishrobot closed 16 years ago
@glassfishrobot Commented jfarcand said: The real problem is classed dropped under $
{glassfish.home}
/lib aren't loaded by GlassFish, causing some trouble. Re-assign to Alexey as we should fix the NPE and fail properly when such bad state happens.
@glassfishrobot Commented oleksiys said: Hi,
you mean we have to handle situation, when someone tries to register endpoint with null Adapter? We can throw EndpointRegistrationException, though NullpointException doesn't look too bad here, and we can just improve javadoc and say, that Adapter should not be null. What do you think?
@glassfishrobot Commented jfarcand said: Welcome back!
I prefer the exception as it looks like v3 is in limbo after the NPE. Some component on the stack would catch that exception and send an HTTP staus of 500 (Internal error), or tell the v3 back end to logs the current bad behavior.
@glassfishrobot Commented kumara said: Add gfv3-prelude-include to status whiteboard
@glassfishrobot Commented oleksiys said: fixed.
Author: oleksiys Date: 2008-08-25 09:11:16+0000 New Revision: 22076
Modified: trunk/v3/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/GrizzlyProxy.java
Log: fix for issue #5242 GrizzlyProxy throws EndpointRegistrationException instead of NPE in case if adapter is null.
reviewed by Jan
@glassfishrobot Commented jfarcand said: Improve fix that ignoring mod_jk configuration.
@glassfishrobot Commented kumara said: v3 defect tracking
@glassfishrobot Commented Was assigned to oleksiys
@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-5242
@glassfishrobot Commented Reported by survivant
@glassfishrobot Commented Marked as fixed on Wednesday, October 1st 2008, 1:36:15 am
I follow the guide of Jean-francois Arcand http://weblogs.java.net/blog/jfarcand/archive/2006/03/running_glassfi_1.html
but I obtain this message in the logs :
[#|2008-07-01T10:24:12.469-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;|Using default-web.xml C:\glassfish-v3tp2\glassfish\config..\domains\domain1\config\default-web.xml|#]
[#|2008-07-01T10:24:12.469-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;|Created HTTP listener http-listener-1|#]
[#|2008-07-01T10:24:12.469-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;|Created HTTP listener http-listener-2|#]
[#|2008-07-01T10:24:12.469-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;|Apache mod_jk/jk2 attached to virtual-server server listening on port: 8009|#]
[#|2008-07-01T10:24:12.469-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;server;|webcontainer.ssodisabled|#]
[#|2008-07-01T10:24:12.485-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;|Virtual Server server set port 8888|#]
[#|2008-07-01T10:24:12.485-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;|Virtual Server server set port 8181|#]
[#|2008-07-01T10:24:12.485-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;|Virtual Server server set jk port 8009|#]
[#|2008-07-01T10:24:12.485-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;|Created virtual server server|#]
[#|2008-07-01T10:24:12.485-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;__asadmin;|webcontainer.ssodisabled|#]
[#|2008-07-01T10:24:12.485-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;|Created virtual server __asadmin|#]
[#|2008-07-01T10:24:12.501-0400|INFO|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=11;_ThreadName=Thread-4;|Cannot release container web java.lang.NullPointerException at com.sun.enterprise.v3.services.impl.GrizzlyProxy.registerEndpoint(GrizzlyProxy.java:163) at com.sun.enterprise.v3.services.impl.GrizzlyProxy.registerEndpoint(GrizzlyProxy.java:50) at com.sun.enterprise.v3.services.impl.GrizzlyService.registerEndpoint(GrizzlyService.java:170) at com.sun.enterprise.v3.services.impl.GrizzlyService.registerEndpoint(GrizzlyService.java:156) at com.sun.enterprise.web.WebContainer.loadDefaultWebModules(WebContainer.java:2476) at com.sun.enterprise.web.WebContainer.postConstruct(WebContainer.java:609) at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150) at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86) at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75) 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.data.ContainerInfo.getContainer(ContainerInfo.java:77) at com.sun.enterprise.v3.server.ApplicationLifecycle.stopContainer(ApplicationLifecycle.java:802) at com.sun.enterprise.v3.server.ApplicationLifecycle.stopContainers(ApplicationLifecycle.java:789) at com.sun.enterprise.v3.server.ApplicationLifecycle$1.actOn(ApplicationLifecycle.java:270) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:306) at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:231) at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:108) at com.sun.enterprise.v3.server.ApplicationLoaderInjector.postConstruct(ApplicationLoaderInjector.java:55) at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150) at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86) at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75) 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:107) at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:437) at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:400) at com.sun.enterprise.module.bootstrap.Main.start(Main.java:189) at com.sun.enterprise.module.bootstrap.Main$1.run(Main.java:104)
| #] |
[#|2008-07-01T10:24:12.501-0400|INFO|GlassFish10.0|javax.enterprise.system.core.security|_ThreadID=11;_ThreadName=Thread-4;com.sun.enterprise.security.provider.PolicyWrapper;|policy.loading|#]
[#|2008-07-01T10:24:12.563-0400|INFO|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=11;_ThreadName=Thread-4;|Cannot release container security java.lang.RuntimeException: javax.security.jacc.PolicyContextException: java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : cannot find class : com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl at com.sun.enterprise.security.web.integration.WebSecurityManagerFactory.newWebSecurityManager(WebSecurityManagerFactory.java:150) at com.sun.enterprise.security.SecurityContainer.generatePolicy(SecurityContainer.java:89) at com.sun.enterprise.security.SecurityContainer.postConstruct(SecurityContainer.java:79) at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150) at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86) at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75) 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.data.ContainerInfo.getContainer(ContainerInfo.java:77) at com.sun.enterprise.v3.server.ApplicationLifecycle.stopContainer(ApplicationLifecycle.java:802) at com.sun.enterprise.v3.server.ApplicationLifecycle.stopContainers(ApplicationLifecycle.java:789) at com.sun.enterprise.v3.server.ApplicationLifecycle$1.actOn(ApplicationLifecycle.java:270) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:306) at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:231) at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:108) at com.sun.enterprise.v3.server.ApplicationLoaderInjector.postConstruct(ApplicationLoaderInjector.java:55) at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150) at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86) at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75) 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:107) at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:437) at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:400) at com.sun.enterprise.module.bootstrap.Main.start(Main.java:189) at com.sun.enterprise.module.bootstrap.Main$1.run(Main.java:104) Caused by: javax.security.jacc.PolicyContextException: java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : cannot find class : com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl at com.sun.enterprise.security.web.integration.WebSecurityManager.getFactory(WebSecurityManager.java:395) at com.sun.enterprise.security.web.integration.WebSecurityManager.initialise(WebSecurityManager.java:261) at com.sun.enterprise.security.web.integration.WebSecurityManager.(WebSecurityManager.java:186)
at
com.sun.enterprise.security.web.integration.WebSecurityManagerFactory.newWebSecurityManager(WebSecurityManagerFactory.java:147)
... 27 more
Caused by: java.lang.ClassNotFoundException: JACC:Error
PolicyConfigurationFactory : cannot find class :
com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl
at
javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfigurationFactory.java:172)
at
com.sun.enterprise.security.web.integration.WebSecurityManager.getFactory(WebSecurityManager.java:392)
... 30 more
Caused by: java.lang.ClassNotFoundException:
com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:220)
at java.net.URLClassLoader$1.run(URLClassLoader.java:209)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:208)
at
com.sun.enterprise.module.impl.ClassLoaderProxy.findClassDirect(ClassLoaderProxy.java:142)
at
com.sun.enterprise.module.impl.ClassLoaderProxy.findClass(ClassLoaderProxy.java:106)
at
com.sun.enterprise.module.impl.ClassLoaderProxy.findClass(ClassLoaderProxy.java:94)
at
com.sun.enterprise.module.impl.ModuleClassLoader.findClass(ModuleClassLoader.java:86)
at java.lang.ClassLoader.loadClass(ClassLoader.java:325)
at
com.sun.enterprise.module.impl.ModuleClassLoader.loadClass(ModuleClassLoader.java:81)
at java.lang.ClassLoader.loadClass(ClassLoader.java:270)
at
com.sun.enterprise.module.impl.ClassLoaderFacade.findClass(ClassLoaderFacade.java:123)
at java.lang.ClassLoader.loadClass(ClassLoader.java:325)
at java.lang.ClassLoader.loadClass(ClassLoader.java:270)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:338)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at
javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfigurationFactory.java:160)
... 31 more
| #] |
[#|2008-07-01T10:24:12.563-0400|SEVERE|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=11;_ThreadName=Thread-4;|Exception while deploying the app : java.lang.Exception: Failed to start containers|#]
[#|2008-07-01T10:24:12.563-0400|INFO|GlassFish10.0|javax.enterprise.system.core|_ThreadID=11;_ThreadName=Thread-4;|Glassfish v3 started in 1953 ms|#]
[#|2008-07-01T10:24:17.532-0400|INFO|GlassFish10.0|global|_ThreadID=12;_ThreadName=Thread-4;|AdminConsoleAdapter's STATE IS: Application is already installed, but not yet loaded. ...|#]
[#|2008-07-01T10:24:17.547-0400|SEVERE|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=12;_ThreadName=Thread-4;|Exception while deploying the app java.lang.NullPointerException at com.sun.enterprise.v3.server.ApplicationLoaderService$1.getMetaData(ApplicationLoaderService.java:323) at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:450) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:275) at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:231) at com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter.handleInstalledButNotLoadedState(AdminConsoleAdapter.java:424) at com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter.service(AdminConsoleAdapter.java:170) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:146) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) at com.sun.enterprise.v3.services.impl.VsAdapter.service(VsAdapter.java:136) at com.sun.enterprise.v3.services.impl.VirtualHostMapper.service(VirtualHostMapper.java:121) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:605) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:536) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:785) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:137) at com.sun.enterprise.v3.services.impl.HttpProtocolFilter.execute(HttpProtocolFilter.java:129) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:61) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:75) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:52) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:54) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:154)
| #] |
[#|2008-07-01T10:24:17.547-0400|SEVERE|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=12;_ThreadName=Thread-4;|Exception while deploying the app : java.lang.NullPointerException|#]
[#|2008-07-01T10:24:25.110-0400|INFO|GlassFish10.0|global|_ThreadID=13;_ThreadName=Thread-4;|AdminConsoleAdapter's STATE IS: Application is already loaded ...|#]
[#|2008-07-01T10:24:33.719-0400|INFO|GlassFish10.0|global|_ThreadID=12;_ThreadName=Thread-4;|AdminConsoleAdapter's STATE IS: Application is already loaded ...|#]
[#|2008-07-01T10:25:01.797-0400|INFO|GlassFish10.0|global|_ThreadID=13;_ThreadName=Thread-4;|AdminConsoleAdapter's STATE IS: Application is already loaded ...|#]
Environment
Operating System: All Platform: All
Affected Versions
[V3]