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/

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.getInp utStream(HttpURLConnection.java:602)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSend er.java:99)
at SimpleHTTPSender.invoke(SimpleHTTPSender.java:60)
at org.apache.axis.strategies.InvocationStrategy.visi t(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain .java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.jav a:126)
at org.apache.axis.client.AxisClient.invoke(AxisClien t.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(Render ServiceSoapStub.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:109 2)
at java.awt.Container.validateTree(Container.java:109 9)
at java.awt.Container.validateTree(Container.java:109 9)
at java.awt.Container.validateTree(Container.java:109 9)
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(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main (AppMain.java:7
Caused by: java.net.ProtocolException: Server redirected too many times (20)
at sun.net.www.protocol.http.HttpURLConnection.getInp utStream(HttpURLConnection.java:809)
at sun.net.www.protocol.http.HttpURLConnection.getHea derField(HttpURLConnection.java:1465)
at java.net.URLConnection.getContentType(URLConnectio n.java:382)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSend er.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.visi t(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain .java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.jav a:126)
at org.apache.axis.client.AxisClient.invoke(AxisClien t.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(Render ServiceSoapStub.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:109 2)
at java.awt.Container.validateTree(Container.java:109 9)
at java.awt.Container.validateTree(Container.java:109 9)
at java.awt.Container.validateTree(Container.java:109 9)
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(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main (AppMain.java:7
Caused by: java.io.IOException
at sun.net.www.protocol.http.HttpURLConnection.getInp utStream(HttpURLConnection.java:602)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSend er.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.getInp utStream(HttpURLConnection.java:809)
at sun.net.www.protocol.http.HttpURLConnection.getHea derField(HttpURLConnection.java:1465)
at java.net.URLConnection.getContentType(URLConnectio n.java:382)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSend er.java:94)
... 29 more
So I know that Microsoft and Java are not always the best pair, but I can't do anything else, it's part of my project constraints : I have to use Java so...

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

Thx in advance.

daneel