You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Patrick Idem (JIRA)" <ib...@incubator.apache.org> on 2005/04/15 22:20:17 UTC

[jira] Created: (IBATIS-109) PaginatedList bug

PaginatedList bug
-----------------

         Key: IBATIS-109
         URL: http://issues.apache.org/jira/browse/IBATIS-109
     Project: iBatis for Java
        Type: Bug
  Components: SQL Maps  
    Versions: 2.0.8, 2.0.9, 2.0.9b, 2.1.0, 2.1.1, 2.1.2    
 Environment: Any Java environment
    Reporter: Patrick Idem
    Priority: Critical


Using DB2 database drivers cases an exception to be thrown when calling paginatedList.next() and the current page is the page before the last page. From what I can determine the PaginatedList class retrieves future records in order to determine if there are any more pages. An Exception will be caused in the following situation:

A database table has 11 records.
First issue a command to get a paginated list of all the records with a page size of 10:
PaginatedList list = queryForPaginatedList("getAllRecords", null, 10)

Since the paginated list reads ahead it will retrieve all 11 records and reach the end of the ResultSet.

Now if we want to view the second page (which only consists of 1 record) we would then do the following:
list.next()

Now, calling list.next() should not have to go to the database since we had already reached the end of the ResultSet but it does! This is where the problem happens. DB2 drivers automatically close the ResultSet when you read in the last row so the ResultSet has been closed.

I am suspecting that this problem is only serious when using DB2 drivers but it is still a problem. The paginated list object should be smart enough to know that there are no more results and not try to hit the database that last time.

The actually DB2 exception that is thrown is the following:
com.ibm.db2.jcc.a.SqlException: Invalid operation: result set closed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (IBATIS-109) Make PaginatedList work with IBM's broken JDBC driver

Posted by "Clinton Begin (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATIS-109?page=all ]

Clinton Begin updated IBATIS-109:
---------------------------------

       type: Improvement  (was: Bug)
    Summary: Make PaginatedList work with IBM's broken JDBC driver  (was: PaginatedList bug)

> Make PaginatedList work with IBM's broken JDBC driver
> -----------------------------------------------------
>
>          Key: IBATIS-109
>          URL: http://issues.apache.org/jira/browse/IBATIS-109
>      Project: iBatis for Java
>         Type: Improvement
>   Components: SQL Maps
>     Versions: 2.0.8, 2.0.9, 2.0.9b, 2.1.0, 2.1.1, 2.1.2
>  Environment: Any Java environment
>     Reporter: Patrick Idem
>     Priority: Critical

>
> Using DB2 database drivers cases an exception to be thrown when calling paginatedList.next() and the current page is the page before the last page. From what I can determine the PaginatedList class retrieves future records in order to determine if there are any more pages. An Exception will be caused in the following situation:
> A database table has 11 records.
> First issue a command to get a paginated list of all the records with a page size of 10:
> PaginatedList list = queryForPaginatedList("getAllRecords", null, 10)
> Since the paginated list reads ahead it will retrieve all 11 records and reach the end of the ResultSet.
> Now if we want to view the second page (which only consists of 1 record) we would then do the following:
> list.next()
> Now, calling list.next() should not have to go to the database since we had already reached the end of the ResultSet but it does! This is where the problem happens. DB2 drivers automatically close the ResultSet when you read in the last row so the ResultSet has been closed.
> I am suspecting that this problem is only serious when using DB2 drivers but it is still a problem. The paginated list object should be smart enough to know that there are no more results and not try to hit the database that last time.
> The actually DB2 exception that is thrown is the following:
> com.ibm.db2.jcc.a.SqlException: Invalid operation: result set closed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (IBATIS-109) Make PaginatedList work with IBM's broken JDBC driver

Posted by "Patrick Idem (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATIS-109?page=all ]

Patrick Idem updated IBATIS-109:
--------------------------------

    Attachment: SqlExecutor.java

I have attached an update to the com.ibatis.sqlmap.engine.execution.SqlExecutor class to solve the problem that can occur if handleResults is called with a skip value that is greater than the number of records in the returned resultSet. I simply replaced the "break;" statement on line 368 wtih a "return;" statement.

> Make PaginatedList work with IBM's broken JDBC driver
> -----------------------------------------------------
>
>          Key: IBATIS-109
>          URL: http://issues.apache.org/jira/browse/IBATIS-109
>      Project: iBatis for Java
>         Type: Improvement
>   Components: SQL Maps
>     Versions: 2.0.8, 2.0.9, 2.1.0, 2.1.2, 2.1.1, 2.0.9b
>  Environment: Any Java environment
>     Reporter: Patrick Idem
>     Priority: Minor
>  Attachments: SqlExecutor.java
>
> Using DB2 database drivers cases an exception to be thrown when calling paginatedList.next() and the current page is the page before the last page. From what I can determine the PaginatedList class retrieves future records in order to determine if there are any more pages. An Exception will be caused in the following situation:
> A database table has 11 records.
> First issue a command to get a paginated list of all the records with a page size of 10:
> PaginatedList list = queryForPaginatedList("getAllRecords", null, 10)
> Since the paginated list reads ahead it will retrieve all 11 records and reach the end of the ResultSet.
> Now if we want to view the second page (which only consists of 1 record) we would then do the following:
> list.next()
> Now, calling list.next() should not have to go to the database since we had already reached the end of the ResultSet but it does! This is where the problem happens. DB2 drivers automatically close the ResultSet when you read in the last row so the ResultSet has been closed.
> I am suspecting that this problem is only serious when using DB2 drivers but it is still a problem. The paginated list object should be smart enough to know that there are no more results and not try to hit the database that last time.
> The actually DB2 exception that is thrown is the following:
> com.ibm.db2.jcc.a.SqlException: Invalid operation: result set closed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (IBATIS-109) PaginatedList bug

Posted by "Clinton Begin (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATIS-109?page=comments#action_65434 ]
     
Clinton Begin commented on IBATIS-109:
--------------------------------------


Typical IBM garbage.  Why must they be different?  So lame.  

The ResultSet interface clearly describes when a ResultSet should be automatically closed.

-------------------------------
public void close()
           throws SQLException

Releases this ResultSet object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed.

Note:  A ResultSet object is automatically closed by the Statement object that generated it when that Statement object is closed, re-executed, or is used to retrieve the next result from a sequence of multiple results. A ResultSet object is also automatically closed when it is garbage collected.

Throws:  SQLException - if a database access error occurs 

--------------------------------

Seems pretty clear to me.  The connection should NOT be automatically closed just because the end of the record set has been reached.  Furthermore, the behaviour of .next() is pretty clear with how "no more rows" should be communicated:

--------------------------------
public boolean next()
             throws SQLException

    Moves the cursor down one row from its current position. A ResultSet cursor is initially positioned before the first row; the first call to the method next makes the first row the current row; the second call makes the second row the current row, and so on.

    If an input stream is open for the current row, a call to the method next will implicitly close it. A ResultSet object's warning chain is cleared when a new row is read.

    Returns:
        true if the new current row is valid; false if there are no more rows 
    Throws:
        SQLException - if a database access error occurs
--------------------------------

This is a bug in the IBM driver.  

That said, I'll leave this open as a feature request.  For now, I agree with Brandon, you should probably be useing queryForList() with offset and length params.

Cheers,
Clinton

> PaginatedList bug
> -----------------
>
>          Key: IBATIS-109
>          URL: http://issues.apache.org/jira/browse/IBATIS-109
>      Project: iBatis for Java
>         Type: Bug
>   Components: SQL Maps
>     Versions: 2.0.8, 2.0.9, 2.0.9b, 2.1.0, 2.1.1, 2.1.2
>  Environment: Any Java environment
>     Reporter: Patrick Idem
>     Priority: Critical

>
> Using DB2 database drivers cases an exception to be thrown when calling paginatedList.next() and the current page is the page before the last page. From what I can determine the PaginatedList class retrieves future records in order to determine if there are any more pages. An Exception will be caused in the following situation:
> A database table has 11 records.
> First issue a command to get a paginated list of all the records with a page size of 10:
> PaginatedList list = queryForPaginatedList("getAllRecords", null, 10)
> Since the paginated list reads ahead it will retrieve all 11 records and reach the end of the ResultSet.
> Now if we want to view the second page (which only consists of 1 record) we would then do the following:
> list.next()
> Now, calling list.next() should not have to go to the database since we had already reached the end of the ResultSet but it does! This is where the problem happens. DB2 drivers automatically close the ResultSet when you read in the last row so the ResultSet has been closed.
> I am suspecting that this problem is only serious when using DB2 drivers but it is still a problem. The paginated list object should be smart enough to know that there are no more results and not try to hit the database that last time.
> The actually DB2 exception that is thrown is the following:
> com.ibm.db2.jcc.a.SqlException: Invalid operation: result set closed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (IBATIS-109) PaginatedList bug

Posted by "Brandon Goodin (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATIS-109?page=comments#action_62938 ]
     
Brandon Goodin commented on IBATIS-109:
---------------------------------------

I would recommend that you use the queryForList(String id, Object parameterObject, int skip, int max) method as an alternative.

> PaginatedList bug
> -----------------
>
>          Key: IBATIS-109
>          URL: http://issues.apache.org/jira/browse/IBATIS-109
>      Project: iBatis for Java
>         Type: Bug
>   Components: SQL Maps
>     Versions: 2.0.8, 2.0.9, 2.0.9b, 2.1.0, 2.1.1, 2.1.2
>  Environment: Any Java environment
>     Reporter: Patrick Idem
>     Priority: Critical

>
> Using DB2 database drivers cases an exception to be thrown when calling paginatedList.next() and the current page is the page before the last page. From what I can determine the PaginatedList class retrieves future records in order to determine if there are any more pages. An Exception will be caused in the following situation:
> A database table has 11 records.
> First issue a command to get a paginated list of all the records with a page size of 10:
> PaginatedList list = queryForPaginatedList("getAllRecords", null, 10)
> Since the paginated list reads ahead it will retrieve all 11 records and reach the end of the ResultSet.
> Now if we want to view the second page (which only consists of 1 record) we would then do the following:
> list.next()
> Now, calling list.next() should not have to go to the database since we had already reached the end of the ResultSet but it does! This is where the problem happens. DB2 drivers automatically close the ResultSet when you read in the last row so the ResultSet has been closed.
> I am suspecting that this problem is only serious when using DB2 drivers but it is still a problem. The paginated list object should be smart enough to know that there are no more results and not try to hit the database that last time.
> The actually DB2 exception that is thrown is the following:
> com.ibm.db2.jcc.a.SqlException: Invalid operation: result set closed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (IBATIS-109) Make PaginatedList work with IBM's broken JDBC driver

Posted by "Larry Meadors (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATIS-109?page=all ]

Larry Meadors updated IBATIS-109:
---------------------------------

    Priority: Minor  (was: Critical)

This is not a critical issue, workarounds exist, and it impact a very small number of users.

> Make PaginatedList work with IBM's broken JDBC driver
> -----------------------------------------------------
>
>          Key: IBATIS-109
>          URL: http://issues.apache.org/jira/browse/IBATIS-109
>      Project: iBatis for Java
>         Type: Improvement
>   Components: SQL Maps
>     Versions: 2.0.8, 2.0.9, 2.1.0, 2.1.1, 2.1.2, 2.0.9b
>  Environment: Any Java environment
>     Reporter: Patrick Idem
>     Priority: Minor

>
> Using DB2 database drivers cases an exception to be thrown when calling paginatedList.next() and the current page is the page before the last page. From what I can determine the PaginatedList class retrieves future records in order to determine if there are any more pages. An Exception will be caused in the following situation:
> A database table has 11 records.
> First issue a command to get a paginated list of all the records with a page size of 10:
> PaginatedList list = queryForPaginatedList("getAllRecords", null, 10)
> Since the paginated list reads ahead it will retrieve all 11 records and reach the end of the ResultSet.
> Now if we want to view the second page (which only consists of 1 record) we would then do the following:
> list.next()
> Now, calling list.next() should not have to go to the database since we had already reached the end of the ResultSet but it does! This is where the problem happens. DB2 drivers automatically close the ResultSet when you read in the last row so the ResultSet has been closed.
> I am suspecting that this problem is only serious when using DB2 drivers but it is still a problem. The paginated list object should be smart enough to know that there are no more results and not try to hit the database that last time.
> The actually DB2 exception that is thrown is the following:
> com.ibm.db2.jcc.a.SqlException: Invalid operation: result set closed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (IBATIS-109) PaginatedList bug

