xServer 2 doesn’t start properly. Why?

This forum deals with administrative topics such as monitoring and system setup. It is dedicated to system administrators who do not have to deal with the functions themselves but who have to establish and maintain proper environments.
Public since 15.2.2017

xServer 2 doesn’t start properly. Why?

Postby PaulBuechs » Tue Sep 18, 2018 2:06 pm

Hello there,
These days I wanted to install and run xServer 2. I’ve been given the archive, a license file and we have a local map directory which is successfully working with the installed xServer 1. After configuring the maps.path in xserver.conf and deploying the license file I tried to start the batch file xserver.bat. The server tries to start but then it stops. In the logfiles I get the following messages.

2018-09-18 15:53:07,650;INFO;com.ptvgroup.xserver.runtime.module.ModuleMain;Starting instance m0001 on port 61242 with services XLocate, XMap, XRoute, XTour, XDima, XCluster, XLoad, XData.
2018-09-18 15:53:07,925;ERROR;com.ptvgroup.xserver.xlocate.XLocateModuleImpl;xLocate failed to start.
org.apache.lucene.index.IndexNotFoundException: Index directory D:\PTV-XSERVER\MAPS\PTV_Europe_City_Map_Premium_2018_2H\gcd does not exist or is not a directory.
at com.ptvgroup.devcomp.xs.engines.geocoder.searcher.LuceneIndex.tryToOpen(LuceneIndex.java:145) ~[searcher-1.0.33548.jar:?]
at com.ptvgroup.devcomp.xs.engines.geocoder.searcher.LuceneIndex.open(LuceneIndex.java:126) ~[searcher-1.0.33548.jar:?]
at com.ptvgroup.devcomp.xs.engines.geocoder.searcher.DefaultGeocodingFactory.lambda$new$5(DefaultGeocodingFactory.java:114) ~[searcher-1.0.33548.jar:?]
at com.ptvgroup.devcomp.xs.engines.geocoder.searcher.DefaultGeocodingFactory.createLuceneIndex(DefaultGeocodingFactory.java:106) ~[searcher-1.0.33548.jar:?]
at com.ptvgroup.devcomp.xs.engines.geocoder.searcher.GeocodingSearcher.<init>(GeocodingSearcher.java:79) ~[searcher-1.0.33548.jar:?]
at com.ptvgroup.devcomp.xs.engines.geocoder.searcher.GeocodingSearcher.<init>(GeocodingSearcher.java:73) ~[searcher-1.0.33548.jar:?]
at com.ptvgroup.xserver.xlocate.XLocateModuleImpl.openLuceneIndex(XLocateModuleImpl.java:72) ~[xlocate-module-1.0.33548.jar:?]
at com.ptvgroup.xserver.xlocate.XLocateModuleImpl.doStart(XLocateModuleImpl.java:96) [xlocate-module-1.0.33548.jar:?]
at com.google.common.util.concurrent.AbstractService.startAsync(AbstractService.java:203) [guava-19.0.jar:?]
at com.ptvgroup.xserver.xlocate.XLocateModuleImpl.<init>(XLocateModuleImpl.java:63) [xlocate-module-1.0.33548.jar:?]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [?:1.8.0_172]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [?:1.8.0_172]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:1.8.0_172]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) [?:1.8.0_172]
at com.ptvgroup.xserver.runtime.module.ModuleObject.createJavaImpl(ModuleObject.java:98) [core-1.0.33548.jar:?]
at com.ptvgroup.xserver.runtime.module.ModuleObject.createServiceInstances(ModuleObject.java:67) [core-1.0.33548.jar:?]
at com.ptvgroup.xserver.runtime.module.ModuleObject.<init>(ModuleObject.java:32) [core-1.0.33548.jar:?]
at com.ptvgroup.xserver.runtime.module.ModuleMain.<init>(ModuleMain.java:37) [core-1.0.33548.jar:?]
at com.ptvgroup.xserver.runtime.module.ModuleMain.main(ModuleMain.java:228) [core-1.0.33548.jar:?]
2018-09-18 15:53:07,936;ERROR;com.ptvgroup.xserver.runtime.module.ModuleMain;Could not start module. Shutting down.
2018-09-18 15:53:07,937;ERROR;com.ptvgroup.xserver.runtime.module.ModuleMain;Cause message: Error loading map.
2018-09-18 15:53:07,937;ERROR;com.ptvgroup.xserver.runtime.module.ModuleMain;Hint: Check that the path specified by the given key in the configuration file exists and contains a valid map.
2018-09-18 15:53:07,939;ERROR;com.ptvgroup.xserver.runtime.module.ModuleMain;Root cause message: Index directory D:\PTV-XSERVER\MAPS\PTV_Europe_City_Map_Premium_2018_2H\gcd does not exist or is not a directory.

Any clue how we can resolve this?
User avatar
Posts: 18
Joined: Tue Mar 28, 2017 1:09 pm

Re: xServer 2 doesn’t start properly. Why?

Postby Bernd Welter » Tue Sep 18, 2018 2:44 pm

Hello Paul,

please check whether the following hint helps to get rid of the issue:
  • We ship xServer 2 with a preconfigured set of activated modules. This is defined in xserver.conf: services = [xlocate, xmap, xroute, xtour, xdima, xcluster, xload, xdata]
  • The xLocate module requires additional data which is probably not available in your environment (unless you have received another 30GB of so-called Geocoder Index Data = GCD).
  • xLocate2.GCD.PNG
    Screenshot of my local map folder with the GCD subfolder which is required for xLocate 2
  • If this is the cause for your issue the solution is either 1. disable xlocate (remove it from the services) or 2. get the additional data via Sales and pimp your environment

If these hints do not resolve let me know - then we can have a detailed look via websession. But I'm quite optimistic ;-)

Best regards,
Bernd Welter
Manager Technical Consulting & Requirement Engineering
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
Posts: 1137
Joined: Mon Apr 14, 2014 10:28 am

Return to PTV xServer Administration