Fixes are available
Rational Software Architect Designer for WebSphere Software Fix Pack 1 (9.5.0.1) for 9.5.0
Rational Software Architect Designer Fix Pack 2 (9.5.0.2) for 9.5.0
Rational Software Architect Designer for WebSphere Software Fix Pack 2 (9.5.0.2) for 9.5.0
Rational Software Architect Designer for WebSphere Software Fix Pack 3 (9.5.0.3) for 9.5.0
Rational Software Architect Designer Fix Pack 3 (9.5.0.3) for 9.5.0
APAR status
Closed as program error.
Error description
Hi, I am using Rational Software Architect v8.5.1 with BIRT reporting following the instructions here [1] http://www-01.ibm.com/support/knowledgecenter/SS5JSH_9.1.1 /com.ibm.ccl.erf.doc/topics/t_create_report_specifics.html Specifically using the following to list all the component in a diagram. For a class diagram, a list of classes that are in the diagram Create a UML data set with the following characteristics: * Parameter: diagram * Row Mapping: + Expression: oclEvaluate(resolveURI($diagram), "self.children->select(c|c.element.oclIsKindOf(uml:: Class))->collect(c|c.element)") + Type: uml:Class When you use the data set in a report design, set the parameter value to the URI of a diagram in the model. When I run the report or preview the data I get the following error. I have narrowed this down to happen only when there is a Geometric shape (eg. A rectangle) in the diagram. If there are only UML modelling elements in the diagram it works fine. I suspect this is something to do with the rectangle coming from the GMF Notation package rather than the UML package, but cannot work out how to resolve the issue. java.lang.NullPointerException at com.ibm.ccl.oda.emf.internal.datasource.EMFResultSet.collectR owObjects(Unknown Source) at com.ibm.ccl.oda.emf.internal.datasource.EMFResultSet.<init>(U nknown Source) at com.ibm.ccl.oda.emf.internal.datasource.EMFQuery.executeQuery (Unknown Source) at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaQue ry.doExecuteQuery(Unknown Source) at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaQue ry.executeQuery(Unknown Source) at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.ex ecute(Unknown Source)
Local fix
You can use the following OCL expression to fix the issue and still get the elements of type UML:Component in their OCL Query: =========================================================== oclEvaluate(resolveURI("platform:/resource/TempErrorModel/T.emx# _04CJYKn WEeWCJ6SMXVuo0w"), "self.children -> select(e|e.element.oclIsKindOf(uml::Component)) ->reject (e|e.element = null) -> collect(e|e.element)" ) =========================================================== The problem is with the Geometric shapes added in to the returned collection of Components (that too as "null" objects). You can use the above expression as a workaround to get the UML Component elements collection by rejecting the null elements from the returned collection in the "select" expression.
Problem summary
**************************************************************** * USERS AFFECTED: * * - * **************************************************************** * PROBLEM DESCRIPTION: * * Birt Report Generation with geometric shapes on the diagram * * was throwing an internal error thereby not generated the * * correct report. This is because, ocl query for picking up * * the UML elements was returning a null object in the result * * though the geometric shape was not an UML element. * **************************************************************** * RECOMMENDATION: * ****************************************************************
Problem conclusion
Birt Report Generation with geometric shapes on the diagram was throwing an internal error thereby not generated the correct report. This is because, ocl query for picking up the UML elements was returning a null object in the result though the geometric shape was not an UML element. With this fix this issue is fixed and Birt report generation will work as expected though there are geometric shapes on the diagram/model.
Temporary fix
Comments
APAR Information
APAR number
PI55294
Reported component name
RATL SW ARCHITE
Reported component ID
5725A3000
Reported release
851
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2016-01-12
Closed date
2016-03-23
Last modified date
2016-03-23
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
RATL SW ARCHITE
Fixed component ID
5725A3000
Applicable component levels
R851 PSY
UP
R900 PSY
UP
R910 PSY
UP
R911 PSY
UP
R912 PSY
UP
R950 PSY
UP
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"851","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
14 October 2021