Hy all, my name is Alberto and i live i'm brazilian. I'm having problems with the hibernate session. When i try to open the sessio i get this error:
Code:
Exception in thread "main" java.lang.ExceptionInInitializerError
at br.com.lupa.persistencia.hibernate.HibernateFactory.<clinit>(HibernateFactory.java:25)
at br.com.lupa.persistencia.hibernate.UtilidadesDao.inserir(UtilidadesDao.java:26)
at br.com.lupa.negocio.ComputadorBO.inserir(ComputadorBO.java:29)
at br.com.lupa.negocio.GerenteLupa.registrarComponentes(GerenteLupa.java:45)
at br.com.lupa.testes.TesteAdcionaCimNaBase.main(TesteAdcionaCimNaBase.java:19)
Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.reflect.InvocationTargetException
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:111)
... 5 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
... 9 more
Caused by: java.lang.VerifyError: (class: org/apache/log4j/LogManager, method: <clinit> signature: ()V) Incompatible argument to function
at org.apache.log4j.Logger.getLogger(Logger.java:85)
at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:102)
... 14 more
Does someone know what is that? Any help is good.
Thanks,
Alberto