Can u please open a JIRA bug report?

thanks,
dims

On 4/28/06, Arnaud MERGEY <[EMAIL PROTECTED]> 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/

Reply via email to