admin@glassfish.java.net

Re: Accessing Admin Console from a remote machine - Cannot create XMLStreamReader or XMLEventReader

From: Jason Lee <jason.d.lee_at_oracle.com>
Date: Tue, 10 Aug 2010 08:08:01 -0500

  I talked to someone on #glassfish on irc.freenode.net recently who was
having issues running GlassFish on OpenJDK. When he switched to the
Sun...errr.... Oracle JDK, his problem went away.

On 8/9/10 11:48 PM, Arun Gupta wrote:
> I don't have access to the machine right now but it was Ubuntu with
> some OpenJDK version.
>
> I can try installing the latest Sun JDK and see if that helps.
>
> Thanks,
> -Arun
>
> On 8/9/10 5:47 PM, Jason Lee wrote:
>> OS? JDK version?
>>
>> On 8/9/10 7:45 PM, Arun Gupta wrote:
>>> I installed 3.0.1 on rated.us.oracle.com and trying to access
>>> http://rated.us.oracle.com:2848/ (Admin Console) but getting:
>>>
>>> [#|2010-08-09T17:56:50.178-0700|WARNING|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=25;_ThreadName=http-thread-pool-2848-(1);|ApplicationDispatcher[]
>>>
>>> PWC1231: Servlet.service() for servlet FacesServlet threw exception
>>> java.lang.RuntimeException:
>>> java.lang.reflect.InvocationTargetException while attempting to
>>> process a 'initPage' event for '/login.jsf'.
>>> at
>>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:422)
>>>
>>>
>>> at
>>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
>>>
>>>
>>> at
>>> com.sun.jsftemplating.layout.descriptors.LayoutDefinition.dispatchInitPageHandlers(LayoutDefinition.java:332)
>>>
>>>
>>> at
>>> com.sun.jsftemplating.layout.template.TemplateLayoutDefinitionManager.getLayoutDefinition(TemplateLayoutDefinitionManager.java:201)
>>>
>>>
>>> at
>>> com.sun.jsftemplating.layout.LayoutDefinitionManager.getLayoutDefinition(LayoutDefinitionManager.java:152)
>>>
>>>
>>> at
>>> com.sun.jsftemplating.layout.ViewRootUtil.getLayoutDefinition(ViewRootUtil.java:257)
>>>
>>>
>>> at
>>> com.sun.jsftemplating.layout.ViewRootUtil.getLayoutDefinition(ViewRootUtil.java:228)
>>>
>>>
>>> at
>>> com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:201)
>>>
>>>
>>> at
>>> com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:253)
>>>
>>>
>>> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
>>> at
>>> com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
>>>
>>>
>>> at
>>> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
>>> at
>>> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
>>>
>>>
>>> at
>>> org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:822)
>>>
>>>
>>> at
>>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
>>>
>>>
>>> at
>>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:517)
>>>
>>>
>>> at
>>> org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:488)
>>>
>>>
>>> at
>>> org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:379)
>>>
>>>
>>> at
>>> org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:460)
>>>
>>>
>>> at
>>> org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:251)
>>>
>>>
>>> at
>>> com.sun.web.security.RealmAdapter.invokeAuthenticateDelegate(RealmAdapter.java:1187)
>>>
>>>
>>> at
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:619)
>>>
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:615)
>>>
>>>
>>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
>>> at
>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
>>>
>>>
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
>>>
>>>
>>> at
>>> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>>>
>>>
>>> at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
>>>
>>>
>>> at
>>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:239)
>>>
>>>
>>> at
>>> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
>>>
>>> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
>>> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
>>> at
>>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
>>>
>>>
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
>>>
>>>
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
>>>
>>>
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
>>>
>>>
>>> at
>>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>>>
>>> at
>>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
>>>
>>>
>>> at
>>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
>>>
>>>
>>> at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
>>> at
>>> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
>>>
>>>
>>> at
>>> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
>>>
>>>
>>> at java.lang.Thread.run(Thread.java:636)
>>> Caused by: java.lang.reflect.InvocationTargetException
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>
>>>
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>> at
>>> com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
>>>
>>>
>>> at
>>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
>>>
>>>
>>> ... 43 more
>>> Caused by: java.lang.UnsupportedOperationException: Cannot create
>>> XMLStreamReader or XMLEventReader from a
>>> javax.xml.transform.stream.StreamSource
>>> at
>>> com.sun.xml.internal.stream.XMLInputFactoryImpl.jaxpSourcetoXMLInputSource(XMLInputFactoryImpl.java:283)
>>>
>>>
>>> at
>>> com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader(XMLInputFactoryImpl.java:143)
>>>
>>>
>>> at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:109)
>>> at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:104)
>>> at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:100)
>>> at
>>> org.glassfish.admingui.plugin.ConsolePluginService.init(ConsolePluginService.java:121)
>>>
>>>
>>> at
>>> org.glassfish.admingui.plugin.ConsolePluginService.getIntegrationPoints(ConsolePluginService.java:423)
>>>
>>>
>>> at
>>> org.glassfish.admingui.common.handlers.PluginHandlers.getIntegrationPoints(PluginHandlers.java:161)
>>>
>>>
>>> at
>>> org.glassfish.admingui.handlers.ThemeHandlers.getThemeFromIntegrationPoints(ThemeHandlers.java:98)
>>>
>>>
>>> ... 49 more
>>> |#]
>>>
>>> [#|2010-08-09T17:56:50.179-0700|WARNING|glassfish3.0.1|org.apache.catalina.authenticator.FormAuthenticator|_ThreadID=25;_ThreadName=http-thread-pool-2848-(1);|Unexpected
>>>
>>> error forwarding or redirecting to login page
>>> javax.servlet.ServletException:
>>> java.lang.reflect.InvocationTargetException while attempting to
>>> process a 'initPage' event for '/login.jsf'.
>>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
>>> at
>>> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
>>>
>>>
>>> at
>>> org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:822)
>>>
>>>
>>> at
>>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
>>>
>>>
>>> at
>>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:517)
>>>
>>>
>>> at
>>> org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:488)
>>>
>>>
>>> at
>>> org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:379)
>>>
>>>
>>> at
>>> org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:460)
>>>
>>>
>>> at
>>> org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:251)
>>>
>>>
>>> at
>>> com.sun.web.security.RealmAdapter.invokeAuthenticateDelegate(RealmAdapter.java:1187)
>>>
>>>
>>> at
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:619)
>>>
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:615)
>>>
>>>
>>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
>>> at
>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
>>>
>>>
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
>>>
>>>
>>> at
>>> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>>>
>>>
>>> at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
>>>
>>>
>>> at
>>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:239)
>>>
>>>
>>> at
>>> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
>>>
>>> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
>>> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
>>> at
>>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
>>>
>>>
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
>>>
>>>
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
>>>
>>>
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
>>>
>>>
>>> at
>>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>>>
>>> at
>>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
>>>
>>>
>>> at
>>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
>>>
>>>
>>> at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
>>> at
>>> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
>>>
>>>
>>> at
>>> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
>>>
>>>
>>> at java.lang.Thread.run(Thread.java:636)
>>> Caused by: java.lang.RuntimeException:
>>> java.lang.reflect.InvocationTargetException while attempting to
>>> process a 'initPage' event for '/login.jsf'.
>>> at
>>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:422)
>>>
>>>
>>> at
>>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
>>>
>>>
>>> at
>>> com.sun.jsftemplating.layout.descriptors.LayoutDefinition.dispatchInitPageHandlers(LayoutDefinition.java:332)
>>>
>>>
>>> at
>>> com.sun.jsftemplating.layout.template.TemplateLayoutDefinitionManager.getLayoutDefinition(TemplateLayoutDefinitionManager.java:201)
>>>
>>>
>>> at
>>> com.sun.jsftemplating.layout.LayoutDefinitionManager.getLayoutDefinition(LayoutDefinitionManager.java:152)
>>>
>>>
>>> at
>>> com.sun.jsftemplating.layout.ViewRootUtil.getLayoutDefinition(ViewRootUtil.java:257)
>>>
>>>
>>> at
>>> com.sun.jsftemplating.layout.ViewRootUtil.getLayoutDefinition(ViewRootUtil.java:228)
>>>
>>>
>>> at
>>> com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:201)
>>>
>>>
>>> at
>>> com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:253)
>>>
>>>
>>> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
>>> at
>>> com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
>>>
>>>
>>> at
>>> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
>>> ... 31 more
>>> Caused by: java.lang.reflect.InvocationTargetException
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>
>>>
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>> at
>>> com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
>>>
>>>
>>> at
>>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
>>>
>>>
>>> ... 43 more
>>> Caused by: java.lang.UnsupportedOperationException: Cannot create
>>> XMLStreamReader or XMLEventReader from a
>>> javax.xml.transform.stream.StreamSource
>>> at
>>> com.sun.xml.internal.stream.XMLInputFactoryImpl.jaxpSourcetoXMLInputSource(XMLInputFactoryImpl.java:283)
>>>
>>>
>>> at
>>> com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader(XMLInputFactoryImpl.java:143)
>>>
>>>
>>> at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:109)
>>> at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:104)
>>> at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:100)
>>> at
>>> org.glassfish.admingui.plugin.ConsolePluginService.init(ConsolePluginService.java:121)
>>>
>>>
>>> at
>>> org.glassfish.admingui.plugin.ConsolePluginService.getIntegrationPoints(ConsolePluginService.java:423)
>>>
>>>
>>> at
>>> org.glassfish.admingui.common.handlers.PluginHandlers.getIntegrationPoints(PluginHandlers.java:161)
>>>
>>>
>>> at
>>> org.glassfish.admingui.handlers.ThemeHandlers.getThemeFromIntegrationPoints(ThemeHandlers.java:98)
>>>
>>>
>>> ... 49 more
>>> |#]
>>>
>>>
>>> Any idea ?
>>>
>>> -Arun
>>
>>
>


-- 
Jason Lee
Senior Member of Technical Staff
GlassFish Administration Console
Oracle Corporation
Phone +1 405-216-3193
Blog http://blogs.steeplesoft.com