org.marc4j.MarcException: Premature end of file encountered

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via sourceforge.net by Unknown author, 1 year ago
Premature end of file encountered
org.marc4j.MarcException: Premature end of file encountered
at java.io.DataInputStream.readFully(DataInputStream.java:180)
at java.io.DataInputStream.readFully(DataInputStream.java:152)
at org.marc4j.MarcPermissiveStreamReader.next(MarcPermissiveStreamReader.java:277)
at org.solrmarc.marc.MarcImporter.importRecords(MarcImporter.java:230)
at org.solrmarc.marc.MarcImporter.handleAll(MarcImporter.java:484)
at org.solrmarc.marc.MarcImporter.main(MarcImporter.java:616)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.simontuffs.onejar.Boot.run(Boot.java:320)
at com.simontuffs.onejar.Boot.main(Boot.java:161)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
4 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.