An empirical study on the characteristics of database access bugs in Java applications

Show simple item record

dc.contributor.author Liu, Wei
dc.contributor.author Mondal, Shouvick
dc.contributor.author Chen, Tse Hsun
dc.coverage.spatial United States of America
dc.date.accessioned 2024-05-30T11:50:00Z
dc.date.available 2024-05-30T11:50:00Z
dc.date.issued 2024-09
dc.identifier.citation Liu, Wei; Mondal, Shouvick and Chen, Tse Hsun, "An empirical study on the characteristics of database access bugs in Java applications", ACM Transactions on Software Engineering and Methodology, DOI: 10.1145/3672449, vol. 33, no. 7, Sep. 2024.
dc.identifier.issn 1049-331X
dc.identifier.issn 1557-7392
dc.identifier.uri https://doi.org/10.1145/3672449
dc.identifier.uri https://repository.iitgn.ac.in/handle/123456789/10076
dc.description.abstract Database-backed applications rely on the database access code to interact with the underlying database management systems (DBMSs). Although many prior studies aim at database access issues like SQL anti-patterns or SQL code smells, there is a lack of study of database access bugs during the maintenance of database-backed applications. In this paper, we empirically investigate 423 database access bugs collected from seven large-scale Java open source applications that use relational database management systems (e.g., MySQL or PostgreSQL). We study the characteristics (e.g., occurrence and root causes) of the bugs by manually examining the bug reports and commit histories. We find that the number of reported database and non-database access bugs share a similar trend but their modified files in bug fixing commits are different. Additionally, we generalize categories of the root causes of database access bugs, containing five main categories (SQL queries, Schema, API, Configuration, SQL query result) and 25 unique root causes. We find that the bugs pertaining to SQL queries, Schema, and API cover 84.2% of database access bugs across all studied applications. In particular, SQL queries bug (54%) and API bug (38.7%) are the most frequent issues when using JDBC and Hibernate, respectively. Finally, we provide a discussion on the implications of our findings for developers and researchers.
dc.description.statementofresponsibility by Wei Liu, Shouvick Mondal and Tse Hsun Chen
dc.format.extent vol. 33, no. 7
dc.language.iso en_US
dc.publisher Association for Computing Machinery (ACM)
dc.title An empirical study on the characteristics of database access bugs in Java applications
dc.type Article
dc.relation.journal ACM Transactions on Software Engineering and Methodology


Files in this item

Files Size Format View

There are no files associated with this item.

This item appears in the following Collection(s)

Show simple item record

Search Digital Repository


Browse

My Account