Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cannot edit dynamic group with regular expression activated #2481

Closed
theagoliveira opened this issue Jan 23, 2017 · 3 comments
Closed

Cannot edit dynamic group with regular expression activated #2481

theagoliveira opened this issue Jan 23, 2017 · 3 comments
Assignees
Labels
component: groups [outdated] type: bug Confirmed bugs or reports that are very likely to be bugs

Comments

@theagoliveira
Copy link

Description: groups which have both options "Dynamically group entries by searching a field for a keyword" and "regular expression" checked cannot be edited after creation (edit screen doesn't appear).

JabRef version 3.8.1 on Ubuntu 14.04

Steps to reproduce:

  1. Create new BibTeX/BibLaTeX database
  2. Create a group
  3. Check "Dynamically group entries by searching a field for a keyword" and "regular expression" and fill Name and Keyword
  4. Double click the group name or select "Edit group" in the context menu

Bibliography file:

% Encoding: UTF-8

@Comment{jabref-meta: databaseType:bibtex;}

@Comment{jabref-meta: groupstree:
0 AllEntriesGroup:;
1 ExplicitGroup:test1\;0\;;
1 ExplicitGroup:test2\;1\;;
1 ExplicitGroup:test3\;2\;;
1 KeywordGroup:test4\;0\;keywords\;test\;0\;0\;;
1 KeywordGroup:test5\;0\;keywords\;test\;0\;1\;;
1 KeywordGroup:test6\;1\;keywords\;test\;0\;0\;;
1 KeywordGroup:test7\;1\;keywords\;test\;0\;1\;;
1 KeywordGroup:test8\;2\;keywords\;test\;0\;0\;;
1 KeywordGroup:test9\;2\;keywords\;test\;0\;1\;;
1 SearchGroup:test10\;0\;test\;0\;0\;;
1 SearchGroup:test11\;0\;test\;0\;1\;;
1 SearchGroup:test12\;1\;test\;0\;0\;;
1 SearchGroup:test13\;1\;test\;0\;1\;;
1 SearchGroup:test14\;2\;test\;0\;0\;;
1 SearchGroup:test15\;2\;test\;0\;1\;;
}

test5, test7, and test9 cannot be edited.

Console Log:

18:01:48.822 [AWT-EventQueue-0] ERROR net.sf.jabref.FallbackExceptionHandler - Uncaught exception Occurred in Thread[AWT-EventQueue-0,6,main]
java.lang.ClassCastException: net.sf.jabref.model.groups.RegexKeywordGroup cannot be cast to net.sf.jabref.model.groups.WordKeywordGroup
    at net.sf.jabref.gui.groups.GroupDialog.<init>(GroupDialog.java:317) ~[JabRef_3.8.1.jar:?]
    at net.sf.jabref.gui.groups.GroupSelector$EditGroupAction.actionPerformed(GroupSelector.java:790) ~[JabRef_3.8.1.jar:?]
    at net.sf.jabref.gui.groups.GroupSelector$3.mouseClicked(GroupSelector.java:413) ~[JabRef_3.8.1.jar:?]
    at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270) ~[?:1.8.0_66-internal]
    at java.awt.Component.processMouseEvent(Component.java:6538) ~[?:1.8.0_66-internal]
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) ~[?:1.8.0_66-internal]
    at java.awt.Component.processEvent(Component.java:6300) ~[?:1.8.0_66-internal]
    at java.awt.Container.processEvent(Container.java:2236) ~[?:1.8.0_66-internal]
    at java.awt.Component.dispatchEventImpl(Component.java:4891) ~[?:1.8.0_66-internal]
    at java.awt.Container.dispatchEventImpl(Container.java:2294) ~[?:1.8.0_66-internal]
    at java.awt.Component.dispatchEvent(Component.java:4713) ~[?:1.8.0_66-internal]
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888) ~[?:1.8.0_66-internal]
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534) ~[?:1.8.0_66-internal]
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466) ~[?:1.8.0_66-internal]
    at java.awt.Container.dispatchEventImpl(Container.java:2280) ~[?:1.8.0_66-internal]
    at java.awt.Window.dispatchEventImpl(Window.java:2750) ~[?:1.8.0_66-internal]
    at java.awt.Component.dispatchEvent(Component.java:4713) ~[?:1.8.0_66-internal]
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) ~[?:1.8.0_66-internal]
    at java.awt.EventQueue.access$500(EventQueue.java:97) ~[?:1.8.0_66-internal]
    at java.awt.EventQueue$3.run(EventQueue.java:709) ~[?:1.8.0_66-internal]
    at java.awt.EventQueue$3.run(EventQueue.java:703) ~[?:1.8.0_66-internal]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_66-internal]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) ~[?:1.8.0_66-internal]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) ~[?:1.8.0_66-internal]
    at java.awt.EventQueue$4.run(EventQueue.java:731) ~[?:1.8.0_66-internal]
    at java.awt.EventQueue$4.run(EventQueue.java:729) ~[?:1.8.0_66-internal]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_66-internal]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) ~[?:1.8.0_66-internal]
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) ~[?:1.8.0_66-internal]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) [?:1.8.0_66-internal]
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [?:1.8.0_66-internal]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [?:1.8.0_66-internal]
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:1.8.0_66-internal]
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [?:1.8.0_66-internal]
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [?:1.8.0_66-internal]
@tobiasdiez tobiasdiez added [outdated] type: bug Confirmed bugs or reports that are very likely to be bugs component: groups labels Jan 23, 2017
@tobiasdiez tobiasdiez self-assigned this Jan 23, 2017
tobiasdiez added a commit to tobiasdiez/jabref that referenced this issue Jan 26, 2017
@tobiasdiez
Copy link
Member

tobiasdiez commented Jan 26, 2017

Thanks for your very detailed and clear report.
This should be fixed now in the latest development version. Could you please check the build from http://builds.jabref.org/master/ and report back if it's still not working. Thanks!

@theagoliveira
Copy link
Author

I tried to run java -jar JabRef-3.8.2-dev--snapshot--2017-01-26--master--ed89bdae2.jar and got Error: Invalid or corrupt jarfile

Siedlerchr added a commit that referenced this issue Jan 26, 2017
* upstream/master:
  Fix medline tests...again (#2492)
  Make sure that unregistered event sources do not stop JabRef from shu… (#2487)
  Fix #2481: ClassCastException because of wrong cast (#2490)
  Catch NumberFormatException if context can't be parsed in groups (#2488)
  Improve CHANGELOG formatting
  Update guava from 20.0 to 21.0 and mockito-core from 2.5.5 to 2.6.2
  Fix aux duplicates (#2480)
  add update from DOI to the entryeditor sidebar (#2476)
  Remove obsolete import
  Add CHANGELOG entry (and one more link)
  Resolves #2309 JabRef freezes when importing unlinked PDF files into Database
  Update CHANGELOG.md
  Fixed bug when assigning refs to groups.
  emove html code from ACM fetcher before calling parser to prevent junk in bib file (#2473)
@tobiasdiez
Copy link
Member

We had some problems with our build server. Should work now.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
component: groups [outdated] type: bug Confirmed bugs or reports that are very likely to be bugs
Projects
None yet
Development

No branches or pull requests

2 participants