You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Dan Diephouse (JIRA)" <ji...@apache.org> on 2006/09/26 16:15:58 UTC

[jira] Created: (CXF-119) Empty request elements causes NPE

Empty request elements causes NPE
---------------------------------

                 Key: CXF-119
                 URL: http://issues.apache.org/jira/browse/CXF-119
             Project: CeltiXfire
          Issue Type: Bug
            Reporter: Dan Diephouse
             Fix For: 2.0-M1


>From the mailing list:

If I define a null parameter list to my operation in the WSDL file then I get an ArrayIndexOutOfBounds exception in BarOutInterceptor (if I change to soap it happens in SoapOutInterceptor) because there are no parts.

My WSDL is defined like this because Celtix wouldn't work otherwise. 

Do I have to create my wsdl file in a different fashion, or is this a bug

My WSDL file is listed below.

Thanks

<?xml version="1.0" encoding="UTF-8"?>
<!--WSDL file template-->
<!--Created by IONA Artix Designer-->
<definitions name="ftptest.wsdl" 
	targetNamespace="http://www.atkinsglobal.com/mosaic/ftptransport"
	xmlns="http://schemas.xmlsoap.org/wsdl/" 
	xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
	xmlns:tns="http://www.atkinsglobal.com/mosaic/ftptransport"
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
	xmlns:x1="http://www.atkinsglobal.com/mosaic/ftptransport/types"
	xmlns:xformat="http://cxf.apache.org/bindings/xformat"
	xmlns:ftp="http://cxf.apache.org/transports/ftp"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<types>
		<schema attributeFormDefault="unqualified" elementFormDefault="qualified"
			targetNamespace="http://www.atkinsglobal.com/mosaic/ftptransport/types" 
			xmlns="http://www.w3.org/2001/XMLSchema"
			xmlns:x1="http://www.atkinsglobal.com/mosaic/ftptransport/types" 
			xmlns:xs="http://www.w3.org/2001/XMLSchema">

			<element name="LoadTestData">
				<complexType>
				</complexType>
			</element>

			<element name="TestData">
				<complexType>
					<sequence>
						<element name="sample" maxOccurs="unbounded">
							<complexType>
								<sequence>
									<element name="a" type="xsd:string" />
									<element name="b" type="xsd:string" />
									<element name="c" type="xsd:string" />
								</sequence>
							</complexType>
						</element>
					</sequence>
				</complexType>
			</element>

			<element name="TestDataFaultResponse">
				<complexType>
					<sequence>
						<element name="faultInfo" type="xsd:string" />
					</sequence>
				</complexType>
			</element>

		</schema>
	</types>

	<wsdl:message name="LoadTestData">
		<wsdl:part name="LoadTestData" element="x1:LoadTestData"></wsdl:part>
	</wsdl:message>
	<wsdl:message name="TestData">
		<wsdl:part name="TestData" element="x1:TestData"></wsdl:part>
	</wsdl:message>
	<wsdl:message name="TestDataFault">
		<wsdl:part name="TestDataFault" element="x1:TestDataFaultResponse"></wsdl:part>
	</wsdl:message>
	<portType name="LoadTestDataI">
		<operation name="LoadTestData">
			<input message="tns:LoadTestData" name="LoadTestData" />
			<output message="tns:TestData" name="TestData" />
			<fault message="tns:TestDataFault" name="TestDataFault" />
		</operation>
	</portType>

	<binding name="LoadTestDataISOAPBinding" type="tns:LoadTestDataI">
		<xformat:binding/>
		<operation name="LoadTestData">
			<ftp:address location="file:///D:/cxf-deployment/workspace/FTPTransport/test/test.xml" / <ftp:address location=> >
			<input name="LoadTestData"></input>
			<output name="TestData"></output>
			<fault name="TestDataFault"></fault>
		</operation>
	</binding>

	<service name="LoadTestDataService">
		<port binding="tns:LoadTestDataISOAPBinding" name="LoadTestDataPort">
			<ftp:address location="file:///D:/cxf-deployment/workspace/FTPTransport/test/fail.xml" / <ftp:address location=> >
		</port>
	</service>
</definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (CXF-119) Empty request elements causes NPE

Posted by "maomaode (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/CXF-119?page=all ]

maomaode reassigned CXF-119:
----------------------------

    Assignee: jimma

> Empty request elements causes NPE
> ---------------------------------
>
>                 Key: CXF-119
>                 URL: http://issues.apache.org/jira/browse/CXF-119
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Dan Diephouse
>         Assigned To: jimma
>             Fix For: 2.0-M1
>
>
> From the mailing list:
> If I define a null parameter list to my operation in the WSDL file then I get an ArrayIndexOutOfBounds exception in BarOutInterceptor (if I change to soap it happens in SoapOutInterceptor) because there are no parts.
> My WSDL is defined like this because Celtix wouldn't work otherwise. 
> Do I have to create my wsdl file in a different fashion, or is this a bug
> My WSDL file is listed below.
> Thanks
> <?xml version="1.0" encoding="UTF-8"?>
> <!--WSDL file template-->
> <!--Created by IONA Artix Designer-->
> <definitions name="ftptest.wsdl" 
> 	targetNamespace="http://www.atkinsglobal.com/mosaic/ftptransport"
> 	xmlns="http://schemas.xmlsoap.org/wsdl/" 
> 	xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> 	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
> 	xmlns:tns="http://www.atkinsglobal.com/mosaic/ftptransport"
> 	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
> 	xmlns:x1="http://www.atkinsglobal.com/mosaic/ftptransport/types"
> 	xmlns:xformat="http://cxf.apache.org/bindings/xformat"
> 	xmlns:ftp="http://cxf.apache.org/transports/ftp"
> 	xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> 	<types>
> 		<schema attributeFormDefault="unqualified" elementFormDefault="qualified"
> 			targetNamespace="http://www.atkinsglobal.com/mosaic/ftptransport/types" 
> 			xmlns="http://www.w3.org/2001/XMLSchema"
> 			xmlns:x1="http://www.atkinsglobal.com/mosaic/ftptransport/types" 
> 			xmlns:xs="http://www.w3.org/2001/XMLSchema">
> 			<element name="LoadTestData">
> 				<complexType>
> 				</complexType>
> 			</element>
> 			<element name="TestData">
> 				<complexType>
> 					<sequence>
> 						<element name="sample" maxOccurs="unbounded">
> 							<complexType>
> 								<sequence>
> 									<element name="a" type="xsd:string" />
> 									<element name="b" type="xsd:string" />
> 									<element name="c" type="xsd:string" />
> 								</sequence>
> 							</complexType>
> 						</element>
> 					</sequence>
> 				</complexType>
> 			</element>
> 			<element name="TestDataFaultResponse">
> 				<complexType>
> 					<sequence>
> 						<element name="faultInfo" type="xsd:string" />
> 					</sequence>
> 				</complexType>
> 			</element>
> 		</schema>
> 	</types>
> 	<wsdl:message name="LoadTestData">
> 		<wsdl:part name="LoadTestData" element="x1:LoadTestData"></wsdl:part>
> 	</wsdl:message>
> 	<wsdl:message name="TestData">
> 		<wsdl:part name="TestData" element="x1:TestData"></wsdl:part>
> 	</wsdl:message>
> 	<wsdl:message name="TestDataFault">
> 		<wsdl:part name="TestDataFault" element="x1:TestDataFaultResponse"></wsdl:part>
> 	</wsdl:message>
> 	<portType name="LoadTestDataI">
> 		<operation name="LoadTestData">
> 			<input message="tns:LoadTestData" name="LoadTestData" />
> 			<output message="tns:TestData" name="TestData" />
> 			<fault message="tns:TestDataFault" name="TestDataFault" />
> 		</operation>
> 	</portType>
> 	<binding name="LoadTestDataISOAPBinding" type="tns:LoadTestDataI">
> 		<xformat:binding/>
> 		<operation name="LoadTestData">
> 			<ftp:address location="file:///D:/cxf-deployment/workspace/FTPTransport/test/test.xml" / <ftp:address location=> >
> 			<input name="LoadTestData"></input>
> 			<output name="TestData"></output>
> 			<fault name="TestDataFault"></fault>
> 		</operation>
> 	</binding>
> 	<service name="LoadTestDataService">
> 		<port binding="tns:LoadTestDataISOAPBinding" name="LoadTestDataPort">
> 			<ftp:address location="file:///D:/cxf-deployment/workspace/FTPTransport/test/fail.xml" / <ftp:address location=> >
> 		</port>
> 	</service>
> </definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (CXF-119) Empty request elements causes NPE

Posted by "jimma (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/CXF-119?page=all ]

jimma resolved CXF-119.
-----------------------

    Resolution: Fixed

> Empty request elements causes NPE
> ---------------------------------
>
>                 Key: CXF-119
>                 URL: http://issues.apache.org/jira/browse/CXF-119
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0-RC
>            Reporter: Dan Diephouse
>         Assigned To: jimma
>             Fix For: 2.0-RC
>
>
> From the mailing list:
> If I define a null parameter list to my operation in the WSDL file then I get an ArrayIndexOutOfBounds exception in BarOutInterceptor (if I change to soap it happens in SoapOutInterceptor) because there are no parts.
> My WSDL is defined like this because Celtix wouldn't work otherwise. 
> Do I have to create my wsdl file in a different fashion, or is this a bug
> My WSDL file is listed below.
> Thanks
> <?xml version="1.0" encoding="UTF-8"?>
> <!--WSDL file template-->
> <!--Created by IONA Artix Designer-->
> <definitions name="ftptest.wsdl" 
> 	targetNamespace="http://www.atkinsglobal.com/mosaic/ftptransport"
> 	xmlns="http://schemas.xmlsoap.org/wsdl/" 
> 	xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> 	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
> 	xmlns:tns="http://www.atkinsglobal.com/mosaic/ftptransport"
> 	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
> 	xmlns:x1="http://www.atkinsglobal.com/mosaic/ftptransport/types"
> 	xmlns:xformat="http://cxf.apache.org/bindings/xformat"
> 	xmlns:ftp="http://cxf.apache.org/transports/ftp"
> 	xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> 	<types>
> 		<schema attributeFormDefault="unqualified" elementFormDefault="qualified"
> 			targetNamespace="http://www.atkinsglobal.com/mosaic/ftptransport/types" 
> 			xmlns="http://www.w3.org/2001/XMLSchema"
> 			xmlns:x1="http://www.atkinsglobal.com/mosaic/ftptransport/types" 
> 			xmlns:xs="http://www.w3.org/2001/XMLSchema">
> 			<element name="LoadTestData">
> 				<complexType>
> 				</complexType>
> 			</element>
> 			<element name="TestData">
> 				<complexType>
> 					<sequence>
> 						<element name="sample" maxOccurs="unbounded">
> 							<complexType>
> 								<sequence>
> 									<element name="a" type="xsd:string" />
> 									<element name="b" type="xsd:string" />
> 									<element name="c" type="xsd:string" />
> 								</sequence>
> 							</complexType>
> 						</element>
> 					</sequence>
> 				</complexType>
> 			</element>
> 			<element name="TestDataFaultResponse">
> 				<complexType>
> 					<sequence>
> 						<element name="faultInfo" type="xsd:string" />
> 					</sequence>
> 				</complexType>
> 			</element>
> 		</schema>
> 	</types>
> 	<wsdl:message name="LoadTestData">
> 		<wsdl:part name="LoadTestData" element="x1:LoadTestData"></wsdl:part>
> 	</wsdl:message>
> 	<wsdl:message name="TestData">
> 		<wsdl:part name="TestData" element="x1:TestData"></wsdl:part>
> 	</wsdl:message>
> 	<wsdl:message name="TestDataFault">
> 		<wsdl:part name="TestDataFault" element="x1:TestDataFaultResponse"></wsdl:part>
> 	</wsdl:message>
> 	<portType name="LoadTestDataI">
> 		<operation name="LoadTestData">
> 			<input message="tns:LoadTestData" name="LoadTestData" />
> 			<output message="tns:TestData" name="TestData" />
> 			<fault message="tns:TestDataFault" name="TestDataFault" />
> 		</operation>
> 	</portType>
> 	<binding name="LoadTestDataISOAPBinding" type="tns:LoadTestDataI">
> 		<xformat:binding/>
> 		<operation name="LoadTestData">
> 			<ftp:address location="file:///D:/cxf-deployment/workspace/FTPTransport/test/test.xml" / <ftp:address location=> >
> 			<input name="LoadTestData"></input>
> 			<output name="TestData"></output>
> 			<fault name="TestDataFault"></fault>
> 		</operation>
> 	</binding>
> 	<service name="LoadTestDataService">
> 		<port binding="tns:LoadTestDataISOAPBinding" name="LoadTestDataPort">
> 			<ftp:address location="file:///D:/cxf-deployment/workspace/FTPTransport/test/fail.xml" / <ftp:address location=> >
> 		</port>
> 	</service>
> </definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (CXF-119) Empty request elements causes NPE

