dev@glassfish.java.net

Re: CORRECT SNIPPIT HERE: A 'should not reach here' exception

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Mon, 31 Jul 2006 12:29:12 -0700

Jan, Shing Wai,

I think both cases need to be fixed - if deployment
doesn't fail (it should), the error message should
give all the necessary information to the user.

My $.02.
-marina

Jan Luehe wrote On 07/31/06 10:28,:
> Hi Shing Wai,
>
> Shing Wai Chan wrote On 07/31/06 10:17,:
>
>
>>Jan Luehe wrote:
>>
>>
>>>Hi Vince,
>>>
>>>vince kraemer wrote On 07/29/06 15:58,:
>>>
>>>
>>>>The previous message had the wrong log file attached.
>>>>
>>>>Sorry about that.
>>>>
>>>>vbk
>>>>
>>>>vince kraemer wrote:
>>>>
>>>>
>>>>>I was working on this
>>>>>http://www.netbeans.org/issues/show_bug.cgi?id=79943
>>>>>
>>>>>and I see the exception that is in the attached log snippit... when
>>>>>the browser tries to open the page.
>>>>>
>>>>>Any hints would be helpful.
>>>>
>>>>
>>>GlassFish does not support DIGEST authentication.
>>>
>>>The basic issue with DIGEST authentication is that it requires the
>>>server to have access to the client's password in order to compute the
>>>digest and compare it to the digest that was sent by the client.
>>>
>>>However, GlassFish does not provide the ability to acquire the
>>>password from the realm, and thus the server cannot compute the
>>>digest, as you can see from this snippet of your stacktrace:
>>>
>>>java.lang.IllegalStateException: Should not reach here
>>>
>>> at
>>>com.sun.web.security.RealmAdapter.getPassword(RealmAdapter.java:569)
>>> at
>>>org.apache.catalina.realm.RealmBase.getDigest(RealmBase.java:1364)
>>> at
>>>org.apache.catalina.realm.RealmBase.authenticate(RealmBase.java:384)
>>>
>>>This is why DIGEST auth has been disabled.
>>>
>>>I agree the error message could be clearer, though. Or, even better,
>>>any webapp that requires DIGEST auth should fail to deploy.
>>
>>I think we should fail in deployment rather than waiting for runtime
>>error.
>
>
>
> Right, that's what my fix is going to do.
>
> Thanks,
>
> Jan
>
>
>
>>>Can you file an issue?
>>>
>>>Thanks!
>>>
>>>Jan
>>>
>>>
>>>
>>>
>>>
>>>>>vbk
>>>>>
>>>>
>>>>------------------------------------------------------------------------
>>>>
>>>>
>>>>[#|2006-07-29T12:47:22.490-0700|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.admin|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;/home/vbk/Desktop/glassfishV1U1B3/domains/domain1/config/keyfile;|SEC1107:
>>>>Writing file realm data to
>>>>[/home/vbk/Desktop/glassfishV1U1B3/domains/domain1/config/keyfile].|#]
>>>>
>>>>[#|2006-07-29T12:47:22.494-0700|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.admin|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;com.sun.enterprise.admin.event.UserMgmtEvent
>>>>-- server [0 Change(s), Id:36, ts:1154202442494];|ADM1041:Sent the
>>>>event to instance:[com.sun.enterprise.admin.event.UserMgmtEvent --
>>>>server [0 Change(s), Id:36, ts:1154202442494]]|#]
>>>>
>>>>[#|2006-07-29T12:49:34.371-0700|INFO|sun-appserver-pe9.0|javax.enterprise.resource.webservices.jaxws.server.http|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;|WSSERVLET13:
>>>>JAX-WS context listener destroyed|#]
>>>>
>>>>[#|2006-07-29T12:49:34.408-0700|WARNING|sun-appserver-pe9.0|javax.enterprise.system.tools.admin|_ThreadID=12;_ThreadName=httpWorkerThread-4848-1;_RequestID=2d4e5401-1256-4591-95f1-e30b6812f9d5;|DeployedItemRef
>>>>postDeregistration failed. Load Balancer Monitoring MBeans might be
>>>>lying around if this application is being load balanced |#]
>>>>
>>>>[#|2006-07-29T12:49:36.344-0700|INFO|sun-appserver-pe9.0|javax.enterprise.system.container.ejb|_ThreadID=22;_ThreadName=Thread-59;|wsgen
>>>>successful|#]
>>>>
>>>>[#|2006-07-29T12:49:37.108-0700|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=22;_ThreadName=Thread-59;Servlet;Hello;http://localhost.localdomain:8080/helloservice-basicauth/HelloService;|DPL5306:Servlet
>>>>Web Service Endpoint [Hello] listening at address
>>>>[http://localhost.localdomain:8080/helloservice-basicauth/HelloService]|#]
>>>>
>>>>
>>>>[#|2006-07-29T12:49:37.203-0700|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=22;_ThreadName=Thread-59;|deployed
>>>>with moduleid = helloservice-basicauth|#]
>>>>
>>>>[#|2006-07-29T12:49:37.517-0700|INFO|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=12;_ThreadName=httpWorkerThread-4848-1;helloservice-basicauth;server;/helloservice-basicauth;|WEB0100:
>>>>Loading web module [helloservice-basicauth] in virtual server
>>>>[server] at [/helloservice-basicauth]|#]
>>>>
>>>>[#|2006-07-29T12:49:37.541-0700|INFO|sun-appserver-pe9.0|javax.enterprise.resource.webservices.jaxws.server.http|_ThreadID=12;_ThreadName=httpWorkerThread-4848-1;|WSSERVLET12:
>>>>JAX-WS context listener initializing|#]
>>>>
>>>>[#|2006-07-29T12:49:37.544-0700|INFO|sun-appserver-pe9.0|javax.enterprise.resource.webservices.jaxws.server.http|_ThreadID=12;_ThreadName=httpWorkerThread-4848-1;|wsdl
>>>>cannot be found from DD or annotation. Will generate and publish a
>>>>new WSDL for SEI endpoints.|#]
>>>>
>>>>[#|2006-07-29T12:49:57.043-0700|SEVERE|sun-appserver-pe9.0|org.apache.coyote.tomcat5.CoyoteAdapter|_ThreadID=23;_ThreadName=httpWorkerThread-8080-1;_RequestID=5f0e37eb-c871-47f3-9c1a-803af26b5540;|An
>>>>exception or error occurred in the container during the request
>>>>processing
>>>>java.lang.IllegalStateException: Should not reach here
>>>> at
>>>>com.sun.web.security.RealmAdapter.getPassword(RealmAdapter.java:569)
>>>> at
>>>>org.apache.catalina.realm.RealmBase.getDigest(RealmBase.java:1364)
>>>> at
>>>>org.apache.catalina.realm.RealmBase.authenticate(RealmBase.java:384)
>>>> at
>>>>org.apache.catalina.authenticator.DigestAuthenticator.findPrincipal(DigestAuthenticator.java:303)
>>>>
>>>> at
>>>>org.apache.catalina.authenticator.DigestAuthenticator.authenticate(DigestAuthenticator.java:195)
>>>>
>>>> at
>>>>com.sun.web.security.RealmAdapter.invokeAuthenticateDelegate(RealmAdapter.java:1030)
>>>>
>>>> at
>>>>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:627)
>>>>
>>>> at
>>>>org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:557)
>>>>
>>>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
>>>> at
>>>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
>>>>
>>>> at
>>>>org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
>>>>
>>>> at
>>>>com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
>>>>
>>>> at
>>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
>>>> at
>>>>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
>>>>
>>>> at
>>>>org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
>>>>
>>>> at
>>>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
>>>>
>>>> at
>>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
>>>> at
>>>>org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
>>>> at
>>>>com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
>>>>
>>>> at
>>>>com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
>>>>
>>>> at
>>>>com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
>>>>
>>>> at
>>>>com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
>>>>
>>>> at
>>>>com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
>>>>
>>>> at
>>>>com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
>>>>
>>>> at
>>>>com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
>>>>
>>>>|#]
>>>>
>>>>
>>>>
>>>>
>>>>------------------------------------------------------------------------
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>