[java-dev] Strange NoClassDefFoundError when inside MaxClock
Adam Murray
adamjmurray at gmail.com
Tue Apr 8 23:43:48 MDT 2008
- Next message: [java-dev] Strange NoClassDefFoundError when inside MaxClock
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'm getting a NoClassDefFoundError when I try to run some code from a MaxClock. This code can be executed repeatedly outside of a MaxClock with no problems. How is that possible? I'm interacting with JRuby here, so it may be a bad interaction with JRuby's ClassLoader. I'm trying to implement a file autowatch mechanism for ruby scripts in my max ruby object. I gave up on the MaxClock approach and implemented the file watcher in a Java Thread, which is probably a more appropriate solution. That seems to work fine so far. Anyway, thought this was pretty weird! Maybe if anyone else is having issues with MaxClock you should just switch to using standard Java Threads. The class in question is definitely on Max's classpath. java.lang.NoClassDefFoundError: org/jruby/runtime/callback/FastInvocationCallback at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:675) at org.jruby.util.JRubyClassLoader.defineClass(JRubyClassLoader.java:25) ...<snip>... sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.cycling74.max.Callback.execute(Callback.java:300) at com.cycling74.max.MaxClock.tick(MaxClock.java:149) -- Adam Murray compusition.com
- Next message: [java-dev] Strange NoClassDefFoundError when inside MaxClock
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
