slabiak / AppointmentScheduler

Application to schedule appointments written in Java (Spring Boot)
MIT License
166 stars 94 forks source link

lombok dependency update to version 1.18.28 #42

Open lainsw opened 1 year ago

lainsw commented 1 year ago

Hi!

I just downloaded AppointmentScheduler on Ubuntu Studio 22.04.

I was getting this error: ''' Caused by: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x1bd97254) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x1bd97254 ''' It seems like this is a lombok version issue in pom.xml.. Updating version to current (1.18.28) fixed it: '''

org.projectlombok lombok 1.18.28 provided

''' I hope this was useful.

slabiak commented 1 year ago

hey, thx :) can you do PR with that?

lainsw commented 1 year ago

Sure - it will probably take me a couple of days because I didn't properly branch the code before changing it.

I am still having some troubles with the scheduler not finding the paths in spring correctly. I'll log another issue once I get to that point again. I don't want to do a PR until it is completely working (and I haven't run the test suite at all).

lainsw commented 1 year ago

Hey I now remember that the first problem I had when setting up the mvn run was that the application.properties file entries (this user and password is the owner of the appointmentscheduler mysql database):

spring.datasource.username=scheduler spring.datasource.password=qwerty123

Don't seem to let me log in. This is the error logged to the console:

Public Key Retrieval is not allowed

If I sudo mvn it lets me log in, (not safe) but then later there are path issues when I try to create a new appointment, etc. (I think caused in part by the sudo mvn` hack.)