lixiang
Posts: 2
|
Posted: 04/03/2007, 7:37 AM |
|
hi! i'm new on using codecharge studio 2.2.3.60 trial version and i am having trouble with the JSPs generated
by the application builder. The errors below keeps showing in localhost_log.2007-03-30.txt(tomcat 5.0.28) randomly.
I have submitted this problem to ccs support, but the only answer is to try a new version . These errors seems
do no harm to my application. However I still want to figure out what caused these errors,imcompatible reason( I inserted
<jspversion>1.0</jspversoin> into CCStag.tld to let it run under tomcat5) or something wrong at the configuration stage.
I'm afraid if you could give me any advice to fix this,thanks in advance.
2007-03-30 10:08:58 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.lang.Error: IO Problems
at com.codecharge.tags.FormActionTag.doEndTag(Unknown Source)
at org.apache.jsp.SUBSCRIBER_005fmaint2_jsp._jspx_meth_ccs_form_action_0(SUBSCRIBER_005fmaint2_jsp.java:2065)
at org.apache.jsp.SUBSCRIBER_005fmaint2_jsp._jspx_meth_ccs_record_0(SUBSCRIBER_005fmaint2_jsp.java:1494)
at org.apache.jsp.SUBSCRIBER_005fmaint2_jsp._jspService(SUBSCRIBER_005fmaint2_jsp.java:1287)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
2007-03-30 15:32:19 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.apache.coyote.tomcat5.CoyoteResponse.toAbsolute(CoyoteResponse.java:1426)
at org.apache.coyote.tomcat5.CoyoteResponse.encodeURL(CoyoteResponse.java:1057)
at org.apache.coyote.tomcat5.CoyoteResponseFacade.encodeURL(CoyoteResponseFacade.java:301)
at com.codecharge.util.SimpleSessionStorage.encodeURL(Unknown Source)
at com.codecharge.tags.PageHrefTag.doEndTag(Unknown Source)
at org.apache.jsp.SUBSCRIBER_005finput_005flist_jsp._jspx_meth_ccs_page_href_2(SUBSCRIBER_005finput_005flist_jsp.java:2466)
at org.apache.jsp.SUBSCRIBER_005finput_005flist_jsp._jspx_meth_ccs_next_on_0(SUBSCRIBER_005finput_005flist_jsp.java:2443)
at org.apache.jsp.SUBSCRIBER_005finput_005flist_jsp._jspx_meth_ccs_navigator_0(SUBSCRIBER_005finput_005flist_jsp.java:2302)
at org.apache.jsp.SUBSCRIBER_005finput_005flist_jsp._jspx_meth_ccs_grid_0(SUBSCRIBER_005finput_005flist_jsp.java:1184)
at org.apache.jsp.SUBSCRIBER_005finput_005flist_jsp._jspService(SUBSCRIBER_005finput_005flist_jsp.java:435)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
|
|
|
matheus
Posts: 386
|
Posted: 04/03/2007, 9:41 AM |
|
The second error, occurs to me too. It's something in compare URL and encode.
To resolve, I had change some CCS classes, and catch exception.
The exception occurs sometimes, but I didn't know why.
Change SimpleSessionStorage, method encodeURL.
public String encodeURL( String url ) {
if ( StringUtils.isEmpty( url ) || response == null ) return url;
//original code
//return response.encodeURL( url );
//resolver toAbsolute error
//coyote problem.
try{
if (response != null)
{
String enc = response.encodeURL(url);
if (!url.equals(enc))
{
System.out.println("Diferença entre URL e Encoded");
System.out.println("URL: "+url);
System.out.println("ENC: "+enc);
System.out.println("-----------------------------");
}
}else{
System.out.println("response null");
}
}catch(Exception ex){
//System.out.println("Exception in SimpleSessionStorage: "+ex.getMessage());
}
return url;
}
Now, the error didn't occurs in system, but appears in log.
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
|
|
lixiang
Posts: 2
|
Posted: 04/04/2007, 4:50 AM |
|
Thanks, Matheus !
I have just tried CCS 3.0, the same error occurs again. Does Anyone know the side effect of this errorQuote :2007-03-30 10:08:58 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception ? thanks in advance!
|
|
|
eserver220
Posts: 41
|
Posted: 04/04/2007, 7:14 PM |
|
Perhaps your application only works with tomcat4, Look at this:
http://forums.codecharge.com/posts.php?post_id=46011
|
|
|
monty241070
Posts: 4
|
Posted: 04/25/2007, 2:31 PM |
|
I'm having the same problem since upgrading to Tomcat 5.5.30 and CodeCharge 3.0/3.1. It occurs approximately every 100 screen refreshes. No clear source. Reloading the screen solves It has been happening for several months now.
_________________
--
Guido Leenders
Invantive BV |
|
|
|