gpt4 book ai didi

java - IllegalArgumentException : com. sun.xml.internal.messaging.saaj.soap.LocalStrings != com.sun.xml.messaging.saaj.soap.LocalStrings

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:11:27 25 4
gpt4 key购买 nike

在我的网络应用程序中,我正在联系一个网络服务(使用 JAX-WS),但我收到以下错误:

java.lang.ExceptionInInitializerError
at com.sun.xml.ws.message.AttachmentUnmarshallerImpl.<clinit>(AttachmentUnmarshallerImpl.java:55)
at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:500)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:242)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
...
Caused by: java.lang.IllegalArgumentException: com.sun.xml.internal.messaging.saaj.soap.LocalStrings != com.sun.xml.messaging.saaj.soap.LocalStrings
at java.util.logging.Logger.getLogger(Logger.java:314)
at com.sun.xml.messaging.saaj.soap.AttachmentPartImpl.<clinit>(AttachmentPartImpl.java:71)
... 189 more

这发生在我的机器上,当我在 Eclipse 中运行我的应用程序时...

此错误的来源可能是什么?

我怀疑这个Oracle Java bug ,但我在 Tomcat 5.5 和 Java 1.6.0_18 中运行我的 Web 应用程序,如我的 System.properties 所示:

java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = C:\Program Files\Java\jdk1.6.0_18\jre\bin
java.vm.version = 16.0-b13
java.runtime.version = 1.6.0_18-b07
java.version = 1.6.0_18

最佳答案

问题解决了。这是由于第三方依赖项 saaj-impl-1.3.jar 在我的环境中与在其他“官方”环境中略有不同...

关于java - IllegalArgumentException : com. sun.xml.internal.messaging.saaj.soap.LocalStrings != com.sun.xml.messaging.saaj.soap.LocalStrings,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3889087/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com