Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Spring JIRA by Adriano Machado, 1 year ago
via Spring JIRA by Adriano Machado, 2 years ago
via jtds by cwzachary
, 2 years ago
via GitHub by wangyingdong
, 2 years ago
Invalid parameter index 2.
via jtds by xtanto
, 2 years ago
via jtds by dcurran
, 2 years ago
Invalid parameter index 1. The error is getting throw in JtdsPreparedStatement.getParameter Here is a short stack trace:
java.sql.SQLException: Invalid parameter index 13.	at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.getParameter(JtdsPreparedStatement.java:342)	at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.setParameter(JtdsPreparedStatement.java:411)	at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.setInt(JtdsPreparedStatement.java:580)	at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.setInt(DelegatingPreparedStatement.java:120)	at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.setInt(DelegatingPreparedStatement.java:120)	at net.sf.log4jdbc.PreparedStatementSpy.setInt(PreparedStatementSpy.java:435)	at org.hibernate.loader.Loader.bindLimitParameters(Loader.java:1810)	at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1719)	at org.hibernate.loader.Loader.doQuery(Loader.java:801)	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)	at org.hibernate.loader.Loader.doList(Loader.java:2533)	at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)	at org.hibernate.loader.Loader.list(Loader.java:2271)	at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:452)	at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363)	at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)	at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268)	at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)	at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:246)	at org.springframework.data.jpa.repository.query.JpaQueryExecution$PagedExecution.doExecute(JpaQueryExecution.java:114)	at org.springframework.data.jpa.repository.query.JpaQueryExecution.execute(JpaQueryExecution.java:55)	at org.springframework.data.jpa.repository.query.AbstractJpaQuery.doExecute(AbstractJpaQuery.java:100)	at org.springframework.data.jpa.repository.query.AbstractJpaQuery.execute(AbstractJpaQuery.java:89)	at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:343)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)	at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:155)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)	at $Proxy155.findPessoasByFiltro(Unknown Source)	at br.com.fromtis.fidc.service.impl.AdministracaoService.findPessoasCadastradas(AdministracaoService.java:1216)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)	at $Proxy153.findPessoasCadastradas(Unknown Source)	at br.com.fromtis.fidc.ui.web.jsf.controller.ConsultaPessoaController.loadPessoas(ConsultaPessoaController.java:184)	at br.com.fromtis.fidc.ui.web.jsf.controller.ConsultaPessoaController.pesquisar(ConsultaPessoaController.java:111)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.apache.el.parser.AstValue.invoke(AstValue.java:191)	at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)	at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)	at javax.faces.component._MethodExpressionToMethodBinding.invoke(_MethodExpressionToMethodBinding.java:78)	at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:57)	at javax.faces.component.UICommand.broadcast(UICommand.java:127)	at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329)	at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304)	at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261)	at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:475)	at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:33)	at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)	at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:183)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)	at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:302)	at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)	at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at br.com.fromtis.fidc.ui.web.jsf.filter.SecurityFilter.doFilter(SecurityFilter.java:72)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at br.com.fromtis.fidc.ui.web.jsf.filter.NoCacheFilter.doFilter(NoCacheFilter.java:43)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:131)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:111)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:589)	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)	at java.lang.Thread.run(Thread.java:662)