David Tunnell
David Tunnell

Reputation: 7542

Runtime error on the exact same code on a different computer

I am working with a relativly unknown API. (ScrumWorks Pro) I am using it to export data into a SQL database. My issue is that I have moved my eclipse project from one computer to another and it stopped working. It continues to run fine on the old computer but I am getting the following error

Exception in thread "main" javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://XXXXXXX:8080/scrumworks-api/api2/scrumworks?wsdl. It failed with: 
    Got Server returned HTTP response code: 503 for URL: http://XXXXXXXXXX:8080/scrumworks-api/api2/scrumworks?wsdl while opening stream from http://dxzbid01.zhi.com:8080/scrumworks-api/api2/scrumworks?wsdl.
    at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(Unknown Source)
    at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source)
    at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source)
    at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(Unknown Source)
    at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
    at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
    at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(Unknown Source)
    at javax.xml.ws.Service.<init>(Unknown Source)
    at javax.xml.ws.Service.create(Unknown Source)
    at com.danube.scrumworks.api2.ScrumWorksService.getConnection(ScrumWorksService.java:53)
    at main.connectAPI(main.java:69)
    at main.main(main.java:12)
Caused by: java.io.IOException: Got Server returned HTTP response code: 503 for URL: http://XXXXXXXXX:8080/scrumworks-api/api2/scrumworks?wsdl while opening stream from http://XXXXXXXXXXXXX.com:8080/scrumworks-api/api2/scrumworks?wsdl
    at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.createReader(Unknown Source)
    at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(Unknown Source)
    ... 11 more
Caused by: java.io.IOException: Server returned HTTP response code: 503 for URL: http://XXXXXXXXXXX:8080/scrumworks-api/api2/scrumworks?wsdl
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at java.net.URL.openStream(Unknown Source)
    ... 13 more

It looks like while it's running its failing to connect to the host. But it works completely fine with the exact same credentials on the other computer.

Upvotes: 1

Views: 1503

Answers (3)

David Tunnell
David Tunnell

Reputation: 7542

The problem was that the newer computer had a newer version of Java installed which broke parts of the API.

Upvotes: 0

goralsoft
goralsoft

Reputation: 71

make sure that url

http://XXXXXXXXXX:8080/scrumworks-api/api2/scrumworks?wsdl

is accessible, if not able to access the 8080 port, check your firewall settings in that machine (allow that 8080 port to accessible)

Upvotes: 0

Travis Webb
Travis Webb

Reputation: 15018

The magic words: Server returned HTTP response code: 503. The answer will be in your server logs.

From https://www.rfc-editor.org/rfc/rfc2616#section-10.5.4:

The server is currently unable to handle the request due to a 
temporary overloading or maintenance of the server.

Upvotes: 1

Related Questions