Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JRuby神秘堆栈跟踪_Ruby_Jruby_Stack Trace - Fatal编程技术网

JRuby神秘堆栈跟踪

JRuby神秘堆栈跟踪,ruby,jruby,stack-trace,Ruby,Jruby,Stack Trace,我正在我的一个项目中使用JRuby 1.4.0 complete jar。我通过exec任务从ant执行它: java -jar jruby1.4.0.jar script.rb script_params 问题是,在一些电脑上,我收到了这样的信息: [exec] Exception in thread "main" :1: no !/ in spec (IOError) [exec] ...internal jruby stack elided... [exec] from (u

我正在我的一个项目中使用JRuby 1.4.0 complete jar。我通过exec任务从ant执行它:

java -jar jruby1.4.0.jar script.rb script_params
问题是,在一些电脑上,我收到了这样的信息:

[exec] Exception in thread "main" :1: no !/ in spec (IOError)
[exec]    ...internal jruby stack elided...
[exec]    from (unknown).(unknown)(:1)

以前有人遇到过吗?我可以做些什么来获得更多信息的堆栈跟踪

尝试使用-d命令行开关运行,并查看是否会出现更详细的异常:

java -jar jruby1.4.0.jar -d script.rb script_params

谢谢你也在邮件列表上回复了,对吗?我先问这里再问那里。你能展示你剧本的前几行吗?