Exporting Concept definitions as XML schema using the “Generate Schema” option fails with “Null Pointer Exception”.

Exporting Concept definitions as XML schema using the “Generate Schema” option fails with “Null Pointer Exception”.

book

Article ID: KB0090979

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Abstract
===========
Exporting Concept definitions as XML schema using the “Generate Schema” option fails with “Null Pointer Exception”.

Description:
===========
In Business Events Studio project, if you have both concept definitions and XSD schema where concept’s property names match the element names in XSD schema then exporting the concept to schema using “Generate Schema” option fails with Null Pointer Exception. To reproduce the issue you can follow the steps below:


1). Open the studio.
2). Specify the Workspace directory.
3). Create a new studio project or import an existing project with concept definitions.
4). In the project make sure you also have XSD schema/s with element names matching the name of properties defined for the concept/s.
5). Right click on the Concept – Click on Export and select Generate Schema under TIBCO Business Events options and select folder to store the generated schemas and click next.
6). A Null Pointer Exception will be thrown caused by existing XSD inside the studio project with same element names.



Environment:
==========
TIBCO Business Events 5.x


Symptoms:
============
Exporting Concepts to XSD schemas fails with Null Pointer Exception

Cause:
===========
Studio project containing XSD schema with same element name as Concept property names.

Resolution:
=============
Make sure you either rename the XSD element name or if not necessary, delete the XSD definitions from studio project and retry exporting Concept definitions as XSD schema.

Issue/Introduction

Exporting Concept definitions as XML schema using the “Generate Schema” option fails with “Null Pointer Exception”.