Posted by "jimma (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/CXF-119?page=all ]

jimma updated CXF-119:
----------------------

    Comment: was deleted

> Empty request elements causes NPE
> ---------------------------------
>
>                 Key: CXF-119
>                 URL: http://issues.apache.org/jira/browse/CXF-119
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0-RC
>            Reporter: Dan Diephouse
>         Assigned To: jimma
>             Fix For: 2.0-RC
>
>
> From the mailing list:
> If I define a null parameter list to my operation in the WSDL file then I get an ArrayIndexOutOfBounds exception in BarOutInterceptor (if I change to soap it happens in SoapOutInterceptor) because there are no parts.
> My WSDL is defined like this because Celtix wouldn't work otherwise. 
> Do I have to create my wsdl file in a different fashion, or is this a bug
> My WSDL file is listed below.
> Thanks
> <?xml version="1.0" encoding="UTF-8"?>
> <!--WSDL file template-->
> <!--Created by IONA Artix Designer-->
> <definitions name="ftptest.wsdl" 
> 	targetNamespace="http://www.atkinsglobal.com/mosaic/ftptransport"
> 	xmlns="http://schemas.xmlsoap.org/wsdl/" 
> 	xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> 	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
> 	xmlns:tns="http://www.atkinsglobal.com/mosaic/ftptransport"
> 	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
> 	xmlns:x1="http://www.atkinsglobal.com/mosaic/ftptransport/types"
> 	xmlns:xformat="http://cxf.apache.org/bindings/xformat"
> 	xmlns:ftp="http://cxf.apache.org/transports/ftp"
> 	xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> 	<types>
> 		<schema attributeFormDefault="unqualified" elementFormDefault="qualified"
> 			targetNamespace="http://www.atkinsglobal.com/mosaic/ftptransport/types" 
> 			xmlns="http://www.w3.org/2001/XMLSchema"
> 			xmlns:x1="http://www.atkinsglobal.com/mosaic/ftptransport/types" 
> 			xmlns:xs="http://www.w3.org/2001/XMLSchema">
> 			<element name="LoadTestData">
> 				<complexType>
> 				</complexType>
> 			</element>
> 			<element name="TestData">
> 				<complexType>
> 					<sequence>
> 						<element name="sample" maxOccurs="unbounded">
> 							<complexType>
> 								<sequence>
> 									<element name="a" type="xsd:string" />
> 									<element name="b" type="xsd:string" />
> 									<element name="c" type="xsd:string" />
> 								</sequence>
> 							</complexType>
> 						</element>
> 					</sequence>
> 				</complexType>
> 			</element>
> 			<element name="TestDataFaultResponse">
> 				<complexType>
> 					<sequence>
> 						<element name="faultInfo" type="xsd:string" />
> 					</sequence>
> 				</complexType>
> 			</element>
> 		</schema>
> 	</types>
> 	<wsdl:message name="LoadTestData">
> 		<wsdl:part name="LoadTestData" element="x1:LoadTestData"></wsdl:part>
> 	</wsdl:message>
> 	<wsdl:message name="TestData">
> 		<wsdl:part name="TestData" element="x1:TestData"></wsdl:part>
> 	</wsdl:message>
> 	<wsdl:message name="TestDataFault">
> 		<wsdl:part name="TestDataFault" element="x1:TestDataFaultResponse"></wsdl:part>
> 	</wsdl:message>
> 	<portType name="LoadTestDataI">
> 		<operation name="LoadTestData">
> 			<input message="tns:LoadTestData" name="LoadTestData" />
> 			<output message="tns:TestData" name="TestData" />
> 			<fault message="tns:TestDataFault" name="TestDataFault" />
> 		</operation>
> 	</portType>
> 	<binding name="LoadTestDataISOAPBinding" type="tns:LoadTestDataI">
> 		<xformat:binding/>
> 		<operation name="LoadTestData">
> 			<ftp:address location="file:///D:/cxf-deployment/workspace/FTPTransport/test/test.xml" / <ftp:address location=> >
> 			<input name="LoadTestData"></input>
> 			<output name="TestData"></output>
> 			<fault name="TestDataFault"></fault>
> 		</operation>
> 	</binding>
> 	<service name="LoadTestDataService">
> 		<port binding="tns:LoadTestDataISOAPBinding" name="LoadTestDataPort">
> 			<ftp:address location="file:///D:/cxf-deployment/workspace/FTPTransport/test/fail.xml" / <ftp:address location=> >
> 		</port>
> 	</service>
> </definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CXF-119) Empty request elements causes NPE

Posted by "jimma (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/CXF-119?page=comments#action_12450618 ] 
            
jimma commented on CXF-119:
---------------------------

I test this case with Document literal bare wsdl ,It works fine. I update this issue to resolver. 

> Empty request elements causes NPE
> ---------------------------------
>
>                 Key: CXF-119
>                 URL: http://issues.apache.org/jira/browse/CXF-119
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0-RC
>            Reporter: Dan Diephouse
>         Assigned To: jimma
>             Fix For: 2.0-RC
>
>
> From the mailing list:
> If I define a null parameter list to my operation in the WSDL file then I get an ArrayIndexOutOfBounds exception in BarOutInterceptor (if I change to soap it happens in SoapOutInterceptor) because there are no parts.
> My WSDL is defined like this because Celtix wouldn't work otherwise. 
> Do I have to create my wsdl file in a different fashion, or is this a bug
> My WSDL file is listed below.
> Thanks
> <?xml version="1.0" encoding="UTF-8"?>
> <!--WSDL file template-->
> <!--Created by IONA Artix Designer-->
> <definitions name="ftptest.wsdl" 
> 	targetNamespace="http://www.atkinsglobal.com/mosaic/ftptransport"
> 	xmlns="http://schemas.xmlsoap.org/wsdl/" 
> 	xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> 	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
> 	xmlns:tns="http://www.atkinsglobal.com/mosaic/ftptransport"
> 	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
> 	xmlns:x1="http://www.atkinsglobal.com/mosaic/ftptransport/types"
> 	xmlns:xformat="http://cxf.apache.org/bindings/xformat"
> 	xmlns:ftp="http://cxf.apache.org/transports/ftp"
> 	xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> 	<types>
> 		<schema attributeFormDefault="unqualified" elementFormDefault="qualified"
> 			targetNamespace="http://www.atkinsglobal.com/mosaic/ftptransport/types" 
> 			xmlns="http://www.w3.org/2001/XMLSchema"
> 			xmlns:x1="http://www.atkinsglobal.com/mosaic/ftptransport/types" 
> 			xmlns:xs="http://www.w3.org/2001/XMLSchema">
> 			<element name="LoadTestData">
> 				<complexType>
> 				</complexType>
> 			</element>
> 			<element name="TestData">
> 				<complexType>
> 					<sequence>
> 						<element name="sample" maxOccurs="unbounded">
> 							<complexType>
> 								<sequence>
> 									<element name="a" type="xsd:string" />
> 									<element name="b" type="xsd:string" />
> 									<element name="c" type="xsd:string" />
> 								</sequence>
> 							</complexType>
> 						</element>
> 					</sequence>
> 				</complexType>
> 			</element>
> 			<element name="TestDataFaultResponse">
> 				<complexType>
> 					<sequence>
> 						<element name="faultInfo" type="xsd:string" />
> 					</sequence>
> 				</complexType>
> 			</element>
> 		</schema>
> 	</types>
> 	<wsdl:message name="LoadTestData">
> 		<wsdl:part name="LoadTestData" element="x1:LoadTestData"></wsdl:part>
> 	</wsdl:message>
> 	<wsdl:message name="TestData">
> 		<wsdl:part name="TestData" element="x1:TestData"></wsdl:part>
> 	</wsdl:message>
> 	<wsdl:message name="TestDataFault">
> 		<wsdl:part name="TestDataFault" element="x1:TestDataFaultResponse"></wsdl:part>
> 	</wsdl:message>
> 	<portType name="LoadTestDataI">
> 		<operation name="LoadTestData">
> 			<input message="tns:LoadTestData" name="LoadTestData" />
> 			<output message="tns:TestData" name="TestData" />
> 			<fault message="tns:TestDataFault" name="TestDataFault" />
> 		</operation>
> 	</portType>
> 	<binding name="LoadTestDataISOAPBinding" type="tns:LoadTestDataI">
> 		<xformat:binding/>
> 		<operation name="LoadTestData">
> 			<ftp:address location="file:///D:/cxf-deployment/workspace/FTPTransport/test/test.xml" / <ftp:address location=> >
> 			<input name="LoadTestData"></input>
> 			<output name="TestData"></output>
> 			<fault name="TestDataFault"></fault>
> 		</operation>
> 	</binding>
> 	<service name="LoadTestDataService">
> 		<port binding="tns:LoadTestDataISOAPBinding" name="LoadTestDataPort">
> 			<ftp:address location="file:///D:/cxf-deployment/workspace/FTPTransport/test/fail.xml" / <ftp:address location=> >
> 		</port>
> 	</service>
> </definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CXF-119) Empty request elements causes NPE

Posted by "jimma (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/CXF-119?page=comments#action_12450619 ] 
            
jimma commented on CXF-119:
---------------------------

I test this case with Document literal bare wsdl ,It works fine. I update this issue to resolve.

> Empty request elements causes NPE
> ---------------------------------
>
>                 Key: CXF-119
>                 URL: http://issues.apache.org/jira/browse/CXF-119
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0-RC
>            Reporter: Dan Diephouse
>         Assigned To: jimma
>             Fix For: 2.0-RC
>
>
> From the mailing list:
> If I define a null parameter list to my operation in the WSDL file then I get an ArrayIndexOutOfBounds exception in BarOutInterceptor (if I change to soap it happens in SoapOutInterceptor) because there are no parts.
> My WSDL is defined like this because Celtix wouldn't work otherwise. 
> Do I have to create my wsdl file in a different fashion, or is this a bug
> My WSDL file is listed below.
> Thanks
> <?xml version="1.0" encoding="UTF-8"?>
> <!--WSDL file template-->
> <!--Created by IONA Artix Designer-->
> <definitions name="ftptest.wsdl" 
> 	targetNamespace="http://www.atkinsglobal.com/mosaic/ftptransport"
> 	xmlns="http://schemas.xmlsoap.org/wsdl/" 
> 	xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> 	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
> 	xmlns:tns="http://www.atkinsglobal.com/mosaic/ftptransport"
> 	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
> 	xmlns:x1="http://www.atkinsglobal.com/mosaic/ftptransport/types"
> 	xmlns:xformat="http://cxf.apache.org/bindings/xformat"
> 	xmlns:ftp="http://cxf.apache.org/transports/ftp"
> 	xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> 	<types>
> 		<schema attributeFormDefault="unqualified" elementFormDefault="qualified"
> 			targetNamespace="http://www.atkinsglobal.com/mosaic/ftptransport/types" 
> 			xmlns="http://www.w3.org/2001/XMLSchema"
> 			xmlns:x1="http://www.atkinsglobal.com/mosaic/ftptransport/types" 
> 			xmlns:xs="http://www.w3.org/2001/XMLSchema">
> 			<element name="LoadTestData">
> 				<complexType>
> 				</complexType>
> 			</element>
> 			<element name="TestData">
> 				<complexType>
> 					<sequence>
> 						<element name="sample" maxOccurs="unbounded">
> 							<complexType>
> 								<sequence>
> 									<element name="a" type="xsd:string" />
> 									<element name="b" type="xsd:string" />
> 									<element name="c" type="xsd:string" />
> 								</sequence>
> 							</complexType>
> 						</element>
> 					</sequence>
> 				</complexType>
> 			</element>
> 			<element name="TestDataFaultResponse">
> 				<complexType>
> 					<sequence>
> 						<element name="faultInfo" type="xsd:string" />
> 					</sequence>
> 				</complexType>
> 			</element>
> 		</schema>
> 	</types>
> 	<wsdl:message name="LoadTestData">
> 		<wsdl:part name="LoadTestData" element="x1:LoadTestData"></wsdl:part>
> 	</wsdl:message>
> 	<wsdl:message name="TestData">
> 		<wsdl:part name="TestData" element="x1:TestData"></wsdl:part>
> 	</wsdl:message>
> 	<wsdl:message name="TestDataFault">
> 		<wsdl:part name="TestDataFault" element="x1:TestDataFaultResponse"></wsdl:part>
> 	</wsdl:message>
> 	<portType name="LoadTestDataI">
> 		<operation name="LoadTestData">
> 			<input message="tns:LoadTestData" name="LoadTestData" />
> 			<output message="tns:TestData" name="TestData" />
> 			<fault message="tns:TestDataFault" name="TestDataFault" />
> 		</operation>
> 	</portType>
> 	<binding name="LoadTestDataISOAPBinding" type="tns:LoadTestDataI">
> 		<xformat:binding/>
> 		<operation name="LoadTestData">
> 			<ftp:address location="file:///D:/cxf-deployment/workspace/FTPTransport/test/test.xml" / <ftp:address location=> >
> 			<input name="LoadTestData"></input>
> 			<output name="TestData"></output>
> 			<fault name="TestDataFault"></fault>
> 		</operation>
> 	</binding>
> 	<service name="LoadTestDataService">
> 		<port binding="tns:LoadTestDataISOAPBinding" name="LoadTestDataPort">
> 			<ftp:address location="file:///D:/cxf-deployment/workspace/FTPTransport/test/fail.xml" / <ftp:address location=> >
> 		</port>
> 	</service>
> </definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (CXF-119) Empty request elements causes NPE

