I know I know it's crazy! But I still receive the error even after trying what you said!:
 
java.lang.ClassCastException
java.lang.ClassCastException
        at $Proxy0.query(Unknown Source)
 
Any ideas!?  I have commented out other lines to make sure and isolate the line we are dealing with AS the line causing problems. The Implementation file works perfectly it is not caused there, otherise the error would go out ot the log file rather than the screen.
 
James
 
In a message dated 7/15/2004 5:28:10 PM Eastern Standard Time, [EMAIL PROTECTED] writes:
You should be able to assign anything to an Object.

You could always try this:

System.out.println(handler.query(...).getClass());

And if you still get a class cast, it sounds like its
happening somewhere in your handler.


--- [EMAIL PROTECTED] wrote:

> Thanks for your help

> The class exceptionhappens immediately when the
> function returns. It never 
> gets to the next line to tell me what the object
> type is.

> Any other suggestions?

> In a message dated 7/15/2004 4:42:03 PM Eastern
> Standard Time, 
> [EMAIL PROTECTED] writes:
>
> Why  don't you just do this:
>
> Object obj =  handler.query(...);
> System.out.println(obj.getClass());
>
> and then you  can actually see what class the object
> is
> an instance of.  If you're  using wrapped (or
> something
> other than RPC) its probably not a String[]  array
> instance its probably something like ArrayOfstring
> which holds the  String array inside it (therefore
> you'll get the class cast exception if  you're
> trying
> to cast it to an array).
>
> --- Vy Ho  <[EMAIL PROTECTED]> wrote:
> > So did you try with:
> > 
> > Object obj = handler.query(...);
> >
> > If no exception,  can you do some investigation on
> > this obj.  Such as
> >  doing some reflection on it?
> >
> >
>
>
>
>
>
>

 

Reply via email to