Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0029609 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] A. Platform | major | have not tried | 2015-04-16 10:56 | 2015-04-22 10:36 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | 3.0PR15Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | ba268cfc7d89 | ||||
Projection | none | ETA | none | Target Version | 3.0PR15Q2 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | AugustoMauch | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | Packaging and release | |||||||
Regression date | 2015-01-26 | |||||||
Regression introduced in release | main | |||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/ad079bdad031de6cb0c8cf7cb8a82d264950e6db [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0029609: System cannot be rebuilt having Tomcat JDBC Pool | |||||||
Description | System 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 (http://wiki.openbravo.com/wiki/Modules:Tomcat_JDBC_Connection_Pool [^]) * run ant smartbuild --> This error is got generate.entities.quick: [java] 220 [main] INFO org.openbravo.base.session.OBPropertiesProvider - Setting Openbravo.properties through file: /home/alostale/ws/pi-pg/openbravo/config/Openbravo.properties [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(PooledConnection.java:243) [java] at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:176) [java] at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:653) [java] at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:595) [java] at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:458) [java] at org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:130) [java] at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:99) [java] at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:110) [java] at org.openbravo.apachejdbcconnectionpool.JdbcExternalConnectionPool.getConnection(JdbcExternalConnectionPool.java:60) [java] at org.openbravo.database.ConnectionProviderImpl.getConnection(ConnectionProviderImpl.java:225) [java] at org.openbravo.database.ConnectionProviderImpl.getConnection(ConnectionProviderImpl.java:209) [java] at org.openbravo.utils.OBRebuildAppender.append(OBRebuildAppender.java:65) [java] at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251) [java] at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66) [java] at org.apache.log4j.Category.callAppenders(Category.java:206) [java] at org.apache.log4j.Category.forcedLog(Category.java:391) [java] at org.apache.log4j.Category.info(Category.java:666) [java] at org.openbravo.base.session.OBPropertiesProvider.setProperties(OBPropertiesProvider.java:132) [java] at org.openbravo.base.session.OBPropertiesProvider.readPropertiesFromDevelopmentProject(OBPropertiesProvider.java:168) [java] at org.openbravo.base.session.OBPropertiesProvider.getOpenbravoProperties(OBPropertiesProvider.java:70) ... | |||||||
Proposed Solution | The 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 Openbravo.properties 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. | |||||||
Tags | Approved | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0076579) hgbot (developer) 2015-04-16 11:11 |
Repository: erp/backports/3.0PR15Q2 Changeset: ba268cfc7d89842ed7f2f85bae9c03bdd313d99f Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Thu Apr 16 11:06:30 2015 +0200 URL: http://code.openbravo.com/erp/backports/3.0PR15Q2/rev/ba268cfc7d89842ed7f2f85bae9c03bdd313d99f [^] 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/OBPropertiesProvider.java --- |
(0076682) AugustoMauch (administrator) 2015-04-22 10:36 |
Code reviewed and verified in [1]@ba268cfc7d89 [1] https://code.openbravo.com/erp/backports/3.0PR15Q2 [^] |
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 | => http://code.openbravo.com/erp/backports/3.0PR15Q2/rev/ba268cfc7d89842ed7f2f85bae9c03bdd313d99f [^] |
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 |