NoVarsDynamicScope.java:87:in`setValue':在Fedora 14上使用warbler 1.3.5或1.3.6运行'jruby -S warble -T'时的java.lang.NullPointerException

时间:2013-03-07 01:37:49

标签: jruby fedora warbler

成功将一个成熟的jruby servlet项目从Ubuntu 12.04移植到Fedora 14之后,一切工作都达到了构建servlet的程度。

jruby -S warble compiled

工作正常,但随后

jruby -S warble war

甚至只是:

jruby -S warble -T

的产率:

NoVarsDynamicScope.java:87:in `setValue': java.lang.NullPointerException
    from LocalAsgnNode.java:123:in `interpret'
    from BlockNode.java:71:in `interpret'
    from RescueBodyNode.java:108:in `interpret'
    from RescueNode.java:199:in `handleJavaException'
    from RescueNode.java:141:in `interpretWithJavaExceptions'
    from RescueNode.java:110:in `interpret'
    from BeginNode.java:83:in `interpret'
    from NewlineNode.java:104:in `interpret'
    from ASTInterpreter.java:74:in `INTERPRET_METHOD'
    from InterpretedMethod.java:169:in `call'
    from DefaultMethod.java:191:in `call'
    from CachingCallSite.java:302:in `cacheAndCall'
    from CachingCallSite.java:144:in `callBlock'
    from CachingCallSite.java:153:in `callIter'
    from FCallNoArgBlockNode.java:32:in `interpret'
    from NewlineNode.java:104:in `interpret'
    from ASTInterpreter.java:74:in `INTERPRET_METHOD'
    from InterpretedMethod.java:169:in `call'
    from DefaultMethod.java:191:in `call'
    from SuperCallSite.java:346:in `cacheAndCall'
    from SuperCallSite.java:146:in `callBlock'
    from SuperCallSite.java:151:in `call'
    from SuperCallSite.java:107:in `callVarargs'
    from ZSuperNode.java:102:in `interpret'
    from NewlineNode.java:104:in `interpret'
    from BlockNode.java:71:in `interpret'
    from ASTInterpreter.java:74:in `INTERPRET_METHOD'
    from InterpretedMethod.java:147:in `call'
    from DefaultMethod.java:183:in `call'
    from CachingCallSite.java:292:in `cacheAndCall'
    from CachingCallSite.java:135:in `call'
    from CallNoArgNode.java:63:in `interpret'
    from NewlineNode.java:104:in `interpret'
    from BlockNode.java:71:in `interpret'
    from RootNode.java:129:in `interpret'
    from ASTInterpreter.java:119:in `INTERPRET_ROOT'
    from Ruby.java:724:in `runInterpreter'
    from Ruby.java:2487:in `loadFile'
    from ExternalScript.java:66:in `load'
    from LoadService.java:270:in `load'
    from RubyKernel.java:1076:in `loadCommon'
    from RubyKernel.java:1058:in `load'
    from RubyKernel$s$0$1$load.gen:65535:in `call'
    from DynamicMethod.java:211:in `call'
    from DynamicMethod.java:207:in `call'
    from CachingCallSite.java:312:in `cacheAndCall'
    from CachingCallSite.java:169:in `call'
    from /usr/local/jruby-1.6.7.2/bin/warble:23:in `__file__'
    from /usr/local/jruby-1.6.7.2/bin/warble:-1:in `load'
    from Ruby.java:697:in `runScript'
    from Ruby.java:690:in `runScript'
    from Ruby.java:597:in `runNormally'
    from Ruby.java:446:in `runFromMain'
    from Main.java:369:in `doRunFromMain'
    from Main.java:258:in `internalRun'
    from Main.java:224:in `run'
    from Main.java:208:in `run'
    from Main.java:188:in `main'

我正在跑步:

  • jruby 1.6.7.2(ruby-1.8.7-p357)(2012-05-01 26e08ba)(OpenJDK Server VM 1.6.0_20)[linux-i386-java]

在Fedora 14下的i686机器上。最新的JRuby尚未成熟到这个项目 - 我已经尝试过了。

我已经尝试重新安装warbler-1.3.5并将其升级到1.3.6并在本地重建它但我总是得到同样的错误。

我可以找到同样的错误,可以追溯到在线搜索的2年,但没有后续讨论,没有解决方案。任何帮助都将深表感谢。

戴夫

0 个答案:

没有答案