You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Egor Samarkhanov <sl...@actimind.com> on 2007/10/17 10:43:44 UTC

Re[2]: Redundand Request/Response types in WSDL

Hello !

Thanks, James, this annotation made CXF generate
correct WSDL, but now integer values are returned
incorrectly from my service. In my .NET client
I get nulls instead of integers.

Wednesday, October 17, 2007, 7:01:08 AM, you wrote:

JM> Hi,

JM> Try annotate the SEI with
JM> @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)

JM> Then the generated elements in the schema will be

JM> <xsd:element name="echo" nillable="true" type="xsd:string"/>
JM> <xsd:element name="echoResponse" nillable="true" type="xsd:string"/>

JM> James

>> Hi !
>>
>> I've created a simple service with one method
>>
>>    String echo(String str);
>>
>> and CXF created request/response types in WSLD:
>>
>> <xs:element name="echo" type="tns:echo" />
>> <xs:complexType name="echo">
>>   <xs:sequence>
>>     <xs:element minOccurs="0" name="arg0" type="xs:string" />
>>   </xs:sequence>
>> </xs:complexType>
>> <xs:element name="echoResponse" type="tns:echoResponse" />
>>   <xs:complexType name="echoResponse">
>>     <xs:sequence>
>>       <xs:element minOccurs="0" name="return" type="xs:string" />
>>   </xs:sequence>
>> </xs:complexType>
>>
>> ...
>>
>> <wsdl:message name="echo">
>>   <wsdl:part element="tns:echo" name="parameters" /> 
>> </wsdl:message>
>> <wsdl:message name="echoResponse">
>>   <wsdl:part element="tns:echoResponse" name="result" /> 
>> </wsdl:message>
>>
>> ...
>>
>> <wsdl:operation name="echo">
>>   <wsdl:input message="tns:echo" name="echo" /> 
>>   <wsdl:output message="tns:echoResponse" name="echoResponse" /> 
>> </wsdl:operation>
>>
>> ...
>>
>> <wsdl:operation name="echo">
>>   <soap:operation soapAction="" style="document" /> 
>>   <wsdl:input name="echo">
>>     <soap:body use="literal" />
>>   </wsdl:input>
>>   <wsdl:output name="echoResponse">
>>     <soap:body use="literal" />
>>   </wsdl:output>
>> </wsdl:operation>
>>
>> Is it possible to make CXF work without these additional
>> echo and echoResponse objects? It would be ideal to work
>> with just strings for input and output messages.
>>
>>
>>
>> Thanks,
>> Egor Samarkhanov (slash@actimind.com)
>>
>>
>>   




------------------------------------
Best regards,
Egor Samarkhanov (slash@actimind.com)
Actimind, Inc.



Re: Redundand Request/Response types in WSDL

Posted by James Mao <ja...@iona.com>.
Hi,

Since you don't provide your testcase, so I can not reproduce the the 
problem you had,
but I hope this link will help you debugging your application

http://cwiki.apache.org/CXF20DOC/debugging.html

Regards,
James

> Hello !
>
> Thanks, James, this annotation made CXF generate
> correct WSDL, but now integer values are returned
> incorrectly from my service. In my .NET client
> I get nulls instead of integers.
>
> Wednesday, October 17, 2007, 7:01:08 AM, you wrote:
>
> JM> Hi,
>
> JM> Try annotate the SEI with
> JM> @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
>
> JM> Then the generated elements in the schema will be
>
> JM> <xsd:element name="echo" nillable="true" type="xsd:string"/>
> JM> <xsd:element name="echoResponse" nillable="true" type="xsd:string"/>
>
> JM> James
>
>   
>>> Hi !
>>>
>>> I've created a simple service with one method
>>>
>>>    String echo(String str);
>>>
>>> and CXF created request/response types in WSLD:
>>>
>>> <xs:element name="echo" type="tns:echo" />
>>> <xs:complexType name="echo">
>>>   <xs:sequence>
>>>     <xs:element minOccurs="0" name="arg0" type="xs:string" />
>>>   </xs:sequence>
>>> </xs:complexType>
>>> <xs:element name="echoResponse" type="tns:echoResponse" />
>>>   <xs:complexType name="echoResponse">
>>>     <xs:sequence>
>>>       <xs:element minOccurs="0" name="return" type="xs:string" />
>>>   </xs:sequence>
>>> </xs:complexType>
>>>
>>> ...
>>>
>>> <wsdl:message name="echo">
>>>   <wsdl:part element="tns:echo" name="parameters" /> 
>>> </wsdl:message>
>>> <wsdl:message name="echoResponse">
>>>   <wsdl:part element="tns:echoResponse" name="result" /> 
>>> </wsdl:message>
>>>
>>> ...
>>>
>>> <wsdl:operation name="echo">
>>>   <wsdl:input message="tns:echo" name="echo" /> 
>>>   <wsdl:output message="tns:echoResponse" name="echoResponse" /> 
>>> </wsdl:operation>
>>>
>>> ...
>>>
>>> <wsdl:operation name="echo">
>>>   <soap:operation soapAction="" style="document" /> 
>>>   <wsdl:input name="echo">
>>>     <soap:body use="literal" />
>>>   </wsdl:input>
>>>   <wsdl:output name="echoResponse">
>>>     <soap:body use="literal" />
>>>   </wsdl:output>
>>> </wsdl:operation>
>>>
>>> Is it possible to make CXF work without these additional
>>> echo and echoResponse objects? It would be ideal to work
>>> with just strings for input and output messages.
>>>
>>>
>>>
>>> Thanks,
>>> Egor Samarkhanov (slash@actimind.com)
>>>
>>>
>>>   
>>>       
>
>
>
>
> ------------------------------------
> Best regards,
> Egor Samarkhanov (slash@actimind.com)
> Actimind, Inc.
>
>
>   

