Skip to content

Instantly share code, notes, and snippets.

@isabiq isabiq/errors.txt Secret
Created Jan 4, 2018

Embed
What would you like to do?
java 9 migration
******************************************************************************
ID : BR-CP-ERR-01
*****************************************************************************
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at org.hibernate.boot.cfgxml.internal.ConfigLoader$1.initialize(ConfigLoader.java:41)
at org.hibernate.boot.cfgxml.internal.ConfigLoader$1.initialize(ConfigLoader.java:38)
at org.hibernate.internal.util.ValueHolder.getValue(ValueHolder.java:55)
at org.hibernate.boot.cfgxml.internal.ConfigLoader.loadConfigXmlResource(ConfigLoader.java:55)
at org.hibernate.boot.registry.StandardServiceRegistryBuilder.configure(StandardServiceRegistryBuilder.java:163)
at org.hibernate.boot.registry.StandardServiceRegistryBuilder.configure(StandardServiceRegistryBuilder.java:152)
at com.iluwatar.cqrs.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:44)
at com.iluwatar.cqrs.util.HibernateUtil.<clinit>(HibernateUtil.java:38)
at com.iluwatar.cqrs.commandes.CommandServiceImpl.<init>(CommandServiceImpl.java:39)
at com.iluwatar.cqrs.app.App.main(App.java:60)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
... 10 more
*****************************************************************************
ID : BR-V1-ERR-01
*****************************************************************************
src/main/java/com/iluwatar/cqrs/app/App.java:92: error: cannot access Referenceable
HibernateUtil.getSessionFactory().close();
^
class file for javax.naming.Referenceable not found
Note: src/main/java/com/iluwatar/cqrs/queries/impl/QueryServiceImpl.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
*****************************************************************************
ID : BR-V1-ERR-02
*****************************************************************************
Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/SQLException
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:375)
at org.jboss.logging.Logger$1.run(Logger.java:2554)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.jboss.logging.Logger.getMessageLogger(Logger.java:2529)
at org.jboss.logging.Logger.getMessageLogger(Logger.java:2516)
at hibernate.core@5.0.1.Final/org.hibernate.internal.CoreLogging.messageLogger(CoreLogging.java:28)
at hibernate.core@5.0.1.Final/org.hibernate.internal.CoreLogging.messageLogger(CoreLogging.java:24)
at hibernate.core@5.0.1.Final/org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.<clinit>(ClassLoaderServiceImpl.java:40)
at hibernate.core@5.0.1.Final/org.hibernate.boot.registry.BootstrapServiceRegistryBuilder.build(BootstrapServiceRegistryBuilder.java:206)
at hibernate.core@5.0.1.Final/org.hibernate.boot.registry.StandardServiceRegistryBuilder.<init>(StandardServiceRegistryBuilder.java:58)
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:44)
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.<clinit>(HibernateUtil.java:38)
at com.iluwatar.cqrs/com.iluwatar.cqrs.commandes.impl.CommandServiceImpl.<init>(CommandServiceImpl.java:40)
at com.iluwatar.cqrs/com.iluwatar.cqrs.app.App.main(App.java:60)
Caused by: java.lang.ClassNotFoundException: java.sql.SQLException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
*****************************************************************************
ID : BR-V1-ERR-03
*****************************************************************************
17:18:45.006 [main] INFO org.hibernate.Version - HHH000412: Hibernate Core {5.0.1.Final}
17:18:45.020 [main] INFO org.hibernate.cfg.Environment - HHH000206: hibernate.properties not found
17:18:45.022 [main] INFO org.hibernate.cfg.Environment - HHH000021: Bytecode provider name : javassist
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector (file:/home/red-hat/Documents/workspace/java-workspace/java9-migration/mytarget/lib/jaxb-runtime-2.3.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
17:18:45.610 [main] INFO o.h.annotations.common.Version - HCANN000001: Hibernate Commons Annotations {5.0.0.Final}
17:18:45.720 [main] WARN o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000402: Using Hibernate built-in connection pool (not for production use!)
17:18:45.727 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000401: using driver [org.h2.Driver] at URL [jdbc:h2:mem:test]
17:18:45.727 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000046: Connection properties: {user=sa}
17:18:45.727 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000006: Autocommit mode: false
17:18:45.728 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000115: Hibernate connection pool size: 20 (min=1)
17:18:45.924 [main] INFO org.hibernate.dialect.Dialect - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
17:18:46.306 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000030: Cleaning up connection pool [jdbc:h2:mem:test]
org.hibernate.MappingException: Could not instantiate persister org.hibernate.persister.entity.SingleTableEntityPersister
at hibernate.core@5.0.1.Final/org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:112)
at hibernate.core@5.0.1.Final/org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:77)
at hibernate.core@5.0.1.Final/org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:346)
at hibernate.core@5.0.1.Final/org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:444)
at hibernate.core@5.0.1.Final/org.hibernate.boot.internal.MetadataImpl.buildSessionFactory(MetadataImpl.java:170)
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:46)
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.<clinit>(HibernateUtil.java:38)
at com.iluwatar.cqrs/com.iluwatar.cqrs.commandes.impl.CommandServiceImpl.<init>(CommandServiceImpl.java:40)
at com.iluwatar.cqrs/com.iluwatar.cqrs.app.App.main(App.java:60)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private long com.iluwatar.cqrs.domain.model.Author.id accessible: module com.iluwatar.cqrs does not "opens com.iluwatar.cqrs.domain.model" to module hibernate.core
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:337)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:281)
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:176)
at java.base/java.lang.reflect.Field.setAccessible(Field.java:170)
at hibernate.core@5.0.1.Final/org.hibernate.internal.util.ReflectHelper.findField(ReflectHelper.java:357)
at hibernate.core@5.0.1.Final/org.hibernate.property.access.internal.PropertyAccessFieldImpl.<init>(PropertyAccessFieldImpl.java:34)
at hibernate.core@5.0.1.Final/org.hibernate.property.access.internal.PropertyAccessStrategyFieldImpl.buildPropertyAccess(PropertyAccessStrategyFieldImpl.java:26)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:322)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.PropertyFactory.buildIdentifierAttribute(PropertyFactory.java:63)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:141)
at hibernate.core@5.0.1.Final/org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:502)
at hibernate.core@5.0.1.Final/org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:122)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
at hibernate.core@5.0.1.Final/org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:96)
... 8 more
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.iluwatar.cqrs/com.iluwatar.cqrs.commandes.impl.CommandServiceImpl.<init>(CommandServiceImpl.java:40)
at com.iluwatar.cqrs/com.iluwatar.cqrs.app.App.main(App.java:60)
Caused by: java.lang.NullPointerException
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:50)
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.<clinit>(HibernateUtil.java:38)
*****************************************************************************
ID : BR-V1-ERR-04
*****************************************************************************
17:21:47.367 [main] INFO org.hibernate.Version - HHH000412: Hibernate Core {5.0.1.Final}
17:21:47.382 [main] INFO org.hibernate.cfg.Environment - HHH000206: hibernate.properties not found
17:21:47.383 [main] INFO org.hibernate.cfg.Environment - HHH000021: Bytecode provider name : javassist
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector (file:/home/red-hat/Documents/workspace/java-workspace/java9-migration/mytarget/lib/jaxb-runtime-2.3.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
17:21:47.973 [main] INFO o.h.annotations.common.Version - HCANN000001: Hibernate Commons Annotations {5.0.0.Final}
17:21:48.047 [main] WARN o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000402: Using Hibernate built-in connection pool (not for production use!)
17:21:48.072 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000401: using driver [org.h2.Driver] at URL [jdbc:h2:mem:test]
17:21:48.073 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000046: Connection properties: {user=sa}
17:21:48.073 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000006: Autocommit mode: false
17:21:48.074 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000115: Hibernate connection pool size: 20 (min=1)
17:21:48.268 [main] INFO org.hibernate.dialect.Dialect - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
17:21:48.668 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000030: Cleaning up connection pool [jdbc:h2:mem:test]
org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
at hibernate.core@5.0.1.Final/org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:123)
at hibernate.core@5.0.1.Final/org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:77)
at hibernate.core@5.0.1.Final/org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:346)
at hibernate.core@5.0.1.Final/org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:444)
at hibernate.core@5.0.1.Final/org.hibernate.boot.internal.MetadataImpl.buildSessionFactory(MetadataImpl.java:170)
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:46)
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.<clinit>(HibernateUtil.java:38)
at com.iluwatar.cqrs/com.iluwatar.cqrs.commandes.impl.CommandServiceImpl.<init>(CommandServiceImpl.java:40)
at com.iluwatar.cqrs/com.iluwatar.cqrs.app.App.main(App.java:60)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:91)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:116)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:388)
at hibernate.core@5.0.1.Final/org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:502)
at hibernate.core@5.0.1.Final/org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:122)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
at hibernate.core@5.0.1.Final/org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:96)
... 8 more
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:88)
... 17 more
Caused by: java.lang.RuntimeException: by java.lang.IllegalAccessError: superinterface check failed: class com.iluwatar.cqrs.domain.model.Author_$$_jvsteb8_0 (in module com.iluwatar.cqrs) cannot access class javassist.util.proxy.ProxyObject (in unnamed module @0x2812b107) because module com.iluwatar.cqrs does not read unnamed module @0x2812b107
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:515)
at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:492)
at javassist.util.proxy.ProxyFactory.createClass1(ProxyFactory.java:428)
at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:400)
at hibernate.core@5.0.1.Final/org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:72)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:177)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:157)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:63)
... 22 more
Caused by: javassist.CannotCompileException: by java.lang.IllegalAccessError: superinterface check failed: class com.iluwatar.cqrs.domain.model.Author_$$_jvsteb8_0 (in module com.iluwatar.cqrs) cannot access class javassist.util.proxy.ProxyObject (in unnamed module @0x2812b107) because module com.iluwatar.cqrs does not read unnamed module @0x2812b107
at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:170)
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:507)
... 29 more
Caused by: java.lang.IllegalAccessError: superinterface check failed: class com.iluwatar.cqrs.domain.model.Author_$$_jvsteb8_0 (in module com.iluwatar.cqrs) cannot access class javassist.util.proxy.ProxyObject (in unnamed module @0x2812b107) because module com.iluwatar.cqrs does not read unnamed module @0x2812b107
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1007)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:182)
at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:164)
... 30 more
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.iluwatar.cqrs/com.iluwatar.cqrs.commandes.impl.CommandServiceImpl.<init>(CommandServiceImpl.java:40)
at com.iluwatar.cqrs/com.iluwatar.cqrs.app.App.main(App.java:60)
Caused by: java.lang.NullPointerException
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.buildSessionFactory(HibernateUti
*****************************************************************************
ID : BR-V1-ERR-05
*****************************************************************************
19:14:32.624 [main] INFO org.hibernate.Version - HHH000412: Hibernate Core {5.0.1.Final}
19:14:32.639 [main] INFO org.hibernate.cfg.Environment - HHH000206: hibernate.properties not found
19:14:32.641 [main] INFO org.hibernate.cfg.Environment - HHH000021: Bytecode provider name : javassist
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector (file:/home/red-hat/Documents/workspace/java-workspace/java9-migration/mytarget/lib/jaxb-runtime-2.3.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
19:14:33.217 [main] INFO o.h.annotations.common.Version - HCANN000001: Hibernate Commons Annotations {5.0.0.Final}
19:14:33.306 [main] WARN o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000402: Using Hibernate built-in connection pool (not for production use!)
19:14:33.314 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000401: using driver [org.h2.Driver] at URL [jdbc:h2:mem:test]
19:14:33.314 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000046: Connection properties: {user=sa}
19:14:33.314 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000006: Autocommit mode: false
19:14:33.315 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000115: Hibernate connection pool size: 20 (min=1)
19:14:33.538 [main] INFO org.hibernate.dialect.Dialect - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
19:14:33.953 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000030: Cleaning up connection pool [jdbc:h2:mem:test]
org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
at hibernate.core@5.0.1.Final/org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:123)
at hibernate.core@5.0.1.Final/org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:77)
at hibernate.core@5.0.1.Final/org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:346)
at hibernate.core@5.0.1.Final/org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:444)
at hibernate.core@5.0.1.Final/org.hibernate.boot.internal.MetadataImpl.buildSessionFactory(MetadataImpl.java:170)
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:46)
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.<clinit>(HibernateUtil.java:38)
at com.iluwatar.cqrs/com.iluwatar.cqrs.commandes.impl.CommandServiceImpl.<init>(CommandServiceImpl.java:40)
at com.iluwatar.cqrs/com.iluwatar.cqrs.app.App.main(App.java:60)
Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:91)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:116)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:388)
at hibernate.core@5.0.1.Final/org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:502)
at hibernate.core@5.0.1.Final/org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:122)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
at hibernate.core@5.0.1.Final/org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:96)
... 8 more
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:88)
... 17 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to module javassist
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:337)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:281)
at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:198)
at java.base/java.lang.reflect.Method.setAccessible(Method.java:192)
at javassist@3.18.1-GA/javassist.util.proxy.SecurityActions.setAccessible(SecurityActions.java:103)
at javassist@3.18.1-GA/javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:181)
at javassist@3.18.1-GA/javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:164)
at javassist@3.18.1-GA/javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:507)
at javassist@3.18.1-GA/javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:492)
at javassist@3.18.1-GA/javassist.util.proxy.ProxyFactory.createClass1(ProxyFactory.java:428)
at javassist@3.18.1-GA/javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:400)
at hibernate.core@5.0.1.Final/org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:72)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:177)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:157)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:63)
... 22 more
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.iluwatar.cqrs/com.iluwatar.cqrs.commandes.impl.CommandServiceImpl.<init>(CommandServiceImpl.java:40)
at com.iluwatar.cqrs/com.iluwatar.cqrs.app.App.main(App.java:60)
Caused by: java.lang.NullPointerException
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:50)
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.<clinit>(HibernateUtil.java:38)
... 2 more
*****************************************************************************
ID : BR-V1-ERR-06
*****************************************************************************
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) @ cqrs ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.417 s
[INFO] Finished at: 2017-12-17T04:58:05-05:00
[INFO] Final Memory: 14M/34M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (validate) on project cqrs: Failed during checkstyle configuration: NoViableAltException occurred during the analysis of file /home/red-hat/Documents/workspace/java-workspace/java9-migration/src/main/java/module-info.java. unexpected token: module -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
*****************************************************************************
ID : BR-V2-ERR-01
*****************************************************************************
error: the unnamed module reads package com.sun.xml.bind from both jaxb.runtime and jaxb.core
error: the unnamed module reads package com.sun.xml.bind.util from both jaxb.runtime and jaxb.core
error: the unnamed module reads package com.sun.xml.bind.marshaller from both jaxb.runtime and jaxb.core
error: the unnamed module reads package com.sun.xml.bind.api from both jaxb.runtime and jaxb.core
error: the unnamed module reads package com.sun.xml.bind.v2 from both jaxb.runtime and jaxb.core
error: the unnamed module reads package com.sun.xml.bind.v2.util from both jaxb.runtime and jaxb.core
error: the unnamed module reads package com.sun.xml.bind.v2.model.impl from both jaxb.runtime and jaxb.core
error: the unnamed module reads package com.sun.xml.bind.v2.model.annotation from both jaxb.runtime and jaxb.core
error: the unnamed module reads package com.sun.xml.bind.v2.runtime from both jaxb.runtime and jaxb.core
error: the unnamed module reads package com.sun.xml.bind.v2.runtime.unmarshaller from both jaxb.runtime and jaxb.core
error: the unnamed module reads package com.sun.xml.bind.unmarshaller from both jaxb.runtime and jaxb.core
error: module slf4j.api reads package com.sun.xml.bind from both jaxb.runtime and jaxb.core
error: module slf4j.api reads package com.sun.xml.bind.util from both jaxb.runtime and jaxb.core
error: module slf4j.api reads package com.sun.xml.bind.marshaller from both jaxb.runtime and jaxb.core
error: module slf4j.api reads package com.sun.xml.bind.api from both jaxb.runtime and jaxb.core
error: module slf4j.api reads package com.sun.xml.bind.v2 from both jaxb.runtime and jaxb.core
error: module slf4j.api reads package com.sun.xml.bind.v2.util from both jaxb.runtime and jaxb.core
error: module slf4j.api reads package com.sun.xml.bind.v2.model.impl from both jaxb.runtime and jaxb.core
error: module slf4j.api reads package com.sun.xml.bind.v2.model.annotation from both jaxb.runtime and jaxb.core
error: module slf4j.api reads package com.sun.xml.bind.v2.runtime from both jaxb.runtime and jaxb.core
error: module slf4j.api reads package com.sun.xml.bind.v2.runtime.unmarshaller from both jaxb.runtime and jaxb.core
error: module slf4j.api reads package com.sun.xml.bind.unmarshaller from both jaxb.runtime and jaxb.core
error: module jaxb.core reads package com.sun.xml.bind from both jaxb.runtime and jaxb.core
error: module jaxb.core reads package com.sun.xml.bind.util from both jaxb.runtime and jaxb.core
error: module jaxb.core reads package com.sun.xml.bind.marshaller from both jaxb.runtime and jaxb.core
error: module jaxb.core reads package com.sun.xml.bind.api from both jaxb.runtime and jaxb.core
error: module jaxb.core reads package com.sun.xml.bind.v2 from both jaxb.runtime and jaxb.core
error: module jaxb.core reads package com.sun.xml.bind.v2.util from both jaxb.runtime and jaxb.core
error: module jaxb.core reads package com.sun.xml.bind.v2.model.impl from both jaxb.runtime and jaxb.core
error: module jaxb.core reads package com.sun.xml.bind.v2.model.annotation from both jaxb.runtime and jaxb.core
error: module jaxb.core reads package com.sun.xml.bind.v2.runtime from both jaxb.runtime and jaxb.core
error: module jaxb.core reads package com.sun.xml.bind.v2.runtime.unmarshaller from both jaxb.runtime and jaxb.core
error: module jaxb.core reads package com.sun.xml.bind.unmarshaller from both jaxb.runtime and jaxb.core
error: module stax.ex reads package com.sun.xml.bind from both jaxb.runtime and jaxb.core
error: module stax.ex reads package com.sun.xml.bind.util from both jaxb.runtime and jaxb.core
error: module stax.ex reads package com.sun.xml.bind.marshaller from both jaxb.runtime and jaxb.core
error: module stax.ex reads package com.sun.xml.bind.api from both jaxb.runtime and jaxb.core
error: module stax.ex reads package com.sun.xml.bind.v2 from both jaxb.runtime and jaxb.core
error: module stax.ex reads package com.sun.xml.bind.v2.util from both jaxb.runtime and jaxb.core
error: module stax.ex reads package com.sun.xml.bind.v2.model.impl from both jaxb.runtime and jaxb.core
error: module stax.ex reads package com.sun.xml.bind.v2.model.annotation from both jaxb.runtime and jaxb.core
error: module stax.ex reads package com.sun.xml.bind.v2.runtime from both jaxb.runtime and jaxb.core
error: module stax.ex reads package com.sun.xml.bind.v2.runtime.unmarshaller from both jaxb.runtime and jaxb.core
error: module stax.ex reads package com.sun.xml.bind.unmarshaller from both jaxb.runtime and jaxb.core
error: module istack.commons.runtime reads package com.sun.xml.bind from both jaxb.runtime and jaxb.core
error: module istack.commons.runtime reads package com.sun.xml.bind.util from both jaxb.runtime and jaxb.core
error: module istack.commons.runtime reads package com.sun.xml.bind.marshaller from both jaxb.runtime and jaxb.core
error: module istack.commons.runtime reads package com.sun.xml.bind.api from both jaxb.runtime and jaxb.core
error: module istack.commons.runtime reads package com.sun.xml.bind.v2 from both jaxb.runtime and jaxb.core
error: module istack.commons.runtime reads package com.sun.xml.bind.v2.util from both jaxb.runtime and jaxb.core
error: module istack.commons.runtime reads package com.sun.xml.bind.v2.model.impl from both jaxb.runtime and jaxb.core
error: module istack.commons.runtime reads package com.sun.xml.bind.v2.model.annotation from both jaxb.runtime and jaxb.core
error: module istack.commons.runtime reads package com.sun.xml.bind.v2.runtime from both jaxb.runtime and jaxb.core
error: module istack.commons.runtime reads package com.sun.xml.bind.v2.runtime.unmarshaller from both jaxb.runtime and jaxb.core
error: module istack.commons.runtime reads package com.sun.xml.bind.unmarshaller from both jaxb.runtime and jaxb.core
error: module jaxb.runtime reads package com.sun.xml.bind from both jaxb.runtime and jaxb.core
error: module jaxb.runtime reads package com.sun.xml.bind.util from both jaxb.runtime and jaxb.core
error: module jaxb.runtime reads package com.sun.xml.bind.marshaller from both jaxb.runtime and jaxb.core
error: module jaxb.runtime reads package com.sun.xml.bind.api from both jaxb.runtime and jaxb.core
error: module jaxb.runtime reads package com.sun.xml.bind.v2 from both jaxb.runtime and jaxb.core
error: module jaxb.runtime reads package com.sun.xml.bind.v2.util from both jaxb.runtime and jaxb.core
error: module jaxb.runtime reads package com.sun.xml.bind.v2.model.impl from both jaxb.runtime and jaxb.core
error: module jaxb.runtime reads package com.sun.xml.bind.v2.model.annotation from both jaxb.runtime and jaxb.core
error: module jaxb.runtime reads package com.sun.xml.bind.v2.runtime from both jaxb.runtime and jaxb.core
error: module jaxb.runtime reads package com.sun.xml.bind.v2.runtime.unmarshaller from both jaxb.runtime and jaxb.core
error: module jaxb.runtime reads package com.sun.xml.bind.unmarshaller from both jaxb.runtime and jaxb.core
error: module txw2 reads package com.sun.xml.bind from both jaxb.runtime and jaxb.core
error: module txw2 reads package com.sun.xml.bind.util from both jaxb.runtime and jaxb.core
error: module txw2 reads package com.sun.xml.bind.marshaller from both jaxb.runtime and jaxb.core
error: module txw2 reads package com.sun.xml.bind.api from both jaxb.runtime and jaxb.core
error: module txw2 reads package com.sun.xml.bind.v2 from both jaxb.runtime and jaxb.core
error: module txw2 reads package com.sun.xml.bind.v2.util from both jaxb.runtime and jaxb.core
error: module txw2 reads package com.sun.xml.bind.v2.model.impl from both jaxb.runtime and jaxb.core
error: module txw2 reads package com.sun.xml.bind.v2.model.annotation from both jaxb.runtime and jaxb.core
error: module txw2 reads package com.sun.xml.bind.v2.runtime from both jaxb.runtime and jaxb.core
error: module txw2 reads package com.sun.xml.bind.v2.runtime.unmarshaller from both jaxb.runtime and jaxb.core
error: module txw2 reads package com.sun.xml.bind.unmarshaller from both jaxb.runtime and jaxb.core
error: module h2 reads package com.sun.xml.bind from both jaxb.runtime and jaxb.core
error: module h2 reads package com.sun.xml.bind.util from both jaxb.runtime and jaxb.core
error: module h2 reads package com.sun.xml.bind.marshaller from both jaxb.runtime and jaxb.core
error: module h2 reads package com.sun.xml.bind.api from both jaxb.runtime and jaxb.core
error: module h2 reads package com.sun.xml.bind.v2 from both jaxb.runtime and jaxb.core
error: module h2 reads package com.sun.xml.bind.v2.util from both jaxb.runtime and jaxb.core
error: module h2 reads package com.sun.xml.bind.v2.model.impl from both jaxb.runtime and jaxb.core
error: module h2 reads package com.sun.xml.bind.v2.model.annotation from both jaxb.runtime and jaxb.core
error: module h2 reads package com.sun.xml.bind.v2.runtime from both jaxb.runtime and jaxb.core
error: module h2 reads package com.sun.xml.bind.v2.runtime.unmarshaller from both jaxb.runtime and jaxb.core
error: module h2 reads package com.sun.xml.bind.unmarshaller from both jaxb.runtime and jaxb.core
error: module activation reads package com.sun.xml.bind from both jaxb.runtime and jaxb.core
error: module activation reads package com.sun.xml.bind.util from both jaxb.runtime and jaxb.core
error: module activation reads package com.sun.xml.bind.marshaller from both jaxb.runtime and jaxb.core
error: module activation reads package com.sun.xml.bind.api from both jaxb.runtime and jaxb.core
error: module activation reads package com.sun.xml.bind.v2 from both jaxb.runtime and jaxb.core
error: module activation reads package com.sun.xml.bind.v2.util from both jaxb.runtime and jaxb.core
error: module activation reads package com.sun.xml.bind.v2.model.impl from both jaxb.runtime and jaxb.core
error: module activation reads package com.sun.xml.bind.v2.model.annotation from both jaxb.runtime and jaxb.core
error: module activation reads package com.sun.xml.bind.v2.runtime from both jaxb.runtime and jaxb.core
error: module activation reads package com.sun.xml.bind.v2.runtime.unmarshaller from both jaxb.runtime and jaxb.core
error: module activation reads package com.sun.xml.bind.unmarshaller from both jaxb.runtime and jaxb.core
error: module xml.apis reads package com.sun.xml.bind from both jaxb.runtime and jaxb.core
100 errors
*****************************************************************************
ID : BR-V2-ERR-02
*****************************************************************************
Error occurred during initialization of boot layer
java.lang.module.FindException: Unable to derive module descriptor for mytarget/lib/geronimo-jta_1.1_spec-1.1.1.jar
Caused by: java.lang.IllegalArgumentException: geronimo.jta.1.1.spec: Invalid module name: '1' is not a Java identifier
*****************************************************************************
ID : BR-V2-ERR-03
*****************************************************************************
Error occurred during initialization of boot layer
java.lang.module.ResolutionException: Modules xml.apis and java.xml export package org.xml.sax.ext to module antlr
*****************************************************************************
ID : BR-V2-ERR-04
*****************************************************************************
error: the unnamed module reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module slf4j.api reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module jaxb.core reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module geronimo.jta.1.1.spec reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module hibernate.commons.annotations reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module stax.ex reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module hamcrest.core reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module istack.commons.runtime reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module junit reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module txw2 reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module jandex reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module h2 reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module activation reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module logback.classic reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module FastInfoset reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module jaxb.api reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module antlr reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module logback.core reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module dom4j reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module jboss.logging reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module hibernate.core reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module javassist reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
error: module hibernate.jpa reads package javax.transaction.xa from both java.sql and geronimo.jta.1.1.spec
src/main/java/module-info.java:1: error: module com.iluwatar.cqrs reads package javax.transaction.xa from both geronimo.jta.1.1.spec and java.sql
*****************************************************************************
ID : BR-V2-ERR-05
*****************************************************************************
17:14:22.686 [main] INFO org.hibernate.Version - HHH000412: Hibernate Core {5.0.1.Final}
17:14:22.690 [main] INFO org.hibernate.cfg.Environment - HHH000206: hibernate.properties not found
17:14:22.691 [main] INFO org.hibernate.cfg.Environment - HHH000021: Bytecode provider name : javassist
Dec 18, 2017 5:14:23 PM com.sun.xml.bind.v2.runtime.reflect.opt.Injector <clinit>
SEVERE: null
java.security.PrivilegedActionException: java.lang.ClassNotFoundException: sun.misc.Unsafe
at java.base/java.security.AccessController.doPrivileged(Native Method)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.reflect.opt.Injector.<clinit>(Injector.java:188)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:81)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:179)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:285)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.<init>(SingleElementNodeProperty.java:94)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:128)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.java:181)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:514)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:331)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:139)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1156)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:165)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at jaxb.api@2.2.3/javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:263)
at jaxb.api@2.2.3/javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:250)
at jaxb.api@2.2.3/javax.xml.bind.ContextFinder.find(ContextFinder.java:447)
at jaxb.api@2.2.3/javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:652)
at jaxb.api@2.2.3/javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:599)
at hibernate.core@5.0.1.Final/org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor.unmarshal(JaxbCfgProcessor.java:122)
at hibernate.core@5.0.1.Final/org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor.unmarshal(JaxbCfgProcessor.java:65)
at hibernate.core@5.0.1.Final/org.hibernate.boot.cfgxml.internal.ConfigLoader.loadConfigXmlResource(ConfigLoader.java:55)
at hibernate.core@5.0.1.Final/org.hibernate.boot.registry.StandardServiceRegistryBuilder.configure(StandardServiceRegistryBuilder.java:163)
at hibernate.core@5.0.1.Final/org.hibernate.boot.registry.StandardServiceRegistryBuilder.configure(StandardServiceRegistryBuilder.java:152)
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:44)
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.<clinit>(HibernateUtil.java:38)
at com.iluwatar.cqrs/com.iluwatar.cqrs.commandes.impl.CommandServiceImpl.<init>(CommandServiceImpl.java:40)
at com.iluwatar.cqrs/com.iluwatar.cqrs.app.App.main(App.java:60)
Caused by: java.lang.ClassNotFoundException: sun.misc.Unsafe
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:292)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.reflect.opt.Injector$2.run(Injector.java:191)
... 35 more
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.iluwatar.cqrs/com.iluwatar.cqrs.commandes.impl.CommandServiceImpl.<init>(CommandServiceImpl.java:40)
at com.iluwatar.cqrs/com.iluwatar.cqrs.app.App.main(App.java:60)
Caused by: java.lang.NullPointerException
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:311)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:97)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:87)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:179)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:285)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.<init>(SingleElementNodeProperty.java:94)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:128)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.java:181)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:514)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:331)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:139)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1156)
at jaxb.core@2.3.0/com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:165)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at jaxb.api@2.2.3/javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:263)
at jaxb.api@2.2.3/javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:250)
at jaxb.api@2.2.3/javax.xml.bind.ContextFinder.find(ContextFinder.java:447)
at jaxb.api@2.2.3/javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:652)
at jaxb.api@2.2.3/javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:599)
at hibernate.core@5.0.1.Final/org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor.unmarshal(JaxbCfgProcessor.java:122)
at hibernate.core@5.0.1.Final/org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor.unmarshal(JaxbCfgProcessor.java:65)
at hibernate.core@5.0.1.Final/org.hibernate.boot.cfgxml.internal.ConfigLoader.loadConfigXmlResource(ConfigLoader.java:55)
at hibernate.core@5.0.1.Final/org.hibernate.boot.registry.StandardServiceRegistryBuilder.configure(StandardServiceRegistryBuilder.java:163)
at hibernate.core@5.0.1.Final/org.hibernate.boot.registry.StandardServiceRegistryBuilder.configure(StandardServiceRegistryBuilder.java:152)
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:44)
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.<clinit>(HibernateUtil.java:38)
... 2 more
*****************************************************************************
ID : BR-V2-ERR-06
*****************************************************************************
17:15:53.071 [main] INFO org.hibernate.Version - HHH000412: Hibernate Core {5.0.1.Final}
17:15:53.075 [main] INFO org.hibernate.cfg.Environment - HHH000206: hibernate.properties not found
17:15:53.076 [main] INFO org.hibernate.cfg.Environment - HHH000021: Bytecode provider name : javassist
17:15:53.608 [main] INFO o.h.annotations.common.Version - HCANN000001: Hibernate Commons Annotations {5.0.0.Final}
17:15:53.692 [main] WARN o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000402: Using Hibernate built-in connection pool (not for production use!)
17:15:53.713 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000401: using driver [org.h2.Driver] at URL [jdbc:h2:mem:test]
17:15:53.713 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000046: Connection properties: {user=sa}
17:15:53.713 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000006: Autocommit mode: false
17:15:53.714 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000115: Hibernate connection pool size: 20 (min=1)
17:15:53.855 [main] INFO org.hibernate.dialect.Dialect - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
17:15:54.294 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000030: Cleaning up connection pool [jdbc:h2:mem:test]
org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
at hibernate.core@5.0.1.Final/org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:123)
at hibernate.core@5.0.1.Final/org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:77)
at hibernate.core@5.0.1.Final/org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:346)
at hibernate.core@5.0.1.Final/org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:444)
at hibernate.core@5.0.1.Final/org.hibernate.boot.internal.MetadataImpl.buildSessionFactory(MetadataImpl.java:170)
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:46)
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.<clinit>(HibernateUtil.java:38)
at com.iluwatar.cqrs/com.iluwatar.cqrs.commandes.impl.CommandServiceImpl.<init>(CommandServiceImpl.java:40)
at com.iluwatar.cqrs/com.iluwatar.cqrs.app.App.main(App.java:60)
Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:91)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:116)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:388)
at hibernate.core@5.0.1.Final/org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:502)
at hibernate.core@5.0.1.Final/org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:122)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
at hibernate.core@5.0.1.Final/org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:96)
... 8 more
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:88)
... 17 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to module javassist
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:337)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:281)
at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:198)
at java.base/java.lang.reflect.Method.setAccessible(Method.java:192)
at javassist@3.18.1-GA/javassist.util.proxy.SecurityActions.setAccessible(SecurityActions.java:103)
at javassist@3.18.1-GA/javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:181)
at javassist@3.18.1-GA/javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:164)
at javassist@3.18.1-GA/javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:507)
at javassist@3.18.1-GA/javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:492)
at javassist@3.18.1-GA/javassist.util.proxy.ProxyFactory.createClass1(ProxyFactory.java:428)
at javassist@3.18.1-GA/javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:400)
at hibernate.core@5.0.1.Final/org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:72)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:177)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:157)
at hibernate.core@5.0.1.Final/org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:63)
... 22 more
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.iluwatar.cqrs/com.iluwatar.cqrs.commandes.impl.CommandServiceImpl.<init>(CommandServiceImpl.java:40)
at com.iluwatar.cqrs/com.iluwatar.cqrs.app.App.main(App.java:60)
Caused by: java.lang.NullPointerException
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:50)
at com.iluwata
*****************************************************************************
ID : BR-V2-ERR-07
*****************************************************************************
17:17:01.570 [main] INFO org.hibernate.Version - HHH000412: Hibernate Core {5.0.1.Final}
17:17:01.574 [main] INFO org.hibernate.cfg.Environment - HHH000206: hibernate.properties not found
17:17:01.575 [main] INFO org.hibernate.cfg.Environment - HHH000021: Bytecode provider name : javassist
17:17:02.108 [main] INFO o.h.annotations.common.Version - HCANN000001: Hibernate Commons Annotations {5.0.0.Final}
17:17:02.197 [main] WARN o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000402: Using Hibernate built-in connection pool (not for production use!)
17:17:02.211 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000401: using driver [org.h2.Driver] at URL [jdbc:h2:mem:test]
17:17:02.211 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000046: Connection properties: {user=sa}
17:17:02.211 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000006: Autocommit mode: false
17:17:02.212 [main] INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000115: Hibernate connection pool size: 20 (min=1)
17:17:02.370 [main] INFO org.hibernate.dialect.Dialect - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
17:17:02.905 [main] INFO o.h.tool.hbm2ddl.SchemaExport - HHH000227: Running hbm2ddl schema export
17:17:03.347 [main] INFO o.h.tool.hbm2ddl.SchemaExport - HHH000230: Schema export complete
Exception in thread "main" java.lang.IllegalAccessError: class org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform (in module hibernate.core) cannot access class javax.transaction.SystemException (in module java.sql) because module java.sql does not export javax.transaction to module hibernate.core
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3139)
at java.base/java.lang.Class.privateGetPublicMethods(Class.java:3164)
at java.base/java.lang.Class.getMethods(Class.java:1861)
at hibernate.core@5.0.1.Final/org.hibernate.service.internal.AbstractServiceRegistryImpl.applyInjections(AbstractServiceRegistryImpl.java:261)
at hibernate.core@5.0.1.Final/org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:252)
at hibernate.core@5.0.1.Final/org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:214)
at hibernate.core@5.0.1.Final/org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)
at hibernate.core@5.0.1.Final/org.hibernate.internal.SessionFactoryImpl.canAccessTransactionManager(SessionFactoryImpl.java:1193)
at hibernate.core@5.0.1.Final/org.hibernate.internal.SessionFactoryImpl.buildCurrentSessionContext(SessionFactoryImpl.java:1204)
at hibernate.core@5.0.1.Final/org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:491)
at hibernate.core@5.0.1.Final/org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:444)
at hibernate.core@5.0.1.Final/org.hibernate.boot.internal.MetadataImpl.buildSessionFactory(MetadataImpl.java:170)
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:46)
at com.iluwatar.cqrs/com.iluwatar.cqrs.util.HibernateUtil.<clinit>(HibernateUtil.java:38)
at com.iluwatar.cqrs/com.iluwatar.cqrs.commandes.impl.CommandServiceImpl.<init>(CommandServiceImpl.java:40)
at com.iluwatar.cqrs/com.iluwatar.cqrs.app.App.main(App.java:60)
*****************************************************************************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.