hibernate-test-case-templates fails

Description

Latest code in https://github.com/hibernate/hibernate-test-case-templates/tree/master/orm/hibernate-orm-5, revision (6a078a2) fails to execute.

It seems there is some issue with dependencies, as downgrading from 5.3.3.Final to 5.3.2.Final it works.

{{hibernate-orm-5$ mvn test
...
Running org.hibernate.bugs.PaddedBatchFetchTestCase
2018-07-27 14:11:41 INFO Version:46 - HHH000412: Hibernate Core {5.3.3.Final}
2018-07-27 14:11:41 INFO Environment:198 - HHH000205: Loaded properties from resource hibernate.properties: {hibernate.connection.driver_class=org.h2.Driver, javax.persistence.validation.mode=NONE, hibernate.service.allow_crawling=false, hibernate.max_fetch_depth=5, hibernate.dialect=org.hibernate.dialect.H2Dialect, hibernate.format_sql=true, hibernate.cache.region.factory_class=org.hibernate.testing.cache.CachingRegionFactory, hibernate.connection.username=sa, hibernate.cache.region_prefix=hibernate.test, hibernate.connection.url=jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=false, hibernate.session.events.log=true, hibernate.jdbc.batch_versioned_data=true, hibernate.connection.pool_size=5}
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.452 sec <<< FAILURE!
initializationError(org.hibernate.bugs.PaddedBatchFetchTestCase) Time elapsed: 0.004 sec <<< ERROR!
java.lang.NoClassDefFoundError: net/bytebuddy/NamingStrategy$SuffixingRandom$BaseNameResolver
at org.hibernate.cfg.Environment.buildBytecodeProvider(Environment.java:357)
at org.hibernate.cfg.Environment.buildBytecodeProvider(Environment.java:352)
at org.hibernate.cfg.Environment.<clinit>(Environment.java:246)
at org.hibernate.dialect.Dialect.getDialect(Dialect.java:256)
at org.hibernate.testing.junit4.CustomRunner.determineDialect(CustomRunner.java:229)
at org.hibernate.testing.junit4.CustomRunner.<clinit>(CustomRunner.java:225)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:250)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
}}

Environment

None

Activity

Show:
Guillaume Smet
July 27, 2018, 1:56 PM

Are you sure you're running mvn test without any changes to the code? Maybe you have an outdated ByteBuddy dependency declared somewhere?

Because I can run it without any issue here with the latest code. And it works on Travis too.

Asier Lostalé
July 27, 2018, 2:02 PM

I had something wrong in my local maven repository, removed bytebuddy to let mvn download it again fixed it.

Sorry for wasting your time.

Guillaume Smet
July 27, 2018, 2:04 PM

could you attach a zip of your test case so that I can check? Maybe you have found a bug by adding your test case.

Guillaume Smet
July 27, 2018, 2:04 PM

OK, cool, thanks for confirming .

Assignee

Guillaume Smet

Reporter

Asier Lostalé

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Minor
Configure