spark-basic-structure
spark-basic-structure copied to clipboard
Example does not compile without modifications and fails at runtime with MethodInvocationException
Downloaded (git cloned) latest version of spark-basic-structure. First, did not compile with errors for multiple constructors and accessor methods not present in Book.java and User.java. Implementing those methods in the obvious way allows the project to compile.
However, on running the application, I see the following web application error.
I reproduced the exact same error both on a Win 10 machine, and MacOS 10.13 machine. Java RE 1.8. Project built by importing into Eclipse.
This is my first attempt to use spark java for anything. So, machines may not be properly configured (?).
Should this code be buildable and runnable at this point? Any idea why it doesn't? Most interested in the runtime error.
It's because of lombok (https://projectlombok.org/).
I've cloned and also forked. After some 'refresh' I can run it even on Heroku deployed from GitHub (and local). You can see it on my fork... I have to test and 'clean' the modifications and I'll request a pull :)
Thanks. That solved it, of course. We can close out the issue, but could you put the dependency on Lombok somewhere in the docs? I didn't see it anywhere, and it seems like a short notice could save other new developers significant time.