Hi to all,
during my tests on Pivot trunk (2.x), I've just seen that some of last
commits should have changed something in the way applications are
displayed, because trying to execute an application with a
not-existing colors file gives me an error (and this is ok), but now
the strange thing is that the application is still running but nothing
is displayed ... and this could give problems on end-users, before to
know that the process of the launched application has to be killed (in
eclipse it's easy, the run icon is still visible so I could make a
stop form there).
The old behavior was that the application was shown, and the best now
could be a similar behavior, but also with a modal dialog bod showing
the critical error and after pressing its Ok button, to exit.
In case would help, this is the log:
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.apache.pivot.wtk.Component.installThemeSkin(Component.java:775)
at org.apache.pivot.wtk.Window.<init>(Window.java:444)
at org.apache.pivot.wtk.Window.<init>(Window.java:439)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
org.apache.pivot.beans.BXMLSerializer.newTypedObject(BXMLSerializer.java:1471)
at
org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:698)
at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:394)
at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:559)
at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:513)
at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:479)
at org.apache.pivot.tutorials.KitchenSink.startup(KitchenSink.java:942)
at
org.apache.pivot.wtk.DesktopApplicationContext.main(DesktopApplicationContext.java:611)
Caused by: java.lang.RuntimeException: Unable to locate color scheme
resource TerraTheme_windowsXP.json.
at
org.apache.pivot.wtk.skin.terra.TerraTheme.<init>(TerraTheme.java:192)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.pivot.util.Service.getProvider(Service.java:96)
at org.apache.pivot.wtk.Theme.<clinit>(Theme.java:72)
... 17 more
Tell me if you need more info.
What do you think ?
Bye,
Sandro