Page 1 of 1

xServer 2 doesn’t start properly. Why?

PostPosted: Tue Sep 18, 2018 2:06 pm
by PaulBuechs
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( ~[searcher-1.0.33548.jar:?]
at ~[searcher-1.0.33548.jar:?]
at com.ptvgroup.devcomp.xs.engines.geocoder.searcher.DefaultGeocodingFactory.lambda$new$5( ~[searcher-1.0.33548.jar:?]
at com.ptvgroup.devcomp.xs.engines.geocoder.searcher.DefaultGeocodingFactory.createLuceneIndex( ~[searcher-1.0.33548.jar:?]
at com.ptvgroup.devcomp.xs.engines.geocoder.searcher.GeocodingSearcher.<init>( ~[searcher-1.0.33548.jar:?]
at com.ptvgroup.devcomp.xs.engines.geocoder.searcher.GeocodingSearcher.<init>( ~[searcher-1.0.33548.jar:?]
at com.ptvgroup.xserver.xlocate.XLocateModuleImpl.openLuceneIndex( ~[xlocate-module-1.0.33548.jar:?]
at com.ptvgroup.xserver.xlocate.XLocateModuleImpl.doStart( [xlocate-module-1.0.33548.jar:?]
at [guava-19.0.jar:?]
at com.ptvgroup.xserver.xlocate.XLocateModuleImpl.<init>( [xlocate-module-1.0.33548.jar:?]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [?:1.8.0_172]
at sun.reflect.NativeConstructorAccessorImpl.newInstance( [?:1.8.0_172]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( [?:1.8.0_172]
at java.lang.reflect.Constructor.newInstance( [?:1.8.0_172]
at com.ptvgroup.xserver.runtime.module.ModuleObject.createJavaImpl( [core-1.0.33548.jar:?]
at com.ptvgroup.xserver.runtime.module.ModuleObject.createServiceInstances( [core-1.0.33548.jar:?]
at com.ptvgroup.xserver.runtime.module.ModuleObject.<init>( [core-1.0.33548.jar:?]
at com.ptvgroup.xserver.runtime.module.ModuleMain.<init>( [core-1.0.33548.jar:?]
at com.ptvgroup.xserver.runtime.module.ModuleMain.main( [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?

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

PostPosted: Tue Sep 18, 2018 2:44 pm
by Bernd Welter
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,