No error, just the class cast. 

I now realized however what the problem was. I can cast the return type fine
to an Element I can not cast it to an array of elements. And that brought me
to the actual error which was that my proxy was defining incorrectly the
return type to Element.class and not Element[].class. So just user error on
my part.



Daniel Jemiolo wrote:
> 
> 
> Is there a stack trace in the log file? Muse source doesn't have any
> references to DOM impl classes, so I'd be looking for an exception
> generated by Axiom, somewhere in the AxisEnvironment class...
> 
> Dan
> 
> 
> Bogdan Solomon <[EMAIL PROTECTED]> wrote on 08/21/2007 03:54:25 PM:
> 
>>
>> I was wondering if anyone ever had this issue as it has me blocked. I
> have a
>> method that returns an array. The message comes back fine to my class and
> it
>> looks like this (edited parts as it is longish)
>>
>> <soapenv:Body>
>>         <muse-op:estimateResponse
>>
>> xmlns:muse-op="http://autonomic.ibm.com/muse/estimator/execution";
>> xmlns:tns="http://axis2.platform.core.muse.apache.org";>
>>             <muse-op:estimateResponse>
>>                 <estim:name
>> xmlns:estim="http://autonomic.ibm.com/muse/filter/execution
>> ">CPUDemand</estim:name>
>>                 <estim:variable
>> xmlns:estim="http://autonomic.ibm.com/muse/filter/execution";>
>>                     <estim:variableName>parameter
> value</estim:variableName>
>>                     <estim:variableValue>5.0</estim:variableValue>
>>                     <estim:variableType>Undefined</estim:variableType>
>>                 </estim:variable>
>>             </muse-op:estimateResponse>
>>             <muse-op:estimateResponse>
>>                 <estim:name
>> xmlns:estim="http://autonomic.ibm.com/muse/filter/execution
>> ">ThinkTime</estim:name>
>>                 <estim:variable
>> xmlns:estim="http://autonomic.ibm.com/muse/filter/execution";>
>>                     <estim:variableName>parameter
> value</estim:variableName>
>>                     <estim:variableValue>5000.0</estim:variableValue>
>>                     <estim:variableType>Undefined</estim:variableType>
>>                 </estim:variable>
>>             </muse-op:estimateResponse>
>>         </muse-op:estimateResponse>
>>     </soapenv:Body>
>>
>> In my code I then try to cast this to an Element array, but I get a class
>> cast exception
>>
>> java.lang.ClassCastException: org.apache.xerces.dom.DeferredElementNSImpl
>> incompatible with [Lorg.w3c.dom.Element;
>> --
>> View this message in context: http://www.nabble.
>> com/DeferredElementNSImpl-class-cast-exception-tf4307435.html#a12262022
>> Sent from the Muse User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> 

-- 
View this message in context: 
http://www.nabble.com/DeferredElementNSImpl-class-cast-exception-tf4307435.html#a12262301
Sent from the Muse User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to