Issue Details (XML | Word | Printable)

Key: GROOVY-586
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Jochen Theodorou
Reporter: Geert Bevin
Votes: 2
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
groovy

Groovy seems to have trouble with jrockit-j2sdk1.4.2_04-linux

Created: 24/Jul/04 04:04 PM   Updated: 07/Jun/06 07:56 AM   Resolved: 07/Jun/06 07:56 AM
Component/s: None
Affects Version/s: 1.0-JSR-4
Fix Version/s: 1.0-JSR-6

Time Tracking:
Not Specified


 Description  « Hide

This is the exception that I get:
org.codehaus.groovy.classgen.RuntimeIncompleteClassException: Incomplete class: does not implement abstract methods: [void wh_writeObject(java.io.ObjectOutputStream), void wh_readObject(java.io.ObjectInputStream), java.lang.Object wh_writeReplace(), java.lang.Object wh_readResolve(), void emptyConstructor(), void wh_readObjectNoData(), void serialConstructor()]. Node: org.codehaus.groovy.ast.ClassNode@4f293f3[name: elementinfobuilder]. At [-1:-1]
at org.codehaus.groovy.classgen.ClassCompletionVerifier.visitClass(Lorg.codehaus.groovy.ast.ClassNode;)V(ClassCompletionVerifier.java:55)
at org.codehaus.groovy.control.CompilationUnit$5.call(Lorg.codehaus.groovy.control.SourceUnit;Lorg.codehaus.groovy.classgen.GeneratorContext;Lorg.codehaus.groovy.ast.ClassNode;)V(CompilationUnit.java:580)
at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(Lorg.codehaus.groovy.control.CompilationUnit$LoopBodyForPrimaryClassNodeOperations;)V(CompilationUnit.java:844)
at org.codehaus.groovy.control.CompilationUnit.classgen()V(CompilationUnit.java:540)
at org.codehaus.groovy.control.CompilationUnit.compile(I)V(CompilationUnit.java:446)
at groovy.lang.GroovyClassLoader.parseClass(Lgroovy.lang.GroovyCodeSource;)Ljava.lang.Class;(GroovyClassLoader.java:244)
at com.uwyn.rife.engine.Groovy2ElementInfo$GroovyProcessor.processGroovy(Ljava.lang.String;Lcom.uwyn.rife.resources.ResourceFinder;)V(Groovy2ElementInfo.java:133)



Ben Eng added a comment - 10/Aug/04 11:26 AM

I am experiencing the same problem on Windows XP with the same version of jrockit. Groovy works fine with the Sun JRE.


Jochen Theodorou added a comment - 06/Jul/05 04:16 AM

this bug is nearly 1 year old. It would be very good if the watchers/voters could test it again, because groovy has changed much and there was for sure improvements in jrockit as well as in groovy. If no one makes comments I will mark it as "cannot reproduce" for the next release


Jochen Theodorou added a comment - 26/Aug/05 03:09 AM

as no one said something I mark this bug as not reproducable


David Black added a comment - 23/Nov/05 07:39 AM

This is still a bug, I can reproduce it with the latest jsr-0.5 SNAPSHOT. Weblogic 8.1 SP3 JRockit:

BEA WebLogic JRockit(TM) 1.4.2_04 JVM (build ari-31788-20040616-1132-win-ia32, Native Threads, GC strategy: parallel)


Guillaume Laforge added a comment - 23/Nov/05 07:42 AM

I'm reopening the issue since the problem is still there.


Guillaume Laforge added a comment - 23/Nov/05 07:43 AM

David, do you have a sample test which could help us debug that?


David Black added a comment - 23/Nov/05 07:50 AM

I don't have a unit test. Its a Groovlet I'm trying to access. Here is the code (I can post the web.xml too if that helps):

import java.util.Date
import groovy.xml.MarkupBuilder

if (session == null) {
session = request.getSession(true);
}

String viewid = request.getParameter("viewid");
String feedid = request.getParameter("feedid");
String excpid = request.getParameter("excpid");

html.html {
head { title("Resolve Exception") }
body (style:"font:Verdana, Arial, Helvetica, sans-serif") {

p("Hello, ${request.remoteHost}: ${new Date()}")
p("")
p("The exception with ID " + excpid + " needs to be resolved")

form (action:"/pacerapid/ResolveResponse.groovy", method:"post") { input(name:"viewid", type:"hidden", value:"" + viewid) input(name:"feedid", type:"hidden", value:"" + feedid) input(name:"excpid", type:"hidden", value:"" + excpid) input(name:"resolution", type:"submit", value:"Fixed") input(name:"resolution", type:"submit", value:"Cancel") }
}
}


Jochen Theodorou added a comment - 23/Nov/05 09:14 AM

I modified the way abstract methods are used for the ClassCompletionVerifyer. It would be nice if you could test that against a jsr-05-snapshot: http://distci.codehaus.org/groovy/jars/groovy-1.0-jsr-05-SNAPSHOT.jar


Jochen Theodorou added a comment - 07/Jun/06 07:56 AM

As there were no reports about problems, I am closing this again.