P
Paul Speranza
Hi all,
I am having a problem with connection pooling. My connection string looks
like this:
Data Source=hipqqint;Persist Security Info=True;Pooling=true;Min
Pool Size=3;Max Pool Size=50;Connection Lifetime=60
If I run an insert command - by the way I am testing this in NUnit - it
works fine. However, if I run the insert command as soon as the first one
come back I get this error:
Hip.Sales.UnitTester.SecurityFixture.CreateToken :
System.NullReferenceException : Object reference not set to an instance of
an object.
at System.Data.OracleClient.DBObjectPool.GetObject(Object
owningObject, Boolean& isInTransaction)
at
System.Data.OracleClient.OracleConnectionPoolManager.GetPooledConnection(Str
ing encryptedConnectionString, OracleConnectionString options,
OracleConnection owningObject, Boolean& isInTransaction)
at
System.Data.OracleClient.OracleConnection.OpenInternal(OracleConnectionStrin
g parsedConnectionString, Object transact)
at System.Data.OracleClient.OracleConnection.Open()
at Hip.Sales.DataAccess.OracleHelper.ExecuteNonQuery(String
connectionString, CommandType commandType, String commandText,
OracleParameter[]
commandParameters) in
C:\HIPDev\HipStudio\VERSION_1_2\DataAccess\OracleHelper.cs:line 174
at Hip.Sales.MarketProminence.Authentication.CreateWebToken(String
payload) in C:\HIPDev\HipStudio\VERSION_1_2
\MarketProminence\Security\Authentication.cs:line 40
at Hip.Sales.UnitTester.SecurityFixture.CreateToken() in
C:\HIPDev\HipStudio\VERSION_1_2\UnitTester\SecurityFixture.cs:line 44
My thinking is that there may be an issue in the MS OracleClient. If I take
off the pooling attributes so it looks like this:
Data Source=hipqqint;Persist Security Info=True;
everything is fine.
Our DBA was watching the database while I ran the tests and he got no
changes when the error occurred so that makes me think even more that it is
the MS driver.
Can anyone help?
..Net 1.1
VS .Net 2003
Oracle 9.2.0.4
Windows XP all patches
Thanks,
Paul Speranza
I am having a problem with connection pooling. My connection string looks
like this:
Data Source=hipqqint;Persist Security Info=True;Pooling=true;Min
Pool Size=3;Max Pool Size=50;Connection Lifetime=60
If I run an insert command - by the way I am testing this in NUnit - it
works fine. However, if I run the insert command as soon as the first one
come back I get this error:
Hip.Sales.UnitTester.SecurityFixture.CreateToken :
System.NullReferenceException : Object reference not set to an instance of
an object.
at System.Data.OracleClient.DBObjectPool.GetObject(Object
owningObject, Boolean& isInTransaction)
at
System.Data.OracleClient.OracleConnectionPoolManager.GetPooledConnection(Str
ing encryptedConnectionString, OracleConnectionString options,
OracleConnection owningObject, Boolean& isInTransaction)
at
System.Data.OracleClient.OracleConnection.OpenInternal(OracleConnectionStrin
g parsedConnectionString, Object transact)
at System.Data.OracleClient.OracleConnection.Open()
at Hip.Sales.DataAccess.OracleHelper.ExecuteNonQuery(String
connectionString, CommandType commandType, String commandText,
OracleParameter[]
commandParameters) in
C:\HIPDev\HipStudio\VERSION_1_2\DataAccess\OracleHelper.cs:line 174
at Hip.Sales.MarketProminence.Authentication.CreateWebToken(String
payload) in C:\HIPDev\HipStudio\VERSION_1_2
\MarketProminence\Security\Authentication.cs:line 40
at Hip.Sales.UnitTester.SecurityFixture.CreateToken() in
C:\HIPDev\HipStudio\VERSION_1_2\UnitTester\SecurityFixture.cs:line 44
My thinking is that there may be an issue in the MS OracleClient. If I take
off the pooling attributes so it looks like this:
Data Source=hipqqint;Persist Security Info=True;
everything is fine.
Our DBA was watching the database while I ran the tests and he got no
changes when the error occurred so that makes me think even more that it is
the MS driver.
Can anyone help?
..Net 1.1
VS .Net 2003
Oracle 9.2.0.4
Windows XP all patches
Thanks,
Paul Speranza