VERIFIED SOLUTION i
X

Spectrum: ERROR [ServiceGateway] Gateway exception: java.lang.NullPointerException

Issue

Custom application is making call to Spectrum and these errors are seen in the wrapper log:

INFO   | jvm 1    | ERROR [ServiceGateway] Gateway exception: java.lang.NullPointerException
INFO   | jvm 1    | com.g1.dcg.server.ServiceGatewayException: java.lang.NullPointerException
INFO   | jvm 1    | at com.g1.dcg.server.service.LocalMessageProcessor.process(LocalMessageProcessor.java:36)
INFO   | jvm 1    | at com.g1.dcg.server.service.ServiceRouter.process(ServiceRouter.java:101)
INFO   | jvm 1    | at com.g1.dcg.server.DefaultGateway.process_aroundBody0(DefaultGateway.java:92)
INFO   | jvm 1    |  at com.g1.dcg.server.DefaultGateway$AjcClosure1.run(DefaultGateway.java:1)
INFO   | jvm 1    | at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:221)
 

Cause

These errors happen when attemps are made to invoke a service such Universal Addressing Module Validate Address before it has been deployed on the server.

Resolution

UPDATED: March 27, 2017


Monitor the wrapper.log file to ensure the Spectrum server has started before opening it to client applications. This line in the wrapper indicates that the Spectrum server has started:

INFO   | jvm 1    | INFO  [Server] Pitney Bowes Spectrum(TM) Technology Platform (Version 7.0 7.0-Translated-519) Started

Environment Details

Product Feature: Installation / Upgrade

Operating System: Windows 2008

Version: 7,8,9
 

Downloads

  • No Downloads