"java.lang.NullPointerException" Generated When Rating With Circuity and an External Distance Engine (Doc ID 1438921.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Transportation Management - Version 6.2.3 and later
Information in this document applies to any platform.
***Checked for relevance on 14-Nov-2013***

Symptoms


When attempting to rate with a Rate Offering that includes a Circuity Cost and an External Distance Engine, the following error is encountered:

java.lang.NullPointerException
at glog.ejb.location.db.CountryCodePK.hashCode(CountryCodePK.java:51)
at weblogic.ejb.container.locks.ExclusiveLockManager.getBucketForPk(ExclusiveLockManager.java:75)
at weblogic.ejb.container.locks.ExclusiveLockManager.getBucketForPk(ExclusiveLockManager.java:79)
at weblogic.ejb.container.locks.ExclusiveLockManager.getOwner(ExclusiveLockManager.java:123)
at weblogic.ejb.container.manager.ExclusiveEntityManager.alreadyCached(ExclusiveEntityManager.java:1369)
at weblogic.ejb.container.manager.BaseEntityManager.findByPrimaryKey(BaseEntityManager.java:2360)
at weblogic.ejb.container.manager.BaseEntityManager.remoteFindByPrimaryKey(BaseEntityManager.java:2321)
at weblogic.ejb.container.internal.EntityEJBHome.findByPrimaryKey(EntityEJBHome.java:387)
at glog.ejb.location.ejb_CountryCode_a7l0oi_HomeImpl.findByPrimaryKey(ejb_CountryCode_a7l0oi_HomeImpl.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at glog.util.remote.BeanBaseInvoker.invoke(BeanBaseInvoker.java:24)
at glog.util.remote.EntityBeanHomeInvoker.findByPrimaryKey(EntityBeanHomeInvoker.java:93)
at glog.business.rate.ratedistance.external.PCMilerEngine.getCountryCode(PCMilerEngine.java:515)
at glog.business.rate.ratedistance.external.PCMilerEngine.getRegion(PCMilerEngine.java:942)
at glog.business.rate.ratedistance.external.PCMilerEngine.lookupDistance(PCMilerEngine.java:184)
at glog.business.rate.ratedistance.RateDistanceSession.lookupExternalDistance(RateDistanceSession.java:1206)
at glog.business.rate.ratedistance.RateDistanceSession.calcDistance(RateDistanceSession.java:273)
at glog.business.rate.ratedistance.RateDistanceSession.calculateDistance(RateDistanceSession.java:172)
at glog.business.rate.ratedistance.RateDistanceSession.calculateDistance(RateDistanceSession.java:147)
at glog.business.rate.rateengine.ratable.REShipment.getStraightLineDistance(REShipment.java:2247)
at glog.business.rate.rateengine.guts.RACCircuity.costShipment(RACCircuity.java:134)
at glog.business.rate.rateengine.RatingEngine.rateIt(RatingEngine.java:883)
at glog.business.rate.rateengine.RatingEngine.findShipmentCost(RatingEngine.java:767)
at glog.business.rate.rateengine.RatingEngine.findShipmentCosts(RatingEngine.java:656)
at glog.business.rate.rateengine.RatingEngine.findShipmentCosts(RatingEngine.java:414)
at glog.business.rate.ratefinder.RateFinder.findShipmentCosts(RateFinder.java:297)
at glog.business.rate.ratefinder.RateFinder.findShipmentCosts(RateFinder.java:193)
at glog.business.rate.ratefinder.RateFinder.findShipmentCosts(RateFinder.java:177)
at glog.business.rate.rateinquiry.RateInquirySession.calculateCost(RateInquirySession.java:1480)
at glog.business.rate.rateinquiry.RateInquirySession.getRates(RateInquirySession.java:1056)
at glog.business.rate.rateinquiry.RateInquirySession.getRatesInternal(RateInquirySession.java:897)
at glog.business.rate.rateinquiry.RateInquirySession.getRates(RateInquirySession.java:229)
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:143)
at glog.business.session.RateActionSessionHome_a6s4b5_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
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:473)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

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