Number is out of range问题 [问题点数:40分,结帖人Gmjinrong]

Bbs1
本版专家分:0
结帖率 100%
Bbs7
本版专家分:18427
Blank
蓝花 2010年6月 Delphi大版内专家分月排行榜第三
Bbs6
本版专家分:6060
Bbs6
本版专家分:6060
Bbs1
本版专家分:0
Bbs5
本版专家分:4874
Bbs1
本版专家分:0
Bbs5
本版专家分:4874
Bbs7
本版专家分:21295
Blank
红花 2019年2月 其他开发语言大版内专家分月排行榜第一
2019年1月 Delphi大版内专家分月排行榜第一
2018年8月 Delphi大版内专家分月排行榜第一
2018年7月 Delphi大版内专家分月排行榜第一
2018年4月 Delphi大版内专家分月排行榜第一
2018年3月 Delphi大版内专家分月排行榜第一
Blank
黄花 2016年11月 Delphi大版内专家分月排行榜第二
Blank
蓝花 2011年10月 其他开发语言大版内专家分月排行榜第三
2010年8月 其他开发语言大版内专家分月排行榜第三
2007年5月 其他开发语言大版内专家分月排行榜第三
Bbs8
本版专家分:36224
Blank
红花 2010年9月 Delphi大版内专家分月排行榜第一
2010年8月 Delphi大版内专家分月排行榜第一
Blank
黄花 2011年2月 Delphi大版内专家分月排行榜第二
2011年1月 Delphi大版内专家分月排行榜第二
2010年12月 Delphi大版内专家分月排行榜第二
2010年11月 Delphi大版内专家分月排行榜第二
2010年10月 Delphi大版内专家分月排行榜第二
Blank
蓝花 2011年3月 Delphi大版内专家分月排行榜第三
2010年7月 Delphi大版内专家分月排行榜第三
Bbs8
本版专家分:36224
Blank
红花 2010年9月 Delphi大版内专家分月排行榜第一
2010年8月 Delphi大版内专家分月排行榜第一
Blank
黄花 2011年2月 Delphi大版内专家分月排行榜第二
2011年1月 Delphi大版内专家分月排行榜第二
2010年12月 Delphi大版内专家分月排行榜第二
2010年11月 Delphi大版内专家分月排行榜第二
2010年10月 Delphi大版内专家分月排行榜第二
Blank
蓝花 2011年3月 Delphi大版内专家分月排行榜第三
2010年7月 Delphi大版内专家分月排行榜第三
急死了,----------------------------------------------Subscript out of range
aspSmartUpload 錯誤 '800a0009' rnrnSubscript <em>out</em> of <em>range</em> rnrndownload.asp, 列5 rnrn
subscript out of range
创建对象是出现这个错误,我没用下标阿,这是怎么回事、rnrn出事的地方是rnset obj=server.createobject("Lyfupload.uploadFile")rn
string subscript out of range
我使用rntemp.erase(temp.end()-1);rn后编译时没错,运行时出现RT错误!高手帮忙啊!
"DBGrid index Out of Range "
Query1->DisableControl();rnfor(int i=0; iAppend();rn Query1->FiledByName("f1")->Value="sss";rn Query1->FiledByName("f2")->Value="sss1";rn Query1->Post();rnrnQuery1->EnableControl();rnrn为什么加上 :rnQuery1->DisableControl();rnQuery1->EnableControl();rn时有时候会出现"DBGrid index Out of Range " 错误!rn
Subscript out of range
LyfUpload 错误 '80020009' rnrnSubscript <em>out</em> of <em>range</em> rnrn/金和田/manager/doupload.asp,行 15 rnrnrn代码如下:rnrnrnrnrn rn 文件上传rnrnrnrnrnrnrn rn rnrnrnrn第15行是 set uploadphoto = Server.CreateObject("LyfUpload.UploadFile")rnrn请各位帮忙解决,小弟很急!!!
String out of range : 1303128
engineurl:http://127.0.0.12:8888/transrnparameterKey:config=BR&Code=010&x1=116.810918&y1=39.912719&x2=121.6018793&y2=38.8028643&r<em>out</em>eType=0&language=cn&ver=2.0rnjava.lang.StringIndexOutOfBoundsException: String index <em>out</em> of <em>range</em>: 1303128rn at java.lang.String.checkBounds(String.java:401)rn at java.lang.String.(String.java:442)rn at com.mapabc.sis.server.core.service.impl.BusR<em>out</em>eServiceImpl.byteToString(BusR<em>out</em>eServiceImpl.java:313)rn at com.mapabc.sis.server.core.service.impl.BusR<em>out</em>eServiceImpl.format2NewBusR<em>out</em>eBeans(BusR<em>out</em>eServiceImpl.java:183)rn at com.mapabc.sis.server.core.service.impl.BusR<em>out</em>eServiceImpl.invokeService(BusR<em>out</em>eServiceImpl.java:72)rn at com.mapabc.sis.server.core.service.CoreServices.processRequest(CoreServices.java:192)rn at com.mapabc.sis.server.core.service.CoreServices.doGet(CoreServices.java:343)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.mapabc.sis.server.core.security.SecurityFilter.doFilter(SecurityFilter.java:279)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)rn at com.mapabc.sis.server.core.access.LBSServer.urlforward(LBSServer.java:196)rn at com.mapabc.sis.server.core.access.LBSServer.doGet(LBSServer.java:93)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:662)rnjava.lang.NullPointerExceptionrn at com.mapabc.sis.util.coordsfactory.action.BusR<em>out</em>eCoords.invokeCoords(BusR<em>out</em>eCoords.java:42)rn at com.mapabc.sis.server.core.service.CoreServices.processRequest(CoreServices.java:211)rn at com.mapabc.sis.server.core.service.CoreServices.doGet(CoreServices.java:343)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.mapabc.sis.server.core.security.SecurityFilter.doFilter(SecurityFilter.java:279)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)rn at com.mapabc.sis.server.core.access.LBSServer.urlforward(LBSServer.java:196)rn at com.mapabc.sis.server.core.access.LBSServer.doGet(LBSServer.java:93)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:662)rnsum time=9556rnrnrn我在运行服务时tomcat出现如下提示,但是服务并没发生中断之类的错误。这个<em>问题</em>是什么原因导致呢。该如何解决呢
subscript out of range原因
引用“microsofe runtimr scripting”,读写文件,加密一个应用程序。rn本地运行时没有<em>问题</em>,生成.exe文件交给用户,运行提示“错误9,subscript <em>out</em> of <em>range</em>”rn请教大虾,可能的原因是什么,如何解决,谢谢!!!
vector out of range
Hi ,大家好,我是新来的,请多多关照呀。rn在快速排序算法中,出了点<em>问题</em>,请那位高人指点指点,在此先谢了!rn下面是程序原文和<em>问题</em>:rn//quickSort.hrnrn#ifndef QUICKSORT_Hrn#define QUICKSORT_Hrn#include rnrnusing namespace std;rnrntemplaternvoid quickSort( vector a )//对队列a进行快速排序rnrn quickSort( a, 0, a.size()-1 ); //调用重载函数rnrnrntemplaternvoid quickSort( vector a, int left, int right )rnrn if( left>=right ) //如果待排长度为0或1,无需再排rn return;rnrn int pivot=partition( a, left, right ); //进行划分rn quickSort( a, left, pivot-1 ); // 对分割点左半部分进行快速排序rn quickSort( a, pivot+1, right ); //对分割点右半部分进行快速排序rnrnrntemplaternint partition( vector a, int left, int right )rnrnrn int pivot;rn Comparable x=a[ left ]; //以第一个元素为基准rn int i=left;rn int j=right+1;rnrn while( true )rn while( a[ ++i ]x ); //右边比基准大的不动rn if( i>=j ) //划分完毕时退出rn break;rn swap( a[ i ], a[ j ] ); //此时,a[ i ]>=x, 且a[ j ]rn#include rnrnusing namespace std;rnrnint _tmain(int argc, _TCHAR* argv[])rnrn vector< int > v( 9 );rn rn int arr[ 9 ]= 90, 3, 34, 4, 45, 5, 56, 6, 67 ;rn for( int i=0; i<<
slice bounds out of range
[img=https://img-bbs.csdn.net/upload/201705/27/1495850320_223860.png][/img]rnrnb = [0, 0, 0, 0, 0]rnb[2:] 为什么会报错, 不应该是 b[2:] = [0, 0, 0] ?
Bits index out of range
对 Delphi 5 ClientDataSet, Edit操作, Post时报错 Bits index <em>out</em> of <em>range</em>, insert时正常, 不知是何原因?
Recordindex out of range
很简单的一个过程,就是使用TcxDBNavigator控件对一个数据集进行操作控制,在点击删除按钮后出现错误提示‘Recordindex <em>out</em> of <em>range</em>’,请各位帮帮忙
出现java.sql.SQLException: Parameter index out of range (1 > number of parameters,
本人是个菜鸟,想问下,我想在HTML中添加一条记录到数据库t_emp中,然后出现这个错误,这个参数出错在哪?百度弄不出。怎么改才行呢?rn[code=java]package web;rnrnimport java.io.IOException;rnimport java.io.PrintWriter;rnimport java.sql.Connection;rnimport java.sql.DriverManager;rnimport java.sql.PreparedStatement;rnimport java.sql.SQLException;rnrnimport javax.servlet.ServletException;rnimport javax.servlet.http.HttpServlet;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnpublic class AddEmpServlet extends HttpServlet rn public void service(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rn request.setCharacterEncoding("utf-8");rn response.setContentType("text/html;charset=utf-8");//设置内容输出类型rn PrintWriter <em>out</em> = response.getWriter();//获取输出流对象rn //以下三行代码功能是获取HTML表单提交的数据rn String name =request.getParameter("name");rn double salary=Double.valueOf(request.getParameter("salary"));rn int age=Integer.valueOf(request.getParameter("age"));rn Connection conn=null;rn PreparedStatement stat=null;rn tryrn Class.forName("com.mysql.jdbc.Driver");rn conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/t_emp","root","admin");rn stat=conn.prepareStatement("insert into t_emp values (name,salary,age) ;");rn stat.setString(1, name);rn stat.setDouble(2, salary);rn stat.setInt(3, age);rn stat.executeUpdate();rn <em>out</em>.println("添加成功"); rn catch(Exception e)rn e.printStackTrace();rn <em>out</em>.println("系统繁忙,请稍后再试"); rn finallyrn if(stat!=null)rn trystat.close();rn catch(SQLException e)rn e.printStackTrace();rn rn rn if(conn!=null)rn tryrn conn.close(); rn catch(SQLException e)rn e.printStackTrace();rn rn rn rn rnrnjava.sql.SQLException: Parameter index <em>out</em> of <em>range</em> (1 > <em>number</em> of parameters, which is 0).rnrn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)rn at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:2715)rn at com.mysql.jdbc.PreparedStatement.setString(PreparedStatement.java:3546)rn at web.AddEmpServlet.service(AddEmpServlet.java:42)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rnrn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)rnrn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:745)rnrn[/code]
java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0).
rnjava.sql.SQLException: Parameter index <em>out</em> of <em>range</em> (1 > <em>number</em> of parameters, which is 0).rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)rn at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:2715)rn at com.mysql.jdbc.PreparedStatement.setString(PreparedStatement.java:3546)rn at com.achievo.test.team.Connection.ConnectionDB.insert(ConnectionDB.java:170)rn at com.achievo.test.team.DAO.FileDAO.insert(FileDAO.java:111)rn at com.achievo.test.team.po.imp.FilePOImpl.insert(FilePOImpl.java:21)rn at com.achievo.test.team.bo.imp.FileBOImpl.insert(FileBOImpl.java:21)rn at com.achievo.test.team.ui.action.ResourceUploadAction.execute(ResourceUploadAction.java:96)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at com.achievo.test.team.commom.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:39)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)rn at java.lang.Thread.run(Thread.java:595)谁能帮我看下有错在哪里啊?rnConnectionDB.javarnrn public int insert(String sql ,String fileID,String typeID)rn int INSERT_RESULT=0;rn con = getConnection();rn ps = con.prepareStatement(sql); rn ps.setString(1, fileID); rn ps.setString(2, typeID);rn INSERT_RESULT = ps.executeUpdate(); rn return INSERT_RESULT;rn rnrnThe insert() was been used by this:rnfileDAO.javarnrnpublic boolean insert(FileInformation fileInformation) rn ConnectionDB connectionDB;rn int INSERT_RESULT_RETURN ,INSERT_FILE_TYPE_RETURN= 0;rn List items = new ArrayList();rn items.add(fileInformation.getFileName());rn items.add(fileInformation.getFileDescription());rn items.add(fileInformation.getFileSize());rn connectionDB = new ConnectionDB();rn try rn INSERT_RESULT_RETURN = connectionDB.insert(FILE_INFO_ADD, items);rn if (INSERT_RESULT_RETURN > 0) rn rn String fileID = selectFileID(fileInformation);rn String typeID = selectTypeID(fileInformation);rn INSERT_FILE_TYPE_RETURN=connectionDB.insert(FILE_TYPE_ADD, fileID,typeID);rn if ( INSERT_FILE_TYPE_RETURN> 0) rn this.isRSTure = true;rn rnrn rn catch (Exception e) rn e.printStackTrace();rn rnrn connectionDB.close();rn return isRSTure;rn rnrnrn
Parameter index out of range (1 > number of parameters, which is 0).
求解,如题。。。。。
java.sql.SQLException: Parameter index out of range (1 > number of parameters, w
[code="java"]public class Register rn public static boolean register(String name, String password) rn throws SQLException, ClassNotFoundException rn Class.forName("com.mysql.jdbc.Driver");rn Connection cn = DriverManager.getConnectionrn ("jdbc:mysql://localhost/test", "root", "179401");rn PreparedStatement pst = cn.prepareStatementrn ("select * from temp");rn ResultSet rs = pst.executeQuery();rn rn while (rs.next()) rn if (rs.getString(1).equals(name)) rn System.<em>out</em>.println("The username " + name + " has already existed!");rn return false;rn rn rn rn pst.setString(1, name);rn pst.setString(2, password);rn rn cn.close();rn rn return true;rn rn[/code]rnrn异常 rnjava.sql.SQLException: Parameter index <em>out</em> of <em>range</em> (1 > <em>number</em> of parameters, which is 0).rn com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1075)rn com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)rn com.mysql.jdbc.SQLError.createSQLException(SQLError.java:984)rn com.mysql.jdbc.SQLError.createSQLException(SQLError.java:929)rn com.mysql.jdbc.PreparedStatement.checkBounds(PreparedStatement.java:3711)rn com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:3695)rn com.mysql.jdbc.PreparedStatement.setString(PreparedStatement.java:4546)rn com.v.registration.Register.register(Register.java:22)rn com.v.registration.RegisterAction.execute(RegisterAction.java:9)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:597)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243)rn com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252)rn org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:130)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)rn org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rnrn
Parameter index out of range (1 > number of parameters, which is 0).求解
[code=Java]rnpackage com.asiasoft.studentsmanager;rnrnimport java.util.ArrayList;rnimport java.io.BufferedReader;rnimport java.io.IOException;rnimport java.io.InputStreamReader;rnimport java.sql.*;rnrnimport com.asiasoft.studentsmanager.utils.MyDBUtil;rnrnrnpublic class StudentsManger rn public static void main(String[] args) throws ClassNotFoundException, SQLException, IOException rn rn String uname;rn String pword;rn String sql = "";rn rn InputStreamReader input1 = new InputStreamReader(System.in);rn BufferedReader br1 = new BufferedReader(input1);rn System.<em>out</em>.println("****************");rn System.<em>out</em>.println("**欢迎登陆学员管理系统**");rn System.<em>out</em>.println("****************");rn Connection con1 = MyDBUtil.getConnection();rn PreparedStatement ps = MyDBUtil.getPreparedStatement(con1, sql);rn System.<em>out</em>.print("请输入用户名:");rn uname = br1.readLine();rn System.<em>out</em>.print("请输入密码:");rn pword = br1.readLine();rn ps.setString(1, uname);rn ps.setString(2, pword);rn sql = "select * from students where uname=? & pword=?";rn ResultSet rs1 = ps.executeQuery(sql);rn while(rs1.next())rn if(rs1.next() == true)rn System.<em>out</em>.println("登陆成功!");rn display();rn elsern System.<em>out</em>.println("用户名或密码错误!");rn rn rn rn rn rn rn /*display();*/rn rn rn rn public static void display() throws ClassNotFoundException, SQLException, IOException rn String operater = "";rn int id;rn String uname;rn String pword;rn String email;rn InputStreamReader input rn = new InputStreamReader(System.in);rn BufferedReader br rn = new BufferedReader(input);rn rn Connection con = MyDBUtil.getConnection();rn /*Statement st = con.createStatement();rn ResultSet rs = st.executeQuery("select * from students");*/rn String sql = "select * from students";rn Statement st = MyDBUtil.getStatement(con);rn ResultSet rs = MyDBUtil.getResultSet(st, sql);rn System.<em>out</em>.println("id\t|uname\t|pword\t|email\t");rn rn while(rs.next())rn System.<em>out</em>.println(rs.getString("id")+"\t|"rn +rs.getString("uname")+"\t|"+rn rs.getString("pword")+"\t|"+rn rs.getString("email")+"\t");rn rn System.<em>out</em>.println("********************");rn System.<em>out</em>.println("*增加学生信息 输入add; *");rn System.<em>out</em>.println("*删除学生信息 输入delete; *");rn System.<em>out</em>.println("*修改学生信息 输入update; *");rn System.<em>out</em>.println("*查询学生信息 输入query; *");rn System.<em>out</em>.println("*退出请输入exit; *");rn System.<em>out</em>.println("********************");rn rn rn operater = br.readLine();rn rn rn rn rn if("add".equalsIgnoreCase(operater))rn //addrn System.<em>out</em>.print("请输入要添加的姓名:");rn uname = br.readLine();rn rn System.<em>out</em>.print("请输入要添加的密码:");rn pword = br.readLine();rn rn System.<em>out</em>.print("请输入要添加的邮箱:");rn email = br.readLine();rn rn Student s = new Student();rn s.setUname(uname);rn s.setPword(pword);rn s.setEmail(email);rn String addsql = "insert into students (uname,pword,email) values('"+uname+"','"+pword+"','"+email+"')";rn int addresult = st.executeUpdate(addsql);rn System.<em>out</em>.println("添加成功!");rn display();rn rn else if("delete".equalsIgnoreCase(operater))rn //shanchurn System.<em>out</em>.println("请输入将要删除的编号:");rn id = Integer.parseInt(br.readLine());rn String deletesql = "delete from students where id='"+id+"'";rn int deleteResult = st.executeUpdate(deletesql);rn System.<em>out</em>.println("删除成功!");rn display();rn rn else if("update".equalsIgnoreCase(operater))rn //updatern System.<em>out</em>.println("请输入你所要修改的编号:");rn id = Integer.parseInt(br.readLine());rn System.<em>out</em>.println("请输入修改后的名字:");rn uname = br.readLine();rn System.<em>out</em>.println("请输入修改后的密码:");rn pword = br.readLine();rn System.<em>out</em>.println("请输入修改后的邮箱:");rn email = br.readLine();rn rn String updatesql = "update students set uname='"+uname+"',pword='"+pword+"',email='"+email+"' where id = '"+id+"'";rn int updateResult = st.executeUpdate(updatesql);rn System.<em>out</em>.println("修改成功!");rn display();rn else if("query".equalsIgnoreCase(operater))rn //queryrn System.<em>out</em>.println("请输入要查询的编号:");rn id = Integer.parseInt(br.readLine());rn rn String querysql = "select * from students where id = '"+id+"'";rn rs = st.executeQuery(querysql);rn /*while(rs.next())rn int k = Integer.parseInt(rs.getString("id"));rn if(k!= id)rn System.<em>out</em>.println("查无此人!");rn break;rn elsern continue;rn rn */rn System.<em>out</em>.println("id\t|uname\t|pword\t|email\t");rn while(rs.next())rn System.<em>out</em>.println(rs.getString("id")+"\t|"rn +rs.getString("uname")+"\t|"+rn rs.getString("pword")+"\t|"+rn rs.getString("email")+"\t|");rn rn System.<em>out</em>.println("查询完毕!");rn System.<em>out</em>.println("是否继续使用本系统?(y/n)");rn String j = br.readLine();rn if("y".equalsIgnoreCase(j))rn display();rn elsern System.<em>out</em>.println("谢谢你的使用!");rn rn else if("exit".equalsIgnoreCase(operater))rn System.<em>out</em>.println("谢谢你的使用!!");rn rn rn rn rn rn rn rn rn rn rnrnrn[/code]出现了如题的错误,求高手解答!下面是我的那个数据库的连接。rn[code=Java]package com.asiasoft.studentsmanager.utils;rnrnimport java.sql.Connection;rnimport java.sql.DriverManager;rnimport java.sql.PreparedStatement;rnimport java.sql.ResultSet;rnimport java.sql.SQLException;rnimport java.sql.Statement;rnrnpublic class MyDBUtil rn private static String className = "com.mysql.jdbc.Driver";rn private static String url = "jdbc:mysql://localhost/j2ee1111" +rn "?user=root&password=root";rnrn rn rn public static Connection getConnection() throws ClassNotFoundException, SQLExceptionrn Class.forName(className);rn Connection con = DriverManager.getConnection(url);rn return con;rn rn rn public static Statement getStatement(Connection con) throws SQLExceptionrn Statement st = con.createStatement();rn return st;rn rn rn public static PreparedStatement getPreparedStatement(Connection con,String sql) throws SQLExceptionrn PreparedStatement ps = con.prepareStatement(sql);rn return ps;rn rn rn public static ResultSet getResultSet(Statement st,String sql) throws SQLExceptionrn ResultSet rs = st.executeQuery(sql);rn /*int rs1 = st.executeUpdate(sql);*/rn return rs;rn rn rn rn rn public static void closeAllMethod(Connection con,Statement st,ResultSet rs)rn try rn if(rs!=null)rn rs.close();rn rn if(st!=null)rn st.close();rn rn if(con!=null)rn con.close();rn rn catch (SQLException e) rn // TODO 自动生成 catch 块rn e.printStackTrace();rn rn rnrnrn[/code]rnrn出现的<em>问题</em>如下:[code=Java]Exception in thread "main" java.sql.SQLException: Parameter index <em>out</em> of <em>range</em> (1 > <em>number</em> of parameters, which is 0).rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926)rn at com.mysql.jdbc.PreparedStatement.checkBounds(PreparedStatement.java:3288)rn at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:3272)rn at com.mysql.jdbc.PreparedStatement.setString(PreparedStatement.java:4108)rn at com.asiasoft.studentsmanager.StudentsManger.main(StudentsManger.java:30)[/code]
显示器out of range
文档中将笔者调试成功的一个显示器显示<em>out</em> of <em>range</em>的案例,希望对纠结于此的人有所帮助。 GOOD LUCK!
grid index out of range
beginrn dmData.adoQCode.open;rn dmData.adoQCode.Append;rn dmData.adoQCode.FieldByName('Type').AsString := cbbType.Text;rn dmData.adoQCode.FieldByName('Value').AsString := edtValue.Text;rn dmData.adoQCode.FieldByName('Mem').AsString := edtMem.Text;rn dmdata.adoQCode.Post;rn end;rn我用的是DBgrid和Access库,在添加一条记录时报出grid index <em>out</em> of <em>range</em> 的错误,请各位知道的加以指点
java.lang.IllegalArgumentException: pointerIndex out of range
[img=https://img-bbs.csdn.net/upload/201403/14/1394766499_455123.png][/img]rn重写的ViewPagernonInterceptTouchEvent事件rn[code=java]int down=0;rn float dx=0;rn @Overridern public boolean onInterceptTouchEvent(MotionEvent ev) rn System.<em>out</em>.println("MyViewPage onInterceptTouchEvent");rn tryrn if(getPosition()==0&&ev.getY()0&&*/getCurrentItem()==0) rn if(ev.getY()0)rn return false;rn rn rn break;rn rn System.<em>out</em>.println("dx"+Math.abs(dx)+"");rn if(Math.abs(dx)>15)//就是这里造成的rn return true;rn elsern return false;rn catch(IllegalArgumentException ex) rn ex.printStackTrace();rn return false;rn rn [/code]
index out of range exception??
index <em>out</em> of <em>range</em> exception??rnrn[color=#FF0000]error code:rnrn if (!Convert.IsDBNull(reader["Name"]))rn username = reader["Name"].ToString();[/color]rnrnrn2. source code:rnrn public bool LoginUser(string username,string pwd)rn rn rn bool exists = false;rn SqlParameter[] parms = new SqlParameter[2];rn parms[0] = new SqlParameter("@name", SqlDbType.NVarChar, 100);rn parms[1] = new SqlParameter("@password", SqlDbType.NVarChar, 100);rn parms[0].Value = username;rn parms[1].Value = pwd;rn SqlDataReader reader = DbTools.ExecuteReader("LoginUserProce", parms);rnrn if (reader.Read())rn rn[color=#339966] exists = true;rn if (!Convert.IsDBNull(reader.GetValue(2)))[/color]???????????????rn username = reader.GetValue(2).ToString();rn if (!Convert.IsDBNull(reader["password"]))rn pwd = reader["password"].ToString();rn rn rn reader.Close();rn return exists;rnrn rnrnrn
PTS is out of range
RTP 分别实时打包发送H264,G711。有实现RTCPrn用VLC接收播放,但每隔一段时间就会打印一连串下面的东西,而且播放的时间越长就出现的越频繁rnmain warning:PTS is <em>out</em> of <em>range</em>(-23...),dropping bufferrnrn有时还打印rnmore than 5 seconds of late video ->dropping frame(computer too slow?)
currency value is out of range
toolsprdpropor*(tv_query_2.latest_cost)[color=#FF0000]*[/color](tv_query_3.latest_cost*tv_query_3.actualcapacity) as toolsprdproporrn做乘法没<em>问题</em>rnrn下面做除法就有<em>问题</em>了rntoolsprdpropor*(tv_query_2.latest_cost)[color=#FF0000]/[/color](tv_query_3.latest_cost*tv_query_3.actualcapacity) as toolsprdproporrntv_query_2与tv_query_3都是零时表rnlatest_cost在SQL里面是money类型,toolsprdpropor是decimal类型,actualcapacity是int类型rnrn所以我就不太明白怎么弄了
record out of range??
请为 record <em>out</em> of <em>range</em> 错误是怎么产生的???
out of range 怎么解决?
装的是fc4,用的是图形界面,可能是设置显示的时候出错,现在进入系统不到3秒种,显示器就显示<em>out</em> of <em>range</em>,我该怎样设置才能设置成合适的频率
Parameter index out of range (5 > number of parameters, which is 4)
我的insert语句是这样的:rn"INSERT INTO USER_MANAGE(NAME,LOGINNAME,PWD,IP) VALUES(?,?,?,?)",new Object[] map.get("name"), map.get("loginname"), map.get("pwd"), map.get("ip"),new Date() ) > 0rn结果报这样的错误:rnParameter index <em>out</em> of <em>range</em> (5 > <em>number</em> of parameters, which is 4)rn请问是怎么回事?
ip access-list number in/out
/*不知道怎么插图,不过估计大家都看得懂,就是两台主机,两台路由器,路由器用s0/0连着,两台主机分别与两台路由器的f0/0端口连着,over*/rnrn 图很简单,配置也很简单rnaccess-list 1 deny host 2.2.2.2 rnaccess-list 1 permit anyrn一 int f0/0rnip access-group 1 <em>out</em>rn结果 pc0 ping pc1 ,time <em>out</em>rnpc1 ping pc0 ,unreachablern二 int f0/0rnip access-group 1 inrn结果 pc0 ping pc1,通rn pc1 ping pc0,通rn三 int s0/0rnip access-group 1 <em>out</em>rn结果 pc0 ping pc1,通rnpc1 ping pc0,通rn四 int s0/0rnip access-group 1 inrn结果 pc0 ping pc1,time <em>out</em>rnpc1 ping pc0,time <em>out</em>rn rn<em>问题</em>来了,in 与 <em>out</em>的区别,究竟改怎么理解,我已经看了很多贴了,还是不理解,所以现在只想找有耐心的人,把上面四种情况都用自己的理解来解释一遍这些结果rn如果讲通了,那么你就是真正地理解了rnrnrn
One of arguments' values is out of range
做的是智能剪刀的算法,其中加进Live-Wire 2-D DP graph search搜索最优路径时,加入了以下函数SearchOptimalPath()和ifActivePixelsEmpty(),可是一运行就出现 one of arguments' values is <em>out</em> of <em>range</em> (index is <em>out</em> of <em>range</em>) in function cvPtr2D,c:\\的错误,求各位路过的大神帮帮我看一下这段代码错在哪了[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img]rn[img=https://img-bbs.csdn.net/upload/201404/18/1397810670_473139.jpg][/img]rn[code=c]//Live-Wire 2-D DP graph searchrnvoid CSegmentDlg::SearchOptimalPath()rnrnrn float tempTotalCost;rn int m,n,i,j;rn while (!ifActivePixelsEmpty())//While still points to expandrn rn //Remove minimum cost pixel q from active list.rn double minCost=0;rn // int m,n;rn for(i=0;i=0&&i=0&&j=0&&mx=0)rn rn if(ifPainting==false&&(SeedPoint.x==0||SeedPoint.y==0))rn rn ifPainting=true;rn SeedPoint=point;rn FreePoint=point;rn SeedPixel=cvGet2D(TheResult,mx,my);rn ActivePixels[mx][my]=1;rn SearchOptimalPath();rn rn rn[/code]
LINUX下液晶显示器显示“out of range”?
我的显示器是Benq FP557,装了RedHat linux7.3后,进入X-window登陆窗口后,马上就显示“<em>out</em> of <em>range</em>”,然后一直显示这个提示。不过桌面图标显示正常。在控制台(提示符)下不会出现这种情况。我的液晶显示器分辨率是1024*768,这是支持的。我装了个Mandrake Linux9.0,<em>问题</em>还是出现,请各位高手指点?
奇怪的 String index out of range
int chars = newsform.getContent().length(); //总字符数 intrn int PerPage = 1000; //每页要分的字符数rn int allpage; //总页数rnrn allpage = (chars + PerPage - 1) / (PerPage); //取得总页数rn rn String str[] = new String[allpage];rnrn String news = getStr(newsform.getContent());rn System.<em>out</em>.println(allpage+"页");rn System.<em>out</em>.println(chars+"个字符");rn for (int i = 0; i < allpage; i++) rn rn if (i==allpage-1) rn rn str[i] = news.substring((i * PerPage));rn System.<em>out</em>.println(str[i].length());rn rn else rn rn str[i] = news.substring((i * PerPage), ((i + 1) * PerPage));rn System.<em>out</em>.println("第"+i+"次"+str[i].length());rn rnrn rn rn打印出:rn6页rn5191个字符rn第0次1000rn第1次1000rn第2次1000rn第3次1000rnrn这是错误:String index <em>out</em> of <em>range</em>: 5000rnrn帮我看下怎么会错的?
String index out of range: -1
String index <em>out</em> of <em>range</em>: -1rnrn是怎么回事啊 rnrn谢谢
Ubuntu安装过程中出现Out of Range
Ubuntu安装过程中出现了<em>out</em> of <em>range</em>,如何解决。
list index out of range 求解
import os,re,linecacherndef fun(path):rn for root,dirs,files in os.walk(path):rn for fn in files:rn rootpath = os.path.join(root,fn)rn filetype=fn.split('.')[1]rn if filetype in['xml']:rn print(rootpath) rn new=(linecache.getline(rootpath,4)).rstrip()rn print (new)rn #print (type(new))rn newsp=new.split('.')rn #print (type(newsp))rn print(newsp[1])rn f= open(rootpath,'r+')rn d=f.read()rn open(rootpath, 'w').write(re.sub(r'a', 'b', d))rn f.close()rn else:rn continuernfun(r'C:\wmpub')rnrnrnrnC:\wmpub\a.xmlrnrnTraceback (most recent call last):rn File "C:\Documents and Settings\Administrator\桌面\test.py", line 21, in rn fun(r'C:\wmpub')rn File "C:\Documents and Settings\Administrator\桌面\test.py", line 14, in funrn print(newsp[1])rnIndexError: list index <em>out</em> of <em>range</em>rn>>>
求助:string subscript out of range
新手求助!rn//Main.cpprn#include rn#include rn#include rn#include rnint main()rnrn using namespace std;rn ofstream <em>out</em>File;rn <em>out</em>File.open("可修复装备.txt");rn ifstream inFile;rn inFile.open("Commodity.ini");rn if (!inFile.is_open())rn rn c<em>out</em> <<
Visual Studio2017 vector out of range
vector多的时候一个一个查实在是太麻烦了,有没有哪里能够直接看到是哪一行的vector出错了啊?
出现 vector subscript out of range
#includern#includernusing namespace std;rnint main()rn int n ,i;rn double x;rn c<em>out</em><>n>>x;rn vectorpoly(n);rn poly[0]=1;rn poly[1]=x;rn for(int i=2;i<<
string subscript out of range! 急!!!!
rn编译程序出现的Assert<em>问题</em>!rn弹出一个Visual C++ Debug Library错语!rnrn错误点:rnrnQueryInterface()查找接口时,请问这程情况一般是什么<em>问题</em>!?
String index out of range: 6
[img=https://img-bbs.csdn.net/upload/201305/18/1368875784_483066.png][/img]rn[img=https://img-bbs.csdn.net/upload/201305/18/1368875946_841555.png][/img]rn[img=https://img-bbs.csdn.net/upload/201305/18/1368875959_219033.png][/img]rnrnrn老是说 字符串索引超出范围 到底哪里错了????
菜鸟求助,std::out of range
class Borrowerrnrnpublic:string borrowerid, borrowerfirstname, currentnum, borrowerlastname;rnrn string book[5] = "0" ;rn Borrower()rn rn borrowerid = "abcde", borrowerfirstname = "baaaaaaas", borrowerlastname = "namenamename", currentnum = "0";rn for (int i = 0; i < 5; i++)rn rn book[i] = "a";rn rn ;rnrn ~Borrower() ;rnrnrnrnrn;rnistream &operator>>(istream &is, Borrower &a)rnrn string z;rn int m = 0, back = 5, counter=5;rn is >> z;rn for (int i = 0; i < 5; i++)rn rn if (48 << "error"; exit(0);rn rn for (int i = 0; i < 5; i++)rn rn a.borrowerid[i] = z[i];rn rnrn for (counter = 5; counter < z.length(); counter++)rn rn if (z[counter] == ' ')rn break;rn rn a.borrowerfirstname = z.substr(back + 1, counter- back - 1);rn back = counter;rnrn for (counter = back+1; counter < z.length(); counter++)rn rn rn if (z[counter] == ';')break;rn rn a.borrowerlastname = z.substr(back + 1, counter - back - 1);rn back = counter;rnrnrnrnrnrn return is;rnrnint main()rnrn Borrower A;rn cin >> A;rn c<em>out</em> << A;rn rn system("pause");rnrn
out of range 怎么解决啊????????
我在安装RADHAT9和红旗5时都出现OUT OF RANGE显示器也黑屏!!!!rn在网上查到是显卡还是显示器的<em>问题</em>!!rn请问怎么解决啊!!??????????rn
vector subscript out of range错误提示
[code=C/C++]rnvoid CUtilityApp::InsertFlagToExcelData(CString DataFlag,map>> &mapExcelData)rnrn for (map>>::iterator itr_map=mapExcelData.begin();itr_map!=mapExcelData.end();itr_map++)rn rn for (vector>::iterator itr_vec=itr_map->second.begin();itr_vec!=itr_map->second.end();itr_vec++)rn rn if (itr_vec == itr_map->second.begin())rn rn itr_vec->insert(itr_vec->begin(),_T("数据标志"));rn elsern rn itr_vec->insert(itr_vec->begin(),DataFlag);rn rn rn rn[/code]
命名空间越界vector out of range
[code=c]CString Bus::InsertPassengerInfo(Station &signal2, int n) //上车的过程rnrnrn if (AbleToHold
关于Grid Index Out Of Range 的问题
我在窗体中添加了一个PageContol组件,通过切换PageContol的页面来实现不同数据表的全部记录显示,代码如下rnprocedure TForm2.PageControl1Change(Sender: TObject);rnbeginrn if pagecontrol1.TabIndex=0 thenrn beginrn datamodule1.ADOQuery2.Close;rn with datamodule1.ADOQuery1 dorn beginrn close;rn sql.Clear;rn sql.Add('select * from 年度培训计划表 order by 年度, 编号 ASC');rn open;rn last;rn end;rn DBGrid1.DataSource:=datamodule1.DataSource1;rn DBNavigator1.DataSource:=datamodule1.DataSource1;rn end;rn if pagecontrol1.TabIndex=1 thenrn beginrn datamodule1.ADOQuery1.Close;rn with datamodule1.ADOQuery2 dorn beginrn close;rn sql.Clear;rn sql.Add('select * from 计划外培训项目表 order by 编号 ASC');rn open;rn last;rn end;rn DBGrid1.DataSource:=datamodule1.DataSource2;rn DBNavigator1.DataSource:=datamodule1.DataSource2;rn end;rnend;rn窗体显示时Pagecontrol的Tabindex为0,代码如下:rnprocedure TForm2.FormShow(Sender: TObject);rnbeginrn dbgrid1.DataSource:=datamodule1.DataSource1;rn dbnavigator1.DataSource:=datamodule1.DataSource1;rn with datamodule1.ADOQuery1 dorn beginrn close;rn sql.Clear;rn sql.Add('select * from 年度培训计划表 order by 年度, 编号 ASC');rn open;rn last;rn end;rnend;rnrn然后我又增加了一个按钮,点击时显示表的全部记录,代码如下:rnprocedure TForm2.QueryAllClick(Sender: TObject);rnbeginrn if pagecontrol1.TabIndex=0 thenrn beginrn datamodule1.ADOQuery2.Close;rn with datamodule1.ADOQuery1 dorn beginrn close;rn sql.Clear;rn sql.Add('select * from 年度培训计划表 order by 年度, 编号 ASC');rn open;rn last;rn end;rn DBGrid1.DataSource:=datamodule1.DataSource1;rn DBNavigator1.DataSource:=datamodule1.DataSource1;rn end;rn if pagecontrol1.TabIndex=1 thenrn beginrn datamodule1.ADOQuery1.Close;rn with datamodule1.ADOQuery2 dorn beginrn close;rn sql.Clear;rn sql.Add('select * from 计划外培训项目表 order by 编号 ASC');rn open;rn last;rn end;rn DBGrid1.DataSource:=datamodule1.DataSource2;rn DBNavigator1.DataSource:=datamodule1.DataSource2;rn end;rnend;rnrn现在的<em>问题</em>在于,当窗体显示时,我点击该按钮,就会出错,弹出出现异常:Grid index <em>out</em> of <em>range</em> 。rn利用F7跟踪调试,发现错误在last这条语句上。rnrn我搞了半天也没弄明白为什么会出错,敬请大家赐教!!!!!!
关于“Grid index out of range”的问题
我的程序rn 1)所用控件rn TDBGrid *DBGrid1;rn TDBNavigator *DBNavigator1;rn TDataSource *DSSQL;rn TQuery* Query1;rn 2)控年设置rn DSSQL->DataSet = Query1;rn DBNavigator1->DataSource = DSSQL;rn DBGrid1->DataSource = DSSQL;rnrn 3)出错的情况rn 3-1) 第一次执行rnrn Query1->Close();rn Query1->SQL->Clear();rn Query1->SQL->Add("select * from aa where qsOpen():rnrn 然后点击DBNavigator1控件的“Last”按钮,程序正常rn 3-2)第二次执行rnrn Query1->Close();rn Query1->SQL->Clear();rn Query1->SQL->Add("select * from aa where qsOpen():rnrn 然后点击DBNavigator1控件的“Last”按钮,程序报“Grid index <em>out</em> of <em>range</em>”错. 点警告框的“确定”按钮后,进入C++Builder的调试状态,不作任何变动,直接rn“RUN”按钮,回到程序运行状态,再按DBNavigator1控件的“Last”按钮,程序又正常。rn 以后每再次重新用SQL查询后,想到数据集的最后一条记录(用语句Query1->Last();也一样),非要出次错,才会正常,不知是何道理,不知有何对策,我估计是DBGrid1的设置有误,但不知具体原因。rn 请赐教,rn为感!!rnrnrn
Parameter index out of range 谢谢!
谢谢大家!帮我看看这个错误怎么回事,谢谢!!rnrnjava.sql.SQLException: Parameter index <em>out</em> of <em>range</em> (1 > <em>number</em> of parameters, which is 0).rn at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:2493)rn at com.mysql.jdbc.PreparedStatement.setString(PreparedStatement.java:3213)rn at database.LinkDB.addBook(LinkDB.java:35)rn at action.addBookAction.execute(addBookAction.java:37)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)rn at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)rn at java.lang.Thread.run(Thread.java:595)rn
提示string subscript out of range
[code=c]int main()rnrn int i, j;rn string _strIn;rn vector>stu; //動的な二次元vector配列stuを宣言するrn vector_stu; //動的なvector配列_stuを宣言するrn string token;rn int bugs = 0;rnrn //ifstream fin("E:\\newfile.csv"); //CSV OPENrn ifstream fin("E:\\01.csv");rnrn while (getline(fin,_strIn)) //一行ずつ読み込むrn rn stringstream sstr(_strIn);rnrn while (getline(sstr,token,',')) //”、”マックを分けるマックとして、一行の文字列を分けるrn rn _stu.push_back(token); //vector配列に文字列を一個ずつ入れるrn rnrn stu.push_back(_stu); //vector配列を二次元vector配列に入れるrn _stu.clear(); //_stu リセットrn /*c<em>out</em> << _strIn << endl;*/rn rnrn for (i=0;i
system.index out of range exception??谢谢
public class D2rn rn public int [,] mm;rnrn public static void Main()rn rn rn while(true)rn rn D2 myD2=new D2();rn int n;rn Console.WriteLine("please input martix:");rn n=Convert.ToInt32(Console.ReadLine());rn if(n==0)rn rn Console.WriteLine("enter");rn break;rn rn if(n%2 ==0)rn rn Console.WriteLine("请输入奇数:");rn continue;rn rn myD2.mm=new int[n,n];rn myD2.AssignValue(n);rn myD2.shuchu(n);rn Console.WriteLine("\n");rnrn rn Console.ReadLine();rnrnrn rnrn public void AssignValue(int n)rn rn int i,j=0;rn int assign=1;//用于填入矩阵中的值rn int p=n-1;//数字放入的位置rn int row=0;rn int col=p/2;//中间点的坐标位置rn for( i=0;i
关于out of range问题(帮我看一下代码)
以下代码运行时显示超出界限,不知道为什么?请问该如何修改?rn#includern#includern#includernusing namespace std;rnrnvoid copy(string & n);rnrnint main()rnrn c<em>out</em><<
为什么会出现out of range?
我的机子时不时的出现整个屏幕黑屏并出现<em>out</em> of <em>range</em> 的红色文字?rn请教大家如何解决?
c++ 报错 vector out of the range
读一个2016行的文件到vector里面,一直提示vector <em>out</em> of <em>range</em>。rnrn我试着把vector大小改的很大还是有这个<em>问题</em>,所以不是一开始分配的大小不够,还有我测试过读文件的方法也是没有<em>问题</em>的。请问是哪里不对呢?rn```rnvector>contact(68, vector(68, 0));rnfor (int k = 1;k > row >> column;rn infile.get();rn infile.get();rn infile.get();rn infile.get();rn infile >> contact[row - 1][column - 1];rn contact[column-1][row-1]= contact[row-1][column-1];rn infile.get();rnrn```
jump out of range////出错啦!!!!!!!!!!!!!
我的代码段中调用了几个宏,于是jmp指令出错了:rnjump <em>out</em> of <em>range</em> by 16 byte(s)....rn于是我用: jmp near ptr exitrn强制产生near调转。但是还是没有用啊?
String index out of range: 48
String index <em>out</em> of <em>range</em>: 48
String index out of range: -2问题
今天突然遇到这个<em>问题</em>。String index <em>out</em> of <em>range</em>: -2不知道为什么?请高手指点迷津。rn[code=Java]java.lang.StringIndexOutOfBoundsException: String index <em>out</em> of <em>range</em>: -2rn at java.lang.String.substring(String.java:1444)rn at jsp_servlet._fams.__tb_assetscard_car_doadd._jspService(__tb_assetscard_car_doadd.java:203)rn at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)rn at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7047)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)rn at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)rn at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)rn at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)rn at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)[/code]
vector subscript out of range问题。代码如下
//运行的时候出错,提示vector subscript <em>out</em> of <em>range</em>,但是不知道<em>问题</em>出在哪里,希望高手指点。rn/* rn* 成功rn* main.cpp rn* rn* Created on: 2009-7-12 rn* Author: NeeSky rn*/ rn#define MAXSIZE 100 rn#include rn#include rn#include rn#include rn#include rn#include rnusing namespace std; rnofstream Out;rnstring strGiven = ""; /*The Global String*/ rnint IndexArray[MAXSIZE]; /*The Array Index Array*/ rn/*** rn* Just initilize the IndexArray rn*/ rnvoid init_strGivenAndIndexArray(string strgiven )rn rn strGiven = strgiven; rn for (unsigned int i = 0; i < strgiven.length(); ++i) rn IndexArray[i] = i; rn return; rn rn/*** rn* Just for qsort args rn*/ rninline int compare_OfIndexArray(const void *Index1, const void *Index2 ) rn rn int* index1 = (int *) Index1; rn int* index2 = (int *) Index2; rn if ((string)&strGiven[*index1]> (string)&strGiven[*index2]) return 1; //string compare rn if ((string)&strGiven[*index1] == (string)&strGiven[*index2]) return 0; rn else return -1; rn rn/*rn* make the string to be order rn* @param strGiven rn*/ rninline void enOrder_OfIndexArray() rn rn std::qsort(IndexArray, strGiven.length(), sizeof(int), compare_OfIndexArray); rn return; rn rnint getCommonLength(string &comString, string a, string b ) rn rn int i = 0; rn int k = a.length() < b.length() ? a.length() : b.length(); rn while (a[i] == b[i] && i < k) rn ++i; rn comString = a.substr(0, i); rn return i; rn rn/* rn* [Core Algorithm] Get the max repeat substring rn* @param strgiven rn*/ rnvoid getMaxRepeatSubString(string strgiven ) rn rn vector> vecComStr; /*The same len substring, not only one*/ rn init_strGivenAndIndexArray(strgiven); /*Initilize the global variables*/ rn enOrder_OfIndexArray(); /*enorder of array of postfix array of string*/ rn for(unsigned int i = 0; i < strgiven.length() - 1; ++i) /* Compare the neighbor*/ rn rn string strTemp = "";rn int count=0;rn int templen = getCommonLength(strTemp, (string) &strGiven[IndexArray[i]], (string) &strGiven[IndexArray[i + 1]]); rn if (templen>1&&count==0)rn rn vecComStr[0].first=strTemp;rn vecComStr[0].second=1;rn rn rn else if (templen>1)rn rn rn if (!(vecComStr[count].first.compare(strTemp)))//两个字符串不相同rn rn pair str1(strTemp,1);//构造pair型的节点rn vecComStr.push_back(str1); //加入节点rn ++count;rn rn elsern rn int temp=vecComStr[count].second;rn vecComStr.pop_back();rnrn pair str1(strTemp,++temp);rn vecComStr.push_back(str1);rn ++count;rn rn rn rn rn rn rn Out << "The max length Repeat SubString ofstrgiven /" << ") : "; rn for (int a=0;a
Python2.7:数据清洗的list index out of range问题
```rnfrom csv import readerrnrndata_rdr = reader(open('mn.csv','rb'))rnheader_rdr = reader(open('mn_headers.csv','rb'))rnrndata_rows = [d for d in data_rdr]rnheader_rows = [h for h in header_rdr]rnrnbad_rows = []rnrnfor h in header_rows:rn if h[0] not in data_rows[0]:rn bad_rows.append(h)rnrnfor h in bad_rows:rn header_rows.remove(h)rnrnprint len(header_rows)rnrn Traceback (most recent call last):rn File "/home/sewell-hoo/datafiles/test_listindex.py", line 12, in rn if h[0] not in data_rows[0]:rnIndexError: list index <em>out</em> of <em>range</em>rn```rn正在读《python数据处理》一书,这是第7章第2小节的内容:rn处理2个CSV文件,却一直提示List index <em>out</em> of <em>range</em>,实在是想不到哪里错了。rn请忽略图中配图的文件'mn_header_update.csv',两者是一个文件rnrn![图片说明](https://img-ask.csdn.net/upload/201711/06/1509974191_107534.png)
出行vector subscript out of range问题?
请问我这段代码里的vector使用是哪里出了<em>问题</em>?vector刚学...[code=c]rn for (int j = 0; j < depth.size(); j++) //中值rn rn vectorsp;rn double m_sp=0;rn int num;rn for (int i = 0; i < t.size(); i++)rn rn if (depth[j] - 0.25< t[i] && t[i] < depth[j] + 0.25)rn rn sp.push_back(ve[i]);rn rn rn sort(sp.begin(),sp.end());rn num=sp.size();rn if(num%2==0)rn m_sp=(sp[(num+1)/2]+sp[(num-1)/2])/2;rn elsern m_sp=sp[num/2];rn speed.push_back(m_sp);rn [/code]
Parameter number 8 is not an OUT parameter
java中异常如上:rn存储过程如下:rnCREATE DEFINER=`root`@`localhost` PROCEDURE `inCharge`(rnin depId int, /*入库明细*/rnin comId int, /*门诊编号*/rnin doctorId int, /*医生编号*/rnin nurseId int, /*护士编号*/rnin patient varchar(20), /*病人姓名*/ rnin patAge int, /*病人年龄*/rnin chaTime varchar(20) , /*时间*/ rn<em>out</em> chid int, /*收费Id*/ rnin chaType int, /*费用类型*/rnin patSex varchar(20) /*性别*/ rn rn)rnbeginrnrn程序中调用如下:rnrnString sql = "call inCharge(?,?,?,?,?,?,?,?,?,?)";rn int result=0;rn try rn ps = con.prepareCall(sql);rn ps.setInt(1, charge.getDepId());rn ps.setInt(2, charge.getComId());rn ps.setInt(3, charge.getDoctorId());rn ps.setInt(4, charge.getNurseId());rn ps.setString(5, charge.getPatient());rn ps.setInt(6, charge.getPatAge());rn ps.setString(7, charge.getChaTime());rn ps.setInt(9, charge.getChaType());rn ps.setString(10, charge.getPatSex()); rn ps.registerOutParameter(8, java.sql.Types.INTEGER);rn ps.execute();rn result= ps.getInt(8);rnrn异常如下:rnjava.sql.SQLException: Parameter <em>number</em> 8 is not an OUT parameterrn很是奇怪。rn
UIQ打包成sisi文件出现 “error: number out of range”是什么问题
哪位大哥可以告诉我rnUIQ打包成sisi文件出现 “error: <em>number</em> <em>out</em> of <em>range</em>”是什么<em>问题</em>?rnrn急``rn各位大哥大姐请告诉我```
java.lang.StringIndexOutOfBoundsException: String index out of range: -1错误
[img=https://img-bbs.csdn.net/upload/201704/14/1492166177_246376.png][/img][img=https://img-bbs.csdn.net/upload/201704/14/1492166190_367039.png][/img]rnrn //向服务器获取根目录rn public static String getRootList() throws Exceptionrn String json = "\"type\":\"getRootList\"";rn <em>out</em>put.write(json.getBytes());rn <em>out</em>put.flush();rn byte[] b = new byte[1024];rn int len = input.read(b);rn json = new String(b,0,len);//字符串进行转化rnrn Config.ROOT_LIST_JSON_STR = json;rn return json; rn rn[img=https://img-bbs.csdn.net/upload/201704/14/1492166266_975276.png][/img]rntry rn String json_str = Config.service.getRootList();rn System.<em>out</em>.println(json_str);rn JSONObject json = JSONObject.fromObject(json_str);//对json的解析rn rn JSONArray jsonArray_mulu = json.getJSONArray("mulu");rn JSONArray jsonArray_files = json.getJSONArray("files");rn rn this.removeAll();rn rn int count = jsonArray_mulu.size()+jsonArray_files.size();rn rn for (int i = 0; i < jsonArray_mulu.size(); i++) rn JSONObject mulu = jsonArray_mulu.getJSONObject(i);rn rn this.add(new FileJPanel(mulu.getString("rdid"), mulu.getString("did"), "DIR", mulu.getString("dname")));rn rn rn for (int i = 0; i < jsonArray_files.size(); i++) rn JSONObject file = jsonArray_files.getJSONObject(i);rn this.add(new FileJPanel(file.getString("did"), file.getString("fid"), "FILE", file.getString("fname")));rn rn rn rn this.setPreferredSize(new Dimension(508,(count/5+(count%5==0?0:1))*135));rn catch (Exception e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn javax.swing.JOptionPane.showMessageDialog(this.getParent(), "网络异常,请稍后再试");rn rn相关的代码贴出来了,但不是很理解这个数组怎么就越界了。也不知道怎么去修改
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
HTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Exception in JSP: /index.jsp:75rnrn72: bordercolor="#3F96E3">rn73: rn74: rn75: rn77: rn78: rnrnrnStacktrace:rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn com.erp.fiter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:34)rnrnrnroot cause rnrnorg.apache.jasper.JasperException: Exception in JSP: /product/newproductinfo.jsp:74rnrn71: color="Navy">rn72: rn76: rnrnrnStacktrace:rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)rn org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:133)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn com.erp.fiter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:34)rnrnrnroot cause rnrnjava.lang.StringIndexOutOfBoundsException: String index <em>out</em> of <em>range</em>: -1rn java.lang.String.substring(String.java:1768)rn org.apache.jsp.product.newproductinfo_jsp._jspService(org.apache.jsp.product.newproductinfo_jsp:147)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)rn org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:133)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn com.erp.fiter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:34)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.5.15
错误提示:String index out of range: 500?
请教大家: rn我在数据录入时把好几个字段用"*"分开,存储在一个字段中。在从数据库中取出数据时,语句如下. rnResultSet rs=st.executeQuery("select * from tblMain"); rnrs.next(); rnString resip=rs.getString("resipID"); rnzym=rs.getString("title"); rnfujiazym=rs.getString("titleAlternative"); rnint m=fujiazym.length(); rnint i=0; rnint j=0; rnint k=0; rnString fjzym[]; rnfjzym=new String[20]; rnrnwhile(!(fujiazym.equals("*"))) rnj=fujiazym.indexOf('*'); rnk++; rnfjzym[k]=fujiazym.substring(i,j); rnfujiazym=fujiazym.substring(j+1,m); rn rn执行后出现错误提示, rnjava.lang.StringIndexOutOfBoundsException: String index <em>out</em> of <em>range</em>: 500 rn我的数据库中的titleAlternative字段大小是500.请教是何原因rnrn
out of range"提示......">又一个"Grid index out of range"提示......
为何我的Adoquery增加记录有时会出现"Grid index <em>out</em> of <em>range</em>"?何解?
mysql 存储过程报错 out of range 超出限制
mysql 存储过程报错 <em>out</em> of <em>range</em> 超出限制 1.检查sql语句 2.检查表中的该字段的字段类型是否一样。必须一样
求助:IndexError: list index out of range
使用Spyder(python 3.6)代码为:rn#!/usr/bin/env python3rnimport sysrnrnfrom xlrd import open_workbookrnfrom xlwt import Workbookrnrninput_file = sys.argv[1]rn<em>out</em>put_file = sys.argv[2]rnrn<em>out</em>put_workbook = Workbook()rn<em>out</em>put_worksheet = <em>out</em>put_workbook.add_sheet('jan_2013_<em>out</em>put')rnrnwith open_workbook(input_file) as workbook:rn worksheet = workbook.sheet_by_name('january_2013')rn for row_index in <em>range</em>(worksheet.nrows):rn for column_index in <em>range</em>(worksheet.ncols):rn <em>out</em>put_worksheet.write(row_index, column_index, worksheet.cell_value(row_index, column_index))rn<em>out</em>put_workbook.save(<em>out</em>put_file)rnrn执行:python 2excel_parsing_and_write.py sale_2013 L<em>out</em>put.xlsrnrn出现<em>问题</em>,输出;rnPython 3.6.2 |Anaconda custom (64-bit)| (default, Sep 19 2017, 08:03:39) [MSC v.1900 64 bit (AMD64)]rnType "copyright", "credits" or "license" for more information.rnrnIPython 6.1.0 -- An enhanced Interactive Python.rnrnrnrnrunfile('C:/LearnPython/excel/2excel_parsing_and_write.py', args='sales_2013.xlsx', wdir='C:/LearnPython/excel')rnTraceback (most recent call last):rnrn File "", line 1, in rn runfile('C:/LearnPython/excel/2excel_parsing_and_write.py', args='sales_2013.xlsx', wdir='C:/LearnPython/excel')rnrn File "H:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 710, in runfilern execfile(filename, namespace)rnrn File "H:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 101, in execfilern exec(compile(f.read(), filename, 'exec'), namespace)rnrn File "C:/LearnPython/excel/2excel_parsing_and_write.py", line 8, in rn <em>out</em>put_file = sys.argv[2]rnrnIndexError: list index <em>out</em> of <em>range</em>
Unable to execute dex: Target out of range: +0000f
[img=https://img-bbs.csdn.net/upload/201404/08/1396934496_944501.png][/img]rn刚接触android,环境搭建好了创建hello world项目时,一直run报错,网上的方法都试过了,还是不行,也知道是jar包的<em>问题</em>,但是不知道该怎么处理了,求大神指教!!!!
Specified argument was out of the range of valid values.
一个页面有两个gridviewid分别为1和2,当SL里面这个人登陆时1里面第九个字段不显示2正常显示,当SA登陆时1里面第八个字段不显示2正常显示。现在报“Specified argument was <em>out</em> of the <em>range</em> of valid values”这个错,根据log记录是1里面绑定时出的错1有onrowcreate这个方法,rn里面当SL登陆row.cells[8].visible=false;类似这句话出了错,但运行时1是正常显示,2这个gridview报了这个错.求解决???我是初学者,望给位帮忙解决一下,谢谢
奇怪的现象:value of field 'COUNT(*)' if out of range
如果执行以下代码:rn sSql:='select count(*) from '+rn ' T_SD_SB_GTXL where XL_ID='''+sXLID+''' ';rn DataSet:= GetDataSet(sSql);rn if DataSet.FieldCountselect count(*) from table ; 的语句吗?rn为什么返回的结果集,有<em>问题</em>?rn请指教rn
Attention out the range H:75.0KHZ V:60.0HZ
1.公司有一台聯想電腦,同喜300,98年購買的!呵呵...rnrn2.現開機登入win98後出現以下提示:rn Attention <em>out</em> the <em>range</em> H:75.0KHZ V:60.0HZrn 之後便停止在該畫面!rnrn3.偶初步判斷,是顯卡有問題,進入安全模式,重裝安裝顯卡驅動時,出現以下提示:rn 嚴重:rn 出現軟件錯誤,請向技術支持部報告這個問題:rn A supported Graphics card was not found in the systemrnrn4.現手上沒有win 98安裝盤,且沒有ghost備份過.rnrn5.请教各位高手及版主指教,呵呵...rnrn
string index out of range字符串怎么越界了?
打印出来s.encode('hex')是 0300 但是打印s[1]却报下面错误?rnstring index <em>out</em> of <em>range</em>
java.lang.IllegalArgumentException: timeout arguments out of range异常
代码如下rn long t=list.get(0).getFromTime()-0;rn rn for(int i=0;i
使用vector出现的错误 subscript out of range
#includern#includern#includernrnusing namespace std;rnrnvoid main()rnrn vector a;rnrn a[0]="aaaaaa";rn a[1]="xxxxxx";rnrn c<em>out</em><
The result of a datetime computation is out of range
rt,这是什么意思rn我想做StatisticsDate - interval(1) year to year,其中StatisticsDate为date型,数据中只有1992到2006年的数据,查询时报The result of a datetime computation is <em>out</em> of <em>range</em>即1267错误,如何解决?
报错 string subscript out of range,怎么办?
#include rn#include rnusing namespace std;rnint main()rnrn rn string P = 'c','b';rn for (int i = 0;i
root cause java.lang.StringIndexOutOfBoundsException: String index out of range
HTTP Status 500 -rnrntype Exception reportrnrnmessagernrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexceptionrnrnorg.apache.jasper.JasperException: java.lang.StringIndexOutOfBoundsException: String index <em>out</em> of <em>range</em>: -1rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:430)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnroot causernrnjava.lang.StringIndexOutOfBoundsException: String index <em>out</em> of <em>range</em>: -1rn java.lang.String.substring(String.java:1932)rn org.apache.jsp.admin.product_005fadd_005fok_jsp._jspService(product_005fadd_005fok_jsp.java:78)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.33 logs.
dbGrid index out of range怎么解决
我利用adoquery控减连接数据库。用dbgrid空件显示内容,但是如果数据库中的纪录超过了一定的数量的时候,救护出现错误:代码如下:rngrid index <em>out</em> of <em>range</em>rnrn我知道是dbgrid控减的<em>问题</em>,从那里可以设置dbgrid空间的范围属性。
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
09:57:40,051 ERROR Dispatcher:38 - Exception occurred during processing request: String index <em>out</em> of <em>range</em>: 0rnjava.lang.StringIndexOutOfBoundsException: String index <em>out</em> of <em>range</em>: 0rn at java.lang.String.charAt(String.java:658)rn at org.hibernate.type.CharacterType.get(CharacterType.java:52)rn at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:186)rn at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:175)rn at org.hibernate.type.AbstractType.hydrate(AbstractType.java:105)rn at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2267)rn at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1443)rn at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1371)rn at org.hibernate.loader.Loader.getRow(Loader.java:1271)rn at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:619)rn at org.hibernate.loader.Loader.doQuery(Loader.java:745)rn at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:270)rn at org.hibernate.loader.Loader.loadEntity(Loader.java:1953)rn at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:86)rn at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:76)rn at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3270)rn at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:496)rn at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:477)rn at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:227)rn at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:285)rn at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:152)rn at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1080)rn at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1028)rn at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:623)rn at org.hibernate.type.EntityType.resolve(EntityType.java:431)rn at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:140)rn at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:898)rn at org.hibernate.loader.Loader.doQuery(Loader.java:773)rn at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:270)rn at org.hibernate.loader.Loader.doList(Loader.java:2449)rn at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2192)rn at org.hibernate.loader.Loader.list(Loader.java:2187)rn at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:452)rn at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363)rn at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)rn at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1258)rn at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)rn at com.bjpowernode.drp.base.daoImp.ClientDaoImp.getfindById(ClientDaoImp.java:89)rn at com.bjpowernode.drp.base.serviceImp.ClientServiceImp.getfindById(ClientServiceImp.java:22)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)rn at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)rn at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)rn at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)rn at com.sun.proxy.$Proxy18.getfindById(Unknown Source)rn at com.bjpowernode.drp.base.action.ClientAction.getfindById(ClientAction.java:31)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:161)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnrnrnrn[color=#FF0000]rn以上这些是异常信息,我确定我是执行这条语句出错:rnhibernateTemplate.get(Client.class, id);rn我也确定id有值 比如10001是数值型int,rn百思不得其解,赐教!rn[/color]
数据库错误Numeric value out of range
修改数据source之后重新检索,出现错误提示:rnSelect error:SQLSTATE=22003rn[Sybase][ODBC Driver][Adaptive Server Anywhere]Numeric value <em>out</em> of <em>range</em>:value **** <em>out</em> of <em>range</em> for destinationrn请问是什么原因?
求助:String index out of range: 0 !!!
[img=https://img-bbs.csdn.net/upload/201606/27/1467029138_584565.png][/img]rn当程序在执行这条语句时,报String index <em>out</em> of <em>range</em>: 0!!异常 但是自己也没有使用过数组之类的容器,求各位大大帮助,已经纠结两天了!
Subscript out of range运行asp页面报错!!
LyfUpload 错误 '80020009' rnrnSubscript <em>out</em> of <em>range</em> rnrn/金和田/manager/doupload.asp,行 15 rnrnrnasp代码如下:rnrnrnrnrn rn 文件上传rnrnrnrnrnrnrn rn rn rnrnrnrn请各位帮忙解决!!
求解 : VIDIOC_S_CTRL: Numerical result out of range
struct v4l2_queryctrl queryctrl;rn struct v4l2_control control;rnrn memset (&queryctrl, 0, sizeof (queryctrl));rn queryctrl.id = V4L2_CID_BRIGHTNESS;rnrn if (-1 == ioctl (fd, VIDIOC_QUERYCTRL, &queryctrl)) rn if (errno != EINVAL) rn perror ("VIDIOC_QUERYCTRL");rn exit (EXIT_FAILURE);rn else rn printf ("V4L2_CID_BRIGHTNESS is not supported\n");rn rn else if (queryctrl.flags & V4L2_CTRL_FLAG_DISABLED) rn printf ("V4L2_CID_BRIGHTNESS is not supported\n");rn else rn memset (&control, 0, sizeof (control));rn control.id = V4L2_CID_BRIGHTNESS;rn control.value = (__s32) b;rnrn if (-1 == ioctl (fd, VIDIOC_S_CTRL, &control)) rn perror ("VIDIOC_S_CTRL");rn exit (EXIT_FAILURE);rn rn rnrn用GDB调试时发现 ioctl (fd, VIDIOC_S_CTRL, &control) 等于-1
specified argument was out of the range of vaild values
在做windows mobile智能手机端项目时,出现了此<em>问题</em>,希望高手给予解答。rn用google 翻译了一下为:rn指定的参数已超出有效值的范围。
麻烦大家帮我看看std::out of range
我是菜菜鸟。调试出错的是这句:rnindex2=min((tempt[j]-tempt[i]-c1[ptmp2.at(i)]-a[ptmp2.at(i)]),(b[ptmp2.at(j)]-tempt[j]+tempt[i]+c1[ptmp2.at(i)]));rnrn有如下的错误提示:static void _Xlen()rn // report a length_errorrn _THROW(length_error, "vector too long");rn rnrn static void _Xran()rn // report an <em>out</em>_of_<em>range</em> errorrn _THROW(<em>out</em>_of_<em>range</em>, "invalid vector subscript");rn rnrn我检查了下数组tempt, vector 的 ptmp2,以及数组a,b,c1,下标都没<em>问题</em>的。实在不知道怎么改?rn大家帮帮忙啊
java.lang.StringIndexOutOfBoundsException: String index out of range: 9 at java
java.lang.StringIndexOutOfBoundsException: String index <em>out</em> of <em>range</em>: 9 rnat java.lang.String.substring(String.java:1765) rnat com.sq.entity.builder.Utilities.getStrLen(Utilities.java:1462) rnat org.apache.jsp.entity.member.resenterpriselist_jsp._jspService(resenterpriselist_jsp.java:373) rnat org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) rnat javax.servlet.http.HttpServlet.service(HttpServlet.java:717) rnat org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) rnat org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) rnat org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) rnat javax.servlet.http.HttpServlet.service(HttpServlet.java:717) rnat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) rnat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) rnat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) rnat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) rnat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) rnat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) rnat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) rnat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) rnat org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) rnat org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) rnat org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) rnat java.lang.Thread.run(Thread.java:595) rnrnrn这是一个发布的别人的网站,可是里面有很多地方都报的这同一个错,怀疑不是单纯的下标越界<em>问题</em>,不晓得原因究竟出在哪里?希望有遇到类似情况 的高手解答一下迷津,谢了!!!
cisco PDM 211下载
cisco pix device manager. PIX防火墙图形管理软件. 相关下载链接:[url=//download.csdn.net/download/xpjxw1999/3670399?utm_source=bbsseo]//download.csdn.net/download/xpjxw1999/3670399?utm_source=bbsseo[/url]
VCD影碟机基础知识下载
激光影碟机的发展史;模拟信号数字化的过程 相关下载链接:[url=//download.csdn.net/download/hhxyyjf/4109902?utm_source=bbsseo]//download.csdn.net/download/hhxyyjf/4109902?utm_source=bbsseo[/url]
个人账务管理软件下载
规划自己的每日日常花费,养成勤俭节约的好习惯。 相关下载链接:[url=//download.csdn.net/download/simple_bottle/5002650?utm_source=bbsseo]//download.csdn.net/download/simple_bottle/5002650?utm_source=bbsseo[/url]
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件
我们是很有底线的