We recently upgraded to JRuby 1.4. We are now getting an exception when
compiling a ruby class:
could not compile: because of: "Illegal class name “” in class file "
java.lang.ClassFormatError: Illegal class name “” in class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at
org.jruby.util.JRubyClassLoader.defineClass(JRubyClassLoader.java:22)
at
org.jruby.compiler.impl.StandardASMCompiler.loadClass(StandardASMCompiler.java:191)
at org.jruby.Ruby.tryCompile(Ruby.java:579)
at org.jruby.Ruby.tryCompile(Ruby.java:559)
at org.jruby.Ruby.runNormally(Ruby.java:540)
at org.jruby.Ruby.runNormally(Ruby.java:524)
at
org.springframework.scripting.jruby.JRubyScriptUtils.createJRubyObject(JRubyScriptUtils.java:83)
at
org.springframework.scripting.jruby.JRubyScriptFactory.getScriptedObject(JRubyScriptFactory.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:146)
at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:540)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:964)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:870)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:479)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at
org.springframework.scripting.support.ScriptFactoryPostProcessor.postProcessBeforeInstantiation(ScriptFactoryPostProcessor.java:313)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:839)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:811)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:440)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at
com.ensco.ami.email.label.ClassificationLabelerFactory.getLabeler(ClassificationLabelerFactory.java:45)
at com.ensco.ami.email.LabelledEmail.(LabelledEmail.java:10)
at
com.ensco.ami.email.LabelledEmailTest.setUp(LabelledEmailTest.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
the Ruby file looks something like this:
require ‘java’
java_import “com.mycompany.DisplayType”
class Labeler
def initialize
@a = getDisplayType(“A”)
end
def getDisplayType(id)
DisplayTypes.find(id).label
end
end
I have been unable to find any help for this anywhere on the internet.
Any
suggestions would be greatly appreciated.
Stephen B.
Interesting…the script you provided seems to compile and run ok on
JRuby 1.5 dev and 1.4.0 for me, so it’s nothing obviously wrong with
that script or the compiler’s handling of it…
Can you give JRuby 1.5dev a try, from http://ci.jruby.org/snapshots ?
The error looks like the compiler is generating a Java .class at
runtime that has an invalid class constant.
You could also try to specify the JVM property jruby.compile.dump=true
and we can pick out the appropriate bits from that log (which should
immediately precede the error).
On Wed, Mar 17, 2010 at 1:50 PM, Stephen B. [email protected]
wrote:
   at org.jruby.Ruby.tryCompile(Ruby.java:579)
   at
   at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
   at
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
   at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
java_import “com.mycompany.DisplayType”
end
I have been unable to find any help for this anywhere on the internet. Any
suggestions would be greatly appreciated.
Stephen B.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
First, let me clarify something I left out of the first post. The ruby
class
runs fine. The only way I know there is an error is the stack trace. I
recieve the same error with 1.5.
With jruby.compile.dump=true:
*** Dumping ***
ALOAD 0
INVOKESPECIAL java/lang/Object. ()V
ALOAD 0
ALOAD 1
PUTFIELD org/jruby/gen/InterfaceImpl479993599.$self :
Lorg/jruby/runtime/builtin/IRubyObject;
RETURN
*** Dumping ***
L0
LINENUMBER 1 L0
L1
LINENUMBER 5 L1
ALOAD 0
GETFIELD org/jruby/gen/InterfaceImpl479993599.$self :
Lorg/jruby/runtime/builtin/IRubyObject;
ASTORE 2
ALOAD 2
INVOKEINTERFACE org/jruby/runtime/builtin/IRubyObject.getRuntime
()Lorg/jruby/Ruby;
ASTORE 3
GETSTATIC org/jruby/gen/InterfaceImpl479993599.labelBody :
Lorg/jruby/runtime/callsite/CacheEntry;
DUP
ALOAD 2
INVOKESTATIC org/jruby/java/MiniJava.isCacheOk
(Lorg/jruby/runtime/callsite/CacheEntry;Lorg/jruby/runtime/builtin/IRubyObject;)Z
IFNE L2
L3
LINENUMBER 6 L3
POP
GETSTATIC org/jruby/gen/InterfaceImpl479993599.$monitor :
Ljava/lang/Object;
MONITORENTER
L4
LINENUMBER 7 L4
L5
ALOAD 2
LDC “labelBody”
LDC “label_body”
INVOKESTATIC org/jruby/java/MiniJava.searchWithCache
(Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;Ljava/lang/String;)Lorg/jruby/runtime/callsite/CacheEntry;
PUTSTATIC org/jruby/gen/InterfaceImpl479993599.labelBody :
Lorg/jruby/runtime/callsite/CacheEntry;
GETSTATIC org/jruby/gen/InterfaceImpl479993599.$monitor :
Ljava/lang/Object;
MONITOREXIT
GOTO L6
L7
L8
L9
LINENUMBER 9 L9
GETSTATIC org/jruby/gen/InterfaceImpl479993599.$monitor :
Ljava/lang/Object;
MONITOREXIT
L10
ATHROW
TRYCATCHBLOCK L5 L7 L8 null
TRYCATCHBLOCK L8 L10 L8 null
L6
L11
LINENUMBER 10 L11
GETSTATIC org/jruby/gen/InterfaceImpl479993599.labelBody :
Lorg/jruby/runtime/callsite/CacheEntry;
DUP
GETFIELD org/jruby/runtime/callsite/CacheEntry.method :
Lorg/jruby/internal/runtime/methods/DynamicMethod;
INVOKEVIRTUAL
org/jruby/internal/runtime/methods/DynamicMethod.isUndefined ()Z
IFEQ L2
L12
LINENUMBER 11 L12
POP
ALOAD 2
LDC “labelBody”
ICONST_1
ANEWARRAY org/jruby/runtime/builtin/IRubyObject
DUP
ICONST_0
ALOAD 3
ALOAD 1
INVOKESTATIC
org/jruby/javasupport/JavaUtil.convertJavaToUsableRubyObject
(Lorg/jruby/Ruby;Ljava/lang/Object;)Lorg/jruby/runtime/builtin/IRubyObject;
AASTORE
INVOKESTATIC
org/jruby/javasupport/util/RuntimeHelpers.invokeMethodMissing
(Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
GOTO L13
L2
LINENUMBER 12 L2
GETFIELD org/jruby/runtime/callsite/CacheEntry.method :
Lorg/jruby/internal/runtime/methods/DynamicMethod;
ALOAD 3
INVOKEVIRTUAL org/jruby/Ruby.getCurrentContext
()Lorg/jruby/runtime/ThreadContext;
ALOAD 2
ALOAD 2
INVOKEINTERFACE org/jruby/runtime/builtin/IRubyObject.getMetaClass
()Lorg/jruby/RubyClass;
LDC “labelBody”
ICONST_1
ANEWARRAY org/jruby/runtime/builtin/IRubyObject
DUP
ICONST_0
ALOAD 3
ALOAD 1
INVOKESTATIC
org/jruby/javasupport/JavaUtil.convertJavaToUsableRubyObject
(Lorg/jruby/Ruby;Ljava/lang/Object;)Lorg/jruby/runtime/builtin/IRubyObject;
AASTORE
GETSTATIC org/jruby/runtime/Block.NULL_BLOCK :
Lorg/jruby/runtime/Block;
L14
LINENUMBER 13 L14
INVOKEVIRTUAL org/jruby/internal/runtime/methods/DynamicMethod.call
(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
L13
LDC Ljava/lang/String;.class
INVOKESTATIC org/jruby/javasupport/JavaUtil.convertRubyToJava
(Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/Class;)Ljava/lang/Object;
CHECKCAST java/lang/String
ARETURN
*** Dumping ***
L0
LINENUMBER 1 L0
L1
LINENUMBER 5 L1
ALOAD 0
GETFIELD org/jruby/gen/InterfaceImpl479993599.$self :
Lorg/jruby/runtime/builtin/IRubyObject;
ASTORE 2
ALOAD 2
INVOKEINTERFACE org/jruby/runtime/builtin/IRubyObject.getRuntime
()Lorg/jruby/Ruby;
ASTORE 3
GETSTATIC org/jruby/gen/InterfaceImpl479993599.labelSubject :
Lorg/jruby/runtime/callsite/CacheEntry;
DUP
ALOAD 2
INVOKESTATIC org/jruby/java/MiniJava.isCacheOk
(Lorg/jruby/runtime/callsite/CacheEntry;Lorg/jruby/runtime/builtin/IRubyObject;)Z
IFNE L2
L3
LINENUMBER 6 L3
POP
GETSTATIC org/jruby/gen/InterfaceImpl479993599.$monitor :
Ljava/lang/Object;
MONITORENTER
L4
LINENUMBER 7 L4
L5
ALOAD 2
LDC “labelSubject”
LDC “label_subject”
INVOKESTATIC org/jruby/java/MiniJava.searchWithCache
(Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;Ljava/lang/String;)Lorg/jruby/runtime/callsite/CacheEntry;
PUTSTATIC org/jruby/gen/InterfaceImpl479993599.labelSubject :
Lorg/jruby/runtime/callsite/CacheEntry;
GETSTATIC org/jruby/gen/InterfaceImpl479993599.$monitor :
Ljava/lang/Object;
MONITOREXIT
GOTO L6
L7
L8
L9
LINENUMBER 9 L9
GETSTATIC org/jruby/gen/InterfaceImpl479993599.$monitor :
Ljava/lang/Object;
MONITOREXIT
L10
ATHROW
TRYCATCHBLOCK L5 L7 L8 null
TRYCATCHBLOCK L8 L10 L8 null
L6
L11
LINENUMBER 10 L11
GETSTATIC org/jruby/gen/InterfaceImpl479993599.labelSubject :
Lorg/jruby/runtime/callsite/CacheEntry;
DUP
GETFIELD org/jruby/runtime/callsite/CacheEntry.method :
Lorg/jruby/internal/runtime/methods/DynamicMethod;
INVOKEVIRTUAL
org/jruby/internal/runtime/methods/DynamicMethod.isUndefined ()Z
IFEQ L2
L12
LINENUMBER 11 L12
POP
ALOAD 2
LDC “labelSubject”
ICONST_1
ANEWARRAY org/jruby/runtime/builtin/IRubyObject
DUP
ICONST_0
ALOAD 3
ALOAD 1
INVOKESTATIC
org/jruby/javasupport/JavaUtil.convertJavaToUsableRubyObject
(Lorg/jruby/Ruby;Ljava/lang/Object;)Lorg/jruby/runtime/builtin/IRubyObject;
AASTORE
INVOKESTATIC
org/jruby/javasupport/util/RuntimeHelpers.invokeMethodMissing
(Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
GOTO L13
L2
LINENUMBER 12 L2
GETFIELD org/jruby/runtime/callsite/CacheEntry.method :
Lorg/jruby/internal/runtime/methods/DynamicMethod;
ALOAD 3
INVOKEVIRTUAL org/jruby/Ruby.getCurrentContext
()Lorg/jruby/runtime/ThreadContext;
ALOAD 2
ALOAD 2
INVOKEINTERFACE org/jruby/runtime/builtin/IRubyObject.getMetaClass
()Lorg/jruby/RubyClass;
LDC “labelSubject”
ICONST_1
ANEWARRAY org/jruby/runtime/builtin/IRubyObject
DUP
ICONST_0
ALOAD 3
ALOAD 1
INVOKESTATIC
org/jruby/javasupport/JavaUtil.convertJavaToUsableRubyObject
(Lorg/jruby/Ruby;Ljava/lang/Object;)Lorg/jruby/runtime/builtin/IRubyObject;
AASTORE
GETSTATIC org/jruby/runtime/Block.NULL_BLOCK :
Lorg/jruby/runtime/Block;
L14
LINENUMBER 13 L14
INVOKEVIRTUAL org/jruby/internal/runtime/methods/DynamicMethod.call
(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
L13
LDC Ljava/lang/String;.class
INVOKESTATIC org/jruby/javasupport/JavaUtil.convertRubyToJava
(Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/Class;)Ljava/lang/Object;
CHECKCAST java/lang/String
ARETURN
*** Dumping ***
NEW java/lang/Object
DUP
INVOKESPECIAL java/lang/Object. ()V
PUTSTATIC org/jruby/gen/InterfaceImpl479993599.$monitor :
Ljava/lang/Object;
GETSTATIC org/jruby/runtime/callsite/CacheEntry.NULL_CACHE :
Lorg/jruby/runtime/callsite/CacheEntry;
PUTSTATIC org/jruby/gen/InterfaceImpl479993599.labelBody :
Lorg/jruby/runtime/callsite/CacheEntry;
GETSTATIC org/jruby/runtime/callsite/CacheEntry.NULL_CACHE :
Lorg/jruby/runtime/callsite/CacheEntry;
PUTSTATIC org/jruby/gen/InterfaceImpl479993599.labelSubject :
Lorg/jruby/runtime/callsite/CacheEntry;
RETURN
On Wed, Mar 17, 2010 at 5:00 PM, Charles Oliver N.
Thank you for your response. The original stack trace from the first
email
is the output when I set jruby.jit.logging.verbose=true. It doesn’t seem
to
show any script or method names. And the exception happens when I try to
get
the object as a java class, not when I am calling any of the methods.
Stephen
On Thu, Mar 18, 2010 at 1:23 PM, Charles Oliver N.
Ahh you know what, I read your original email wrong. Yes, it works
fine…what’s happening here is that something causes the compiled
Ruby script to be an invalid Java class (probably a compiler bug) and
so it just leaves it interpreted. There’s nothing functionally wrong
with that…it will continue to work, albeit a little bit slower.
So the logging I actually need from you is to set this property, which
will show failed methods and scripts. The one that fails around the
same time as that error is our culprit, and you can toss it into a
bug:
jruby.jit.logging.verbose=true
On Thu, Mar 18, 2010 at 9:01 AM, Stephen B. [email protected]
wrote:
   ALOAD 0
   GETFIELD org/jruby/gen/InterfaceImpl479993599.$self :
   INVOKESTATIC org/jruby/java/MiniJava.isCacheOk
  L5
   GOTO L6
   TRYCATCHBLOCK L8 L10 L8 null
   IFEQ L2
   ALOAD 1
   GETFIELD org/jruby/runtime/callsite/CacheEntry.method :
   ANEWARRAY org/jruby/runtime/builtin/IRubyObject
   LINENUMBER 13 L14
   LINENUMBER 1 L0
   GETSTATIC org/jruby/gen/InterfaceImpl479993599.labelSubject :
Ljava/lang/Object;
Lorg/jruby/runtime/callsite/CacheEntry;
   MONITOREXIT
   GETFIELD org/jruby/runtime/callsite/CacheEntry.method :
   ANEWARRAY org/jruby/runtime/builtin/IRubyObject
(Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
   INVOKEINTERFACE org/jruby/runtime/builtin/IRubyObject.getMetaClass
(Lorg/jruby/Ruby;Ljava/lang/Object;)Lorg/jruby/runtime/builtin/IRubyObject;
   CHECKCAST java/lang/String
Lorg/jruby/runtime/callsite/CacheEntry;
Interesting…the script you provided seems to compile and run ok on
immediately precede the error).
org.jruby.util.JRubyClassLoader.defineClass(JRubyClassLoader.java:22)
   at
   at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:870)
   at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
   at
class Labeler
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Ah-ha! It’s a bug in Spring!
On line 90, they do a parse with an empty string for the script name.
This is incorrect, and we should probably have an error for it. This
is also super inefficient…they’re re-parsing and in your case
re-compiling the incoming script for every call.
Note that this doesn’t appear to be their current source (for v3,
which now supports JRuby 1.4+), but this was the repository I found on
Springsource’s site.
You must also be specifying jruby.compile.mode=force, yes? Is there a
reason for that? Or perhaps Spring is doing it?
On Thu, Mar 18, 2010 at 12:33 PM, Stephen B. [email protected]
wrote:
*** Dumping ***
()Lorg/jruby/Ruby;
   LINENUMBER 6 L3
   INVOKESTATIC org/jruby/java/MiniJava.searchWithCache
  L9
   LINENUMBER 10 L11
   POP
Lorg/jruby/internal/runtime/methods/DynamicMethod;
   DUP
  L14
   ARETURN
   INVOKEINTERFACE org/jruby/runtime/builtin/IRubyObject.getRuntime
  L3
   LDC “label_subject”
  L8
  L11
   LINENUMBER 11 L12
org/jruby/javasupport/JavaUtil.convertJavaToUsableRubyObject
   GETFIELD org/jruby/runtime/callsite/CacheEntry.method :
   ANEWARRAY org/jruby/runtime/builtin/IRubyObject
Lorg/jruby/runtime/Block;
   CHECKCAST java/lang/String
Lorg/jruby/runtime/callsite/CacheEntry;
and we can pick out the appropriate bits from that log (which should
java.lang.ClassFormatError: Illegal class name “” in class file
   at org.jruby.Ruby.runNormally(Ruby.java:540)
   at
   at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
   at
   at java.lang.reflect.Method.invoke(Method.java:597)
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
   at
 def getDisplayType(id)
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
I am using the current release v3, which is also when we updated to
JRuby
1.4 and when we noticed the error. I am not setting the
jruby.compile.mode
so spring must be setting it to force. I will put something in the
spring
forums/bugs. Thank you so much for your help.
Stephen
On Thu, Mar 18, 2010 at 2:13 PM, Charles Oliver N.
Ok…it could still be something peculiar we’re doing, so let them
know we’re standing by to help figure it out.
Hi Stephen,
after serveral problems while running a ruby script via jruby with
spring (3.0.5.RELEASE) support i reached somehow the point where you
left off.
warning: could not compile: because of: "Illegal class name “” in class
file "
java.lang.ClassFormatError: Illegal class name “” in class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at
org.jruby.util.JRubyClassLoader.defineClass(JRubyClassLoader.java:39)
at
org.jruby.compiler.impl.StandardASMCompiler.loadClass(StandardASMCompiler.java:202)
at org.jruby.Ruby.tryCompile(Ruby.java:641)
at org.jruby.Ruby.tryCompile(Ruby.java:612)
at org.jruby.Ruby.runNormally(Ruby.java:563)
at org.jruby.Ruby.runNormally(Ruby.java:547)
Did you post a bug at the spring forum? Is there a patch around?
Cheers, jp
Stephen B. wrote in post #897863:
I am using the current release v3, which is also when we updated to
JRuby
1.4 and when we noticed the error. I am not setting the
jruby.compile.mode
so spring must be setting it to force. I will put something in the
spring
forums/bugs. Thank you so much for your help.
Stephen
On Thu, Mar 18, 2010 at 2:13 PM, Charles Oliver N.