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

Comments

Projects
None yet
3 participants
@mmccreary

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

This comment has been minimized.

Show comment
Hide comment
@Shredder121

Shredder121 Feb 6, 2015

Member

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?

Member

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

This comment has been minimized.

Show comment
Hide comment
@mmccreary

mmccreary 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)

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

This comment has been minimized.

Show comment
Hide comment
@Shredder121

Shredder121 Feb 6, 2015

Member

Yes, that occurrence is indeed the one I found.

Then I can push out the fix.

Member

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

Replace occurrence of java.util.Objects with com.google.common.base.O…
…bjects

The former is not available on JDK6.
fixes #1162

backport of 156cb0c

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

Replace occurrence of java.util.Objects with com.google.common.base.O…
…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 timowest closed this in #1164 Feb 8, 2015

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Feb 28, 2015

Member

Released in 3.6.2

Member

timowest commented Feb 28, 2015

Released in 3.6.2

@Shredder121 Shredder121 referenced this issue Mar 30, 2015

Merged

Improve SelectBase coverage #1211

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