Caused by: javax.xml.ws.WebServiceException: Unable to create JAXBContext 错误提示




Caused by: javax.xml.ws.WebServiceException: Unable to create JAXBContext
 at com.sun.xml.internal.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:153) ~[na:1.6.0_25]
 at com.sun.xml.internal.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:83) ~[na:1.6.0_25]
 at com.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:244) ~[na:1.6.0_25]
 at com.sun.xml.internal.ws.client.WSServiceDelegate.createSEIPortInfo(WSServiceDelegate.java:687) ~[na:1.6.0_25]
 at com.sun.xml.internal.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:675) ~[na:1.6.0_25]
 at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:330) ~[na:1.6.0_25]
 at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:313) ~[na:1.6.0_25]
 at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:295) ~[na:1.6.0_25]
 at javax.xml.ws.Service.getPort(Service.java:92) ~[na:1.6.0_25]
 at com.yss.msp.website.domain.client.AxStockWebsiteHandlerImpl.(AxStockWebsiteHandlerImpl.java:26) ~[bundlefile/:na]
 ... 44 common frames omitted
Caused by: java.security.PrivilegedActionException: null
 at java.security.AccessController.doPrivileged(Native Method) ~[na:1.6.0_25]
 at com.sun.xml.internal.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:140) ~[na:1.6.0_25]
 ... 53 common frames omitted
Caused by: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
 at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:91) ~[na:1.6.0_25]
 at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:436) ~[na:1.6.0_25]
 at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:277) ~[na:1.6.0_25]
 at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1100) ~[na:1.6.0_25]
 at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:143) ~[na:1.6.0_25]
 at com.sun.xml.internal.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:95) ~[na:1.6.0_25]
 at com.sun.xml.internal.ws.developer.JAXBContextFactory$1.createJAXBContext(JAXBContextFactory.java:97) ~[na:1.6.0_25]
 at com.sun.xml.internal.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:148) ~[na:1.6.0_25]
 at com.sun.xml.internal.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:140) ~[na:1.6.0_25]
 ... 55 common frames omitted

最近有处理一个功能用到webservice的,结果一直报这个错误 ,然后网上搜了很久发现有说是接口的问题,一开始没反应过来,后面发现确实是在传递的参数中含有接口对象,造成组件无法启动和使用,后面处理方式是去掉使用的接口对象,另找方法初始化对象,恢复正常

你可能感兴趣的:(Java)