Home Forums Presentation Jasper Reports Adhoc Report issue

Viewing 2 reply threads
  • Author
    Posts
    • #7894
      wyuwyu
      Participant

      Hello,

      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,

      Wen

      0
      Attachments:
      You must be logged in to view attached files.
    • #7924
      Owen PondOwen Pond
      Participant

      Hi Wen,

      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.

      Regards

      Owen

      1
    • #7932
      wyuwyu
      Participant

      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.

      Wen

      0
Viewing 2 reply threads
  • You must be logged in to reply to this topic.