Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

java issue

This is a discussion on java issue within the MapPoint Desktop Discussion forums, part of the Map Forums category; i am new member for mappoint, now I meet some strange issue, can anyone help me? 1.I download the java ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    java issue

    i am new member for mappoint, now I meet some strange issue, can anyone help me?

    1.I download the java demo from demo.mappoint.net. Also, I modified STORES_DATASOURCE and STORES_ENTITYTYPE in StoreLocator.java, and I set user name and password in TestUnit.java, and I add client-config.wsdd in classpath. But when I run it, I get following exception:

    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.io.IOException
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace: java.io.IOException
    at sun.net.www.protocol.http.HttpURLConnection.getInp utStream(HttpURLConnection.java:593)
    at java_1_4.SimpleHTTPSender.readFromConnection(Simpl eHTTPSender.java:103)
    at java_1_4.SimpleHTTPSender.invoke(SimpleHTTPSender. java:64)
    at org.apache.axis.strategies.InvocationStrategy.visi t(InvocationStrategy.java:71)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain .java:150)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.jav a:120)
    at org.apache.axis.client.AxisClient.invoke(AxisClien t.java:180)
    at org.apache.axis.client.Call.invokeEngine(Call.java :2564)
    at org.apache.axis.client.Call.invoke(Call.java:2553)
    at org.apache.axis.client.Call.invoke(Call.java:224
    at org.apache.axis.client.Call.invoke(Call.java:2171)
    at org.apache.axis.client.Call.invoke(Call.java:1691)
    at net.mappoint.s.mappoint_30.FindServiceSoapStub.fin dNearby(FindServiceSoapStub.java:1151)
    at com.spatialpoint.mappoint.storelocator.StoreLocato r.calculateNearbyStores(StoreLocator.java:511)
    at com.spatialpoint.mappoint.storelocator.StoreLocato r.getNearbyStores(StoreLocator.java:1127)
    at TestUnit.testSOAPHeaders(TestUnit.java:71)
    at TestUnit.main(TestUnit.java:36)
    Caused by: java.net.ProtocolException: Server redirected too many times (20)
    at sun.net.www.protocol.http.HttpURLConnection.getInp utStream(HttpURLConnection.java:800)
    at sun.net.www.protocol.http.HttpURLConnection.getHea derField(HttpURLConnection.java:1451)
    at java.net.URLConnection.getContentType(URLConnectio n.java:382)
    at java_1_4.SimpleHTTPSender.readFromConnection(Simpl eHTTPSender.java:9
    ... 15 more

    and I monitor the soap message what i send, just like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlnssd="http://www.w3.org/2001/XMLSchema" xmlnssi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <FindNearby xmlns="http://s.mappoint.net/mappoint-30/">
    <specification>
    <DataSourceName>Onvantage.46555.aa</DataSourceName>
    <LatLong>
    <Latitude>0.0</Latitude>
    <Longitude>0.0</Longitude>
    </LatLong>
    <Distance>5.0</Distance>
    <Filter>
    <EntityTypeName>aa</EntityTypeName>
    </Filter>
    </specification>
    </FindNearby>
    </soapenv:Body>
    </soapenv:Envelope>

    can anyone tell me what is wrong about it ?

    2.I can use my user name and password to login in https://mappoint-css.partners.extran...oft.com/cscV3/, and config some data source. So the username and password is valid. But when I access http://findv3.staging.mappoint.net/F...ndService.asmx, it pop up a windows and ask me input username and password. I enter them which i used in https://mappoint-css.partners.extran...oft.com/cscV3/, but it is invalid ,why ?

    Thank in advanced.

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Re: java issue

    Quote Originally Posted by Anonymous
    i am new member for mappoint, now I meet some strange issue, can anyone help me?

    1.I download the java demo from demo.mappoint.net. Also, I modified STORES_DATASOURCE and STORES_ENTITYTYPE in StoreLocator.java, and I set user name and password in TestUnit.java, and I add client-config.wsdd in classpath. But when I run it, I get following exception:

    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.io.IOException
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace: java.io.IOException
    at sun.net.www.protocol.http.HttpURLConnection.getInp utStream(HttpURLConnection.java:593)
    at java_1_4.SimpleHTTPSender.readFromConnection(Simpl eHTTPSender.java:103)
    at java_1_4.SimpleHTTPSender.invoke(SimpleHTTPSender. java:64)
    at org.apache.axis.strategies.InvocationStrategy.visi t(InvocationStrategy.java:71)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain .java:150)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.jav a:120)
    at org.apache.axis.client.AxisClient.invoke(AxisClien t.java:180)
    at org.apache.axis.client.Call.invokeEngine(Call.java :2564)
    at org.apache.axis.client.Call.invoke(Call.java:2553)
    at org.apache.axis.client.Call.invoke(Call.java:224
    at org.apache.axis.client.Call.invoke(Call.java:2171)
    at org.apache.axis.client.Call.invoke(Call.java:1691)
    at net.mappoint.s.mappoint_30.FindServiceSoapStub.fin dNearby(FindServiceSoapStub.java:1151)
    at com.spatialpoint.mappoint.storelocator.StoreLocato r.calculateNearbyStores(StoreLocator.java:511)
    at com.spatialpoint.mappoint.storelocator.StoreLocato r.getNearbyStores(StoreLocator.java:1127)
    at TestUnit.testSOAPHeaders(TestUnit.java:71)
    at TestUnit.main(TestUnit.java:36)
    Caused by: java.net.ProtocolException: Server redirected too many times (20)
    at sun.net.www.protocol.http.HttpURLConnection.getInp utStream(HttpURLConnection.java:800)
    at sun.net.www.protocol.http.HttpURLConnection.getHea derField(HttpURLConnection.java:1451)
    at java.net.URLConnection.getContentType(URLConnectio n.java:382)
    at java_1_4.SimpleHTTPSender.readFromConnection(Simpl eHTTPSender.java:9
    ... 15 more

    and I monitor the soap message what i send, just like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlnssd="http://www.w3.org/2001/XMLSchema" xmlnssi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <FindNearby xmlns="http://s.mappoint.net/mappoint-30/">
    <specification>
    <DataSourceName>Onvantage.46555.aa</DataSourceName>
    <LatLong>
    <Latitude>0.0</Latitude>
    <Longitude>0.0</Longitude>
    </LatLong>
    <Distance>5.0</Distance>
    <Filter>
    <EntityTypeName>aa</EntityTypeName>
    </Filter>
    </specification>
    </FindNearby>
    </soapenv:Body>
    </soapenv:Envelope>

    can anyone tell me what is wrong about it ?

    2.I can use my user name and password to login in https://mappoint-css.partners.extran...oft.com/cscV3/, and config some data source. So the username and password is valid. But when I access http://findv3.staging.mappoint.net/F...ndService.asmx, it pop up a windows and ask me input username and password. I enter them which i used in https://mappoint-css.partners.extran...oft.com/cscV3/, but it is invalid ,why ?

    Thank in advanced.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mappoint WebService Issue with Axis
    By in.bharath in forum Bing Maps and MapPoint Web Service
    Replies: 1
    Last Post: 03-14-2006, 04:28 AM
  2. Moving Text Balloon Issue
    By mroyle in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-13-2005, 05:20 PM
  3. License issue for own Web application
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-29-2005, 02:54 PM
  4. vb6 server issue
    By starbuck in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-15-2004, 11:27 AM
  5. something like mappoint, but for java...
    By Joeba in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-03-2002, 10:14 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25