NullPointerException on RelationalDescriptor(<Entity>CharacteristicDAO --> [DatabaseTable(<ENTITY>_CHAR)])
(Doc ID 2967651.1)
Last updated on AUGUST 14, 2023
Applies to:
Oracle Communications Unified Inventory Management - Version 7.4.0.0.0 and laterInformation in this document applies to any platform.
Symptoms
Getting NullPointerException (NPE) on RelationalDescriptor(<Entity>CharacteristicDAO --> [DatabaseTable(<ENTITY>_CHAR)]) while trying to set characteristic on an entity:
Consider trying to set a Custom Object characteristic using APIs:
oracle.communications.inventory.api.common.EntityUtils.setValue(nicCo, "NIC_speed", "-");
and getting error below:
Exception [EclipseLink-98] (Eclipse Persistence Services - 2.6.7.v20190604-418f1a1c56): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The underlying descriptor callback method [aboutToInsert], with parameter (DescriptorEvent), triggered an exception.
Internal Exception: java.lang.reflect.InvocationTargetException
Target Invocation Exception: java.lang.NullPointerException
Descriptor: RelationalDescriptor(oracle.communications.platform.entity.impl.CustomObjectCharacteristicDAO --> [DatabaseTable(CUSTOMOBJECT_CHAR)])
Exception Description: The underlying descriptor callback method [aboutToInsert], with parameter (DescriptorEvent), triggered an exception.
Internal Exception: java.lang.reflect.InvocationTargetException
Target Invocation Exception: java.lang.NullPointerException
Descriptor: RelationalDescriptor(oracle.communications.platform.entity.impl.CustomObjectCharacteristicDAO --> [DatabaseTable(CUSTOMOBJECT_CHAR)])
Cause
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
Symptoms |
Cause |
Solution |