October 31, 2016 at 4:16 pm #7894wyuParticipant
As part of my enhancement project, I created a ActCategory model class for Act to have the similar function as the Category for Entity. Now as part of the Adhoc report, I tried to put ActCategory as a child subject area under Activities and it all worked well until I added the another child subject area Users under the same Activities child subject area. When running the report, I got some errors saying
“java.lang.ClassCastException: nexj.core.util.Undefined cannot be cast to nexj.core.runtime.Instance”
Note, if I remove “Act Category” and leave Users in place, the report also works fine. For some reason, the two doesn’t work well together and the error message traces back to the framework Java code which I can’t debug locally.
I have been trying to figure out the issue for quite a while but in vain. I would appreciate very much if someone can give me some hints here. I have attached the relevant screenshots and error message to this post for your reference.
Thanks a lot,
Attachments:You must be logged in to view attached files.
November 8, 2016 at 11:23 am #7924Owen PondParticipant
This looks like a defect in the reporting engine which we will log. Saying that, what your are trying to do isn’t really recommended. We normally don’t implement more than one grandchild subject area in an ad hoc report. You can imagine how complex the required query would be for this request. Even if it works, it is unlikely to perform.
November 8, 2016 at 11:28 am #7932wyuParticipant
Thanks a lot Owen for your answer.
In the production environment, users can run the activity report as first level so that he category becomes the second level. In that case, the query will be less a headache. Just when I did the development, I will have to take care of the scenario when users want to run like Contact report and include activity and it’s categories as children.
- You must be logged in to reply to this topic.