Building from Source SSL

Hi, I’m total newbie in java, anyway I install everything but I have a problem.

When I’m running mvn clean install tomcat7:run seems works, but when I access on link, that is on my server, http://ip:8082/ doesn’t works : HTTP ERROR 404

Then I try https://ip:8082/ so ERR_SSL_PROTOCOL_ERROR

The console says:

Couldn't process file nord-est-latest.osm.pbf, error: Index 71087878 out of bounds for length 0

INFO: Starting ProtocolHandler ["http-bio-8082"]
[INFO] 
[INFO] --- exec-maven-plugin:1.6.0:exec (API tests) @ openrouteservice ---
16 Sep 09:36:43 INFO [routing.RoutingProfileManager] - ====> Initializing profiles from 'nord-est-latest.osm.pbf' (2 threads) ...
16 Sep 09:36:43 INFO [routing.RoutingProfileManager] -                               
16 Sep 09:36:43 INFO [routing.RoutingProfileManager] -                
16 Sep 09:36:44 INFO [routing.RoutingProfile] - [1] Profiles: 'driving-hgv', location: 'graphs/hgv'.
16 Sep 09:36:44 INFO [routing.RoutingProfile] - [2] Profiles: 'driving-car', location: 'graphs/car'.
Sep 16, 2022 9:37:20 AM org.apache.coyote.http11.AbstractHttp11Processor process
INFO: Error parsing HTTP request header
 Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x020x000x010x000x010xfc0x030x030xd20x140x95Q[0xb00x8d0xb6s0xe4?0x130xcc0x860x1bmp0x850xcd0xf70xd80x1b$00x03A0xc60x08Ox0xde0xb0]. HTTP method names must be tokens
	at org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:140)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1108)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:654)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.base/java.lang.Thread.run(Thread.java:829)

Sep 16, 2022 9:37:20 AM org.apache.coyote.http11.AbstractHttp11Processor process
INFO: Error parsing HTTP request header
 Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x020x000x010x000x010xfc0x030x030xed0xf70xad0xb30xc420x1f00xd030x940xe60xf70x080xac0xbd,0x03m^0xb4S)0xfeuZ0xdc0xf40xd50x1d0xc90xe4]. HTTP method names must be tokens
	at org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:140)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1108)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:654)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.base/java.lang.Thread.run(Thread.java:829)

Any way I have .crts and .key but I dont know how to install it.

Then after few endpoit calls it close with Killed message

Any idea?

Then another strage things is :

Exception in thread "PBF Reader" java.lang.RuntimeException: Unable to read PBF file.


at com.graphhopper.reader.osm.pbf.PbfReader.run(PbfReader.java:50)

at java.base/java.lang.Thread.run(Thread.java:829)

Caused by: java.lang.RuntimeException: Thread was interrupted.

at com.graphhopper.reader.osm.pbf.PbfDecoder.waitForUpdate(PbfDecoder.java:64)

at com.graphhopper.reader.osm.pbf.PbfDecoder.sendResultsToSink(PbfDecoder.java:83)

at com.graphhopper.reader.osm.pbf.PbfDecoder.processBlobs(PbfDecoder.java:151)

at com.graphhopper.reader.osm.pbf.PbfDecoder.run(PbfDecoder.java:162)

at com.graphhopper.reader.osm.pbf.PbfReader.run(PbfReader.java:47)

... 1 more

Caused by: java.lang.InterruptedException

at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2056)

at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2090)

at com.graphhopper.reader.osm.pbf.PbfDecoder.waitForUpdate(PbfDecoder.java:62)

... 5 more

16 Sep 09:45:51 ERROR [routing.RoutingProfileManager] - java.util.concurrent.ExecutionException: java.lang.RuntimeException: Couldn't process file nord-est-latest.osm.pbf, error: Index 71087878 out of bounds for length 0

16 Sep 09:45:51 INFO [routing.RoutingProfile] - [3] Profiles: 'cycling-regular', location: 'graphs/bike-regular'.

16 Sep 09:45:51 ERROR [routing.RoutingProfileManager] - Failed to initialize RoutingProfileManager instance.

java.util.concurrent.ExecutionException: java.lang.RuntimeException: Couldn't process file nord-est-latest.osm.pbf, error: Index 71087878 out of bounds for length 0

at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?]

at java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[?:?]

at org.heigit.ors.routing.RoutingProfileManager.initialize(RoutingProfileManager.java:178) ~[classes/:?]

at org.heigit.ors.routing.RoutingProfileManager.getInstance(RoutingProfileManager.java:72) ~[classes/:?]

at org.heigit.ors.servlet.listeners.ORSInitContextListener.lambda$contextInitialized$0(ORSInitContextListener.java:41) ~[classes/:?]

at java.lang.Thread.run(Thread.java:829) [?:?]

Caused by: java.lang.RuntimeException: Couldn't process file nord-est-latest.osm.pbf, error: Index 71087878 out of bounds for length 0

at com.graphhopper.reader.osm.OSMReader.writeOsm2Graph(OSMReader.java:326) ~[graphhopper-reader-osm-v0.13.23.jar:?]

