IBM Support

XQE-GEN-0005 Found an internal error: java.lang.NegativeArraySizeException

Question & Answer


Question

User gets the following error when attempting to run a report
XQE-GEN-0002 An unexpected exception occurred: java.lang.NegativeArraySizeException
XQE-GEN-0005 Found an internal error:java.lang.NegativeArraySizeException

Please note - these are generic errors and could have alternative solutions.

Cause

These errors will only occur running DQM process.
There is a high possibility the Report Spec is either corrupt or contains null values where variables are expected.

Answer

Modify the report Spec.  Corruption could cause this scenario.
If this was a migrated report, you can copy it over again.
You should also look for statements that contain nulls in the report Spec
For example if you have an IF statement that is IF [condition] = '', you should consider changing it to IF length ([condition]) =0

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSTSF6","label":"IBM Cognos Analytics"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"All Versions","Edition":"All Editions","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
17 April 2020

UID

ibm11071532