dev@glassfish.java.net

Re: RESEND: How do I see exceptions?

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Wed, 12 Mar 2008 01:10:57 -0700

Thanks Jan,

Yes, I'm used to not seeing much in the browser. Although what's in the
browser is more helpful at the moment because I'm at leasting seeing the
root exception.

I'll ask Ryan if he know why this isn't showing.

Thanks,

Ken

Jan.Luehe_at_Sun.COM wrote:
> Ken,
>
> Ken Paulsen wrote:
>
>>
>> I am unable to see stack traces that would help me debug. Here's
>> what I see in the browser:
>>
>> javax.servlet.ServletException: Unable to determine parameter type
>> 'com.sun.appserv.management.config.PropertiesAccess' for parameter
>> named 'mbean'.
>>
>> *root cause*
>>
>> java.lang.RuntimeException: Unable to determine parameter type
>> 'com.sun.appserv.management.config.PropertiesAccess' for parameter
>> named 'mbean'.
>>
>> *root cause*
>>
>> java.lang.ClassNotFoundException:
>> com.sun.appserv.management.config.PropertiesAccess
>>
>
> we deliberately omit stacktraces in the responses to clients, as
> requested
> by the Netbeans folks (originally, stacktraces were included in the
> response,
> which was considered a usability issue).
>
> You should see stacktraces in the server.log, though.
>
>> In the console (w/ asadmin start-domain -v):
>>
>> SEVERE: JSF1054: (Phase ID: RESTORE_VIEW 1, View ID: /testIP.jsf)
>> Exception thrown during phase execution:
>>
>> javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl_at_fa54fe]
>>
>>
>> And the server.log file:
>>
>>
>> [#|2008-03-11T23:18:46.158+0000|SEVERE|GlassFish10.0|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=20;_ThreadName=Thread-4;RESTORE_VIEW
>>
>>
>> 1;/testIP.jsf;javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl_at_fa54fe];|JSF1054:
>>
>> (Phase ID: RESTORE_VIEW 1, View ID: /testIP.jsf) Exception thrown
>> during phase execution:
>>
>> javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl_at_fa54fe]|#]
>>
>>
>
> I'll let the JSF team comment on this.
>
> Jan
>
>
>> I also attempted to set the logging.properties log levels, but that
>> did not do anything.
>>
>> In this case, I can guess what the problem is, although I would like
>> to know why it's a problem b/c I shouldn't be accessing any of the
>> server api's with the request I made. A simple stack trace would
>> show me exactly what I'm not understanding and I could move on quickly.
>>
>> When is this going to be fixed? Is there something I am not
>> configuring correctly that hides all errors for the user? Why? Why?
>> Why? :) This is slowing down my development significantly.
>>
>> Ken
>>
>> ---------------------------------------------------------------------
>> 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
>