1

在成功地将成熟的 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 年前的相同错误,但没有后续讨论,也没有解决方案。任何帮助将不胜感激。

戴夫

4

0 回答 0