当前位置: 代码迷 >> Web前端 >> mondrian web app的 xmla 方式的有关问题 Unable to create envelope from given source
  详细解决方案

mondrian web app的 xmla 方式的有关问题 Unable to create envelope from given source

热度:885   发布时间:2012-09-05 15:19:34.0
mondrian web app的 xmla 方式的问题 Unable to create envelope from given source

~~~~访问 http://localhost:8080/mondrian/testpage.jsp?query=xmla 异常问题的解决!!~~~~~~~~~

------错误1
com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:
Unable to create envelope from given source:

org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is
made to create or change an object in a way which is
incorrect with regard to namespaces.

http://forums.pentaho.com/showthread.php?67104-Problem-running-foodmart-pivot-table-with-XMLA

首先根据提示,降JDK版本为1.5,出现如下错误:

----错误2
javax.xml.soap.SOAPException:
java.security.PrivilegedActionException:

javax.xml.soap.SOAPException: Unable to internalize
message
??? at com.tonbeller.jpivot.xmla.XMLA_SOAP.discover
(XMLA_SOAP.java:1453)

参考:http://www.coderanch.com/t/220897/Web-Services/java/unable-internalize-message
根据提示加saaj-impl.jar,后发现现有saaj-ri.jar有相同的package,试了下不加,仍是出这个错了。因此必须要加,版本是1.3的。
但还没有完全解决问题:

---错误3
javax.xml.soap.MessageFactory.newInstance
(Ljava/lang/String;)Ljavax/xml/soap/MessageFactory;

saaj-api.jar用1.3版代替当前1.1,下载地址:http://download.oracle.com/otndocs/jcp/jaxm-1.3-mrel-spec-oth-JSpec/,同时将saaj-impl替换saaj-ri.jar

---错误!!!还是回到错误1了!
下载新版的xalan-2.7.0.jar:http://mirrors.ibiblio.org/pub/mirrors/maven/xalan/jars/ 解决问题。

---结论:
(1)用新版的xalan-2.7.0
(2)用新版的sun saaj
(3)与jdk版本1.5 or 1.6无关

  相关解决方案