IndexOutOfRangeException Opening Firebird Connection

View: New views
13 Messages — Rating Filter:   Alert me  

IndexOutOfRangeException Opening Firebird Connection

by Claudio Mattioli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
Opening a Firebird connection in a VB.NET 2008 with Firebird net provider 2.5.1 and Firebird 2.0rc3 and 2.1.3 i get a IndexOutOfRangeException??? Can someone help me?? 

Thanks
Claudio

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Re: IndexOutOfRangeException Opening Firebird Connection

by Jiri Cincura :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Oct 13, 2009 at 21:33, Claudio Mattioli
<mattioliclaudio@...> wrote:
> Can someone help me??

Without at least some (i.e. stack trace) info not.

--
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.cincura.net/ | http://www.ID3renamer.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Re: IndexOutOfRangeException Opening Firebird Connection

by Martin Bilek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The same thing with: mono version 2.4.2.3, firebird LI-V2.1.3.18185 Firebird 2.1, Fedora 11:

Unhandled Exception: System.ArgumentException: Offset and length were out of bounds for the array or count is greater thanthe number of elements from index to the end of the source collection.
  at System.Buffer.BlockCopy (System.Array src, Int32 srcOffset, System.Array dst, Int32 dstOffset, Int32 count) [0x00000] 
  at FirebirdSql.Data.Gds.GdsDatabase.DatabaseInfo (System.Byte[] items, System.Byte[] buffer, Int32 bufferLength) [0x00000] 
  at FirebirdSql.Data.Gds.GdsDatabase.GetDatabaseInfo (System.Byte[] items, Int32 bufferLength) [0x00000] 
  at FirebirdSql.Data.Gds.GdsDatabase.GetServerVersion () [0x00000] 
  at FirebirdSql.Data.Gds.GdsDatabase.Attach (FirebirdSql.Data.Common.DatabaseParameterBuffer dpb, System.String dataSource, Int32 port, System.String database) [0x00000] 
  at FirebirdSql.Data.Firebird.FbConnectionInternal.Connect () [0x00000] 
  at (wrapper remoting-invoke-with-check) FirebirdSql.Data.Firebird.FbConnectionInternal:Connect ()
  at FirebirdSql.Data.Firebird.FbConnectionPool.Create () [0x00000] 
  at FirebirdSql.Data.Firebird.FbConnectionPool.CheckOut () [0x00000] 
  at (wrapper remoting-invoke-with-check) FirebirdSql.Data.Firebird.FbConnectionPool:CheckOut ()
  at FirebirdSql.Data.Firebird.FbConnection.Open () [0x00000] 

  

On Wed, Oct 14, 2009 at 12:23 AM, Jiri Cincura <diskuze@...> wrote:
On Tue, Oct 13, 2009 at 21:33, Claudio Mattioli
<mattioliclaudio@...> wrote:
> Can someone help me??

Without at least some (i.e. stack trace) info not.

--
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.cincura.net/ | http://www.ID3renamer.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Re: IndexOutOfRangeException Opening Firebird Connection

by Claudio Mattioli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

stack trace info:
Eccezione first-chance di tipo 'System.IndexOutOfRangeException' in FirebirdSql.Data.FirebirdClient.dll
Esegui istruzione: esecuzione di istruzione/routine del codice non utente 'FirebirdSql.Data.FirebirdClient.FbConnection.Open'
Eccezione first-chance di tipo 'System.IndexOutOfRangeException' in FirebirdSql.Data.FirebirdClient.dll

Sorry it's a italian vb.net 2008.

thanks

2009/10/14 Jiri Cincura <diskuze@...>
On Tue, Oct 13, 2009 at 21:33, Claudio Mattioli
<mattioliclaudio@...> wrote:
> Can someone help me??

Without at least some (i.e. stack trace) info not.

--
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.cincura.net/ | http://www.ID3renamer.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Re: IndexOutOfRangeException Opening Firebird Connection

by Claudio Mattioli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

