Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] A. Platformmajorhave not tried2015-04-16 10:562015-04-22 10:36
ReporteralostaleView Statuspublic 
Assigned Toalostale 
PriorityimmediateResolutionfixedFixed in Version3.0PR15Q2
StatusclosedFix in branchFixed in SCM revisionba268cfc7d89
ProjectionnoneETAnoneTarget Version3.0PR15Q2
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToAugustoMauch
Web browser
Regression levelPackaging and release
Regression date2015-01-26
Regression introduced in releasemain
Regression introduced by commit [^]
Triggers an Emergency PackNo

0029609: System cannot be rebuilt having Tomcat JDBC Pool

DescriptionSystem cannot be rebuilt having Tomcat JDBC Pool configured because errors are obtained in generate.entities task.
Steps To Reproduce* Install and configure Tomcat JDBC Pool module ( [^])
* run ant smartbuild
  --> This error is got

     [java] 220 [main] INFO org.openbravo.base.session.OBPropertiesProvider - Setting through file: /home/alostale/ws/pi-pg/openbravo/config/
     [java] 240 [main] ERROR org.openbravo.apachejdbcconnectionpool.JdbcExternalConnectionPool - Error while retrieving connection:
     [java] java.sql.SQLException
     [java] at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(
     [java] at org.apache.tomcat.jdbc.pool.PooledConnection.connect(
     [java] at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(
     [java] at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(
     [java] at org.apache.tomcat.jdbc.pool.ConnectionPool.init(
     [java] at org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(
     [java] at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(
     [java] at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(
     [java] at org.openbravo.apachejdbcconnectionpool.JdbcExternalConnectionPool.getConnection(
     [java] at org.openbravo.database.ConnectionProviderImpl.getConnection(
     [java] at org.openbravo.database.ConnectionProviderImpl.getConnection(
     [java] at org.openbravo.utils.OBRebuildAppender.append(
     [java] at org.apache.log4j.AppenderSkeleton.doAppend(
     [java] at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(
     [java] at org.apache.log4j.Category.callAppenders(
     [java] at org.apache.log4j.Category.forcedLog(
     [java] at
     [java] at org.openbravo.base.session.OBPropertiesProvider.setProperties(
     [java] at org.openbravo.base.session.OBPropertiesProvider.readPropertiesFromDevelopmentProject(
     [java] at org.openbravo.base.session.OBPropertiesProvider.getOpenbravoProperties(
Proposed SolutionThe problem is caused because rebuild tasks use OBRebuildAppender which logs in DB all messages with a level equal or higher than INFO, pool module gets the using OBPropertiesProvider which tries to log with info level the file the properties are in before they are set, this tries to log in DB invoking again the OBPropertiesProvider, this results in an error.

OBPropertiesProvider shouldn't log any INFO level message while setting the properties.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0029608 closedalostale System cannot be rebuilt having Tomcat JDBC Pool 

-  Notes
hgbot (developer)
2015-04-16 11:11

Repository: erp/backports/3.0PR15Q2
Changeset: ba268cfc7d89842ed7f2f85bae9c03bdd313d99f
Author: Asier Lostalé <asier.lostale <at>>
Date: Thu Apr 16 11:06:30 2015 +0200
URL: [^]

fixed bug 29609: System cannot be rebuilt having Tomcat JDBC Pool

  OBPropertiesProvider.setProperties method was invoked when rebuilding
  to get a connection, as this method tried to log with INFO level, it caused
  recursive invokations.

  Messages logged while setting properties have been lowered to DEBUG to prevent
  this situation.

M src/org/openbravo/base/session/
AugustoMauch (developer)
2015-04-22 10:36

Code reviewed and verified in [1]@ba268cfc7d89

[1] [^]

- Issue History
Date Modified Username Field Change
2015-04-16 11:01 alostale Type defect => backport
2015-04-16 11:01 alostale Target Version => 3.0PR15Q2
2015-04-16 11:02 alostale Assigned To platform => alostale
2015-04-16 11:11 hgbot Checkin
2015-04-16 11:11 hgbot Note Added: 0076579
2015-04-16 11:11 hgbot Status scheduled => resolved
2015-04-16 11:11 hgbot Resolution open => fixed
2015-04-16 11:11 hgbot Fixed in SCM revision => [^]
2015-04-16 13:13 dmitry_mezentsev Tag Attached: Approved
2015-04-22 10:36 AugustoMauch Note Added: 0076682
2015-04-22 10:36 AugustoMauch Status resolved => closed
2015-04-22 10:36 AugustoMauch Fixed in Version => 3.0PR15Q2

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker