You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Arnaud MERGEY <am...@sunopsis.com> on 2006/04/28 11:00:55 UTC
AXIS2 1.0 RC3
Hi,
I'have upgraded Axis2 libs in order to testing my dynamic Axis2 based
client.
With 0.95 my code works fine, with 1.0 RC3 invoking the service I'have :
java.lang.NullPointerException
at
org.apache.axis2.description.AxisService.getOperation(AxisService.java:642)
at
org.apache.axis2.client.ServiceClient.createClient(ServiceClient.java:500)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:453)
Another error
getSchemaElement() on AxisMessage class throw ClassCastException
In this method code I think you should replace:
/Iterator scheamItms = schema.getItems().getIterator();
while (scheamItms.hasNext()) {
XmlSchemaElement xmlSchemaElement = (XmlSchemaElement)
scheamItms.next();
if
(xmlSchemaElement.getName().equals(getElementQName().getLocalPart())) {
return xmlSchemaElement;
}
}
/by
/Iterator scheamItms = schema.getItems().getIterator();
while (scheamItms.hasNext()) {
Object schemaItem = //scheamItms.next();
if(schemaItem instanceOf XmlSchemaElement) {
// XmlSchemaElement xmlSchemaElement =
(XmlSchemaElement) schemaItem;
if
(xmlSchemaElement.getName().equals(getElementQName().getLocalPart())) {
return xmlSchemaElement;
}
}
}
/or you can do this in the method
/ ArrayList schemas = service.getSchema();
for (int i = 0; i < schemas.size(); i++) {
XmlSchema schema = (XmlSchema) schemas.get(i);
//XmlSchemaElement xmlSchemaElement =
schema.getElementByName(//getElementQName()//);
if (xmlSchemaElement !=null)
return xmlSchemaElement
/
Re: AXIS2 1.0 RC3
Posted by Davanum Srinivas <da...@gmail.com>.
Can u please open a JIRA bug report?
thanks,
dims
On 4/28/06, Arnaud MERGEY <am...@sunopsis.com> wrote:
> Hi,
> I'have upgraded Axis2 libs in order to testing my dynamic Axis2 based
> client.
> With 0.95 my code works fine, with 1.0 RC3 invoking the service I'have :
> java.lang.NullPointerException
> at
> org.apache.axis2.description.AxisService.getOperation(AxisService.java:642)
> at
> org.apache.axis2.client.ServiceClient.createClient(ServiceClient.java:500)
> at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:453)
>
> Another error
> getSchemaElement() on AxisMessage class throw ClassCastException
> In this method code I think you should replace:
>
> Iterator scheamItms = schema.getItems().getIterator();
> while (scheamItms.hasNext()) {
> XmlSchemaElement xmlSchemaElement = (XmlSchemaElement)
> scheamItms.next();
> if
> (xmlSchemaElement.getName().equals(getElementQName().getLocalPart()))
> {
> return xmlSchemaElement;
> }
> }
>
> by
>
> Iterator scheamItms = schema.getItems().getIterator();
> while (scheamItms.hasNext()) {
> Object schemaItem = scheamItms.next();
> if(schemaItem instanceOf XmlSchemaElement) {
> XmlSchemaElement xmlSchemaElement = (XmlSchemaElement)
> schemaItem;
> if
> (xmlSchemaElement.getName().equals(getElementQName().getLocalPart()))
> {
> return xmlSchemaElement;
> }
> }
> }
>
>
> or you can do this in the method
>
> ArrayList schemas = service.getSchema();
> for (int i = 0; i < schemas.size(); i++) {
> XmlSchema schema = (XmlSchema) schemas.get(i);
> XmlSchemaElement xmlSchemaElement =
> schema.getElementByName(getElementQName());
> if (xmlSchemaElement !=null)
> return xmlSchemaElement
>
>
>
--
Davanum Srinivas : http://wso2.com/blogs/
Re: AXIS2 1.0 RC3
Posted by Arnaud MERGEY <am...@sunopsis.com>.
Ali Sadik Kumlali a écrit :
Great, I haven't any more NullPointerException in Axis2 1.0RC4
for second problem (classcastException)
Issue in Jira *AXIS2-629 <http://issues.apache.org/jira/browse/AXIS2-629>
thanks,
Arnaud
*
> Hi Arnaud,
>
> I had similar problems with RC3 and they are fixed with RC4.
>
> Regards,
>
> Ali Sadik Kumlali
>
> --- Arnaud MERGEY <am...@sunopsis.com> wrote:
>
>
>> Hi,
>> I'have upgraded Axis2 libs in order to testing my dynamic Axis2 based
>>
>> client.
>> With 0.95 my code works fine, with 1.0 RC3 invoking the service
>> I'have :
>> java.lang.NullPointerException
>> at
>>
>>
> org.apache.axis2.description.AxisService.getOperation(AxisService.java:642)
>
>> at
>>
>>
> org.apache.axis2.client.ServiceClient.createClient(ServiceClient.java:500)
>
>> at
>>
>>
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:453)
>
>> Another error
>> getSchemaElement() on AxisMessage class throw ClassCastException
>> In this method code I think you should replace:
>>
>> /Iterator scheamItms = schema.getItems().getIterator();
>> while (scheamItms.hasNext()) {
>> XmlSchemaElement xmlSchemaElement =
>> (XmlSchemaElement)
>> scheamItms.next();
>> if
>> (xmlSchemaElement.getName().equals(getElementQName().getLocalPart()))
>> {
>> return xmlSchemaElement;
>> }
>> }
>>
>> /by
>>
>> /Iterator scheamItms = schema.getItems().getIterator();
>> while (scheamItms.hasNext()) {
>> Object schemaItem = //scheamItms.next();
>> if(schemaItem instanceOf XmlSchemaElement) {
>> // XmlSchemaElement xmlSchemaElement =
>> (XmlSchemaElement) schemaItem;
>> if
>> (xmlSchemaElement.getName().equals(getElementQName().getLocalPart()))
>> {
>> return xmlSchemaElement;
>> }
>> }
>> }
>>
>>
>> /or you can do this in the method
>>
>> / ArrayList schemas = service.getSchema();
>> for (int i = 0; i < schemas.size(); i++) {
>> XmlSchema schema = (XmlSchema) schemas.get(i);
>> //XmlSchemaElement xmlSchemaElement =
>> schema.getElementByName(//getElementQName()//);
>> if (xmlSchemaElement !=null)
>> return xmlSchemaElement
>> /
>>
>>
>>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
Re: AXIS2 1.0 RC3
Posted by Ali Sadik Kumlali <as...@yahoo.com>.
Hi Arnaud,
I had similar problems with RC3 and they are fixed with RC4.
Regards,
Ali Sadik Kumlali
--- Arnaud MERGEY <am...@sunopsis.com> wrote:
> Hi,
> I'have upgraded Axis2 libs in order to testing my dynamic Axis2 based
>
> client.
> With 0.95 my code works fine, with 1.0 RC3 invoking the service
> I'have :
> java.lang.NullPointerException
> at
>
org.apache.axis2.description.AxisService.getOperation(AxisService.java:642)
> at
>
org.apache.axis2.client.ServiceClient.createClient(ServiceClient.java:500)
> at
>
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:453)
>
> Another error
> getSchemaElement() on AxisMessage class throw ClassCastException
> In this method code I think you should replace:
>
> /Iterator scheamItms = schema.getItems().getIterator();
> while (scheamItms.hasNext()) {
> XmlSchemaElement xmlSchemaElement =
> (XmlSchemaElement)
> scheamItms.next();
> if
> (xmlSchemaElement.getName().equals(getElementQName().getLocalPart()))
> {
> return xmlSchemaElement;
> }
> }
>
> /by
>
> /Iterator scheamItms = schema.getItems().getIterator();
> while (scheamItms.hasNext()) {
> Object schemaItem = //scheamItms.next();
> if(schemaItem instanceOf XmlSchemaElement) {
> // XmlSchemaElement xmlSchemaElement =
> (XmlSchemaElement) schemaItem;
> if
> (xmlSchemaElement.getName().equals(getElementQName().getLocalPart()))
> {
> return xmlSchemaElement;
> }
> }
> }
>
>
> /or you can do this in the method
>
> / ArrayList schemas = service.getSchema();
> for (int i = 0; i < schemas.size(); i++) {
> XmlSchema schema = (XmlSchema) schemas.get(i);
> //XmlSchemaElement xmlSchemaElement =
> schema.getElementByName(//getElementQName()//);
> if (xmlSchemaElement !=null)
> return xmlSchemaElement
> /
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com