---
title: "被这个异常折磨透了：CXF调XFire WS异常"
author: "nesuk"
date: "2013-08-19T17:58:09Z"
tags: []
categories: ["研发管理"]
slug: "cxf-xfire-ws"
draft: false
lastmod: "2013-08-19T17:58:09Z"
id: 1927226
url: "https://nesuk.iteye.com/blog/1927226"
---

被这个异常折磨了大半天，虽然CXF官网有这个BUG的记录，但貌似还是没有彻底解决，先记录一下。

山不转水转，换一套环境重新部署吧。


```java
2013-08-19 15:35:02,526 ERROR  - <补采异常，请及时处理！ local part cannot be 
"null" when creating a QName
java.lang.IllegalArgumentException: local part cannot be "null" when creating a
QName
        at javax.xml.namespace.QName.<init>(QName.java:246)
        at javax.xml.namespace.QName.<init>(QName.java:190)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324)
        at com.lhlm.service.CollectService.sendCsvZip(CollectService.java:165)
        at com.lhlm.service.CollectService.runExpColl(CollectService.java:104)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)

        at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryB
ean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:26
4)
        at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJob
Bean.java:86)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:546)


```