incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andor E <eymux2...@googlemail.com>
Subject Re: AO 3.4: Java Extension and HeadlessException
Date Wed, 16 May 2012 15:41:08 GMT
I'm not sure, how this can be a bug in my code. The very same code
runs fine with OOo 3.2.1 and OOo 3.3. What stymies me, is, why the JRE
seems to run headless.

The WollMux quickstarter is completely distinct from the AOO
quickstarter. It tries to keep the soffice process alive. I will make
another test with both quickstarters disabled.

On 5/16/12, Ariel Constenla-Haile <arielch@apache.org> wrote:
> Hi Andor,
>
> On Tue, May 15, 2012 at 09:54:47AM +0000, Andor E wrote:
>> Hi,
>> thanks for the responses.
>>
>> My tests have been done on Kubuntu 10.04, because it comes closest to
>> our production environment.
>>
>> And here is a stacktrace:
>>
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450): java.awt.HeadlessException
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> java.awt.Window.<init>(Window.java:437)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> java.awt.Frame.<init>(Frame.java:419)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> javax.swing.JFrame.<init>(JFrame.java:218)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> de.muenchen.allg.itd51.wollmux.dialog.WollMuxBar.createGUI(WollMuxBar.java:480)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> de.muenchen.allg.itd51.wollmux.dialog.WollMuxBar.access$500(WollMuxBar.java:156)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> de.muenchen.allg.itd51.wollmux.dialog.WollMuxBar$5.run(WollMuxBar.java:446)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:647)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> java.awt.EventQueue.access$000(EventQueue.java:96)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> java.awt.EventQueue$1.run(EventQueue.java:608)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> java.awt.EventQueue$1.run(EventQueue.java:606)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> java.security.AccessController.doPrivileged(Native Method)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> java.awt.EventQueue.dispatchEvent(EventQueue.java:617)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
>> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
>> java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
>>
>> Steps to reproduce:
>> * Install WollMux.oxt
>> * Install wollmux-config
>> * lauchch ./wollmuxbar
>> (Please refer to www.wollmux.org for installation instructions and
>> downloads.)
>>
>> I'm not using Tomcat or any API connected with Tomcat.
>>
>> I hope this answers all questions.
>> The bug is very reproducable and I'm pretty sure that I've installed
>> my extension correctly.
>
> I cannot reproduce it, and I'm also sure I installed the extension
> correctly, it is working.
>
> Your project is made up of two pieces:
>
> - an AOO extension, works inside AOO
> - a Java application, that bootstraps AOO, that is a client application
>
> Looking at the backtrace:
>
> 2012-05-14 14:08:25 ERROR(WollMuxBar:450): java.awt.HeadlessException
> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
> java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)
> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
> java.awt.Window.<init>(Window.java:437)
> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
> java.awt.Frame.<init>(Frame.java:419)
> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
> javax.swing.JFrame.<init>(JFrame.java:218)
> 2012-05-14 14:08:25 ERROR(WollMuxBar:450):
> de.muenchen.allg.itd51.wollmux.dialog.WollMuxBar.createGUI(WollMuxBar.java:480)
>
>
> - the bug is in the Java application, not in the extension
> - the bug seems unrelated to AOO: it looks like your application is able
>   to connect to AOO, reading the backtrace and looking at your sources
>   it seems the java.awt.HeadlessException is triggered by the following
>   code
>
>             eventHandler.connectWithWollMux();
>             createGUI(conf);
>
> Did you debug the code? Is the exception thrown after bootstrapping AOO?
> Can you bootstrap the office?
>
> IMO this is unrelated to AOO, and it looks more like a bug on your Java
> application. Did you try to reproduce this on other machine? Which
> JRE/jdk are you using? Did you test in the same machine, with other
> JRE/jdk (for example, if you're using the OpenJDK, then try with the
> one from Oracle)?
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>

Mime
View raw message