My Oracle Support Banner

"java.lang.NullPointerException" Error when Generating XSD Schema from a JSON File (Doc ID 2613312.1)

Last updated on FEBRUARY 17, 2021

Applies to:

Oracle Data Integrator - Version 12.2.1.4.0 to 12.2.1.4.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

The following error occurs in Oracle Data Integrator (ODI) Studio log when trying to generate the XML Schema Definition (XSD) schema for a JavaScript Object Notation (JSON) file using the "Native Format Builder" wizard included in the Complex File technology (accessible from tab "JDBC", button "Edit nXSD..."):

[ERROR] [] [oracle.tip.tools.ide.nxsd.FlatFileSampleJSONDescriptionPanel] [tid: 16] [ecid:,0] java.lang.NullPointerException[[
at oracle.tip.pc.services.translation.tools.datasampler.JsonDataSampler.generateSchemaFromSample(JsonDataSampler.java:86)
at oracle.tip.tools.ide.nxsd.FlatFileSampleJSONDescriptionPanel.generateNXSD(FlatFileSampleJSONDescriptionPanel.java:839)
at oracle.tip.tools.ide.nxsd.FlatFileSampleJSONDescriptionPanel.validate(FlatFileSampleJSONDescriptionPanel.java:558)
at oracle.tip.tools.ide.nxsd.FlatFileWizard.wizardValidatePage(FlatFileWizard.java:774)
at oracle.bali.ewt.wizard.WizardPage.processWizardValidateEvent(WizardPage.java:710)
.................................................

In ODI Studio an error window with no message is shown. The error appears only in ODI Studio log.
The issue occurs when the JSON file contains an empty string, like in the example below:
{"Field_1": ["Value_1", ""], ....

Changes

 

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
Changes
Cause
Solution
References


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