question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

describe bookpath layout, show informative error

See original GitHub issue

When I configure a non-default bookpath as described by the documentation, I always get this:

Ooopps!

That should not have happened!

It seems like the server has mixed something up.

Error code: 500

This does not help at all. The server’s log then showed several null pointer exceptions, among them de.uniwue.web.io.FileDatabase.listBookFiles.

Digging into that, I found that there is sufficient documentation on the expected directory structure in the sources. But I cannot browse that API documentation, and IMHO this particular piece of knowledge crucially belongs into the user documentation as well.

Also, IIUC, a bookpath must always be a flat directory with certain file name patterns to separate pages but group annotations. This strikes me as overly restrictive. Perhaps this can be generalized to layouts like those we have in OCR-D – subdirectories for annotations, PAGE-XML’s @imageFilename relative to the root directory of the book?

So please,

  1. document the expected directory structure for bookpath in the README (or similar)
  2. catch the null pointer exception and give a meaningful error message
  3. [optionally] generalize expectation to non-flat directory structure

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
maxnthcommented, Jan 28, 2020

Hello @bertsky, thanks for your feedback and please excuse the problems that arose from the lack of documentation regarding the bookpath and the related problems. We’ll add this crucial information to the README, fix the exception handling and look into the described problem with using the custom bookpath as soon as possible.

We’ll also look into your suggestion regarding the alternative directory structure as it sounds pretty reasonable and (as far as I can judge at the moment) nothing speaks against it.

Thanks again for your helpful feedback.

0reactions
maxnthcommented, Feb 21, 2020

While trying to fix this bug we had similar observations as you but sadly couldn’t yet force LAREX to actually use the user-supplied book path when it’s outside jetty.home or catalina.home. We now moved this issue to the top of our internal to-do list and hope to ship a fix within the next week.

Please excuse this rather annoying bug and any inconveniences caused by it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when creating a table in SQLite database with composite ...
i just want to create a table with composite primary key so that it is a combination of bookdir and lastaddress, also i...
Read more >
Designing error pages that actually work | by Amanda Conlon
Material Design, use their own error page to describe how their error pages should be written in a great example of demonstrating brand,...
Read more >
Common Publishing Errors and How to Fix Them | Lulu
Running into errors making a book? This article will clarify the issue & walk you through solutions to common publishing errors.
Read more >
Intelligent Support of Interactive Manual Control: Design ...
In this thesis, we studied the haptic display of control constraints in a simple driving ... We describe the design and execution of...
Read more >
Defensive Design for the Web: How to Improve Error ...
In this book, the experts at 37signals (whose clients include Microsoft, Qwest, Monster.com, and Clear Channel) will show you how. Defensive design is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found