Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"NullPointerException" when running Rails Action View tests with rake. #3436

Closed
tgxworld opened this issue Oct 30, 2015 · 4 comments
Closed

Comments

@tgxworld
Copy link

If I run the Action View tests with rake test, I get a bunch of errors like this:

  1) Error:
FormHelperTest#test_number_field:
Java::JavaLang::NullPointerException: 
    org.jruby.runtime.Helpers.invokeSuper(Helpers.java:482)
    org.jruby.RubyRange.min(RubyRange.java:649)
    org.jruby.RubyRange$INVOKER$i$min.call(RubyRange$INVOKER$i$min.gen)
    org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrNBlock.call(JavaMethod.java:306)
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:293)
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:306)
    org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:77)
    org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:77)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.INTERPRET_METHOD(InterpretedIRMethod.java:151)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:138)
    org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:189)
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:293)
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:306)
    org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:77)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.INTERPRET_METHOD(InterpretedIRMethod.java:122)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:109)
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:273)
    org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
    org.jruby.ir.instructions.CallBase.interpret(CallBase.java:419)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:322)
    org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:77)
    org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:77)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.INTERPRET_METHOD(InterpretedIRMethod.java:151)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:138)
    org.jruby.RubyClass.finvoke(RubyClass.java:520)
    org.jruby.RubyBasicObject.send19(RubyBasicObject.java:1599)
    org.jruby.RubyKernel.send19(RubyKernel.java:1996)
    org.jruby.RubyKernel$INVOKER$s$send19.call(RubyKernel$INVOKER$s$send19.gen)
    org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:380)
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:313)
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:290)
    org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:77)
    org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:122)
    org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)
    org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:67)
    org.jruby.runtime.Block.yieldSpecific(Block.java:116)
    org.jruby.ir.runtime.IRRuntimeHelpers.yieldSpecific(IRRuntimeHelpers.java:457)
    org.jruby.ir.instructions.YieldInstr.interpret(YieldInstr.java:72)
    org.jruby.ir.interpreter.InterpreterEngine.processOtherOp(InterpreterEngine.java:506)
    org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:177)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.INTERPRET_METHOD(InterpretedIRMethod.java:118)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:109)
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:273)
    org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
    org.jruby.ir.instructions.CallBase.interpret(CallBase.java:419)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:322)
    org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:77)
    org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:122)
    org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)
    org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:67)
    org.jruby.runtime.Block.yieldSpecific(Block.java:116)
    org.jruby.ir.runtime.IRRuntimeHelpers.yieldSpecific(IRRuntimeHelpers.java:457)
    org.jruby.ir.instructions.YieldInstr.interpret(YieldInstr.java:72)
    org.jruby.ir.interpreter.InterpreterEngine.processOtherOp(InterpreterEngine.java:506)
    org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:177)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.INTERPRET_METHOD(InterpretedIRMethod.java:118)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:109)
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:273)
    org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
    org.jruby.ir.instructions.CallBase.interpret(CallBase.java:419)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:322)
    org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:77)
    org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:122)
    org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)
    org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:67)
    org.jruby.runtime.Block.yieldSpecific(Block.java:116)
    org.jruby.ir.runtime.IRRuntimeHelpers.yieldSpecific(IRRuntimeHelpers.java:457)
    org.jruby.ir.instructions.YieldInstr.interpret(YieldInstr.java:72)
    org.jruby.ir.interpreter.InterpreterEngine.processOtherOp(InterpreterEngine.java:506)
    org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:177)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.INTERPRET_METHOD(InterpretedIRMethod.java:118)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:109)
    org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:77)
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
    org.jruby.ir.instructions.CallBase.interpret(CallBase.java:419)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:322)
    org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:155)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.INTERPRET_METHOD(InterpretedIRMethod.java:118)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:109)
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:273)
    org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
    org.jruby.ir.instructions.CallBase.interpret(CallBase.java:419)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:322)
    org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:155)
    org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:77)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.INTERPRET_METHOD(InterpretedIRMethod.java:147)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:138)
    org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:189)
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:293)
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:306)
    org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:155)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.INTERPRET_METHOD(InterpretedIRMethod.java:118)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:109)
    org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:77)
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
    org.jruby.ir.instructions.CallBase.interpret(CallBase.java:419)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:322)
    org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:155)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.INTERPRET_METHOD(InterpretedIRMethod.java:118)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:109)
    org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:77)
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
    org.jruby.ir.instructions.CallBase.interpret(CallBase.java:419)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:322)
    org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:77)
    org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:122)
    org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)
    org.jruby.runtime.IRBlockBody.doYield(IRBlockBody.java:152)
    org.jruby.runtime.BlockBody.yield(BlockBody.java:77)
    org.jruby.runtime.Block.yield(Block.java:147)
    org.jruby.RubyArray.each(RubyArray.java:1560)
    org.jruby.RubyArray$INVOKER$i$0$0$each.call(RubyArray$INVOKER$i$0$0$each.gen)
    org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMethod.java:494)
    org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:77)
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
    org.jruby.ir.instructions.CallBase.interpret(CallBase.java:419)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:322)
    org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:77)
    org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:122)
    org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)
    org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:67)
    org.jruby.runtime.Block.yieldSpecific(Block.java:116)
    org.jruby.ir.runtime.IRRuntimeHelpers.yieldSpecific(IRRuntimeHelpers.java:457)
    org.jruby.ir.instructions.YieldInstr.interpret(YieldInstr.java:72)
    org.jruby.ir.interpreter.InterpreterEngine.processOtherOp(InterpreterEngine.java:506)
    org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:177)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.INTERPRET_METHOD(InterpretedIRMethod.java:118)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:109)
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:273)
    org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
    org.jruby.ir.instructions.CallBase.interpret(CallBase.java:419)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:322)
    org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:77)
    org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.INTERPRET_METHOD(InterpretedIRMethod.java:179)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:166)
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:323)
    org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:173)
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:177)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:299)
    org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:77)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.INTERPRET_METHOD(InterpretedIRMethod.java:122)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:109)
    org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuper(IRRuntimeHelpers.java:903)
    org.jruby.ir.instructions.InstanceSuperInstr.interpret(InstanceSuperInstr.java:69)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:322)
    org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:77)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.INTERPRET_METHOD(InterpretedIRMethod.java:122)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:109)
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:273)
    org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
    org.jruby.ir.instructions.CallBase.interpret(CallBase.java:419)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:322)
    org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:77)
    org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:122)
    org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)
    org.jruby.runtime.IRBlockBody.doYield(IRBlockBody.java:152)
    org.jruby.runtime.BlockBody.yield(BlockBody.java:77)
    org.jruby.runtime.Block.yield(Block.java:147)
    org.jruby.RubyArray.collect(RubyArray.java:2286)
    org.jruby.RubyArray.map19(RubyArray.java:2300)
    org.jruby.RubyArray$INVOKER$i$0$0$map19.call(RubyArray$INVOKER$i$0$0$map19.gen)
    org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMethod.java:494)
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:273)
    org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
    org.jruby.ir.instructions.CallBase.interpret(CallBase.java:419)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:322)
    org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:77)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.INTERPRET_METHOD(InterpretedIRMethod.java:122)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:109)
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:273)
    org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
    org.jruby.ir.instructions.CallBase.interpret(CallBase.java:419)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:322)
    org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:77)
    org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.INTERPRET_METHOD(InterpretedIRMethod.java:179)
    org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:166)
    org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:197)
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:313)
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
    org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:290)
    org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:77)
    org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:122)
    org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)
    org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:59)
    org.jruby.runtime.Block.call(Block.java:106)
    org.jruby.RubyProc.call(RubyProc.java:334)
    org.jruby.RubyProc.call(RubyProc.java:240)
    org.jruby.Ruby.tearDown(Ruby.java:3238)
    org.jruby.Ruby.tearDown(Ruby.java:3211)
    org.jruby.Main.internalRun(Main.java:308)
    org.jruby.Main.run(Main.java:233)
    org.jruby.Main.main(Main.java:200)

However, all the tests pass just fine when I only run the tests in the file ruby -Itest /rails/actionview/test/template/form_helper_test.rb

Let me know if I can help in anyway! I'll be happy to help debug but I'm not sure where to start :(

@enebo
Copy link
Member

enebo commented Oct 30, 2015

@tgxworld Is this master of Rails or a specific version?

@tgxworld
Copy link
Author

Opps Rails master. Sorry about that.

@kares
Copy link
Member

kares commented Jan 17, 2017

... this is probably no longer valid, can it get closed?

@kares
Copy link
Member

kares commented Jan 20, 2017

definitely no longer relevant.

@kares kares closed this as completed Jan 20, 2017
@kares kares added this to the Invalid or Duplicate milestone Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants