import org.eclipse.jface.dialogs.MessageDialog -- causes
java.lang.NullPointerException
---------------------------------------------------------------------------------------
Key: JRUBY-2116
URL: http://jira.codehaus.org/browse/JRUBY-2116
Project: JRuby
Issue Type: Bug
Environment: ruby 1.8.5 (2007-08-23 rev 4201) [x86-jruby1.0.1]
Reporter: Joe Mooney
Assignee: Thomas E Enebo
Fix For: JRuby 1.0.1
require 'java'
import org.eclipse.jface.dialogs.MessageDialog;
puts "hi"
3 line program produces following output:
'c:/Program Files/Java/jre1.5.0_07/bin/java' -Xmx256m -Xss1024k -Xverify:none
-da -classpath
'./;d:/eclipse/plugins/org.eclipse.jface_3.2.2.M20061214-1200.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/swt.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/asm-2.2.3.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/asm-commons-2.2.3.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/backport-util-concurrent.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/bsf.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/emma.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/emma_ant.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/jarjar-0.7.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/jline-0.9.91.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/jruby.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/junit.jar'
-Djruby.base=q:/jpm_common/wits_tools/jruby/jruby-1.0.1
-Djruby.home=q:/jpm_common/wits_tools/jruby/jruby-1.0.1
-Djruby.lib=q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib -Djruby.script=jruby
-Djruby.shell=C:/cygwin/bin/sh org.jruby.Main ./y.rb
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.jruby.javasupport.JavaSupport.loadJavaClass(JavaSupport.java:79)
at org.jruby.javasupport.JavaClass.forName(JavaClass.java:906)
at org.jruby.javasupport.JavaClass.for_name(JavaClass.java:911)
at org.jruby.javasupport.Java.get_proxy_class(Java.java:279)
at org.jruby.javasupport.JavaInvokerSget_proxy_class1.call(Unknown
Source)
at
org.jruby.runtime.callback.FastInvocationCallback.execute(FastInvocationCallback.java:49)
at
org.jruby.internal.runtime.methods.SimpleCallbackMethod.call(SimpleCallbackMethod.java:81)
at
org.jruby.evaluator.EvaluationState.callNode(EvaluationState.java:571)
at
org.jruby.evaluator.EvaluationState.evalInternal(EvaluationState.java:207)
at
org.jruby.evaluator.EvaluationState.localAsgnNode(EvaluationState.java:1236)
at
org.jruby.evaluator.EvaluationState.evalInternal(EvaluationState.java:286)
at org.jruby.evaluator.EvaluationState.eval(EvaluationState.java:164)
at
org.jruby.internal.runtime.methods.DefaultMethod.internalCall(DefaultMethod.java:142)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:79)
at org.jruby.RubyObject.callMethod(RubyObject.java:575)
at org.jruby.RubyObject.callMethod(RubyObject.java:449)
at org.jruby.RubyObject.callMethodMissing(RubyObject.java:542)
at org.jruby.RubyObject.compilerCallMethod(RubyObject.java:505)
at
org.jruby.javasupport.util.CompilerHelpers.doInvokeDynamic(CompilerHelpers.java:124)
at EVAL6182315.__file__(EVAL6182315:2)
at EVAL6182315.run(EVAL6182315)
at org.jruby.Ruby.compileOrFallbackAndRun(Ruby.java:322)
at org.jruby.Main.runInterpreter(Main.java:229)
at org.jruby.Main.runInterpreter(Main.java:174)
at org.jruby.Main.run(Main.java:120)
at org.jruby.Main.main(Main.java:95)
Caused by: java.lang.NullPointerException
at
org.eclipse.jface.resource.JFaceResources.getResources(JFaceResources.java:184)
at
org.eclipse.jface.resource.JFaceResources.getImageRegistry(JFaceResources.java:310)
at org.eclipse.jface.dialogs.Dialog.<clinit>(Dialog.java:211)
... 28 more
_____________________________________________________________________
$ 'c:/Program Files/Java/jre1.5.0_07/bin/java' -Xmx256m -Xss1024k -Xverify:none
-da -classpath
'./;d:/eclipse/plugins/org.eclipse.jface_3.2.2.M20061214-1200.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/swt.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/asm-2.2.3.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/asm-commons-2.2.3.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/backport-util-concurrent.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/bsf.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/emma.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/emma_ant.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/jarjar-0.7.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/jline-0.9.91.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/jruby.jar;q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib/junit.jar'
-Djruby.base=q:/jpm_common/wits_tools/jruby/jruby-1.0.1
-Djruby.home=q:/jpm_common/wits_tools/jruby/jruby-1.0.1
-Djruby.lib=q:/jpm_common/wits_tools/jruby/jruby-1.0.1/lib -Djruby.script=jruby
-Djruby.shell=C:/cygwin/bin/sh org.jruby.Main --version
ruby 1.8.5 (2007-08-23 rev 4201) [x86-jruby1.0.1]
--
--
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