Posted by "Patrick Idem (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATIS-109?page=comments#action_63394 ]
     
Patrick Idem commented on IBATIS-109:
-------------------------------------

You are right that I meant to use nextPage() instead of next(). 

With DB2 drivers the problem is consistent and easily reproducible.

Just to give you a better idea of how I am using the PaginatedList, here is what I am doing:

When the user does a search I create a PaginatedList for the search results. I put the PaginatedList into the session so that when the user chooses "Next Page" or "Previous Page" I call the appropriate functions on the same paginated list by looking up the paginated list in the session.

I have set up logging so that I see when iBATIS goes to the database and the results that are returned. I clearly see that when the user is on the next to the last page that iBATIS has already retrieved all of the results for the ResultSet. I notice now that ResultSets are not reused, but when stepping through the iBATIS source code I do see that iBATIS is going to the database even though it has already retrieved all of the results. In the example above where there are 11 records total and a page size of 10 is used, I see that when going to the second page it skips over the 11 records and then calls rs.next(). But since it has already skipped over all 11 results rs.next() throws a "Result set closed" exception.

I believe there are two solutions to this problem:
1) While skipping results and rs.next() returns false you should return rather than break since you know that all results have been skipped and there are no records to handle. 
2) Have the paginated list recognize that there are no more pages and not go to the database when nextPage() has been called and all of the results have been retrieved.

The second solution is better since it avoids an unnecassary query to the database.

Hope that helps. I still believe this is a bug that is masked by the fact that most database drivers simply have ResultSet.next() return false even though the end of the ResultSet has already been reached as opposed to the DB2 drivers throwing an Exception.

Hope that helps.

Here is the relevant stack trace for the error:
com.ibm.db2.jcc.a.SqlException: Invalid operation: result set closed
	at com.ibm.db2.jcc.a.cj.bl(cj.java:3347)
	at com.ibm.db2.jcc.a.cj.c(cj.java:292)
	at com.ibm.db2.jcc.a.cj.next(cj.java:279)
	at org.apache.commons.dbcp.DelegatingResultSet.next(DelegatingResultSet.java:196)
	at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.ibatis.common.jdbc.logging.ResultSetLogProxy.invoke(ResultSetLogProxy.java:47)
	at $Proxy5.next(Unknown Source)
	at com.ibatis.sqlmap.engine.execution.SqlExecutor.handleResults(SqlExecutor.java:353)
	at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:179)
	at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.sqlExecuteQuery(GeneralStatement.java:201)
	at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(GeneralStatement.java:169)
	at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForList(GeneralStatement.java:119)
	at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:610)
	at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:109)
	at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(SqlMapClientImpl.java:81)
	at com.ibatis.sqlmap.engine.mapping.statement.PaginatedDataList.getList(PaginatedDataList.java:138)
	at com.ibatis.sqlmap.engine.mapping.statement.PaginatedDataList.pageForward(PaginatedDataList.java:53)
	at com.ibatis.sqlmap.engine.mapping.statement.PaginatedDataList.nextPage(PaginatedDataList.java:145)
	at com.fcb.inv.actions.SoftwareAction.nextSoftwarePage(SoftwareAction.java:78)

> PaginatedList bug
> -----------------
>
>          Key: IBATIS-109
>          URL: http://issues.apache.org/jira/browse/IBATIS-109
>      Project: iBatis for Java
>         Type: Bug
>   Components: SQL Maps
>     Versions: 2.0.8, 2.0.9, 2.0.9b, 2.1.0, 2.1.1, 2.1.2
>  Environment: Any Java environment
>     Reporter: Patrick Idem
>     Priority: Critical

>
> Using DB2 database drivers cases an exception to be thrown when calling paginatedList.next() and the current page is the page before the last page. From what I can determine the PaginatedList class retrieves future records in order to determine if there are any more pages. An Exception will be caused in the following situation:
> A database table has 11 records.
> First issue a command to get a paginated list of all the records with a page size of 10:
> PaginatedList list = queryForPaginatedList("getAllRecords", null, 10)
> Since the paginated list reads ahead it will retrieve all 11 records and reach the end of the ResultSet.
> Now if we want to view the second page (which only consists of 1 record) we would then do the following:
> list.next()
> Now, calling list.next() should not have to go to the database since we had already reached the end of the ResultSet but it does! This is where the problem happens. DB2 drivers automatically close the ResultSet when you read in the last row so the ResultSet has been closed.
> I am suspecting that this problem is only serious when using DB2 drivers but it is still a problem. The paginated list object should be smart enough to know that there are no more results and not try to hit the database that last time.
> The actually DB2 exception that is thrown is the following:
> com.ibm.db2.jcc.a.SqlException: Invalid operation: result set closed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (IBATIS-109) PaginatedList bug

Posted by "Clinton Begin (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATIS-109?page=comments#action_63140 ]
     
Clinton Begin commented on IBATIS-109:
--------------------------------------


This is not possible the way it's described.  Everything stated is true except that PaginatedDataList doesn't reuse ResultSets and it would never read more records than deemed acceptable by the return value of ResultSet.next().


> PaginatedList bug
> -----------------
>
>          Key: IBATIS-109
>          URL: http://issues.apache.org/jira/browse/IBATIS-109
>      Project: iBatis for Java
>         Type: Bug
>   Components: SQL Maps
>     Versions: 2.0.8, 2.0.9, 2.1.0, 2.1.1, 2.1.2, 2.0.9b
>  Environment: Any Java environment
>     Reporter: Patrick Idem
>     Priority: Critical

>
> Using DB2 database drivers cases an exception to be thrown when calling paginatedList.next() and the current page is the page before the last page. From what I can determine the PaginatedList class retrieves future records in order to determine if there are any more pages. An Exception will be caused in the following situation:
> A database table has 11 records.
> First issue a command to get a paginated list of all the records with a page size of 10:
> PaginatedList list = queryForPaginatedList("getAllRecords", null, 10)
> Since the paginated list reads ahead it will retrieve all 11 records and reach the end of the ResultSet.
> Now if we want to view the second page (which only consists of 1 record) we would then do the following:
> list.next()
> Now, calling list.next() should not have to go to the database since we had already reached the end of the ResultSet but it does! This is where the problem happens. DB2 drivers automatically close the ResultSet when you read in the last row so the ResultSet has been closed.
> I am suspecting that this problem is only serious when using DB2 drivers but it is still a problem. The paginated list object should be smart enough to know that there are no more results and not try to hit the database that last time.
> The actually DB2 exception that is thrown is the following:
> com.ibm.db2.jcc.a.SqlException: Invalid operation: result set closed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (IBATIS-109) PaginatedList bug

Posted by "Brandon Goodin (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATIS-109?page=comments#action_63127 ]
     
Brandon Goodin commented on IBATIS-109:
---------------------------------------

Another thought, are you using FORWARD_ONLY resulset type? Maybe if you changed it's type it wouldn't close it out. Also, you would be using list.nextPage() because next() does not exist.

> PaginatedList bug
> -----------------
>
>          Key: IBATIS-109
>          URL: http://issues.apache.org/jira/browse/IBATIS-109
>      Project: iBatis for Java
>         Type: Bug
>   Components: SQL Maps
>     Versions: 2.0.8, 2.0.9, 2.1.0, 2.1.1, 2.1.2, 2.0.9b
>  Environment: Any Java environment
>     Reporter: Patrick Idem
>     Priority: Critical

>
> Using DB2 database drivers cases an exception to be thrown when calling paginatedList.next() and the current page is the page before the last page. From what I can determine the PaginatedList class retrieves future records in order to determine if there are any more pages. An Exception will be caused in the following situation:
> A database table has 11 records.
> First issue a command to get a paginated list of all the records with a page size of 10:
> PaginatedList list = queryForPaginatedList("getAllRecords", null, 10)
> Since the paginated list reads ahead it will retrieve all 11 records and reach the end of the ResultSet.
> Now if we want to view the second page (which only consists of 1 record) we would then do the following:
> list.next()
> Now, calling list.next() should not have to go to the database since we had already reached the end of the ResultSet but it does! This is where the problem happens. DB2 drivers automatically close the ResultSet when you read in the last row so the ResultSet has been closed.
> I am suspecting that this problem is only serious when using DB2 drivers but it is still a problem. The paginated list object should be smart enough to know that there are no more results and not try to hit the database that last time.
> The actually DB2 exception that is thrown is the following:
> com.ibm.db2.jcc.a.SqlException: Invalid operation: result set closed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira