dev@glassfish.java.net

Re: NPE When changing the VM settings in webconsole running SSL

From: Anissa Lam <Anissa.Lam_at_Sun.COM>
Date: Sat, 27 Jan 2007 15:05:26 -0800

Hi Barry,

There is known issue regarding tabs in Safari Browser. This is not an
officially supported browser. Please look at the enhancement
https://glassfish.dev.java.net/issues/show_bug.cgi?id=1783

Thanks for providing the configuration and info regarding the problem
you are seeing. I have logged a defect issue regarding this.
https://glassfish.dev.java.net/issues/show_bug.cgi?id=2247
Please add yourself to the interest list of that bug with your java.net id.

thanks
Anissa.

Barry van Someren wrote:
> Correction, I'm still able to reproduce the problem with b33.
> Apperantly I was not using SSL when I tested it earlier this week, sorry.
>
> This test is done on: Sun Java System Application Server 9.1 (build b33)
> Using browser: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US;
> rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
>
> When I try to reproduce this using Safari I notice that the JSF tab
> functionality doesn't seem to work on Safari (you click a tab, the
> page starts loading and you end up on the same tab again)
>
> Please let me know if there is any more data I can submit to help
>
> On 1/23/07, Barry van Someren <barry_at_bvansomeren.com> wrote:
>> Indeed it seems fixed for b32, thank you
>>
>> On 1/23/07, Barry van Someren <barry_at_bvansomeren.com> wrote:
>> > Hi there,
>> >
>> > Sorry for not trying the latest, I was running this against my server
>> > while making a short blog article on standard things you should do to
>> > get Glassfish ready for production.
>> > I'll install the latest and greatest on my local system tonight and
>> report back.
>> > Thank you for your reply.
>> >
>> > Regards,
>> >
>> > Barry
>> >
>> > On 1/22/07, Anissa Lam <Anissa.Lam_at_sun.com> wrote:
>> > > Hi Barry,
>> > > Thanks for reporting the proble. I followed your steps and can
>> see the
>> > > problem on b30 and b31. I then install the latest, b32 and no
>> longer
>> > > see this problem. Can you try again with b32. If you still see it
>> > > happens with b32, please file an issue against the admin_gui
>> component
>> > > and we will work from there.
>> > >
>> > > thanks
>> > > Anissa
>> > >
>> > > Barry van Someren wrote:
>> > > > Hi there,
>> > > >
>> > > > I have been shoring up the security of my glassfish instance
>> and I ran
>> > > > accross the following issue when running the webconsole in SSL
>> mode.
>> > > >
>> > > > Steps to reproduce: run V2 b30.
>> > > > Set the admin listener to enable SSL and give it the certificate
>> > > > nickname of s1as.
>> > > > Save the settings.
>> > > > Login again
>> > > > Application Server -> JVM Settings -> JVM Options
>> > > > You can change something or just click save. (adding a new
>> option also
>> > > > achieves an NPE)
>> > > >
>> > > > The following exception is found in the log:
>> > > > Timestamp
>> > > >
>> > > > Jan 21, 2007 11:13:34.656
>> > > > Log Level
>> > > >
>> > > > WARNING
>> > > > Logger
>> > > >
>> > > > javax.enterprise.resource.webcontainer.jsf.lifecycle
>> > > > Name-Value Pairs
>> > > >
>> > > >
>> _ThreadID=11;_ThreadName=httpSSLWorkerThread-4848-0;_RequestID=0ba16db9-402d-48cd-b7b6-f949ffb717a1;
>>
>> > > >
>> > > > Record Number
>> > > >
>> > > > 856
>> > > > Message ID
>> > > >
>> > > > executePhase(RESTORE_VIEW
>> > > > 1,com.sun.faces.context.FacesContextImpl_at_e62093) threw exception
>> > > > java.lang.RuntimeException
>> > > > Complete Message
>> > > >
>> > > > java.lang.reflect.InvocationTargetException while attempting to
>> > > > process a 'beforeCreate' event for 'page1'. at
>> > > >
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:344)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:316)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.jsftemplating.layout.descriptors.LayoutComponent.beforeCreate(LayoutComponent.java:331)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.jsftemplating.layout.descriptors.LayoutComponent.getChild(LayoutComponent.java:270)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:345)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:177)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:201)
>>
>> > > >
>> > > > at
>> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
>> > > > at
>> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
>> > > > at
>> > > >
>> com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:79)
>>
>> > > >
>> > > > at
>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) at
>> > > >
>> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
>>
>> > > >
>> > > > at
>> com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:203)
>> > > > at
>> > > >
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
>>
>> > > >
>> > > > at
>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73) at
>> > > >
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:186)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
>>
>> > > >
>> > > > at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
>> > > > at
>> > > >
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
>>
>> > > >
>> > > > at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
>> > > > at
>> > > >
>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:252)
>> > > > at
>> > > >
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:549)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.process(SSLReadTask.java:401)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.doTask(SSLReadTask.java:214)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
>> > > > at
>> > > >
>> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)
>>
>> > > >
>> > > > Caused by: java.lang.reflect.InvocationTargetException 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
>> > > >
>> com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:421)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:342)
>>
>> > > >
>> > > > ... 38 more Caused by: java.lang.NullPointerException at
>> > > >
>> com.sun.enterprise.tools.admingui.handlers.ServerHandlers.getJvmOptions(ServerHandlers.java:1260)
>>
>> > > >
>> > > > ... 44 more
>> > > >
>> > > > Which leads to the following severe:
>> > > >
>> > > > Timestamp
>> > > >
>> > > > Jan 21, 2007 11:13:34.660
>> > > > Log Level
>> > > >
>> > > > SEVERE
>> > > > Logger
>> > > >
>> > > > javax.enterprise.system.container.web
>> > > > Name-Value Pairs
>> > > >
>> > > >
>> _ThreadID=11;_ThreadName=httpSSLWorkerThread-4848-0;_RequestID=0ba16db9-402d-48cd-b7b6-f949ffb717a1;
>>
>> > > >
>> > > > Record Number
>> > > >
>> > > > 857
>> > > > Message ID
>> > > >
>> > > > StandardWrapperValve[FacesServlet]
>> > > > Complete Message
>> > > >
>> > > > PWC1406: Servlet.service() for servlet FacesServlet threw
>> exception
>> > > > java.lang.NullPointerException at
>> > > >
>> com.sun.enterprise.tools.admingui.handlers.ServerHandlers.getJvmOptions(ServerHandlers.java:1260)
>>
>> > > >
>> > > > 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
>> > > >
>> com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:421)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:342)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:316)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.jsftemplating.layout.descriptors.LayoutComponent.beforeCreate(LayoutComponent.java:331)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.jsftemplating.layout.descriptors.LayoutComponent.getChild(LayoutComponent.java:270)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:345)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:177)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:201)
>>
>> > > >
>> > > > at
>> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
>> > > > at
>> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
>> > > > at
>> > > >
>> com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:79)
>>
>> > > >
>> > > > at
>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) at
>> > > >
>> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
>>
>> > > >
>> > > > at
>> com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:203)
>> > > > at
>> > > >
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
>>
>> > > >
>> > > > at
>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73) at
>> > > >
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:186)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
>>
>> > > >
>> > > > at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
>> > > > at
>> > > >
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
>>
>> > > >
>> > > > at
>> > > >
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
>>
>> > > >
>> > > > at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
>> > > > at
>> > > >
>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:252)
>> > > > at
>> > > >
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:549)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.process(SSLReadTask.java:401)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.doTask(SSLReadTask.java:214)
>>
>> > > >
>> > > > at
>> > > >
>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
>> > > > at
>> > > >
>> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)
>>
>> > > >
>> > > >
>> > > > I'm using Firefox 2.0 and I'm running the server on Cent Os 4 with
>> > > > Java 1.6
>> > > > I hope this is helpful, sorry if this is a known problem.
>> > > >
>> > > > Regards,
>> > > >
>> > > > Barry
>> > > >
>> > >
>> > >
>> ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> > > For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>> > >
>> > >
>> >
>> >
>> > --
>> > Barry van Someren
>> > ---------------------------------------
>> > Email: barry_at_bvansomeren.com
>> > Email: goltharnl_at_gmail.com
>> > Linkedin: http://www.linkedin.com/pub/1/b41/197
>> > Www: http://blog.bvansomeren.com
>> >
>>
>>
>> --
>> Barry van Someren
>> ---------------------------------------
>> Email: barry_at_bvansomeren.com
>> Email: goltharnl_at_gmail.com
>> Linkedin: http://www.linkedin.com/pub/1/b41/197
>> Www: http://blog.bvansomeren.com
>>
>
>