This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Error from TomCat on starting an application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Error from TomCat on starting an application" Watch "Error from TomCat on starting an application" New topic
Author

Error from TomCat on starting an application

Nithya Venkatraman
Ranch Hand

Joined: Apr 11, 2004
Posts: 39
Hi

When I start the Tomcat from my local system, i sometimes get this error. The application does work, but dont understand why this error is seen in the command prompt..


Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
Starting service Tomcat-Apache
Apache Tomcat/4.0.3
java.sql.SQLException: ResultSet is closed
at sun.jdbc.odbc.JdbcOdbcResultSet.checkOpen(JdbcOdbcResultSet.java:6502
)
at sun.jdbc.odbc.JdbcOdbcResultSet.getColumnCount(JdbcOdbcResultSet.java
:1367)
at sun.jdbc.odbc.JdbcOdbcResultSetMetaData.getColumnCount(JdbcOdbcResult
SetMetaData.java:62)
at sun.jdbc.odbc.JdbcOdbcResultSet.findColumn(JdbcOdbcResultSet.java:180
2)
at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:395)

at myapp.AuthServlet.login(AuthServlet.java:206)
at myapp.AuthServlet.doPost(AuthServlet.java:121)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)todate :08/10/2004 16:21:29

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve
.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2343)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
r.java:1012)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
va:1107)
at java.lang.Thread.run(Thread.java:536)




Please help


Nithya<br />SCJP(1.2), SCWCD(1.4)
Vijayendra V Rao
Ranch Hand

Joined: Jul 04, 2004
Posts: 195
Do you have any code that makes initializations using some ResultSet in any of your servlets' init( ) method. I'm not sure, but I guess you are making an attempt to access a ResultSet for initialization purposes and thats what might be throwing this SQLException.

Well...I might be totally wrong...but just a thought!


Vijayendra <br /> <br />"The harder you train in peace, the lesser you bleed in war"
unni krishna
Ranch Hand

Joined: Jul 14, 2004
Posts: 39
see line now 206 on AuthServlet.java.


Software Engineer (SCJP)<br />USTechnology, CA
Peter Bell
Greenhorn

Joined: Mar 25, 2003
Posts: 19
... and try to see what is closing the result set before that line.


RimuHosting - JSP and Java Hosting
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error from TomCat on starting an application
 
Similar Threads
NullFormatException : Null
The CATALINA_HOME enviornment variable
Why I can't open my file?
the web client of the Duke's Bank in The J2EE 1.3 Tutorial supported by sun can't run
problem using an XMLParser in JSP