My Oracle Support Banner

"java.lang.NullPointerException" on Release Integration that Uses a Transport Handling Unit with No Layer Data Configured (Doc ID 1523210.1)

Last updated on JULY 20, 2024

Applies to:

Oracle Transportation Management - Version 6.2.5 to 6.3.2 [Release 6.2 to 6.3]
Information in this document applies to any platform.


When using a packaged item on an order which contains a Transport Handling Unit, but does not have the Number of Layers on Ship Unit and Quantity Per Layers fields populated, the following error occurs attempting to upload the Order via Integration:

    at glog.server.query.order.OrderReleasePersistenceHelper.addPackingRules(
    at glog.ejb.orderbase.ObDetailDeriveMissingData.getOutputShipUnitLine(
    at glog.ejb.orderbase.ObDetailDeriveMissingData.deriveMissingData(
    at glog.ejb.orderbase.ObLineBean.deriveMissingData(
    at glog.ejb.orderbase.ObLineBean.prePersist(
    at glog.ejb.orderbase.ObLineBean.preCreate(
    at sun.reflect.GeneratedMethodAccessor241.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at glog.util.beandata.BeanDataHelper$PrePost.runAndThrow(
    at glog.util.ThrowablePrivilegedAction.doPrivileged(
    at glog.util.beandata.BeanDataHelper$
    at glog.util.beandata.BeanDataHelper$
    at glog.util.beandata.BeanDataInserter.preCreate(
    at glog.util.beandata.BeanDataInserter.insert(
    at glog.util.beandata.BeanDataInserter.insert(
    at glog.util.beandata.BeanDataInserter.insert(
    at glog.util.persistence.BeanDataPersistenceExecutor.insertPerformed(
    at glog.util.persistence.PersistenceExecutor.persistencePerformed(PersistenceExecu

The issue can be reproduced at will with the following steps:

1. Set Up the 2 items and Order Configurations. Make sure one of these has the fields "Number of Layers on Ship Unit" and "Quantity Per Layers" fields populated and the other does not these values populated. 
2. Create an Order Release xml's to fit your domain (Location IDs and Domain Name and Packaging Unit/THU
3. Upload each XML.
4. Notice the xml with first item processes successfully as it contains the fields mentioned on the packaged item.
5. Note the xml with second item fails with the null pointer because the fields are NOT populated on the packaged item.
Since these fields are not "required" fields - it is not expected to be populated and should not error out.


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.