[jboss-user] [Beginner's Corner] New message: "Log4J conflict?"

Bartek Kuczyński do-not-reply at jboss.com
Tue Feb 2 04:00:01 EST 2010


User development,

A new message was posted in the thread "Log4J conflict?":

http://community.jboss.org/message/523574#523574

Author  : Bartek Kuczyński
Profile : http://community.jboss.org/people/Koziołek

Message:
--------------------------------------------------------------
I use Jboss 4.2.3 and when I try to persist entity a get error like this:  Caused by: java.lang.reflect.UndeclaredThrowableException      at org.apache.commons.logging.impl.Log4jProxy.log(Log4jProxy.java:309)      at org.apache.commons.logging.impl.Log4jProxy.warn(Log4jProxy.java:273)      at org.apache.commons.logging.impl.Log4JLogger.warn(Log4JLogger.java:173)      at org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:77)      at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:42)      at org.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:96)      at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:99)      at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:131)      at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:87)      at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:38)      at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:618)      at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:592)      at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:596)      at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:212)      at firma.security.server.model.dao.PrivilegeDAOServer.persist(PrivilegeDAOServer.java:140)      at firma.stats.server.security.proxy.InstallService.install(InstallService.java:36)      at sun.reflect.GeneratedMethodAccessor715.invoke(Unknown Source)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)      at java.lang.reflect.Method.invoke(Method.java:597)      at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)      ... 22 more Caused by: java.lang.NullPointerException      at org.apache.log4j.helpers.PatternConverter.spacePad(PatternConverter.java:107)      at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:80)      at org.apache.log4j.PatternLayout.format(PatternLayout.java:502)      at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:302)      at org.apache.log4j.WriterAppender.append(WriterAppender.java:160)      at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)      at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)      at org.apache.log4j.Category.callAppenders(Category.java:206)      at org.apache.log4j.Category.forcedLog(Category.java:391)      at org.apache.log4j.Category.log(Category.java:856)      at sun.reflect.GeneratedMethodAccessor238.invoke(Unknown Source)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)      at java.lang.reflect.Method.invoke(Method.java:597)      at org.apache.commons.logging.impl.Log4jProxy.log(Log4jProxy.java:301)      ... 41 more 2010-02-01 15:52:11,330 INFO  [org.jboss.resource.connectionmanager.CachedConnectionManager] Closing a connection for you.  Please close them yourself: org.jboss.resource.adapter.jdbc.jdk6.WrappedConnectionJDK6 at 1092da7 java.lang.Throwable: STACKTRACE      at org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection(CachedConnectionManager.java:290)      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:423)      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:849)      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)      at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)      at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)      at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)      at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:119)      at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57)      at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1326)      at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:38)      at firma.security.server.model.dao.PrivilegeDAOServer.persist(PrivilegeDAOServer.java:139)      at firma.stats.server.security.proxy.InstallService.install(InstallService.java:36)      at sun.reflect.GeneratedMethodAccessor715.invoke(Unknown Source)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)      at java.lang.reflect.Method.invoke(Method.java:597)      at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)      at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:166)      at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)      at java.lang.Thread.run(Thread.java:619)  (Complite stack as attachment)  My question is this exception could has source in difrend versions of log4j? The NPE look like the log4j doesn't have all dependences.
--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/523574#523574




More information about the jboss-user mailing list