Hi Mack, On CF 8.01 I get this error when following the steps:
[coldfusion.runtime.UDFMethod$InvalidReturnTypeException : The value returned from the function1 function is not of type wstest.result.function1Response.] Your getting a different error, which is actually the same one I get on my production server. However, I don't have to modify any filenames or ANY code to get this error. I think it happens when there is a cache pop in the template cache. Because it works for a while, some times a day or so, and then stops. If I increase the template cache size it seems to work for longer before an error starts, thats why I think its related to the template cache.. Brook -----Original Message----- From: Mack [mailto:[email protected]] Sent: December-11-10 10:05 AM To: cf-talk Subject: Re: Webservice error after CF 8.01 update > Grrr.... I've pretty much exhausted all my options now, this is driving me > batty.. Brook, I think this is a bug in CF. I've made a small testcase on which I can reproduce the error all the time: http://dl.dropbox.com/u/15688335/wstest.zip 1. Put the files in a wstest folder in your root. 2. create a file to test the web service : <cfset ws = createObject("webservice", "http://SERVER/wstest/ws.cfc?wsdl").function1()> 3. run the test file once. It should work properly. 4. rename wstest/result/function1Response.cfc (adding 1 at the end of the file works just fine) 5. run the test file. It should complain about function1Response.cfc not being found. 6. rename the cfc back to function1Response.cfc 7. run the test file. On my server (9.0.1) it alternates between 'java.lang.LinkageError : loader (instance of coldfusion/xml/rpc/SkeletonClassLoader): attempted duplicate class definition for name: "wstest/result/Function1Response"' and 'java.lang.ClassNotFoundException : wstest.result.Function1Response][java.lang.NullPointerException : null' The error is cleared temporarily by: - changing ws.cfc (adding spaces at the start for example); - using the clearTrustedCache function like in your code. If you can duplicate the error I will log this as a bug with Adobe. -- Mack ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340025 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

