NPE when loading file in tzinfo (used by ActiveSupport)
-------------------------------------------------------
Key: JRUBY-3188
URL: http://jira.codehaus.org/browse/JRUBY-3188
Project: JRuby
Issue Type: Bug
Reporter: Nick Sieger
Assignee: Thomas E Enebo
With a recent copy of Rails master, do:
{noformat}
jruby -I activesupport/lib/active_support/vendor/tzinfo-0.3.12 -e 'load
"tzinfo/definitions/Asia/Ulaanbaatar.rb"'
{noformat}
You see:
{noformat}
org.jruby.ast.IfNode:107:in `interpret': java.lang.NullPointerException
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.ast.BlockNode:68:in `interpret'
from org.jruby.runtime.InterpretedBlock:202:in `evalBlockBody'
from org.jruby.runtime.InterpretedBlock:153:in `yield'
from org.jruby.runtime.Block:116:in `yield'
from org.jruby.RubyInteger:172:in `downto'
from org.jruby.RubyInteger$i_method_1_0$RUBYFRAMEDINVOKER$downto:-1:in
`call'
from org.jruby.runtime.callsite.CachingCallSite:290:in `cacheAndCall'
from org.jruby.runtime.callsite.CachingCallSite:126:in `call'
from org.jruby.ast.CallOneArgBlockNode:60:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.ast.BlockNode:68:in `interpret'
from org.jruby.ast.IfNode:108:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.ast.BlockNode:68:in `interpret'
from org.jruby.internal.runtime.methods.DefaultMethod:165:in
`interpretedCall'
from org.jruby.internal.runtime.methods.DefaultMethod:142:in `call'
from org.jruby.internal.runtime.methods.DefaultMethod:192:in `call'
from org.jruby.runtime.callsite.CachingCallSite:250:in `cacheAndCall'
from org.jruby.runtime.callsite.CachingCallSite:34:in `call'
from org.jruby.ast.CallManyArgsNode:59:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.ast.BlockNode:68:in `interpret'
from org.jruby.runtime.InterpretedBlock:202:in `evalBlockBody'
from org.jruby.runtime.InterpretedBlock:190:in `yield'
from org.jruby.runtime.Block:129:in `yield'
from org.jruby.ast.YieldNode:95:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.internal.runtime.methods.DefaultMethod:165:in
`interpretedCall'
from org.jruby.internal.runtime.methods.DefaultMethod:142:in `call'
from org.jruby.internal.runtime.methods.DefaultMethod:276:in `call'
from org.jruby.runtime.callsite.CachingCallSite:290:in `cacheAndCall'
from org.jruby.runtime.callsite.CachingCallSite:141:in `callIter'
from org.jruby.ast.FCallOneArgBlockNode:33:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.ast.BlockNode:68:in `interpret'
from org.jruby.evaluator.ASTInterpreter:224:in `evalClassDefinitionBody'
from org.jruby.ast.ModuleNode:117:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.evaluator.ASTInterpreter:224:in `evalClassDefinitionBody'
from org.jruby.ast.ModuleNode:117:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.evaluator.ASTInterpreter:224:in `evalClassDefinitionBody'
from org.jruby.ast.ModuleNode:117:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.evaluator.ASTInterpreter:224:in `evalClassDefinitionBody'
from org.jruby.ast.ModuleNode:117:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.ast.BlockNode:68:in `interpret'
from org.jruby.ast.RootNode:126:in `interpret'
from org.jruby.Ruby:2162:in `loadFile'
from org.jruby.runtime.load.ExternalScript:58:in `load'
from org.jruby.runtime.load.LoadService:249:in `load'
from org.jruby.RubyKernel:846:in `load'
from org.jruby.RubyKernel$s_method_0_1$RUBYFRAMEDINVOKER$load:-1:in
`call'
from org.jruby.internal.runtime.methods.DynamicMethod:243:in `call'
from org.jruby.internal.runtime.methods.DynamicMethod:152:in `call'
from org.jruby.runtime.callsite.CachingCallSite:280:in `cacheAndCall'
from org.jruby.runtime.callsite.CachingCallSite:116:in `call'
from ruby.__dash_e__:1:in `__file__'
from ruby.__dash_e__:-1:in `__file__'
from ruby.__dash_e__:-1:in `load'
from org.jruby.Ruby:561:in `runScript'
from org.jruby.Ruby:464:in `runNormally'
from org.jruby.Ruby:338:in `runFromMain'
from org.jruby.Main:214:in `run'
from org.jruby.Main:100:in `run'
from org.jruby.Main:84:in `main'
{noformat}
--
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