Return-Path: Delivered-To: apmail-ibatis-dev-archive@www.apache.org Received: (qmail 22862 invoked from network); 10 Dec 2007 18:26:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Dec 2007 18:26:16 -0000 Received: (qmail 46067 invoked by uid 500); 10 Dec 2007 18:26:00 -0000 Delivered-To: apmail-ibatis-dev-archive@ibatis.apache.org Received: (qmail 46050 invoked by uid 500); 10 Dec 2007 18:26:00 -0000 Mailing-List: contact dev-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ibatis.apache.org Delivered-To: mailing list dev@ibatis.apache.org Received: (qmail 45916 invoked by uid 99); 10 Dec 2007 18:25:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2007 10:25:59 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2007 18:25:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 835E6714233 for ; Mon, 10 Dec 2007 10:25:44 -0800 (PST) Message-ID: <11920336.1197311144535.JavaMail.jira@brutus> Date: Mon, 10 Dec 2007 10:25:44 -0800 (PST) From: "Gilles Bayon (JIRA)" To: dev@ibatis.apache.org Subject: [jira] Closed: (IBATISNET-242) Cache error with QueryForObject In-Reply-To: <5160843.1189860152605.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IBATISNET-242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gilles Bayon closed IBATISNET-242. ---------------------------------- Resolution: Fixed In SVN > Cache error with QueryForObject > ----------------------------------- > > Key: IBATISNET-242 > URL: https://issues.apache.org/jira/browse/IBATISNET-242 > Project: iBatis for .NET > Issue Type: Bug > Components: DataMapper > Affects Versions: DataMapper 1.6.1 > Reporter: Gilles Bayon > Assignee: Gilles Bayon > Fix For: DataMapper 1.6.2 > > > Reported by Kenneth Olsen and patch by Christopher DeGuise > User _user = i.QueryForObject< User>( "stsGetOnEmail", email); > When doing this, the error strikes: > - I pass "1" as parameter in email, which will return NULL from db > - I pass "1" again as parameter in email, which and the error pops up with: Unable to cast object of type 'System.Object' to type 'Domain.User'. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.