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

Compilation error when I work with child ClassLoader #895

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

Compilation error when I work with child ClassLoader #895

silvinus opened this issue Aug 14, 2014 · 5 comments
Labels
bug
Milestone

Comments

@silvinus
Copy link

@silvinus silvinus commented Aug 14, 2014

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
Copy link
Author

@silvinus silvinus commented 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.

@timowest
Copy link
Member

@timowest 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
Copy link
Author

@silvinus silvinus commented 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.

@timowest
Copy link
Member

@timowest 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.