Ticket #128 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Open ListEOPanel on exiting throws ClassCastException

Reported by: ekmek Assigned to: eitan
Priority: major Component: metasystem
Version: Keywords: ListEOPanel ClassCastException exit
Cc:

Description

If you open a view with a ListEOPanel and then try to exit the application (which will lead to serialization of the list), a ClassCastException? will be thrown.

Steps to reproduce on a plain unmodified project:
- Start the application and log in
- Go to the admin folder
- Right click Types -> Browse
- Choose "Exit" from the "File"-Menu
- Exception is thrown in background, user cannot close the application until he first closes the types-view

See the attached stacktrace for detailed information:


[java] Exception in thread "AWT-EventQueue?-0" java.lang.ClassCastException?: com.u2d.list.PlainListEObject [java] at com.u2d.view.swing.list.ListEOPanel.serialize(ListEOPanel.java:105) [java] at com.u2d.view.swing.FlexiFrame?.serialize(FlexiFrame?.java:240) [java] at com.u2d.view.swing.AppFrame?.serialize(AppFrame?.java:396) [java] at com.u2d.view.swing.AppFrame?.saveUserDesktop(AppFrame?.java:362) [java] at com.u2d.view.swing.AppFrame?.access$500(AppFrame?.java:29) [java] at com.u2d.view.swing.AppFrame?$4.onEvent(AppFrame?.java:123) [java] at com.u2d.pubsub.AppEventSupport?.fireAppEventNotification(AppEventSupport?.java:55) [java] at com.u2d.pubsub.AppEventSupport?.fireAppEventNotification(AppEventSupport?.java:41) [java] at com.u2d.app.AppSession?.fireAppEventNotification(AppSession?.java:220) [java] at com.u2d.app.AppSession?.clearUser(AppSession?.java:125) [java] at com.u2d.app.AppSessionContext?$AuthMap?_Default$AuthMap?_LoggedInState.Exit(AppSessionContext?.java:153) [java] at com.u2d.app.AppSessionContext?$AuthMap?_Default$AuthMap?_LoggedInState.onLogout(AppSessionContext?.java:160) [java] at com.u2d.app.AppSessionContext?.onLogout(AppSessionContext?.java:36) [java] at com.u2d.app.AppSession?.onLogout(AppSession?.java:205) [java] at com.u2d.view.swing.AppFrame?.quit(AppFrame?.java:334) [java] at com.u2d.view.swing.AppFrame?.access$1300(AppFrame?.java:29) [java] at com.u2d.view.swing.AppFrame?$QuitAction?$1.run(AppFrame?.java:298) [java] at java.awt.event.InvocationEvent?.dispatch(InvocationEvent?.java:209) [java] at java.awt.EventQueue?.dispatchEvent(EventQueue?.java:461) [java] at java.awt.EventDispatchThread?.pumpOneEventForHierarchy(EventDispatchThread?.java:242) [java] at java.awt.EventDispatchThread?.pumpEventsForHierarchy(EventDispatchThread?.java:163) [java] at java.awt.EventDispatchThread?.pumpEvents(EventDispatchThread?.java:157) [java] at java.awt.EventDispatchThread?.pumpEvents(EventDispatchThread?.java:149) [java] at java.awt.EventDispatchThread?.run(EventDispatchThread?.java:110)

Change History

05/14/07 10:46:58 changed by eitan

  • status changed from new to closed.
  • resolution set to fixed.

reproduced error. application contains logic that attempts to implement a feature: desktop save/restore. that is, an attempt to remember and restore the layout of one's desktop. this feature is still a work in progress. anyhow, there was a bug in the implementation as it pertains to a view that shows the lists of types in the system. for now, i fixed this bug by not persisting window information for types listings, which is somewhat of a special case. thanks for catching this.

fix is revision 546 in subversion.