tracker issue : CF-3206122

select a category, or use search below
(searches all categories and all time range)
Title:

invoke webservice (related to file)

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce

Reporter/Name(from Bugbase): Allen Weng / Allen Weng (Allen Weng)

Created: 06/05/2012

Components: Web Services

Versions: 10.0

Failure Type: Crash

Found In Build/Fixed In Build: Final /

Priority/Frequency: Critical / All users will encounter

Locale/System: English / Win All

Vote Count: 0

Problem Description:
the following code was work in CF6-9, NOT working in CF 10

Steps to Reproduce:

client:
<cffile action="READBINARY" file="c:\temp\Doc001.doc" variable="binarydata"> <!--- one line MS Word doc --->

<cfscript>
	fileStr = 'c:\temp\result.doc';
	docData = toBase64(binarydata);
	myws = createObject("webservice", "http://xyz:80/ws.cfc?wsdl");
	myws.saveDoc(fileStr, docData);
</cfscript>

ws.cfc:
<cfcomponent output="false" >
<cffunction name="saveDoc" returnType="void" output="no" access="remote" hint="">
	<cfargument name="fstr" type="string" required="yes">
	<cfargument name="document" type="string" required="yes">

	<cffile action="write" file="#arguments.fstr#" output="#ToBinary(arguments.document)#" >
</cffunction>
</cfcomponent>


Actual Result:
exception (see below)




Expected Result:
file saved

Any Workarounds:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3206122

External Customer Info:
External Company:  
External Customer Name: AWeng123456
External Customer Email:  
External Test Config: My Hardware and Environment details:

windows 2008 R2, 64 bit, jvm 1.6.0_32

Attachments:

Comments:

Detail The fault returned when invoking the web service operation is:<br> <pre>AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.net.SocketException: Connection reset faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:237) at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:581) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:142) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2765) at org.apache.axis.clie... ''</pre> Message Cannot perform web service invocation saveDoc.
Comment by External U.
19127 | June 05, 2012 10:25:48 AM GMT
not reproducible, neither with wsverison=1 nor with wsversion=2
Comment by Milan C.
19128 | September 12, 2012 11:11:45 AM GMT