VERIFIED SOLUTION i
X

Resolve "REST service cannot contain more than 255 total number of options and fields" exception while deploying Spectrum web service

Issue

User noticed the following error messages in the wrapper.log file after Spectrum server restart:

INFO   | jvm 1    | 2014/08/05 09:26:15 | ERROR [RESTDynamicWebServiceManager] Exception while deploying web service for [GeocodeAddressGlobal.EMEA: com.pb.spectrum.platform.server.config.service.dynamic.common.EndpointBuilderException: com.pb.spectrum.platform.server.config.service.dynamic.common.EndpointBuilderException: REST service cannot contain more than 255 total number of options and fields
INFO   | jvm 1    | 2014/08/05 09:26:16 | ERROR [RESTDynamicWebServiceManager] Exception while deploying web service for [GeocodeAddressGlobal.APAC: com.pb.spectrum.platform.server.config.service.dynamic.common.EndpointBuilderException: com.pb.spectrum.platform.server.config.service.dynamic.common.EndpointBuilderException: REST service cannot contain more than 255 total number of options and fields

Cause

REST services will not start for the named services because the REST service has a character limit. This is likely caused by having too many international geocoding databases (in this instance) defined under a single resource (i.e. all of Europe or all of Asia).

Resolution

UPDATED: October 18, 2017


If REST services are not being used, this error can be ignored, as SOAP and API-based requests will function normally.
If REST services are being used, simply define more database resources with smaller groups of countries. This should remedy the issue. 

Environment Details


 

Downloads

  • No Downloads