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

java.lang.NoClassDefFoundError: java/util/Objects - 3.6.1 with JDK 6 #1162

Closed
mmccreary opened this issue Feb 6, 2015 · 4 comments
Closed

java.lang.NoClassDefFoundError: java/util/Objects - 3.6.1 with JDK 6 #1162

mmccreary opened this issue Feb 6, 2015 · 4 comments
Labels
bug
Milestone

Comments

@mmccreary
Copy link

@mmccreary mmccreary commented Feb 6, 2015

The company I work for is still using JDK 6. After upgrading from Querydsl 3.6.0 to 3.6.1 I began receiving the following error while calling a JPQLQuery:

java.lang.NoClassDefFoundError: java/util/Objects

It appears that java.util.Objects is new to JDK 7 and is not available in JDK 6

@Shredder121
Copy link
Member

@Shredder121 Shredder121 commented Feb 6, 2015

Thank you for the bug report, and sorry for the inconvenience.
I am preparing a fix, but could you maybe post your stack trace here?

@mmccreary
Copy link
Author

@mmccreary mmccreary commented Feb 6, 2015

Thank you for the quick response. Here is the full stack trace:

java.lang.NoClassDefFoundError: java/util/Objects
at com.mysema.query.support.ReplaceVisitor.visit(ReplaceVisitor.java:75)
at com.mysema.query.jpa.JPAMapAccessVisitor.visit(JPAMapAccessVisitor.java:25)
at com.mysema.query.jpa.JPAMapAccessVisitor.visit(JPAMapAccessVisitor.java:14)
at com.mysema.query.types.PathImpl.accept(PathImpl.java:94)
at com.mysema.query.support.ReplaceVisitor.visit(ReplaceVisitor.java:162)
at com.mysema.query.support.ReplaceVisitor.visit(ReplaceVisitor.java:49)
at com.mysema.query.support.ReplaceVisitor.visit(ReplaceVisitor.java:30)
at com.mysema.query.types.OperationImpl.accept(OperationImpl.java:90)
at com.mysema.query.support.ReplaceVisitor.visit(ReplaceVisitor.java:162)
at com.mysema.query.support.ReplaceVisitor.visit(ReplaceVisitor.java:49)
at com.mysema.query.support.ReplaceVisitor.visit(ReplaceVisitor.java:30)
at com.mysema.query.types.OperationImpl.accept(OperationImpl.java:90)
at com.mysema.query.support.ReplaceVisitor.visit(ReplaceVisitor.java:162)
at com.mysema.query.support.ReplaceVisitor.visit(ReplaceVisitor.java:49)
at com.mysema.query.support.ReplaceVisitor.visit(ReplaceVisitor.java:30)
at com.mysema.query.types.OperationImpl.accept(OperationImpl.java:90)
at com.mysema.query.jpa.JPAQueryMixin.normalize(JPAQueryMixin.java:196)
at com.mysema.query.support.QueryMixin.where(QueryMixin.java:426)
at com.mysema.query.support.QueryBase.where(QueryBase.java:131)
at com.mysema.query.jpa.JPAQueryBase.where(JPAQueryBase.java:32)

@Shredder121
Copy link
Member

@Shredder121 Shredder121 commented Feb 6, 2015

Yes, that occurrence is indeed the one I found.

Then I can push out the fix.

Shredder121 added a commit that referenced this issue Feb 6, 2015
…bjects

The former is not available on JDK6.
fixes #1162

backport of 156cb0c
Shredder121 added a commit that referenced this issue Feb 6, 2015
…bjects

The former is not available on JDK6.
fixes #1162
@timowest timowest added the bug label Feb 7, 2015
@timowest timowest modified the milestones: 4.0.0, 3.6.2 Feb 7, 2015
@timowest
Copy link
Member

@timowest timowest commented Feb 28, 2015

Released in 3.6.2

@Shredder121 Shredder121 mentioned this issue Mar 30, 2015
12 of 12 tasks complete
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.

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