Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.8.5, 2.0-beta-2
-
Component/s: None
-
Labels:None
-
Environment:MacOSX: 10.6
Groovy Version: 1.8.3
JVM: 1.6.0_26
-
Number of attachments :
Description
GroovyServ 0.9 doesn't work with Groovy 1.8.3. Surely, it still works well with Groovy 1.8.2.
Stacktrace on starting-up of GroovyServ:
2011/10/25 18:17:01.121 ---> org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'groovy.lang.Reference@464693f9' with class 'groovy.lang.Reference' to class 'java.lang.Runnable' 2011/10/25 18:17:01.121 at org.jggug.kobo.groovyserv.RequestWorker$2.<init>(RequestWorker.groovy) 2011/10/25 18:17:01.121 at org.jggug.kobo.groovyserv.RequestWorker.newTaskFor(RequestWorker.groovy:85) 2011/10/25 18:17:01.121 at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:77) 2011/10/25 18:17:01.121 at java_util_concurrent_ExecutorService$submit.callCurrent(Unknown Source) 2011/10/25 18:17:01.121 at org.jggug.kobo.groovyserv.RequestWorker.start(RequestWorker.groovy:67) ...(snip)...
At line 85 of RequestWorker:
new FutureTask(runnable, defaultValue) { // anonymous inner class String toString() { runnable.id } }
When I tried to fix it as following, it worked well even with groovy 1.8.3.
new FutureTask(runnable, defaultValue)
I'm sorry. I wanted to report the sample code which is independent on GroovyServ, but the problem didn't occur on the simplified sample code.
This might be the same problem as http://jira.codehaus.org/browse/GROOVY-5077.
GroovyServ: http://kobo.github.com/groovyserv/
RequestWorker's full source code: https://github.com/kobo/groovyserv/blob/master/src/main/groovy/org/jggug/kobo/groovyserv/RequestWorker.groovy
Activity
Yasuharu NAKANO
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | Groovy5101Test.groovy [ 57463 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 2.0-beta-2 [ 18072 ] | |
| Fix Version/s | 1.8.5 [ 18071 ] |
blackdrag blackdrag
made changes -
| Priority | Major [ 3 ] | Blocker [ 1 ] |
blackdrag blackdrag
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Assignee | Jochen Theodorou [ blackdrag ] | |
| Resolution | Fixed [ 1 ] |