Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Cannot switch to BibLatex mode in preferences #420

Closed
stefan-kolb opened this issue Nov 30, 2015 · 3 comments
Closed

Cannot switch to BibLatex mode in preferences #420

stefan-kolb opened this issue Nov 30, 2015 · 3 comments
Labels
bug Confirmed bugs or reports that are very likely to be bugs
Milestone

Comments

@stefan-kolb
Copy link
Member

Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: sun.nio.cs.UTF_8 cannot be cast to java.lang.String
    at net.sf.jabref.gui.preftabs.GeneralTab.storeSettings(GeneralTab.java:245)
    at net.sf.jabref.gui.preftabs.PreferencesDialog$OkAction$1.run(PreferencesDialog.java:266)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at spin.Invocation.evaluate(Invocation.java:175)
    at spin.off.SpinOffEvaluator$1.run(SpinOffEvaluator.java:108)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: sun.nio.cs.UTF_8 cannot be cast to java.lang.String
    at net.sf.jabref.gui.preftabs.GeneralTab.storeSettings(GeneralTab.java:245)
    at net.sf.jabref.gui.preftabs.PreferencesDialog$OkAction$1.run(PreferencesDialog.java:266)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at spin.Invocation.evaluate(Invocation.java:175)
    at spin.off.SpinOffEvaluator$1.run(SpinOffEvaluator.java:108)
    at java.lang.Thread.run(Thread.java:745)

Related to charset PR #396

@stefan-kolb stefan-kolb added the bug Confirmed bugs or reports that are very likely to be bugs label Nov 30, 2015
@stefan-kolb stefan-kolb added this to the v3.1 milestone Nov 30, 2015
@simonharrer
Copy link
Contributor

@tobiasdiez can you have a look as this relates to your PR?

@tolot27
Copy link
Contributor

tolot27 commented Nov 30, 2015

Change GeneralTab.java:245

        prefs.put(JabRefPreferences.DEFAULT_ENCODING, (String) encodings.getSelectedItem());

into

        prefs.put(JabRefPreferences.DEFAULT_ENCODING, encodings.getSelectedItem().toString());

@matthiasgeiger
Copy link
Member

👍
Thanks!

tobiasdiez added a commit to tobiasdiez/jabref that referenced this issue Dec 1, 2015
simonharrer added a commit that referenced this issue Dec 1, 2015
Fix similar bug as #420 for the database properties dialog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs
Projects
None yet
Development

No branches or pull requests

4 participants