[
https://issues.apache.org/jira/browse/CXF-1217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary Tully updated CXF-1217:
----------------------------
Attachment: busShutdownTest.patch.txt
This patch contains a broken system test that uses a bus, shutsdown the bus and
attempts to reuse the bus with the same server http url. The client in the test
hangs on the second invocation.
I think this test represents a valid expection that should work out of the box
for CXF. bus.shutdown should leave the JVM in the state that it was before bus
initialisation, pending gc.
The test fails repeatidly for me on XP both in eclipse and with mvn.
Both using a different server side port on the second run and using the system
property org.apache.cxf.transports.http_jetty.DontClosePort work to make the
test pass but IMHO both should not be necessary.
Working through this test case may help to provide the real culprit that is
responsible for the introduction of
org.apache.cxf.transports.http_jetty.DontClosePort.
Ps: Benson, I don't mean to hijack this bug report, I just want to focus the
issue. I think the system property workaround is really overkill and
problematic from a test perspective as it is a system global.
> Address in use errors from attempt to repeatedly start and stop services
> ------------------------------------------------------------------------
>
> Key: CXF-1217
> URL: https://issues.apache.org/jira/browse/CXF-1217
> Project: CXF
> Issue Type: Bug
> Components: Transports
> Affects Versions: 2.1
> Environment: Any
> Reporter: Benson Margulies
> Attachments: busShutdownTest.patch.txt
>
>
> Edit org.apache.cxf.javascript.JsHttpRequestTest to take out the
> @org.junit.Ignore from the test case that has one, and run from eclipse.
> Watch the logging traffic. Observe:
> WARNING: failed [EMAIL PROTECTED]
> java.net.BindException: Address already in use: bind
> at sun.nio.ch.Net.bind(Native Method)
> which eventually, as far as I can tell, turns into:
> INFO: doOpen POST http://localhost:8808/Greeter false
> Nov 18, 2007 10:07:08 PM org.apache.cxf.javascript.JsXMLHttpRequest
> communicate
> SEVERE: IO error reading response
> java.io.FileNotFoundException: http://localhost:8808/Greeter
> On the other hand, all is well in Eclipse.
> I will probably commit a workaround to this soon, so it would be good to move
> this muddle to its own test case.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.