at com.graphhopper.reader.osm.OSMReader.readGraph(OSMReader.java:178) ~[graphhopper-reader-osm-v0.13.23.jar:?]

at com.graphhopper.GraphHopper.importData(GraphHopper.java:735) ~[graphhopper-core-v0.13.23.jar:?]

at com.graphhopper.GraphHopper.readData(GraphHopper.java:714) ~[graphhopper-core-v0.13.23.jar:?]

at com.graphhopper.GraphHopper.process(GraphHopper.java:701) ~[graphhopper-core-v0.13.23.jar:?]

at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:680) ~[graphhopper-core-v0.13.23.jar:?]

at org.heigit.ors.routing.graphhopper.extensions.ORSGraphHopper.importOrLoad(ORSGraphHopper.java:169) ~[classes/:?]

at org.heigit.ors.routing.RoutingProfile.initGraphHopper(RoutingProfile.java:184) ~[classes/:?]

at org.heigit.ors.routing.RoutingProfile.<init>(RoutingProfile.java:128) ~[classes/:?]

at org.heigit.ors.routing.RoutingProfileLoader.call(RoutingProfileLoader.java:35) ~[classes/:?]

at org.heigit.ors.routing.RoutingProfileLoader.call(RoutingProfileLoader.java:21) ~[classes/:?]

at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]

at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]

... 1 more

Caused by: java.lang.IndexOutOfBoundsException: Index 71087878 out of bounds for length 0

at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?]

at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?]

at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) ~[?:?]

at java.util.Objects.checkIndex(Objects.java:372) ~[?:?]

at java.util.ArrayList.get(ArrayList.java:459) ~[?:?]

at com.graphhopper.storage.MMapDataAccess.getShort(MMapDataAccess.java:367) ~[graphhopper-core-v0.13.23.jar:?]

at com.graphhopper.reader.dem.HeightTile.getHeight(HeightTile.java:100) ~[graphhopper-core-v0.13.23.jar:?]

at com.graphhopper.reader.dem.AbstractTiffElevationProvider.getEle(AbstractTiffElevationProvider.java:142) ~[graphhopper-core-v0.13.23.jar:?]

at com.graphhopper.reader.dem.MultiSourceElevationProvider.getEle(MultiSourceElevationProvider.java:52) ~[graphhopper-core-v0.13.23.jar:?]

at com.graphhopper.reader.osm.OSMReader.getElevation(OSMReader.java:706) ~[graphhopper-reader-osm-v0.13.23.jar:?]

at org.heigit.ors.routing.graphhopper.extensions.ORSOSMReader.getElevation(ORSOSMReader.java:444) ~[classes/:?]

at com.graphhopper.reader.osm.OSMReader.addNode(OSMReader.java:667) ~[graphhopper-reader-osm-v0.13.23.jar:?]

at com.graphhopper.reader.osm.OSMReader.processNode(OSMReader.java:632) ~[graphhopper-reader-osm-v0.13.23.jar:?]

at com.graphhopper.reader.osm.OSMReader.writeOsm2Graph(OSMReader.java:293) ~[graphhopper-reader-osm-v0.13.23.jar:?]

at com.graphhopper.reader.osm.OSMReader.readGraph(OSMReader.java:178) ~[graphhopper-reader-osm-v0.13.23.jar:?]

at com.graphhopper.GraphHopper.importData(GraphHopper.java:735) ~[graphhopper-core-v0.13.23.jar:?]

at com.graphhopper.GraphHopper.readData(GraphHopper.java:714) ~[graphhopper-core-v0.13.23.jar:?]

at com.graphhopper.GraphHopper.process(GraphHopper.java:701) ~[graphhopper-core-v0.13.23.jar:?]

at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:680) ~[graphhopper-core-v0.13.23.jar:?]

at org.heigit.ors.routing.graphhopper.extensions.ORSGraphHopper.importOrLoad(ORSGraphHopper.java:169) ~[classes/:?]

at org.heigit.ors.routing.RoutingProfile.initGraphHopper(RoutingProfile.java:184) ~[classes/:?]

at org.heigit.ors.routing.RoutingProfile.<init>(RoutingProfile.java:128) ~[classes/:?]

at org.heigit.ors.routing.RoutingProfileLoader.call(RoutingProfileLoader.java:35) ~[classes/:?]

at org.heigit.ors.routing.RoutingProfileLoader.call(RoutingProfileLoader.java:21) ~[classes/:?]

at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]

at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]

... 1 more

16 Sep 09:45:51 INFO [routing.RoutingProfileManager] - ====> Recycling garbage...

16 Sep 09:45:51 INFO [routing.RoutingProfileManager] - Before: Total - 862.05 MB, Free - 253.93 MB, Max: 2.83 GB, Used - 608.11 MB

16 Sep 09:45:52 INFO [routing.RoutingProfileManager] - After: Total - 861.98 MB, Free - 618.95 MB, Max: 2.83 GB, Used - 243.03 MB

16 Sep 09:45:52 INFO [routing.RoutingProfileManager] - ========================================================================

16 Sep 09:45:52 INFO [routing.RoutingProfileManager] - ====> Memory usage by profiles:

16 Sep 09:45:53 INFO [routing.RoutingProfileManager] - Total: 0 B (0.0%)