You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sebastien Arbogast <se...@gmail.com> on 2005/05/26 16:17:58 UTC

Callling MapPoint WebService

Hi,

I'm trying to figure out a way to access a location web service for my
web application. I just discovered MapPoint Web Service so I got an
evaluation account and I tried to execute the last sample on this page
: http://demo.mappoint.net/, which uses Axis 1.2 RC2

I got the application running but it couldn't connect to the Web
Service and displayed an error dialog box. I just added a debugging
instruction to know what was this exception and I got the following
exception stack trace :

AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultString: java.io.IOException
faultActor: null
faultDetail:
stackTrace: java.io.IOException
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:602)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSender.java:99)
at SimpleHTTPSender.invoke(SimpleHTTPSender.java:60)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
at org.apache.axis.client.Call.invokeEngine(Call.java:2113)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1851)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at net.mappoint.s.RenderServiceSoapStub.getMap(RenderServiceSoapStub.java:986)
at MapDisplay.renderMap(MapDisplay.java:295)
at MapDisplay.reshape(MapDisplay.java:255)
at java.awt.Component.setBounds(Component.java:1664)
at java.awt.BorderLayout.layoutContainer(BorderLayout.java:691)
at java.awt.Container.layout(Container.java:1020)
at java.awt.Container.doLayout(Container.java:1010)
at java.awt.Container.validateTree(Container.java:1092)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validate(Container.java:1067)
at java.awt.Window.show(Window.java:461)
at MainWindow.main(MainWindow.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:7Cool
Caused by: java.net.ProtocolException: Server redirected too many times (20)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:809)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1465)
at java.net.URLConnection.getContentType(URLConnection.java:382)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSender.java:94)
... 29 more


java.io.IOException
at org.apache.axis.AxisFault.makeFault(AxisFault.java:120)
at SimpleHTTPSender.invoke(SimpleHTTPSender.java:63)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
at org.apache.axis.client.Call.invokeEngine(Call.java:2113)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1851)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at net.mappoint.s.RenderServiceSoapStub.getMap(RenderServiceSoapStub.java:986)
at MapDisplay.renderMap(MapDisplay.java:295)
at MapDisplay.reshape(MapDisplay.java:255)
at java.awt.Component.setBounds(Component.java:1664)
at java.awt.BorderLayout.layoutContainer(BorderLayout.java:691)
at java.awt.Container.layout(Container.java:1020)
at java.awt.Container.doLayout(Container.java:1010)
at java.awt.Container.validateTree(Container.java:1092)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validate(Container.java:1067)
at java.awt.Window.show(Window.java:461)
at MainWindow.main(MainWindow.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:7Cool
Caused by: java.io.IOException
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:602)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSender.java:99)
at SimpleHTTPSender.invoke(SimpleHTTPSender.java:60)
... 28 more
Caused by: java.net.ProtocolException: Server redirected too many times (20)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:809)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1465)
at java.net.URLConnection.getContentType(URLConnection.java:382)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSender.java:94)
... 29 more

Does anyone know where this exception come from and how I can get this
sample up and running ?

Thx in advance. 
-- 
Sebastien ARBOGAST