OTP 0.11.x Grizzly Server Error

51 views
Skip to first unread message

Erol Altınel

unread,
Jan 12, 2016, 9:20:38 AM1/12/16
to OpenTripPlanner Developers
Hi everyone,

i've a problem with Grizzly Server, run successfully 'mvn clean package' regarding this document: 


[INFO] OpenTripPlanner .................................... SUCCESS [  0.066 s]

[INFO] OpenTripPlanner Leaflet Client ..................... SUCCESS [  0.815 s]

[INFO] OpenTripPlanner Core ............................... SUCCESS [ 15.629 s]

[INFO] OpenTripPlanner REST API Servlet ................... SUCCESS [  4.179 s]

[INFO] OpenTripPlanner OpenLayers Client .................. SUCCESS [  1.527 s]

[INFO] OpenTripPlanner Analyst Client ..................... SUCCESS [  0.076 s]

[INFO] OpenTripPlanner Administration Client .............. SUCCESS [  0.312 s]

[INFO] OpenTripPlanner Municipal Boundary Reverse Geocoder  SUCCESS [  0.822 s]


and than created my Graph.obj perfectly. 


But, when i try to run this server code : 

bash otp -a -g /Users/username/documents/MYOTPworkspace/ -s


I get following error:

ERROR (OTPMain.java:81) An uncaught ContainerException occurred inside OTP. Restarting server.


How can i get rid of this error? 


My Version : Maven 3.3.9

My Java Version: 1.8.0_65



Could you please help me? 
Thanks in advance. 







Babacan

unread,
Jan 12, 2016, 11:11:32 AM1/12/16
to OpenTripPlanner Developers
I've already edited "pom.xml", it looks like:

 <plugin>
       
<groupId>org.apache.maven.plugins</groupId>
       
<artifactId>maven-compiler-plugin</artifactId>
       
<version>3.3</version>
       
<configuration>
         
<!-- Target Java versions -->
         
<source>1.8</source>
         
<target>1.8</target>
       
</configuration>
   
</plugin>

MikeN

unread,
Jan 12, 2016, 4:22:53 PM1/12/16
to OpenTripPlanner Developers
I'm not an expert, but were there any other lines with the uncaught exception error?   Sometimes it requires the whole list of exception lines to find the one of interest.

Babacan

unread,
Jan 13, 2016, 1:55:11 AM1/13/16
to OpenTripPlanner Developers

Thanks for your answer, hier is my whole list of exception:





08:52:09.569 INFO (OTPConfigurator.java:84) Wiring up and configuring server task.



08:52:09.582 INFO (MavenVersion.java:53) Parsed Maven artifact version: 0.11.1-SNAPSHOT => MavenVersion(0, 11, 1, SNAPSHOT, 8a3e801a12afccaea31f8cf1b82c4d49d4210f17) UID=-11001

08:52:09.608 INFO (OTPComponentProviderFactory.java:91) Performing field injection on all bound instances.

08:52:09.615 ERROR (OTPComponentProviderFactory.java:110) Found no binding for interface org.opentripplanner.analyst.core.SampleSource

08:52:09.618 INFO (OTPComponentProviderFactory.java:125) Calling post-construct private void org.opentripplanner.routing.impl.GraphServiceImpl.startup()

08:52:09.618 INFO (GraphServiceImpl.java:90) attempting to automatically register routerIds []

08:52:09.618 INFO (GraphServiceImpl.java:91) graph files will be sought in paths relative to /Users/username/otp/data/

08:52:09.619 INFO (GraphServiceFileImpl.java:229) registering routerId ''

08:52:09.619 INFO (GraphServiceFileImpl.java:172) Loading graph...

08:52:09.958 INFO (Graph.java:558) Graph version: MavenVersion(0, 11, 1, SNAPSHOT, 8a3e801a12afccaea31f8cf1b82c4d49d4210f17)

08:52:09.958 INFO (Graph.java:559) OTP version:   MavenVersion(0, 11, 1, SNAPSHOT, 8a3e801a12afccaea31f8cf1b82c4d49d4210f17)

08:52:09.958 INFO (Graph.java:576) This graph was built with the currently running version and commit of OTP.

08:52:12.124 INFO (Graph.java:528) Main graph read. |V|=18520 |E|=55516

08:52:12.276 INFO (GraphUpdaterConfigurator.java:69) Using configurations:  

08:52:12.282 INFO (OTPComponentProviderFactory.java:125) Calling post-construct private void org.opentripplanner.analyst.request.SPTCache.runAfterInjection()

08:52:12.298 INFO (OTPComponentProviderFactory.java:125) Calling post-construct private void org.opentripplanner.analyst.request.TileCache.runAfterInjection()

08:52:12.300 INFO (OTPComponentProviderFactory.java:125) Calling post-construct public void org.opentripplanner.analyst.core.GeometryIndex.initialzeComponent()

08:52:12.410 INFO (GrizzlyServer.java:110) Starting OTP Grizzly server on port 8080 using graphs at /Users/username/otp/data/

08:52:12.456 INFO (PackagesResourceConfig.java:101) Scanning for root resource and provider classes in the packages:

  org
.opentripplanner.api

08:52:13.220 INFO (ScanningResourceConfig.java:153) Root resource classes found:

 
class org.opentripplanner.api.resource.Planner

 
class org.opentripplanner.api.resource.BikeRental

 
class org.opentripplanner.api.resource.Routers

 
class org.opentripplanner.api.resource.ServerInfo

 
class org.opentripplanner.api.resource.analyst.WebMapService

 
class org.opentripplanner.api.resource.GeocoderResource

 
class org.opentripplanner.api.resource.ProfileEndpoint

 
class org.opentripplanner.api.resource.analyst.SIsochrone

 
class org.opentripplanner.api.resource.TransitIndex

 
class org.opentripplanner.api.resource.analyst.SimpleIsochrone

 
class org.opentripplanner.api.resource.Patcher

 
class org.opentripplanner.api.resource.analyst.LIsochrone

 
class org.opentripplanner.api.resource.analyst.Raster

 
class org.opentripplanner.api.resource.Metadata

 
class org.opentripplanner.api.resource.analyst.LegendResource

 
class org.opentripplanner.api.resource.analyst.TileService

08:52:13.220 INFO (ScanningResourceConfig.java:153) Provider classes found:

 
class org.opentripplanner.api.parameter.EnvelopeStringReaderProvider

 
class org.opentripplanner.api.parameter.WMSTimeStringReaderProvider

 
class org.opentripplanner.api.parameter.CRSStringReaderProvider

 
class org.opentripplanner.api.common.JerseyInjector

08:52:13.252 INFO (WebApplicationImpl.java:790) Initiating Jersey application, version 'Jersey: 1.17.1 02/28/2013 12:47 PM'

com
.sun.jersey.api.container.ContainerException: Could not process parameter type class org.opentripplanner.api.parameter.LayerList

 at com
.sun.jersey.server.impl.model.parameter.multivalued.MultivaluedParameterExtractorFactory.process(MultivaluedParameterExtractorFactory.java:149)

 at com
.sun.jersey.server.impl.model.parameter.multivalued.MultivaluedParameterExtractorFactory.get(MultivaluedParameterExtractorFactory.java:81)

 at com
.sun.jersey.server.impl.model.parameter.BaseParamInjectableProvider.get(BaseParamInjectableProvider.java:71)

 at com
.sun.jersey.server.impl.model.parameter.QueryParamInjectableProvider.getInjectable(QueryParamInjectableProvider.java:91)

 at com
.sun.jersey.server.impl.model.parameter.QueryParamInjectableProvider.getInjectable(QueryParamInjectableProvider.java:59)

 at com
.sun.jersey.core.spi.factory.InjectableProviderFactory.getInjectable(InjectableProviderFactory.java:214)

 at com
.sun.jersey.server.impl.inject.ServerInjectableProviderFactory.getInjectableiWithScope(ServerInjectableProviderFactory.java:81)

 at com
.sun.jersey.server.spi.component.ResourceComponentInjector.processFields(ResourceComponentInjector.java:115)

 at com
