[ERROR] 2012-06-12 22:23:19,746 method:org.quartz.core.JobRunShell.run(JobRunShell.java:211) Job DEFAULT.jobDetail threw an unhandled Exception: 
org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'insertSynchroSeedVoInfo' on target c
lass [class com.my7g.opus.job.impl.SynchroSeedVoJobImpl] failed; nested exception is com.sun.xml.ws.encoding.soap.DeserializationException: Failed to read a response: javax.xml.bind.UnmarshalException
 - with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,171713]
Message: The element type "rules_id" must be terminated by the matching end-tag "</rules_id>".]
        at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvoking
JobDetailFactoryBean.java:269)
        at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: com.sun.xml.ws.encoding.soap.DeserializationException: Failed to read a response: javax.xml.bind.UnmarshalException
 - with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,171713]
Message: The element type "rules_id" must be terminated by the matching end-tag "</rules_id>".]
        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:124)
        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
        at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
        at $Proxy99.factAreaContentInfo(Unknown Source)
        at com.my7g.opus.job.impl.SynchroSeedVoJobImpl.getFactAreaContent(SynchroSeedVoJobImpl.java:186)
        at com.my7g.opus.job.impl.SynchroSeedVoJobImpl.factAreaContentSynchroInfo(SynchroSeedVoJobImpl.java:196)
        at com.my7g.opus.job.impl.SynchroSeedVoJobImpl.insertSynchroSeedVoInfo(SynchroSeedVoJobImpl.java:82)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276)
        at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvoking
JobDetailFactoryBean.java:260)
        ... 3 more
Caused by: javax.xml.bind.UnmarshalException
 - with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,171713]
Message: The element type "rules_id" must be terminated by the matching end-tag "</rules_id>".]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:422)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:360)
        at com.sun.xml.bind.v2.runtime.BridgeImpl.unmarshal(BridgeImpl.java:120)
        at com.sun.xml.bind.api.Bridge.unmarshal(Bridge.java:233)
        at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:525)
        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:121)
        ... 15 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,171713]
Message: The element type "rules_id" must be terminated by the matching end-tag "</rules_id>".
        at com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:563)
        at com.sun.xml.ws.util.xml.XMLStreamReaderFilter.next(XMLStreamReaderFilter.java:92)
        at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:225)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:358)
        ... 19 more
[ERROR] 2012-06-12 22:23:21,266 method:org.quartz.core.ErrorLogger.schedulerError(QuartzScheduler.java:2156)
Job (DEFAULT.jobDetail threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.springframework.scheduling.quartz.JobMet
hodInvocationFailedException: Invocation of method 'insertSynchroSeedVoInfo' on target class [class com.my7g.opus.job.impl.SynchroSe
edVoJobImpl] failed; nested exception is com.sun.xml.ws.encoding.soap.DeserializationException: Failed to read a response: javax.xml
.bind.UnmarshalException
 - with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,171713]
Message: The element type "rules_id" must be terminated by the matching end-tag "</rules_id>".]]
        at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'insertSynchroSeedVoInfo' 
on target class [class com.my7g.opus.job.impl.SynchroSeedVoJobImpl] failed; nested exception is com.sun.xml.ws.encoding.soap.Deseria
lizationException: Failed to read a response: javax.xml.bind.UnmarshalException
 - with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,171713]
Message: The element type "rules_id" must be terminated by the matching end-tag "</rules_id>".]
        at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvoking
JobDetailFactoryBean.java:269)
        at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        ... 1 more
Caused by: com.sun.xml.ws.encoding.soap.DeserializationException: Failed to read a response: javax.xml.bind.UnmarshalException
 - with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,171713]
Message: The element type "rules_id" must be terminated by the matching end-tag "</rules_id>".]
        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:124)
        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
        at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
        at $Proxy99.factAreaContentInfo(Unknown Source)
        at com.my7g.opus.job.impl.SynchroSeedVoJobImpl.getFactAreaContent(SynchroSeedVoJobImpl.java:186)
        at com.my7g.opus.job.impl.SynchroSeedVoJobImpl.factAreaContentSynchroInfo(SynchroSeedVoJobImpl.java:196)
        at com.my7g.opus.job.impl.SynchroSeedVoJobImpl.insertSynchroSeedVoInfo(SynchroSeedVoJobImpl.java:82)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276)
        at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvoking
JobDetailFactoryBean.java:260)
        ... 3 more
Caused by: javax.xml.bind.UnmarshalException
 - with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,171713]
Message: The element type "rules_id" must be terminated by the matching end-tag "</rules_id>".]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:422)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:360)
        at com.sun.xml.bind.v2.runtime.BridgeImpl.unmarshal(BridgeImpl.java:120)
        at com.sun.xml.bind.api.Bridge.unmarshal(Bridge.java:233)
        at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:525)
        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:121)
        ... 15 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,171713]
Message: The element type "rules_id" must be terminated by the matching end-tag "</rules_id>".
        at com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:563)
        at com.sun.xml.ws.util.xml.XMLStreamReaderFilter.next(XMLStreamReaderFilter.java:92)
        at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:225)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:358)
        ... 19 more

解决方案 »

  1.   

    你的quartz配置xml中<rules_id>标签应该有个结束标签</rules_id>与之对应
    一段时间才报错是因为一段时间之后这个job才运行
      

  2.   


    非常感谢您的帮助。
    这个在windows里面运行完全没有错误。
    此功能是定时获取webservices给的数据,但是每隔一段时间(几个星期)就会出现一次错误。但是每次错误都不一致。我很奇怪。但是重启以后就不会出现错误了。
    我现在在想是否跟数据量有关系。因为数据量很大
      

  3.   


    非常感谢您的帮助。
    这个在windows里面运行完全没有错误。
    此功能是定时获取webservices给的数据,但是每隔一段时间(几个星期)就会出现一次错误。但是每次错误都不一致。我很奇怪。但是重启以后就不会出现错误了。
    我现在在想是否跟数据量有关系。因为数据量很大
      

  4.   

    那就是程序解析某些xml文件出现错误,而这个xml文件的内容是变动的,从某个地方获取的,解析xml最有可能出现错误的原因就是xml用中一些字符不合法,比如单独一个&符号,xml解析起来就会报错
      

  5.   

    有没有可能是webservices返回的数据格式不正确,与xml规范有冲突。
      

  6.   

    解析的XML文件中<rules_id>标签未闭合