Upgrading from xmlbeans 4.0.0 --> 5.0.3

Mikael Petterson <[email protected]> Mon, 21 Mar 2022 13:53:16 +0000
Newsgroups gmane.comp.jakarta.poi.user
Message-ID <PR3PR07MB824368E32C81BA381464B33CF0169@PR3PR07MB8243.eurprd07.prod.outlook.com>
Hi,

We have a generated java bean files using xsd.

Now we want to upgrade from 4 --> 5. I switched depdency in my pom.xml for the project and I get the following error message in multiple places in Eclipse.

Example:

HelloDocument helloDocument = HelloDocument.Factory.newInstance();

Error message in Eclipse:

Type mismatch: cannot convert from XmlObject to HelloDocument

The HelloDocument is an XmlObject

public abstract interface x0.ietfParamsXmlNsNetconfBase1.HelloDocument extends org.apache.xmlbeans.XmlObject {

}


  1.  Any ideas why I get this in version 5?
  2.  Is there a remedy for this?
  3.  Is there a change in the factory?


Br,

//mike