Fixed
Details
Details
Assignee
Pothys - MitrahSoft
Pothys - MitrahSoftReporter
Alojz Krajnc
Alojz KrajncPriority
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Created 3 April 2025 at 10:23
Updated 7 April 2025 at 15:09
Resolved 7 April 2025 at 15:09
After I upgraded to Lucee 6.2.0.321 from version 5.4 calling a simple webservice like:
component { remote string function hello() { return "My response"; } }
in SoapUI
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:def="http://DefaultNamespace"> <soapenv:Header/> <soapenv:Body> <def:hello soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </soapenv:Body> </soapenv:Envelope>
I found an error - lucee.runtime.exp.NativeException: lucee.runtime.op.Caster.cfTypeToClass(java.lang.String):
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>lucee.runtime.exp.NativeException: ; nested exception is: lucee.runtime.exp.NativeException: lucee.runtime.op.Caster.cfTypeToClass(java.lang.String)</faultstring> <detail> <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">MY-PC</ns1:hostname> </detail> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope>
This worked OK in Lucee 5.4.
Generated WSDL also seemes OK.
<wsdl:definitions xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:9006/simple.cfc" xmlns:intf="http://localhost:9006/simple.cfc" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://localhost:9006/simple.cfc"> <script/> <!-- WSDL created by Apache Axis version: 1.4 Built on Apr 22, 2006 (06:55:48 PDT) --> <wsdl:message name="helloRequest"> </wsdl:message> <wsdl:message name="helloResponse"> <wsdl:part name="helloReturn" type="xsd:string"/> </wsdl:message> <wsdl:portType name="simple_wrap"> <wsdl:operation name="hello"> <wsdl:input message="impl:helloRequest" name="helloRequest"/> <wsdl:output message="impl:helloResponse" name="helloResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="simple.cfcSoapBinding" type="impl:simple_wrap"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="hello"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="helloRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace" use="encoded"/> </wsdl:input> <wsdl:output name="helloResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:9006/simple.cfc" use="encoded"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="simple_wrapService"> <wsdl:port binding="impl:simple.cfcSoapBinding" name="simple.cfc"> <wsdlsoap:address location="http://localhost:9006/simple.cfc"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
Is maybe a problem in method cfTypeToClass in Caster.java file?
https://github.com/lucee/Lucee/blob/6.2.0.321/core/src/main/java/lucee/runtime/op/Caster.java