Issues

Select view

Select search mode

 

Lucee 6.2 and SOAP webservices throwing an error

Fixed

Description

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

Environment

  • Windows 11

  • JDK 21 LTS

  • Lucee 6.2.0.321, 6.2.1.107-SNAPSHOT

  • Axis extension 1.4.0.37

  • SoapUI 5.8.0

Attachments

2
  • 04 Apr 2025, 02:12 pm
  • 03 Apr 2025, 01:19 pm

Details

Assignee

Reporter

Priority

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

Affects versions

Created last week
Updated 2 days ago
Resolved 2 days ago

Activity

Show:

Pothys - MitrahSoft2 days ago

I have tested this ticket with Lucee version 6.2.1.113-SNAPSHOT and Axis version 1.4.0.38. When I tried to make a request in SoapUI, it works fine now and no error message occurs.

Zac Spitzer2 days ago

Do you mean when does 6.2.1 get released?

The final 6.2.1 RC is up with installers https://download.lucee.org/ including this fix, 6.2.1 will be released within a week or so

Alojz Krajnc2 days ago

Yes, that was meant.

Alojz Krajnc2 days ago


I confirm that webservices are now functioning properly , thank you for your quick response.
I have one question: in which version and when do you plan to release the production-ready Windows installer on http://lucee.org?

Flag notifications