[libreoffice-users] Re: ThreadDeath using BasicOfficeBean.java in LibreOffice

2012-05-19 Thread barrybevel
Firstly thanks very much for responding.

Sorry I should have said OpenOffice in my initial mail not StarOffice.

Not sure about BeanShell... I'm talking about using BasicOfficeBean.java
which is related to OfficeBean:

From BasicOfficeBean.java:
/* 
 * This class provides a basic functionality of the office bean. 
 * The application developer can subclass from this class in order 
 * to provide application specific methods.
 * This class was provided by OpenOffice.org
 */

I was wondering if it's ok to use this code for both OpenOffice and
LibraOffice - from your response I'm assuming it's ok since the code hasn't
changed...

The reason I was wondering is because BasicOfficeBean.java is giving
ThreadDeaths.

Maybe it's the way that the Next Generation Java Plugin terminates it.
BasicOfficeBean creates a thread (CommandConveyor) which I'm guessing is
terminated by the NG Plugin when the page changes. I'm looking at using
Applet param legacy_lifecycle which might avoid the ThreadDeaths - but I'm
not sure. 
I'm just wondering if anyone else has ThreadDeaths with the NG Java Plugin
with BasicOfficeBean...

Thanks.

--
View this message in context: 
http://nabble.documentfoundation.org/ThreadDeath-using-BasicOfficeBean-java-in-LibreOffice-tp3984632p3984724.html
Sent from the Users mailing list archive at Nabble.com.

-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



[libreoffice-users] ThreadDeath using BasicOfficeBean.java in LibreOffice

2012-05-18 Thread barrybevel
Hi,
  Apologies in advance for the vague nature of this question... here goes...

I have inherited an Applet which uses BasicOfficeBean.java to create Writer
Documents in the browser.
(Next Generation Java Plugin from JDK 1.6.0.26 in Firefox 4.0)

This same code is used for both StarOffice in Windows XP SP3 and LibreOffice
in Ubuntu 10.4  
(Sorry I don't have the versions to hand)

* Q1) Is it a good idea to use BasicOfficeBean.java for both StarOffice and
LibreOffice or does LibreOffice have an alternative?

After a while we get a ThreadDeath exception!

The code where the Debugger(Eclipse) shows the ThreadDeath in
BasicOfficeBean.java is below:

   synchronized (mQueue) {
if (mQueue.isEmpty() == true) {
mQueue.wait();
}
command = 
(OfficeCommand)mQueue.remove(0);
}

It's BasicOfficeBean.java 1.4 seen here: (search for 00465)
http://openoffice.org-sdk.sourcearchive.com/documentation/1.1.0-2/BasicOfficeBean_8java-source.html

When I press l in the Java Console I have a Zombie thread and another Java
Console is created with another separate JVM.

* Q2) Should I ever get a ThreadDeath or Zombie thread or is it a normal
occurrence?


I would love any feedback from experienced users if they ever get a
ThreadDeath and if they use BasicOfficeBean.java with LibreOffice?

Thanks in advance for any replies...

--
View this message in context: 
http://nabble.documentfoundation.org/ThreadDeath-using-BasicOfficeBean-java-in-LibreOffice-tp3984632.html
Sent from the Users mailing list archive at Nabble.com.

-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted