Infinite or NaN Java exception while xogging out projects
search cancel

Infinite or NaN Java exception while xogging out projects

book

Article ID: 278748

calendar_today

Updated On: 02-01-2024

Products

Clarity PPM On Premise

Issue/Introduction

I've been trying to XOG out projects using the `prj_projects_read.xml` XOG file, but when I enable the `include_allocations` flag, I get the following exception:

java.lang.NumberFormatException: Infinite or NaN

Do you have any hints on how could this be fixed? Or where could I find the allocation that seems to be infinite/NaN?

Resolution

Identified a way to figure out which project is causing the problem, which goes as follows:

1. Sort the projects in the MUX the same way the read XOG does (in my case it was the project ID first and then the name, both ascending).
2. Sum up all the totalNumberOfRecords attributes in the XOG output + 1, and this gives you the offset of the project that's causing the issue.


For example, using the xog output we worked with (totalNumberOfRecords = 358, offset = 358 + 1 = 359):
You'd need to go to the 4th page in the projects (the MUX shows them in batches of 100, 4th page would be showing projects 301-400), and the 59th record should be the project causing the issue.