We're updating the issue view to help you get more done. 

LobTest and VersionedLobTest fail with MySQL Connector/J 8

Description

org.hibernate.test.annotations.lob.LobTest.testBinary
org.hibernate.test.annotations.lob.VersionedLobTest.testBinary

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 java.lang.NullPointerException at org.hibernate.test.annotations.lob.AbstractLobTest.lambda$testBinary$8(AbstractLobTest.java:145) at org.hibernate.testing.transaction.TransactionUtil.doInHibernate(TransactionUtil.java:318) at org.hibernate.test.annotations.lob.AbstractLobTest.testBinary(AbstractLobTest.java:143) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.hibernate.testing.junit4.ExtendedFrameworkMethod.invokeExplosively(ExtendedFrameworkMethod.java:45) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.lang.Thread.run(Thread.java:748)

fails because recompiled.getMetadata() is null

1 assertEquals( recompiled.getMetadata()[1], cc.getMetadata()[1] );

Environment

MySQL 5.5 - org.hibernate.dialect.MySQL5InnoDBDialect (I know I should have used MySQL55Dialect)
MySQL 5.7 - org.hibernate.dialect.MySQL57Dialect

mysql-connector-java-8.0.11.jar

Status

Assignee

Unassigned

Reporter

Martin Šimka

Fix versions

None

Labels

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

Components

Affects versions

5.3.2

Priority

Major