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

Example does not compile without modifications and fails at runtime with MethodInvocationException #10

Open
n8r0n opened this issue Oct 12, 2017 · 3 comments

Comments

@n8r0n
Copy link

n8r0n commented Oct 12, 2017

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.

spark

@tipsy
Copy link
Owner

tipsy commented Oct 12, 2017

It's because of lombok (https://projectlombok.org/).

@PBesze
Copy link

PBesze commented Oct 19, 2017

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 :)

@n8r0n
Copy link
Author

n8r0n commented Oct 21, 2017

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.

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

3 participants