users@glassfish.java.net

Glassfish v2.1 NumberFormatException problem

From: <glassfish_at_javadesktop.org>
Date: Fri, 16 Jan 2009 08:18:14 PST

Hi All:

I’m just a glassfish newbie trying to perform the migration of my web application to Glassfish v.2.1 (actually the latest sailfin AS). After uploading my web-site into opencms module (which runs above Glassfish) I started receiving the following error:


Servlet.service()
for servlet jsp threw exception
java.lang.NumberFormatException: For input string: "news" at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:447) at
java.lang.Integer.valueOf(Integer.java:553) at
org.opencms.file.collectors.CmsCollectorData.<init>(CmsCollectorData.java:109) at
org.opencms.file.collectors.CmsDefaultResourceCollector.getAllInFolder(CmsDefaultResourceCollector.java:306) at
org.opencms.file.collectors.CmsDefaultResourceCollector.getResults(CmsDefaultResourceCollector.java:177) at
org.opencms.jsp.CmsJspTagContentLoad.init(CmsJspTagContentLoad.java:867)

I’m not expert in Java, but it looks like "news" string is trying to transform to Integer

I have checked the .jsp files and haven’t found where it can happen. I’ve checked also the dates in the “news” section, they are correct
The strange thing is that the same application runs smoothly on both JBoss 4.0 and WebLogic 9.1
If anybody has any idea about what is happening and where should I look the problem?

Thanks,
Nikolay
PS: The full log from Glassfish Log_Viewer is given below

Servlet.service()
for servlet jsp threw exception
java.lang.NumberFormatException: For input string: "news" at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:447) at
java.lang.Integer.valueOf(Integer.java:553) at
org.opencms.file.collectors.CmsCollectorData.<init>(CmsCollectorData.java:109) at
org.opencms.file.collectors.CmsDefaultResourceCollector.getAllInFolder(CmsDefaultResourceCollector.java:306) at
org.opencms.file.collectors.CmsDefaultResourceCollector.getResults(CmsDefaultResourceCollector.java:177) at
org.opencms.jsp.CmsJspTagContentLoad.init(CmsJspTagContentLoad.java:867) at
org.opencms.jsp.CmsJspTagContentLoad.doStartTag(CmsJspTagContentLoad.java:369) at
org.apache.jsp.WEB_002dINF.jsp.online.system.modules.com_mobly_web_opencms.elements.main.our_005fservices_jsp._jspx_meth_cms_contentload_0(our_005fservices_jsp.java
from :150) at
org.apache.jsp.WEB_002dINF.jsp.online.system.modules.com_mobly_web_opencms.elements.main.our_005fservices_jsp._jspService(our_005fservices_jsp.java
from :121) at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427) at
org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:875) at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723) at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:679) at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:594) at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:194) at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169) at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:1193) at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423) at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:173) at
org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.java:364) at
org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:241) at org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:472)
at
org.apache.jsp.WEB_002dINF.jsp.online.system.modules.com_mobly_web_opencms.templates.desktop_jsp._jspx_meth_cms_include_4(desktop_jsp.java
from :802) at
org.apache.jsp.WEB_002dINF.jsp.online.system.modules.com_mobly_web_opencms.templates.desktop_jsp._jspService(desktop_jsp.java
from :268) at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427) at
org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:875) at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723) at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:679) at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:594) at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:194) at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169) at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:1193) at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423) at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:173) at
org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.java:364) at
org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:241) at org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:472)
at
org.apache.jsp.WEB_002dINF.jsp.online.system.modules.com_mobly_web_opencms.templates.main_jsp._jspx_meth_cms_include_1(main_jsp.java
from :141) at
org.apache.jsp.WEB_002dINF.jsp.online.system.modules.com_mobly_web_opencms.templates.main_jsp._jspService(main_jsp.java
from :93) at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427) at
org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:875) at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723) at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:679) at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:594) at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:194) at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169) at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:1193) at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423) at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:173) at
org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.java:364) at
org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:241) at org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:472)
at
org.apache.jsp.WEB_002dINF.jsp.online.system.modules.com_mobly_web_opencms.templates.start_005fpage_jsp._jspx_meth_cms_include_0(start_005fpage_jsp.java
from :132) at
org.apache.jsp.WEB_002dINF.jsp.online.system.modules.com_mobly_web_opencms.templates.start_005fpage_jsp._jspService(start_005fpage_jsp.java
from :85) at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427) at
org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:875) at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723) at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:679) at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:594) at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:194) at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169) at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:1193) at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423) at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:173) at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:1227)
at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:1171) at
org.opencms.loader.A_CmsXmlDocumentLoader.load(A_CmsXmlDocumentLoader.java:232) at org.opencms.loader.CmsXmlPageLoader.load(CmsXmlPageLoader.java:53)
at
org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:964) at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1498) at
org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:152) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:734) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315) at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218) at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222) at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166) at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647) at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579) at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831) at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341) at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263) at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214) at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) at
com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
[Message sent by forum member 'nilyin' (nilyin)]

http://forums.java.net/jive/thread.jspa?messageID=326512