grails Sql error
Posted
by Srinath
on Stack Overflow
See other posts from Stack Overflow
or by Srinath
Published on 2010-06-18T05:39:12Z
Indexed on
2010/06/18
5:43 UTC
Read the original article
Hit count: 370
Hi, I was getting issue wen using new Sql method in grails .
import groovy.sql.Sql
def datasource
def organization_config = new Sql(dataSource)
def orgs = organization_config.rows("select o.organizationId,o.name from organization o ")
session.setAttribute("org_results", orgs);
The application is running but getting these errors when restart tomcat server.
SEVERE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: groovy.sql.GroovyRowResult
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: groovy.sql.GroovyRowResult
Can any one please tell me wy this is coming .
thanks in advance, sri..
© Stack Overflow or respective owner