#1133 OpenOffice plugin - cannot select style file or adapt path to open/libre office:

next release
open
nobody
5
2013-05-02
2013-02-01
zarquon
No
OpenOffice plugin - cannot select style file or adapt path to open/libre office:
  • affects: JabRef version > 2.9
  • Ubuntu version > 12.04
  • tested with openjdk-6, openjdk-7 and oracle java (latest)
Bug description:

When clicking "Select style file" or the second "plug" button (to edit libreoffice path), no option windows appears.
Inserting citations works, however, when style file and path is set in Jabref 2.8.
I attached the error log when clicking "select style file" button.

Best regards
Stefan

Related

Bugs: #1133

Discussion

  • Sophie Gerber

    Sophie Gerber - 2013-02-14

    I have the same experience!
    The option works in JabRef version 2.7b, not in 2.9.2

    Ubuntu 12.04.2 LTS

     
    Last edit: Sophie Gerber 2013-02-15
  • Sophie Gerber

    Sophie Gerber - 2013-02-14

    output
    Found 3 plugin(s):
    - net.sf.jabref.core (jar:file:/opt/JabRef-2.9.2.jar!/plugins/net.sf.jabref.core/plugin.xml)
    - net.sf.jabref.oo.ooplugin (jar:file:/home/sophie/.jabref/plugins/net.sf.jabref.oo.ooplugin-0.9.jar!/plugin.xml)
    - net.sf.jabref.export.misq (jar:file:/opt/JabRef-2.9.2.jar!/plugins/net.sf.jabref.export.misq/plugin.xml)

    Opening: /home/sophie/ASophie/Biblio/sophie_jabref.bib
    Adding shortcuts

    Exception
    Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: com.jgoodies.forms.builder.ButtonStackBuilder.addGridded(Ljavax/swing/JComponent;)V
    at net.sf.jabref.oo.StyleDirectoriesPanel.<init>(StyleDirectoriesPanel.java:72)
    at net.sf.jabref.oo.StyleSelectDialog.init(StyleSelectDialog.java:91)
    at net.sf.jabref.oo.StyleSelectDialog.<init>(StyleSelectDialog.java:62)
    at net.sf.jabref.oo.OOTestPanel$5.actionPerformed(OOTestPanel.java:185)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
    at java.awt.Component.processMouseEvent(Component.java:6389)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3268)
    at java.awt.Component.processEvent(Component.java:6154)
    at java.awt.Container.processEvent(Container.java:2045)
    at java.awt.Component.dispatchEventImpl(Component.java:4750)
    at java.awt.Container.dispatchEventImpl(Container.java:2103)
    at java.awt.Component.dispatchEvent(Component.java:4576)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
    at java.awt.Container.dispatchEventImpl(Container.java:2089)
    at java.awt.Window.dispatchEventImpl(Window.java:2518)
    at java.awt.Component.dispatchEvent(Component.java:4576)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)
    at java.awt.EventQueue.access$400(EventQueue.java:96)
    at java.awt.EventQueue$2.run(EventQueue.java:631)
    at java.awt.EventQueue$2.run(EventQueue.java:629)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
    at java.awt.EventQueue$3.run(EventQueue.java:645)
    at java.awt.EventQueue$3.run(EventQueue.java:643)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
    Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: com.jgoodies.forms.builder.ButtonStackBuilder.addGridded(Ljavax/swing/JComponent;)V
    at net.sf.jabref.oo.StyleDirectoriesPanel.<init>(StyleDirectoriesPanel.java:72)
    at net.sf.jabref.oo.StyleSelectDialog.init(StyleSelectDialog.java:91)
    at net.sf.jabref.oo.StyleSelectDialog.<init>(StyleSelectDialog.java:62)
    at net.sf.jabref.oo.OOTestPanel$5.actionPerformed(OOTestPanel.java:185)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
    at java.awt.Component.processMouseEvent(Component.java:6389)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3268)
    at java.awt.Component.processEvent(Component.java:6154)
    at java.awt.Container.processEvent(Container.java:2045)
    at java.awt.Component.dispatchEventImpl(Component.java:4750)
    at java.awt.Container.dispatchEventImpl(Container.java:2103)
    at java.awt.Component.dispatchEvent(Component.java:4576)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
    at java.awt.Container.dispatchEventImpl(Container.java:2089)
    at java.awt.Window.dispatchEventImpl(Window.java:2518)
    at java.awt.Component.dispatchEvent(Component.java:4576)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)
    at java.awt.EventQueue.access$400(EventQueue.java:96)
    at java.awt.EventQueue$2.run(EventQueue.java:631)
    at java.awt.EventQueue$2.run(EventQueue.java:629)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
    at java.awt.EventQueue$3.run(EventQueue.java:645)
    at java.awt.EventQueue$3.run(EventQueue.java:643)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

     
    Last edit: Sophie Gerber 2013-02-15
  • zarquon

    zarquon - 2013-02-14

    yes, all versions previous to 2.9 seem to work fine. As a workaround, you can configure the plugin with an older version and then use 2.9.2 (it is not very comfortable, if you switch styles often)

     
  • Morten Omholt Alver

    Maybe I'm not looking in the right place, but I can't find the attached error log. I can say that the option windows work fine with JabRef 2.9.2 on my computer, so I'll have to see the error information in order to figure out why it doesn't work for you.

     
  • zarquon

    zarquon - 2013-02-14

    Strange, in Ubuntu raring it is now working. I will test it on 12.04 tomorrow at work and post the log - I thought I had uploaded it, but maybe it got lost ...

     
  • zarquon

    zarquon - 2013-02-15

    In Ubuntu 12.04 the problem persists, I attached the log.
    Best regards
    Stefan

     
  • Morten Omholt Alver

    Both error information sets show that there are missing methods in the JGoodies Forms library. JabRef is apparently running against a too-old version of Forms. If this is in Ubuntu, such dependencies should be handled by the package manager, so the package maintainer must have set a wrong version dependency.

    I would advise you to download the JabRef jar from our download page, run that with "java -jar JabRef-2.9.2.jar", and see if everything works there.

     
  • zarquon

    zarquon - 2013-02-15

    "java -jar JabRef-2.9.2.jar" that was, what I ran (with the jar file from sourceforge). The dependency for Ubuntu is libjgoodies-forms-java >=1.6 [edit: wrong package] (as it seems). At the moment, this version cannot be used with Ubuntu before raring ringtail (13.04), i'll try if it is possible to upgrade libjgoodies in 12.04 without breaking things and report back on monday.

    Thanks for your good work!!

     
    Last edit: zarquon 2013-02-15
  • Morten Omholt Alver

    The jar file from SourceForge contains all library dependencies, so when you run that it doesn't matter what libraries are installed (apart from Java itself).

     
  • zarquon

    zarquon - 2013-02-18

    OK - error found ...on my side. There was an old version of oo-plugin in ~/.jabref interfering with the one included (no need to upgrade libjgoodies package). Deleting ~/.jabref solved the issue. Thank you for your response.

    Stefan

     
  • Sophie Gerber

    Sophie Gerber - 2013-02-18

    Great!

    I've deleted ~/.jabref and the problem is over!!

    Thanks

    Sophie

    Le 18/02/2013 09:05, zarquon a écrit :

    OK - error found ...on my side. There was an old version of oo-plugin
    in ~/.jabref interfering with the one included (no need to upgrade
    libjgoodies package). Deleting ~/.jabref solved the issue. Thank you
    for your response.

    Stefan


    [bugs:#1133] http://sourceforge.net/p/jabref/bugs/1133/ OpenOffice
    plugin - cannot select style file or adapt path to open/libre office:

    Status: open
    Labels: OpenOffice - cannot select style file or adapt path to
    open/libre office:
    Created: Fri Feb 01, 2013 07:52 AM UTC by zarquon
    Last Updated: Sat Feb 16, 2013 04:49 PM UTC
    Owner: nobody

          OpenOffice plugin - cannot select style file or adapt path
          to open/libre office:
    
    • affects: JabRef version > 2.9
    • Ubuntu version > 12.04
    • tested with openjdk-6, openjdk-7 and oracle java (latest)

          Bug description:
      

    When clicking "Select style file" or the second "plug" button (to edit
    libreoffice path), no option windows appears.
    Inserting citations works, however, when style file and path is set in
    Jabref 2.8.
    I attached the error log when clicking "select style file" button.

    Best regards
    Stefan


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/jabref/bugs/1133/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/prefs/

     

    Related

    Bugs: #1133

  • Morten Omholt Alver

    Ah, that explains it. The plugin was actually dependant on an older version of Forms, so the package dependencies are correct.

    I seem to remember putting in a check to avoid loading the plugin in the latest JabRef versions (since it's been replaced by standard functionality), but this clearly doesn't work.

     
  • Stephan Heise

    Stephan Heise - 2013-04-12

    Hi,

    I have the same problem with the "Select style file" button not responding on an MS Windows 7 system and couldn't quite follow the details of your discussing the issue. Could you please instruct me how to resolve the problem. Which directory in Windows would correspond to the ~/.jabref that Sophie and zarquon deleted?

    I don't know if it's related but, strangely enough, the "Select style file" button is the only English one in the OpenOffice.org panel of my otherwise German JabRef.

    Oh, and I just found another anomaly: If I select "OpenOffice.org Plugin" from the "Plugins" menu, the English/German panel that I was just talking about appears. If I then restart JabRef I suddenly have TWO panels: the English/German one and another panel that is completely German and in which the "Stil wählen" button responds! When I close the English/German panel and restart JabRef, both panels are gone.

    Seems to me that there may be several versions of the plugin installed - but where??

    Thanks for any help!

     
  • Stephan Heise

    Stephan Heise - 2013-04-22

    OK. Problem solved. I had the plugin installed as well as the JabRef-internal version. Uninstalled the plugin and now everything is working.

     
  • kalyp

    kalyp - 2013-04-25

    ok I am getting a bit lost. I used the plugin before but am running into the same issue (can't select style file) so I tried uninstalling the plugin and using the internal version - I imagine under tools / connexion openoffice/libreoffice? Problem is that clicking on this doesn't do anything if the plugin is not installed. (Note that the .jabref was where the plugin was installed so that deleting it just removes the plugin).

    Anyways it sounds from some posts (Stephan, and Morten) like the plugin is not needed anymore. How can I connect to openoffice without the plugin then?

    Thanks!

     
  • Morten Omholt Alver

    kalyp: You are right, the plugin is not needed any more - provided you are using a recent version of JabRef (such as 2.9). You can now use "OpenOffice/LibreOffice connection" under the Tools menu to access this functionality - which basically works the same way as the plugin did.

     
  • kalyp

    kalyp - 2013-05-02

    Thanks Morten. That's interesting because I had tried that and nothing happened but I just tried again and it works. Maybe I hadn't restarted JabRef when testing last or something. All good now.
    Thanks again!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks