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);
本文标签:
版权声明:本文标题:web services - Getting java.lang.IllegalArgumentException: local part cannot be "null" when creating a QName o 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741638009a2389749.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论