问题描述
Message:Prematureendoffile.org.codehaus.xfire.fault.XFireFault:ParseErrorat[row,col]:[1,1]Message:Prematureendoffile.atorg.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)atorg.codehaus.xfire.client.Client.onReceive(Client.java:410)atorg.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)atorg.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)atorg.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)atorg.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)atorg.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)atorg.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)atorg.codehaus.xfire.client.Client.invoke(Client.java:336)atorg.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)atorg.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)at$Proxy253.getPrivilege(UnknownSource)atcom.hymake.wygl.shared.cache.AclPrivilegeCacheImpl.hasPrivilege(AclPrivilegeCacheImpl.java:40)atcom.hymake.wygl.shared.business.AclBusinessBean.hasPrivilege(AclBusinessBean.java:94)atsun.reflect.GeneratedMethodAccessor183.invoke(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.jboss.invocation.Invocation.performCall(Invocation.java:359)atorg.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)atorg.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)atorg.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)atorg.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)atorg.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)atorg.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:77)atorg.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)atorg.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)atorg.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)atorg.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)atorg.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)atorg.jboss.ejb.Container.invoke(Container.java:960)atorg.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)atorg.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)at$Proxy233.hasPrivilege(UnknownSource)atcom.hymake.wygl.charge.entlist.ProjListAction.getPrivilege(ProjListAction.java:664)atcom.hymake.wygl.charge.entlist.ProjListAction.perform(ProjListAction.java:236)atorg.apache.struts.action.Action.execute(Action.java:420)atorg.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)atorg.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)atorg.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)atorg.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:690)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:803)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atcom.hymake.wygl.shared.ServletFilter.doFilter(ServletFilter.java:65)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)atorg.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)atorg.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)atorg.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)atorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)atorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)atorg.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)atjava.lang.Thread.run(Thread.java:619)Causedby:javax.xml.stream.XMLStreamException:ParseErrorat[row,col]:[1,1]Message:Prematureendoffile.atcom.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:588)atorg.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:44)atorg.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)atorg.codehaus.xfire.client.Client.onReceive(Client.java:406)...61more14:33:51,386ERROR[LogInterceptor]RuntimeExceptioninmethod:publicabstractbooleancom.hymake.wygl.shared.business.AclBusinessLocal.hasPrivilege(java.lang.String,java.lang.String,java.lang.String)throwsjava.lang.Exception:org.codehaus.xfire.XFireRuntimeException:Couldnotinvokeservice..Nestedexceptionisorg.codehaus.xfire.fault.XFireFault:CouldnotreadXMLstream..Nestedexceptionisjavax.xml.stream.XMLStreamException:ParseErrorat[row,col]:[1,269]Message:Theelementtype"ns1:out"mustbeterminatedbythematchingend-tag"</ns1:out>".org.codehaus.xfire.fault.XFireFault:CouldnotreadXMLstream..Nestedexceptionisjavax.xml.stre
解决方案
解决方案二:
帮你顶个吧
解决方案三:
Causedby:javax.xml.stream.XMLStreamException:ParseErrorat[row,col]:[1,1]读xml文件第一行就报错了,你的xfire会接收还是发送xml作为参数么?
解决方案四:
Causedby:javax.xml.stream.XMLStreamException:ParseErrorat[row,col]:[1,1]读xml文件第一行就报错了,你的xfire会接收还是发送xml作为参数么?没有呢,我在客户端直接测试也没有问题,可是在本地EJB里面调用的时时候就有问题
解决方案五:
找了很多资料都没能解决,最后发现是同步的问题,一个时间访问多次造成,可是不知如何控制同步