OO plugin problem, likely Java related. Fedora linux.

Report ID: 977236363

When trying to insert a citation in OpenOffice, Zotero fails with the following message:

”Firefox could not load the component required to communicate with your word processor. Please ensure that the appropriate Firefox extension is installed and try again.”

It looks like a Java problem, here is the terminal output when the Zotero OpenOffice plugin tries to communicate with Firefox:

java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8) (fedora-38.b18.fc12-i386)
OpenJDK Server VM (build 14.0-b16, mixed mode)
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at sun.applet.PluginAppletSecurityContext$6.run(PluginAppletSecurityContext.java:1050)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.PluginAppletSecurityContext.handleMessage(PluginAppletSecurityContext.java:1047)
at sun.applet.AppletSecurityContextManager.handleMessage(AppletSecurityContextManager.java:69)
at sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:273)
at sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.java:82)
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:342)
at java.security.AccessController.checkPermission(AccessController.java:553)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at net.sourceforge.jnlp.runtime.JNLPSecurityManager.checkPermission(JNLPSecurityManager.java:282)
at java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:611)
at java.lang.ClassLoader.checkCreateClassLoader(ClassLoader.java:194)
at java.lang.ClassLoader.<init>(ClassLoader.java:243)
at java.security.SecureClassLoader.<init>(SecureClassLoader.java:94)
at java.net.URLClassLoader.<init>(URLClassLoader.java:130)
... 10 more
Error on Java side: LiveConnectPermissionNeeded access denied (java.lang.RuntimePermission createClassLoader)


Tried everything in the troubleshooting document: Java-plugin have been both reinstalled and tested. Firefox and Zotero have been installed from scratch (also deleted the ”.mozilla” dir before reinstalling). Tried reinstalling the wordprocessor plugin several times. Tried manually giving the paths to the installed Java *.jars and the soffice executable file


Software installed.
Linux distro:
Fedora 12

Firefox version:
firefox-3.5.9-2.fc12.i686

Java versions installed:
rpm -qa | grep java
java-1.5.0-gcj-1.5.0.0-29.fc12.i686
db4-java-4.7.25-13.fc12.i686
java-1.6.0-openjdk-1.6.0.0-38.b18.fc12.i686
tzdata-java-2010i-1.fc12.noarch
gcc-java-4.4.3-4.fc12.i686
java_cup-0.11a-1.fc12.noarch
openoffice.org-javafilter-3.1.1-19.28.fc12.i686
java-1.6.0-openjdk-plugin-1.6.0.0-38.b18.fc12.i686
ice-java-3.3.1-7.fc12.i686

The firefox logfile associated with this report ID contains some error that seems unrelated to the problem.

--
Regards
  • I seem to have solved the problem.
    The solution was to use Suns Java instead of the open source version of Java that came with Fedora 12.

    Looking at this forum I see several other posts with similar problems as mine and some suggestion that Sun's Java is the only supported Java. If this is the case, then I suggest that this should go into the troubleshooting guide. Even better; the OO plugin should warn against unsupported Java versions.
  • agreed - the troubleshooting should be updated - I'm busy but unless someone else takes this up I'll do it some time that week.
    I don't know if there is a good place in the installation of the plugin to warn against non-sun javas.
  • I am getting the error mentioned above with Sun Java on a 64-bit Fedora 11.

    When trying to insert a citation in OpenOffice, Zotero fails with the following message:

    ”Firefox could not load the component required to communicate with your word processor. Please ensure that the appropriate Firefox extension is installed and try again.”

    >> java -version
    java version "1.6.0_21"
    Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
    Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)

    >> alternatives --config java

    There are 3 programs which provide 'java'.
    Selection Command
    -----------------------------------------------
    1 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
    2 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
    *+ 3 /usr/java/jre1.6.0_21/bin/java

    -------------------

    Javatester.org detects that my broser runs:
    Java Version 1.6.0_18 from Sun Microsystems Inc.

    and my browser does display the test applet in the "Java enabled?" test.

    I wonder if I am missing some setting or if there are issues with the 64-bit version.
  • edited September 7, 2010
    I think your problem may be that the above discussion needs some comment as the instructions for getting Zotero to integrate under Fedora are not very explicit.

    I recommend doing as I did and following the instructions to change the open source OpenJDK Java plugin that ships with Fedora to Sun Java on this page:

    http://www.mjmwired.net/resources/mjm-fedora-f12.html#java

    I'm running Fedora 13, but this worked fine for me. I did initially install and reinstall the firefox plugin, and disable my icetea java plugin in firefox, but my understanding is that this is a OpenJDK Java problem and these two steps may not have been necessary. At some stage I'll have to go through them again to get my laptop working so I'll try to repost with a definitive answer later - but I've lost too much working time today to do this at the moment.
  • Okay I can confirm you don't need to reinstall the Firefox plugin: ALL you need to do is follow the instructions on the link above - although obviously the Sun Java plugin filename - currently jre-6u21-linux-i586-rpm.bin (for 32-bit users) rather than jre-6u18-linux-i586-rpm.bin - will change version number.

    Hope this helps someone - the link may be worth a mention from the Zotero linux wordprocessing plugin troubleshooting page!
  • Hi gbirchley - thanks for the link (http://www.mjmwired.net/resources/mjm-fedora-f12.html#java) - worked well with Fedora 13 as well. The note to Linux users on the openoffice plugin download page sounds as if there is no work around - this solution definitely worth mentioning there!
  • Igor - the documentation is a wiki and community generated. Feel free to add to it. I don't like writing documentation for a set-up where I can't test it.
Sign In or Register to comment.