Odd error, looking for some advice.

10 views
Skip to first unread message

Roger Schlachter

unread,
Jan 9, 2012, 12:14:14 PM1/9/12
to Groovy Users of Minnesota
We are getting the error below in our logs and having a hard time
diagnosing the problem. We've seen it happen on caseNote/edit and
caseNote/update, but it doesn't happen every time so my first thought
jumped to a data issue, but the data appears to be fine. Has anyone
else seen anything like this and have any advice?

01/06 11:16:04 ERROR
org.codehaus.groovy.grails.web.errors.GrailsExceptionResolver -
Exception occurred when processing request: [GET] /empathic/caseNote/
edit/114201
Stacktrace follows:
java.lang.IllegalArgumentException:
java.lang.ClassCastException@1144409
at com.empathic.domain.CaseNote
$__clinit__closure4_closure6.doCall(CaseNote.groovy:66)
at InstanceSecurityGrailsPlugin
$_closure4_closure30.doCall(InstanceSecurityGrailsPlugin.groovy:85)
at InstanceSecurityGrailsPlugin
$_closure4_closure30.call(InstanceSecurityGrailsPlugin.groovy)
at
com.empathic.controller.CaseNoteController.retrieveCaseNote(CaseNoteController.groovy:
96)
at com.empathic.controller.CaseNoteController.this
$2$retrieveCaseNote(CaseNoteController.groovy)
at
com.empathic.controller.CaseNoteController.retrieveCaseNote(CaseNoteController.groovy)
at com.empathic.controller.CaseNoteController.this
$2$retrieveCaseNote(CaseNoteController.groovy)
at com.empathic.controller.CaseNoteController
$_closure3.doCall(CaseNoteController.groovy:28)
at com.empathic.controller.CaseNoteController
$_closure3.doCall(CaseNoteController.groovy)
at
org.apache.shiro.web.servlet.ShiroFilter.executeChain(ShiroFilter.java:
687)
at
org.apache.shiro.web.servlet.ShiroFilter.doFilterInternal(ShiroFilter.java:
616)
at
org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:
81)
at
com.studentsonly.grails.plugins.uiperformance.CacheFilter.doFilter(CacheFilter.java:
67)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:
291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:
776)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
705)
at org.apache.jk.common.ChannelSocket
$SocketConnection.runIt(ChannelSocket.java:898)
at java.lang.Thread.run(Thread.java:619)


Line 66 in the CaseNote object is :
if (owned()){

And owned() is defined as:
boolean owned() {
return ClinicUser.currentUser.id == client.clinicUser.id
}


-Roger
Reply all
Reply to author
Forward
0 new messages