axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghu Upadhyayula" <>
Subject [Axis2] Getting an exception when returning OMElement
Date Mon, 04 Feb 2008 23:41:36 GMT


I have a webservice which returns a complexType (ObjectResult).


Here is the definition of the complexType (ObjectResult).


<complexType name="ObjectResult">


        <element name="createdBy" nillable="true" type="xsd:string" /> 

        <element name="createdDate" nillable="true" type="xsd:dateTime"

        <element name="lastModifiedBy" nillable="true" type="xsd:string"

        <element name="lastModifiedDate" nillable="true"
type="xsd:dateTime" /> 

        <element name="exceptionCode" nillable="true"
type="fns:ExceptionCode" /> 

        <element name="errorMessage" nillable="true" type="xsd:string"

        <element maxOccurs="unbounded" name="fields" nillable="true"
type="tns:Field" /> 

        <element name="objectType" nillable="true" type="tns:ObjectType"

        <any minOccurs="0" namespace="##targetNamespace"
processContents="lax" /> 




The any element in the WSDL is converted to OMElement when we run


Now, in the code when I create an OMElement object and set it to the
ObjectResult and return in the response, I'm getting the below exception


"java.lang.RuntimeException: Error obtaining parser from data source:the
prefix ==>  Already exists for namespace ==>"


It used to work before, but suddenly started getting this exception,
nothing has changed regarding the Axis2 libraries in my repository.


Please help me regarding this issue.




View raw message