You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "oliv g (JIRA)" <ji...@apache.org> on 2007/03/01 18:19:51 UTC
[jira] Created: (AXIS2-2279) java.lang.NullPointerException at
org.apache.axis2.description.ClientUtils.inferInTransport
(ClientUtils.java:85)
java.lang.NullPointerException at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85)
----------------------------------------------------------------------------------------------------------------------
Key: AXIS2-2279
URL: https://issues.apache.org/jira/browse/AXIS2-2279
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Affects Versions: 1.1.1
Environment: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis
Reporter: oliv g
java.lang.NullPointerException
at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
at ....AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
(same result using wsdl2java.bat)
Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
} else {
//assume listener transport as sender transport
--> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
}
}
Here is the wsdl :
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:val="http://www.banque-france.fr/VALOR_V1"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
targetNamespace="http://www.banque-france.fr/VALOR_V1">
<wsdl:types>
<xsd:schema elementFormDefault="qualified"
targetNamespace="http://www.banque-france.fr/VALOR_V1">
<xsd:include schemaLocation="ValorCommonTypes.xsd" />
<xsd:element name="Instruments">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0"
name="Instrument" type="val:InstrumentType" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="AskForPricingOperationResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="result" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
<xsd:element name="AskForPricingOperation_fault">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="AskForPricingOperation_fault"
type="xsd:string">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="AskForPricingOperationRequest">
<wsdl:part element="val:Instruments" name="ListOfInstruments" />
</wsdl:message>
<wsdl:message name="AskForPricingOperationRequestHeader">
<wsdl:part element="val:HeaderNCB" name="RequestHeader" />
</wsdl:message>
<wsdl:message name="AskForPricingOperationResponse">
<wsdl:part element="val:AskForPricingOperationResponse"
name="Response" />
</wsdl:message>
<wsdl:message name="AskForPricingOperation_faultMsg">
<wsdl:part element="val:AskForPricingOperation_fault"
name="parameters" />
</wsdl:message>
<wsdl:portType name="AskForPricing">
<wsdl:operation name="AskForPricingOperation">
<wsdl:input message="val:AskForPricingOperationRequest" />
<wsdl:output message="val:AskForPricingOperationResponse" />
<!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="AskForPricingOperation">
<soap:operation
soapAction="http://www.banque-france.fr/VALOR_V1/NewOperation" />
<wsdl:input>
<soap:header
message="val:AskForPricingOperationRequestHeader"
part="RequestHeader" use="literal" />
<soap:body parts="ListOfInstruments" use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="AskForPricing">
<wsdl:port binding="val:AskForPricingSOAP"
name="AskForPricingSOAP">
<soap:address
location="http://localhost:8080/valorWEB/services/AskForPricingSOAP" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
and the referenced xsd :
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.banque-france.fr/VALOR_V1"
attributeFormDefault="unqualified" elementFormDefault="qualified"
targetNamespace="http://www.banque-france.fr/VALOR_V1" version="1.0">
<xs:simpleType name="NCBCountryCode">
<xs:restriction base="xs:string">
<xs:enumeration value="AT" />
<xs:enumeration value="BE" />
<xs:enumeration value="DE" />
<xs:enumeration value="ES" />
<xs:enumeration value="FI" />
<xs:enumeration value="FR" />
<xs:enumeration value="GR" />
<xs:enumeration value="IE" />
<xs:enumeration value="IT" />
<xs:enumeration value="LU" />
<xs:enumeration value="NL" />
<xs:enumeration value="PT" />
<xs:enumeration value="DK" />
<xs:enumeration value="GB" />
<xs:enumeration value="LI" />
<xs:enumeration value="NO" />
<xs:enumeration value="IS" />
<xs:enumeration value="SE" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="HeaderNCBType">
<xs:sequence>
<xs:element name="senderNCB" type="NCBCountryCode" />
<xs:element name="receiverNCB" type="NCBCountryCode" />
<xs:element name="SubmissionDate" type="xs:dateTime" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="HeaderNCBFromFRType">
<xs:complexContent>
<xs:restriction base="HeaderNCBType">
<xs:sequence>
<xs:element name="senderNCB" type="NCBCountryCode"
fixed="FR" />
<xs:element name="receiverNCB"
type="NCBCountryCode" />
<xs:element name="SubmissionDate"
type="xs:dateTime" />
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="HeaderNCBToFRType">
<xs:complexContent>
<xs:restriction base="HeaderNCBType">
<xs:sequence>
<xs:element name="senderNCB" type="NCBCountryCode" />
<xs:element name="receiverNCB" type="NCBCountryCode"
fixed="FR" />
<xs:element name="SubmissionDate"
type="xs:dateTime" />
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="InstrumentTypeType">
<xs:restriction base="xs:string">
<xs:enumeration value="ABS" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ISINType">
<xs:restriction base="xs:string">
<xs:minLength value="12"></xs:minLength>
<xs:maxLength value="12"></xs:maxLength>
<xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="PricingErrorCodeType">
<xs:restriction base="xs:string">
<xs:enumeration value="PriceAvailable" />
<xs:enumeration value="PricingImpossible" />
<xs:enumeration value="SeekingForAPricingMethod" />
<xs:enumeration value="EquityNotEligible" />
<xs:enumeration value="ExpiredEquity" />
<xs:enumeration value="EquityNotPriceable" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="InstrumentType">
<xs:sequence>
<xs:element name="ISIN" type="ISINType" />
</xs:sequence>
<xs:attribute name="type" type="InstrumentTypeType" />
</xs:complexType>
<xs:complexType name="PricedInstrumentType">
<xs:complexContent>
<xs:extension base="InstrumentType">
<xs:sequence>
<xs:element name="ErrorCode"
type="PricingErrorCodeType" />
<xs:element minOccurs="0" name="CleanPrice"
type="xs:integer" />
<xs:element minOccurs="0" name="PricingDate"
type="xs:dateTime" />
<xs:element minOccurs="0" name="AccruedInterest"
type="xs:float" />
<xs:element minOccurs="0" name="PoolFactor"
type="xs:float" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2279) java.lang.NullPointerException
at org.apache.axis2.description.ClientUtils.inferInTransport
(ClientUtils.java:85)
Posted by "JUDE FARRY (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12479228 ]
JUDE FARRY commented on AXIS2-2279:
-----------------------------------
Hi,
Thanks for the info. Any idea what was the missing Jar.
I have tried copying all the snapshot libs to the lib directory of the last
release (1.1.1). But no matter what combination I use I get some form of
exception.
Thanks in advance,
Jude
org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85>>
)
____________________________
Jude Farry
jude.farry@tm-ltd.co.uk
tel(uk). +44 7967 608314
tel(nz). +64 21 628 687
> java.lang.NullPointerException at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85)
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2279
> URL: https://issues.apache.org/jira/browse/AXIS2-2279
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.1.1
> Environment: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis2 1.1.1
> Reporter: oliv g
> Assigned To: Deepal Jayasinghe
>
> java.lang.NullPointerException
> at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
> at fr.acme.www.myapp_v1.AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
> at fr.acme.www.myapp_v1.Client.go(Client.java:51)
> which is not a clear error message.
> Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
> (same result using wsdl2java.bat)
> Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
>
> } else {
> //assume listener transport as sender transport
> --> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
> }
> }
> Here is the wsdl :
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:val="http://www.acme.fr/myapp_V1"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <wsdl:types>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <xsd:include schemaLocation="myappCommonTypes.xsd" />
> <xsd:element name="Instruments">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0"
> name="Instrument" type="val:InstrumentType" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="AskForPricingOperationResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="result" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
> <xsd:element name="AskForPricingOperation_fault">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="AskForPricingOperation_fault"
> type="xsd:string">
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="AskForPricingOperationRequest">
> <wsdl:part element="val:Instruments" name="ListOfInstruments" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationRequestHeader">
> <wsdl:part element="val:HeaderNCB" name="RequestHeader" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationResponse">
> <wsdl:part element="val:AskForPricingOperationResponse"
> name="Response" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperation_faultMsg">
> <wsdl:part element="val:AskForPricingOperation_fault"
> name="parameters" />
> </wsdl:message>
> <wsdl:portType name="AskForPricing">
> <wsdl:operation name="AskForPricingOperation">
> <wsdl:input message="val:AskForPricingOperationRequest" />
> <wsdl:output message="val:AskForPricingOperationResponse" />
> <!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="AskForPricingOperation">
> <soap:operation
> soapAction="http://www.acme.fr/myapp_V1/NewOperation" />
> <wsdl:input>
> <soap:header
> message="val:AskForPricingOperationRequestHeader"
> part="RequestHeader" use="literal" />
> <soap:body parts="ListOfInstruments" use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="AskForPricing">
> <wsdl:port binding="val:AskForPricingSOAP"
> name="AskForPricingSOAP">
> <soap:address
> location="http://localhost:8080/myappWEB/services/AskForPricingSOAP" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> and the referenced xsd :
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.acme.fr/myapp_V1"
> attributeFormDefault="unqualified" elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1" version="1.0">
> <xs:simpleType name="NCBCountryCode">
> <xs:restriction base="xs:string">
> <xs:enumeration value="AT" />
> <xs:enumeration value="BE" />
> <xs:enumeration value="DE" />
> <xs:enumeration value="ES" />
> <xs:enumeration value="FI" />
> <xs:enumeration value="FR" />
> <xs:enumeration value="GR" />
> <xs:enumeration value="IE" />
> <xs:enumeration value="IT" />
> <xs:enumeration value="LU" />
> <xs:enumeration value="NL" />
> <xs:enumeration value="PT" />
> <xs:enumeration value="DK" />
> <xs:enumeration value="GB" />
> <xs:enumeration value="LI" />
> <xs:enumeration value="NO" />
> <xs:enumeration value="IS" />
> <xs:enumeration value="SE" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode" />
> <xs:element name="SubmissionDate" type="xs:dateTime" />
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="HeaderNCBFromFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="receiverNCB"
> type="NCBCountryCode" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="HeaderNCBToFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:simpleType name="InstrumentTypeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="ABS" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="ISINType">
> <xs:restriction base="xs:string">
> <xs:minLength value="12"></xs:minLength>
> <xs:maxLength value="12"></xs:maxLength>
> <xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="PricingErrorCodeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="PriceAvailable" />
> <xs:enumeration value="PricingImpossible" />
> <xs:enumeration value="SeekingForAPricingMethod" />
> <xs:enumeration value="EquityNotEligible" />
> <xs:enumeration value="ExpiredEquity" />
> <xs:enumeration value="EquityNotPriceable" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="InstrumentType">
> <xs:sequence>
> <xs:element name="ISIN" type="ISINType" />
> </xs:sequence>
> <xs:attribute name="type" type="InstrumentTypeType" />
> </xs:complexType>
> <xs:complexType name="PricedInstrumentType">
> <xs:complexContent>
> <xs:extension base="InstrumentType">
> <xs:sequence>
> <xs:element name="ErrorCode"
> type="PricingErrorCodeType" />
> <xs:element minOccurs="0" name="CleanPrice"
> type="xs:integer" />
> <xs:element minOccurs="0" name="PricingDate"
> type="xs:dateTime" />
> <xs:element minOccurs="0" name="AccruedInterest"
> type="xs:float" />
> <xs:element minOccurs="0" name="PoolFactor"
> type="xs:float" />
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
> Here is the full client code :
> AskForPricingStub stub=new AskForPricingStub();
>
> InstrumentsDocument doc=InstrumentsDocument.Factory.newInstance();
>
> fr.acme.www.myapp_v1.InstrumentsDocument.Instruments
> instruments=InstrumentsDocument.Instruments.Factory.newInstance();
>
> InstrumentType instru1=InstrumentType.Factory.newInstance();
> instru1.setISIN("FR0123456789");
>
>
> instru1.setType(InstrumentTypeType.ABS);
>
> instruments.setInstrumentArray(new InstrumentType[] { instru1});
> doc.setInstruments(instruments);
>
> //HEADER
> HeaderNCBDocument header=HeaderNCBDocument.Factory.newInstance();
> HeaderNCBToFRType headerNCBToFRType=HeaderNCBToFRType.Factory.newInstance();
>
> Calendar submissionDate=Calendar.getInstance();
> headerNCBToFRType.setSubmissionDate(submissionDate);
>
>
> fr.acme.www.myapp_v1.NCBCountryCode.Enum sender=NCBCountryCode.AT;
> fr.acme.www.myapp_v1.NCBCountryCode.Enum receiver=NCBCountryCode.FR;
>
>
> headerNCBToFRType.setSenderNCB( sender);
> headerNCBToFRType.setReceiverNCB(receiver);
>
> header.setHeaderNCB(headerNCBToFRType );
> //here is fr.acme.www.myapp_v1.Client.go(Client.java:51)
> stub.AskForPricingOperation(doc,header );
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2279) java.lang.NullPointerException
at org.apache.axis2.description.ClientUtils.inferInTransport
(ClientUtils.java:85)
Posted by "oliv g (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477377 ]
oliv g commented on AXIS2-2279:
-------------------------------
I tried the last nightly build and got :
java.lang.NoSuchMethodError: org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder: method <init>(Ljavax/xml/stream/XMLStreamReader;)V not found
at org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:44)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:120)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:80)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:351)
at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289)
which version of axiom and stax-api am I suppose to use ?
> java.lang.NullPointerException at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85)
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2279
> URL: https://issues.apache.org/jira/browse/AXIS2-2279
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.1.1
> Environment: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis2 1.1.1
> Reporter: oliv g
> Assigned To: Deepal Jayasinghe
>
> java.lang.NullPointerException
> at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
> at fr.acme.www.myapp_v1.AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
> at fr.acme.www.myapp_v1.Client.go(Client.java:51)
> which is not a clear error message.
> Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
> (same result using wsdl2java.bat)
> Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
>
> } else {
> //assume listener transport as sender transport
> --> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
> }
> }
> Here is the wsdl :
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:val="http://www.acme.fr/myapp_V1"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <wsdl:types>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <xsd:include schemaLocation="myappCommonTypes.xsd" />
> <xsd:element name="Instruments">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0"
> name="Instrument" type="val:InstrumentType" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="AskForPricingOperationResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="result" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
> <xsd:element name="AskForPricingOperation_fault">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="AskForPricingOperation_fault"
> type="xsd:string">
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="AskForPricingOperationRequest">
> <wsdl:part element="val:Instruments" name="ListOfInstruments" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationRequestHeader">
> <wsdl:part element="val:HeaderNCB" name="RequestHeader" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationResponse">
> <wsdl:part element="val:AskForPricingOperationResponse"
> name="Response" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperation_faultMsg">
> <wsdl:part element="val:AskForPricingOperation_fault"
> name="parameters" />
> </wsdl:message>
> <wsdl:portType name="AskForPricing">
> <wsdl:operation name="AskForPricingOperation">
> <wsdl:input message="val:AskForPricingOperationRequest" />
> <wsdl:output message="val:AskForPricingOperationResponse" />
> <!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="AskForPricingOperation">
> <soap:operation
> soapAction="http://www.acme.fr/myapp_V1/NewOperation" />
> <wsdl:input>
> <soap:header
> message="val:AskForPricingOperationRequestHeader"
> part="RequestHeader" use="literal" />
> <soap:body parts="ListOfInstruments" use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="AskForPricing">
> <wsdl:port binding="val:AskForPricingSOAP"
> name="AskForPricingSOAP">
> <soap:address
> location="http://localhost:8080/myappWEB/services/AskForPricingSOAP" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> and the referenced xsd :
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.acme.fr/myapp_V1"
> attributeFormDefault="unqualified" elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1" version="1.0">
> <xs:simpleType name="NCBCountryCode">
> <xs:restriction base="xs:string">
> <xs:enumeration value="AT" />
> <xs:enumeration value="BE" />
> <xs:enumeration value="DE" />
> <xs:enumeration value="ES" />
> <xs:enumeration value="FI" />
> <xs:enumeration value="FR" />
> <xs:enumeration value="GR" />
> <xs:enumeration value="IE" />
> <xs:enumeration value="IT" />
> <xs:enumeration value="LU" />
> <xs:enumeration value="NL" />
> <xs:enumeration value="PT" />
> <xs:enumeration value="DK" />
> <xs:enumeration value="GB" />
> <xs:enumeration value="LI" />
> <xs:enumeration value="NO" />
> <xs:enumeration value="IS" />
> <xs:enumeration value="SE" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode" />
> <xs:element name="SubmissionDate" type="xs:dateTime" />
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="HeaderNCBFromFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="receiverNCB"
> type="NCBCountryCode" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="HeaderNCBToFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:simpleType name="InstrumentTypeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="ABS" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="ISINType">
> <xs:restriction base="xs:string">
> <xs:minLength value="12"></xs:minLength>
> <xs:maxLength value="12"></xs:maxLength>
> <xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="PricingErrorCodeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="PriceAvailable" />
> <xs:enumeration value="PricingImpossible" />
> <xs:enumeration value="SeekingForAPricingMethod" />
> <xs:enumeration value="EquityNotEligible" />
> <xs:enumeration value="ExpiredEquity" />
> <xs:enumeration value="EquityNotPriceable" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="InstrumentType">
> <xs:sequence>
> <xs:element name="ISIN" type="ISINType" />
> </xs:sequence>
> <xs:attribute name="type" type="InstrumentTypeType" />
> </xs:complexType>
> <xs:complexType name="PricedInstrumentType">
> <xs:complexContent>
> <xs:extension base="InstrumentType">
> <xs:sequence>
> <xs:element name="ErrorCode"
> type="PricingErrorCodeType" />
> <xs:element minOccurs="0" name="CleanPrice"
> type="xs:integer" />
> <xs:element minOccurs="0" name="PricingDate"
> type="xs:dateTime" />
> <xs:element minOccurs="0" name="AccruedInterest"
> type="xs:float" />
> <xs:element minOccurs="0" name="PoolFactor"
> type="xs:float" />
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
> Here is the full client code :
> AskForPricingStub stub=new AskForPricingStub();
>
> InstrumentsDocument doc=InstrumentsDocument.Factory.newInstance();
>
> fr.acme.www.myapp_v1.InstrumentsDocument.Instruments
> instruments=InstrumentsDocument.Instruments.Factory.newInstance();
>
> InstrumentType instru1=InstrumentType.Factory.newInstance();
> instru1.setISIN("FR0123456789");
>
>
> instru1.setType(InstrumentTypeType.ABS);
>
> instruments.setInstrumentArray(new InstrumentType[] { instru1});
> doc.setInstruments(instruments);
>
> //HEADER
> HeaderNCBDocument header=HeaderNCBDocument.Factory.newInstance();
> HeaderNCBToFRType headerNCBToFRType=HeaderNCBToFRType.Factory.newInstance();
>
> Calendar submissionDate=Calendar.getInstance();
> headerNCBToFRType.setSubmissionDate(submissionDate);
>
>
> fr.acme.www.myapp_v1.NCBCountryCode.Enum sender=NCBCountryCode.AT;
> fr.acme.www.myapp_v1.NCBCountryCode.Enum receiver=NCBCountryCode.FR;
>
>
> headerNCBToFRType.setSenderNCB( sender);
> headerNCBToFRType.setReceiverNCB(receiver);
>
> header.setHeaderNCB(headerNCBToFRType );
> //here is fr.acme.www.myapp_v1.Client.go(Client.java:51)
> stub.AskForPricingOperation(doc,header );
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-2279) java.lang.NullPointerException at
org.apache.axis2.description.ClientUtils.inferInTransport
(ClientUtils.java:85)
Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amila Chinthaka Suriarachchi updated AXIS2-2279:
------------------------------------------------
Priority: Blocker (was: Major)
> java.lang.NullPointerException at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85)
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2279
> URL: https://issues.apache.org/jira/browse/AXIS2-2279
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.1.1
> Environment: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis2 1.1.1
> Reporter: oliv g
> Assignee: Deepal Jayasinghe
> Priority: Blocker
> Attachments: testEDD.java
>
>
> java.lang.NullPointerException
> at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
> at fr.acme.www.myapp_v1.AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
> at fr.acme.www.myapp_v1.Client.go(Client.java:51)
> which is not a clear error message.
> Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
> (same result using wsdl2java.bat)
> Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
>
> } else {
> //assume listener transport as sender transport
> --> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
> }
> }
> Here is the wsdl :
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:val="http://www.acme.fr/myapp_V1"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <wsdl:types>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <xsd:include schemaLocation="myappCommonTypes.xsd" />
> <xsd:element name="Instruments">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0"
> name="Instrument" type="val:InstrumentType" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="AskForPricingOperationResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="result" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
> <xsd:element name="AskForPricingOperation_fault">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="AskForPricingOperation_fault"
> type="xsd:string">
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="AskForPricingOperationRequest">
> <wsdl:part element="val:Instruments" name="ListOfInstruments" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationRequestHeader">
> <wsdl:part element="val:HeaderNCB" name="RequestHeader" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationResponse">
> <wsdl:part element="val:AskForPricingOperationResponse"
> name="Response" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperation_faultMsg">
> <wsdl:part element="val:AskForPricingOperation_fault"
> name="parameters" />
> </wsdl:message>
> <wsdl:portType name="AskForPricing">
> <wsdl:operation name="AskForPricingOperation">
> <wsdl:input message="val:AskForPricingOperationRequest" />
> <wsdl:output message="val:AskForPricingOperationResponse" />
> <!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="AskForPricingOperation">
> <soap:operation
> soapAction="http://www.acme.fr/myapp_V1/NewOperation" />
> <wsdl:input>
> <soap:header
> message="val:AskForPricingOperationRequestHeader"
> part="RequestHeader" use="literal" />
> <soap:body parts="ListOfInstruments" use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="AskForPricing">
> <wsdl:port binding="val:AskForPricingSOAP"
> name="AskForPricingSOAP">
> <soap:address
> location="http://localhost:8080/myappWEB/services/AskForPricingSOAP" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> and the referenced xsd :
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.acme.fr/myapp_V1"
> attributeFormDefault="unqualified" elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1" version="1.0">
> <xs:simpleType name="NCBCountryCode">
> <xs:restriction base="xs:string">
> <xs:enumeration value="AT" />
> <xs:enumeration value="BE" />
> <xs:enumeration value="DE" />
> <xs:enumeration value="ES" />
> <xs:enumeration value="FI" />
> <xs:enumeration value="FR" />
> <xs:enumeration value="GR" />
> <xs:enumeration value="IE" />
> <xs:enumeration value="IT" />
> <xs:enumeration value="LU" />
> <xs:enumeration value="NL" />
> <xs:enumeration value="PT" />
> <xs:enumeration value="DK" />
> <xs:enumeration value="GB" />
> <xs:enumeration value="LI" />
> <xs:enumeration value="NO" />
> <xs:enumeration value="IS" />
> <xs:enumeration value="SE" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode" />
> <xs:element name="SubmissionDate" type="xs:dateTime" />
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="HeaderNCBFromFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="receiverNCB"
> type="NCBCountryCode" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="HeaderNCBToFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:simpleType name="InstrumentTypeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="ABS" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="ISINType">
> <xs:restriction base="xs:string">
> <xs:minLength value="12"></xs:minLength>
> <xs:maxLength value="12"></xs:maxLength>
> <xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="PricingErrorCodeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="PriceAvailable" />
> <xs:enumeration value="PricingImpossible" />
> <xs:enumeration value="SeekingForAPricingMethod" />
> <xs:enumeration value="EquityNotEligible" />
> <xs:enumeration value="ExpiredEquity" />
> <xs:enumeration value="EquityNotPriceable" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="InstrumentType">
> <xs:sequence>
> <xs:element name="ISIN" type="ISINType" />
> </xs:sequence>
> <xs:attribute name="type" type="InstrumentTypeType" />
> </xs:complexType>
> <xs:complexType name="PricedInstrumentType">
> <xs:complexContent>
> <xs:extension base="InstrumentType">
> <xs:sequence>
> <xs:element name="ErrorCode"
> type="PricingErrorCodeType" />
> <xs:element minOccurs="0" name="CleanPrice"
> type="xs:integer" />
> <xs:element minOccurs="0" name="PricingDate"
> type="xs:dateTime" />
> <xs:element minOccurs="0" name="AccruedInterest"
> type="xs:float" />
> <xs:element minOccurs="0" name="PoolFactor"
> type="xs:float" />
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
> Here is the full client code :
> AskForPricingStub stub=new AskForPricingStub();
>
> InstrumentsDocument doc=InstrumentsDocument.Factory.newInstance();
>
> fr.acme.www.myapp_v1.InstrumentsDocument.Instruments
> instruments=InstrumentsDocument.Instruments.Factory.newInstance();
>
> InstrumentType instru1=InstrumentType.Factory.newInstance();
> instru1.setISIN("FR0123456789");
>
>
> instru1.setType(InstrumentTypeType.ABS);
>
> instruments.setInstrumentArray(new InstrumentType[] { instru1});
> doc.setInstruments(instruments);
>
> //HEADER
> HeaderNCBDocument header=HeaderNCBDocument.Factory.newInstance();
> HeaderNCBToFRType headerNCBToFRType=HeaderNCBToFRType.Factory.newInstance();
>
> Calendar submissionDate=Calendar.getInstance();
> headerNCBToFRType.setSubmissionDate(submissionDate);
>
>
> fr.acme.www.myapp_v1.NCBCountryCode.Enum sender=NCBCountryCode.AT;
> fr.acme.www.myapp_v1.NCBCountryCode.Enum receiver=NCBCountryCode.FR;
>
>
> headerNCBToFRType.setSenderNCB( sender);
> headerNCBToFRType.setReceiverNCB(receiver);
>
> header.setHeaderNCB(headerNCBToFRType );
> //here is fr.acme.www.myapp_v1.Client.go(Client.java:51)
> stub.AskForPricingOperation(doc,header );
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2279) java.lang.NullPointerException
at org.apache.axis2.description.ClientUtils.inferInTransport
(ClientUtils.java:85)
Posted by "Eric TOURNIER (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485114 ]
Eric TOURNIER commented on AXIS2-2279:
--------------------------------------
Hi,
Putting the commons-httpclient-3.0.1.jar in the classpath has solved the probleme for me
Hope this helps
Ticker
> java.lang.NullPointerException at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85)
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2279
> URL: https://issues.apache.org/jira/browse/AXIS2-2279
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.1.1
> Environment: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis2 1.1.1
> Reporter: oliv g
> Assigned To: Deepal Jayasinghe
>
> java.lang.NullPointerException
> at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
> at fr.acme.www.myapp_v1.AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
> at fr.acme.www.myapp_v1.Client.go(Client.java:51)
> which is not a clear error message.
> Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
> (same result using wsdl2java.bat)
> Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
>
> } else {
> //assume listener transport as sender transport
> --> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
> }
> }
> Here is the wsdl :
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:val="http://www.acme.fr/myapp_V1"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <wsdl:types>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <xsd:include schemaLocation="myappCommonTypes.xsd" />
> <xsd:element name="Instruments">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0"
> name="Instrument" type="val:InstrumentType" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="AskForPricingOperationResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="result" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
> <xsd:element name="AskForPricingOperation_fault">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="AskForPricingOperation_fault"
> type="xsd:string">
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="AskForPricingOperationRequest">
> <wsdl:part element="val:Instruments" name="ListOfInstruments" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationRequestHeader">
> <wsdl:part element="val:HeaderNCB" name="RequestHeader" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationResponse">
> <wsdl:part element="val:AskForPricingOperationResponse"
> name="Response" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperation_faultMsg">
> <wsdl:part element="val:AskForPricingOperation_fault"
> name="parameters" />
> </wsdl:message>
> <wsdl:portType name="AskForPricing">
> <wsdl:operation name="AskForPricingOperation">
> <wsdl:input message="val:AskForPricingOperationRequest" />
> <wsdl:output message="val:AskForPricingOperationResponse" />
> <!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="AskForPricingOperation">
> <soap:operation
> soapAction="http://www.acme.fr/myapp_V1/NewOperation" />
> <wsdl:input>
> <soap:header
> message="val:AskForPricingOperationRequestHeader"
> part="RequestHeader" use="literal" />
> <soap:body parts="ListOfInstruments" use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="AskForPricing">
> <wsdl:port binding="val:AskForPricingSOAP"
> name="AskForPricingSOAP">
> <soap:address
> location="http://localhost:8080/myappWEB/services/AskForPricingSOAP" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> and the referenced xsd :
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.acme.fr/myapp_V1"
> attributeFormDefault="unqualified" elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1" version="1.0">
> <xs:simpleType name="NCBCountryCode">
> <xs:restriction base="xs:string">
> <xs:enumeration value="AT" />
> <xs:enumeration value="BE" />
> <xs:enumeration value="DE" />
> <xs:enumeration value="ES" />
> <xs:enumeration value="FI" />
> <xs:enumeration value="FR" />
> <xs:enumeration value="GR" />
> <xs:enumeration value="IE" />
> <xs:enumeration value="IT" />
> <xs:enumeration value="LU" />
> <xs:enumeration value="NL" />
> <xs:enumeration value="PT" />
> <xs:enumeration value="DK" />
> <xs:enumeration value="GB" />
> <xs:enumeration value="LI" />
> <xs:enumeration value="NO" />
> <xs:enumeration value="IS" />
> <xs:enumeration value="SE" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode" />
> <xs:element name="SubmissionDate" type="xs:dateTime" />
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="HeaderNCBFromFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="receiverNCB"
> type="NCBCountryCode" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="HeaderNCBToFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:simpleType name="InstrumentTypeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="ABS" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="ISINType">
> <xs:restriction base="xs:string">
> <xs:minLength value="12"></xs:minLength>
> <xs:maxLength value="12"></xs:maxLength>
> <xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="PricingErrorCodeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="PriceAvailable" />
> <xs:enumeration value="PricingImpossible" />
> <xs:enumeration value="SeekingForAPricingMethod" />
> <xs:enumeration value="EquityNotEligible" />
> <xs:enumeration value="ExpiredEquity" />
> <xs:enumeration value="EquityNotPriceable" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="InstrumentType">
> <xs:sequence>
> <xs:element name="ISIN" type="ISINType" />
> </xs:sequence>
> <xs:attribute name="type" type="InstrumentTypeType" />
> </xs:complexType>
> <xs:complexType name="PricedInstrumentType">
> <xs:complexContent>
> <xs:extension base="InstrumentType">
> <xs:sequence>
> <xs:element name="ErrorCode"
> type="PricingErrorCodeType" />
> <xs:element minOccurs="0" name="CleanPrice"
> type="xs:integer" />
> <xs:element minOccurs="0" name="PricingDate"
> type="xs:dateTime" />
> <xs:element minOccurs="0" name="AccruedInterest"
> type="xs:float" />
> <xs:element minOccurs="0" name="PoolFactor"
> type="xs:float" />
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
> Here is the full client code :
> AskForPricingStub stub=new AskForPricingStub();
>
> InstrumentsDocument doc=InstrumentsDocument.Factory.newInstance();
>
> fr.acme.www.myapp_v1.InstrumentsDocument.Instruments
> instruments=InstrumentsDocument.Instruments.Factory.newInstance();
>
> InstrumentType instru1=InstrumentType.Factory.newInstance();
> instru1.setISIN("FR0123456789");
>
>
> instru1.setType(InstrumentTypeType.ABS);
>
> instruments.setInstrumentArray(new InstrumentType[] { instru1});
> doc.setInstruments(instruments);
>
> //HEADER
> HeaderNCBDocument header=HeaderNCBDocument.Factory.newInstance();
> HeaderNCBToFRType headerNCBToFRType=HeaderNCBToFRType.Factory.newInstance();
>
> Calendar submissionDate=Calendar.getInstance();
> headerNCBToFRType.setSubmissionDate(submissionDate);
>
>
> fr.acme.www.myapp_v1.NCBCountryCode.Enum sender=NCBCountryCode.AT;
> fr.acme.www.myapp_v1.NCBCountryCode.Enum receiver=NCBCountryCode.FR;
>
>
> headerNCBToFRType.setSenderNCB( sender);
> headerNCBToFRType.setReceiverNCB(receiver);
>
> header.setHeaderNCB(headerNCBToFRType );
> //here is fr.acme.www.myapp_v1.Client.go(Client.java:51)
> stub.AskForPricingOperation(doc,header );
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-2279) java.lang.NullPointerException at
org.apache.axis2.description.ClientUtils.inferInTransport
(ClientUtils.java:85)
Posted by "Hoang Chau (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoang Chau updated AXIS2-2279:
------------------------------
Attachment: testEDD.java
Hi all,
I am using axis2 version1.1.1 to generate the client using xmlbean databinding and got the same nullpointer error when I ran my client.
I checked my lib several times and all 43 jars are there
Here is the url of the wsdl:
http://fsettestprod.edd.ca.gov/fsetproxy/fsetservice.asmx?WSDL
Attached is my test files
> java.lang.NullPointerException at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85)
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2279
> URL: https://issues.apache.org/jira/browse/AXIS2-2279
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.1.1
> Environment: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis2 1.1.1
> Reporter: oliv g
> Assigned To: Deepal Jayasinghe
> Attachments: testEDD.java
>
>
> java.lang.NullPointerException
> at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
> at fr.acme.www.myapp_v1.AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
> at fr.acme.www.myapp_v1.Client.go(Client.java:51)
> which is not a clear error message.
> Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
> (same result using wsdl2java.bat)
> Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
>
> } else {
> //assume listener transport as sender transport
> --> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
> }
> }
> Here is the wsdl :
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:val="http://www.acme.fr/myapp_V1"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <wsdl:types>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <xsd:include schemaLocation="myappCommonTypes.xsd" />
> <xsd:element name="Instruments">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0"
> name="Instrument" type="val:InstrumentType" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="AskForPricingOperationResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="result" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
> <xsd:element name="AskForPricingOperation_fault">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="AskForPricingOperation_fault"
> type="xsd:string">
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="AskForPricingOperationRequest">
> <wsdl:part element="val:Instruments" name="ListOfInstruments" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationRequestHeader">
> <wsdl:part element="val:HeaderNCB" name="RequestHeader" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationResponse">
> <wsdl:part element="val:AskForPricingOperationResponse"
> name="Response" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperation_faultMsg">
> <wsdl:part element="val:AskForPricingOperation_fault"
> name="parameters" />
> </wsdl:message>
> <wsdl:portType name="AskForPricing">
> <wsdl:operation name="AskForPricingOperation">
> <wsdl:input message="val:AskForPricingOperationRequest" />
> <wsdl:output message="val:AskForPricingOperationResponse" />
> <!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="AskForPricingOperation">
> <soap:operation
> soapAction="http://www.acme.fr/myapp_V1/NewOperation" />
> <wsdl:input>
> <soap:header
> message="val:AskForPricingOperationRequestHeader"
> part="RequestHeader" use="literal" />
> <soap:body parts="ListOfInstruments" use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="AskForPricing">
> <wsdl:port binding="val:AskForPricingSOAP"
> name="AskForPricingSOAP">
> <soap:address
> location="http://localhost:8080/myappWEB/services/AskForPricingSOAP" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> and the referenced xsd :
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.acme.fr/myapp_V1"
> attributeFormDefault="unqualified" elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1" version="1.0">
> <xs:simpleType name="NCBCountryCode">
> <xs:restriction base="xs:string">
> <xs:enumeration value="AT" />
> <xs:enumeration value="BE" />
> <xs:enumeration value="DE" />
> <xs:enumeration value="ES" />
> <xs:enumeration value="FI" />
> <xs:enumeration value="FR" />
> <xs:enumeration value="GR" />
> <xs:enumeration value="IE" />
> <xs:enumeration value="IT" />
> <xs:enumeration value="LU" />
> <xs:enumeration value="NL" />
> <xs:enumeration value="PT" />
> <xs:enumeration value="DK" />
> <xs:enumeration value="GB" />
> <xs:enumeration value="LI" />
> <xs:enumeration value="NO" />
> <xs:enumeration value="IS" />
> <xs:enumeration value="SE" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode" />
> <xs:element name="SubmissionDate" type="xs:dateTime" />
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="HeaderNCBFromFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="receiverNCB"
> type="NCBCountryCode" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="HeaderNCBToFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:simpleType name="InstrumentTypeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="ABS" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="ISINType">
> <xs:restriction base="xs:string">
> <xs:minLength value="12"></xs:minLength>
> <xs:maxLength value="12"></xs:maxLength>
> <xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="PricingErrorCodeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="PriceAvailable" />
> <xs:enumeration value="PricingImpossible" />
> <xs:enumeration value="SeekingForAPricingMethod" />
> <xs:enumeration value="EquityNotEligible" />
> <xs:enumeration value="ExpiredEquity" />
> <xs:enumeration value="EquityNotPriceable" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="InstrumentType">
> <xs:sequence>
> <xs:element name="ISIN" type="ISINType" />
> </xs:sequence>
> <xs:attribute name="type" type="InstrumentTypeType" />
> </xs:complexType>
> <xs:complexType name="PricedInstrumentType">
> <xs:complexContent>
> <xs:extension base="InstrumentType">
> <xs:sequence>
> <xs:element name="ErrorCode"
> type="PricingErrorCodeType" />
> <xs:element minOccurs="0" name="CleanPrice"
> type="xs:integer" />
> <xs:element minOccurs="0" name="PricingDate"
> type="xs:dateTime" />
> <xs:element minOccurs="0" name="AccruedInterest"
> type="xs:float" />
> <xs:element minOccurs="0" name="PoolFactor"
> type="xs:float" />
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
> Here is the full client code :
> AskForPricingStub stub=new AskForPricingStub();
>
> InstrumentsDocument doc=InstrumentsDocument.Factory.newInstance();
>
> fr.acme.www.myapp_v1.InstrumentsDocument.Instruments
> instruments=InstrumentsDocument.Instruments.Factory.newInstance();
>
> InstrumentType instru1=InstrumentType.Factory.newInstance();
> instru1.setISIN("FR0123456789");
>
>
> instru1.setType(InstrumentTypeType.ABS);
>
> instruments.setInstrumentArray(new InstrumentType[] { instru1});
> doc.setInstruments(instruments);
>
> //HEADER
> HeaderNCBDocument header=HeaderNCBDocument.Factory.newInstance();
> HeaderNCBToFRType headerNCBToFRType=HeaderNCBToFRType.Factory.newInstance();
>
> Calendar submissionDate=Calendar.getInstance();
> headerNCBToFRType.setSubmissionDate(submissionDate);
>
>
> fr.acme.www.myapp_v1.NCBCountryCode.Enum sender=NCBCountryCode.AT;
> fr.acme.www.myapp_v1.NCBCountryCode.Enum receiver=NCBCountryCode.FR;
>
>
> headerNCBToFRType.setSenderNCB( sender);
> headerNCBToFRType.setReceiverNCB(receiver);
>
> header.setHeaderNCB(headerNCBToFRType );
> //here is fr.acme.www.myapp_v1.Client.go(Client.java:51)
> stub.AskForPricingOperation(doc,header );
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2279) java.lang.NullPointerException
at org.apache.axis2.description.ClientUtils.inferInTransport
(ClientUtils.java:85)
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477200 ]
Deepal Jayasinghe commented on AXIS2-2279:
------------------------------------------
Hi ;
I have fixed this issue in current codebase , so if posible try with nightly builds.
Thanks
Deepal
> java.lang.NullPointerException at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85)
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2279
> URL: https://issues.apache.org/jira/browse/AXIS2-2279
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.1.1
> Environment: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis2 1.1.1
> Reporter: oliv g
>
> java.lang.NullPointerException
> at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
> at fr.acme.www.myapp_v1.AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
> at fr.acme.www.myapp_v1.Client.go(Client.java:51)
> which is not a clear error message.
> Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
> (same result using wsdl2java.bat)
> Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
>
> } else {
> //assume listener transport as sender transport
> --> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
> }
> }
> Here is the wsdl :
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:val="http://www.acme.fr/myapp_V1"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <wsdl:types>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <xsd:include schemaLocation="myappCommonTypes.xsd" />
> <xsd:element name="Instruments">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0"
> name="Instrument" type="val:InstrumentType" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="AskForPricingOperationResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="result" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
> <xsd:element name="AskForPricingOperation_fault">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="AskForPricingOperation_fault"
> type="xsd:string">
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="AskForPricingOperationRequest">
> <wsdl:part element="val:Instruments" name="ListOfInstruments" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationRequestHeader">
> <wsdl:part element="val:HeaderNCB" name="RequestHeader" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationResponse">
> <wsdl:part element="val:AskForPricingOperationResponse"
> name="Response" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperation_faultMsg">
> <wsdl:part element="val:AskForPricingOperation_fault"
> name="parameters" />
> </wsdl:message>
> <wsdl:portType name="AskForPricing">
> <wsdl:operation name="AskForPricingOperation">
> <wsdl:input message="val:AskForPricingOperationRequest" />
> <wsdl:output message="val:AskForPricingOperationResponse" />
> <!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="AskForPricingOperation">
> <soap:operation
> soapAction="http://www.acme.fr/myapp_V1/NewOperation" />
> <wsdl:input>
> <soap:header
> message="val:AskForPricingOperationRequestHeader"
> part="RequestHeader" use="literal" />
> <soap:body parts="ListOfInstruments" use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="AskForPricing">
> <wsdl:port binding="val:AskForPricingSOAP"
> name="AskForPricingSOAP">
> <soap:address
> location="http://localhost:8080/myappWEB/services/AskForPricingSOAP" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> and the referenced xsd :
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.acme.fr/myapp_V1"
> attributeFormDefault="unqualified" elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1" version="1.0">
> <xs:simpleType name="NCBCountryCode">
> <xs:restriction base="xs:string">
> <xs:enumeration value="AT" />
> <xs:enumeration value="BE" />
> <xs:enumeration value="DE" />
> <xs:enumeration value="ES" />
> <xs:enumeration value="FI" />
> <xs:enumeration value="FR" />
> <xs:enumeration value="GR" />
> <xs:enumeration value="IE" />
> <xs:enumeration value="IT" />
> <xs:enumeration value="LU" />
> <xs:enumeration value="NL" />
> <xs:enumeration value="PT" />
> <xs:enumeration value="DK" />
> <xs:enumeration value="GB" />
> <xs:enumeration value="LI" />
> <xs:enumeration value="NO" />
> <xs:enumeration value="IS" />
> <xs:enumeration value="SE" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode" />
> <xs:element name="SubmissionDate" type="xs:dateTime" />
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="HeaderNCBFromFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="receiverNCB"
> type="NCBCountryCode" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="HeaderNCBToFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:simpleType name="InstrumentTypeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="ABS" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="ISINType">
> <xs:restriction base="xs:string">
> <xs:minLength value="12"></xs:minLength>
> <xs:maxLength value="12"></xs:maxLength>
> <xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="PricingErrorCodeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="PriceAvailable" />
> <xs:enumeration value="PricingImpossible" />
> <xs:enumeration value="SeekingForAPricingMethod" />
> <xs:enumeration value="EquityNotEligible" />
> <xs:enumeration value="ExpiredEquity" />
> <xs:enumeration value="EquityNotPriceable" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="InstrumentType">
> <xs:sequence>
> <xs:element name="ISIN" type="ISINType" />
> </xs:sequence>
> <xs:attribute name="type" type="InstrumentTypeType" />
> </xs:complexType>
> <xs:complexType name="PricedInstrumentType">
> <xs:complexContent>
> <xs:extension base="InstrumentType">
> <xs:sequence>
> <xs:element name="ErrorCode"
> type="PricingErrorCodeType" />
> <xs:element minOccurs="0" name="CleanPrice"
> type="xs:integer" />
> <xs:element minOccurs="0" name="PricingDate"
> type="xs:dateTime" />
> <xs:element minOccurs="0" name="AccruedInterest"
> type="xs:float" />
> <xs:element minOccurs="0" name="PoolFactor"
> type="xs:float" />
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
> Here is the full client code :
> AskForPricingStub stub=new AskForPricingStub();
>
> InstrumentsDocument doc=InstrumentsDocument.Factory.newInstance();
>
> fr.acme.www.myapp_v1.InstrumentsDocument.Instruments
> instruments=InstrumentsDocument.Instruments.Factory.newInstance();
>
> InstrumentType instru1=InstrumentType.Factory.newInstance();
> instru1.setISIN("FR0123456789");
>
>
> instru1.setType(InstrumentTypeType.ABS);
>
> instruments.setInstrumentArray(new InstrumentType[] { instru1});
> doc.setInstruments(instruments);
>
> //HEADER
> HeaderNCBDocument header=HeaderNCBDocument.Factory.newInstance();
> HeaderNCBToFRType headerNCBToFRType=HeaderNCBToFRType.Factory.newInstance();
>
> Calendar submissionDate=Calendar.getInstance();
> headerNCBToFRType.setSubmissionDate(submissionDate);
>
>
> fr.acme.www.myapp_v1.NCBCountryCode.Enum sender=NCBCountryCode.AT;
> fr.acme.www.myapp_v1.NCBCountryCode.Enum receiver=NCBCountryCode.FR;
>
>
> headerNCBToFRType.setSenderNCB( sender);
> headerNCBToFRType.setReceiverNCB(receiver);
>
> header.setHeaderNCB(headerNCBToFRType );
> //here is fr.acme.www.myapp_v1.Client.go(Client.java:51)
> stub.AskForPricingOperation(doc,header );
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-2279) java.lang.NullPointerException at
org.apache.axis2.description.ClientUtils.inferInTransport
(ClientUtils.java:85)
Posted by "oliv g (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
oliv g updated AXIS2-2279:
--------------------------
Environment: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis2 1.1.1 (was: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis)
> java.lang.NullPointerException at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85)
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2279
> URL: https://issues.apache.org/jira/browse/AXIS2-2279
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.1.1
> Environment: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis2 1.1.1
> Reporter: oliv g
>
> java.lang.NullPointerException
> at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
> at ....AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
> Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
> (same result using wsdl2java.bat)
> Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
>
> } else {
> //assume listener transport as sender transport
> --> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
> }
> }
> Here is the wsdl :
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:val="http://www.banque-france.fr/VALOR_V1"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
> targetNamespace="http://www.banque-france.fr/VALOR_V1">
> <wsdl:types>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://www.banque-france.fr/VALOR_V1">
> <xsd:include schemaLocation="ValorCommonTypes.xsd" />
> <xsd:element name="Instruments">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0"
> name="Instrument" type="val:InstrumentType" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="AskForPricingOperationResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="result" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
> <xsd:element name="AskForPricingOperation_fault">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="AskForPricingOperation_fault"
> type="xsd:string">
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="AskForPricingOperationRequest">
> <wsdl:part element="val:Instruments" name="ListOfInstruments" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationRequestHeader">
> <wsdl:part element="val:HeaderNCB" name="RequestHeader" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationResponse">
> <wsdl:part element="val:AskForPricingOperationResponse"
> name="Response" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperation_faultMsg">
> <wsdl:part element="val:AskForPricingOperation_fault"
> name="parameters" />
> </wsdl:message>
> <wsdl:portType name="AskForPricing">
> <wsdl:operation name="AskForPricingOperation">
> <wsdl:input message="val:AskForPricingOperationRequest" />
> <wsdl:output message="val:AskForPricingOperationResponse" />
> <!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="AskForPricingOperation">
> <soap:operation
> soapAction="http://www.banque-france.fr/VALOR_V1/NewOperation" />
> <wsdl:input>
> <soap:header
> message="val:AskForPricingOperationRequestHeader"
> part="RequestHeader" use="literal" />
> <soap:body parts="ListOfInstruments" use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="AskForPricing">
> <wsdl:port binding="val:AskForPricingSOAP"
> name="AskForPricingSOAP">
> <soap:address
> location="http://localhost:8080/valorWEB/services/AskForPricingSOAP" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> and the referenced xsd :
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.banque-france.fr/VALOR_V1"
> attributeFormDefault="unqualified" elementFormDefault="qualified"
> targetNamespace="http://www.banque-france.fr/VALOR_V1" version="1.0">
> <xs:simpleType name="NCBCountryCode">
> <xs:restriction base="xs:string">
> <xs:enumeration value="AT" />
> <xs:enumeration value="BE" />
> <xs:enumeration value="DE" />
> <xs:enumeration value="ES" />
> <xs:enumeration value="FI" />
> <xs:enumeration value="FR" />
> <xs:enumeration value="GR" />
> <xs:enumeration value="IE" />
> <xs:enumeration value="IT" />
> <xs:enumeration value="LU" />
> <xs:enumeration value="NL" />
> <xs:enumeration value="PT" />
> <xs:enumeration value="DK" />
> <xs:enumeration value="GB" />
> <xs:enumeration value="LI" />
> <xs:enumeration value="NO" />
> <xs:enumeration value="IS" />
> <xs:enumeration value="SE" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode" />
> <xs:element name="SubmissionDate" type="xs:dateTime" />
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="HeaderNCBFromFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="receiverNCB"
> type="NCBCountryCode" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="HeaderNCBToFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:simpleType name="InstrumentTypeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="ABS" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="ISINType">
> <xs:restriction base="xs:string">
> <xs:minLength value="12"></xs:minLength>
> <xs:maxLength value="12"></xs:maxLength>
> <xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="PricingErrorCodeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="PriceAvailable" />
> <xs:enumeration value="PricingImpossible" />
> <xs:enumeration value="SeekingForAPricingMethod" />
> <xs:enumeration value="EquityNotEligible" />
> <xs:enumeration value="ExpiredEquity" />
> <xs:enumeration value="EquityNotPriceable" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="InstrumentType">
> <xs:sequence>
> <xs:element name="ISIN" type="ISINType" />
> </xs:sequence>
> <xs:attribute name="type" type="InstrumentTypeType" />
> </xs:complexType>
> <xs:complexType name="PricedInstrumentType">
> <xs:complexContent>
> <xs:extension base="InstrumentType">
> <xs:sequence>
> <xs:element name="ErrorCode"
> type="PricingErrorCodeType" />
> <xs:element minOccurs="0" name="CleanPrice"
> type="xs:integer" />
> <xs:element minOccurs="0" name="PricingDate"
> type="xs:dateTime" />
> <xs:element minOccurs="0" name="AccruedInterest"
> type="xs:float" />
> <xs:element minOccurs="0" name="PoolFactor"
> type="xs:float" />
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Resolved: (AXIS2-2279) java.lang.NullPointerException at
org.apache.axis2.description.ClientUtils.inferInTransport
(ClientUtils.java:85)
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe resolved AXIS2-2279.
--------------------------------------
Resolution: Fixed
fixed in current SVN
> java.lang.NullPointerException at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85)
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2279
> URL: https://issues.apache.org/jira/browse/AXIS2-2279
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.1.1
> Environment: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis2 1.1.1
> Reporter: oliv g
> Assignee: Deepal Jayasinghe
> Priority: Blocker
> Attachments: testEDD.java
>
>
> java.lang.NullPointerException
> at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
> at fr.acme.www.myapp_v1.AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
> at fr.acme.www.myapp_v1.Client.go(Client.java:51)
> which is not a clear error message.
> Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
> (same result using wsdl2java.bat)
> Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
>
> } else {
> //assume listener transport as sender transport
> --> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
> }
> }
> Here is the wsdl :
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:val="http://www.acme.fr/myapp_V1"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <wsdl:types>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <xsd:include schemaLocation="myappCommonTypes.xsd" />
> <xsd:element name="Instruments">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0"
> name="Instrument" type="val:InstrumentType" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="AskForPricingOperationResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="result" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
> <xsd:element name="AskForPricingOperation_fault">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="AskForPricingOperation_fault"
> type="xsd:string">
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="AskForPricingOperationRequest">
> <wsdl:part element="val:Instruments" name="ListOfInstruments" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationRequestHeader">
> <wsdl:part element="val:HeaderNCB" name="RequestHeader" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationResponse">
> <wsdl:part element="val:AskForPricingOperationResponse"
> name="Response" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperation_faultMsg">
> <wsdl:part element="val:AskForPricingOperation_fault"
> name="parameters" />
> </wsdl:message>
> <wsdl:portType name="AskForPricing">
> <wsdl:operation name="AskForPricingOperation">
> <wsdl:input message="val:AskForPricingOperationRequest" />
> <wsdl:output message="val:AskForPricingOperationResponse" />
> <!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="AskForPricingOperation">
> <soap:operation
> soapAction="http://www.acme.fr/myapp_V1/NewOperation" />
> <wsdl:input>
> <soap:header
> message="val:AskForPricingOperationRequestHeader"
> part="RequestHeader" use="literal" />
> <soap:body parts="ListOfInstruments" use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="AskForPricing">
> <wsdl:port binding="val:AskForPricingSOAP"
> name="AskForPricingSOAP">
> <soap:address
> location="http://localhost:8080/myappWEB/services/AskForPricingSOAP" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> and the referenced xsd :
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.acme.fr/myapp_V1"
> attributeFormDefault="unqualified" elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1" version="1.0">
> <xs:simpleType name="NCBCountryCode">
> <xs:restriction base="xs:string">
> <xs:enumeration value="AT" />
> <xs:enumeration value="BE" />
> <xs:enumeration value="DE" />
> <xs:enumeration value="ES" />
> <xs:enumeration value="FI" />
> <xs:enumeration value="FR" />
> <xs:enumeration value="GR" />
> <xs:enumeration value="IE" />
> <xs:enumeration value="IT" />
> <xs:enumeration value="LU" />
> <xs:enumeration value="NL" />
> <xs:enumeration value="PT" />
> <xs:enumeration value="DK" />
> <xs:enumeration value="GB" />
> <xs:enumeration value="LI" />
> <xs:enumeration value="NO" />
> <xs:enumeration value="IS" />
> <xs:enumeration value="SE" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode" />
> <xs:element name="SubmissionDate" type="xs:dateTime" />
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="HeaderNCBFromFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="receiverNCB"
> type="NCBCountryCode" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="HeaderNCBToFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:simpleType name="InstrumentTypeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="ABS" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="ISINType">
> <xs:restriction base="xs:string">
> <xs:minLength value="12"></xs:minLength>
> <xs:maxLength value="12"></xs:maxLength>
> <xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="PricingErrorCodeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="PriceAvailable" />
> <xs:enumeration value="PricingImpossible" />
> <xs:enumeration value="SeekingForAPricingMethod" />
> <xs:enumeration value="EquityNotEligible" />
> <xs:enumeration value="ExpiredEquity" />
> <xs:enumeration value="EquityNotPriceable" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="InstrumentType">
> <xs:sequence>
> <xs:element name="ISIN" type="ISINType" />
> </xs:sequence>
> <xs:attribute name="type" type="InstrumentTypeType" />
> </xs:complexType>
> <xs:complexType name="PricedInstrumentType">
> <xs:complexContent>
> <xs:extension base="InstrumentType">
> <xs:sequence>
> <xs:element name="ErrorCode"
> type="PricingErrorCodeType" />
> <xs:element minOccurs="0" name="CleanPrice"
> type="xs:integer" />
> <xs:element minOccurs="0" name="PricingDate"
> type="xs:dateTime" />
> <xs:element minOccurs="0" name="AccruedInterest"
> type="xs:float" />
> <xs:element minOccurs="0" name="PoolFactor"
> type="xs:float" />
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
> Here is the full client code :
> AskForPricingStub stub=new AskForPricingStub();
>
> InstrumentsDocument doc=InstrumentsDocument.Factory.newInstance();
>
> fr.acme.www.myapp_v1.InstrumentsDocument.Instruments
> instruments=InstrumentsDocument.Instruments.Factory.newInstance();
>
> InstrumentType instru1=InstrumentType.Factory.newInstance();
> instru1.setISIN("FR0123456789");
>
>
> instru1.setType(InstrumentTypeType.ABS);
>
> instruments.setInstrumentArray(new InstrumentType[] { instru1});
> doc.setInstruments(instruments);
>
> //HEADER
> HeaderNCBDocument header=HeaderNCBDocument.Factory.newInstance();
> HeaderNCBToFRType headerNCBToFRType=HeaderNCBToFRType.Factory.newInstance();
>
> Calendar submissionDate=Calendar.getInstance();
> headerNCBToFRType.setSubmissionDate(submissionDate);
>
>
> fr.acme.www.myapp_v1.NCBCountryCode.Enum sender=NCBCountryCode.AT;
> fr.acme.www.myapp_v1.NCBCountryCode.Enum receiver=NCBCountryCode.FR;
>
>
> headerNCBToFRType.setSenderNCB( sender);
> headerNCBToFRType.setReceiverNCB(receiver);
>
> header.setHeaderNCB(headerNCBToFRType );
> //here is fr.acme.www.myapp_v1.Client.go(Client.java:51)
> stub.AskForPricingOperation(doc,header );
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2279) java.lang.NullPointerException
at org.apache.axis2.description.ClientUtils.inferInTransport
(ClientUtils.java:85)
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478046 ]
Davanum Srinivas commented on AXIS2-2279:
-----------------------------------------
Jude,
the original problem - NPE in inferInTransport? I think both you and original reporter are missing jars from the axis distribution, especially the commons http client and the jars that it needs. Try adding all the jars from axis2 dist in your classpath.
thanks,
dims
> java.lang.NullPointerException at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85)
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2279
> URL: https://issues.apache.org/jira/browse/AXIS2-2279
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.1.1
> Environment: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis2 1.1.1
> Reporter: oliv g
> Assigned To: Deepal Jayasinghe
>
> java.lang.NullPointerException
> at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
> at fr.acme.www.myapp_v1.AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
> at fr.acme.www.myapp_v1.Client.go(Client.java:51)
> which is not a clear error message.
> Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
> (same result using wsdl2java.bat)
> Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
>
> } else {
> //assume listener transport as sender transport
> --> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
> }
> }
> Here is the wsdl :
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:val="http://www.acme.fr/myapp_V1"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <wsdl:types>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <xsd:include schemaLocation="myappCommonTypes.xsd" />
> <xsd:element name="Instruments">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0"
> name="Instrument" type="val:InstrumentType" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="AskForPricingOperationResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="result" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
> <xsd:element name="AskForPricingOperation_fault">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="AskForPricingOperation_fault"
> type="xsd:string">
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="AskForPricingOperationRequest">
> <wsdl:part element="val:Instruments" name="ListOfInstruments" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationRequestHeader">
> <wsdl:part element="val:HeaderNCB" name="RequestHeader" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationResponse">
> <wsdl:part element="val:AskForPricingOperationResponse"
> name="Response" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperation_faultMsg">
> <wsdl:part element="val:AskForPricingOperation_fault"
> name="parameters" />
> </wsdl:message>
> <wsdl:portType name="AskForPricing">
> <wsdl:operation name="AskForPricingOperation">
> <wsdl:input message="val:AskForPricingOperationRequest" />
> <wsdl:output message="val:AskForPricingOperationResponse" />
> <!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="AskForPricingOperation">
> <soap:operation
> soapAction="http://www.acme.fr/myapp_V1/NewOperation" />
> <wsdl:input>
> <soap:header
> message="val:AskForPricingOperationRequestHeader"
> part="RequestHeader" use="literal" />
> <soap:body parts="ListOfInstruments" use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="AskForPricing">
> <wsdl:port binding="val:AskForPricingSOAP"
> name="AskForPricingSOAP">
> <soap:address
> location="http://localhost:8080/myappWEB/services/AskForPricingSOAP" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> and the referenced xsd :
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.acme.fr/myapp_V1"
> attributeFormDefault="unqualified" elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1" version="1.0">
> <xs:simpleType name="NCBCountryCode">
> <xs:restriction base="xs:string">
> <xs:enumeration value="AT" />
> <xs:enumeration value="BE" />
> <xs:enumeration value="DE" />
> <xs:enumeration value="ES" />
> <xs:enumeration value="FI" />
> <xs:enumeration value="FR" />
> <xs:enumeration value="GR" />
> <xs:enumeration value="IE" />
> <xs:enumeration value="IT" />
> <xs:enumeration value="LU" />
> <xs:enumeration value="NL" />
> <xs:enumeration value="PT" />
> <xs:enumeration value="DK" />
> <xs:enumeration value="GB" />
> <xs:enumeration value="LI" />
> <xs:enumeration value="NO" />
> <xs:enumeration value="IS" />
> <xs:enumeration value="SE" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode" />
> <xs:element name="SubmissionDate" type="xs:dateTime" />
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="HeaderNCBFromFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="receiverNCB"
> type="NCBCountryCode" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="HeaderNCBToFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:simpleType name="InstrumentTypeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="ABS" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="ISINType">
> <xs:restriction base="xs:string">
> <xs:minLength value="12"></xs:minLength>
> <xs:maxLength value="12"></xs:maxLength>
> <xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="PricingErrorCodeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="PriceAvailable" />
> <xs:enumeration value="PricingImpossible" />
> <xs:enumeration value="SeekingForAPricingMethod" />
> <xs:enumeration value="EquityNotEligible" />
> <xs:enumeration value="ExpiredEquity" />
> <xs:enumeration value="EquityNotPriceable" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="InstrumentType">
> <xs:sequence>
> <xs:element name="ISIN" type="ISINType" />
> </xs:sequence>
> <xs:attribute name="type" type="InstrumentTypeType" />
> </xs:complexType>
> <xs:complexType name="PricedInstrumentType">
> <xs:complexContent>
> <xs:extension base="InstrumentType">
> <xs:sequence>
> <xs:element name="ErrorCode"
> type="PricingErrorCodeType" />
> <xs:element minOccurs="0" name="CleanPrice"
> type="xs:integer" />
> <xs:element minOccurs="0" name="PricingDate"
> type="xs:dateTime" />
> <xs:element minOccurs="0" name="AccruedInterest"
> type="xs:float" />
> <xs:element minOccurs="0" name="PoolFactor"
> type="xs:float" />
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
> Here is the full client code :
> AskForPricingStub stub=new AskForPricingStub();
>
> InstrumentsDocument doc=InstrumentsDocument.Factory.newInstance();
>
> fr.acme.www.myapp_v1.InstrumentsDocument.Instruments
> instruments=InstrumentsDocument.Instruments.Factory.newInstance();
>
> InstrumentType instru1=InstrumentType.Factory.newInstance();
> instru1.setISIN("FR0123456789");
>
>
> instru1.setType(InstrumentTypeType.ABS);
>
> instruments.setInstrumentArray(new InstrumentType[] { instru1});
> doc.setInstruments(instruments);
>
> //HEADER
> HeaderNCBDocument header=HeaderNCBDocument.Factory.newInstance();
> HeaderNCBToFRType headerNCBToFRType=HeaderNCBToFRType.Factory.newInstance();
>
> Calendar submissionDate=Calendar.getInstance();
> headerNCBToFRType.setSubmissionDate(submissionDate);
>
>
> fr.acme.www.myapp_v1.NCBCountryCode.Enum sender=NCBCountryCode.AT;
> fr.acme.www.myapp_v1.NCBCountryCode.Enum receiver=NCBCountryCode.FR;
>
>
> headerNCBToFRType.setSenderNCB( sender);
> headerNCBToFRType.setReceiverNCB(receiver);
>
> header.setHeaderNCB(headerNCBToFRType );
> //here is fr.acme.www.myapp_v1.Client.go(Client.java:51)
> stub.AskForPricingOperation(doc,header );
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2279) java.lang.NullPointerException
at org.apache.axis2.description.ClientUtils.inferInTransport
(ClientUtils.java:85)
Posted by "oliv g (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478830 ]
oliv g commented on AXIS2-2279:
-------------------------------
You are right.
I restarted my web project from scratch with all the libs this time and it worked fine.
In summary, a missing jar has caused a NullPointerException (which does not help
much to solve the issue, does it ? )
I suppose this issue can be closed !
> java.lang.NullPointerException at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85)
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2279
> URL: https://issues.apache.org/jira/browse/AXIS2-2279
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.1.1
> Environment: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis2 1.1.1
> Reporter: oliv g
> Assigned To: Deepal Jayasinghe
>
> java.lang.NullPointerException
> at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
> at fr.acme.www.myapp_v1.AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
> at fr.acme.www.myapp_v1.Client.go(Client.java:51)
> which is not a clear error message.
> Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
> (same result using wsdl2java.bat)
> Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
>
> } else {
> //assume listener transport as sender transport
> --> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
> }
> }
> Here is the wsdl :
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:val="http://www.acme.fr/myapp_V1"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <wsdl:types>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <xsd:include schemaLocation="myappCommonTypes.xsd" />
> <xsd:element name="Instruments">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0"
> name="Instrument" type="val:InstrumentType" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="AskForPricingOperationResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="result" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
> <xsd:element name="AskForPricingOperation_fault">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="AskForPricingOperation_fault"
> type="xsd:string">
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="AskForPricingOperationRequest">
> <wsdl:part element="val:Instruments" name="ListOfInstruments" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationRequestHeader">
> <wsdl:part element="val:HeaderNCB" name="RequestHeader" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationResponse">
> <wsdl:part element="val:AskForPricingOperationResponse"
> name="Response" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperation_faultMsg">
> <wsdl:part element="val:AskForPricingOperation_fault"
> name="parameters" />
> </wsdl:message>
> <wsdl:portType name="AskForPricing">
> <wsdl:operation name="AskForPricingOperation">
> <wsdl:input message="val:AskForPricingOperationRequest" />
> <wsdl:output message="val:AskForPricingOperationResponse" />
> <!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="AskForPricingOperation">
> <soap:operation
> soapAction="http://www.acme.fr/myapp_V1/NewOperation" />
> <wsdl:input>
> <soap:header
> message="val:AskForPricingOperationRequestHeader"
> part="RequestHeader" use="literal" />
> <soap:body parts="ListOfInstruments" use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="AskForPricing">
> <wsdl:port binding="val:AskForPricingSOAP"
> name="AskForPricingSOAP">
> <soap:address
> location="http://localhost:8080/myappWEB/services/AskForPricingSOAP" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> and the referenced xsd :
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.acme.fr/myapp_V1"
> attributeFormDefault="unqualified" elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1" version="1.0">
> <xs:simpleType name="NCBCountryCode">
> <xs:restriction base="xs:string">
> <xs:enumeration value="AT" />
> <xs:enumeration value="BE" />
> <xs:enumeration value="DE" />
> <xs:enumeration value="ES" />
> <xs:enumeration value="FI" />
> <xs:enumeration value="FR" />
> <xs:enumeration value="GR" />
> <xs:enumeration value="IE" />
> <xs:enumeration value="IT" />
> <xs:enumeration value="LU" />
> <xs:enumeration value="NL" />
> <xs:enumeration value="PT" />
> <xs:enumeration value="DK" />
> <xs:enumeration value="GB" />
> <xs:enumeration value="LI" />
> <xs:enumeration value="NO" />
> <xs:enumeration value="IS" />
> <xs:enumeration value="SE" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode" />
> <xs:element name="SubmissionDate" type="xs:dateTime" />
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="HeaderNCBFromFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="receiverNCB"
> type="NCBCountryCode" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="HeaderNCBToFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:simpleType name="InstrumentTypeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="ABS" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="ISINType">
> <xs:restriction base="xs:string">
> <xs:minLength value="12"></xs:minLength>
> <xs:maxLength value="12"></xs:maxLength>
> <xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="PricingErrorCodeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="PriceAvailable" />
> <xs:enumeration value="PricingImpossible" />
> <xs:enumeration value="SeekingForAPricingMethod" />
> <xs:enumeration value="EquityNotEligible" />
> <xs:enumeration value="ExpiredEquity" />
> <xs:enumeration value="EquityNotPriceable" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="InstrumentType">
> <xs:sequence>
> <xs:element name="ISIN" type="ISINType" />
> </xs:sequence>
> <xs:attribute name="type" type="InstrumentTypeType" />
> </xs:complexType>
> <xs:complexType name="PricedInstrumentType">
> <xs:complexContent>
> <xs:extension base="InstrumentType">
> <xs:sequence>
> <xs:element name="ErrorCode"
> type="PricingErrorCodeType" />
> <xs:element minOccurs="0" name="CleanPrice"
> type="xs:integer" />
> <xs:element minOccurs="0" name="PricingDate"
> type="xs:dateTime" />
> <xs:element minOccurs="0" name="AccruedInterest"
> type="xs:float" />
> <xs:element minOccurs="0" name="PoolFactor"
> type="xs:float" />
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
> Here is the full client code :
> AskForPricingStub stub=new AskForPricingStub();
>
> InstrumentsDocument doc=InstrumentsDocument.Factory.newInstance();
>
> fr.acme.www.myapp_v1.InstrumentsDocument.Instruments
> instruments=InstrumentsDocument.Instruments.Factory.newInstance();
>
> InstrumentType instru1=InstrumentType.Factory.newInstance();
> instru1.setISIN("FR0123456789");
>
>
> instru1.setType(InstrumentTypeType.ABS);
>
> instruments.setInstrumentArray(new InstrumentType[] { instru1});
> doc.setInstruments(instruments);
>
> //HEADER
> HeaderNCBDocument header=HeaderNCBDocument.Factory.newInstance();
> HeaderNCBToFRType headerNCBToFRType=HeaderNCBToFRType.Factory.newInstance();
>
> Calendar submissionDate=Calendar.getInstance();
> headerNCBToFRType.setSubmissionDate(submissionDate);
>
>
> fr.acme.www.myapp_v1.NCBCountryCode.Enum sender=NCBCountryCode.AT;
> fr.acme.www.myapp_v1.NCBCountryCode.Enum receiver=NCBCountryCode.FR;
>
>
> headerNCBToFRType.setSenderNCB( sender);
> headerNCBToFRType.setReceiverNCB(receiver);
>
> header.setHeaderNCB(headerNCBToFRType );
> //here is fr.acme.www.myapp_v1.Client.go(Client.java:51)
> stub.AskForPricingOperation(doc,header );
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2279) java.lang.NullPointerException
at org.apache.axis2.description.ClientUtils.inferInTransport
(ClientUtils.java:85)
Posted by "JUDE FARRY (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478185 ]
JUDE FARRY commented on AXIS2-2279:
-----------------------------------
Hi,
I also have all the dependant jars in my classpath. Initially i only had an issue with the NullPointerException when trying to return a object that contained a List (as in AXIS2-1835). I then updated the to the nightly build of Axis2 as you proposed in both this threads (and AXIS2-1835). After i placed all of the nightly Axis2 jars in my classpath then all of my pojo web services stopped functioning (even those without Lists) and the NoSuchMethodError was thrown.
I agree that it seems to me to be an issue with the version of the stax-api or the axiom jar.
Cheers,
Jude
> java.lang.NullPointerException at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85)
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2279
> URL: https://issues.apache.org/jira/browse/AXIS2-2279
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.1.1
> Environment: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis2 1.1.1
> Reporter: oliv g
> Assigned To: Deepal Jayasinghe
>
> java.lang.NullPointerException
> at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
> at fr.acme.www.myapp_v1.AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
> at fr.acme.www.myapp_v1.Client.go(Client.java:51)
> which is not a clear error message.
> Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
> (same result using wsdl2java.bat)
> Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
>
> } else {
> //assume listener transport as sender transport
> --> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
> }
> }
> Here is the wsdl :
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:val="http://www.acme.fr/myapp_V1"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <wsdl:types>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <xsd:include schemaLocation="myappCommonTypes.xsd" />
> <xsd:element name="Instruments">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0"
> name="Instrument" type="val:InstrumentType" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="AskForPricingOperationResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="result" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
> <xsd:element name="AskForPricingOperation_fault">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="AskForPricingOperation_fault"
> type="xsd:string">
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="AskForPricingOperationRequest">
> <wsdl:part element="val:Instruments" name="ListOfInstruments" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationRequestHeader">
> <wsdl:part element="val:HeaderNCB" name="RequestHeader" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationResponse">
> <wsdl:part element="val:AskForPricingOperationResponse"
> name="Response" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperation_faultMsg">
> <wsdl:part element="val:AskForPricingOperation_fault"
> name="parameters" />
> </wsdl:message>
> <wsdl:portType name="AskForPricing">
> <wsdl:operation name="AskForPricingOperation">
> <wsdl:input message="val:AskForPricingOperationRequest" />
> <wsdl:output message="val:AskForPricingOperationResponse" />
> <!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="AskForPricingOperation">
> <soap:operation
> soapAction="http://www.acme.fr/myapp_V1/NewOperation" />
> <wsdl:input>
> <soap:header
> message="val:AskForPricingOperationRequestHeader"
> part="RequestHeader" use="literal" />
> <soap:body parts="ListOfInstruments" use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="AskForPricing">
> <wsdl:port binding="val:AskForPricingSOAP"
> name="AskForPricingSOAP">
> <soap:address
> location="http://localhost:8080/myappWEB/services/AskForPricingSOAP" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> and the referenced xsd :
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.acme.fr/myapp_V1"
> attributeFormDefault="unqualified" elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1" version="1.0">
> <xs:simpleType name="NCBCountryCode">
> <xs:restriction base="xs:string">
> <xs:enumeration value="AT" />
> <xs:enumeration value="BE" />
> <xs:enumeration value="DE" />
> <xs:enumeration value="ES" />
> <xs:enumeration value="FI" />
> <xs:enumeration value="FR" />
> <xs:enumeration value="GR" />
> <xs:enumeration value="IE" />
> <xs:enumeration value="IT" />
> <xs:enumeration value="LU" />
> <xs:enumeration value="NL" />
> <xs:enumeration value="PT" />
> <xs:enumeration value="DK" />
> <xs:enumeration value="GB" />
> <xs:enumeration value="LI" />
> <xs:enumeration value="NO" />
> <xs:enumeration value="IS" />
> <xs:enumeration value="SE" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode" />
> <xs:element name="SubmissionDate" type="xs:dateTime" />
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="HeaderNCBFromFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="receiverNCB"
> type="NCBCountryCode" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="HeaderNCBToFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:simpleType name="InstrumentTypeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="ABS" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="ISINType">
> <xs:restriction base="xs:string">
> <xs:minLength value="12"></xs:minLength>
> <xs:maxLength value="12"></xs:maxLength>
> <xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="PricingErrorCodeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="PriceAvailable" />
> <xs:enumeration value="PricingImpossible" />
> <xs:enumeration value="SeekingForAPricingMethod" />
> <xs:enumeration value="EquityNotEligible" />
> <xs:enumeration value="ExpiredEquity" />
> <xs:enumeration value="EquityNotPriceable" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="InstrumentType">
> <xs:sequence>
> <xs:element name="ISIN" type="ISINType" />
> </xs:sequence>
> <xs:attribute name="type" type="InstrumentTypeType" />
> </xs:complexType>
> <xs:complexType name="PricedInstrumentType">
> <xs:complexContent>
> <xs:extension base="InstrumentType">
> <xs:sequence>
> <xs:element name="ErrorCode"
> type="PricingErrorCodeType" />
> <xs:element minOccurs="0" name="CleanPrice"
> type="xs:integer" />
> <xs:element minOccurs="0" name="PricingDate"
> type="xs:dateTime" />
> <xs:element minOccurs="0" name="AccruedInterest"
> type="xs:float" />
> <xs:element minOccurs="0" name="PoolFactor"
> type="xs:float" />
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
> Here is the full client code :
> AskForPricingStub stub=new AskForPricingStub();
>
> InstrumentsDocument doc=InstrumentsDocument.Factory.newInstance();
>
> fr.acme.www.myapp_v1.InstrumentsDocument.Instruments
> instruments=InstrumentsDocument.Instruments.Factory.newInstance();
>
> InstrumentType instru1=InstrumentType.Factory.newInstance();
> instru1.setISIN("FR0123456789");
>
>
> instru1.setType(InstrumentTypeType.ABS);
>
> instruments.setInstrumentArray(new InstrumentType[] { instru1});
> doc.setInstruments(instruments);
>
> //HEADER
> HeaderNCBDocument header=HeaderNCBDocument.Factory.newInstance();
> HeaderNCBToFRType headerNCBToFRType=HeaderNCBToFRType.Factory.newInstance();
>
> Calendar submissionDate=Calendar.getInstance();
> headerNCBToFRType.setSubmissionDate(submissionDate);
>
>
> fr.acme.www.myapp_v1.NCBCountryCode.Enum sender=NCBCountryCode.AT;
> fr.acme.www.myapp_v1.NCBCountryCode.Enum receiver=NCBCountryCode.FR;
>
>
> headerNCBToFRType.setSenderNCB( sender);
> headerNCBToFRType.setReceiverNCB(receiver);
>
> header.setHeaderNCB(headerNCBToFRType );
> //here is fr.acme.www.myapp_v1.Client.go(Client.java:51)
> stub.AskForPricingOperation(doc,header );
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2279) java.lang.NullPointerException
at org.apache.axis2.description.ClientUtils.inferInTransport
(ClientUtils.java:85)
Posted by "JUDE FARRY (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478008 ]
JUDE FARRY commented on AXIS2-2279:
-----------------------------------
I am having the same problem. I have tried various combinations of axiom and stax-api with the nightly build, but have had no success.
> java.lang.NullPointerException at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85)
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2279
> URL: https://issues.apache.org/jira/browse/AXIS2-2279
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.1.1
> Environment: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis2 1.1.1
> Reporter: oliv g
> Assigned To: Deepal Jayasinghe
>
> java.lang.NullPointerException
> at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
> at fr.acme.www.myapp_v1.AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
> at fr.acme.www.myapp_v1.Client.go(Client.java:51)
> which is not a clear error message.
> Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
> (same result using wsdl2java.bat)
> Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
>
> } else {
> //assume listener transport as sender transport
> --> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
> }
> }
> Here is the wsdl :
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:val="http://www.acme.fr/myapp_V1"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <wsdl:types>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <xsd:include schemaLocation="myappCommonTypes.xsd" />
> <xsd:element name="Instruments">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0"
> name="Instrument" type="val:InstrumentType" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="AskForPricingOperationResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="result" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
> <xsd:element name="AskForPricingOperation_fault">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="AskForPricingOperation_fault"
> type="xsd:string">
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="AskForPricingOperationRequest">
> <wsdl:part element="val:Instruments" name="ListOfInstruments" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationRequestHeader">
> <wsdl:part element="val:HeaderNCB" name="RequestHeader" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationResponse">
> <wsdl:part element="val:AskForPricingOperationResponse"
> name="Response" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperation_faultMsg">
> <wsdl:part element="val:AskForPricingOperation_fault"
> name="parameters" />
> </wsdl:message>
> <wsdl:portType name="AskForPricing">
> <wsdl:operation name="AskForPricingOperation">
> <wsdl:input message="val:AskForPricingOperationRequest" />
> <wsdl:output message="val:AskForPricingOperationResponse" />
> <!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="AskForPricingOperation">
> <soap:operation
> soapAction="http://www.acme.fr/myapp_V1/NewOperation" />
> <wsdl:input>
> <soap:header
> message="val:AskForPricingOperationRequestHeader"
> part="RequestHeader" use="literal" />
> <soap:body parts="ListOfInstruments" use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="AskForPricing">
> <wsdl:port binding="val:AskForPricingSOAP"
> name="AskForPricingSOAP">
> <soap:address
> location="http://localhost:8080/myappWEB/services/AskForPricingSOAP" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> and the referenced xsd :
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.acme.fr/myapp_V1"
> attributeFormDefault="unqualified" elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1" version="1.0">
> <xs:simpleType name="NCBCountryCode">
> <xs:restriction base="xs:string">
> <xs:enumeration value="AT" />
> <xs:enumeration value="BE" />
> <xs:enumeration value="DE" />
> <xs:enumeration value="ES" />
> <xs:enumeration value="FI" />
> <xs:enumeration value="FR" />
> <xs:enumeration value="GR" />
> <xs:enumeration value="IE" />
> <xs:enumeration value="IT" />
> <xs:enumeration value="LU" />
> <xs:enumeration value="NL" />
> <xs:enumeration value="PT" />
> <xs:enumeration value="DK" />
> <xs:enumeration value="GB" />
> <xs:enumeration value="LI" />
> <xs:enumeration value="NO" />
> <xs:enumeration value="IS" />
> <xs:enumeration value="SE" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode" />
> <xs:element name="SubmissionDate" type="xs:dateTime" />
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="HeaderNCBFromFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="receiverNCB"
> type="NCBCountryCode" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="HeaderNCBToFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:simpleType name="InstrumentTypeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="ABS" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="ISINType">
> <xs:restriction base="xs:string">
> <xs:minLength value="12"></xs:minLength>
> <xs:maxLength value="12"></xs:maxLength>
> <xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="PricingErrorCodeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="PriceAvailable" />
> <xs:enumeration value="PricingImpossible" />
> <xs:enumeration value="SeekingForAPricingMethod" />
> <xs:enumeration value="EquityNotEligible" />
> <xs:enumeration value="ExpiredEquity" />
> <xs:enumeration value="EquityNotPriceable" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="InstrumentType">
> <xs:sequence>
> <xs:element name="ISIN" type="ISINType" />
> </xs:sequence>
> <xs:attribute name="type" type="InstrumentTypeType" />
> </xs:complexType>
> <xs:complexType name="PricedInstrumentType">
> <xs:complexContent>
> <xs:extension base="InstrumentType">
> <xs:sequence>
> <xs:element name="ErrorCode"
> type="PricingErrorCodeType" />
> <xs:element minOccurs="0" name="CleanPrice"
> type="xs:integer" />
> <xs:element minOccurs="0" name="PricingDate"
> type="xs:dateTime" />
> <xs:element minOccurs="0" name="AccruedInterest"
> type="xs:float" />
> <xs:element minOccurs="0" name="PoolFactor"
> type="xs:float" />
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
> Here is the full client code :
> AskForPricingStub stub=new AskForPricingStub();
>
> InstrumentsDocument doc=InstrumentsDocument.Factory.newInstance();
>
> fr.acme.www.myapp_v1.InstrumentsDocument.Instruments
> instruments=InstrumentsDocument.Instruments.Factory.newInstance();
>
> InstrumentType instru1=InstrumentType.Factory.newInstance();
> instru1.setISIN("FR0123456789");
>
>
> instru1.setType(InstrumentTypeType.ABS);
>
> instruments.setInstrumentArray(new InstrumentType[] { instru1});
> doc.setInstruments(instruments);
>
> //HEADER
> HeaderNCBDocument header=HeaderNCBDocument.Factory.newInstance();
> HeaderNCBToFRType headerNCBToFRType=HeaderNCBToFRType.Factory.newInstance();
>
> Calendar submissionDate=Calendar.getInstance();
> headerNCBToFRType.setSubmissionDate(submissionDate);
>
>
> fr.acme.www.myapp_v1.NCBCountryCode.Enum sender=NCBCountryCode.AT;
> fr.acme.www.myapp_v1.NCBCountryCode.Enum receiver=NCBCountryCode.FR;
>
>
> headerNCBToFRType.setSenderNCB( sender);
> headerNCBToFRType.setReceiverNCB(receiver);
>
> header.setHeaderNCB(headerNCBToFRType );
> //here is fr.acme.www.myapp_v1.Client.go(Client.java:51)
> stub.AskForPricingOperation(doc,header );
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-2279) java.lang.NullPointerException at
org.apache.axis2.description.ClientUtils.inferInTransport
(ClientUtils.java:85)
Posted by "oliv g (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
oliv g updated AXIS2-2279:
--------------------------
Description:
java.lang.NullPointerException
at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
at fr.acme.www.myapp_v1.AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
at fr.acme.www.myapp_v1.Client.go(Client.java:51)
which is not a clear error message.
Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
(same result using wsdl2java.bat)
Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
} else {
//assume listener transport as sender transport
--> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
}
}
Here is the wsdl :
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:val="http://www.acme.fr/myapp_V1"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
targetNamespace="http://www.acme.fr/myapp_V1">
<wsdl:types>
<xsd:schema elementFormDefault="qualified"
targetNamespace="http://www.acme.fr/myapp_V1">
<xsd:include schemaLocation="myappCommonTypes.xsd" />
<xsd:element name="Instruments">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0"
name="Instrument" type="val:InstrumentType" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="AskForPricingOperationResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="result" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
<xsd:element name="AskForPricingOperation_fault">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="AskForPricingOperation_fault"
type="xsd:string">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="AskForPricingOperationRequest">
<wsdl:part element="val:Instruments" name="ListOfInstruments" />
</wsdl:message>
<wsdl:message name="AskForPricingOperationRequestHeader">
<wsdl:part element="val:HeaderNCB" name="RequestHeader" />
</wsdl:message>
<wsdl:message name="AskForPricingOperationResponse">
<wsdl:part element="val:AskForPricingOperationResponse"
name="Response" />
</wsdl:message>
<wsdl:message name="AskForPricingOperation_faultMsg">
<wsdl:part element="val:AskForPricingOperation_fault"
name="parameters" />
</wsdl:message>
<wsdl:portType name="AskForPricing">
<wsdl:operation name="AskForPricingOperation">
<wsdl:input message="val:AskForPricingOperationRequest" />
<wsdl:output message="val:AskForPricingOperationResponse" />
<!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="AskForPricingOperation">
<soap:operation
soapAction="http://www.acme.fr/myapp_V1/NewOperation" />
<wsdl:input>
<soap:header
message="val:AskForPricingOperationRequestHeader"
part="RequestHeader" use="literal" />
<soap:body parts="ListOfInstruments" use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="AskForPricing">
<wsdl:port binding="val:AskForPricingSOAP"
name="AskForPricingSOAP">
<soap:address
location="http://localhost:8080/myappWEB/services/AskForPricingSOAP" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
and the referenced xsd :
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.acme.fr/myapp_V1"
attributeFormDefault="unqualified" elementFormDefault="qualified"
targetNamespace="http://www.acme.fr/myapp_V1" version="1.0">
<xs:simpleType name="NCBCountryCode">
<xs:restriction base="xs:string">
<xs:enumeration value="AT" />
<xs:enumeration value="BE" />
<xs:enumeration value="DE" />
<xs:enumeration value="ES" />
<xs:enumeration value="FI" />
<xs:enumeration value="FR" />
<xs:enumeration value="GR" />
<xs:enumeration value="IE" />
<xs:enumeration value="IT" />
<xs:enumeration value="LU" />
<xs:enumeration value="NL" />
<xs:enumeration value="PT" />
<xs:enumeration value="DK" />
<xs:enumeration value="GB" />
<xs:enumeration value="LI" />
<xs:enumeration value="NO" />
<xs:enumeration value="IS" />
<xs:enumeration value="SE" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="HeaderNCBType">
<xs:sequence>
<xs:element name="senderNCB" type="NCBCountryCode" />
<xs:element name="receiverNCB" type="NCBCountryCode" />
<xs:element name="SubmissionDate" type="xs:dateTime" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="HeaderNCBFromFRType">
<xs:complexContent>
<xs:restriction base="HeaderNCBType">
<xs:sequence>
<xs:element name="senderNCB" type="NCBCountryCode"
fixed="FR" />
<xs:element name="receiverNCB"
type="NCBCountryCode" />
<xs:element name="SubmissionDate"
type="xs:dateTime" />
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="HeaderNCBToFRType">
<xs:complexContent>
<xs:restriction base="HeaderNCBType">
<xs:sequence>
<xs:element name="senderNCB" type="NCBCountryCode" />
<xs:element name="receiverNCB" type="NCBCountryCode"
fixed="FR" />
<xs:element name="SubmissionDate"
type="xs:dateTime" />
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="InstrumentTypeType">
<xs:restriction base="xs:string">
<xs:enumeration value="ABS" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ISINType">
<xs:restriction base="xs:string">
<xs:minLength value="12"></xs:minLength>
<xs:maxLength value="12"></xs:maxLength>
<xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="PricingErrorCodeType">
<xs:restriction base="xs:string">
<xs:enumeration value="PriceAvailable" />
<xs:enumeration value="PricingImpossible" />
<xs:enumeration value="SeekingForAPricingMethod" />
<xs:enumeration value="EquityNotEligible" />
<xs:enumeration value="ExpiredEquity" />
<xs:enumeration value="EquityNotPriceable" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="InstrumentType">
<xs:sequence>
<xs:element name="ISIN" type="ISINType" />
</xs:sequence>
<xs:attribute name="type" type="InstrumentTypeType" />
</xs:complexType>
<xs:complexType name="PricedInstrumentType">
<xs:complexContent>
<xs:extension base="InstrumentType">
<xs:sequence>
<xs:element name="ErrorCode"
type="PricingErrorCodeType" />
<xs:element minOccurs="0" name="CleanPrice"
type="xs:integer" />
<xs:element minOccurs="0" name="PricingDate"
type="xs:dateTime" />
<xs:element minOccurs="0" name="AccruedInterest"
type="xs:float" />
<xs:element minOccurs="0" name="PoolFactor"
type="xs:float" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
Here is the full client code :
AskForPricingStub stub=new AskForPricingStub();
InstrumentsDocument doc=InstrumentsDocument.Factory.newInstance();
fr.acme.www.myapp_v1.InstrumentsDocument.Instruments
instruments=InstrumentsDocument.Instruments.Factory.newInstance();
InstrumentType instru1=InstrumentType.Factory.newInstance();
instru1.setISIN("FR0123456789");
instru1.setType(InstrumentTypeType.ABS);
instruments.setInstrumentArray(new InstrumentType[] { instru1});
doc.setInstruments(instruments);
//HEADER
HeaderNCBDocument header=HeaderNCBDocument.Factory.newInstance();
HeaderNCBToFRType headerNCBToFRType=HeaderNCBToFRType.Factory.newInstance();
Calendar submissionDate=Calendar.getInstance();
headerNCBToFRType.setSubmissionDate(submissionDate);
fr.acme.www.myapp_v1.NCBCountryCode.Enum sender=NCBCountryCode.AT;
fr.acme.www.myapp_v1.NCBCountryCode.Enum receiver=NCBCountryCode.FR;
headerNCBToFRType.setSenderNCB( sender);
headerNCBToFRType.setReceiverNCB(receiver);
header.setHeaderNCB(headerNCBToFRType );
//here is fr.acme.www.myapp_v1.Client.go(Client.java:51)
stub.AskForPricingOperation(doc,header );
was:
java.lang.NullPointerException
at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
at ....AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
(same result using wsdl2java.bat)
Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
} else {
//assume listener transport as sender transport
--> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
}
}
Here is the wsdl :
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:val="http://www.banque-france.fr/VALOR_V1"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
targetNamespace="http://www.banque-france.fr/VALOR_V1">
<wsdl:types>
<xsd:schema elementFormDefault="qualified"
targetNamespace="http://www.banque-france.fr/VALOR_V1">
<xsd:include schemaLocation="ValorCommonTypes.xsd" />
<xsd:element name="Instruments">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0"
name="Instrument" type="val:InstrumentType" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="AskForPricingOperationResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="result" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
<xsd:element name="AskForPricingOperation_fault">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="AskForPricingOperation_fault"
type="xsd:string">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="AskForPricingOperationRequest">
<wsdl:part element="val:Instruments" name="ListOfInstruments" />
</wsdl:message>
<wsdl:message name="AskForPricingOperationRequestHeader">
<wsdl:part element="val:HeaderNCB" name="RequestHeader" />
</wsdl:message>
<wsdl:message name="AskForPricingOperationResponse">
<wsdl:part element="val:AskForPricingOperationResponse"
name="Response" />
</wsdl:message>
<wsdl:message name="AskForPricingOperation_faultMsg">
<wsdl:part element="val:AskForPricingOperation_fault"
name="parameters" />
</wsdl:message>
<wsdl:portType name="AskForPricing">
<wsdl:operation name="AskForPricingOperation">
<wsdl:input message="val:AskForPricingOperationRequest" />
<wsdl:output message="val:AskForPricingOperationResponse" />
<!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="AskForPricingOperation">
<soap:operation
soapAction="http://www.banque-france.fr/VALOR_V1/NewOperation" />
<wsdl:input>
<soap:header
message="val:AskForPricingOperationRequestHeader"
part="RequestHeader" use="literal" />
<soap:body parts="ListOfInstruments" use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="AskForPricing">
<wsdl:port binding="val:AskForPricingSOAP"
name="AskForPricingSOAP">
<soap:address
location="http://localhost:8080/valorWEB/services/AskForPricingSOAP" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
and the referenced xsd :
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.banque-france.fr/VALOR_V1"
attributeFormDefault="unqualified" elementFormDefault="qualified"
targetNamespace="http://www.banque-france.fr/VALOR_V1" version="1.0">
<xs:simpleType name="NCBCountryCode">
<xs:restriction base="xs:string">
<xs:enumeration value="AT" />
<xs:enumeration value="BE" />
<xs:enumeration value="DE" />
<xs:enumeration value="ES" />
<xs:enumeration value="FI" />
<xs:enumeration value="FR" />
<xs:enumeration value="GR" />
<xs:enumeration value="IE" />
<xs:enumeration value="IT" />
<xs:enumeration value="LU" />
<xs:enumeration value="NL" />
<xs:enumeration value="PT" />
<xs:enumeration value="DK" />
<xs:enumeration value="GB" />
<xs:enumeration value="LI" />
<xs:enumeration value="NO" />
<xs:enumeration value="IS" />
<xs:enumeration value="SE" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="HeaderNCBType">
<xs:sequence>
<xs:element name="senderNCB" type="NCBCountryCode" />
<xs:element name="receiverNCB" type="NCBCountryCode" />
<xs:element name="SubmissionDate" type="xs:dateTime" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="HeaderNCBFromFRType">
<xs:complexContent>
<xs:restriction base="HeaderNCBType">
<xs:sequence>
<xs:element name="senderNCB" type="NCBCountryCode"
fixed="FR" />
<xs:element name="receiverNCB"
type="NCBCountryCode" />
<xs:element name="SubmissionDate"
type="xs:dateTime" />
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="HeaderNCBToFRType">
<xs:complexContent>
<xs:restriction base="HeaderNCBType">
<xs:sequence>
<xs:element name="senderNCB" type="NCBCountryCode" />
<xs:element name="receiverNCB" type="NCBCountryCode"
fixed="FR" />
<xs:element name="SubmissionDate"
type="xs:dateTime" />
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="InstrumentTypeType">
<xs:restriction base="xs:string">
<xs:enumeration value="ABS" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ISINType">
<xs:restriction base="xs:string">
<xs:minLength value="12"></xs:minLength>
<xs:maxLength value="12"></xs:maxLength>
<xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="PricingErrorCodeType">
<xs:restriction base="xs:string">
<xs:enumeration value="PriceAvailable" />
<xs:enumeration value="PricingImpossible" />
<xs:enumeration value="SeekingForAPricingMethod" />
<xs:enumeration value="EquityNotEligible" />
<xs:enumeration value="ExpiredEquity" />
<xs:enumeration value="EquityNotPriceable" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="InstrumentType">
<xs:sequence>
<xs:element name="ISIN" type="ISINType" />
</xs:sequence>
<xs:attribute name="type" type="InstrumentTypeType" />
</xs:complexType>
<xs:complexType name="PricedInstrumentType">
<xs:complexContent>
<xs:extension base="InstrumentType">
<xs:sequence>
<xs:element name="ErrorCode"
type="PricingErrorCodeType" />
<xs:element minOccurs="0" name="CleanPrice"
type="xs:integer" />
<xs:element minOccurs="0" name="PricingDate"
type="xs:dateTime" />
<xs:element minOccurs="0" name="AccruedInterest"
type="xs:float" />
<xs:element minOccurs="0" name="PoolFactor"
type="xs:float" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
> java.lang.NullPointerException at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85)
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2279
> URL: https://issues.apache.org/jira/browse/AXIS2-2279
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.1.1
> Environment: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis2 1.1.1
> Reporter: oliv g
>
> java.lang.NullPointerException
> at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
> at fr.acme.www.myapp_v1.AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
> at fr.acme.www.myapp_v1.Client.go(Client.java:51)
> which is not a clear error message.
> Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
> (same result using wsdl2java.bat)
> Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
>
> } else {
> //assume listener transport as sender transport
> --> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
> }
> }
> Here is the wsdl :
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:val="http://www.acme.fr/myapp_V1"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <wsdl:types>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <xsd:include schemaLocation="myappCommonTypes.xsd" />
> <xsd:element name="Instruments">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0"
> name="Instrument" type="val:InstrumentType" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="AskForPricingOperationResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="result" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
> <xsd:element name="AskForPricingOperation_fault">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="AskForPricingOperation_fault"
> type="xsd:string">
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="AskForPricingOperationRequest">
> <wsdl:part element="val:Instruments" name="ListOfInstruments" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationRequestHeader">
> <wsdl:part element="val:HeaderNCB" name="RequestHeader" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationResponse">
> <wsdl:part element="val:AskForPricingOperationResponse"
> name="Response" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperation_faultMsg">
> <wsdl:part element="val:AskForPricingOperation_fault"
> name="parameters" />
> </wsdl:message>
> <wsdl:portType name="AskForPricing">
> <wsdl:operation name="AskForPricingOperation">
> <wsdl:input message="val:AskForPricingOperationRequest" />
> <wsdl:output message="val:AskForPricingOperationResponse" />
> <!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="AskForPricingOperation">
> <soap:operation
> soapAction="http://www.acme.fr/myapp_V1/NewOperation" />
> <wsdl:input>
> <soap:header
> message="val:AskForPricingOperationRequestHeader"
> part="RequestHeader" use="literal" />
> <soap:body parts="ListOfInstruments" use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="AskForPricing">
> <wsdl:port binding="val:AskForPricingSOAP"
> name="AskForPricingSOAP">
> <soap:address
> location="http://localhost:8080/myappWEB/services/AskForPricingSOAP" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> and the referenced xsd :
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.acme.fr/myapp_V1"
> attributeFormDefault="unqualified" elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1" version="1.0">
> <xs:simpleType name="NCBCountryCode">
> <xs:restriction base="xs:string">
> <xs:enumeration value="AT" />
> <xs:enumeration value="BE" />
> <xs:enumeration value="DE" />
> <xs:enumeration value="ES" />
> <xs:enumeration value="FI" />
> <xs:enumeration value="FR" />
> <xs:enumeration value="GR" />
> <xs:enumeration value="IE" />
> <xs:enumeration value="IT" />
> <xs:enumeration value="LU" />
> <xs:enumeration value="NL" />
> <xs:enumeration value="PT" />
> <xs:enumeration value="DK" />
> <xs:enumeration value="GB" />
> <xs:enumeration value="LI" />
> <xs:enumeration value="NO" />
> <xs:enumeration value="IS" />
> <xs:enumeration value="SE" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode" />
> <xs:element name="SubmissionDate" type="xs:dateTime" />
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="HeaderNCBFromFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="receiverNCB"
> type="NCBCountryCode" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="HeaderNCBToFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:simpleType name="InstrumentTypeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="ABS" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="ISINType">
> <xs:restriction base="xs:string">
> <xs:minLength value="12"></xs:minLength>
> <xs:maxLength value="12"></xs:maxLength>
> <xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="PricingErrorCodeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="PriceAvailable" />
> <xs:enumeration value="PricingImpossible" />
> <xs:enumeration value="SeekingForAPricingMethod" />
> <xs:enumeration value="EquityNotEligible" />
> <xs:enumeration value="ExpiredEquity" />
> <xs:enumeration value="EquityNotPriceable" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="InstrumentType">
> <xs:sequence>
> <xs:element name="ISIN" type="ISINType" />
> </xs:sequence>
> <xs:attribute name="type" type="InstrumentTypeType" />
> </xs:complexType>
> <xs:complexType name="PricedInstrumentType">
> <xs:complexContent>
> <xs:extension base="InstrumentType">
> <xs:sequence>
> <xs:element name="ErrorCode"
> type="PricingErrorCodeType" />
> <xs:element minOccurs="0" name="CleanPrice"
> type="xs:integer" />
> <xs:element minOccurs="0" name="PricingDate"
> type="xs:dateTime" />
> <xs:element minOccurs="0" name="AccruedInterest"
> type="xs:float" />
> <xs:element minOccurs="0" name="PoolFactor"
> type="xs:float" />
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
> Here is the full client code :
> AskForPricingStub stub=new AskForPricingStub();
>
> InstrumentsDocument doc=InstrumentsDocument.Factory.newInstance();
>
> fr.acme.www.myapp_v1.InstrumentsDocument.Instruments
> instruments=InstrumentsDocument.Instruments.Factory.newInstance();
>
> InstrumentType instru1=InstrumentType.Factory.newInstance();
> instru1.setISIN("FR0123456789");
>
>
> instru1.setType(InstrumentTypeType.ABS);
>
> instruments.setInstrumentArray(new InstrumentType[] { instru1});
> doc.setInstruments(instruments);
>
> //HEADER
> HeaderNCBDocument header=HeaderNCBDocument.Factory.newInstance();
> HeaderNCBToFRType headerNCBToFRType=HeaderNCBToFRType.Factory.newInstance();
>
> Calendar submissionDate=Calendar.getInstance();
> headerNCBToFRType.setSubmissionDate(submissionDate);
>
>
> fr.acme.www.myapp_v1.NCBCountryCode.Enum sender=NCBCountryCode.AT;
> fr.acme.www.myapp_v1.NCBCountryCode.Enum receiver=NCBCountryCode.FR;
>
>
> headerNCBToFRType.setSenderNCB( sender);
> headerNCBToFRType.setReceiverNCB(receiver);
>
> header.setHeaderNCB(headerNCBToFRType );
> //here is fr.acme.www.myapp_v1.Client.go(Client.java:51)
> stub.AskForPricingOperation(doc,header );
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Assigned: (AXIS2-2279) java.lang.NullPointerException at
org.apache.axis2.description.ClientUtils.inferInTransport
(ClientUtils.java:85)
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe reassigned AXIS2-2279:
----------------------------------------
Assignee: Deepal Jayasinghe
> java.lang.NullPointerException at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85)
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2279
> URL: https://issues.apache.org/jira/browse/AXIS2-2279
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.1.1
> Environment: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis2 1.1.1
> Reporter: oliv g
> Assigned To: Deepal Jayasinghe
>
> java.lang.NullPointerException
> at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
> at fr.acme.www.myapp_v1.AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
> at fr.acme.www.myapp_v1.Client.go(Client.java:51)
> which is not a clear error message.
> Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
> (same result using wsdl2java.bat)
> Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
>
> } else {
> //assume listener transport as sender transport
> --> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
> }
> }
> Here is the wsdl :
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:val="http://www.acme.fr/myapp_V1"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <wsdl:types>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <xsd:include schemaLocation="myappCommonTypes.xsd" />
> <xsd:element name="Instruments">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0"
> name="Instrument" type="val:InstrumentType" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="AskForPricingOperationResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="result" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
> <xsd:element name="AskForPricingOperation_fault">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="AskForPricingOperation_fault"
> type="xsd:string">
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="AskForPricingOperationRequest">
> <wsdl:part element="val:Instruments" name="ListOfInstruments" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationRequestHeader">
> <wsdl:part element="val:HeaderNCB" name="RequestHeader" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationResponse">
> <wsdl:part element="val:AskForPricingOperationResponse"
> name="Response" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperation_faultMsg">
> <wsdl:part element="val:AskForPricingOperation_fault"
> name="parameters" />
> </wsdl:message>
> <wsdl:portType name="AskForPricing">
> <wsdl:operation name="AskForPricingOperation">
> <wsdl:input message="val:AskForPricingOperationRequest" />
> <wsdl:output message="val:AskForPricingOperationResponse" />
> <!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="AskForPricingOperation">
> <soap:operation
> soapAction="http://www.acme.fr/myapp_V1/NewOperation" />
> <wsdl:input>
> <soap:header
> message="val:AskForPricingOperationRequestHeader"
> part="RequestHeader" use="literal" />
> <soap:body parts="ListOfInstruments" use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="AskForPricing">
> <wsdl:port binding="val:AskForPricingSOAP"
> name="AskForPricingSOAP">
> <soap:address
> location="http://localhost:8080/myappWEB/services/AskForPricingSOAP" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> and the referenced xsd :
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.acme.fr/myapp_V1"
> attributeFormDefault="unqualified" elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1" version="1.0">
> <xs:simpleType name="NCBCountryCode">
> <xs:restriction base="xs:string">
> <xs:enumeration value="AT" />
> <xs:enumeration value="BE" />
> <xs:enumeration value="DE" />
> <xs:enumeration value="ES" />
> <xs:enumeration value="FI" />
> <xs:enumeration value="FR" />
> <xs:enumeration value="GR" />
> <xs:enumeration value="IE" />
> <xs:enumeration value="IT" />
> <xs:enumeration value="LU" />
> <xs:enumeration value="NL" />
> <xs:enumeration value="PT" />
> <xs:enumeration value="DK" />
> <xs:enumeration value="GB" />
> <xs:enumeration value="LI" />
> <xs:enumeration value="NO" />
> <xs:enumeration value="IS" />
> <xs:enumeration value="SE" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode" />
> <xs:element name="SubmissionDate" type="xs:dateTime" />
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="HeaderNCBFromFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="receiverNCB"
> type="NCBCountryCode" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="HeaderNCBToFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:simpleType name="InstrumentTypeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="ABS" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="ISINType">
> <xs:restriction base="xs:string">
> <xs:minLength value="12"></xs:minLength>
> <xs:maxLength value="12"></xs:maxLength>
> <xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="PricingErrorCodeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="PriceAvailable" />
> <xs:enumeration value="PricingImpossible" />
> <xs:enumeration value="SeekingForAPricingMethod" />
> <xs:enumeration value="EquityNotEligible" />
> <xs:enumeration value="ExpiredEquity" />
> <xs:enumeration value="EquityNotPriceable" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="InstrumentType">
> <xs:sequence>
> <xs:element name="ISIN" type="ISINType" />
> </xs:sequence>
> <xs:attribute name="type" type="InstrumentTypeType" />
> </xs:complexType>
> <xs:complexType name="PricedInstrumentType">
> <xs:complexContent>
> <xs:extension base="InstrumentType">
> <xs:sequence>
> <xs:element name="ErrorCode"
> type="PricingErrorCodeType" />
> <xs:element minOccurs="0" name="CleanPrice"
> type="xs:integer" />
> <xs:element minOccurs="0" name="PricingDate"
> type="xs:dateTime" />
> <xs:element minOccurs="0" name="AccruedInterest"
> type="xs:float" />
> <xs:element minOccurs="0" name="PoolFactor"
> type="xs:float" />
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
> Here is the full client code :
> AskForPricingStub stub=new AskForPricingStub();
>
> InstrumentsDocument doc=InstrumentsDocument.Factory.newInstance();
>
> fr.acme.www.myapp_v1.InstrumentsDocument.Instruments
> instruments=InstrumentsDocument.Instruments.Factory.newInstance();
>
> InstrumentType instru1=InstrumentType.Factory.newInstance();
> instru1.setISIN("FR0123456789");
>
>
> instru1.setType(InstrumentTypeType.ABS);
>
> instruments.setInstrumentArray(new InstrumentType[] { instru1});
> doc.setInstruments(instruments);
>
> //HEADER
> HeaderNCBDocument header=HeaderNCBDocument.Factory.newInstance();
> HeaderNCBToFRType headerNCBToFRType=HeaderNCBToFRType.Factory.newInstance();
>
> Calendar submissionDate=Calendar.getInstance();
> headerNCBToFRType.setSubmissionDate(submissionDate);
>
>
> fr.acme.www.myapp_v1.NCBCountryCode.Enum sender=NCBCountryCode.AT;
> fr.acme.www.myapp_v1.NCBCountryCode.Enum receiver=NCBCountryCode.FR;
>
>
> headerNCBToFRType.setSenderNCB( sender);
> headerNCBToFRType.setReceiverNCB(receiver);
>
> header.setHeaderNCB(headerNCBToFRType );
> //here is fr.acme.www.myapp_v1.Client.go(Client.java:51)
> stub.AskForPricingOperation(doc,header );
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2279) java.lang.NullPointerException
at org.apache.axis2.description.ClientUtils.inferInTransport
(ClientUtils.java:85)
Posted by "oliv g (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478055 ]
oliv g commented on AXIS2-2279:
-------------------------------
I first added commons-httpclient-3.0.1.jar and all the others jars before getting the describe error message.
(I am not getting a classnotfound Exception)
It tells that it is looking for such a method :
public StAXSOAPModelBuilder(XMLStreamReader parser)
which does not exist in axiom-1.2.2 (which is the latest release).
The method available is :
public StAXSOAPModelBuilder(XMLStreamReader parser, String soapVersion)
Which axiom version are we suppose to use with that nigthly build (march 2) ?
> java.lang.NullPointerException at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85)
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2279
> URL: https://issues.apache.org/jira/browse/AXIS2-2279
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.1.1
> Environment: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis2 1.1.1
> Reporter: oliv g
> Assigned To: Deepal Jayasinghe
>
> java.lang.NullPointerException
> at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
> at fr.acme.www.myapp_v1.AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
> at fr.acme.www.myapp_v1.Client.go(Client.java:51)
> which is not a clear error message.
> Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
> (same result using wsdl2java.bat)
> Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
>
> } else {
> //assume listener transport as sender transport
> --> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
> }
> }
> Here is the wsdl :
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:val="http://www.acme.fr/myapp_V1"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <wsdl:types>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <xsd:include schemaLocation="myappCommonTypes.xsd" />
> <xsd:element name="Instruments">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0"
> name="Instrument" type="val:InstrumentType" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="AskForPricingOperationResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="result" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
> <xsd:element name="AskForPricingOperation_fault">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="AskForPricingOperation_fault"
> type="xsd:string">
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="AskForPricingOperationRequest">
> <wsdl:part element="val:Instruments" name="ListOfInstruments" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationRequestHeader">
> <wsdl:part element="val:HeaderNCB" name="RequestHeader" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationResponse">
> <wsdl:part element="val:AskForPricingOperationResponse"
> name="Response" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperation_faultMsg">
> <wsdl:part element="val:AskForPricingOperation_fault"
> name="parameters" />
> </wsdl:message>
> <wsdl:portType name="AskForPricing">
> <wsdl:operation name="AskForPricingOperation">
> <wsdl:input message="val:AskForPricingOperationRequest" />
> <wsdl:output message="val:AskForPricingOperationResponse" />
> <!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="AskForPricingOperation">
> <soap:operation
> soapAction="http://www.acme.fr/myapp_V1/NewOperation" />
> <wsdl:input>
> <soap:header
> message="val:AskForPricingOperationRequestHeader"
> part="RequestHeader" use="literal" />
> <soap:body parts="ListOfInstruments" use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="AskForPricing">
> <wsdl:port binding="val:AskForPricingSOAP"
> name="AskForPricingSOAP">
> <soap:address
> location="http://localhost:8080/myappWEB/services/AskForPricingSOAP" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> and the referenced xsd :
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.acme.fr/myapp_V1"
> attributeFormDefault="unqualified" elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1" version="1.0">
> <xs:simpleType name="NCBCountryCode">
> <xs:restriction base="xs:string">
> <xs:enumeration value="AT" />
> <xs:enumeration value="BE" />
> <xs:enumeration value="DE" />
> <xs:enumeration value="ES" />
> <xs:enumeration value="FI" />
> <xs:enumeration value="FR" />
> <xs:enumeration value="GR" />
> <xs:enumeration value="IE" />
> <xs:enumeration value="IT" />
> <xs:enumeration value="LU" />
> <xs:enumeration value="NL" />
> <xs:enumeration value="PT" />
> <xs:enumeration value="DK" />
> <xs:enumeration value="GB" />
> <xs:enumeration value="LI" />
> <xs:enumeration value="NO" />
> <xs:enumeration value="IS" />
> <xs:enumeration value="SE" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode" />
> <xs:element name="SubmissionDate" type="xs:dateTime" />
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="HeaderNCBFromFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="receiverNCB"
> type="NCBCountryCode" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="HeaderNCBToFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:simpleType name="InstrumentTypeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="ABS" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="ISINType">
> <xs:restriction base="xs:string">
> <xs:minLength value="12"></xs:minLength>
> <xs:maxLength value="12"></xs:maxLength>
> <xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="PricingErrorCodeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="PriceAvailable" />
> <xs:enumeration value="PricingImpossible" />
> <xs:enumeration value="SeekingForAPricingMethod" />
> <xs:enumeration value="EquityNotEligible" />
> <xs:enumeration value="ExpiredEquity" />
> <xs:enumeration value="EquityNotPriceable" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="InstrumentType">
> <xs:sequence>
> <xs:element name="ISIN" type="ISINType" />
> </xs:sequence>
> <xs:attribute name="type" type="InstrumentTypeType" />
> </xs:complexType>
> <xs:complexType name="PricedInstrumentType">
> <xs:complexContent>
> <xs:extension base="InstrumentType">
> <xs:sequence>
> <xs:element name="ErrorCode"
> type="PricingErrorCodeType" />
> <xs:element minOccurs="0" name="CleanPrice"
> type="xs:integer" />
> <xs:element minOccurs="0" name="PricingDate"
> type="xs:dateTime" />
> <xs:element minOccurs="0" name="AccruedInterest"
> type="xs:float" />
> <xs:element minOccurs="0" name="PoolFactor"
> type="xs:float" />
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
> Here is the full client code :
> AskForPricingStub stub=new AskForPricingStub();
>
> InstrumentsDocument doc=InstrumentsDocument.Factory.newInstance();
>
> fr.acme.www.myapp_v1.InstrumentsDocument.Instruments
> instruments=InstrumentsDocument.Instruments.Factory.newInstance();
>
> InstrumentType instru1=InstrumentType.Factory.newInstance();
> instru1.setISIN("FR0123456789");
>
>
> instru1.setType(InstrumentTypeType.ABS);
>
> instruments.setInstrumentArray(new InstrumentType[] { instru1});
> doc.setInstruments(instruments);
>
> //HEADER
> HeaderNCBDocument header=HeaderNCBDocument.Factory.newInstance();
> HeaderNCBToFRType headerNCBToFRType=HeaderNCBToFRType.Factory.newInstance();
>
> Calendar submissionDate=Calendar.getInstance();
> headerNCBToFRType.setSubmissionDate(submissionDate);
>
>
> fr.acme.www.myapp_v1.NCBCountryCode.Enum sender=NCBCountryCode.AT;
> fr.acme.www.myapp_v1.NCBCountryCode.Enum receiver=NCBCountryCode.FR;
>
>
> headerNCBToFRType.setSenderNCB( sender);
> headerNCBToFRType.setReceiverNCB(receiver);
>
> header.setHeaderNCB(headerNCBToFRType );
> //here is fr.acme.www.myapp_v1.Client.go(Client.java:51)
> stub.AskForPricingOperation(doc,header );
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2279) java.lang.NullPointerException
at org.apache.axis2.description.ClientUtils.inferInTransport
(ClientUtils.java:85)
Posted by "Adrian Bigler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478705 ]
Adrian Bigler commented on AXIS2-2279:
--------------------------------------
I had also the following exception using the axis2-1.1.zip:
java.lang.NullPointerException
at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
I solved the problem by putting all the libraries from "axis2\WebContent\WEB-INF\lib" on the classpath.
> java.lang.NullPointerException at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85)
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2279
> URL: https://issues.apache.org/jira/browse/AXIS2-2279
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.1.1
> Environment: Windows XP, Eclipse 3.2 , jre 1.5.0_06, Axis2 1.1.1
> Reporter: oliv g
> Assigned To: Deepal Jayasinghe
>
> java.lang.NullPointerException
> at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
> at fr.acme.www.myapp_v1.AskForPricingStub.AskForPricingOperation(AskForPricingStub.java:150)
> at fr.acme.www.myapp_v1.Client.go(Client.java:51)
> which is not a clear error message.
> Server and client are generated automaticly from the wsdl with Axis2 code generator and xmlbeans databinding within Eclipse
> (same result using wsdl2java.bat)
> Here is the null pointer exception (transportOut is null) at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:85) received when launching my client code trying to invoque the available service.
>
> } else {
> //assume listener transport as sender transport
> --> listenerTransportProtocol = msgCtxt.getTransportOut().getName().getLocalPart();
> }
> }
> Here is the wsdl :
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:val="http://www.acme.fr/myapp_V1"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AskForPricing"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <wsdl:types>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1">
> <xsd:include schemaLocation="myappCommonTypes.xsd" />
> <xsd:element name="Instruments">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0"
> name="Instrument" type="val:InstrumentType" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="AskForPricingOperationResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="result" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="HeaderNCB" type="val:HeaderNCBToFRType" />
> <xsd:element name="AskForPricingOperation_fault">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="AskForPricingOperation_fault"
> type="xsd:string">
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="AskForPricingOperationRequest">
> <wsdl:part element="val:Instruments" name="ListOfInstruments" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationRequestHeader">
> <wsdl:part element="val:HeaderNCB" name="RequestHeader" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperationResponse">
> <wsdl:part element="val:AskForPricingOperationResponse"
> name="Response" />
> </wsdl:message>
> <wsdl:message name="AskForPricingOperation_faultMsg">
> <wsdl:part element="val:AskForPricingOperation_fault"
> name="parameters" />
> </wsdl:message>
> <wsdl:portType name="AskForPricing">
> <wsdl:operation name="AskForPricingOperation">
> <wsdl:input message="val:AskForPricingOperationRequest" />
> <wsdl:output message="val:AskForPricingOperationResponse" />
> <!-- <wsdl:fault message="val:AskForPricingOperation_faultMsg" name="fault"/> -->
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AskForPricingSOAP" type="val:AskForPricing">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="AskForPricingOperation">
> <soap:operation
> soapAction="http://www.acme.fr/myapp_V1/NewOperation" />
> <wsdl:input>
> <soap:header
> message="val:AskForPricingOperationRequestHeader"
> part="RequestHeader" use="literal" />
> <soap:body parts="ListOfInstruments" use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="AskForPricing">
> <wsdl:port binding="val:AskForPricingSOAP"
> name="AskForPricingSOAP">
> <soap:address
> location="http://localhost:8080/myappWEB/services/AskForPricingSOAP" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> and the referenced xsd :
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.acme.fr/myapp_V1"
> attributeFormDefault="unqualified" elementFormDefault="qualified"
> targetNamespace="http://www.acme.fr/myapp_V1" version="1.0">
> <xs:simpleType name="NCBCountryCode">
> <xs:restriction base="xs:string">
> <xs:enumeration value="AT" />
> <xs:enumeration value="BE" />
> <xs:enumeration value="DE" />
> <xs:enumeration value="ES" />
> <xs:enumeration value="FI" />
> <xs:enumeration value="FR" />
> <xs:enumeration value="GR" />
> <xs:enumeration value="IE" />
> <xs:enumeration value="IT" />
> <xs:enumeration value="LU" />
> <xs:enumeration value="NL" />
> <xs:enumeration value="PT" />
> <xs:enumeration value="DK" />
> <xs:enumeration value="GB" />
> <xs:enumeration value="LI" />
> <xs:enumeration value="NO" />
> <xs:enumeration value="IS" />
> <xs:enumeration value="SE" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode" />
> <xs:element name="SubmissionDate" type="xs:dateTime" />
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="HeaderNCBFromFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="receiverNCB"
> type="NCBCountryCode" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="HeaderNCBToFRType">
> <xs:complexContent>
> <xs:restriction base="HeaderNCBType">
> <xs:sequence>
> <xs:element name="senderNCB" type="NCBCountryCode" />
> <xs:element name="receiverNCB" type="NCBCountryCode"
> fixed="FR" />
> <xs:element name="SubmissionDate"
> type="xs:dateTime" />
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:simpleType name="InstrumentTypeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="ABS" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="ISINType">
> <xs:restriction base="xs:string">
> <xs:minLength value="12"></xs:minLength>
> <xs:maxLength value="12"></xs:maxLength>
> <xs:pattern value="[A-Z]{2}[0-9A-Z]{9}\d{1}" />
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="PricingErrorCodeType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="PriceAvailable" />
> <xs:enumeration value="PricingImpossible" />
> <xs:enumeration value="SeekingForAPricingMethod" />
> <xs:enumeration value="EquityNotEligible" />
> <xs:enumeration value="ExpiredEquity" />
> <xs:enumeration value="EquityNotPriceable" />
> </xs:restriction>
> </xs:simpleType>
> <xs:complexType name="InstrumentType">
> <xs:sequence>
> <xs:element name="ISIN" type="ISINType" />
> </xs:sequence>
> <xs:attribute name="type" type="InstrumentTypeType" />
> </xs:complexType>
> <xs:complexType name="PricedInstrumentType">
> <xs:complexContent>
> <xs:extension base="InstrumentType">
> <xs:sequence>
> <xs:element name="ErrorCode"
> type="PricingErrorCodeType" />
> <xs:element minOccurs="0" name="CleanPrice"
> type="xs:integer" />
> <xs:element minOccurs="0" name="PricingDate"
> type="xs:dateTime" />
> <xs:element minOccurs="0" name="AccruedInterest"
> type="xs:float" />
> <xs:element minOccurs="0" name="PoolFactor"
> type="xs:float" />
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
> Here is the full client code :
> AskForPricingStub stub=new AskForPricingStub();
>
> InstrumentsDocument doc=InstrumentsDocument.Factory.newInstance();
>
> fr.acme.www.myapp_v1.InstrumentsDocument.Instruments
> instruments=InstrumentsDocument.Instruments.Factory.newInstance();
>
> InstrumentType instru1=InstrumentType.Factory.newInstance();
> instru1.setISIN("FR0123456789");
>
>
> instru1.setType(InstrumentTypeType.ABS);
>
> instruments.setInstrumentArray(new InstrumentType[] { instru1});
> doc.setInstruments(instruments);
>
> //HEADER
> HeaderNCBDocument header=HeaderNCBDocument.Factory.newInstance();
> HeaderNCBToFRType headerNCBToFRType=HeaderNCBToFRType.Factory.newInstance();
>
> Calendar submissionDate=Calendar.getInstance();
> headerNCBToFRType.setSubmissionDate(submissionDate);
>
>
> fr.acme.www.myapp_v1.NCBCountryCode.Enum sender=NCBCountryCode.AT;
> fr.acme.www.myapp_v1.NCBCountryCode.Enum receiver=NCBCountryCode.FR;
>
>
> headerNCBToFRType.setSenderNCB( sender);
> headerNCBToFRType.setReceiverNCB(receiver);
>
> header.setHeaderNCB(headerNCBToFRType );
> //here is fr.acme.www.myapp_v1.Client.go(Client.java:51)
> stub.AskForPricingOperation(doc,header );
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org