That is odd because importXmlStream is basically calling the new importStream. Here is the code:
@deprecated
override def importXmlStream(context: IContext, xmlStream: InputStream, importMappingName: String, mappingParameter: IMendixObject,
storeResultInVariable: Boolean, limit: Int, hasListReturnValue: Boolean, shouldValidate: Boolean): Object = {
val results = importStream(context, xmlStream, importMappingName, mappingParameter, limit, shouldValidate)
(storeResultInVariable, hasListReturnValue) match {
case (true, true) => results
case (true, _) => if (results.size > 0) results.get(0) else null
case _ => null
}
}
Could it be that you have conflicting library in your user libs?
At the risk of telling you something you already know: It looks as if an attempt is made to cast to a an ImplementationSource class. An instance of 'org.w3c.dom.DOMImplementationSource' is expected, but instead, an instance of 'org.apache.xerces.dom.DOMXSImplementationSourceImpl' is provided.
It is possible that either a library has changed, but the code has not, or the code has changed but an old library is still in place.
I'd recommend taking a look at the Call Hierarchy of the 'newInstance' method of org.w3c.dom.bootstrap.DOMImplementationRegistry. See where the method is called, and if at any point it receives wrong input parameter.
Excuses for hijacking this thread, but I hav ethe same error.
In our app (developed at 6.10.3) we want to use the iDeal module from the App Store.
I have downloaded it and after correcting the layouts in 5.x I import it in a testapp with Deeplink included. THe only error then is the Homepage and easily solved.
Going through the first steps of config I want to see what the result so far is. I got the java error on ImportXmlStream.
Applied the solutions suplied here (adding CommunityCommons), but still get this error.
Tried to do the same in 6.10.2 and start in 6.10.3 hoping the conversion would take care of the problem, but no success either.
How do I get the iDeal app from the app store working in 6.10.3?
I am not an expert in java and do not like the status of anything "depricated"; that is a red flag for bad design.