我想通过我的GAE应用程序拨打电话。它可以在localhost正常运行,但是在部署时会引发异常

 ....
com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection <init>: Unable to make javax.xml.ws.wsaddressing.W3CEndpointReference.address accessible.
java.lang.SecurityException: java.lang.IllegalAccessException: Reflection is not allowed on private javax.xml.ws.wsaddressing.W3CEndpointReference$Address javax.xml.ws.wsaddressing.W3CEndpointReference.address
    at com.google.appengine.runtime.Request.process-fe1b1a37f7387808(Request.java)
    at com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.<init>(Accessor.java:220)
    at com.sun.xml.bind.AccessorFactoryImpl.createFieldAccessor(AccessorFactoryImpl.java:66)
    at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.createFieldSeed(RuntimeClassInfoImpl.java:252)
....
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,50]
Message: White spaces are required between publicId and systemId.
    at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:591)
    at com.sun.xml.ws.util.xml.XMLStreamReaderFilter.next(XMLStreamReaderFilter.java:92)
    at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:76)


实际上,问题是现在可以从GAE / J访问SOAP服务吗?与从本地环境和GAE访问它有什么区别?而且,当然,如何解决错误?

最佳答案

实际上,soap服务器的权限存在问题。 GAE支持版本1.4.2 (link)中的soap。

关于java - 从GAE/J调用SOAP服务,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/5619386/

10-12 21:52