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 Giovanni D'Addabbo <gi...@gmail.com> on 2007/12/12 16:09:47 UTC
mysql connector error
hi all
i've do a simple example of ibatis mapping application...so mapping work
correctly but now i've this problem:
IBatisNet.DataMapper.Exceptions.DataMapperException: Unable to open
connection to "MySQL, MySQL provider 5.0.8.1". --->
MySql.Data.MySqlClient.MySqlException: Connection unexpectedly terminated.
in MySql.Data.MySqlClient.MySqlStream.LoadPacket()
in MySql.Data.MySqlClient.MySqlStream.OpenPacket()
in MySql.Data.MySqlClient.NativeDriver.Open()
in MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
in MySql.Data.MySqlClient.MySqlPool.GetConnection()
in MySql.Data.MySqlClient.MySqlConnection.Open()
in IBatisNet.DataMapper.SqlMapSession.OpenConnection(String
connectionString)
--- Fine dell'analisi dello stack dell'eccezione interna ---
in IBatisNet.DataMapper.SqlMapSession.OpenConnection(String
connectionString)
in IBatisNet.DataMapper.SqlMapSession.OpenConnection()
in
IBatisNet.DataMapper.Commands.DbCommandDecorator.System.Data.IDbCommand.ExecuteReader
()
in
IBatisNet.DataMapper.MappedStatements.MappedStatement.RunQueryForObject[T](RequestScope
request, ISqlMapSession session, Object parameterObject, T resultObject)
in
IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject[T](ISqlMapSession
session, Object parameterObject, T resultObject)
in
IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject[T](ISqlMapSession
session, Object parameterObject)
in IBatisNet.DataMapper.SqlMapper.QueryForObject[T](String statementName,
Object parameterObject)
in iBatisTutorial.Form1.button1_Click(Object sender, EventArgs e) in
C:\Documents and Settings\Serlab05\Documenti\Visual Studio
2005\Projects\iBatisTutorial\iBatisTutorial\Form1.cs:riga 30
in other words...i've problem with mysql connector...
i use c# + .net framework 2.0
where can i find a good mysql connector for .NET 2.0 framework?
thanks!
--
Giovanni D'Addabbo
UIN: 22490534
Re: mysql connector error
Posted by Clyde Coolidge <cl...@gmail.com>.
In the Person.cs file you posted earlier, it looks like your namespace was
iBatisTutorial.model whereas the Person.xml file is looking for the type
iBatis.Tutorial.Model.Person (notice the capital 'M' in Model). I'm not
sure if this is causing the below, but you need to be careful with the
syntax.
On Dec 13, 2007 6:46 AM, Giovanni D'Addabbo <gi...@gmail.com>
wrote:
> ok i've solved this problem, and now i've new one...
> this is the message:
> -------------------------------
> System.MethodAccessException: iBatisTutorial.Person..ctor()
> in CreateImplementation(Object[] )
> in IBatisNet.Common.Utilities.Objects.DelegateFactory.Create.Invoke(Object[]
> parameters)
> in IBatisNet.Common.Utilities.Objects.DelegateFactory.CreateInstance(Object[]
> parameters)
> in
> IBatisNet.DataMapper.Configuration.ResultMapping.AutoResultMap.CreateInstanceOfResultClass()
> in
> IBatisNet.DataMapper.MappedStatements.ResultStrategy.AutoMapStrategy.Process(RequestScope
> request, IDataReader& reader, Object resultObject)
> in
> IBatisNet.DataMapper.MappedStatements.ResultStrategy.ResultClassStrategy.Process(RequestScope request, IDataReader& reader, Object resultObject)
> in
> IBatisNet.DataMapper.MappedStatements.MappedStatement.RunQueryForObject(RequestScope
> request, ISqlMapSession session, Object parameterObject, Object
> resultObject)
> in
> IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject(ISqlMapSession
> session, Object parameterObject, Object resultObject)
> in
> IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject(ISqlMapSession session, Object parameterObject)
> in IBatisNet.DataMapper.SqlMapper.QueryForObject(String statementName,
> Object parameterObject)
> in iBatisTutorial.Form1.button1_Click(Object sender, EventArgs e) in
> C:\Documents and Settings\Serlab05\Documenti\Visual Studio
> 2005\Projects\iBatisTutorial\iBatisTutorial\Form1.cs:riga 41
>
>
> ideas?
> thanks!!!!
> byeeeeeeeeeeezzzzzzzzzzzzzzzzzzzzzzz
>
> 2007/12/12, Clyde Coolidge <cl...@gmail.com>:
>
> > If you suspect it's the MySQL connector, why not try using the basic
> > ODBC connector ( http://www.mysql.com/products/connector/odbc/) to
> > narrow down the problem?
> >
> > On Dec 12, 2007 3:47 PM, Clough, Samuel (USPC.PRG.Atlanta) <Sa...@princetonrg.com>
> > wrote:
> >
> > > I don't know as I don't use MySQL with iBatis (off hand I'd say
> > > whatever's offered at their website should be solid).
> > >
> > >
> > >
> > > You might want to check your logs. There's probably a reason MySQL
> > > dropped the connection on you.
> > >
> > >
> > >
> > > *From:* Giovanni D'Addabbo [mailto:giovanni.daddabbo@gmail.com]
> > > *Sent:* Wednesday, December 12, 2007 10:10 AM
> > > *To:* user-cs@ibatis.apache.org
> > > *Subject:* mysql connector error
> > >
> > >
> > >
> > > hi all
> > > i've do a simple example of ibatis mapping application...so mapping
> > > work correctly but now i've this problem:
> > >
> > > IBatisNet.DataMapper.Exceptions.DataMapperException: Unable to open
> > > connection to "MySQL, MySQL provider 5.0.8.1". --->
> > > MySql.Data.MySqlClient.MySqlException: Connection unexpectedly
> > > terminated.
> > > in MySql.Data.MySqlClient.MySqlStream.LoadPacket()
> > > in MySql.Data.MySqlClient.MySqlStream.OpenPacket ()
> > > in MySql.Data.MySqlClient.NativeDriver.Open()
> > > in MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
> > > in MySql.Data.MySqlClient.MySqlPool.GetConnection()
> > > in MySql.Data.MySqlClient.MySqlConnection.Open ()
> > > in IBatisNet.DataMapper.SqlMapSession.OpenConnection(String
> > > connectionString)
> > > --- Fine dell'analisi dello stack dell'eccezione interna ---
> > > in IBatisNet.DataMapper.SqlMapSession.OpenConnection(String
> > > connectionString)
> > > in IBatisNet.DataMapper.SqlMapSession.OpenConnection()
> > > in
> > > IBatisNet.DataMapper.Commands.DbCommandDecorator.System.Data.IDbCommand.ExecuteReader
> > > ()
> > > in
> > > IBatisNet.DataMapper.MappedStatements.MappedStatement.RunQueryForObject[T](RequestScope request, ISqlMapSession session, Object parameterObject, T
> > > resultObject)
> > > in
> > > IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject[T](ISqlMapSession
> > > session, Object parameterObject, T resultObject)
> > > in
> > > IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject[T](ISqlMapSession
> > > session, Object parameterObject)
> > > in IBatisNet.DataMapper.SqlMapper.QueryForObject[T](String
> > > statementName, Object parameterObject)
> > > in iBatisTutorial.Form1.button1_Click(Object sender, EventArgs e)
> > > in C:\Documents and Settings\Serlab05\Documenti\Visual Studio
> > > 2005\Projects\iBatisTutorial\iBatisTutorial\Form1.cs:riga 30
> > >
> > > in other words...i've problem with mysql connector...
> > > i use c# + .net framework 2.0
> > > where can i find a good mysql connector for .NET 2.0 framework?
> > > thanks!
> > > --
> > > Giovanni D'Addabbo
> > > UIN: 22490534
> > >
> >
> >
>
>
> --
> Giovanni D'Addabbo
> UIN: 22490534
>
Re: mysql connector error
Posted by Giovanni D'Addabbo <gi...@gmail.com>.
ok i've solved this problem, and now i've new one...
this is the message:
-------------------------------
System.MethodAccessException: iBatisTutorial.Person..ctor()
in CreateImplementation(Object[] )
in IBatisNet.Common.Utilities.Objects.DelegateFactory.Create.Invoke(Object[]
parameters)
in IBatisNet.Common.Utilities.Objects.DelegateFactory.CreateInstance(Object[]
parameters)
in
IBatisNet.DataMapper.Configuration.ResultMapping.AutoResultMap.CreateInstanceOfResultClass
()
in
IBatisNet.DataMapper.MappedStatements.ResultStrategy.AutoMapStrategy.Process(RequestScope
request, IDataReader& reader, Object resultObject)
in
IBatisNet.DataMapper.MappedStatements.ResultStrategy.ResultClassStrategy.Process(RequestScope
request, IDataReader& reader, Object resultObject)
in
IBatisNet.DataMapper.MappedStatements.MappedStatement.RunQueryForObject(RequestScope
request, ISqlMapSession session, Object parameterObject, Object
resultObject)
in
IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject(ISqlMapSession
session, Object parameterObject, Object resultObject)
in
IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject(ISqlMapSession
session, Object parameterObject)
in IBatisNet.DataMapper.SqlMapper.QueryForObject(String statementName,
Object parameterObject)
in iBatisTutorial.Form1.button1_Click(Object sender, EventArgs e) in
C:\Documents and Settings\Serlab05\Documenti\Visual Studio
2005\Projects\iBatisTutorial\iBatisTutorial\Form1.cs:riga 41
ideas?
thanks!!!!
byeeeeeeeeeeezzzzzzzzzzzzzzzzzzzzzzz
2007/12/12, Clyde Coolidge <cl...@gmail.com>:
>
> If you suspect it's the MySQL connector, why not try using the basic ODBC
> connector (http://www.mysql.com/products/connector/odbc/) to narrow down
> the problem?
>
> On Dec 12, 2007 3:47 PM, Clough, Samuel (USPC.PRG.Atlanta) <
> Samuel_Clough@princetonrg.com> wrote:
>
> > I don't know as I don't use MySQL with iBatis (off hand I'd say
> > whatever's offered at their website should be solid).
> >
> >
> >
> > You might want to check your logs. There's probably a reason MySQL
> > dropped the connection on you.
> >
> >
> >
> > *From:* Giovanni D'Addabbo [mailto:giovanni.daddabbo@gmail.com]
> > *Sent:* Wednesday, December 12, 2007 10:10 AM
> > *To:* user-cs@ibatis.apache.org
> > *Subject:* mysql connector error
> >
> >
> >
> > hi all
> > i've do a simple example of ibatis mapping application...so mapping work
> > correctly but now i've this problem:
> >
> > IBatisNet.DataMapper.Exceptions.DataMapperException: Unable to open
> > connection to "MySQL, MySQL provider 5.0.8.1". --->
> > MySql.Data.MySqlClient.MySqlException: Connection unexpectedly
> > terminated.
> > in MySql.Data.MySqlClient.MySqlStream.LoadPacket()
> > in MySql.Data.MySqlClient.MySqlStream.OpenPacket ()
> > in MySql.Data.MySqlClient.NativeDriver.Open()
> > in MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
> > in MySql.Data.MySqlClient.MySqlPool.GetConnection()
> > in MySql.Data.MySqlClient.MySqlConnection.Open ()
> > in IBatisNet.DataMapper.SqlMapSession.OpenConnection(String
> > connectionString)
> > --- Fine dell'analisi dello stack dell'eccezione interna ---
> > in IBatisNet.DataMapper.SqlMapSession.OpenConnection(String
> > connectionString)
> > in IBatisNet.DataMapper.SqlMapSession.OpenConnection()
> > in
> > IBatisNet.DataMapper.Commands.DbCommandDecorator.System.Data.IDbCommand.ExecuteReader
> > ()
> > in
> > IBatisNet.DataMapper.MappedStatements.MappedStatement.RunQueryForObject[T](RequestScope request, ISqlMapSession session, Object parameterObject, T
> > resultObject)
> > in
> > IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject[T](ISqlMapSession
> > session, Object parameterObject, T resultObject)
> > in
> > IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject[T](ISqlMapSession
> > session, Object parameterObject)
> > in IBatisNet.DataMapper.SqlMapper.QueryForObject[T](String
> > statementName, Object parameterObject)
> > in iBatisTutorial.Form1.button1_Click(Object sender, EventArgs e) in
> > C:\Documents and Settings\Serlab05\Documenti\Visual Studio
> > 2005\Projects\iBatisTutorial\iBatisTutorial\Form1.cs:riga 30
> >
> > in other words...i've problem with mysql connector...
> > i use c# + .net framework 2.0
> > where can i find a good mysql connector for .NET 2.0 framework?
> > thanks!
> > --
> > Giovanni D'Addabbo
> > UIN: 22490534
> >
>
>
--
Giovanni D'Addabbo
UIN: 22490534
Re: mysql connector error
Posted by Clyde Coolidge <cl...@gmail.com>.
If you suspect it's the MySQL connector, why not try using the basic ODBC
connector (http://www.mysql.com/products/connector/odbc/) to narrow down the
problem?
On Dec 12, 2007 3:47 PM, Clough, Samuel (USPC.PRG.Atlanta) <
Samuel_Clough@princetonrg.com> wrote:
> I don't know as I don't use MySQL with iBatis (off hand I'd say
> whatever's offered at their website should be solid).
>
>
>
> You might want to check your logs. There's probably a reason MySQL
> dropped the connection on you.
>
>
>
> *From:* Giovanni D'Addabbo [mailto:giovanni.daddabbo@gmail.com]
> *Sent:* Wednesday, December 12, 2007 10:10 AM
> *To:* user-cs@ibatis.apache.org
> *Subject:* mysql connector error
>
>
>
> hi all
> i've do a simple example of ibatis mapping application...so mapping work
> correctly but now i've this problem:
>
> IBatisNet.DataMapper.Exceptions.DataMapperException: Unable to open
> connection to "MySQL, MySQL provider 5.0.8.1". --->
> MySql.Data.MySqlClient.MySqlException: Connection unexpectedly terminated.
> in MySql.Data.MySqlClient.MySqlStream.LoadPacket()
> in MySql.Data.MySqlClient.MySqlStream.OpenPacket ()
> in MySql.Data.MySqlClient.NativeDriver.Open()
> in MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
> in MySql.Data.MySqlClient.MySqlPool.GetConnection()
> in MySql.Data.MySqlClient.MySqlConnection.Open ()
> in IBatisNet.DataMapper.SqlMapSession.OpenConnection(String
> connectionString)
> --- Fine dell'analisi dello stack dell'eccezione interna ---
> in IBatisNet.DataMapper.SqlMapSession.OpenConnection(String
> connectionString)
> in IBatisNet.DataMapper.SqlMapSession.OpenConnection()
> in
> IBatisNet.DataMapper.Commands.DbCommandDecorator.System.Data.IDbCommand.ExecuteReader
> ()
> in
> IBatisNet.DataMapper.MappedStatements.MappedStatement.RunQueryForObject[T](RequestScope request, ISqlMapSession session, Object parameterObject, T
> resultObject)
> in
> IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject[T](ISqlMapSession
> session, Object parameterObject, T resultObject)
> in
> IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject[T](ISqlMapSession
> session, Object parameterObject)
> in IBatisNet.DataMapper.SqlMapper.QueryForObject[T](String
> statementName, Object parameterObject)
> in iBatisTutorial.Form1.button1_Click(Object sender, EventArgs e) in
> C:\Documents and Settings\Serlab05\Documenti\Visual Studio
> 2005\Projects\iBatisTutorial\iBatisTutorial\Form1.cs:riga 30
>
> in other words...i've problem with mysql connector...
> i use c# + .net framework 2.0
> where can i find a good mysql connector for .NET 2.0 framework?
> thanks!
> --
> Giovanni D'Addabbo
> UIN: 22490534
>
RE: mysql connector error
Posted by "Clough, Samuel (USPC.PRG.Atlanta)" <Sa...@princetonrg.com>.
I don't know as I don't use MySQL with iBatis (off hand I'd say
whatever's offered at their website should be solid).
You might want to check your logs. There's probably a reason MySQL
dropped the connection on you.
From: Giovanni D'Addabbo [mailto:giovanni.daddabbo@gmail.com]
Sent: Wednesday, December 12, 2007 10:10 AM
To: user-cs@ibatis.apache.org
Subject: mysql connector error
hi all
i've do a simple example of ibatis mapping application...so mapping work
correctly but now i've this problem:
IBatisNet.DataMapper.Exceptions.DataMapperException: Unable to open
connection to "MySQL, MySQL provider 5.0.8.1". --->
MySql.Data.MySqlClient.MySqlException: Connection unexpectedly
terminated.
in MySql.Data.MySqlClient.MySqlStream.LoadPacket()
in MySql.Data.MySqlClient.MySqlStream.OpenPacket ()
in MySql.Data.MySqlClient.NativeDriver.Open()
in MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
in MySql.Data.MySqlClient.MySqlPool.GetConnection()
in MySql.Data.MySqlClient.MySqlConnection.Open ()
in IBatisNet.DataMapper.SqlMapSession.OpenConnection(String
connectionString)
--- Fine dell'analisi dello stack dell'eccezione interna ---
in IBatisNet.DataMapper.SqlMapSession.OpenConnection(String
connectionString)
in IBatisNet.DataMapper.SqlMapSession.OpenConnection()
in
IBatisNet.DataMapper.Commands.DbCommandDecorator.System.Data.IDbCommand.
ExecuteReader()
in
IBatisNet.DataMapper.MappedStatements.MappedStatement.RunQueryForObject
[T](RequestScope request, ISqlMapSession session, Object
parameterObject, T resultObject)
in
IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObj
ect[T](ISqlMapSession session, Object parameterObject, T resultObject)
in
IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObj
ect[T](ISqlMapSession session, Object parameterObject)
in IBatisNet.DataMapper.SqlMapper.QueryForObject[T](String
statementName, Object parameterObject)
in iBatisTutorial.Form1.button1_Click(Object sender, EventArgs e) in
C:\Documents and Settings\Serlab05\Documenti\Visual Studio
2005\Projects\iBatisTutorial\iBatisTutorial\Form1.cs:riga 30
in other words...i've problem with mysql connector...
i use c# + .net framework 2.0
where can i find a good mysql connector for .NET 2.0 framework?
thanks!
--
Giovanni D'Addabbo
UIN: 22490534
--------------------------------------------------------
Princeton Retirement Group, Inc - Important Terms
This E-mail is not intended for distribution to, or use by, any person or entity in any location where such distribution or use would be contrary to law or regulation, or which would subject Princeton Retirement Group, Inc. or any affiliate to any registration requirement within such location.
This E-mail may contain privileged or confidential information or may otherwise be protected by work product immunity or other legal rules. No confidentiality or privilege is waived or lost by any mistransmission. Access, copying or re-use of information by non-intended or non-authorized recipients is prohibited. If you are not an intended recipient of this E-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute any portion of this E-mail.
The transmission and content of this E-mail cannot be guaranteed to be secure or error-free. Therefore, we cannot represent that the information in this E-mail is complete, accurate, uncorrupted, timely or free of viruses, and Princeton Retirement Group, Inc. cannot accept any liability for E-mails that have been altered in the course of delivery. Princeton Retirement Group, Inc. reserves the right to monitor, review and retain all electronic communications, including E-mail, traveling through its networks and systems (subject to and in accordance with local laws). If any of your details are incorrect or if you no longer wish to receive mailings such as this by E-mail please contact the sender by reply E-mail.
--------------------------------------------------------