cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor" <jga...@gmail.com>
Subject Re: JMS unit tests
Date Fri, 09 Feb 2007 21:59:03 GMT
I think there is some kind of a race condition in the JMS tests. Maybe
the server gets shutdown before the client gets to send its message. I
ran it a few times in a row. Sometimes they failed, sometimes they
passed.

Here's the full stack trace of one of the exceptions:

java.io.IOException: javax.jms.JMSException: Could not connect to broker URL: tc
p://localhost:61500. Reason: java.net.ConnectException: Connection refused: conn
ect
        at org.apache.cxf.transport.jms.JMSConduit.send(JMSConduit.java:90)
        at org.apache.cxf.transport.jms.AbstractJMSTester.sendoutMessage(Abstrac
tJMSTester.java:83)
        at org.apache.cxf.transport.jms.JMSDestinationTest.testOneWayDestination
(JMSDestinationTest.java:142)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.extensions.TestSetup.run(TestSetup.java:25)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBatt
ery.java:242)
        at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.j
ava:216)
        at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:63)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.maven.surefire.SurefireBooter.main(SurefireBooter.java:785
)

I'm running this on Windows XP, dual core processor.

Jarek

On 2/9/07, Dan Diephouse <dan@envoisolutions.com> wrote:
> The unit tests should set up the server automatically. Maybe you have
> something on that port or have a firewall blocking it? Which test is this?
> - Dan
>
> On 2/9/07, Jarek Gawor <jgawor@gmail.com> wrote:
> >
> > Quick question: the JMS unit tests require an external server to be
> > running in background in order for them to pass?
> >
> > Here's what I'm seeing:
> >
> > java.io.IOException: javax.jms.JMSException: Could not connect to broker
> > URL: tc
> > p://localhost:61500. Reason: java.net.ConnectException: Connection
> > refused: conn
> > ect
> >         at org.apache.cxf.transport.jms.JMSConduit.send(JMSConduit.java
> > :90)
> >         at org.apache.cxf.transport.jms.AbstractJMSTester.sendoutMessage
> > (Abstrac
> > tJMSTester.java:83)
> >
> >
> > Jarek
> >
>
>
>
> --
> Dan Diephouse
> Envoi Solutions
> http://envoisolutions.com | http://netzooid.com/blog
>

Mime
View raw message