You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Sandro Martini (JIRA)" <ji...@apache.org> on 2009/06/25 15:13:09 UTC

[jira] Created: (PIVOT-157) Ensure that Users will be able to Close Application, also with some Startup errors

Ensure that Users will be able to Close Application, also with some Startup errors
----------------------------------------------------------------------------------

                 Key: PIVOT-157
                 URL: https://issues.apache.org/jira/browse/PIVOT-157
             Project: Pivot
          Issue Type: Bug
          Components: tools, wtk
    Affects Versions: 1.3
         Environment: Windows XP, but maybe also on others O.S. could happen
            Reporter: Sandro Martini
            Assignee: Greg Brown
            Priority: Minor
             Fix For: 1.3


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


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (PIVOT-157) Ensure that Users will be able to Close Application, also with some Startup errors

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Brown resolved PIVOT-157.
------------------------------

    Resolution: Cannot Reproduce

I cannot reproduce this issue on Windows or OS X. It is likely that a full sync from trunk will resolve it.


> Ensure that Users will be able to Close Application, also with some Startup errors
> ----------------------------------------------------------------------------------
>
>                 Key: PIVOT-157
>                 URL: https://issues.apache.org/jira/browse/PIVOT-157
>             Project: Pivot
>          Issue Type: Bug
>          Components: tools, wtk
>    Affects Versions: 1.3
>         Environment: Windows XP, but maybe also on others O.S. could happen
>            Reporter: Sandro Martini
>            Assignee: Greg Brown
>            Priority: Minor
>             Fix For: 1.3
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIVOT-157) Ensure that Users will be able to Close Application, also with some Startup errors

Posted by "Todd Volkert (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Todd Volkert updated PIVOT-157:
-------------------------------

    Fix Version/s:     (was: 1.3)

Removing fix version since it was closed as "cannot reproduce"

> Ensure that Users will be able to Close Application, also with some Startup errors
> ----------------------------------------------------------------------------------
>
>                 Key: PIVOT-157
>                 URL: https://issues.apache.org/jira/browse/PIVOT-157
>             Project: Pivot
>          Issue Type: Bug
>          Components: tools, wtk
>    Affects Versions: 1.3
>         Environment: Windows XP, but maybe also on others O.S. could happen
>            Reporter: Sandro Martini
>            Assignee: Greg Brown
>            Priority: Minor
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIVOT-157) Exceptions thrown during application launch can block application shutdown

Posted by "Todd Volkert (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Todd Volkert updated PIVOT-157:
-------------------------------

          Component/s:     (was: tools)
    Affects Version/s:     (was: 1.3)
                       1.2
              Summary: Exceptions thrown during application launch can block application shutdown  (was: Ensure that Users will be able to Close Application, also with some Startup errors)

Updating summary to be more descriptive for the 1.3 release notes.

> Exceptions thrown during application launch can block application shutdown
> --------------------------------------------------------------------------
>
>                 Key: PIVOT-157
>                 URL: https://issues.apache.org/jira/browse/PIVOT-157
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 1.2
>         Environment: Windows XP, but maybe also on others O.S. could happen
>            Reporter: Sandro Martini
>            Assignee: Greg Brown
>            Priority: Minor
>             Fix For: 1.3
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Reopened: (PIVOT-157)

Posted by Greg Brown <gk...@mac.com>.
Make sure you are returning the right value from shutdown().

On Jul 1, 2009, at 12:45 PM, Todd Volkert (JIRA) wrote:

>
>     [ https://issues.apache.org/jira/browse/PIVOT-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel 
>  ]
>
> Todd Volkert reopened PIVOT-157:
> --------------------------------
>
>
> Re-opening since I am prevented from closing the application if I  
> get any startup errors as well.
>
> java -cp lib/pivot-core-1.3-incubating.jar:lib/pivot-wtk-1.3- 
> incubating.jar:lib/pivot-wtk-1.3-incubating.terra.jar  
> org.apache.pivot.wtk.DesktopApplicationContext org.foo.Bar
>
> java.lang.ClassNotFoundException: org.foo.Bar
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:169)
> 	at org.apache.pivot.wtk.DesktopApplicationContext.main(Unknown  
> Source)
> java.lang.NullPointerException
> 	at org.apache.pivot.wtk.DesktopApplicationContext 
> $HostFrame.processWindowEvent(Unknown Source)
> 	at java.awt.Window.processEvent(Window.java:1820)
> 	at java.awt.Component.dispatchEventImpl(Component.java:4630)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2099)
> 	at java.awt.Window.dispatchEventImpl(Window.java:2475)
> 	at java.awt.Component.dispatchEvent(Component.java:4460)
> 	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)
>
>
> Nonexistent listener org.apache.pivot.wtk.DesktopApplicationContext 
> $3@128ae45a removed from org.apache.pivot.wtk.Window 
> $WindowListenerList@5c95da38
> java.lang.NullPointerException
> 	at org.apache.pivot.wtk.DesktopApplicationContext.exit(Unknown  
> Source)
> 	at org.apache.pivot.wtk.DesktopApplicationContext 
> $HostFrame.processWindowEvent(Unknown Source)
> 	at java.awt.Window.processEvent(Window.java:1820)
> 	at java.awt.Component.dispatchEventImpl(Component.java:4630)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2099)
> 	at java.awt.Window.dispatchEventImpl(Window.java:2475)
> 	at java.awt.Component.dispatchEvent(Component.java:4460)
> 	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)
>
>
>
>> Ensure that Users will be able to Close Application, also with some  
>> Startup errors
>> ----------------------------------------------------------------------------------
>>
>>                Key: PIVOT-157
>>                URL: https://issues.apache.org/jira/browse/PIVOT-157
>>            Project: Pivot
>>         Issue Type: Bug
>>         Components: tools, wtk
>>   Affects Versions: 1.3
>>        Environment: Windows XP, but maybe also on others O.S. could  
>> happen
>>           Reporter: Sandro Martini
>>           Assignee: Greg Brown
>>           Priority: Minor
>>
>> 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
>
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>


Re: [jira] Reopened: (PIVOT-157) Ensure that Users will be able to Close Application, also with some Startup errors

Posted by Greg Brown <gk...@mac.com>.
Never mind - I found the issue.

On Jul 1, 2009, at 12:45 PM, Todd Volkert (JIRA) wrote:

>
>     [ https://issues.apache.org/jira/browse/PIVOT-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel 
>  ]
>
> Todd Volkert reopened PIVOT-157:
> --------------------------------
>
>
> Re-opening since I am prevented from closing the application if I  
> get any startup errors as well.
>
> java -cp lib/pivot-core-1.3-incubating.jar:lib/pivot-wtk-1.3- 
> incubating.jar:lib/pivot-wtk-1.3-incubating.terra.jar  
> org.apache.pivot.wtk.DesktopApplicationContext org.foo.Bar
>
> java.lang.ClassNotFoundException: org.foo.Bar
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:169)
> 	at org.apache.pivot.wtk.DesktopApplicationContext.main(Unknown  
> Source)
> java.lang.NullPointerException
> 	at org.apache.pivot.wtk.DesktopApplicationContext 
> $HostFrame.processWindowEvent(Unknown Source)
> 	at java.awt.Window.processEvent(Window.java:1820)
> 	at java.awt.Component.dispatchEventImpl(Component.java:4630)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2099)
> 	at java.awt.Window.dispatchEventImpl(Window.java:2475)
> 	at java.awt.Component.dispatchEvent(Component.java:4460)
> 	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)
>
>
> Nonexistent listener org.apache.pivot.wtk.DesktopApplicationContext 
> $3@128ae45a removed from org.apache.pivot.wtk.Window 
> $WindowListenerList@5c95da38
> java.lang.NullPointerException
> 	at org.apache.pivot.wtk.DesktopApplicationContext.exit(Unknown  
> Source)
> 	at org.apache.pivot.wtk.DesktopApplicationContext 
> $HostFrame.processWindowEvent(Unknown Source)
> 	at java.awt.Window.processEvent(Window.java:1820)
> 	at java.awt.Component.dispatchEventImpl(Component.java:4630)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2099)
> 	at java.awt.Window.dispatchEventImpl(Window.java:2475)
> 	at java.awt.Component.dispatchEvent(Component.java:4460)
> 	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)
>
>
>
>> Ensure that Users will be able to Close Application, also with some  
>> Startup errors
>> ----------------------------------------------------------------------------------
>>
>>                Key: PIVOT-157
>>                URL: https://issues.apache.org/jira/browse/PIVOT-157
>>            Project: Pivot
>>         Issue Type: Bug
>>         Components: tools, wtk
>>   Affects Versions: 1.3
>>        Environment: Windows XP, but maybe also on others O.S. could  
>> happen
>>           Reporter: Sandro Martini
>>           Assignee: Greg Brown
>>           Priority: Minor
>>
>> 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
>
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>


