admin管理员组

文章数量:1296373

I am migrating a Webservice from JBoss 7.1 to JBoss 7.4. This service works fine on JBoss 7.1 But getting error when I run on JBoss 7.4 Getting java.lang.IllegalArgumentException: local part cannot be "null" when creating a QName.

I have localname and namespace on the root element. The exact error occurs when I add document to the soapBody. Did anyone come across this error before?

I checked the targetNamespace and printed the document to check if its correctly showing up or not. The XML document looks good to me.

Update: I added the following to the code and its working now on JBoss 7.4 DocumentBuilderFactory docFact = DocumentBuilderFactory.newInstance(); docFact.setNamespaceAware(true);

本文标签: