I have transactional replication set up on SQL Server 2000 SP3a on a Windows
2003 server. The replicated server is also SQL Server 2000 SP3a with Windows
2003. One of the publications contains 6 articles. This publication was
configured and pushed to the subscriber all at the same time. One of the 6
articles was not sending data to the subscriber and there are was no messages
indicating that there was a problem. This is a production critical
application so when I found the error, I dropped the article and recreated
it. It is now working fine.
Has anyone ever run into this type of issue? I am at a loss to explain why
only one article was not replicating.
How was the publication created in the first place? For example did you add
it later using sp_addarticle, or was it added with the other articles in the
beginning?
If you use sp_addarticle you have to issue a sp_refreshpublications after
doing it, for the subscriber to be updated.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"gert" <gert@.discussions.microsoft.com> wrote in message
news:D3F7320E-33FB-467D-9058-2FD56D6207B5@.microsoft.com...
>I have transactional replication set up on SQL Server 2000 SP3a on a
>Windows
> 2003 server. The replicated server is also SQL Server 2000 SP3a with
> Windows
> 2003. One of the publications contains 6 articles. This publication was
> configured and pushed to the subscriber all at the same time. One of the
> 6
> articles was not sending data to the subscriber and there are was no
> messages
> indicating that there was a problem. This is a production critical
> application so when I found the error, I dropped the article and recreated
> it. It is now working fine.
> Has anyone ever run into this type of issue? I am at a loss to explain
> why
> only one article was not replicating.
|||All the articles were added at the same time and pushed to the subscriber at
the same time. That is what is so confusing about this incident. I am aware
that when a article is added that it needed to be pushed to the subscriber.
I just cannot determine why only one of the articles disn't appear to be
pushed to the subscriber.
I have a customer looking for an explanation and I am at a loss.
"Hilary Cotter" wrote:
> How was the publication created in the first place? For example did you add
> it later using sp_addarticle, or was it added with the other articles in the
> beginning?
> If you use sp_addarticle you have to issue a sp_refreshpublications after
> doing it, for the subscriber to be updated.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
> "gert" <gert@.discussions.microsoft.com> wrote in message
> news:D3F7320E-33FB-467D-9058-2FD56D6207B5@.microsoft.com...
>
>
|||can you script out the tables and post them here?
I take it that you are doing plain vanilla transactional replication.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"gert" <gert@.discussions.microsoft.com> wrote in message
news:E52DD2BF-5D3D-40BB-B997-F42CC43ED7B4@.microsoft.com...[vbcol=seagreen]
> All the articles were added at the same time and pushed to the subscriber
> at
> the same time. That is what is so confusing about this incident. I am
> aware
> that when a article is added that it needed to be pushed to the
> subscriber.
> I just cannot determine why only one of the articles disn't appear to be
> pushed to the subscriber.
> I have a customer looking for an explanation and I am at a loss.
>
> "Hilary Cotter" wrote:
|||this is the script. This 1st article is the one that did not replicate.
-- Adding the transactional articles
exec sp_addarticle
@.publication = N'VEHICLE-Config4',
@.article = N'VR_RPO',
@.source_owner = N'dbo',
@.source_object = N'VR_RPO',
@.destination_table = N'VR_RPO',
@.type = N'logbased',
@.creation_script = null,
@.description = null,
@.pre_creation_cmd = N'none',
@.schema_option = 0x00000000000000F3,
@.status = 16,
@.vertical_partition = N'false',
@.ins_cmd = N'SQL',
@.del_cmd = N'SQL',
@.upd_cmd = N'SQL',
@.filter = null,
@.sync_object = null,
@.auto_identity_range = N'false'
GO
exec sp_addarticle
@.publication = N'VEHICLE-Config4',
@.article = N'VR_SIR',
@.source_owner = N'dbo',
@.source_object = N'VR_SIR',
@.destination_table = N'VR_SIR',
@.type = N'logbased',
@.creation_script = null,
@.description = null,
@.pre_creation_cmd = N'none',
@.schema_option = 0x00000000000000F3,
@.status = 16,
@.vertical_partition = N'false',
@.ins_cmd = N'SQL',
@.del_cmd = N'SQL',
@.upd_cmd = N'SQL',
@.filter = null,
@.sync_object = null,
@.auto_identity_range = N'false'
GO
exec sp_addarticle
@.publication = N'VEHICLE-Config4',
@.article = N'VR_SP',
@.source_owner = N'dbo',
@.source_object = N'VR_SP',
@.destination_table = N'VR_SP',
@.type = N'logbased',
@.creation_script = null,
@.description = null,
@.pre_creation_cmd = N'none',
@.schema_option = 0x00000000000000F3,
@.status = 16,
@.vertical_partition = N'false',
@.ins_cmd = N'SQL',
@.del_cmd = N'SQL',
@.upd_cmd = N'SQL',
@.filter = null,
@.sync_object = null,
@.auto_identity_range = N'false'
GO
exec sp_addarticle
@.publication = N'VEHICLE-Config4',
@.article = N'VR_SVI',
@.source_owner = N'dbo',
@.source_object = N'VR_SVI',
@.destination_table = N'VR_SVI',
@.type = N'logbased',
@.creation_script = null,
@.description = null,
@.pre_creation_cmd = N'none',
@.schema_option = 0x00000000000000F3,
@.status = 16,
@.vertical_partition = N'false',
@.ins_cmd = N'SQL',
@.del_cmd = N'SQL', @.upd_cmd = N'SQL',
@.filter = null,
@.sync_object = null,
@.auto_identity_range = N'false'
GO
exec sp_addarticle
@.publication = N'VEHICLE-Config4',
@.article = N'VR_VEH_COMP',
@.source_owner = N'dbo',
@.source_object = N'VR_VEH_COMP',
@.destination_table = N'VR_VEH_COMP',
@.type = N'logbased',
@.creation_script = null,
@.description = null,
@.pre_creation_cmd = N'none',
@.schema_option = 0x00000000000000F3,
@.status = 16,
@.vertical_partition = N'false',
@.ins_cmd = N'SQL',
@.del_cmd = N'SQL',
@.upd_cmd = N'SQL',
@.filter = null,
@.sync_object = null,
@.auto_identity_range = N'false'
GO
exec sp_addarticle
@.publication = N'VEHICLE-Config4',
@.article = N'VR_VEH_COMP_HIST',
@.source_owner = N'dbo',
@.source_object = N'VR_VEH_COMP_HIST',
@.destination_table = N'VR_VEH_COMP_HIST',
@.type = N'logbased',
@.creation_script = null,
@.description = null,
@.pre_creation_cmd = N'none',
@.schema_option = 0x00000000000000F3,
@.status = 16,
@.vertical_partition = N'false',
@.ins_cmd = N'SQL',
@.del_cmd = N'NONE',
@.upd_cmd = N'SQL',
@.filter = null,
@.sync_object = null,
@.auto_identity_range = N'false'
GO
-- Adding the transactional subscription
exec sp_addsubscription
@.publication = N'VEHICLE-Config4',
@.article = N'all',
@.subscriber = N'CAIGSC024',
@.destination_db = N'vehicle',
@.sync_type = N'none',
@.update_mode = N'read only',
@.offloadagent = 0,
@.dts_package_location = N'distributor'
GO
"Hilary Cotter" wrote:
> can you script out the tables and post them here?
> I take it that you are doing plain vanilla transactional replication.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
> "gert" <gert@.discussions.microsoft.com> wrote in message
> news:E52DD2BF-5D3D-40BB-B997-F42CC43ED7B4@.microsoft.com...
>
>
|||I was more interested in the schemas of the tables you are replicating!
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"gert" <gert@.discussions.microsoft.com> wrote in message
news:48D96A93-6572-4BF7-839C-51437D2ED31D@.microsoft.com...[vbcol=seagreen]
> this is the script. This 1st article is the one that did not replicate.
> -- Adding the transactional articles
> exec sp_addarticle
> @.publication = N'VEHICLE-Config4',
> @.article = N'VR_RPO',
> @.source_owner = N'dbo',
> @.source_object = N'VR_RPO',
> @.destination_table = N'VR_RPO',
> @.type = N'logbased',
> @.creation_script = null,
> @.description = null,
> @.pre_creation_cmd = N'none',
> @.schema_option = 0x00000000000000F3,
> @.status = 16,
> @.vertical_partition = N'false',
> @.ins_cmd = N'SQL',
> @.del_cmd = N'SQL',
> @.upd_cmd = N'SQL',
> @.filter = null,
> @.sync_object = null,
> @.auto_identity_range = N'false'
> GO
> exec sp_addarticle
> @.publication = N'VEHICLE-Config4',
> @.article = N'VR_SIR',
> @.source_owner = N'dbo',
> @.source_object = N'VR_SIR',
> @.destination_table = N'VR_SIR',
> @.type = N'logbased',
> @.creation_script = null,
> @.description = null,
> @.pre_creation_cmd = N'none',
> @.schema_option = 0x00000000000000F3,
> @.status = 16,
> @.vertical_partition = N'false',
> @.ins_cmd = N'SQL',
> @.del_cmd = N'SQL',
> @.upd_cmd = N'SQL',
> @.filter = null,
> @.sync_object = null,
> @.auto_identity_range = N'false'
> GO
> exec sp_addarticle
> @.publication = N'VEHICLE-Config4',
> @.article = N'VR_SP',
> @.source_owner = N'dbo',
> @.source_object = N'VR_SP',
> @.destination_table = N'VR_SP',
> @.type = N'logbased',
> @.creation_script = null,
> @.description = null,
> @.pre_creation_cmd = N'none',
> @.schema_option = 0x00000000000000F3,
> @.status = 16,
> @.vertical_partition = N'false',
> @.ins_cmd = N'SQL',
> @.del_cmd = N'SQL',
> @.upd_cmd = N'SQL',
> @.filter = null,
> @.sync_object = null,
> @.auto_identity_range = N'false'
> GO
> exec sp_addarticle
> @.publication = N'VEHICLE-Config4',
> @.article = N'VR_SVI',
> @.source_owner = N'dbo',
> @.source_object = N'VR_SVI',
> @.destination_table = N'VR_SVI',
> @.type = N'logbased',
> @.creation_script = null,
> @.description = null,
> @.pre_creation_cmd = N'none',
> @.schema_option = 0x00000000000000F3,
> @.status = 16,
> @.vertical_partition = N'false',
> @.ins_cmd = N'SQL',
> @.del_cmd = N'SQL', @.upd_cmd = N'SQL',
> @.filter = null,
> @.sync_object = null,
> @.auto_identity_range = N'false'
> GO
> exec sp_addarticle
> @.publication = N'VEHICLE-Config4',
> @.article = N'VR_VEH_COMP',
> @.source_owner = N'dbo',
> @.source_object = N'VR_VEH_COMP',
> @.destination_table = N'VR_VEH_COMP',
> @.type = N'logbased',
> @.creation_script = null,
> @.description = null,
> @.pre_creation_cmd = N'none',
> @.schema_option = 0x00000000000000F3,
> @.status = 16,
> @.vertical_partition = N'false',
> @.ins_cmd = N'SQL',
> @.del_cmd = N'SQL',
> @.upd_cmd = N'SQL',
> @.filter = null,
> @.sync_object = null,
> @.auto_identity_range = N'false'
> GO
> exec sp_addarticle
> @.publication = N'VEHICLE-Config4',
> @.article = N'VR_VEH_COMP_HIST',
> @.source_owner = N'dbo',
> @.source_object = N'VR_VEH_COMP_HIST',
> @.destination_table = N'VR_VEH_COMP_HIST',
> @.type = N'logbased',
> @.creation_script = null,
> @.description = null,
> @.pre_creation_cmd = N'none',
> @.schema_option = 0x00000000000000F3,
> @.status = 16,
> @.vertical_partition = N'false',
> @.ins_cmd = N'SQL',
> @.del_cmd = N'NONE',
> @.upd_cmd = N'SQL',
> @.filter = null,
> @.sync_object = null,
> @.auto_identity_range = N'false'
> GO
> -- Adding the transactional subscription
> exec sp_addsubscription
> @.publication = N'VEHICLE-Config4',
> @.article = N'all',
> @.subscriber = N'CAIGSC024',
> @.destination_db = N'vehicle',
> @.sync_type = N'none',
> @.update_mode = N'read only',
> @.offloadagent = 0,
> @.dts_package_location = N'distributor'
> GO
> "Hilary Cotter" wrote:
subscriber[vbcol=seagreen]
be[vbcol=seagreen]
you[vbcol=seagreen]
in[vbcol=seagreen]
after[vbcol=seagreen]
with[vbcol=seagreen]
publication[vbcol=seagreen]
of[vbcol=seagreen]
no[vbcol=seagreen]
explain[vbcol=seagreen]
|||Here is the table schema, and yes I am doing vanilla transaction replication.
We have actually been replicating this data for 3 years, but just recently
moved to a Windows 2003 server.
CREATE TABLE VR_RPO (
RPO_CODE varchar (3) NOT NULL ,
FKVBI_PVI varchar (9) NOT NULL ,
CONSTRAINT PKVRRPO PRIMARY KEY NONCLUSTERED
(
FKVBI_PVI,
RPO_CODE
) WITH FILLFACTOR = 90
)
GO
CREATE TABLE VR_SIR (
ID varchar (3) NOT NULL ,
INSTRUCTION_DATA varchar (56) NULL ,
TYPE varchar (1) NULL ,
SEQUENCE_NUMBER varchar (2) NULL ,
FKVBI_PVI varchar (9) NOT NULL ,
CONSTRAINT PKVRSIR PRIMARY KEY NONCLUSTERED
(
FKVBI_PVI,
ID
) WITH FILLFACTOR = 90
)
GO
CREATE TABLE VR_SP (
KEY1 varchar (8) NOT NULL ,
Key2 varchar (10) NOT NULL ,
PVI char (9) NOT NULL ,
Data varchar (65) NULL ,
Update_Date_Time datetime NULL ,
CONSTRAINT PKVRSP PRIMARY KEY CLUSTERED
(
KEY1,
Key2,
PVI
) WITH FILLFACTOR = 90
)
GO
CREATE TABLE VR_SVI (
SVI_TYPE varchar (10) NOT NULL ,
SVI_VALUE varchar (20) NOT NULL ,
PVI varchar (9) NOT NULL ,
CONSTRAINT PKVRSVI PRIMARY KEY NONCLUSTERED
(
SVI_TYPE,
SVI_VALUE
) WITH FILLFACTOR = 90
)
GO
CREATE TABLE VR_VEH_COMP (
PVI varchar (9) NOT NULL ,
COMPONENT varchar (10) NOT NULL ,
PASSFAIL char (1) NOT NULL ,
COMPDATA varchar (20) NOT NULL ,
CREATE_DATE_TIME datetime NOT NULL ,
UPDATE_DATE_TIME datetime NULL ,
CONSTRAINT PKVRVEHCOMP PRIMARY KEY CLUSTERED
(
PVI,
COMPONENT
) WITH FILLFACTOR = 90
)
GO
CREATE TABLE VR_VEH_COMP_HIST (
PVI varchar (9) NOT NULL ,
COMPONENT varchar (10) NOT NULL ,
PASSFAIL char (1) NOT NULL ,
COMPDATA varchar (20) NOT NULL ,
CREATE_DATE_TIME datetime NOT NULL ,
UPDATE_DATE_TIME datetime NULL ,
CONSTRAINT PKVRVEHCOMHIS PRIMARY KEY CLUSTERED
(
PVI,
COMPONENT
) WITH FILLFACTOR = 90
)
GO
"Hilary Cotter" wrote:
> I was more interested in the schemas of the tables you are replicating!
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
> "gert" <gert@.discussions.microsoft.com> wrote in message
> news:48D96A93-6572-4BF7-839C-51437D2ED31D@.microsoft.com...
> subscriber
> be
> you
> in
> after
> with
> publication
> of
> no
> explain
>
>
Showing posts with label sp3a. Show all posts
Showing posts with label sp3a. Show all posts
Friday, February 24, 2012
ArrayIndexOutOfBoundsException during Connection.commit()
Hi,
using SQL Server 2000 SP3a, and JDBC driver SP3 (Version 2.2.0040), and
SelectMethod=cursor I keep on getting the following during
Connection.commit():
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at
com.microsoft.util.UtilBufferedDataProvider.getArr ayOfBytes(Unknown
Source)
at
com.microsoft.util.UtilDepacketizingDataProvider.g etArrayOfBytes(Unknown
Source)
at
com.microsoft.util.UtilDepacketizingDataProvider.e mpty(Unknown Source)
at com.microsoft.util.UtilByteOrderedDataReader.empty (Unknown
Source)
at
com.microsoft.jdbc.sqlserver.tds.TDSRequest.clearR eplyChannel(Unknown
Source)
at
com.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest .submitRequest(Unknown
Source)
at
com.microsoft.jdbc.sqlserver.SQLServerImplConnecti on.commitTransaction(Unknown
Source)
at com.microsoft.jdbc.base.BaseConnection.commit(Unkn own Source)
at
org.apache.commons.dbcp.DelegatingConnection.commi t(DelegatingConnection.java:238)
at
org.apache.commons.dbcp.DelegatingConnection.commi t(DelegatingConnection.java:238)
at
org.apache.commons.dbcp.PoolingDriver$PoolGuardCon nectionWrapper.commit(PoolingDriver.java:262)
at
org.jpox.NonmanagedTransaction.releaseConnection(N onmanagedTransaction.java:290)
Does anybody have an idea what this might be related to?
Thanks for any hints,
Jrg.
Maybe a Connection cannot be reliably committed when there is no open
transaction? Before the Exception occurs, a few thousand commit()s have
happened on Connections without an open transaction, though...
Joerg von Frantzius schrieb:
> Hi,
> using SQL Server 2000 SP3a, and JDBC driver SP3 (Version 2.2.0040),
> and SelectMethod=cursor I keep on getting the following during
> Connection.commit():
> java.lang.ArrayIndexOutOfBoundsException
> at java.lang.System.arraycopy(Native Method)
> at
> com.microsoft.util.UtilBufferedDataProvider.getArr ayOfBytes(Unknown
> Source)
> at
> com.microsoft.util.UtilDepacketizingDataProvider.g etArrayOfBytes(Unknown
> Source)
> at
> com.microsoft.util.UtilDepacketizingDataProvider.e mpty(Unknown Source)
> at com.microsoft.util.UtilByteOrderedDataReader.empty (Unknown
> Source)
> at
> com.microsoft.jdbc.sqlserver.tds.TDSRequest.clearR eplyChannel(Unknown
> Source)
> at
> com.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest .submitRequest(Unknown
> Source)
> at
> com.microsoft.jdbc.sqlserver.SQLServerImplConnecti on.commitTransaction(Unknown
> Source)
> at com.microsoft.jdbc.base.BaseConnection.commit(Unkn own Source)
> at
> org.apache.commons.dbcp.DelegatingConnection.commi t(DelegatingConnection.java:238)
> at
> org.apache.commons.dbcp.DelegatingConnection.commi t(DelegatingConnection.java:238)
> at
> org.apache.commons.dbcp.PoolingDriver$PoolGuardCon nectionWrapper.commit(PoolingDriver.java:262)
> at
> org.jpox.NonmanagedTransaction.releaseConnection(N onmanagedTransaction.java:290)
> Does anybody have an idea what this might be related to?
> Thanks for any hints,
> Jrg.
|||Interestingly, again this one does not happen while in debug-mode
(slower execution).
Joerg von Frantzius schrieb:
> Maybe a Connection cannot be reliably committed when there is no open
> transaction? Before the Exception occurs, a few thousand commit()s
> have happened on Connections without an open transaction, though...
> Joerg von Frantzius schrieb:
>
>
|||Hi. This is definitely a JVM/driver bug. It has nothing to do with
what you are doing, even if what you are doing is semantically wrong
or not. Is there any chance you are using this same connection or
objects from it, in more than one thread at a time?
Joe Weinstein at BEA
Joerg von Frantzius wrote:
> Hi,
> using SQL Server 2000 SP3a, and JDBC driver SP3 (Version 2.2.0040), and
> SelectMethod=cursor I keep on getting the following during
> Connection.commit():
> java.lang.ArrayIndexOutOfBoundsException
> at java.lang.System.arraycopy(Native Method)
> at
> com.microsoft.util.UtilBufferedDataProvider.getArr ayOfBytes(Unknown
> Source)
> at
> com.microsoft.util.UtilDepacketizingDataProvider.g etArrayOfBytes(Unknown
> Source)
> at
> com.microsoft.util.UtilDepacketizingDataProvider.e mpty(Unknown Source)
> at com.microsoft.util.UtilByteOrderedDataReader.empty (Unknown
> Source)
> at
> com.microsoft.jdbc.sqlserver.tds.TDSRequest.clearR eplyChannel(Unknown
> Source)
> at
> com.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest .submitRequest(Unknown
> Source)
> at
> com.microsoft.jdbc.sqlserver.SQLServerImplConnecti on.commitTransaction(Unknown
> Source)
> at com.microsoft.jdbc.base.BaseConnection.commit(Unkn own Source)
> at
> org.apache.commons.dbcp.DelegatingConnection.commi t(DelegatingConnection.java:238)
> at
> org.apache.commons.dbcp.DelegatingConnection.commi t(DelegatingConnection.java:238)
> at
> org.apache.commons.dbcp.PoolingDriver$PoolGuardCon nectionWrapper.commit(PoolingDriver.java:262)
> at
> org.jpox.NonmanagedTransaction.releaseConnection(N onmanagedTransaction.java:290)
> Does anybody have an idea what this might be related to?
> Thanks for any hints,
> Jrg.
|||Hi Joe,
I'm using commons-dbcp for connection pooling now, and I know that it
opens a Thread, but I don't know what exactly it is doing there... My
process is not multi-threaded otherwise.
Joe Weinstein schrieb:
> Hi. This is definitely a JVM/driver bug. It has nothing to do with
> what you are doing, even if what you are doing is semantically wrong
> or not. Is there any chance you are using this same connection or
> objects from it, in more than one thread at a time?
> Joe Weinstein at BEA
> Joerg von Frantzius wrote:
>
>
|||Hi,
do you per chance know where I can file a bug report for this one? I'm
not sure whether this group is monitored by any MS developers.
Thanks,
Jrg.
Joe Weinstein schrieb:
> Hi. This is definitely a JVM/driver bug. It has nothing to do with
> what you are doing, even if what you are doing is semantically wrong
> or not. Is there any chance you are using this same connection or
> objects from it, in more than one thread at a time?
> Joe Weinstein at BEA
> Joerg von Frantzius wrote:
>
>
|||| Message-ID: <41DE5EED.8030405@.artnology.REMOVE.com>
| Date: Fri, 07 Jan 2005 11:05:33 +0100
| From: Joerg von Frantzius <joerg.von.frantzius@.artnology.REMOVE.com>
| User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
| X-Accept-Language: en-us, de-de, de, en
| MIME-Version: 1.0
| CC: joe@.bea.com
| Subject: Re: ArrayIndexOutOfBoundsException during Connection.commit()
| References: <uHFjJkB9EHA.1408@.TK2MSFTNGP10.phx.gbl>
<41DD8071.3040806@.bea.com>
| In-Reply-To: <41DD8071.3040806@.bea.com>
| Content-Type: text/plain; charset=ISO-8859-15; format=flowed
| Content-Transfer-Encoding: 8bit
| Newsgroups: microsoft.public.sqlserver.jdbcdriver
| NNTP-Posting-Host: 195.143.217.178
| Lines: 1
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10
.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.sqlserver.jdbcdriver:6587
| X-Tomcat-NG: microsoft.public.sqlserver.jdbcdriver
|
| Hi,
| do you per chance know where I can file a bug report for this one? I'm
| not sure whether this group is monitored by any MS developers.
|
| Thanks,
| Jrg.
|
| Joe Weinstein schrieb:
|
| > Hi. This is definitely a JVM/driver bug. It has nothing to do with
| > what you are doing, even if what you are doing is semantically wrong
| > or not. Is there any chance you are using this same connection or
| > objects from it, in more than one thread at a time?
| >
| > Joe Weinstein at BEA
| >
| > Joerg von Frantzius wrote:
| >
| >> Hi,
| >>
| >> using SQL Server 2000 SP3a, and JDBC driver SP3 (Version 2.2.0040),
| >> and SelectMethod=cursor I keep on getting the following during
| >> Connection.commit():
| >>
| >> java.lang.ArrayIndexOutOfBoundsException
| >> at java.lang.System.arraycopy(Native Method)
| >> at
| >> com.microsoft.util.UtilBufferedDataProvider.getArr ayOfBytes(Unknown
| >> Source)
| >> at
| >>
| >>
com.microsoft.util.UtilDepacketizingDataProvider.g etArrayOfBytes(Unknown
| >> Source)
| >> at
| >> com.microsoft.util.UtilDepacketizingDataProvider.e mpty(Unknown
| >> Source)
| >> at com.microsoft.util.UtilByteOrderedDataReader.empty (Unknown
| >> Source)
| >> at
| >>
| >> com.microsoft.jdbc.sqlserver.tds.TDSRequest.clearR eplyChannel(Unknown
| >> Source)
| >> at
| >>
| >>
com.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest .submitRequest(Unknown
| >> Source)
| >> at
| >>
| >>
com.microsoft.jdbc.sqlserver.SQLServerImplConnecti on.commitTransaction(Unkno
wn
| >>
| >> Source)
| >> at com.microsoft.jdbc.base.BaseConnection.commit(Unkn own
Source)
| >> at
| >>
| >>
org.apache.commons.dbcp.DelegatingConnection.commi t(DelegatingConnection.jav
a:238)
| >>
| >> at
| >>
| >>
org.apache.commons.dbcp.DelegatingConnection.commi t(DelegatingConnection.jav
a:238)
| >>
| >> at
| >>
| >>
org.apache.commons.dbcp.PoolingDriver$PoolGuardCon nectionWrapper.commit(Pool
ingDriver.java:262)
| >>
| >> at
| >>
| >>
org.jpox.NonmanagedTransaction.releaseConnection(N onmanagedTransaction.java:
290)
| >>
| >>
| >> Does anybody have an idea what this might be related to?
| >>
| >> Thanks for any hints,
| >> Jrg.
| >
| >
|
Hello Jrg,
Can you post the code used to reproduce the error? Please also include the
table schema and stored proc definitions (if any) that are used. I can
file the bug with the developers once I receive this information.
Carb Simien, MCSE MCDBA MCAD
Microsoft Developer Support - Web Data
Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
Are you secure? For information about the Strategic Technology Protection
Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security.
|||Joe Weinstein wrote:
> Hi. This is definitely a JVM/driver bug. It has nothing to do with
> what you are doing, even if what you are doing is semantically wrong
> or not.
It's definitely a driver bug, not a JVM problem. It could be a
synchronization issue or a much simpler problem but it's caused by the
driver.
Alin,
The jTDS Project.
using SQL Server 2000 SP3a, and JDBC driver SP3 (Version 2.2.0040), and
SelectMethod=cursor I keep on getting the following during
Connection.commit():
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at
com.microsoft.util.UtilBufferedDataProvider.getArr ayOfBytes(Unknown
Source)
at
com.microsoft.util.UtilDepacketizingDataProvider.g etArrayOfBytes(Unknown
Source)
at
com.microsoft.util.UtilDepacketizingDataProvider.e mpty(Unknown Source)
at com.microsoft.util.UtilByteOrderedDataReader.empty (Unknown
Source)
at
com.microsoft.jdbc.sqlserver.tds.TDSRequest.clearR eplyChannel(Unknown
Source)
at
com.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest .submitRequest(Unknown
Source)
at
com.microsoft.jdbc.sqlserver.SQLServerImplConnecti on.commitTransaction(Unknown
Source)
at com.microsoft.jdbc.base.BaseConnection.commit(Unkn own Source)
at
org.apache.commons.dbcp.DelegatingConnection.commi t(DelegatingConnection.java:238)
at
org.apache.commons.dbcp.DelegatingConnection.commi t(DelegatingConnection.java:238)
at
org.apache.commons.dbcp.PoolingDriver$PoolGuardCon nectionWrapper.commit(PoolingDriver.java:262)
at
org.jpox.NonmanagedTransaction.releaseConnection(N onmanagedTransaction.java:290)
Does anybody have an idea what this might be related to?
Thanks for any hints,
Jrg.
Maybe a Connection cannot be reliably committed when there is no open
transaction? Before the Exception occurs, a few thousand commit()s have
happened on Connections without an open transaction, though...
Joerg von Frantzius schrieb:
> Hi,
> using SQL Server 2000 SP3a, and JDBC driver SP3 (Version 2.2.0040),
> and SelectMethod=cursor I keep on getting the following during
> Connection.commit():
> java.lang.ArrayIndexOutOfBoundsException
> at java.lang.System.arraycopy(Native Method)
> at
> com.microsoft.util.UtilBufferedDataProvider.getArr ayOfBytes(Unknown
> Source)
> at
> com.microsoft.util.UtilDepacketizingDataProvider.g etArrayOfBytes(Unknown
> Source)
> at
> com.microsoft.util.UtilDepacketizingDataProvider.e mpty(Unknown Source)
> at com.microsoft.util.UtilByteOrderedDataReader.empty (Unknown
> Source)
> at
> com.microsoft.jdbc.sqlserver.tds.TDSRequest.clearR eplyChannel(Unknown
> Source)
> at
> com.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest .submitRequest(Unknown
> Source)
> at
> com.microsoft.jdbc.sqlserver.SQLServerImplConnecti on.commitTransaction(Unknown
> Source)
> at com.microsoft.jdbc.base.BaseConnection.commit(Unkn own Source)
> at
> org.apache.commons.dbcp.DelegatingConnection.commi t(DelegatingConnection.java:238)
> at
> org.apache.commons.dbcp.DelegatingConnection.commi t(DelegatingConnection.java:238)
> at
> org.apache.commons.dbcp.PoolingDriver$PoolGuardCon nectionWrapper.commit(PoolingDriver.java:262)
> at
> org.jpox.NonmanagedTransaction.releaseConnection(N onmanagedTransaction.java:290)
> Does anybody have an idea what this might be related to?
> Thanks for any hints,
> Jrg.
|||Interestingly, again this one does not happen while in debug-mode
(slower execution).
Joerg von Frantzius schrieb:
> Maybe a Connection cannot be reliably committed when there is no open
> transaction? Before the Exception occurs, a few thousand commit()s
> have happened on Connections without an open transaction, though...
> Joerg von Frantzius schrieb:
>
>
|||Hi. This is definitely a JVM/driver bug. It has nothing to do with
what you are doing, even if what you are doing is semantically wrong
or not. Is there any chance you are using this same connection or
objects from it, in more than one thread at a time?
Joe Weinstein at BEA
Joerg von Frantzius wrote:
> Hi,
> using SQL Server 2000 SP3a, and JDBC driver SP3 (Version 2.2.0040), and
> SelectMethod=cursor I keep on getting the following during
> Connection.commit():
> java.lang.ArrayIndexOutOfBoundsException
> at java.lang.System.arraycopy(Native Method)
> at
> com.microsoft.util.UtilBufferedDataProvider.getArr ayOfBytes(Unknown
> Source)
> at
> com.microsoft.util.UtilDepacketizingDataProvider.g etArrayOfBytes(Unknown
> Source)
> at
> com.microsoft.util.UtilDepacketizingDataProvider.e mpty(Unknown Source)
> at com.microsoft.util.UtilByteOrderedDataReader.empty (Unknown
> Source)
> at
> com.microsoft.jdbc.sqlserver.tds.TDSRequest.clearR eplyChannel(Unknown
> Source)
> at
> com.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest .submitRequest(Unknown
> Source)
> at
> com.microsoft.jdbc.sqlserver.SQLServerImplConnecti on.commitTransaction(Unknown
> Source)
> at com.microsoft.jdbc.base.BaseConnection.commit(Unkn own Source)
> at
> org.apache.commons.dbcp.DelegatingConnection.commi t(DelegatingConnection.java:238)
> at
> org.apache.commons.dbcp.DelegatingConnection.commi t(DelegatingConnection.java:238)
> at
> org.apache.commons.dbcp.PoolingDriver$PoolGuardCon nectionWrapper.commit(PoolingDriver.java:262)
> at
> org.jpox.NonmanagedTransaction.releaseConnection(N onmanagedTransaction.java:290)
> Does anybody have an idea what this might be related to?
> Thanks for any hints,
> Jrg.
|||Hi Joe,
I'm using commons-dbcp for connection pooling now, and I know that it
opens a Thread, but I don't know what exactly it is doing there... My
process is not multi-threaded otherwise.
Joe Weinstein schrieb:
> Hi. This is definitely a JVM/driver bug. It has nothing to do with
> what you are doing, even if what you are doing is semantically wrong
> or not. Is there any chance you are using this same connection or
> objects from it, in more than one thread at a time?
> Joe Weinstein at BEA
> Joerg von Frantzius wrote:
>
>
|||Hi,
do you per chance know where I can file a bug report for this one? I'm
not sure whether this group is monitored by any MS developers.
Thanks,
Jrg.
Joe Weinstein schrieb:
> Hi. This is definitely a JVM/driver bug. It has nothing to do with
> what you are doing, even if what you are doing is semantically wrong
> or not. Is there any chance you are using this same connection or
> objects from it, in more than one thread at a time?
> Joe Weinstein at BEA
> Joerg von Frantzius wrote:
>
>
|||| Message-ID: <41DE5EED.8030405@.artnology.REMOVE.com>
| Date: Fri, 07 Jan 2005 11:05:33 +0100
| From: Joerg von Frantzius <joerg.von.frantzius@.artnology.REMOVE.com>
| User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
| X-Accept-Language: en-us, de-de, de, en
| MIME-Version: 1.0
| CC: joe@.bea.com
| Subject: Re: ArrayIndexOutOfBoundsException during Connection.commit()
| References: <uHFjJkB9EHA.1408@.TK2MSFTNGP10.phx.gbl>
<41DD8071.3040806@.bea.com>
| In-Reply-To: <41DD8071.3040806@.bea.com>
| Content-Type: text/plain; charset=ISO-8859-15; format=flowed
| Content-Transfer-Encoding: 8bit
| Newsgroups: microsoft.public.sqlserver.jdbcdriver
| NNTP-Posting-Host: 195.143.217.178
| Lines: 1
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10
.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.sqlserver.jdbcdriver:6587
| X-Tomcat-NG: microsoft.public.sqlserver.jdbcdriver
|
| Hi,
| do you per chance know where I can file a bug report for this one? I'm
| not sure whether this group is monitored by any MS developers.
|
| Thanks,
| Jrg.
|
| Joe Weinstein schrieb:
|
| > Hi. This is definitely a JVM/driver bug. It has nothing to do with
| > what you are doing, even if what you are doing is semantically wrong
| > or not. Is there any chance you are using this same connection or
| > objects from it, in more than one thread at a time?
| >
| > Joe Weinstein at BEA
| >
| > Joerg von Frantzius wrote:
| >
| >> Hi,
| >>
| >> using SQL Server 2000 SP3a, and JDBC driver SP3 (Version 2.2.0040),
| >> and SelectMethod=cursor I keep on getting the following during
| >> Connection.commit():
| >>
| >> java.lang.ArrayIndexOutOfBoundsException
| >> at java.lang.System.arraycopy(Native Method)
| >> at
| >> com.microsoft.util.UtilBufferedDataProvider.getArr ayOfBytes(Unknown
| >> Source)
| >> at
| >>
| >>
com.microsoft.util.UtilDepacketizingDataProvider.g etArrayOfBytes(Unknown
| >> Source)
| >> at
| >> com.microsoft.util.UtilDepacketizingDataProvider.e mpty(Unknown
| >> Source)
| >> at com.microsoft.util.UtilByteOrderedDataReader.empty (Unknown
| >> Source)
| >> at
| >>
| >> com.microsoft.jdbc.sqlserver.tds.TDSRequest.clearR eplyChannel(Unknown
| >> Source)
| >> at
| >>
| >>
com.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest .submitRequest(Unknown
| >> Source)
| >> at
| >>
| >>
com.microsoft.jdbc.sqlserver.SQLServerImplConnecti on.commitTransaction(Unkno
wn
| >>
| >> Source)
| >> at com.microsoft.jdbc.base.BaseConnection.commit(Unkn own
Source)
| >> at
| >>
| >>
org.apache.commons.dbcp.DelegatingConnection.commi t(DelegatingConnection.jav
a:238)
| >>
| >> at
| >>
| >>
org.apache.commons.dbcp.DelegatingConnection.commi t(DelegatingConnection.jav
a:238)
| >>
| >> at
| >>
| >>
org.apache.commons.dbcp.PoolingDriver$PoolGuardCon nectionWrapper.commit(Pool
ingDriver.java:262)
| >>
| >> at
| >>
| >>
org.jpox.NonmanagedTransaction.releaseConnection(N onmanagedTransaction.java:
290)
| >>
| >>
| >> Does anybody have an idea what this might be related to?
| >>
| >> Thanks for any hints,
| >> Jrg.
| >
| >
|
Hello Jrg,
Can you post the code used to reproduce the error? Please also include the
table schema and stored proc definitions (if any) that are used. I can
file the bug with the developers once I receive this information.
Carb Simien, MCSE MCDBA MCAD
Microsoft Developer Support - Web Data
Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
Are you secure? For information about the Strategic Technology Protection
Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security.
|||Joe Weinstein wrote:
> Hi. This is definitely a JVM/driver bug. It has nothing to do with
> what you are doing, even if what you are doing is semantically wrong
> or not.
It's definitely a driver bug, not a JVM problem. It could be a
synchronization issue or a much simpler problem but it's caused by the
driver.
Alin,
The jTDS Project.
Labels:
andselectmethodcursor,
arrayindexoutofboundsexception,
connectioncommit,
database,
driver,
following,
jdbc,
microsoft,
mysql,
oracle,
server,
sp3,
sp3a,
sql,
version
Subscribe to:
Posts (Atom)