other stack trace info:
   in FirebirdSql.Data.Common.IscHelper.VaxInteger(Byte[] buffer, Int32 index, Int32 length) in C:\temp\claudio\NETProvider\source\FirebirdSql\Data\Common\IscHelper.cs:riga 317
   in FirebirdSql.Data.Common.IscHelper.ParseDatabaseInfo(Byte[] buffer) in C:\temp\claudio\NETProvider\source\FirebirdSql\Data\Common\IscHelper.cs:riga 41
   in FirebirdSql.Data.Client.Managed.Version10.GdsDatabase.GetDatabaseInfo(Byte[] items, Int32 bufferLength) in C:\temp\claudio\NETProvider\source\FirebirdSql\Data\Client\Managed\Version10\GdsDatabase.cs:riga 601
   in FirebirdSql.Data.Client.Managed.Version10.GdsDatabase.GetServerVersion() in C:\temp\claudio\NETProvider\source\FirebirdSql\Data\Client\Managed\Version10\GdsDatabase.cs:riga 587
   in FirebirdSql.Data.Client.Managed.Version10.GdsDatabase.Attach(DatabaseParameterBuffer dpb, String dataSource, Int32 port, String database) in C:\temp\claudio\NETProvider\source\FirebirdSql\Data\Client\Managed\Version10\GdsDatabase.cs:riga 223
   in FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect() in C:\temp\claudio\NETProvider\source\FirebirdSql\Data\FirebirdClient\FbConnectionInternal.cs:riga 233
   in FirebirdSql.Data.FirebirdClient.FbConnection.Open() in C:\temp\claudio\NETProvider\source\FirebirdSql\Data\FirebirdClient\FbConnection.cs:riga 608
   in WindowsFormsApplication1.Form1.button1_Click(Object sender, EventArgs e) in C:\temp\claudio\proveFirebird\proveFirebird_\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs:riga 34
   in System.Windows.Forms.Control.OnClick(EventArgs e)
   in System.Windows.Forms.Button.OnClick(EventArgs e)
   in System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   in System.Windows.Forms.Control.WndProc(Message& m)
   in System.Windows.Forms.ButtonBase.WndProc(Message& m)
   in System.Windows.Forms.Button.WndProc(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   in System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   in System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   in System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   in System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   in System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   in System.Windows.Forms.Application.Run(Form mainForm)
   in WindowsFormsApplication1.Program.Main() in C:\temp\claudio\proveFirebird\proveFirebird_\WindowsFormsApplication1\WindowsFormsApplication1\Program.cs:riga 18
   in System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
   in System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   in Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   in System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   in System.Threading.ThreadHelper.ThreadStart()

thanks.
Claudio

2009/10/14 Jiri Cincura <diskuze@...>
On Tue, Oct 13, 2009 at 21:33, Claudio Mattioli
<mattioliclaudio@...> wrote:
> Can someone help me??

Without at least some (i.e. stack trace) info not.

--
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.cincura.net/ | http://www.ID3renamer.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Re: IndexOutOfRangeException Opening Firebird Connection

by Jiri Cincura :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm not albe to reproduce the problem. I'm using latest assembly and
same Firebird version. Do you have any reproducible test case?

--
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.cincura.net/ | http://www.ID3renamer.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Re: IndexOutOfRangeException Opening Firebird Connection

by Claudio Mattioli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
what kind of information can i send you??
We are using a firebird installation from zip file and we don't user standard port 3050 but 11050 and we modify "External File Paths/Directories" option
in FULL. I have tested the problem in 4 pc:
1 xp sp3 with firebird 2.0 rc3 and i have the problem;
1 xp sp3 with firebird 2.1.3 and  I DON'T have the problem;
1 xp sp3 with firebird 2.1.3 and i have the problem;
1 vista sp2 with firebird 2.1.3 and I DON'T have the problem.
All pcs with the same configuration and db.
I don't understand if it's a firebird problem or a provider problem.

thanks.
2009/10/17 Jiri Cincura <diskuze@...>
Hi,

I'm not albe to reproduce the problem. I'm using latest assembly and
same Firebird version. Do you have any reproducible test case?

--
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.cincura.net/ | http://www.ID3renamer.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Re: IndexOutOfRangeException Opening Firebird Connection

by Jiri Cincura :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Oct 19, 2009 at 08:10, Claudio Mattioli
<mattioliclaudio@...> wrote:
> what kind of information can i send you??

Some reproducible testcase.

> 1 xp sp3 with firebird 2.1.3 and  I DON'T have the problem;
> 1 xp sp3 with firebird 2.1.3 and i have the problem;
> 1 vista sp2 with firebird 2.1.3 and I DON'T have the problem.
> All pcs with the same configuration and db.

Looks like the PCs are not same, if on one it's failing and no the
other not. There's something that causes the problem.

--
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.cincura.net/ | http://www.ID3renamer.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Re: IndexOutOfRangeException Opening Firebird Connection

by Claudio Mattioli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The Zip File contains a little db, a project example and my firebird.conf (firebird 2.0rc3).
With this case i'll get the problem.
Thanks
Claudio

2009/10/19 Jiri Cincura <diskuze@...>
On Mon, Oct 19, 2009 at 08:10, Claudio Mattioli
<mattioliclaudio@...> wrote:
> what kind of information can i send you??

Some reproducible testcase.

> 1 xp sp3 with firebird 2.1.3 and  I DON'T have the problem;
> 1 xp sp3 with firebird 2.1.3 and i have the problem;
> 1 vista sp2 with firebird 2.1.3 and I DON'T have the problem.
> All pcs with the same configuration and db.

Looks like the PCs are not same, if on one it's failing and no the
other not. There's something that causes the problem.

--
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.cincura.net/ | http://www.ID3renamer.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

proveFirebird_.zip (81K) Download Attachment

Re: IndexOutOfRangeException Opening Firebird Connection

by Claudio Mattioli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

did you receive my mail with a simple project and db?

2009/10/19 Jiri Cincura <diskuze@...>
On Mon, Oct 19, 2009 at 08:10, Claudio Mattioli
<mattioliclaudio@...> wrote:
> what kind of information can i send you??

Some reproducible testcase.

> 1 xp sp3 with firebird 2.1.3 and  I DON'T have the problem;
> 1 xp sp3 with firebird 2.1.3 and i have the problem;
> 1 vista sp2 with firebird 2.1.3 and I DON'T have the problem.
> All pcs with the same configuration and db.

Looks like the PCs are not same, if on one it's failing and no the
other not. There's something that causes the problem.

--
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.cincura.net/ | http://www.ID3renamer.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Re: IndexOutOfRangeException Opening Firebird Connection

by Jiri Cincura :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Oct 20, 2009 at 14:52, Claudio Mattioli
<mattioliclaudio@...> wrote:
> did you receive my mail with a simple project and db?

Yes.

--
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.cincura.net/ | http://www.ID3renamer.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Re: IndexOutOfRangeException Opening Firebird Connection

by Jiri Cincura :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Oct 19, 2009 at 16:12, Claudio Mattioli
<mattioliclaudio@...> wrote:
> The Zip File contains a little db, a project example and my firebird.conf
> (firebird 2.0rc3).
> With this case i'll get the problem.

Well, looks like it's only on your side. I tested your demo with
couple of Firebird servers and all works fine.

--
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.cincura.net/ | http://www.ID3renamer.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Re: IndexOutOfRangeException Opening Firebird Connection

by Claudio Mattioli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What can i check in my configuration to resolve this problem??
thanks .

2009/10/24 Jiri Cincura <diskuze@...>
On Mon, Oct 19, 2009 at 16:12, Claudio Mattioli
<mattioliclaudio@...> wrote:
> The Zip File contains a little db, a project example and my firebird.conf
> (firebird 2.0rc3).
> With this case i'll get the problem.

Well, looks like it's only on your side. I tested your demo with
couple of Firebird servers and all works fine.

--
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.cincura.net/ | http://www.ID3renamer.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@...
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider