cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

can't understand the following error : ClassInfo that cannot be casted to LinkInfo

cfranck-2
1-Visitor

can't understand the following error : ClassInfo that cannot be casted to LinkInfo

Hi there !

I have a problem that is very hard for me to understand.

I meet the following error :

wt.introspection.ClassInfo cannot be cast to wt.introspection.LinkInfo

How can this kind of error can comes from ?

Do it comes from links between java class or another cause ?

In my code, the problem is caused by the saving of an instance :


PersistenceHelper.manager.delete(instance);


but I delete it after saving it, It tell it in case this is a problem. I save the instance with that code :


PersistenceHelper.manager.save(instance);


here is the delete method :

public Persistable delete(Persistable paramPersistable)

  throws WTException

{

  WTHashSet localWTHashSet = new WTHashSet();

  localWTHashSet.add(paramPersistable);

  delete(localWTHashSet);

  return paramPersistable;

}

thank you !

0 REPLIES 0
Announcements


Top Tags