当前位置: 代码迷 >> JBoss >> jboss上用quartz调用xfire的client报错请帮忙看上
  详细解决方案

jboss上用quartz调用xfire的client报错请帮忙看上

热度:2670   发布时间:2013-02-26 00:00:00.0
jboss下用quartz调用xfire的client报错请帮忙看下
我用myeclipse提供的生成xfire的wsdl的client,测试通过没有问题,但是当使用quartz调用时报“Caused by: javax.xml.bind.JAXBException: "cn.minke.haoyisheng" doesnt contain ObjectFactory.class or jaxb.index”错误,其中cn.minke.haoyisheng是报名,ObjectFactory.class 也存在
------解决方案--------------------------------------------------------
异常的全部信息时
2010-06-18,18:12:00 [org.quartz.core.JobRunShell:208]  Job DEFAULT.dataCollectionTaskDetail threw a JobExecutionException: 
org.quartz.JobExecutionException: Could not invoke method 'dataCollection' on target object [com.hys.hrms.client.DataCollectionTask@13a27b9] [See nested exception: org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Could not marshall type.]
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:174)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:66)
at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
* Nested Exception (Underlying Cause) ---------------
org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Could not marshall type.
org.codehaus.xfire.fault.XFireFault: Could not marshall type.
at org.codehaus.xfire.jaxb2.JaxbType.writeObject(JaxbType.java:266)
at org.codehaus.xfire.aegis.AegisBindingProvider.writeParameter(AegisBindingProvider.java:229)
at org.codehaus.xfire.service.binding.AbstractBinding.writeParameter(AbstractBinding.java:273)
at org.codehaus.xfire.service.binding.DocumentBinding.writeMessage(DocumentBinding.java:84)
at org.codehaus.xfire.soap.SoapSerializer.writeMessage(SoapSerializer.java:80)
at org.codehaus.xfire.transport.http.HttpChannel.writeWithoutAttachments(HttpChannel.java:56)
at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.getByteArrayRequestEntity(CommonsHttpMessageSender.java:422)
at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.send(CommonsHttpMessageSender.java:360)
at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:123)
at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
at org.codehaus.xfire.client.Client.invoke(Client.java:336)
at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
at $Proxy225.getDoctorReturnXml(Unknown Source)
at com.hys.hrms.client.HaoYiShengServiceClient.collectionDoctorsData(HaoYiShengServiceClient.java:133)
at com.hys.hrms.client.DataCollectionTask.executeJobDetail(DataCollectionTask.java:78)
at com.hys.hrms.client.DataCollectionTask.dataCollection(DataCollectionTask.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  相关解决方案