3 Replies Latest reply on Nov 10, 2016 4:52 AM by domaru

    Data Transformation Mapper crashes with ClassCastException when setting up with XML schema that contains choice

    domaru

      Hello Community,

      I was checking the Dozer WISYWYG mapper in the JBoss 9.1 Studio (Fuse Tools v8) and I have some serious problems. Mapper crashed everytime following property was present in any referenced class:

       

       

      protected List<JAXBElement<? extends Serializable>> address1OrAddress2OrCountry;

       

      The one above is generated when there is a choice in XSD file. Each time Eclipse tries to load such class into Editor following exception is raised:

       

      java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.Class

      at org.jboss.tools.fuse.transformation.core.model.ModelBuilder.addFieldsToModel(ModelBuilder.java:70)

      at org.jboss.tools.fuse.transformation.core.model.ModelBuilder.addFieldsToModel(ModelBuilder.java:85)

      at org.jboss.tools.fuse.transformation.core.model.ModelBuilder.fromJavaClass(ModelBuilder.java:26)

      at org.jboss.tools.fuse.transformation.editor.internal.wizards.JavaPage$2$1.runInUIThread(JavaPage.java:162)

      at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:97)

      ...

       

      It seems that Editor is generating classes it cannot process...

       

      Is this a known issue?

       

      Best Regards,

         Marcin