FYI MessAdmin 3.0 runs just fine for me in Tomcat 5, but generates a java.lang.NumberFormatException in Weblog 7.5sp7. I can't get much out of the stack trace, but it looks like sessionsList.jsp is trying to determine the value of a Long when the input string is still "", thus throwing the exception. The result is a 500 Server Error message to the user/admin and the exception above in the JVM console.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Weird, it works perfectly well in WebLogic 8.1sp6!
I can't find any reference of WebLogic 7.5: did you mean 7.0?
Are you using the BEA JVM (JRockit) or the SUN JVM?
Could you send me a copy of the stack strace?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Turns out I was misinformed about the server's version - it's running Weblogic 9.1. I'd assume the default JVM is what's being used. I'll try to get a stack trace.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
####<Sep 15, 2006 12:27:47 PM EDT> <Error> <HTTP> <LTCNU438FXCH> <examplesServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1158337667610> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@1dc89ab - name: 'halo.devstation.war', context-path: '/halo'] Servlet failed with Exception
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Long.parseLong(Long.java:424)
at java.lang.Long.valueOf(Long.java:518)
at jsp_servlet._messadmin.__sessionslist._jspService(__sessionslist.java:309)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:380)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:298)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at clime.messadmin.filter.MessAdminFilter.doFilter(MessAdminFilter.java:106)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.opensymphony.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:42)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at halo.webapp.filter.LocaleFilter.doFilterInternal(LocaleFilter.java:50)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:97)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the stack trace. It seems you are using Sun's Java 5.
Now... this bug is quite illogical: the only Long.valueOf() in my code is surrounded with a catch(NumberFormatException) (and there's none in sessionList.jsp)!
I'll download WebLogic 9.1 and give it a try ASAP.
In the mean time, it may help if you could hunt down the generated Java file "__sessionslist.java" on your server, and sent it to me.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Cedrik,
I'm afraid I can't find that file anywhere and I'm not very familiar with Weblogic. Let me know if you have any additional pointers and I'll give it a go. Thanks!
Scott
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have downloaded WebLogic 9, and it's driving me crazy! (I can't find the generated file either.) Are you sure you don't want to downgrade to 8.1? O:-)
More seriously, I really don't know what's wrong. It must be a silly small thing, that only WebLogic 9 does not like (I tested with WebLogic 8.1, Oracle OC4J 10.1.3, Tomcat 4.1 and 5.5, JBoss 4.0). I'll do my best, but I can't promise.
If there's any WebLogic 9 guru here, please raise your hand!
As a workaround, you can always use JMX to access MessAdmin data, even if that's less user-friendly than the administration application.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
FYI MessAdmin 3.0 runs just fine for me in Tomcat 5, but generates a java.lang.NumberFormatException in Weblog 7.5sp7. I can't get much out of the stack trace, but it looks like sessionsList.jsp is trying to determine the value of a Long when the input string is still "", thus throwing the exception. The result is a 500 Server Error message to the user/admin and the exception above in the JVM console.
Weird, it works perfectly well in WebLogic 8.1sp6!
I can't find any reference of WebLogic 7.5: did you mean 7.0?
Are you using the BEA JVM (JRockit) or the SUN JVM?
Could you send me a copy of the stack strace?
Turns out I was misinformed about the server's version - it's running Weblogic 9.1. I'd assume the default JVM is what's being used. I'll try to get a stack trace.
####<Sep 15, 2006 12:27:47 PM EDT> <Error> <HTTP> <LTCNU438FXCH> <examplesServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1158337667610> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@1dc89ab - name: 'halo.devstation.war', context-path: '/halo'] Servlet failed with Exception
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Long.parseLong(Long.java:424)
at java.lang.Long.valueOf(Long.java:518)
at jsp_servlet._messadmin.__sessionslist._jspService(__sessionslist.java:309)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:380)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:298)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at clime.messadmin.filter.MessAdminFilter.doFilter(MessAdminFilter.java:106)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.opensymphony.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:42)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at halo.webapp.filter.LocaleFilter.doFilterInternal(LocaleFilter.java:50)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:97)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
>
Thanks for the stack trace. It seems you are using Sun's Java 5.
Now... this bug is quite illogical: the only Long.valueOf() in my code is surrounded with a catch(NumberFormatException) (and there's none in sessionList.jsp)!
I'll download WebLogic 9.1 and give it a try ASAP.
In the mean time, it may help if you could hunt down the generated Java file "__sessionslist.java" on your server, and sent it to me.
Hi Cedrik,
I'm afraid I can't find that file anywhere and I'm not very familiar with Weblogic. Let me know if you have any additional pointers and I'll give it a go. Thanks!
Scott
Hi Scott,
I have downloaded WebLogic 9, and it's driving me crazy! (I can't find the generated file either.) Are you sure you don't want to downgrade to 8.1? O:-)
More seriously, I really don't know what's wrong. It must be a silly small thing, that only WebLogic 9 does not like (I tested with WebLogic 8.1, Oracle OC4J 10.1.3, Tomcat 4.1 and 5.5, JBoss 4.0). I'll do my best, but I can't promise.
If there's any WebLogic 9 guru here, please raise your hand!
As a workaround, you can always use JMX to access MessAdmin data, even if that's less user-friendly than the administration application.