groovy

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.0-JSR-4
  • Fix Version/s: 1.0-JSR-6
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

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)

Activity

Hide
Ben Eng added a comment -

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

Show
Ben Eng added a comment - I am experiencing the same problem on Windows XP with the same version of jrockit. Groovy works fine with the Sun JRE.
Hide
blackdrag blackdrag added a comment -

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

Show
blackdrag blackdrag added a comment - 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
Hide
blackdrag blackdrag added a comment -

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

Show
blackdrag blackdrag added a comment - as no one said something I mark this bug as not reproducable
Hide
David Black added a comment -

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)

Show
David Black added a comment - 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)
Hide
Guillaume Laforge added a comment -

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

Show
Guillaume Laforge added a comment - I'm reopening the issue since the problem is still there.
Hide
Guillaume Laforge added a comment -

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

Show
Guillaume Laforge added a comment - David, do you have a sample test which could help us debug that?
Hide
David Black added a comment -

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") }
}
}

Show
David Black added a comment - 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") } } }
Hide
blackdrag blackdrag added a comment -

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

Show
blackdrag blackdrag added a comment - 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
Hide
blackdrag blackdrag added a comment -

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

Show
blackdrag blackdrag added a comment - As there were no reports about problems, I am closing this again.

People

Vote (2)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: