You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Hideyuki Suzumi (JIRA)" <ib...@incubator.apache.org> on 2008/07/02 11:34:45 UTC
[jira] Created: (IBATIS-519) Probably, remapResults is
thread-unsafe
Probably, remapResults is thread-unsafe
---------------------------------------
Key: IBATIS-519
URL: https://issues.apache.org/jira/browse/IBATIS-519
Project: iBatis for Java
Issue Type: Bug
Components: SQL Maps
Affects Versions: 2.3.2, 2.3.0
Reporter: Hideyuki Suzumi
Priority: Critical
When remapResults is true, The list of the query result often contains null.
The attached sample program can reproduce it.
Probably, remapResults is thread-unsafe.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (IBATIS-519) Probably, remapResults is
thread-unsafe
Posted by "Kai Grabfelder (JIRA)" <ib...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/IBATIS-519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628980#action_12628980 ]
kaig edited comment on IBATIS-519 at 9/7/08 10:31 AM:
----------------------------------------------------------------
Added maven project (threadtest.zip) with junit testcase, configured to run in an in memory h2 database. Just run mvn install to see that the test that uses remap=true fails. I'll have a look at the iBATIS internals and try to create a patch...
was (Author: kaig):
Added maven project with testcase, configured to run in an in memory h2 database. Just run mvn install to see that the test that uses remap=true fails. I'll have a look at the iBATIS internals and try to attach a patch...
> Probably, remapResults is thread-unsafe
> ---------------------------------------
>
> Key: IBATIS-519
> URL: https://issues.apache.org/jira/browse/IBATIS-519
> Project: iBatis for Java
> Issue Type: Bug
> Components: SQL Maps
> Affects Versions: 2.3.0, 2.3.2, 2.3.3
> Reporter: Hideyuki Suzumi
> Priority: Critical
> Attachments: ibatis-remapResults-problem.zip, ibatis-standalone.zip, threadtest.zip
>
>
> When remapResults is true, The list of the query result often contains null.
> The attached sample program can reproduce it.
> Probably, remapResults is thread-unsafe.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IBATIS-519) Probably, remapResults is
thread-unsafe
Posted by "Kai Grabfelder (JIRA)" <ib...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/IBATIS-519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629002#action_12629002 ]
Kai Grabfelder commented on IBATIS-519:
---------------------------------------
this only happens when no resultMap is specifed. Thus as a workaround add an explicit resultMap mapping to your statements when remapResults=true.
> Probably, remapResults is thread-unsafe
> ---------------------------------------
>
> Key: IBATIS-519
> URL: https://issues.apache.org/jira/browse/IBATIS-519
> Project: iBatis for Java
> Issue Type: Bug
> Components: SQL Maps
> Affects Versions: 2.3.0, 2.3.2, 2.3.3
> Reporter: Hideyuki Suzumi
> Priority: Critical
> Attachments: ibatis-remapResults-problem.zip, ibatis-standalone.zip, threadtest.zip
>
>
> When remapResults is true, The list of the query result often contains null.
> The attached sample program can reproduce it.
> Probably, remapResults is thread-unsafe.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IBATIS-519) Probably, remapResults is
thread-unsafe
Posted by "Hideyuki Suzumi (JIRA)" <ib...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/IBATIS-519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629138#action_12629138 ]
Hideyuki Suzumi commented on IBATIS-519:
----------------------------------------
I cannot access ibatis 2 trunk.
Therefore, I applied the patch to ibatis-2.3.3.720.
And, my test cases work well.
Thanks!
> Probably, remapResults is thread-unsafe
> ---------------------------------------
>
> Key: IBATIS-519
> URL: https://issues.apache.org/jira/browse/IBATIS-519
> Project: iBatis for Java
> Issue Type: Bug
> Components: SQL Maps
> Affects Versions: 2.3.0, 2.3.2, 2.3.3
> Reporter: Hideyuki Suzumi
> Priority: Critical
> Fix For: 2.3.4
>
> Attachments: AutoResultMap.trunk.patch, ibatis-remapResults-problem.zip, ibatis-standalone.zip, threadtest.zip
>
>
> When remapResults is true, The list of the query result often contains null.
> The attached sample program can reproduce it.
> Probably, remapResults is thread-unsafe.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IBATIS-519) Probably, remapResults is
thread-unsafe
Posted by "Hideyuki Suzumi (JIRA)" <ib...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/IBATIS-519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623370#action_12623370 ]
Hideyuki Suzumi commented on IBATIS-519:
----------------------------------------
com.ibatis.sqlmap.engine.mapping.result.ResultMap#dataExchange
is thread-unsafe.
This is a very serious bug.
This bug crashes our business system many times on a day.
> Probably, remapResults is thread-unsafe
> ---------------------------------------
>
> Key: IBATIS-519
> URL: https://issues.apache.org/jira/browse/IBATIS-519
> Project: iBatis for Java
> Issue Type: Bug
> Components: SQL Maps
> Affects Versions: 2.3.0, 2.3.2, 2.3.3
> Reporter: Hideyuki Suzumi
> Priority: Critical
> Attachments: ibatis-remapResults-problem.zip, ibatis-standalone.zip
>
>
> When remapResults is true, The list of the query result often contains null.
> The attached sample program can reproduce it.
> Probably, remapResults is thread-unsafe.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (IBATIS-519) Probably, remapResults is thread-unsafe
Posted by "Clinton Begin (JIRA)" <ib...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/IBATIS-519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clinton Begin closed IBATIS-519.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.3.4
As described by Kai.
> Probably, remapResults is thread-unsafe
> ---------------------------------------
>
> Key: IBATIS-519
> URL: https://issues.apache.org/jira/browse/IBATIS-519
> Project: iBatis for Java
> Issue Type: Bug
> Components: SQL Maps
> Affects Versions: 2.3.0, 2.3.2, 2.3.3
> Reporter: Hideyuki Suzumi
> Priority: Critical
> Fix For: 2.3.4
>
> Attachments: AutoResultMap.trunk.patch, ibatis-remapResults-problem.zip, ibatis-standalone.zip, threadtest.zip
>
>
> When remapResults is true, The list of the query result often contains null.
> The attached sample program can reproduce it.
> Probably, remapResults is thread-unsafe.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.