xServer2 - CalculateRoute causes internal exception

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
AlexanderL
Posts: 11
Joined: Wed Nov 20, 2019 8:27 am

xServer2 - CalculateRoute causes internal exception

Post by AlexanderL »

Hey!
Calculating a route from Munich to Hamburg can cause an internal exception.
After changing the property "distanceTimeWeighting" from >=32 to 31 it's working.
The module log says because of maximum costs..?

Thank you.

xServer2 Version: 2.15.0
Map Version: 2020_1H
Request:

Code: Select all

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <calculateRoute xmlns="http://xroute.xserver.ptvgroup.com">
      <request xmlns="" coordinateFormat="EPSG:76131">
        <requestProfile mapLanguage="de" userLanguage="de">
          <vehicleProfile driveType="MOTOR_VEHICLE" numberOfTrailers="0">
            <engine emissionStandardEU="EURO_6"/>
            <weight totalPermittedWeight="36000"/>
            <dimensions height="400" length="1800" width="250"/>
            <axle axleLoad="3500" numberOfAxles="5"/>
            <legalCondition isDelivery="true"/>
            <load loadType="GOODS"/>
            <speeds>
              <speedRangesByNetworkClass>
                <maximumSpeeds>90</maximumSpeeds>
                <maximumSpeeds>70</maximumSpeeds>
                <maximumSpeeds>60</maximumSpeeds>
                <maximumSpeeds>40</maximumSpeeds>
                <maximumSpeeds>30</maximumSpeeds>
                <maximumSpeeds>20</maximumSpeeds>
                <maximumSpeeds>0</maximumSpeeds>
                <maximumSpeeds>2</maximumSpeeds>
                <minimumSpeeds>50</minimumSpeeds>
                <minimumSpeeds>40</minimumSpeeds>
                <minimumSpeeds>40</minimumSpeeds>
                <minimumSpeeds>20</minimumSpeeds>
                <minimumSpeeds>10</minimumSpeeds>
                <minimumSpeeds>5</minimumSpeeds>
                <minimumSpeeds>0</minimumSpeeds>
                <minimumSpeeds>2</minimumSpeeds>
              </speedRangesByNetworkClass>
            </speeds>
          </vehicleProfile>
          <featureLayerProfile>
            <themes id="PTV_TruckAttributes" enabled="true"/>
          </featureLayerProfile>
          <routingProfile>
            <course distanceTimeWeighting="32">
              <network rampPenalty="0">
                <penaltiesByNetworkClass>
                  <penalties>0</penalties>
                  <penalties>0</penalties>
                  <penalties>0</penalties>
                  <penalties>0</penalties>
                  <penalties>15</penalties>
                  <penalties>50</penalties>
                  <penalties>100</penalties>
                  <penalties>100</penalties>
                </penaltiesByNetworkClass>
              </network>
              <toll tollPenalty="0"/>
              <specialAreas residentsOnlyPenalty="0" urbanPenalty="0"/>
              <combinedTransport boatPenalty="0"/>
              <maneuver considerTurningBans="true"/>
            </course>
          </routingProfile>
          <renderingProfile/>
        </requestProfile>
        <geometryOptions>
          <responseGeometryTypes>PLAIN</responseGeometryTypes>
        </geometryOptions>
        <waypoints xmlns:q1="http://xroute.xserver.ptvgroup.com" xsi:type="q1:OnRoadWaypoint">
          <location>
            <coordinate x="1286408" y="6121996"/>
          </location>
        </waypoints>
        <waypoints xmlns:q2="http://xroute.xserver.ptvgroup.com" xsi:type="q2:OnRoadWaypoint">
          <location>
            <coordinate x="1118014" y="7085016"/>
          </location>
        </waypoints>
      </request>
    </calculateRoute>
  </s:Body>
</s:Envelope>
Respone:

Code: Select all

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>An internal error occurred.</faultstring>
      <detail>
        <ns3:XServerWebFault xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns3="http://exceptions.xserver.ptvgroup.com" xmlns:ns2="http://xroute.xserver.ptvgroup.com" hint="Restart the module or the whole PTV xServer. If the error persists, report it to PTV's xServer support and include the log files." xsi:type="ns3:InternalErrorFault"/>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>
Module-Log:
2019-11-21 15:12:16,581;ERROR;com.ptvgroup.xserver.xroute.router;Exceeded maximum cost.
2019-11-21 15:12:16,582;WARN;com.ptvgroup.xserver.xroute.commonServicesTasks.ServicesHelper;Caught an unexpected exception: Unsupported router error found.
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: xServer2 - CalculateRoute causes internal exception

Post by Bernd Welter »

Hello Alex,

I was able to reproduce the error but I have no clue what causes it. Therefore I created an internal bug task (XS-3530).

SO DEV is in charge now.

Best regards,
Bernd
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply