Details
Description
I've just tried to run the new JSONViever, but only downloading the 2
files (.java commented some Override statements and .wtkx).
When run from Eclipse i got the following exception:
(Ok, i know this is not a right environment for tests, I'm sure that
after synchronizing all, works)
org.apache.pivot.serialization.SerializationException: Either src or
language is required for the wtkx:script tag.
at org.apache.pivot.wtkx.WTKXSerializer.readObject(WTKXSerializer.java:750)
at org.apache.pivot.wtkx.WTKXSerializer.readObject(WTKXSerializer.java:299)
at org.apache.pivot.wtkx.WTKXSerializer.readObject(WTKXSerializer.java:287)
at org.apache.pivot.wtkx.WTKXSerializer.readObject(WTKXSerializer.java:274)
at org.apache.pivot.tools.json.JSONViewer.startup(JSONViewer.java:52)
at org.apache.pivot.wtk.DesktopApplicationContext$HostFrame.processWindowEvent(DesktopApplicationContext.java:76)
at java.awt.Window.processEvent(Window.java:1820)
at java.awt.Component.dispatchEventImpl(Component.java:4583)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
But the real problem is that after this i can't close the application clicking the close icon (i have to kill the process from Eclipse).
So my real question is:
is it possible to change the closing of Desktop Applications (maybe inside DesktopApplicationContext), to ensure that our applications could be closed, also in case of strange errors (without having to kill process manually) ?
I'm available to do other tests for this strange case.
Thanks,
Sandro