Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

about mirror, "Could not create the driver from NHibernate.Driver.MySQL"

I have added the MySQL.Data.dll into the windows GAC as well as the mirror PU project. Also, I have set the dll "local copy = true" so that the MySql.Data.dll is copied into Mirror PU folder under the Deploy folder.

I got the exception while i am deploying the mirror service PU,

System.Exception was unhandled by user code Message="Error creating NHibernate Session Factory" Source="GigaSpaces.Practices.ExternalDataSource.NHibernate" StackTrace: at GigaSpaces.Practices.ExternalDataSource.NHibernate.SessionFactoryBuilder.GetFactory(String hibernateFile, String hbmDirectory) in C:\GigaSpaces\XAP.NET 7.1.1\Practices\ExternalDataSource\NHibernate\SessionFactoryBuilder.cs:line 36 at GigaSpaces.Practices.ExternalDataSource.NHibernate.NHibernateExternalDataSource.Init(Dictionary 2 properties) in C:\GigaSpaces\XAP.NET 7.1.1\Practices\ExternalDataSource\NHibernate\NHibernateExternalDataSource.cs:line 82 at GigaSpaces.Core.Internal.Pbs.Executers.Persistency.PbsPersistencyInit.Execute(PbsMemoryStream input, PbsMemoryStream output, Int64 handleId) at GigaSpaces.Core.Internal.Pbs.Executers.PbsExecutersBundle1.Execute(Byte operationCode, Int64 handleId, PbsMemoryStream input, PbsMemoryStream output) at GigaSpaces.Core.Internal.Pbs.Executers.PbsExecuter.ExecuteCommand(Byte[] command) InnerException: NHibernate.HibernateException Message="Could not create the driver from NHibernate.Driver.MySQLDataDriver." Source="NHibernate" StackTrace: at NHibernate.Connection.ConnectionProvider.ConfigureDriver(IDictionary2 settings) at NHibernate.Connection.ConnectionProvider.Configure(IDictionary2 settings) at NHibernate.Connection.ConnectionProviderFactory.NewConnectionProvider(IDictionary2 settings) at NHibernate.Cfg.SettingsFactory.BuildSettings(IDictionary 2 properties) at NHibernate.Cfg.Configuration.BuildSettings() at NHibernate.Cfg.Configuration.BuildSessionFactory() at GigaSpaces.Practices.ExternalDataSource.NHibernate.SessionFactoryBuilder.GetFactory(String hibernateFile, String hbmDirectory) in C:\GigaSpaces\XAP.NET 7.1.1\Practices\ExternalDataSource\NHibernate\SessionFactoryBuilder.cs:line 32 InnerException: System.TypeLoadException Message="Could not load type NHibernate.Driver.MySQLDataDriver. Possible cause: no assembly name specified." Source="NHibernate" TypeName="" StackTrace: at NHibernate.Util.ReflectHelper.TypeFromAssembly(AssemblyQualifiedTypeName name, Boolean throwOnError) at NHibernate.Util.ReflectHelper.ClassForName(String name) at NHibernate.Connection.ConnectionProvider.ConfigureDriver(IDictionary`2 settings) InnerException:

Please help, Thanks

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3481]{quote}

asked 2010-07-29 01:43:16 -0500

hwchan gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

No problem.

answered 2010-07-30 02:28:01 -0500

idan gravatar image
edit flag offensive delete link more
0

Once deployed, make sure that under your work directory (appears in the log) where the mirror's PU files are copied (usually work/mirror_1) you see the MySql.Data.dll.

Furthermore, double check you're using proper versions of MySQL server & connector. We have successfully tested the example using connector version 5.1.7.0 and MySQL server version 5.0.88.

answered 2010-07-29 04:09:57 -0500

idan gravatar image
edit flag offensive delete link more

Comments

Thanks for the help, I fix it and it is not the GigaSpaces issue.

http://www.gigaspaces.com/wiki/displa...

<property name="connection.driver_class">NHibernate.Driver.MySQLDataDriver</property>

actually, it should be NHibernate.Driver.MySqlDataDriver, for MySQL 5.1 net connector

Edited by: HW Chan on Jul 30, 2010 1:35 AM

hwchan gravatar imagehwchan ( 2010-07-29 21:34:37 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2010-07-29 01:43:16 -0500

Seen: 228 times

Last updated: Jul 30 '10