JawwadHussain
Posts: 1
|
Posted: 06/23/2004, 8:53 PM |
|
Hi,
We are using CodeCharge Studio 2.2.3.60. Our webserver is Sun One 6.0 SP6. We are encountering a "NullPointerException" whenever a submit happens to update/delete an editable grid. The same page works fine on Tomcat 4.1.24.
Here is the stack trace.
[24/Jun/2004:11:35:19] failure ( 3512): Internal error: servlet service function had thrown ServletException (uri=/secure/backoffice/userpage.jsp): javax.servlet.ServletException, stack: javax.servlet.ServletException
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:453)
at _jsps._userpage_jsp._jspService(_userpage_jsp.java:2417)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:248)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.java:238)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:519)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:588)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:897)
at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1059)
at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:959)
, root cause: java.lang.NullPointerException
at java.lang.String$CachedConverter.hasName(String.java:108)
at java.lang.String$CachedConverter.access$000(String.java:96)
at java.lang.String.getCTBConverter(String.java:203)
at java.lang.String.getBytes(String.java:740)
at com.codecharge.util.multipart.RequestParser.recode(RequestParser.java:156)
at com.codecharge.util.multipart.RequestParser.fillPostParameters(RequestParser.java:120)
at com.codecharge.util.multipart.RequestParser.parse(RequestParser.java:93)
at com.codecharge.components.Page.setRequest(Page.java:143)
at com.codecharge.PageController.<init>(PageController.java:71)
at _jsps._userpage_jsp._jspService(_userpage_jsp.java:435)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:248)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.java:238)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:519)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:588)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:897)
at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1059)
at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:959)
Does this means that Sun One Web Server is not supported by CodeCharge.
Any advice will be helpful.
Thnks,
Jawwad.
|
|
|
peterr
Posts: 5971
|
Posted: 06/24/2004, 2:00 AM |
|
Hi,
In case no one responds I recommend submitting technical issues and questions to http://support.codecharge.com.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
ignat
Posts: 55
|
Posted: 06/24/2004, 2:11 AM |
|
Jawwad,
This NPE doesn't depend on application server. This happens when request.getCharacterEncoding() returns null, and then String.getBytes(encoding) throws NPE. Contact support and they will send you a patch fixing the problem.
Strange that you got there with Sun ONE 6. Sun ONE is supposed to support request.setCharacterEncoding() method, so that recode() is never called. This bug was found in Tomcat 3 only. Weird.
Regards,
Ignat.
|
|
|
|