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

NumberFormatException for weird long number in pages field #114

Closed
Siedlerchr opened this issue Jan 3, 2022 · 0 comments
Closed

NumberFormatException for weird long number in pages field #114

Siedlerchr opened this issue Jan 3, 2022 · 0 comments

Comments

@Siedlerchr
Copy link
Contributor

Following bibtex code throws an error:

ERROR: Could not generate BibEntry citation. The CSL engine could not create a preview for your item.: java.lang.NumberFormatException: For input string: "001946462110645"
	at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
	at java.base/java.lang.Integer.parseInt(Integer.java:660)
	at java.base/java.lang.Integer.parseInt(Integer.java:778)
	at [email protected]/de.undercouch.citeproc.bibtex.internal.InternalPageParser.range(InternalPageParser.java:348)
	at [email protected]/de.undercouch.citeproc.bibtex.internal.InternalPageParser.pages(InternalPageParser.java:164)
	at [email protected]/de.undercouch.citeproc.bibtex.PageParser.parse(PageParser.java:28)
	at [email protected]/de.undercouch.citeproc.bibtex.BibTeXConverter.toItemData(BibTeXConverter.java:287)
	at org.jabref/org.jabref.logic.citationstyle.CSLAdapter$JabRefItemDataProvider.bibEntryToCSLItemData(CSLAdapter.java:111)

Some publishers seem to misuse the pages field... 🤦

@Article{baks-2021,
  author           = {Sandipan Baksi},
  date             = {2021},
  journaltitle     = {The Indian Economic {\&} Social History Review},
  pages            = {001946462110645},
  title            = {Science journalism in Hindi in pre-independence India: A study of Hindi periodicals},
  doi              = {10.1177/00194646211064586},
  creationdate     = {2022-01-03T11:59:38},
  modificationdate = {2022-01-03T12:01:49},
  publisher        = {{SAGE} Publications},
}

Originally reported here JabRef/jabref#8381

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant