Invisible TruckAttributes layer

This forum covers all questions dealing with visualization of data within the native PTV xMap interface and the
PTV Developer Raster Maps API
Please remember that additional plugins such as AJAX or Leaflet may be handeled in other forums.
Post Reply
daxbin
Posts: 13
Joined: Thu Feb 16, 2017 2:03 pm

Invisible TruckAttributes layer

Post by daxbin »

Hello Bernd,

after reading http://xserver.ptvgroup.com/forum/viewt ... f=15&t=121 I just tried to display TruckAttributes with OpenLayers via WMS (by the way, switching different styles classic, gravelpit, sandbox, silkysand as background maps and switching on/off labels as overlay layers works fine).

But when switching on the TruckAttributes layer there is nothing to see as if everything were transparent in this layer.

So I took a look into the logs and in the WMS.log I found there

Code: Select all

2017-04-04 15:53:58,481;ERROR;com.ptvag.wms.layer.http.HttpComponentsBasedClient;http-bio-50010-exec-18;WMS ERROR: 500, Internal Server Error
2017-04-04 15:53:58,482;ERROR;com.ptvag.wms.layer.http.HttpComponentsBasedClient;http-bio-50010-exec-18;Unable to render map, RoadEditorLayer is not licensed. Please contact your vendor for a proper license.
What kind of license is missing to me because the xmap section of my license.ptv looks like this

Code: Select all

xmap.maps=*
xmap.base=true
xmap.layers.poi=true
xmap.layers.trafficInfo=true
xmap.layers.RoadEditor=true
xmap.layers.rasterLayer=true
In the xmap-server.log I have:

Code: Select all

2017-04-04 16:41:07,222;WARN;com.ptvag.xserver.module.xmap.m0001;743efc15-d94a-477c-a1ae-eaeacce2f554;WMS;1;;Requested profile truckattributes.xml which does not exist, using default.xml instead.
2017-04-04 16:41:07,363;WARN;com.ptvag.xserver.module.xmap.m0001;743efc15-d94a-477c-a1ae-eaeacce2f554;WMS;1;;1-6380: Error 243 (Unable to render map, RoadEditorLayer is not licensed. Please contact your vendor for a proper license.) in map request, 149ms
2017-04-04 16:41:07,487;INFO;RequestTimes;id;client host;user;port;clusterId;service;success;log1;log2;log3;profile;pool instance;deserialization;input trafo;module queueing;module time;output trafo;serialization;total inner;total outer;transaction;use-cases;ref-coord 1;ref-coord 2;dynamic provider;dimensions;additionalInfo;errorType;errorCode;errorMsg
2017-04-04 16:41:07,488;INFO;RequestTimes;743efc15-d94a-477c-a1ae-eaeacce2f554;127.0.0.1;unknown-http;50010;unknown-cluster;XMap.renderMapBoundingBox;false;WMS;1;;truckattributes;m0001;155;0;3;272;0;102;960;1218;NO-TXN;;;;;;;com.ptvag.xserver.xmap.XMapException;243;Unable to render map, RoadEditorLayer is not licensed. Please contact your vendor for a proper license.
2017-04-04 16:41:07,489;INFO;RequestLogging;request-content: #743efc15-d94a-477c-a1ae-eaeacce2f554-m0001-000000001: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><renderMapBoundingBox xmlns="http://types.xmap.xserver.ptvag.com"><BoundingBox_1><leftTop xmlns="http://common.xserver.ptvag.com"><point x="1451613.0033227727" y="6726673.820213401" /></leftTop><rightBottom xmlns="http://common.xserver.ptvag.com"><point x="1691433.054954119" y="6567251.894773024" /></rightBottom></BoundingBox_1><MapParams_2 showScale="false" useMiles="false"/><ImageInfo_3 format="GIF" height="1044" width="1570"/><ArrayOfLayer_4><Layer xsi:type="StaticLayer" name="background" visible="false" category="-1" detailLevel="0" objectInfos="NONE" xmlns="http://xmap.xserver.ptvag.com" /><Layer xsi:type="StaticLayer" name="town" visible="false" category="-1" detailLevel="0" objectInfos="NONE" xmlns="http://xmap.xserver.ptvag.com" /><Layer xsi:type="StaticLayer" name="background" visible="false" category="-1" detailLevel="0" objectInfos="NONE" xmlns="http://xmap.xserver.ptvag.com" /><Layer xsi:type="StaticLayer" name="street" visible="true" category="-1" detailLevel="0" objectInfos="NONE" xmlns="http://xmap.xserver.ptvag.com" /><Layer xsi:type="RoadEditorLayer" name="truckattributes" visible="true" objectInfos="NONE" xmlns="http://xmap.xserver.ptvag.com" /></ArrayOfLayer_4><boolean_5>true</boolean_5><CallerContext_6 log1="WMS" log2="1"><wrappedProperties xmlns="http://baseservices.service.jabba.ptvag.com"><CallerContextProperty key="Profile" value="truckattributes"/><CallerContextProperty key="CoordFormat" value="PTV_MERCATOR"/></wrappedProperties></CallerContext_6></renderMapBoundingBox></soap:Body></soap:Envelope>
The beautified malicious request of xMap:

Code: Select all

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <renderMapBoundingBox xmlns="http://types.xmap.xserver.ptvag.com">
      <BoundingBox_1>
        <leftTop xmlns="http://common.xserver.ptvag.com">
          <point y="6726673.820213401" x="1451613.0033227727" />
        </leftTop>
        <rightBottom xmlns="http://common.xserver.ptvag.com">
          <point y="6567251.894773024" x="1691433.054954119" />
        </rightBottom>
      </BoundingBox_1>
      <MapParams_2 useMiles="false" showScale="false" />
      <ImageInfo_3 width="1570" height="1044" format="GIF" />
      <ArrayOfLayer_4>
        <Layer xmlns="http://xmap.xserver.ptvag.com" name="background" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="StaticLayer" objectInfos="NONE" detailLevel="0" category="-1" visible="false" />
        <Layer xmlns="http://xmap.xserver.ptvag.com" name="town" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="StaticLayer" objectInfos="NONE" detailLevel="0" category="-1" visible="false" />
        <Layer xmlns="http://xmap.xserver.ptvag.com" name="background" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="StaticLayer" objectInfos="NONE" detailLevel="0" category="-1" visible="false" />
        <Layer xmlns="http://xmap.xserver.ptvag.com" name="street" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="StaticLayer" objectInfos="NONE" detailLevel="0" category="-1" visible="true" />
        <Layer xmlns="http://xmap.xserver.ptvag.com" name="truckattributes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="RoadEditorLayer" objectInfos="NONE" visible="true" />
      </ArrayOfLayer_4>
      <boolean_5>true</boolean_5>
      <CallerContext_6 log2="1" log1="WMS">
        <wrappedProperties xmlns="http://baseservices.service.jabba.ptvag.com">
          <CallerContextProperty value="truckattributes" key="Profile" />
          <CallerContextProperty value="PTV_MERCATOR" key="CoordFormat" />
        </wrappedProperties>
      </CallerContext_6>
    </renderMapBoundingBox>
  </soap:Body>
</soap:Envelope>
and xMap's response:

Code: Select all

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:243</faultcode>
      <faultstring>Unable to render map, RoadEditorLayer is not licensed. Please contact your vendor for a proper license.</faultstring>
      <detail>
        <ns2:XMapException xmlns:ns2="http://xmap.xserver.ptvag.com">
          <ns6:stackElement xmlns:ns6="http://exception.core.jabba.ptvag.com" message="Unable to render map, RoadEditorLayer is not licensed. Please contact your vendor for a proper license." errorKey="243" className="com.ptvag.xserver.xmap.XMapException">
            <ns6:cause xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
            <ns6:wrappedContext xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
          </ns6:stackElement>
        </ns2:XMapException>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>
Perhaps an issue with lower versus upper case of the road editor layer (truckattributes versus TruckAttributes)?

Best regards, Birk
User avatar
Bernd Welter
Site Admin
Posts: 2703
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Invisible TruckAttributes layer

Post by Bernd Welter »

ARGH... the license key is case sensitive...:
You need xmap.layers.roadEditor=true :oops:

Please get in touch with the person who provided the license.ptv and demand a proper one... in the meantime I'll inform the team that this key reacts sensitive!

Sorry for any inconvenience,

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:
daxbin
Posts: 13
Joined: Thu Feb 16, 2017 2:03 pm

Re: Invisible TruckAttributes layer

Post by daxbin »

Hello Bernd,

no problem, I would just say:
"The inventor of upper and lower case is the root of all (or at least many) evil." ;)

Best regards, Birk
Post Reply