Re: Error with temporary files

Posted by Willem Jiang <ni...@iona.com>.
Hi,
It is a known issue. You can found more information here[1]
[1]http://issues.apache.org/jira/browse/CXF-986

Willem.
Jean-François Daune wrote:
> Creating the temp file works fine. I don't know what's wrong.
>
> There is enough space on my disk, which uses NTFS. 
>
> I noticed that turning logging feature off is a workaround.
>
> I can live with it. I'll wait for 2.0.3 release.
>
> J-F
>
> -----Message d'origine-----
> De : Daniel Kulp [mailto:dkulp@apache.org]
> Envoyé : mercredi 17 octobre 2007 16:35
> À : cxf-user@incubator.apache.org
> Cc : Jean-François Daune
> Objet : Re: Error with temporary files
>
>
>
> Hmm....  
>
>   
>> Caused by: java.io.IOException: No such file or directory
>> 	at java.io.WinNTFileSystem.createFileExclusively(Native Method)
>> 	at java.io.File.checkAndCreate(File.java:1345)
>> 	at java.io.File.createTempFile(File.java:1434)
>> 	at java.io.File.createTempFile(File.java:1471)
>>     
>
> It's having issues creating a temp file.   Can you check to make sure 
> your temp directory is available and is writable and has space?   Maybe 
> write a simple program that does just File.createTempFile("cxf", null); 
> or similar to see if that works?
>
> I did do a bit of work in this area, so you might want to try tha latest 
> 2.0.3 snapshots.   With that, I can provide a system property to control 
> where the temp files are created.
>
> Dan
>
>
>
> On Wednesday 17 October 2007, Jean-François Daune wrote:
>   
>> Hi,
>>
>> I got this error in some of my tests. I use version 2.0.1.
>>
>> The problem seems to relate more to Woodstox than CXF.
>>
>> Any idea?
>>
>> Cheers,
>>
>> J-F
>>
>>
>> org.apache.cxf.binding.soap.SoapFault: Error writing to
>> XMLStreamWriter. at
>> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndi
>> ngInterceptor.handleMessage(SoapOutInterceptor.java:244) at
>> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndi
>> ngInterceptor.handleMessage(SoapOutInterceptor.java:226) at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercepto
>> rChain.java:207) at
>> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessa
>> ge(AbstractFaultChainInitiatorObserver.java:90) at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercepto
>> rChain.java:224) at
>> org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(Outg
>> oingChainInterceptor.java:73) at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercepto
>> rChain.java:207) at
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitia
>> tionObserver.java:73) at
>> org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletD
>> estination.java:78) at
>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(S
>> ervletController.java:231) at
>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletContr
>> oller.java:139) at
>> org.apache.cxf.transport.servlet.CXFServlet.invoke(CXFServlet.java:271
>> ) at
>> org.apache.cxf.transport.servlet.CXFServlet.doPost(CXFServlet.java:249
>> ) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
>> cationFilterChain.java:269) at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
>> lterChain.java:188) at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
>> lve.java:213) at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
>> lve.java:174) at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
>> va:127) at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
>> va:117) at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
>> e.java:108) at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
>> :151) at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>> 874) at
>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.pr
>> ocessConnection(Http11BaseProtocol.java:665) at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoi
>> nt.java:528) at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFoll
>> owerWorkerThread.java:81) at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
>> ol.java:689) at java.lang.Thread.run(Thread.java:595)
>> Caused by: com.ctc.wstx.exc.WstxIOException: No such file or directory
>> 	at
>> com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:
>> 1687) at
>> com.ctc.wstx.sw.BaseStreamWriter.writeEndDocument(BaseStreamWriter.jav
>> a:585) at
>> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndi
>> ngInterceptor.handleMessage(SoapOutInterceptor.java:239) ... 28 more
>> Caused by: java.io.IOException: No such file or directory
>> 	at java.io.WinNTFileSystem.createFileExclusively(Native Method)
>> 	at java.io.File.checkAndCreate(File.java:1345)
>> 	at java.io.File.createTempFile(File.java:1434)
>> 	at java.io.File.createTempFile(File.java:1471)
>> 	at
>> org.apache.cxf.io.CachedOutputStream.createFileOutputStream(CachedOutp
>> utStream.java:248) at
>> org.apache.cxf.io.CachedOutputStream.write(CachedOutputStream.java:222
>> ) at
>> org.apache.cxf.io.CacheAndWriteOutputStream.write(CacheAndWriteOutputS
>> tream.java:60) at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:96)
>> 	at
>> com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214)
>> at
>> com.ctc.wstx.sw.BufferingXmlWriter.close(BufferingXmlWriter.java:194)
>> at
>> com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:
>> 1685) ... 30 more
>>     
>
>
>
>   

RE: Error with temporary files

Posted by Jean-François Daune <jf...@cigersoft.be>.
Creating the temp file works fine. I don't know what's wrong.

There is enough space on my disk, which uses NTFS. 

I noticed that turning logging feature off is a workaround.

I can live with it. I'll wait for 2.0.3 release.

J-F

-----Message d'origine-----
De : Daniel Kulp [mailto:dkulp@apache.org]
Envoyé : mercredi 17 octobre 2007 16:35
À : cxf-user@incubator.apache.org
Cc : Jean-François Daune
Objet : Re: Error with temporary files



Hmm....  

> Caused by: java.io.IOException: No such file or directory
> 	at java.io.WinNTFileSystem.createFileExclusively(Native Method)
> 	at java.io.File.checkAndCreate(File.java:1345)
> 	at java.io.File.createTempFile(File.java:1434)
> 	at java.io.File.createTempFile(File.java:1471)

It's having issues creating a temp file.   Can you check to make sure 
your temp directory is available and is writable and has space?   Maybe 
write a simple program that does just File.createTempFile("cxf", null); 
or similar to see if that works?

I did do a bit of work in this area, so you might want to try tha latest 
2.0.3 snapshots.   With that, I can provide a system property to control 
where the temp files are created.

Dan



On Wednesday 17 October 2007, Jean-François Daune wrote:
> Hi,
>
> I got this error in some of my tests. I use version 2.0.1.
>
> The problem seems to relate more to Woodstox than CXF.
>
> Any idea?
>
> Cheers,
>
> J-F
>
>
> org.apache.cxf.binding.soap.SoapFault: Error writing to
> XMLStreamWriter. at
> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndi
>ngInterceptor.handleMessage(SoapOutInterceptor.java:244) at
> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndi
>ngInterceptor.handleMessage(SoapOutInterceptor.java:226) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercepto
>rChain.java:207) at
> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessa
>ge(AbstractFaultChainInitiatorObserver.java:90) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercepto
>rChain.java:224) at
> org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(Outg
>oingChainInterceptor.java:73) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercepto
>rChain.java:207) at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitia
>tionObserver.java:73) at
> org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletD
>estination.java:78) at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(S
>ervletController.java:231) at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletContr
>oller.java:139) at
> org.apache.cxf.transport.servlet.CXFServlet.invoke(CXFServlet.java:271
>) at
> org.apache.cxf.transport.servlet.CXFServlet.doPost(CXFServlet.java:249
>) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
>cationFilterChain.java:269) at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
>lterChain.java:188) at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
>lve.java:213) at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
>lve.java:174) at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
>va:127) at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
>va:117) at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
>e.java:108) at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
>:151) at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>874) at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.pr
>ocessConnection(Http11BaseProtocol.java:665) at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoi
>nt.java:528) at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFoll
>owerWorkerThread.java:81) at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
>ol.java:689) at java.lang.Thread.run(Thread.java:595)
> Caused by: com.ctc.wstx.exc.WstxIOException: No such file or directory
> 	at
> com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:
>1687) at
> com.ctc.wstx.sw.BaseStreamWriter.writeEndDocument(BaseStreamWriter.jav
>a:585) at
> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndi
>ngInterceptor.handleMessage(SoapOutInterceptor.java:239) ... 28 more
> Caused by: java.io.IOException: No such file or directory
> 	at java.io.WinNTFileSystem.createFileExclusively(Native Method)
> 	at java.io.File.checkAndCreate(File.java:1345)
> 	at java.io.File.createTempFile(File.java:1434)
> 	at java.io.File.createTempFile(File.java:1471)
> 	at
> org.apache.cxf.io.CachedOutputStream.createFileOutputStream(CachedOutp
>utStream.java:248) at
> org.apache.cxf.io.CachedOutputStream.write(CachedOutputStream.java:222
>) at
> org.apache.cxf.io.CacheAndWriteOutputStream.write(CacheAndWriteOutputS
>tream.java:60) at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:96)
> 	at
> com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214)
> at
> com.ctc.wstx.sw.BufferingXmlWriter.close(BufferingXmlWriter.java:194)
> at
> com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:
>1685) ... 30 more



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

Re: Error with temporary files

Posted by Daniel Kulp <dk...@apache.org>.
Hmm....  

> Caused by: java.io.IOException: No such file or directory
> 	at java.io.WinNTFileSystem.createFileExclusively(Native Method)
> 	at java.io.File.checkAndCreate(File.java:1345)
> 	at java.io.File.createTempFile(File.java:1434)
> 	at java.io.File.createTempFile(File.java:1471)

It's having issues creating a temp file.   Can you check to make sure 
your temp directory is available and is writable and has space?   Maybe 
write a simple program that does just File.createTempFile("cxf", null); 
or similar to see if that works?

I did do a bit of work in this area, so you might want to try tha latest 
2.0.3 snapshots.   With that, I can provide a system property to control 
where the temp files are created.

Dan



On Wednesday 17 October 2007, Jean-François Daune wrote:
> Hi,
>
> I got this error in some of my tests. I use version 2.0.1.
>
> The problem seems to relate more to Woodstox than CXF.
>
> Any idea?
>
> Cheers,
>
> J-F
>
>
> org.apache.cxf.binding.soap.SoapFault: Error writing to
> XMLStreamWriter. at
> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndi
>ngInterceptor.handleMessage(SoapOutInterceptor.java:244) at
> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndi
>ngInterceptor.handleMessage(SoapOutInterceptor.java:226) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercepto
>rChain.java:207) at
> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessa
>ge(AbstractFaultChainInitiatorObserver.java:90) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercepto
>rChain.java:224) at
> org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(Outg
>oingChainInterceptor.java:73) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercepto
>rChain.java:207) at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitia
>tionObserver.java:73) at
> org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletD
>estination.java:78) at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(S
>ervletController.java:231) at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletContr
>oller.java:139) at
> org.apache.cxf.transport.servlet.CXFServlet.invoke(CXFServlet.java:271
>) at
> org.apache.cxf.transport.servlet.CXFServlet.doPost(CXFServlet.java:249
>) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
>cationFilterChain.java:269) at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
>lterChain.java:188) at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
>lve.java:213) at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
>lve.java:174) at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
>va:127) at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
>va:117) at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
>e.java:108) at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
>:151) at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>874) at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.pr
>ocessConnection(Http11BaseProtocol.java:665) at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoi
>nt.java:528) at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFoll
>owerWorkerThread.java:81) at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
>ol.java:689) at java.lang.Thread.run(Thread.java:595)
> Caused by: com.ctc.wstx.exc.WstxIOException: No such file or directory
> 	at
> com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:
>1687) at
> com.ctc.wstx.sw.BaseStreamWriter.writeEndDocument(BaseStreamWriter.jav
>a:585) at
> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndi
>ngInterceptor.handleMessage(SoapOutInterceptor.java:239) ... 28 more
> Caused by: java.io.IOException: No such file or directory
> 	at java.io.WinNTFileSystem.createFileExclusively(Native Method)
> 	at java.io.File.checkAndCreate(File.java:1345)
> 	at java.io.File.createTempFile(File.java:1434)
> 	at java.io.File.createTempFile(File.java:1471)
> 	at
> org.apache.cxf.io.CachedOutputStream.createFileOutputStream(CachedOutp
>utStream.java:248) at
> org.apache.cxf.io.CachedOutputStream.write(CachedOutputStream.java:222
>) at
> org.apache.cxf.io.CacheAndWriteOutputStream.write(CacheAndWriteOutputS
>tream.java:60) at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:96)
> 	at
> com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214)
> at
> com.ctc.wstx.sw.BufferingXmlWriter.close(BufferingXmlWriter.java:194)
> at
> com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:
>1685) ... 30 more



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

