cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: Javascript test failure....
Date Mon, 11 Aug 2008 16:13:48 GMT
On Sunday 10 August 2008 4:06:06 pm Benson Margulies wrote:
> I see what the problem is here. I'm making an assumption about two things
> that might not happen in the order I expect. I'll try to think of some
> better way of handling it.

I think you nailed it.   I ran the test 20 times and it didn't fail for me at 
all.

Thanks for looking into it.

Dan



> On Tue, Aug 5, 2008 at 8:37 PM, Daniel Kulp <dkulp@apache.org> wrote:
> > Benson,
> >
> > I'm back on Linux again and I'm now seeing a somewhat random test failure
> > in
> > the javascript module. (50% failure when run top level, less so from
> > within the module)   I'm not sure what to make of it or what could be
> > causing it. It also doesn't seem to occur in eclipse so I'm not even sure
> > how I'd debug it.  :-(
> >
> > Any ideas?
> >
> > Stack trace:
> >
> > Running org.apache.cxf.javascript.GreeterClientTest
> > Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.547 sec
> > <<<
> > FAILURE!
> > testRequestClosure(org.apache.cxf.javascript.GreeterClientTest)  Time
> > elapsed:
> > 0.2 sec  <<< ERROR!
> > org.mozilla.javascript.EcmaError: TypeError: Cannot call
> > method "getResponseType" of null (<testcase>#1)
> >        at
> >
> > org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:33
> >50) at
> >
> > org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:33
> >40) at
> > org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
> >        at org.mozilla.javascript.ScriptRuntime.typeError2
> > (ScriptRuntime.java:3375)
> >        at
> >
> > org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:33
> >94) at
> >
> > org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime
> >.java:2026) at org.mozilla.javascript.optimizer.OptRuntime.callProp0
> > (OptRuntime.java:117)
> >        at org.mozilla.javascript.gen.c227._c0(<testcase>:1)
> >        at org.mozilla.javascript.gen.c227.call(<testcase>)
> >        at
> > org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
> >        at
> > org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
> >        at org.mozilla.javascript.gen.c227.call(<testcase>)
> >        at org.mozilla.javascript.gen.c227.exec(<testcase>)
> >        at
> > org.mozilla.javascript.Context.evaluateString(Context.java:1196) at
> >
> > org.apache.cxf.javascript.JavascriptTestUtilities$2.run(JavascriptTestUti
> >lities.java:226) at
> >
> > org.apache.cxf.javascript.JavascriptTestUtilities.runInsideContext(Javasc
> >riptTestUtilities.java:199) at
> >
> > org.apache.cxf.javascript.JavascriptTestUtilities.rhinoEvaluate(Javascrip
> >tTestUtilities.java:224) at
> >
> > org.apache.cxf.javascript.JavascriptTestUtilities.rhinoEvaluateConvert(Ja
> >vascriptTestUtilities.java:287) at
> >
> > org.apache.cxf.javascript.GreeterClientTest.sayHiClosureCaller(GreeterCli
> >entTest.java:96) at org.apache.cxf.javascript.GreeterClientTest.access$100
> > (GreeterClientTest.java:35)
> >        at
> >
> > org.apache.cxf.javascript.GreeterClientTest$2.run(GreeterClientTest.java:
> >109) at
> >
> > org.apache.cxf.javascript.GreeterClientTest$2.run(GreeterClientTest.java:
> >108) at
> >
> > org.apache.cxf.javascript.JavascriptTestUtilities.runInsideContext(Javasc
> >riptTestUtilities.java:199) at
> >
> > org.apache.cxf.javascript.GreeterClientTest.testRequestClosure(GreeterCli
> >entTest.java:107) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method) at
> >
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> >:39) at
> >
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
> >mpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585)
> >        at
> > org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59) at
> > org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:9
> >8) at
> > org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
> >        at
> >
> > org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(Meth
> >odRoadie.java:87) at
> > org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
> >        at
> > org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42) at
> >
> > org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4Class
> >Runner.java:88) at
> >
> > org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner
> >.java:51) at
> >
> > org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java
> >:44) at
> > org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27
> >) at
> > org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
> >        at
> > org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:4
> >2) at
> >
> > org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java
> >:62) at
> >
> > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet
> >(AbstractDirectoryTestSuite.java:140) at
> >
> > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Abstra
> >ctDirectoryTestSuite.java:127) at
> > org.apache.maven.surefire.Surefire.run(Surefire.java:177) at
> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> >
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> >:39) at
> >
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
> >mpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585)
> >        at
> >
> > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Surefi
> >reBooter.java:345) at
> >
> > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:
> >1009)
> >
> >
> > --
> > Daniel Kulp
> > dkulp@apache.org
> > http://www.dankulp.com/blog



-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Mime
View raw message