have a look at the last section of
http://github.com/mkristian/ixtlan/blob/master/ixtlan-core/lib/ixtlan/monkey_patches.rb

that should fix your problem.

regards Kristian

On Mar 30, 12:08 am, George <[email protected]> wrote:
> Does anyone have a solution or workaround for a getBackRef error when
> running datamapper on windows jruby?
>
> "DummyDynamicScope.java:49:in `getBackRef':
> java.lang.RuntimeException: DummyDynamicScope should never be used for
> backref storage ..."
>
> More info here but I didn't spot a way around 
> it:http://jira.codehaus.org/browse/JRUBY-3765
>
> I get the error when running rspec tests using the is_valid matcher.
> (Running this command: jruby -X-C -S rake spec SPEC=spec/models/
> pnr_spec.rb)
> It's enough to kill the testing and prevent any further tests from
> running.
> (And models cannot be saved either because they can cause the same
> error when calling .valid?)
> Does not happen on all models. Just some, and only in some tests!
>
> Are there any jruby switches etc that can work around this problem?
> Many thanks,
> George

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to