NoClassDefFoundError when using JRuby in Eclipse RCP
----------------------------------------------------

                 Key: JRUBY-3206
                 URL: http://jira.codehaus.org/browse/JRUBY-3206
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.1.5
            Reporter: Uwe Kubosch


When running the included project, we get the output below.  Running with the 
property -Djruby.interfaces.useProxy=true introduced in JRUBY-3100, everything 
works fine, but using the older JI introduces other problems so we would like 
to use the new JI.  To reproduce install Eclipse with plugin development and 
Java 6, and run the attached project.

Dec 1, 2008 5:20:46 PM org.jruby.jruby_3100.TestEditor createPartControl
INFO: Starting...
Load path is: 
["/home/uwe/workspace/aifudis/JRUBY_3100/src/org/jruby/jruby_3100", 
"/home/uwe/.jruby/lib/ruby/site_ruby/1.8", 
"/home/uwe/.jruby/lib/ruby/site_ruby", "/home/uwe/.jruby/lib/ruby/1.8", 
"/home/uwe/.jruby/lib/ruby/1.8/java", "lib/ruby/1.8", ".", 
"/home/uwe/workspace/aifudis/JRUBY_3100/jruby-trunk/lib/ruby/1.8/", 
"/home/uwe/workspace/aifudis/JRUBY_3100/jruby-trunk/lib/ruby/site_ruby/1.8/"]
java OK
content provider OK
Java::OrgJrubyJava::MiniJava
[EMAIL PROTECTED]
Composite {}
TestEditor.new(ARG_0, ARG_1)
init
Dec 1, 2008 5:20:58 PM org.jruby.jruby_3100.TestEditor createPartControl
SEVERE: Error starting JRuby
org.jruby.gen.InterfaceImpl30113727:-1:in `inputChanged': 
java.lang.NoClassDefFoundError: 
org/jruby/internal/runtime/methods/UndefinedMethod (NativeException)
        from org/eclipse/jface/viewers/ContentViewer.java:247:in `setInput'
        from org/eclipse/jface/viewers/StructuredViewer.java:1603:in `setInput'
        from sun/reflect/NativeMethodAccessorImpl.java:-2:in `invoke0'
        from sun/reflect/NativeMethodAccessorImpl.java:39:in `invoke'
        from sun/reflect/DelegatingMethodAccessorImpl.java:25:in `invoke'
        from java/lang/reflect/Method.java:597:in `invoke'
        from org/jruby/javasupport/JavaMethod.java:298:in 
`invokeWithExceptionHandling'
        from org/jruby/javasupport/JavaMethod.java:259:in `invoke'
         ... 85 levels...
        from org/eclipse/equinox/launcher/Main.java:1236:in `run'
        from org/eclipse/equinox/launcher/Main.java:1212:in `main'
        from <script>:1
Complete Java stackTrace
java.lang.NoClassDefFoundError: 
org/jruby/internal/runtime/methods/UndefinedMethod
        at org.jruby.gen.InterfaceImpl30113727.inputChanged(Unknown Source)
        at 
org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:247)
        at 
org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1603)
        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.jruby.javasupport.JavaMethod.invokeWithExceptionHandling(JavaMethod.java:298)
        at org.jruby.javasupport.JavaMethod.invoke(JavaMethod.java:259)
        at 
org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:44)
        at 
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:64)
        at 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:280)
        at 
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:116)
        at 
org.jruby.ast.AttrAssignOneArgNode.interpret(AttrAssignOneArgNode.java:39)
        at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
        at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
        at 
org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:165)
        at 
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:142)
        at 
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:318)
        at 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:310)
        at 
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167)
        at org.jruby.RubyClass$SpecificArityNew.call(RubyClass.java:561)
        at 
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:169)
        at 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:300)
        at 
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:157)
        at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
        at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
        at org.jruby.ast.RootNode.interpret(RootNode.java:126)
        at org.jruby.Ruby.evalScriptlet(Ruby.java:234)
        at org.jruby.jruby_3100.JRubyHelper.newRubyObject(JRubyHelper.java:54)
        at org.jruby.jruby_3100.TestEditor.createPartControl(TestEditor.java:28)
        at 
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
        at 
org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
        at 
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
        at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:306)
        at 
org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
        at 
org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
        at 
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
        at 
org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
        at 
org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
        at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
        at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1608)
        at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
        at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
        at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
        at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
        at 
org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
        at 
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
        at 
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
        at 
org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:779)
        at 
org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:678)
        at 
org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:639)
        at 
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2817)
        at 
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729)
        at 
org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721)
        at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at 
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
        at 
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652)
        at 
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2635)
        at 
org.jruby.jruby_3100.ApplicationWorkbenchWindowAdvisor.postWindowOpen(ApplicationWorkbenchWindowAdvisor.java:36)
        at 
org.eclipse.ui.internal.WorkbenchWindow.fireWindowOpened(WorkbenchWindow.java:1229)
        at 
org.eclipse.ui.internal.WorkbenchWindow.open(WorkbenchWindow.java:786)
        at 
org.eclipse.ui.internal.Workbench$61.runWithException(Workbench.java:3394)
        at 
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at 
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3378)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3036)
        at 
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
        at 
org.eclipse.ui.internal.Workbench$27.runWithException(Workbench.java:1361)
        at 
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at 
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3378)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3036)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2293)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
        at 
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
        at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.jruby.jruby_3100.Application.start(Application.java:17)
        at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
        at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
        at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: java.lang.ClassNotFoundException: 
org.jruby.internal.runtime.methods.UndefinedMethod
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 96 more
        ...internal jruby stack elided...
        from 
org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:247)
        from 
org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1603)
        from sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        from 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        from 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        from java.lang.reflect.Method.invoke(Method.java:597)
        from 
org.jruby.javasupport.JavaMethod.invokeWithExceptionHandling(JavaMethod.java:298)
        from org.jruby.javasupport.JavaMethod.invoke(JavaMethod.java:259)
        from 
org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:44)
        from 
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:64)
        from 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:280)
        from 
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:116)
        from 
org.jruby.ast.AttrAssignOneArgNode.interpret(AttrAssignOneArgNode.java:39)
        from org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
        from org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
        from 
org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:165)
        from 
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:142)
        from 
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:318)
        from 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:310)
        from 
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167)
        from org.jruby.RubyClass$SpecificArityNew.call(RubyClass.java:561)
        from 
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:169)
        from 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:300)
        from 
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:157)
        from org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
        from org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
        from org.jruby.ast.RootNode.interpret(RootNode.java:126)
        from org.jruby.Ruby.evalScriptlet(Ruby.java:234)
        from org.jruby.jruby_3100.JRubyHelper.newRubyObject(JRubyHelper.java:54)
        from 
org.jruby.jruby_3100.TestEditor.createPartControl(TestEditor.java:28)
        from 
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
        from 
org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
        from 
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
        from org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:306)
        from 
org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
        from 
org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
        from 
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
        from 
org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
        from 
org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
        from org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
        from org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1608)
        from org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
        from org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
        from org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
        from org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
        from 
org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
        from 
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
        from 
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
        from 
org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:779)
        from 
org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:678)
        from 
org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:639)
        from 
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2817)
        from 
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729)
        from 
org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721)
        from 
org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673)
        from 
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        from 
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
        from 
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652)
        from 
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2635)
        from 
org.jruby.jruby_3100.ApplicationWorkbenchWindowAdvisor.postWindowOpen(ApplicationWorkbenchWindowAdvisor.java:36)
        from 
org.eclipse.ui.internal.WorkbenchWindow.fireWindowOpened(WorkbenchWindow.java:1229)
        from 
org.eclipse.ui.internal.WorkbenchWindow.open(WorkbenchWindow.java:786)
        from 
org.eclipse.ui.internal.Workbench$61.runWithException(Workbench.java:3394)
        from 
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
        from org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        from 
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
        from org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3378)
        from org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3036)
        from 
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
        from 
org.eclipse.ui.internal.Workbench$27.runWithException(Workbench.java:1361)
        from 
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
        from org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        from 
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
        from org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3378)
        from org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3036)
        from org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2293)
        from org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
        from org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
        from 
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
        from 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
        from 
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        from org.jruby.jruby_3100.Application.start(Application.java:17)
        from 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
        from 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        from 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        from 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
        from 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        from sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        from 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        from 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        from java.lang.reflect.Method.invoke(Method.java:597)
        from org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
        from org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        from org.eclipse.equinox.launcher.Main.run(Main.java:1236)
        from org.eclipse.equinox.launcher.Main.main(Main.java:1212)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to