[groovy-user] ExtendProxy ClassCastException in criteria.list()

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[groovy-user] ExtendProxy ClassCastException in criteria.list()

Jonathan Carlson
Thanks for patching that so quickly, Graeme.  In the meantime, I got
past the <select> issue by putting my "All" String into a domain object
and promptly ran into this criteria builder error:

My Builder Code:
        userPrivilegeList = c.list {
            eq("userLogin", params.userLogin)
        }

Stack Trace:
   [groovy] java.lang.ClassCastException: grails.util.ExtendProxy
   [groovy]     at
UserPrivilegeController$_closure2.doCall(UserPrivilegeController:16)
   [groovy]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   [groovy]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   [groovy]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   [groovy]     at java.lang.reflect.Method.invoke(Method.java:585)
   [groovy]     at
org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:67)
   [groovy]     at
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:652)
   [groovy]     at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:343)
   [groovy]     at
org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:156)
   [groovy]     at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)
   [groovy]     at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(ScriptBytecodeAdapter.java:85)
   [groovy]     at
UserPrivilegeController$_closure2.doCall(UserPrivilegeController)
   [groovy]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   [groovy]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   [groovy]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   [groovy]     at java.lang.reflect.Method.invoke(Method.java:585)
   [groovy]     at
org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:67)
   [groovy]     at
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:652)
   [groovy]     at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:343)
   [groovy]     at groovy.lang.Closure.call(Closure.java:176)
   [groovy]     at groovy.lang.Closure.call(Closure.java:171)
   [groovy]     at
org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.handleAction(SimpleGrailsControllerHelper.java:35
3)
   [groovy]     at
org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.handleURI(SimpleGrailsControllerHelper.java:288)
   [groovy]     at
org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.handleURI(SimpleGrailsControllerHelper.java:117)
   [groovy]     at
org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsController.handleRequest(SimpleGrailsController.java:79)
   [groovy]     at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
   [groovy]     at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:717)
   [groovy]     at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:658)
   [groovy]     at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
   [groovy]     at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)



______________________________________________________________________
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

Katun Corporation -- www.katun.com
_____________________________________________________________________

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

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: [groovy-user] ExtendProxy ClassCastException in criteria.list()

Jonathan Carlson
I'm sorry, this was intended for the Grails user list, so please
ignore.

>>> [hidden email] 2006-06-01 2:57:26 PM >>>
Thanks for patching that so quickly, Graeme.  In the meantime, I got
past the <select> issue by putting my "All" String into a domain
object
and promptly ran into this criteria builder error:

My Builder Code:
        userPrivilegeList = c.list {
            eq("userLogin", params.userLogin)
        }

Stack Trace:
   [groovy] java.lang.ClassCastException: grails.util.ExtendProxy
   [groovy]     at
UserPrivilegeController$_closure2.doCall(UserPrivilegeController:16)
   [groovy]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   [groovy]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   [groovy]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   [groovy]     at java.lang.reflect.Method.invoke(Method.java:585)
   [groovy]     at
org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:67)
   [groovy]     at
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:652)
   [groovy]     at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:343)
   [groovy]     at
org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:156)
   [groovy]     at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)
   [groovy]     at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(ScriptBytecodeAdapter.java:85)
   [groovy]     at
UserPrivilegeController$_closure2.doCall(UserPrivilegeController)
   [groovy]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   [groovy]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   [groovy]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   [groovy]     at java.lang.reflect.Method.invoke(Method.java:585)
   [groovy]     at
org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:67)
   [groovy]     at
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:652)
   [groovy]     at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:343)
   [groovy]     at groovy.lang.Closure.call(Closure.java:176)
   [groovy]     at groovy.lang.Closure.call(Closure.java:171)
   [groovy]     at
org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.handleAction(SimpleGrailsControllerHelper.java:35
3)
   [groovy]     at
org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.handleURI(SimpleGrailsControllerHelper.java:288)
   [groovy]     at
org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.handleURI(SimpleGrailsControllerHelper.java:117)
   [groovy]     at
org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsController.handleRequest(SimpleGrailsController.java:79)
   [groovy]     at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
   [groovy]     at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:717)
   [groovy]     at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:658)
   [groovy]     at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
   [groovy]     at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)



______________________________________________________________________
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

Katun Corporation -- www.katun.com
_____________________________________________________________________

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

    http://xircles.codehaus.org/manage_email 


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

______________________________________________________________________
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

Katun Corporation -- www.katun.com
_____________________________________________________________________

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

    http://xircles.codehaus.org/manage_email