Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JaxWsPortClientInterceptor gives errors with wsdl service names, not actual endpoints [SPR-6971] #11636

Closed
spring-projects-issues opened this issue Mar 11, 2010 · 1 comment
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Karl Palsson opened SPR-6971 and commented

the doInvoke() method on JaxWsPortClientInterceptor throws the following exception when it can't connect to the remote service...

org.springframework.remoting.RemoteAccessException: Could not access remote service at [{http://blah.namespace.company/services/more/namespace/cruft/}MyServiceSOAP]; nested exception is com.sun.xml.ws.client.ClientTransportException: HTTP transport error: java.net.ConnectException: Connection refused: connect

This is not overly helpful with working out why you get a http connect failure. Moreover, it's a fixed string. I know very well what the namespace is, I wrote the wsdl. And even if I hadn't, I know from the stack trace what service I'm calling, I don't need this in the error.

It would be much nicer if it did this instead...

org.springframework.remoting.RemoteAccessException: Could not access remote service at http://localhost:9010/webapp/services/MyService; nested exception is com.sun.xml.ws.client.ClientTransportException: HTTP transport error: java.net.ConnectException: Connection refused: connect

Where it clearly shows what it couldn't connect to.

Simply change the error building to use this.getEndpointAddress() instead of this.portQName and we'll all be much better informed, and therefore happier.


Affects: 3.0.1

Referenced from: commits eee72c5

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Good point! As of Spring 3.0.2, we're including the actual endpoint address in the connect failure exception message.

Juergen

@spring-projects-issues spring-projects-issues added type: enhancement A general enhancement in: web Issues in web modules (web, webmvc, webflux, websocket) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0.2 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants