Yeah he is looking at this already....
-Tom
On Fri, 14 Jul 2006, Tim Azzopardi defenestrated me:
> Probably run the testErraticBehavior script 50 times. No fails yet.. Then I
> resynced with trunk.
>
> Now I get this ...
>
> C:\dev\jruby\jruby\test>jruby aaa.rb
> Using CLASSPATH:
> C:\dev\jruby\jruby\lib\jvyaml.jar;C:\dev\jruby\jruby\lib\plaincharset.jar;C:\dev\jruby\jruby\lib\asm-2.2.2.jar;C:\dev\jruby\jruby\lib\jvyaml.
> ar;C:\dev\jruby\jruby\lib\plaincharset.jar;C:\dev\jruby\jruby\build\classes\test;C:\dev\jruby\jruby\build\classes\jruby;C:\dev\DynamicFun\AntBuilder\leafcutter
> jar;C:\apps\jdk1.5.0_05\lib\tools.jar;
> Loaded suite aaa
> org.jruby.runtime.ThreadContext.yield(ThreadContext.java:366):
> java.lang.NullPointerException: null (NativeException)
> from org.jruby.runtime.ThreadContext.yield(ThreadContext.java:320)
> from org.jruby.runtime.ThreadContext.yield(ThreadContext.java:316)
> from org.jruby.RubyArray.each(RubyArray.java:700)
> from sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
> ...
>
>
> Rolling back to previous revision of ThreadContext and Frame fixes this.
> Over to you Charles...
> require 'rexml/document'
> require 'test/unit'
> class ErraticRestTest < Test::Unit::TestCase
>
> TEST_XML = <<-EOF
> <?xml version='1.0'?><sites >
> <site code='333' href='11047000000' />
> </sites>
> EOF
>
>
> def testErraticBehavior
> 1000.times{|count|
> document = REXML::Document.new(TEST_XML)
> raise "HACK[A#{count}]" if 1 != document.get_elements('/sites/[EMAIL
> PROTECTED]').size
> begin
> raise "HACK[C#{count}" if !REXML::XPath.match(document,
> '/sites/[EMAIL PROTECTED]/@href')
> rescue => e
> p e
> raise "HACK[B#{count}]"
> end
> }
> end
> end
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Jruby-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jruby-devel
--
+ http://www.tc.umn.edu/~enebo +---- mailto:[EMAIL PROTECTED] ----+
| Thomas E Enebo, Protagonist | "Luck favors the prepared |
| | mind." -Louis Pasteur |
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jruby-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jruby-devel