Uploaded image for project: 'Project Configurator - Development'
  1. Project Configurator - Development
  2. PCDEV-1711

Export may fail with "java.lang.IllegalArgumentException: object is not an instance of declaring class"

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 3.3.2
    • Fix Version/s: 3.3.3
    • Labels:
      None
    • Critical Points:
      0

      Description

      Export might fail in some cases with this stack trace:

      java.lang.IllegalArgumentException: object is not an instance of declaring class
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.awnaba.projectconfigurator.projectconfigserialize.AbstractGlobalTable.getId(AbstractGlobalTable.java:115)
      	at com.awnaba.projectconfigurator.projectconfigserialize.AbstractGlobalTable.findOrInsertObject(AbstractGlobalTable.java:56)
      	at com.awnaba.projectconfigurator.projectconfigserialize.CustomFieldGlobalTable.findOrInsertObject(CustomFieldGlobalTable.java:107)
      	at com.awnaba.projectconfigurator.projectconfigserialize.FilterNotVisibleCFTable.flush(FilterNotVisibleCFTable.java:92)
      	at com.awnaba.projectconfigurator.projectconfigserialize.ExportManager.createJAXBTree(ExportManager.java:248)
      	at com.awnaba.projectconfigurator.projectconfigserialize.ExportManager.dumpConfigurations(ExportManager.java:92)
      

      The same problem can break the export and show as a java.lang.ClassCastException, however examination of the stack trace (this might require a look at the log file) shows that the origin of the exception is the same in both cases.

        Attachments

          Structure

            Activity

              People

              Assignee:
              pmaranon Pepe Maranon Mora
              Reporter:
              pmaranon Pepe Maranon Mora
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Structure Helper Panel