Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0028633
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] A. Platformminoralways2015-01-15 18:312015-01-15 18:31
ReportergorkaionView Statuspublic 
Assigned ToAugustoMauch 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabaseOracleJava version1.5.0_15
OS VersionGentooDatabase version11gAnt version1.7.0
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesJSON Datasource
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0028633: Better log of SqlGrammarException

DescriptionWhen 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 ReproduceOn an HQL based table modify it so it throws an SQLGrammarException
Proposed SolutionThis 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0028631 acknowledgedTriage Platform Base HQLDataSourceService setAdminMode without try & finally 

-  Notes
There are no notes attached to this issue.

- 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
Powered by Mantis Bugtracker