[java-dev] Strange NoClassDefFoundError when inside MaxClock
topher lafata
topher at topher.com
Wed Apr 9 09:59:25 MDT 2008
- Previous message: [java-dev] Strange NoClassDefFoundError when inside MaxClock
- Next message: [java-dev] Re: Strange NoClassDefFoundError when inside MaxClock
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
hey adam. definitely seems to be some sort of strange classloader interaction. is org/jruby/runtime/callback in your jruby classpath?? regardless, i would probably do file watcher with a java thread too. t On Apr 8, 2008, at 22:43 PM, Adam Murray wrote: > > 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 > _______________________________________________ > java-dev mailing list > java-dev at cycling74.com > http://www.cycling74.com/mailman/listinfo/java-dev
- Previous message: [java-dev] Strange NoClassDefFoundError when inside MaxClock
- Next message: [java-dev] Re: Strange NoClassDefFoundError when inside MaxClock
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
