dropwizard-sundial icon indicating copy to clipboard operation
dropwizard-sundial copied to clipboard

Jobs cannot be loaded if the project is inside a directory with a space in its name

Open Kevenvz opened this issue 9 years ago • 3 comments

So I constantly ran into this error:

INFO  [2016-05-18 13:20:15,003] org.quartz.classloading.CascadingClassLoadHelper: Package: 'nl.glu.voteapp.jobs' becomes Resource: 'file:/E:/Development/Studenten%20App/glu-app-backend/target/classes/nl/glu/voteapp/jobs'
ERROR [2016-05-18 13:20:15,006] org.knowm.sundial.ee.SundialInitializerListener: Sundial Scheduler failed to initialize: 
! java.lang.NullPointerException: null

Then I removed the space in the directory name and it worked. I guess the fix is to not encode the directory path so that it doesn't add the %20 but instead uses a normal space.

Kevenvz avatar May 18 '16 13:05 Kevenvz

I've seen this before, and I think was fixed somewhere else in the code. I'll look into it.

timmolter avatar May 21 '16 18:05 timmolter

OK, fix pushed. please try snapshot jar.

timmolter avatar May 21 '16 18:05 timmolter

I am still getting this error using the latest version (1.3.1). I am on Windows and my username contains spaces. My project folder resides in "C:\Users\User Name With Spaces\Documents".

I tried moving the project folder to root a.k.a. " C:\ " and the problem went away.

If you can take another look at this issue, I'll be happy to test and verify a fix.

Thanks for a great project!

daghendrik avatar Aug 23 '19 16:08 daghendrik