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 JDBC and the fly likes Unable to materialize as string ERROR 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 » Databases » JDBC
Bookmark "Unable to materialize as string ERROR" Watch "Unable to materialize as string ERROR" New topic
Author

Unable to materialize as string ERROR

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 753
STDOUT] *** SERVLET : listAgent.do ***
16:08:04,421 INFO [STDOUT] GET_FILED_FOR_AHT : com.mysql.jdbc.ServerPreparedStatement[1] - Select a_id,TIMESTAMPDIFF(SECOND,start_time,resp_ts) from chat where DATE_FORMAT(start_time,'%e/%c/%Y')=DATE_FORMAT(now(),'%e/%c/%Y')
16:08:04,437 INFO [STDOUT] GET_FILED_FOR_AHT : com.mysql.jdbc.ServerPreparedStatement[1] - unable to materialize as string due to underlying SQLException: java.sql.SQLException: Connection is closed.
16:08:10,234 INFO [STDOUT]

hi,

my code/query is working fine... but i'm getting following error on conseole...


Jigar Naik


Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

Jigar.
The error message says the connection is closed. So that's probably the place to look. Are you using connection pooling? How long is the connection open? Can you post some code?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 753
this is how i'm using conn in my code,,,



and whats connection pulling ???
 
 
subject: Unable to materialize as string ERROR
 
Similar Threads
ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.4.1:resources
Unable to connect to read-only Embedded Derby database from within EAR file deployed on JBoss server
java.io.IOException: Cannot remove block[ 7314 ]; out of range
Error in JSP code
invoking EJB via Http call using Jboss