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 Thu, 07 Aug 2008 13:10:39 GMT
On Thursday 07 August 2008 7:34:49 am Benson Margulies wrote:
> I got swamped. I'll get there eventually.

No problem.   I through a System.gc() in there and the problem became much 
less apparent so it isn't bothing me as much.  :-)   Maybe 10% from top 
level.   It's probably not really related to the gc(), but more due to an 
extra wait for ports to close or something.   Don't really know.  

Dan


> On Wed, Aug 6, 2008 at 12:45 PM, Benson Margulies 
<bimargulies@gmail.com>wrote:
> > The recent change of possible relevance is to make asynchronous
> > operations against the simulated browser be really asynchronous.
> >
> > This particular test is the one I labored over for the woman who ran into
> > the multiple request issue, so sadly it's unlikely to be suffering from
> > some trivial problem.
> >
> > I'll dig into it this evening.
> >
> > There's lots of logging to turn on...
> >
> > 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:3
> >>350) at
> >>
> >> org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3
> >>340) 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:3
> >>394) at
> >>
> >> org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntim
> >>e.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(JavascriptTestUt
> >>ilities.java:226) at
> >>
> >> org.apache.cxf.javascript.JavascriptTestUtilities.runInsideContext(Javas
> >>criptTestUtilities.java:199) at
> >>
> >> org.apache.cxf.javascript.JavascriptTestUtilities.rhinoEvaluate(Javascri
> >>ptTestUtilities.java:224) at
> >>
> >> org.apache.cxf.javascript.JavascriptTestUtilities.rhinoEvaluateConvert(J
> >>avascriptTestUtilities.java:287) at
> >>
> >> org.apache.cxf.javascript.GreeterClientTest.sayHiClosureCaller(GreeterCl
> >>ientTest.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(Javas
> >>criptTestUtilities.java:199) at
> >>
> >> org.apache.cxf.javascript.GreeterClientTest.testRequestClosure(GreeterCl
> >>ientTest.java:107) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> Method) at
> >>
> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> >>a:39) at
> >>
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> >>Impl.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:
> >>98) at
> >> org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
> >>        at
> >>
> >> org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(Met
> >>hodRoadie.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(JUnit4Clas
> >>sRunner.java:88) at
> >>
> >> org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunne
> >>r.java:51) at
> >>
> >> org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.jav
> >>a:44) at
> >> org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:2
> >>7) at
> >> org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
> >>        at
> >>
> >> org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:
> >>42) at
> >>
> >> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.jav
> >>a:62) at
> >>
> >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSe
> >>t(AbstractDirectoryTestSuite.java:140) at
> >>
> >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Abstr
> >>actDirectoryTestSuite.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.jav
> >>a:39) at
> >>
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> >>Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585)
> >>        at
> >>
> >> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Suref
> >>ireBooter.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