LogWatchr on xruby for my real world performance articles

1 view
Skip to first unread message

pat eyler

unread,
Feb 7, 2008, 2:36:22 PM2/7/08
to xruby...@groups.google.com
I thought I'd try to get LogWatchR running on the 0.3.2 release of XRuby
so I could start including it in my 'Real World Performance' series. Alas,
it fails right off the bat. Any clues about where I should start?


$ java -jar xruby-0.3.2.jar -c logwatcher.rb
$ java -jar xruby-0.3.2.jar logwatcher.jar < 20_minute_log
Exception in thread "main" line 1:3: unexpected char: 0x3
at com.xruby.compiler.parser.RubyLexerBase.nextToken(RubyLexerBase.java:451)
at com.xruby.compiler.parser.RubyLexer.getNextTokenFromStream(RubyLexer.java:148)
at com.xruby.compiler.parser.RubyLexer._nextToken(RubyLexer.java:154)
at com.xruby.compiler.parser.RubyLexer.nextToken(RubyLexer.java:85)
at xruby.antlr.TokenBuffer.fill(TokenBuffer.java:69)
at xruby.antlr.TokenBuffer.LA(TokenBuffer.java:80)
at xruby.antlr.LLkParser.LA(LLkParser.java:52)
at com.xruby.compiler.parser.RubyParserBase.methodCall(RubyParserBase.java:9293)
at com.xruby.compiler.parser.RubyParserBase.unaryExpression(RubyParserBase.java:9212)
at com.xruby.compiler.parser.RubyParserBase.dotColonOrArrayAccess(RubyParserBase.java:2165)
at com.xruby.compiler.parser.RubyParserBase.command(RubyParserBase.java:8775)
at com.xruby.compiler.parser.RubyParserBase.bnotExpression(RubyParserBase.java:8703)
at com.xruby.compiler.parser.RubyParserBase.powerExpression(RubyParserBase.java:8425)
at com.xruby.compiler.parser.RubyParserBase.multiplicativeExpression(RubyParserBase.java:8146)
at com.xruby.compiler.parser.RubyParserBase.additiveExpression(RubyParserBase.java:7949)
at com.xruby.compiler.parser.RubyParserBase.shiftExpression(RubyParserBase.java:7752)
at com.xruby.compiler.parser.RubyParserBase.andExpression(RubyParserBase.java:7649)
at com.xruby.compiler.parser.RubyParserBase.orExpression(RubyParserBase.java:7452)
at com.xruby.compiler.parser.RubyParserBase.relationalExpression(RubyParserBase.java:7091)
at com.xruby.compiler.parser.RubyParserBase.equalityExpression(RubyParserBase.java:6566)
at com.xruby.compiler.parser.RubyParserBase.logicalAndExpression(RubyParserBase.java:6463)
at com.xruby.compiler.parser.RubyParserBase.logicalOrExpression(RubyParserBase.java:6360)
at com.xruby.compiler.parser.RubyParserBase.rangeExpression(RubyParserBase.java:6163)
at com.xruby.compiler.parser.RubyParserBase.assignmentExpression(RubyParserBase.java:4897)
at com.xruby.compiler.parser.RubyParserBase.ternaryIfThenElseExpression(RubyParserBase.java:4699)
at com.xruby.compiler.parser.RubyParserBase.notExpression(RubyParserBase.java:4680)
at com.xruby.compiler.parser.RubyParserBase.andorExpression(RubyParserBase.java:4335)
at com.xruby.compiler.parser.RubyParserBase.expression(RubyParserBase.java:1329)
at com.xruby.compiler.parser.RubyParserBase.statementWithoutModifier(RubyParserBase.java:855)
at com.xruby.compiler.parser.RubyParserBase.statement(RubyParserBase.java:466)
at com.xruby.compiler.parser.RubyParserBase.statements(RubyParserBase.java:421)
at com.xruby.compiler.parser.RubyParserBase.compoundStatement(RubyParserBase.java:363)
at com.xruby.compiler.parser.RubyParserBase.program(RubyParserBase.java:172)
at com.xruby.compiler.parser.RubyParser.createAST(RubyParser.java:39)
at com.xruby.compiler.parser.RubyParser.parse(RubyParser.java:45)
at com.xruby.compiler.RubyCompiler.compile(RubyCompiler.java:113)
at com.xruby.compiler.RubyCompiler.compileSingleFile(RubyCompiler.java:100)
at com.xruby.compiler.RubyCompiler.compileFile(RubyCompiler.java:69)
at com.xruby.Main.compile(Main.java:105)
at com.xruby.Main.run(Main.java:64)
at com.xruby.Main.main(Main.java:156)

--
thanks,
-pate
-------------------------
Duty makes us do things, Love make us do things well.
http://on-ruby.blogspot.com http://on-erlang.blogspot.com
http://on-soccer.blogspot.com

Xue Yong Zhi

unread,
Feb 7, 2008, 7:52:37 PM2/7/08
to xruby...@googlegroups.com
Hey pat,
 
Thank you for reporting the issue. The problem is xruby is not following c ruby correctly with command line processing, it tried to run '20_minute_log' as a ruby program.

Recently all xruby team members, including myself, have been busy with other stuffs and made little progress in recent two months. We may not be able to fix the problems of running logwatcher.rb promptly. I am sorry about that.
Reply all
Reply to author
Forward
0 new messages