You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by Paul Sullivan <Pa...@pcssinc.com> on 2006/12/19 18:58:47 UTC

Unable to cast object of type 'IBM.Data.DB2.iSeries.iDB2Parameter' to type 'System.ICloneable'

Hello,

Are there any current Ibatis issues that could cause the following
error?

 

Unable to cast object of type 'IBM.Data.DB2.iSeries.iDB2Parameter' to
type 'System.ICloneable'

 

 

 I've read in the mailing list archive about past issues with ICloneable
that have been fixed and I am only receiving this when trying to run an
as400 sql procedure. Our other queries that don't use a sql procedure
work fine with Ibatis, it's just the sql procedure that is giving us an
issue. We're using version 1.3 of the DataMapper. Thanks for the
feedback.

 

 


Re: Unable to build ibatis svn via nant. (b488880)

Posted by Gilles Bayon <ib...@gmail.com>.
The nant build file is outdated, you must build from the file solution.

On 12/20/06, Jason Finch <jf...@emergency.qld.gov.au> wrote:
>
>  Attempting to build ibatis svn and am receiving quite a few errors.
> Should it be working? (ie am I just screwing something up)
>
> Received errors about unable to find IMemberAccessorFactory referenced in
> mapper\IBatisNet.Common\Utilities\Objects\Members\MemberAccessorFactory.cs
>  Also \mapper\IBatisNet.Common\Logging\IDbConnectionproxy.cs  also appears
> not be used
>
> Suspect files may of been left over from a refactor and not excluded from
> build. ??
>
> I can build fine via the sln files in visual studio.
>
> Regards,
> Jason
>
>
>
>
>
> This correspondence is for the named persons only.
> It may contain confidential or privileged information or both.
> No confidentiality or privilege is waived or lost by any mis transmission.
>
> If you receive this correspondence in error please delete it from your
> system immediately and notify the sender.
> You must not disclose, copy or relay on any part of this correspondence,
> if you are not the intended recipient.
> Any opinions expressed in this message are those of the individual sender
> except where the sender expressly,
> and with the authority, states them to be the opinions of the Department
> of Emergency Services, Queensland.
>



-- 
Cheers,
Gilles

<a href="http://www.amazon.com/gp/registry/6JCP7AORB0LE">Wish List</a>

Unable to build ibatis svn via nant. (b488880)

Posted by Jason Finch <jf...@emergency.qld.gov.au>.
Attempting to build ibatis svn and am receiving quite a few errors.
Should it be working? (ie am I just screwing something up)
 
Received errors about unable to find IMemberAccessorFactory referenced
in
mapper\IBatisNet.Common\Utilities\Objects\Members\MemberAccessorFactory.
cs 
Also \mapper\IBatisNet.Common\Logging\IDbConnectionproxy.cs  also
appears not be used

 
Suspect files may of been left over from a refactor and not excluded
from build. ??
 
I can build fine via the sln files in visual studio.
 
Regards,
Jason
 
 
 
 
 


This correspondence is for the named persons only. 
It may contain confidential or privileged information or both. 
No confidentiality or privilege is waived or lost by any mis transmission. 
If you receive this correspondence in error please delete it from your system immediately and notify the sender. 
You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient. 
Any opinions expressed in this message are those of the individual sender except where the sender expressly, 
and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland.

RE: Unable to cast object of type 'IBM.Data.DB2.iSeries.iDB2Parameter' to type 'System.ICloneable'

Posted by Paul Sullivan <Pa...@pcssinc.com>.
Thank you that helped. I am running into a different issue now.

 

Here is the error:

The constructor to deserialize an object of type
'IBM.Data.DB2.iSeries.iDB2ConversionException' was not found.

 

Generally when I get errors like this it's usually a mistake in the xml
map. I've verified the xml several times and just want to make sure that
this error isn't related to the provider config or an Ibatis setting.
Thanks again for your time. It should be some kind of issue with the
parameters, but I thought I would at least ask.

 

________________________________

From: Gilles Bayon [mailto:ibatis.net@gmail.com] 
Sent: Tuesday, December 19, 2006 1:59 PM
To: user-cs@ibatis.apache.org
Subject: Re: Unable to cast object of type
'IBM.Data.DB2.iSeries.iDB2Parameter' to type 'System.ICloneable'

 

It seems that IBM have not implement the "Cloneable" interface on
DataParameter.

In the configuration of the DB2 provider you could add 

useDeriveParameters="false"

to bypass clone of  IDataParameter and use of the commandBuilderClass.

 

On 12/19/06, Paul Sullivan <Pa...@pcssinc.com> wrote: 

Hello,

Are there any current Ibatis issues that could cause the following
error?

 

Unable to cast object of type 'IBM.Data.DB2.iSeries.iDB2Parameter' to
type 'System.ICloneable'

 

 

 I've read in the mailing list archive about past issues with ICloneable
that have been fixed and I am only receiving this when trying to run an
as400 sql procedure. Our other queries that don't use a sql procedure
work fine with Ibatis, it's just the sql procedure that is giving us an
issue. We're using version 1.3 of the DataMapper. Thanks for the
feedback.

 

 




-- 
Cheers,
Gilles

<a href=" http://www.amazon.com/gp/registry/6JCP7AORB0LE">Wish List</a> 


Re: Unable to cast object of type 'IBM.Data.DB2.iSeries.iDB2Parameter' to type 'System.ICloneable'

Posted by Gilles Bayon <ib...@gmail.com>.
It seems that IBM have not implement the "Cloneable" interface on
DataParameter.
In the configuration of the DB2 provider you could add
useDeriveParameters="false"
to bypass clone of  IDataParameter and use of the commandBuilderClass.


On 12/19/06, Paul Sullivan <Pa...@pcssinc.com> wrote:
>
>  Hello,
>
> Are there any current Ibatis issues that could cause the following error?
>
>
>
> Unable to cast object of type 'IBM.Data.DB2.iSeries.iDB2Parameter' to type
> 'System.ICloneable'
>
>
>
>
>
>  I've read in the mailing list archive about past issues with ICloneable
> that have been fixed and I am only receiving this when trying to run an
> as400 sql procedure. Our other queries that don't use a sql procedure work
> fine with Ibatis, it's just the sql procedure that is giving us an issue.
> We're using version 1.3 of the DataMapper. Thanks for the feedback.
>
>
>
>
>



-- 
Cheers,
Gilles

<a href="http://www.amazon.com/gp/registry/6JCP7AORB0LE">Wish List</a>