Sorry for the dupes, GMail was doing a Reply to All instead of just a Reply.

I've just tried running the small example from the web interface in a
vanilla Ruote install and it works correctly. I've also tried running on a
minimal environment based on our runtime environment and it works too. So my
guess is that it has something to do with the way we're setting up our
production Ruote. My money is on ActiveSupport which has bitten us
previously (and which I need since I'm using ActiveRecord).

I surrounded the offending return statements with begin..rescue blocks and
added pp's to get the output of the commands. It seems that you're right,
Rufus::Json.decode is NOT throwing an exception as it should, it's just
returning the String it's passed in (i.e., the filename)

Diving into Rufus::Json it looks like the backend it's using is the
ActiveSupport::JSON decoder, and ActiveSupport::JSON.decode is actually
returning the entered String instead of throwing an exception. Weird thing
is, if I go to a vanilla Ruote/RuoteKit install and do a "require
'active_record'" in the config.ru, everything works fine. I've tried putting
it at the beginning, right before/after the "require 'rufus-json'" and at
the end.

At the moment I'm stumped....
-Mario.

--
I want to change the world but they won't give me the source code.


2011/3/17 Torsten Schönebaum <[email protected]>

> Mario Camou wrote:
>
> > As one more data point, if I comment the two return statements (the
> > XmlReader and the Json.decode)
>
> To what does those two evaluate? I suspect Json.decode(definition) to
> not throw an exception though it should.
>
> > the call to the subprocess gets parsed and
> > called. I'm getting a weird exception, though:
> >
> > #<SyntaxError: unknown regexp options - "dvl". near line 1:
> >
> "/Workflow/pdefs/XX-initialize-station.rb">["/home/devel/.gem/jruby/1.8/gems/ruby_parser-2.0.6/lib/ruby_lexer.rb:395:in
> > `rb_compile_error'",
>
> Sorry, I have no clues about jruby, I can't help with that.
>
> Sorry for the troubles,
> Torsten
>
> --
> you received this message because you are subscribed to the "ruote users"
> group.
> to post : send email to [email protected]
> to unsubscribe : send email to
> [email protected]
> more options : http://groups.google.com/group/openwferu-users?hl=en
>

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to