.sun.jersey.server.spi.component.ResourceComponentInjector.<init>(ResourceComponentInjector.java:93)

 at com
.sun.jersey.server.spi.component.ResourceComponentConstructor.<init>(ResourceComponentConstructor.java:144)

 at com
.sun.jersey.server.impl.resource.PerRequestFactory$PerRequest.init(PerRequestFactory.java:174)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl$10.f(WebApplicationImpl.java:583)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl$10.f(WebApplicationImpl.java:580)

 at com
.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl.getResourceComponentProvider(WebApplicationImpl.java:580)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl.initiateResource(WebApplicationImpl.java:657)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl.initiateResource(WebApplicationImpl.java:652)

 at com
.sun.jersey.server.impl.application.RootResourceUriRules.<init>(RootResourceUriRules.java:124)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1331)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl.access$700(WebApplicationImpl.java:168)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:774)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:770)

 at com
.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:770)

 at com
.sun.jersey.api.container.ContainerFactory.createContainer(ContainerFactory.java:172)

 at org
.opentripplanner.standalone.GrizzlyServer.run(GrizzlyServer.java:130)

 at org
.opentripplanner.standalone.OTPMain.main(OTPMain.java:77)

Caused by: javax.ws.rs.WebApplicationException

 at org
.opentripplanner.api.parameter.LayerList.<init>(LayerList.java:45)

 at sun
.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

 at sun
.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

 at sun
.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

 at java
.lang.reflect.Constructor.newInstance(Constructor.java:422)

 at com
.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$StringConstructor$1._fromString(StringReaderProviders.java:97)

 at com
.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$AbstractStringReader.fromString(StringReaderProviders.java:68)

 at com
.sun.jersey.server.impl.model.parameter.multivalued.AbstractStringReaderExtractor.<init>(AbstractStringReaderExtractor.java:63)

 at com
.sun.jersey.server.impl.model.parameter.multivalued.StringReaderExtractor.<init>(StringReaderExtractor.java:56)

 at com
.sun.jersey.server.impl.model.parameter.multivalued.MultivaluedParameterExtractorFactory.process(MultivaluedParameterExtractorFactory.java:147)

 
... 26 more

08:52:14.123 ERROR (OTPMain.java:81) An uncaught ContainerException occurred inside OTP. Restarting server.

08:52:14.123 INFO (GrizzlyServer.java:110) Starting OTP Grizzly server on port 8080 using graphs at /Users/username/otp/data/

08:52:14.123 INFO (PackagesResourceConfig.java:101) Scanning for root resource and provider classes in the packages:

  org
.opentripplanner.api

08:52:14.817 INFO (ScanningResourceConfig.java:153) Root resource classes found:

 
class org.opentripplanner.api.resource.Planner

 
class org.opentripplanner.api.resource.BikeRental

 
class org.opentripplanner.api.resource.Routers

 
class org.opentripplanner.api.resource.ServerInfo

 
class org.opentripplanner.api.resource.analyst.WebMapService

 
class org.opentripplanner.api.resource.GeocoderResource

 
class org.opentripplanner.api.resource.ProfileEndpoint

 
class org.opentripplanner.api.resource.analyst.SIsochrone

 
class org.opentripplanner.api.resource.TransitIndex

 
class org.opentripplanner.api.resource.analyst.SimpleIsochrone

 
class org.opentripplanner.api.resource.Patcher

 
class org.opentripplanner.api.resource.analyst.LIsochrone

 
class org.opentripplanner.api.resource.analyst.Raster

 
class org.opentripplanner.api.resource.Metadata

 
class org.opentripplanner.api.resource.analyst.LegendResource

 
class org.opentripplanner.api.resource.analyst.TileService

08:52:14.817 INFO (ScanningResourceConfig.java:153) Provider classes found:

 
class org.opentripplanner.api.parameter.EnvelopeStringReaderProvider

 
class org.opentripplanner.api.parameter.WMSTimeStringReaderProvider

 
class org.opentripplanner.api.parameter.CRSStringReaderProvider

 
class org.opentripplanner.api.common.JerseyInjector

