Cxf Soapfault Error Reading Xmlstreamreader
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this soapfaultexception: error reading xmlstreamreader site About Us Learn more about Stack Overflow the company Business Learn more
Caused By: Com.ctc.wstx.exc.wstxeofexception: Unexpected Eof In Prolog
about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x error reading xmlstreamreader cxf 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 minute: Sign up Exception when
Error Reading Xmlstreamreader Soapui
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 exception, unwinding now org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader. ... org.apache.cxf.binding.soap.soapfault internal error 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,406124167 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 below) * otherwise CXF will complain. */ processedSoapEnv = fixSoapEnvelope(inputBuffer); } catch(IOException e){ } }
here for a quick overview of the site Help Center Detailed answers to any questions you might
Unexpected Eof In Prolog At [row,col {unknown-source}]: [1,0]
have Meta Discuss the workings and policies of this site About
Com.ctc.wstx.exc.wstxeofexception: Unexpected Eof In Prolog At [row,col {unknown-source}]: [1,0]
Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads xmlstreamreader unexpected eof in prolog 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, http://stackoverflow.com/questions/5313041/exception-when-sending-big-soap-request just like you, helping each other. Join them; it only takes a minute: Sign up Error reading XMLStreamReader in SOAPUI but works fine in browser up vote 0 down vote favorite We have a spring-cxf ( Spring 3.0.4, CXF 2.5.10, Java 6) web service application deployed in WAS 8.0.0.7 @ Linux machine. We are able http://stackoverflow.com/questions/21106751/error-reading-xmlstreamreader-in-soapui-but-works-fine-in-browser to access all services through soap ui by directly using ip on url (through Linux IP in which application installed). Now the app server is behind the Web server (iplanet, & configured by client) and now the issue comes(we are using https to hit the web server where as web server to app server is http). We are able to see xml content in browser using the url provided by client but when we access the web service through SOAPUI we are getting "Error reading XMLStreamReader." and following exception in WAS log -------------------------------------- [1/14/14 5:14:34:375 GMT] 00000040 AccDetailsInt I org.apache.cxf.services.AccountDetailsWSService.AccountDetailsWSPort.AccDetailsInt Inbound Message ---------------------------- ID: 13 Address: https://{ip:port}/infox/services/AccountDetailsWSPort Encoding: UTF-8 Http-Method: POST Content-Type: text/xml;charset=UTF-8 Headers: {$WSCS=[SSL_RSA_WITH_RC4_128_MD5-128], $WSIS=[true], $WSPR=[HTTP/1.1], $WSRA=[10.203.118.218], $WSRH=[10.203.118.218], $WSSC=[https], $WSSI=[Q1IrQ29oeGJCMFNHRWFPNzdBYjBRSU1RNEVZd3RWSHhlVWJyRGtnaDBEWT0=], $WSSN=[ip], $WSSP=[2006], _WS_HAPRT_WLMVERSION=[-1], accept-encoding=[gzip,deflate], conten-lengtth=[1594], content-type=[text/xml;charset=UTF-8], Host=[{ip:port}], SOAPAction=["urn:GetAccountProfile"], Surrogate-Capability=[WS-ESI="ESI/1.0+"], User-Agent=[Apache-HttpClient/4.1.1 (java 1.5)]} -------------------------------------- [1/14/14 5:14:34:376 GMT] 00000040 SystemOut O Request XML : [1/14/14 5:14:34:376 GMT] 00000040 PhaseIntercep W org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging Interceptor for {http://wsbroker.core.infx.com/}AccountDetailsWSService has thrown exception, unwinding now org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader. at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:1
issues CXF-1648org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader.Agile Board ExportXMLWordPrintableJSON https://issues.apache.org/jira/browse/CXF-1648?attachmentOrder=desc Details Type: Sub-task Status: Closed Priority: Critical Resolution: Cannot Reproduce Affects Version/s: 2.1 Fix Version/s: Invalid Component/s: None Labels: https://samebug.io/exceptions/361757/org.apache.cxf.binding.soap.SoapFault/error-reading-xmlstreamreader-unexpected-eof-in-prolog?soft=false None Environment: Windows XP, JBoss 4.0.5 GA, cxf 2.1 Estimated Complexity: Unknown Description Hi all, i'm building the HelloWorld error reading sample, with spring. 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 error reading xmlstreamreader in the client, i configured 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.apac
help others org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] Stack Overflow | heyDude | 1 year ago 1 mark Soap Header (Unexpected EOF in prolog) Stack Overflow | 1 year ago | heyDude org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] find similars Woodstox Apache CXF Runtime SOAP Binding Apache CXF Core Apache CXF Runtime HTTP Transport Apache CXF Core 1 0 mark Artix 5.6 JAX-WS client fails with org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader caused by com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog. - Artix Knowledge Base - Artix - Micro Focus Community microfocus.com | 10 months ago org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader. find similars Woodstox Apache CXF Runtime SOAP Binding Apache CXF Core Apache CXF Runtime HTTP Transport Apache CXF Core 0 0 mark How I can test apache cxf web service with junit? Stack Overflow | 10 months ago | jahra org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader. find similars Woodstox Apache CXF Runtime SOAP Binding Apache CXF Core Apache CXF Runtime HTTP Transport Apache CXF Core 0 Speed up your debug routine! Automated exception search integrated into your IDE Test Samebug Integration for IntelliJ IDEA 0 mark Hi, I managed to install the Sharepoint Connector Release 1.4.3 (Upgrade from 1.3). As far as I know I did everything that is required by the Upgrade Notes. Both Tests at the end of the configuration of the Confluence Plugin and the Sharepoint Feature succeed. I can successfully embed a Sharepoint List in a Confluence Page using the SharePoint List Macro. But I have to type the full name of the list that I want to embed, when configuring the Macro: The autocompletion for the Smart Field "List" in the Macro Browser is not working. I checked the logs and found the following errors. In Sharepoint logs: {noformat} 07/13/2011 10:54:05.11 w3wp (0x0824) 0x15BC [Atlassian Confluence] WebServices CSIz Exception Search for lists caused exception: Microsoft.SharePoint.SPException: Die Suche kann nicht ausgeführt werden, da dieser Website keine Indexerstellung zugeordnet wurde. Weitere Informationen erhalten Sie von Ihrem Administrator. bei Microsoft.SharePoint.Search.Query.Query..ctor(SPSite site) bei Microsoft.SharePoint.Search.Query.KeywordQuery..ctor(SPSite site) bei Atlassian.Confluence.SharePoint.Version2007.WebServices.ListSearchHelper.ExecuteWssKeywordQu