Re: Error with temporary files

Posted by James Mao <ja...@iona.com>.
Hi,

I guess it's been fixed by DanK recently , so you should try with the 
trunk in svn or the 2.0.3 snapshots, or wait the 2.0.3 final release

Regards,
James

> Hi,
>
> I got this error in some of my tests. I use version 2.0.1.
>
> The problem seems to relate more to Woodstox than CXF.
>
> Any idea?
>
> Cheers,
>
> J-F
>
>
> org.apache.cxf.binding.soap.SoapFault: Error writing to XMLStreamWriter.
> 	at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndingInterceptor.handleMessage(SoapOutInterceptor.java:244)
> 	at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndingInterceptor.handleMessage(SoapOutInterceptor.java:226)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
> 	at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:90)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:224)
> 	at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:73)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
> 	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:73)
> 	at org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletDestination.java:78)
> 	at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:231)
> 	at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:139)
> 	at org.apache.cxf.transport.servlet.CXFServlet.invoke(CXFServlet.java:271)
> 	at org.apache.cxf.transport.servlet.CXFServlet.doPost(CXFServlet.java:249)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
> 	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
> 	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
> 	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
> 	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
> 	at java.lang.Thread.run(Thread.java:595)
> Caused by: com.ctc.wstx.exc.WstxIOException: No such file or directory
> 	at com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:1687)
> 	at com.ctc.wstx.sw.BaseStreamWriter.writeEndDocument(BaseStreamWriter.java:585)
> 	at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndingInterceptor.handleMessage(SoapOutInterceptor.java:239)
> 	... 28 more
> Caused by: java.io.IOException: No such file or directory
> 	at java.io.WinNTFileSystem.createFileExclusively(Native Method)
> 	at java.io.File.checkAndCreate(File.java:1345)
> 	at java.io.File.createTempFile(File.java:1434)
> 	at java.io.File.createTempFile(File.java:1471)
> 	at org.apache.cxf.io.CachedOutputStream.createFileOutputStream(CachedOutputStream.java:248)
> 	at org.apache.cxf.io.CachedOutputStream.write(CachedOutputStream.java:222)
> 	at org.apache.cxf.io.CacheAndWriteOutputStream.write(CacheAndWriteOutputStream.java:60)
> 	at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:96)
> 	at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214)
> 	at com.ctc.wstx.sw.BufferingXmlWriter.close(BufferingXmlWriter.java:194)
> 	at com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:1685)
> 	... 30 more
>
>   

Error with temporary files

Posted by Jean-François Daune <jf...@cigersoft.be>.
Hi,

I got this error in some of my tests. I use version 2.0.1.

The problem seems to relate more to Woodstox than CXF.

Any idea?

Cheers,

J-F


org.apache.cxf.binding.soap.SoapFault: Error writing to XMLStreamWriter.
	at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndingInterceptor.handleMessage(SoapOutInterceptor.java:244)
	at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndingInterceptor.handleMessage(SoapOutInterceptor.java:226)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
	at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:90)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:224)
	at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:73)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:73)
	at org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletDestination.java:78)
	at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:231)
	at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:139)
	at org.apache.cxf.transport.servlet.CXFServlet.invoke(CXFServlet.java:271)
	at org.apache.cxf.transport.servlet.CXFServlet.doPost(CXFServlet.java:249)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	at java.lang.Thread.run(Thread.java:595)
Caused by: com.ctc.wstx.exc.WstxIOException: No such file or directory
	at com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:1687)
	at com.ctc.wstx.sw.BaseStreamWriter.writeEndDocument(BaseStreamWriter.java:585)
	at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndingInterceptor.handleMessage(SoapOutInterceptor.java:239)
	... 28 more
Caused by: java.io.IOException: No such file or directory
	at java.io.WinNTFileSystem.createFileExclusively(Native Method)
	at java.io.File.checkAndCreate(File.java:1345)
	at java.io.File.createTempFile(File.java:1434)
	at java.io.File.createTempFile(File.java:1471)
	at org.apache.cxf.io.CachedOutputStream.createFileOutputStream(CachedOutputStream.java:248)
	at org.apache.cxf.io.CachedOutputStream.write(CachedOutputStream.java:222)
	at org.apache.cxf.io.CacheAndWriteOutputStream.write(CacheAndWriteOutputStream.java:60)
	at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:96)
	at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214)
	at com.ctc.wstx.sw.BufferingXmlWriter.close(BufferingXmlWriter.java:194)
	at com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:1685)
	... 30 more