Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0028633 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
feature request | [Openbravo ERP] A. Platform | minor | always | 2015-01-15 18:31 | 2015-01-15 18:31 | |||||||
Reporter | gorkaion | View Status | public | |||||||||
Assigned To | AugustoMauch | |||||||||||
Priority | normal | Resolution | open | Fixed in Version | ||||||||
Status | new | Fix in branch | Fixed in SCM revision | |||||||||
Projection | none | ETA | none | Target Version | ||||||||
OS | Linux 32 bit | Database | Oracle | Java version | 1.5.0_15 | |||||||
OS Version | Gentoo | Database version | 11g | Ant version | 1.7.0 | |||||||
Product Version | SCM revision | |||||||||||
Review Assigned To | ||||||||||||
Web browser | ||||||||||||
Modules | JSON Datasource | |||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0028633: Better log of SqlGrammarException | |||||||||||
Description | When the HQL of a HQLDataSourceService fails with an SqlGrammarException the log of the error is not meaningful. It would be nice if this type of exceptions are caught so the sql causing them is also included in the log using the SqlGrammarException.getSql() method. | |||||||||||
Steps To Reproduce | On an HQL based table modify it so it throws an SQLGrammarException | |||||||||||
Proposed Solution | This kind of exception is thrown at least by the list() method executed in the getData() method of the HQLDataSourceService class. The exception is managed by the handleException() method of the DataSourceServlet class. There are 2 possibilities: 1. Add a cast in the DataSourceServlet.class so any datasource implementation throwing this exception is covered. 2. Add a try/catch in the HQLDataSourceService class for SQLGrammarExceptions to log the wrong SQL and throw it again so it is managed by the DataSourceServlet as usual. | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | ||||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Issue History | |||
Date Modified | Username | Field | Change |
2015-01-15 18:31 | gorkaion | New Issue | |
2015-01-15 18:31 | gorkaion | Assigned To | => AugustoMauch |
2015-01-15 18:31 | gorkaion | Modules | => JSON Datasource |
2015-01-15 18:31 | gorkaion | Triggers an Emergency Pack | => No |
2015-01-15 18:31 | gorkaion | Issue generated from | 0028631 |
2015-01-15 18:31 | gorkaion | Relationship added | related to 0028631 |
Copyright © 2000 - 2009 MantisBT Group |