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

Compilation error when I work with child ClassLoader #895

Closed
silvinus opened this Issue Aug 14, 2014 · 5 comments

Comments

Projects
None yet
2 participants
@silvinus

Hi all,

I have a problem with queryDSL and collections. I need to execute a query with an AppClassloader 's child. So I set the Thread.currentThread.SetContextClassloader with my "custom" classloader and run my query.
I have a CodegenException in the compile method of the class JDKEvaluatorFactory.
I see in the compilation options that you put the classpath parameter. But the classPath is initialized only with the URL included in my "custom" classloader. To compile, the generated code must have URLs included in my "custom" classloader AND URLs included in the parent Classloader (AppClassloader).
I want to know if there is any way to use another classloader than the AppClassloader to execute query ?

@timowest timowest added the bug label Aug 14, 2014

@silvinus

This comment has been minimized.

Show comment
Hide comment
@silvinus

silvinus Aug 14, 2014

Yes, in my case this loop get only URLs included in my "custom" classloader but URLs are included in parent classloader (AppClassloader) are ignored and compilation failed.

Yes, in my case this loop get only URLs included in my "custom" classloader but URLs are included in parent classloader (AppClassloader) are ignored and compilation failed.

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Aug 14, 2014

Member

Here is a fix querydsl/codegen#18

Could you verify that it works for you?

Member

timowest commented Aug 14, 2014

Here is a fix querydsl/codegen#18

Could you verify that it works for you?

@timowest timowest added this to the 3.4.3 milestone Aug 14, 2014

@silvinus

This comment has been minimized.

Show comment
Hide comment
@silvinus

silvinus Aug 18, 2014

Thank's for your fix, it's works perfectly and the classpath is correctly created.
Please, can you see again the issue 891 because your answer doesn't work for me. Thank you.

Thank's for your fix, it's works perfectly and the classpath is correctly created.
Please, can you see again the issue 891 because your answer doesn't work for me. Thank you.

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Aug 31, 2014

Member

Released in 3.4.3

Member

timowest commented Aug 31, 2014

Released in 3.4.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment