Apache Cxf Error Reading Xmlstreamreader
Contents |
here
Error Reading Xmlstreamreader Unexpected Eof In Prolog
for a quick overview of the site Help error reading xmlstreamreader curl Center Detailed answers to any questions you might have Meta Discuss
Soapfaultexception: Error Reading Xmlstreamreader
the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about caused by: com.ctc.wstx.exc.wstxeofexception: unexpected eof in prolog hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. error reading xmlstreamreader cxf Join them; it only takes a minute: Sign up Soap Header (Unexpected EOF in prolog) up vote 0 down vote favorite I have to add Soap header into web-service responce. I tried to do in couple of ways, first of them: public SendFileToAlfaOutParms sendFileToAlfa(SendFileToAlfaInParms inParms) throws MsgWSException { logger.trace(LogMarkers.IN, "sendFileToAlfa(\ninParms={})", inParms); List
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies
Error Reading Xmlstreamreader Soapui
of this site About Us Learn more about Stack Overflow the company org.apache.cxf.binding.soap.soapfault internal error Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges
Xmlstreamreader Unexpected Eof In Prolog
Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a http://stackoverflow.com/questions/31432726/soap-header-unexpected-eof-in-prolog minute: Sign up Exception when sending big soap request up vote 0 down vote favorite There is a web-service deployed on tomcat 6 and exposed via apache-cxf 2.3.3. A generated sources stubs using wsdl2java to be able to call this service. Things seemed fine until I sent big request(~1Mb). This request wasn't processed and failing with exception: Interceptor for {http://localhost/}ResourceAllocationServiceSoapService has thrown http://stackoverflow.com/questions/5313041/exception-when-sending-big-soap-request exception, unwinding now org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader. ... com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] Is some kind of max request length here, I'm totally stuck with it. exception soap wsdl cxf wsdl2java share|improve this question edited Mar 15 '11 at 14:29 asked Mar 15 '11 at 14:14 Vladimir 3,396124166 add a comment| 3 Answers 3 active oldest votes up vote 2 down vote Vladimir's suggestion worked. This code below will help others with understanding where to put the 1000000. public void handleMessage(SoapMessage message) throws Fault { // Get message content for dirty editing... InputStream inputStream = message.getContent(InputStream.class); if (inputStream != null) { String processedSoapEnv = ""; // Cache InputStream so it can be read independently CachedOutputStream cachedInputStream = new CachedOutputStream(1000000); try { IOUtils.copy(inputStream,cachedInputStream); inputStream.close(); cachedInputStream.close(); InputStream tmpInputStream = cachedInputStream.getInputStream(); try{ String inputBuffer = ""; int data; while((data = tmpInputStream.read()) != -1){ byte x = (byte)data; inputBuffer += (char)x; } /** * At this point you can choose to reformat the SOAP * envelope or simply view it just make sure you put * an InputStream back when you done (see
issues CXF-1648org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader.Agile Board ExportXMLWordPrintableJSON Details Type: https://issues.apache.org/jira/browse/CXF-1648?attachmentOrder=desc Sub-task Status: Closed Priority: Critical Resolution: Cannot Reproduce Affects Version/s: 2.1 Fix Version/s: Invalid Component/s: None Labels: None Environment: https://java.net/projects/appfuse/lists/users/archive/2010-06/message/23 Windows XP, JBoss 4.0.5 GA, cxf 2.1 Estimated Complexity: Unknown Description Hi all, i'm building the HelloWorld sample, with spring. error reading I did everything for building the sample in server side and in client side, the webservice deploy successfully in JBoss, even accessing from the browser, i see the wsdl generated, but the problem is in the client, i configured error reading xmlstreamreader the spring xml and access the webservice in this form;: ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"META-INF/client-beans.xml"} ); HelloWorld client = (HelloWorld)context.getBean("client"); String response = client.sayHi("Joe"); System.out.println("Response: " + response); but, i got the following error in the line of invoking the remote method .sayHi("Joe"), i think is nothing with the server because i test with tomcat 5.5 and is the same result. This is the client side exception: Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Error reading XMLStreamReader. at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:218) at $Proxy35.sayHi(Unknown Source) at clientCXF.conectar(clientCXF.java:17) at clientCXF.main(clientCXF.java:10) Caused by: org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader. at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:70) at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221) at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:96) at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:65) at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221) at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:429) This is the server side exception: 12/06/20
Mailing List Use Advanced Search to search the entire archive. CXF and WSDL Problems » Back to List Archive Chronological | Threaded « Previous Message Next » « Previous Thread Next » From: andy2680