• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.io.IOException: Error: End-of-File, expected line

 
John Landon
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
java.io.IOException: Error: End-of-File, expected line

Any ideas?

I am creating it form a string "crap".

Thanks.
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just like in your other thread, there's not enough information. You need to TellTheDetails(←click). Ideally with an SSCCE(←click).

The error message is pretty descriptive. There's not much more anybody here can say without some more context from you.
 
John Landon
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John Landon wrote:


So I assume it's the load() line, not the println() line that's giving the error?

Just as a wild guess, whatever PDDocument is, its format is probably not just any old arbitrary text like a plaintext file would be. So the string "crap" is probably not parseable according to that file format.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!