Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JAX-WS Deadlock

CaptainGoldfishMay 14 2014 — edited May 17 2014

Hey guys,

I'm trying to communicate with a test-WebService via soap. The problem is, that my code (only 5 lines long) results in a deadlock. Up to now I had no luck reporting this at stackoverflow and another java forum, so I hope that someone here can help.

I use the following wsdl and created the corresponding files with:

wsimport -keep -extension http://ars-fiverx.de:8445/WsEchoService.svc?wsdl

my Code then looks as follows.

        URL url = new URL("http://ars-fiverx.de:8445/WsEchoService.svc?wsdl");

        QName qname = new QName("http://tempuri.org/", "WsEchoService");

        Service service = Service.create(url,qname);

        IWsEchoService iWsEchoService = service.getPort(IWsEchoService.class);

        // deadlock comes with call to sysout.

        System.out.println(iWsEchoService.echo());

For testing I pushed the request onto a proxy to watch what exactly is happening. My client sends a GET-Request to the server and the server responds. But that's it. No termination no further responding - deadlock.

The link is currently available and anyone should be able to reproduce this error. I tried it also without proxy, I tried it from another computer with an another environment and I have absolutely ne idea what actually is happening.

hope that someone is able to help... almost lost hope on this issue.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 14 2014
Added on May 14 2014
11 comments
4,566 views