2011-04-11 85 views
3

我想從我的GAE應用程序撥打肥皂電話。它正常工作在本地主機,但在部署它拋出異常從GAE/J撥打SOAP服務

.... 
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訪問它有什麼不同?而且,當然,我如何解決我的錯誤?

回答

0

其實soap服務器的權限有問題。 GAE支持版本1.4.2 (link)中的肥皂。

+0

肥皂服務器權限如何在GAE應用上導致反射錯誤?你是否使用GAE作爲SOAP客戶端端點? – ZiglioUK 2012-07-25 05:09:05

+0

我在使用GAE時也遇到了SOAP問題。這是我的問題:http://stackoverflow.com/questions/11643218/error-in-javax-xml-ws-service-initialization-on-app-engine – ZiglioUK 2012-07-25 21:29:24