#1  
Old 30th January 2018, 07:43 PM
atempela atempela is offline
 
Join Date: Jan 2018
Posts: 1
Default NexusDB.ADOProvider NxDataReader NotSupportedException: GetBytes

Hello,

NexusDB V2 ADO.NET provider
version: 2.0.7.86

I'm building a NhibernateDriver for NexusDb, so that we can retreive data through the ORM. Everything works fine with simple datatypes.
But we have a table with a Blobstream datatype, and here we have a problem, when NHibernate retrieves the data and tries to convert it to an Object with the DataReader (in this case the NxDataReader), the method: GetBytes() is not implemented.

override long GetBytes(int i, long fieldOffset, byte[] buffer, int bufferoffset, int length)

Is there another verison of the NexusDB.ADOProvider that implements this method, or is there a possibility that you will implement this in the near future?


stacktrace:
WARN:
System.NotSupportedException: GetBytes not supported.
at NexusDB.ADOProvider.NxDataReader.GetBytes(Int32 i, Int64 fieldOffset, Byte[] buffer, Int32 bufferoffset, Int32 length)
at NHibernate.Type.AbstractBinaryType.Get(IDataReader rs, Int32 index) in p:\nhibernate-core\src\NHibernate\Type\AbstractBinaryType.cs:lin e 92
at NHibernate.Type.NullableType.NullSafeGet(IDataRead er rs, String name) in p:\nhibernate-core\src\NHibernate\Type\NullableType.cs:line 253
at NHibernate.Persister.Entity.AbstractEntityPersiste r.Hydrate(IDataReader rs, Object id, Object obj, ILoadable rootLoadable, String[][] suffixedPropertyColumns, Boolean allProperties, ISessionImplementor session) in p:\nhibernate-core\src\NHibernate\Persister\Entity\AbstractEntit yPersister.cs:line 2518

Attached Images
File Type: jpg db.jpg (11.8 KB, 0 views)
File Type: jpg missing.jpg (23.5 KB, 1 views)
  #2  
Old 4th February 2018, 12:48 AM
Eivind Eivind is offline
Administrator
 
Join Date: Mar 2008
Posts: 203
Default

Quote:
Originally Posted by atempela View Post
Hello,

NexusDB V2 ADO.NET provider
version: 2.0.7.86

I'm building a NhibernateDriver for NexusDb, so that we can retreive data through the ORM. Everything works fine with simple datatypes.
But we have a table with a Blobstream datatype, and here we have a problem, when NHibernate retrieves the data and tries to convert it to an Object with the DataReader (in this case the NxDataReader), the method: GetBytes() is not implemented.

override long GetBytes(int i, long fieldOffset, byte[] buffer, int bufferoffset, int length)

Is there another verison of the NexusDB.ADOProvider that implements this method, or is there a possibility that you will implement this in the near future?


stacktrace:
WARN:
System.NotSupportedException: GetBytes not supported.
at NexusDB.ADOProvider.NxDataReader.GetBytes(Int32 i, Int64 fieldOffset, Byte[] buffer, Int32 bufferoffset, Int32 length)
at NHibernate.Type.AbstractBinaryType.Get(IDataReader rs, Int32 index) in p:\nhibernate-core\src\NHibernate\Type\AbstractBinaryType.cs:lin e 92
at NHibernate.Type.NullableType.NullSafeGet(IDataRead er rs, String name) in p:\nhibernate-core\src\NHibernate\Type\NullableType.cs:line 253
at NHibernate.Persister.Entity.AbstractEntityPersiste r.Hydrate(IDataReader rs, Object id, Object obj, ILoadable rootLoadable, String[][] suffixedPropertyColumns, Boolean allProperties, ISessionImplementor session) in p:\nhibernate-core\src\NHibernate\Persister\Entity\AbstractEntit yPersister.cs:line 2518

That is a *very* old version of the .net provider. I'm not sure if any alternative way exists, anybody else who has experience with this?


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ADOProvider 280 issue JimGilmour nexusdb.public.support.adoprovider 13 25th October 2016 11:02 AM
Error [$3CA0/15520] in ADOProvider 280 DrissBen nexusdb.public.support.adoprovider 0 26th August 2016 11:01 PM
AV in ADOProvider 242 boman nexusdb.public.support.adoprovider 9 22nd June 2016 09:06 PM
ADOProvider V2 w/VS2005 support Ole Willy Tuv nexusdb.public.support.adoprovider 25 11th April 2007 03:30 AM
Unable to load DLL (NexusDB.ADOProvider.NexusDBV1.dll) G. Campbell nexusdb.public.support 5 20th May 2005 02:19 PM


All times are GMT +11. The time now is 07:10 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.