[jira] Reopened: (PIVOT-157) Ensure that Users will be able to Close Application, also with some Startup errors

Posted by "Todd Volkert (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Todd Volkert reopened PIVOT-157:
--------------------------------


Re-opening since I am prevented from closing the application if I get any startup errors as well.

java -cp lib/pivot-core-1.3-incubating.jar:lib/pivot-wtk-1.3-incubating.jar:lib/pivot-wtk-1.3-incubating.terra.jar org.apache.pivot.wtk.DesktopApplicationContext org.foo.Bar

java.lang.ClassNotFoundException: org.foo.Bar
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:169)
	at org.apache.pivot.wtk.DesktopApplicationContext.main(Unknown Source)
java.lang.NullPointerException
	at org.apache.pivot.wtk.DesktopApplicationContext$HostFrame.processWindowEvent(Unknown Source)
	at java.awt.Window.processEvent(Window.java:1820)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Window.dispatchEventImpl(Window.java:2475)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	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)


Nonexistent listener org.apache.pivot.wtk.DesktopApplicationContext$3@128ae45a removed from org.apache.pivot.wtk.Window$WindowListenerList@5c95da38
java.lang.NullPointerException
	at org.apache.pivot.wtk.DesktopApplicationContext.exit(Unknown Source)
	at org.apache.pivot.wtk.DesktopApplicationContext$HostFrame.processWindowEvent(Unknown Source)
	at java.awt.Window.processEvent(Window.java:1820)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Window.dispatchEventImpl(Window.java:2475)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	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)



> Ensure that Users will be able to Close Application, also with some Startup errors
> ----------------------------------------------------------------------------------
>
>                 Key: PIVOT-157
>                 URL: https://issues.apache.org/jira/browse/PIVOT-157
>             Project: Pivot
>          Issue Type: Bug
>          Components: tools, wtk
>    Affects Versions: 1.3
>         Environment: Windows XP, but maybe also on others O.S. could happen
>            Reporter: Sandro Martini
>            Assignee: Greg Brown
>            Priority: Minor
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (PIVOT-157) Ensure that Users will be able to Close Application, also with some Startup errors

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Brown resolved PIVOT-157.
------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3

> Ensure that Users will be able to Close Application, also with some Startup errors
> ----------------------------------------------------------------------------------
>
>                 Key: PIVOT-157
>                 URL: https://issues.apache.org/jira/browse/PIVOT-157
>             Project: Pivot
>          Issue Type: Bug
>          Components: tools, wtk
>    Affects Versions: 1.3
>         Environment: Windows XP, but maybe also on others O.S. could happen
>            Reporter: Sandro Martini
>            Assignee: Greg Brown
>            Priority: Minor
>             Fix For: 1.3
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PIVOT-157) Ensure that Users will be able to Close Application, also with some Startup errors

Posted by "Todd Volkert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12726133#action_12726133 ] 

Todd Volkert commented on PIVOT-157:
------------------------------------

I passed org.foo.Bar as the application class -- there is no shutdown method :)

> Ensure that Users will be able to Close Application, also with some Startup errors
> ----------------------------------------------------------------------------------
>
>                 Key: PIVOT-157
>                 URL: https://issues.apache.org/jira/browse/PIVOT-157
>             Project: Pivot
>          Issue Type: Bug
>          Components: tools, wtk
>    Affects Versions: 1.3
>         Environment: Windows XP, but maybe also on others O.S. could happen
>            Reporter: Sandro Martini
>            Assignee: Greg Brown
>            Priority: Minor
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.