"java.lang.NullPointerException" Error When Evaluating a Rate with KEWILL with a Location that Does Not Contain a Province Code

(Doc ID 970944.1)

Last updated on SEPTEMBER 08, 2016

Applies to:

Oracle Transportation Management - Version: 6.0 to 6.0.3 - Release: 6
Information in this document applies to any platform.

Symptoms

-- Problem Statement:

When attempting to use a location that does not contain a province code to rate using Kewill, no rate can be found and the following exception is seen in the logs:

ERROR
-----------------------

2009-09-25 18:23:29.299 212871 Error Exception java.lang.NullPointerException

java.lang.NullPointerException
at glog.business.rate.rateengine.external.REXKewill.buildOutputString(REXKewill.java:564)
at glog.business.rate.rateengine.external.REXKewill.costShipment(REXKewill.java:239)
at glog.business.rate.rateengine.guts.RACExternalRatingEngine.costShipment(RACExternalRatingEngine.java:72)
at glog.business.rate.rateengine.guts.RACExternalRatingEngine.costShipment(RACExternalRatingEngine.java:41)
at glog.business.rate.rateengine.RatingEngine.rateIt(RatingEngine.java:803)
at glog.business.rate.rateengine.RatingEngine.findShipmentCost(RatingEngine.java:681)
at glog.business.rate.rateengine.RatingEngine.findShipmentCosts(RatingEngine.java:570)
at glog.business.rate.rateengine.RatingEngine.findShipmentCosts(RatingEngine.java:377)
at glog.business.rate.ratefinder.RateFinder.findShipmentCosts(RateFinder.java:262)
at glog.business.rate.ratefinder.RateFinder.findShipmentCosts(RateFinder.java:188)
at glog.business.rate.rateinquiry.RateInquirySession.calculateCost(RateInquirySession.java:1257)
at glog.business.rate.rateinquiry.RateInquirySession.getRates(RateInquirySession.java:965)
at glog.business.rate.rateinquiry.RateInquirySession.getRatesInternal(RateInquirySession.java:807)
at glog.business.rate.rateinquiry.RateInquirySession.getRates(RateInquirySession.java:218)
at glog.business.action.RateActionExecutor.getRates(RateActionExecutor.java:83)
at glog.business.session.RateActionSessionBean.getRates(RateActionSessionBean.java:70)
at glog.business.session.RateActionSessionServerSideEJBWrapper.getRates(RateActionSessionServerSideEJBWrapper.java:68)
at glog.business.session.RateActionSessionHome_a6s4b5_EOImpl.getRates(RateActionSessionHome_a6s4b5_EOImpl.java:286)
at glog.business.session.RateActionSessionHome_a6s4b5_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:553)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:443)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:439)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:61)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:983)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

-- Steps To Reproduce:

The issue can be reproduced at will with the following steps:
1. Log into OTM
2. Click the Rate Inquiry Button
3. Select 2 European Locations where at least the destination location does not have a Province code
4. Run the RIQ
5. Note that no Results using Kewill rating are shown.


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms