[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ClassCastException in Proxy-Class



Hi,
I've got a ClassCastException in following code of Proxy-Class generated
by opp:

	...

   public java.lang.String getPassword () {
      try {
         Object target = link.fetch (this, Lock.LEVEL_READ);
         if (target != null) {
            return
(java.lang.String)ResultConverter.substituteOzoneCompatibles
(((data.UserImpl)target).getPassword());
            }
         else {
            Object[] args = {};
            Object result = link.invoke (this, 12, args,
Lock.LEVEL_READ);
>>>>>       return (java.lang.String)result;   <<<<<<<<<<<<<<<<<<<<<<<<<<<<< Here's the exception thrown
            }
         }
      catch (RuntimeException e) {
         e.printStackTrace (System.out);
         e.fillInStackTrace();
         throw e;
         }
      catch (Exception e) {
         e.printStackTrace (System.out);
         e.fillInStackTrace();
         throw new UnexpectedException (e.toString());
         }
      }

At the marked line above a "java.lang.ClassCastException:
java.lang.Integer" is thrown. I don't understand this, because I worked
fine with that object and with other objects of that type it still
works...

Any ideas?

BTW: I'm using ozone 0.5.5 with jdk1.3 (sun)  on Linux.

Regards,
nils