on my ubuntu 11.10 have a problem to display the trayicon but i want to work with jpatchaca anyway
the stacktrace is:
org.picocontainer.PicoLifecycleException: PicoLifecycleException: method 'public abstract void org.picocontainer.Startable.start()', instance 'ui.swing.tray.PatchacaTray@2bfa2, java.lang.RuntimeException: java.awt.AWTException: TrayIcon couldn't be displayed.
at org.picocontainer.monitors.NullComponentMonitor.lifecycleInvocationFailed(NullComponentMonitor.java:76)
at org.picocontainer.lifecycle.StartableLifecycleStrategy.start(StartableLifecycleStrategy.java:90)
at org.picocontainer.injectors.AbstractInjector.start(AbstractInjector.java:131)
at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:173)
at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:134)
at org.picocontainer.behaviors.Stored.start(Stored.java:111)
at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:882)
at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:630)
at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:635)
at main.DurableSWINGContainerBuilder.startDurableSWINGContainer(DurableSWINGContainerBuilder.java:11)
at main.Main.main(Main.java:12)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1809)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1750)
at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1512)
at com.sun.javaws.Launcher.run(Launcher.java:130)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.RuntimeException: java.awt.AWTException: TrayIcon couldn't be displayed.
at ui.swing.tray.PatchacaTray.addTrayIconOrCry(PatchacaTray.java:512)
at ui.swing.tray.PatchacaTray.createTrayIcon(PatchacaTray.java:372)
at ui.swing.tray.PatchacaTray.initialize(PatchacaTray.java:88)
at ui.swing.tray.PatchacaTray.start(PatchacaTray.java:421)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.picocontainer.lifecycle.StartableLifecycleStrategy.doLifecycleMethod(StartableLifecycleStrategy.java:101)
at org.picocontainer.lifecycle.StartableLifecycleStrategy.startComponent(StartableLifecycleStrategy.java:96)
at org.picocontainer.lifecycle.StartableLifecycleStrategy.start(StartableLifecycleStrategy.java:87)
... 18 more
Caused by: java.awt.AWTException: TrayIcon couldn't be displayed.
at sun.awt.X11.XTrayIconPeer.(XTrayIconPeer.java:254)
at sun.awt.X11.XToolkit.createTrayIcon(XToolkit.java:1144)
at java.awt.TrayIcon.addNotify(TrayIcon.java:689)
at java.awt.SystemTray.add(SystemTray.java:263)
at ui.swing.tray.PatchacaTray.addTrayIconOrCry(PatchacaTray.java:510)
... 27 more
i saw that SystemTray.isSupported() is true, but when try add in tray the exception occurs
on my ubuntu 11.10 have a problem to display the trayicon but i want to work with jpatchaca anyway
the stacktrace is:
org.picocontainer.PicoLifecycleException: PicoLifecycleException: method 'public abstract void org.picocontainer.Startable.start()', instance 'ui.swing.tray.PatchacaTray@2bfa2, java.lang.RuntimeException: java.awt.AWTException: TrayIcon couldn't be displayed. at org.picocontainer.monitors.NullComponentMonitor.lifecycleInvocationFailed(NullComponentMonitor.java:76) at org.picocontainer.lifecycle.StartableLifecycleStrategy.start(StartableLifecycleStrategy.java:90) at org.picocontainer.injectors.AbstractInjector.start(AbstractInjector.java:131) at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:173) at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:134) at org.picocontainer.behaviors.Stored.start(Stored.java:111) at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:882) at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:630) at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:635) at main.DurableSWINGContainerBuilder.startDurableSWINGContainer(DurableSWINGContainerBuilder.java:11) at main.Main.main(Main.java:12) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.sun.javaws.Launcher.executeApplication(Launcher.java:1809) at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1750) at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1512) at com.sun.javaws.Launcher.run(Launcher.java:130) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.RuntimeException: java.awt.AWTException: TrayIcon couldn't be displayed. at ui.swing.tray.PatchacaTray.addTrayIconOrCry(PatchacaTray.java:512) at ui.swing.tray.PatchacaTray.createTrayIcon(PatchacaTray.java:372) at ui.swing.tray.PatchacaTray.initialize(PatchacaTray.java:88) at ui.swing.tray.PatchacaTray.start(PatchacaTray.java:421) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.picocontainer.lifecycle.StartableLifecycleStrategy.doLifecycleMethod(StartableLifecycleStrategy.java:101) at org.picocontainer.lifecycle.StartableLifecycleStrategy.startComponent(StartableLifecycleStrategy.java:96) at org.picocontainer.lifecycle.StartableLifecycleStrategy.start(StartableLifecycleStrategy.java:87) ... 18 more Caused by: java.awt.AWTException: TrayIcon couldn't be displayed. at sun.awt.X11.XTrayIconPeer.(XTrayIconPeer.java:254)
at sun.awt.X11.XToolkit.createTrayIcon(XToolkit.java:1144)
at java.awt.TrayIcon.addNotify(TrayIcon.java:689)
at java.awt.SystemTray.add(SystemTray.java:263)
at ui.swing.tray.PatchacaTray.addTrayIconOrCry(PatchacaTray.java:510)
... 27 more
i saw that SystemTray.isSupported() is true, but when try add in tray the exception occurs