08:52:14.818 INFO (WebApplicationImpl.java:790) Initiating Jersey application, version 'Jersey: 1.17.1 02/28/2013 12:47 PM'

com
.sun.jersey.api.container.ContainerException: Could not process parameter type class org.opentripplanner.api.parameter.LayerList

 at com
.sun.jersey.server.impl.model.parameter.multivalued.MultivaluedParameterExtractorFactory.process(MultivaluedParameterExtractorFactory.java:149)

 at com
.sun.jersey.server.impl.model.parameter.multivalued.MultivaluedParameterExtractorFactory.get(MultivaluedParameterExtractorFactory.java:81)

 at com
.sun.jersey.server.impl.model.parameter.BaseParamInjectableProvider.get(BaseParamInjectableProvider.java:71)

 at com
.sun.jersey.server.impl.model.parameter.QueryParamInjectableProvider.getInjectable(QueryParamInjectableProvider.java:91)

 at com
.sun.jersey.server.impl.model.parameter.QueryParamInjectableProvider.getInjectable(QueryParamInjectableProvider.java:59)

 at com
.sun.jersey.core.spi.factory.InjectableProviderFactory.getInjectable(InjectableProviderFactory.java:214)

 at com
.sun.jersey.server.impl.inject.ServerInjectableProviderFactory.getInjectableiWithScope(ServerInjectableProviderFactory.java:81)

 at com
.sun.jersey.server.spi.component.ResourceComponentInjector.processFields(ResourceComponentInjector.java:115)

 at com
.sun.jersey.server.spi.component.ResourceComponentInjector.<init>(ResourceComponentInjector.java:93)

 at com
.sun.jersey.server.spi.component.ResourceComponentConstructor.<init>(ResourceComponentConstructor.java:144)

 at com
.sun.jersey.server.impl.resource.PerRequestFactory$PerRequest.init(PerRequestFactory.java:174)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl$10.f(WebApplicationImpl.java:583)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl$10.f(WebApplicationImpl.java:580)

 at com
.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl.getResourceComponentProvider(WebApplicationImpl.java:580)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl.initiateResource(WebApplicationImpl.java:657)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl.initiateResource(WebApplicationImpl.java:652)

 at com
.sun.jersey.server.impl.application.RootResourceUriRules.<init>(RootResourceUriRules.java:124)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1331)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl.access$700(WebApplicationImpl.java:168)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:774)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:770)

 at com
.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193)

 at com
.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:770)

 at com
.sun.jersey.api.container.ContainerFactory.createContainer(ContainerFactory.java:172)

 at org
.opentripplanner.standalone.GrizzlyServer.run(GrizzlyServer.java:130)

 at org
.opentripplanner.standalone.OTPMain.main(OTPMain.java:77)

Caused by: javax.ws.rs.WebApplicationException

 at org
.opentripplanner.api.parameter.LayerList.<init>(LayerList.java:45)

 at sun
.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

 at sun
.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

 at sun
.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

 at java
.lang.reflect.Constructor.newInstance(Constructor.java:422)

 at com
.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$StringConstructor$1._fromString(StringReaderProviders.java:97)

 at com
.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$AbstractStringReader.fromString(StringReaderProviders.java:68)

 at com
.sun.jersey.server.impl.model.parameter.multivalued.AbstractStringReaderExtractor.<init>(AbstractStringReaderExtractor.java:63)

 at com
.sun.jersey.server.impl.model.parameter.multivalued.StringReaderExtractor.<init>(StringReaderExtractor.java:56)

 at com
.sun.jersey.server.impl.model.parameter.multivalued.MultivaluedParameterExtractorFactory.process(MultivaluedParameterExtractorFactory.java:147)

 
... 26 more

08:52:14.922 ERROR (OTPMain.java:81) An uncaught ContainerException occurred inside OTP. Restarting server.

08:52:14.922 INFO (GrizzlyServer.java:110) Starting OTP Grizzly server on port 8080 using graphs at /Users/username/otp/data/

08:52:14.922 INFO (PackagesResourceConfig.java:101) Scanning for root resource and provider classes in the packages:
org.opentripplanner.api


Reply all
Reply to author
Forward
0 new messages