Posted by "Bozhong Lin (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/CXF-119?page=all ]

Bozhong Lin updated CXF-119:
----------------------------

        Fix Version/s: 2.0-RC
                           (was: 2.0-M1)
    Affects Version/s: 2.0-RC

> Empty request elements causes NPE
> ---------------------------------
>
>                 Key: CXF-119
>                 URL: http://issues.apache.org/jira/browse/CXF-119
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0-RC
>            Reporter: Dan Diephouse
>         Assigned To: jimma
>             Fix For: 2.0-RC
>
>
> From the mailing list:
> If I define a null parameter list to my operation in the WSDL file then I get an ArrayIndexOutOfBounds exception in BarOutInterceptor (if I change to soap it happens in SoapOutInterceptor) because there are no parts.
> My WSDL is defined like this because Celtix wouldn't work otherwise. 
> Do I have to create my wsdl file in a different fashion, or is this a bug
> My WSDL file is listed below.
> Thanks
> <?xml version="1.0" encoding="UTF-8"?>
> <!--WSDL file template-->
> <!--Created by IONA Artix Designer-->
> <definitions name="ftptest.wsdl" 
> 	targetNamespace="http://www.atkinsglobal.com/mosaic/ftptransport"
> 	xmlns="http://schemas.xmlsoap.org/wsdl/" 
> 	xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> 	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
> 	xmlns:tns="http://www.atkinsglobal.com/mosaic/ftptransport"
> 	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
> 	xmlns:x1="http://www.atkinsglobal.com/mosaic/ftptransport/types"
> 	xmlns:xformat="http://cxf.apache.org/bindings/xformat"
> 	xmlns:ftp="http://cxf.apache.org/transports/ftp"
> 	xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> 	<types>
> 		<schema attributeFormDefault="unqualified" elementFormDefault="qualified"
> 			targetNamespace="http://www.atkinsglobal.com/mosaic/ftptransport/types" 
> 			xmlns="http://www.w3.org/2001/XMLSchema"
> 			xmlns:x1="http://www.atkinsglobal.com/mosaic/ftptransport/types" 
> 			xmlns:xs="http://www.w3.org/2001/XMLSchema">
> 			<element name="LoadTestData">
> 				<complexType>
> 				</complexType>
> 			</element>
> 			<element name="TestData">
> 				<complexType>
> 					<sequence>
> 						<element name="sample" maxOccurs="unbounded">
> 							<complexType>
> 								<sequence>
> 									<element name="a" type="xsd:string" />
> 									<element name="b" type="xsd:string" />
> 									<element name="c" type="xsd:string" />
> 								</sequence>
> 							</complexType>
> 						</element>
> 					</sequence>
> 				</complexType>
> 			</element>
> 			<element name="TestDataFaultResponse">
> 				<complexType>
> 					<sequence>
> 						<element name="faultInfo" type="xsd:string" />
> 					</sequence>
> 				</complexType>
> 			</element>
> 		</schema>
> 	</types>
> 	<wsdl:message name="LoadTestData">
> 		<wsdl:part name="LoadTestData" element="x1:LoadTestData"></wsdl:part>
> 	</wsdl:message>
> 	<wsdl:message name="TestData">
> 		<wsdl:part name="TestData" element="x1:TestData"></wsdl:part>
> 	</wsdl:message>
> 	<wsdl:message name="TestDataFault">
> 		<wsdl:part name="TestDataFault" element="x1:TestDataFaultResponse"></wsdl:part>
> 	</wsdl:message>
> 	<portType name="LoadTestDataI">
> 		<operation name="LoadTestData">
> 			<input message="tns:LoadTestData" name="LoadTestData" />
> 			<output message="tns:TestData" name="TestData" />
> 			<fault message="tns:TestDataFault" name="TestDataFault" />
> 		</operation>
> 	</portType>
> 	<binding name="LoadTestDataISOAPBinding" type="tns:LoadTestDataI">
> 		<xformat:binding/>
> 		<operation name="LoadTestData">
> 			<ftp:address location="file:///D:/cxf-deployment/workspace/FTPTransport/test/test.xml" / <ftp:address location=> >
> 			<input name="LoadTestData"></input>
> 			<output name="TestData"></output>
> 			<fault name="TestDataFault"></fault>
> 		</operation>
> 	</binding>
> 	<service name="LoadTestDataService">
> 		<port binding="tns:LoadTestDataISOAPBinding" name="LoadTestDataPort">
> 			<ftp:address location="file:///D:/cxf-deployment/workspace/FTPTransport/test/fail.xml" / <ftp:address location=> >
> 		</port>
> 	</service>
> </definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira