请问这是什么错误?

geelpheels 2004-09-13 02:00:21
org.apache.jasper.JasperException: ORA-01722: 无效数字

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:536)


root cause

javax.servlet.ServletException: ORA-01722: 无效数字

at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
at org.apache.jsp.admin_main_jsp._jspService(admin_main_jsp.java:248)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:536)

...全文
150 点赞 收藏 6
写回复
6 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
yujiabian 2004-09-13
好长!帮你顶
回复
geelpheels 2004-09-13
int i=1;int article_id;
result_user=user.ListArticle(topage,20,menucode);
if(result_user!=null){
result_it=result_user.iterator();
while(result_it.hasNext()){
dbArticleList service=(dbArticleList)result_it.next();

out.println(service.article_id);

article_id=service.article_id;
menucode=service.menucode;

out.write("\r\n ");
out.write("<tr bgcolor=\"#FFFFFF\">\r\n ");
out.write("<td align=\"center\" class=\"banquan\">");
out.write("<span class=\"banquan\">");
out.print(i);
out.write("</span>");
out.write("</td>\r\n ");
out.write("<td class=\"banquan\" >");
out.write("<a href=\"article_edit.jsp?menucode=");
out.print(menucode);
out.write("&articlecode=");
out.print(article_id);
out.write("\" class=\"banquan\">");
out.print(service.article_title);
out.write("</a>");
out.write("</td>\r\n ");
out.write("<td align=\"center\" class=\"banquan\">");
out.print(service.article_date.toString());
out.write("</td>\r\n ");
out.write("<td align=\"center\" class=\"banquan\">");
out.write("<a href=\"fff\" class=\"banquan\">");
out.write("<a href=\"../servlet/del_article?articlecode=");
out.print(article_id);
out.write("&menucode=");
out.print(menucode);
out.write("\">鍒犻櫎");
out.write("</a>");
out.write("</td>\r\n ");
out.write("</tr>\r\n\t\t\t\t");
i++;
out.write("\r\n\t\t\t\t");
}
out.write("\r\n\t\t\t\t");
}else out.println("<font size='2'>娌℃湁鏂囩珷</font>");
out.write("\r\n ");
out.write("</table>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n ");
out.write("<table width=\"100%\" border=\"0\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td align=\"center\">");
out.write("<span class=\"style2\">绗?);
out.print(topage);
out.write("椤碉紝鍏?);
out.print(user.getPageCount());
out.write("椤碉紝\r\n ");

if(Integer.parseInt(topage)>1){

out.write("\r\n ");
out.write("<a href=\"admin_main.jsp?menucode=");
out.print(menucode);
out.write("&topage=");
out.print((Integer.parseInt(topage)-1));
out.write("\">涓婁竴椤?);
out.write("</a>\r\n ");

}
else{

out.write("\r\n 涓婁竴椤礬r\n ");

}
if(Integer.parseInt(topage)<user.getPageCount()){

out.write("\r\n ");
out.write("<a href=\"admin_main.jsp?menucode=");
out.print(menucode);
out.write("&topage=");
out.print((Integer.parseInt(topage)+1));
out.write("\">涓嬩竴椤?);
out.write("</a>\r\n ");

}
else
{

out.write("\r\n 涓嬩竴椤礬r\n ");

}

out.write("\r\n ");
out.write("</span>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table> ");
out.write("</td>\r\n ");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t); //248
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}
回复
geelpheels 2004-09-13
以下是服务器生成的admin_main_jsp.java的代码:

package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.sql.*;
import java.io.*;
import java.util.*;
import java.lang.*;
import java.lang.*;
import java.util.*;
import java.text.*;
import com.yuer.tool.*;
import com.meida.servlet.*;
import com.meida.dbBean.*;
import com.meida.huangpu.*;

public class admin_main_jsp extends HttpJspBase {


private static java.util.Vector _jspx_includes;

public java.util.List getIncludes() {
return _jspx_includes;
}

public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {

JspFactory _jspxFactory = null;
javax.servlet.jsp.PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;


try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;

out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");

String menucode=request.getParameter("menucode");
String topage=request.getParameter("topage");
if(topage==null)
topage="1";
//鍒濆鍖?
String title="";String menu_url="";
dbAdmin1 user=new dbAdmin1();
Collection result_user=null;
Iterator result_it=null;

out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("<title>鏃犳爣棰樻枃妗?);
out.write("</title>\r\n");
out.write("<link href=\"../css/index.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\n.style2 {\r\n\tfont-size: 9pt;\r\n\tfont-family: \"瀹嬩綋\";\r\n}\r\n-->\r\n");
out.write("</style>\r\n");
out.write("</head>\r\n\r\n");
out.write("<body leftmargin=\"0\" topmargin=\"0\">\r\n");
out.write("<table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td align=\"center\" bgcolor=\"ECF4FE\">\r\n");
out.write("<table width=\"90%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td bgcolor=\"A5C5E3\">");
out.write("<img src=\"../images/table_head.gif\" width=\"457\" height=\"26\">");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n ");
out.write("<table width=\"90%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#666666\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"400\" valign=\"top\" bgcolor=\"#FFFFFF\">");
out.write("<table width=\"100%\" height=\"207\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td valign=\"top\">");
out.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"20\"> ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td> ");
out.write("<a href=\"article_new.jsp?menucode=");
out.print(menucode);
out.write("\">");
out.write("<img src=\"../images/new_article.gif\" width=\"80\" height=\"18\" border=\"0\">");
out.write("</a>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"20\"> ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n ");
out.write("<table width=\"97%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td>");
out.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#0033CC\">\r\n ");
out.write("<tr bgcolor=\"#99CCFF\">\r\n ");
out.write("<td width=\"9%\" align=\"center\" class=\"banquan\">搴忓彿");
out.write("</td>\r\n ");
out.write("<td width=\"64%\" align=\"center\" class=\"banquan\">鏍囬");
out.write("</td>\r\n ");
out.write("<td width=\"17%\" align=\"center\" class=\"banquan\">鏃ユ湡");
out.write("</td>\r\n ");
out.write("<td width=\"10%\" align=\"center\" class=\"banquan\">鎿嶄綔");
out.write("</td>\r\n ");
out.write("</tr>\r\n \r\n\t\t\t\t");

回复
hpy121 2004-09-13
数据库服务没有启动!
回复
qukmei 2004-09-13
sql语句有错?
回复
xiangbo520 2004-09-13
你的代码??
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2004-09-13 02:00
社区公告
暂无公告