Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] DataSet Problem

James Hughes

2008-08-08

Replies: Find Java Web Hosting

Author LoginPost Reply
Hello,

I have hit a small problem with datasets. After a find all ANY opertion on the data set throws an exception. Using v1.5.6. I couldn;t find any details on this or how to resolve it.... Is it a bug or am I doing something wrong?

println sql.dataSet("SLA_DEF").rows().find({it.slacode == config.slacode}) // WORKS FINE

println(sql.dataSet("SLA_DEF").findAll({it.slacode == config.slacode}).rows())

groovy.lang.GroovyRuntimeException: Could not find the ClassNode for MetaClass: org.codehaus.groovy.runtime.metaclass.ClosureMetaClass@(protected)]
at groovy.sql.DataSet.visit (DataSet.java:232)
at groovy.sql.DataSet.getSqlWhereVisitor (DataSet.java:215)
at groovy.sql.DataSet.getSqlWhere (DataSet.java:162)
at groovy.sql.DataSet.getSql (DataSet.java:189)
at groovy.sql.DataSet.rows (DataSet.java:263)



James Hughes | Senior Software Engineer | Kainos | M: +353 (0)877 931 634 | j.hughes@(protected)

P Please consider the environment and do not print this mail unless necessary


--------------------------------------------------------------------
This e-mail is intended solely for the addressee and is strictly confidential; if you are not the addressee please destroy the message and all copies. Any opinion or information contained in this email or its attachments that does not relate to the business of Kainos
is personal to the sender and is not given by or endorsed by Kainos. Kainos is the trading name of Kainos Software Limited, registered in Northern Ireland under company number: NI19370, having its registered offices at: Kainos House, 4-6 Upper Crescent, Belfast, BT7 1NT,
Northern Ireland. Registered in the UK for VAT under number: 454598802 and registered in Ireland for VAT under number: 9950340E. This email has been scanned for all known viruses by MessageLabs but is not guaranteed to be virus free; further terms and conditions may be
found on our website - www.kainos.com


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.