|<< Back to previous view|
[GLASSFISH-15261] cannot launch Admin Console: javax.servlet.ServletException: thrown in browser. Created: 17/Dec/10 Updated: 21/Feb/11 Resolved: 18/Dec/10
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
OS: Solaris Sparc
|Participants:||Anissa Lam, Jason Lee, ludo and shaline|
Build Used : latest GF nightly dated b34_12/17.
Installed the latest GF nightly using the latest-ogs.zip bundle, and started the domain. Launched the Admin Console, using http://hostname:4848.
HTTP Status 500 -
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
javax.servlet.ServletException: java.lang.reflect.InvocationTargetException while attempting to process a 'beforeCreate' event for 'treeForm'.
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException while attempting to process a 'beforeCreate' event for 'treeForm'.
note The full stack traces of the exception and its root causes are available in the Oracle GlassFish Server 3.1 logs.
Oracle GlassFish Server 3.1
server.log has the below Exception:
|Comment by Anissa Lam [ 17/Dec/10 05:38 PM ]|
Does this happen consistently ?
The NPE is from REST, and it is a valid request
Transfer to REST for investigation.
|Comment by Anissa Lam [ 17/Dec/10 05:43 PM ]|
Please attache server.log
|Comment by shaline [ 17/Dec/10 05:45 PM ]|
Attached the server.log
|Comment by Anissa Lam [ 17/Dec/10 09:18 PM ]|
With the 12/17 nightly build for OGS and OpenSource version, I can reproduce the problem consistently on my Mac.
[#|2010-12-17T19:47:43.082-0800|INFO|oracle-glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-1;|*****Got model as:null commandName:create-config|#]
[#|2010-12-17T19:47:43.083-0800|SEVERE|oracle-glassfish3.1|com.sun.jersey.spi.container.ContainerResponse|_ThreadID=17;_ThreadName=Thread-1;|The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
The create-config call is very suspicious.
The "create-config" command is removed.
I looked at the REST source code, in ResourcesGeneratorBase.java, it has:
It probably didn't realize "create-config" is being removed and thus the problem.
|Comment by Anissa Lam [ 17/Dec/10 10:54 PM ]|
I have tried to add back create-config, but make that a hidden command, and changed REST code to refer to the hidden command, everything works.
Thats the only solution i can think of now, maybe the REST team knows how to do ListConfig without create-config at all.
Here is the diff to solve the problem, and make GUI working again.
~/Awork/V3/NOW/v3 757) svn diff admin
If the REST team thinks this is fine, I will ask for approval and check in. Or, they may have a better fix. Either way, I want to ensure Monday nightly build will have GUI working.
|Comment by Jason Lee [ 18/Dec/10 06:42 AM ]|
Looks good to me.
|Comment by ludo [ 18/Dec/10 10:15 AM ]|
|Comment by Anissa Lam [ 18/Dec/10 06:10 PM ]|
Since this is reviewed by REST team, I will start the 3.1 change process to have the above changed code checked in. This ensure GUI works starting on Sunday nightly build.
How bad is its impact? (Severity)
How often does it happen?
Will many users see this problem? (Frequency)
How much effort is required to fix it? (Cost)
What is the risk of fixing it and how will the risk be mitigated? (Risk)
|Comment by Anissa Lam [ 18/Dec/10 06:20 PM ]|
Fix checked in on 12/18. Should be available starting from 12/19 nightly build.
|Comment by shaline [ 25/Jan/11 03:36 PM ]|
Verified in promoted b38.