Bug #36196 java.util.Arrays.copyOf(Unknown Source)
Submitted: 18 Apr 2008 7:15 Modified: 26 Apr 2013 8:54
Reporter: Anil Pathak Email Updates:
Status: Can't repeat Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version:5.1.6 OS:Windows (Vista Ultimate)
Assigned to: Alexander Soklakov CPU Architecture:Any

[18 Apr 2008 7:15] Anil Pathak
Description:
at java.util.Arrays.copyOf(Unknown Source)
	at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
	at java.lang.AbstractStringBuilder.append(Unknown Source)
	at java.lang.StringBuilder.append(Unknown Source)
	at sun.net.www.protocol.jar.Handler.parseURL(Unknown Source)
	at java.net.URL.<init>(Unknown Source)
	at java.net.URL.<init>(Unknown Source)
	at sun.misc.URLClassPath$JarLoader.checkResource(Unknown Source)
	at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
	at sun.misc.URLClassPath.getResource(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:430)
	at com.mysql.jdbc.PreparedStatement.getInstance(PreparedStatement.java:553)
	at com.mysql.jdbc.ConnectionImpl.clientPrepareStatement(ConnectionImpl.java:1378)
	at com.mysql.jdbc.ConnectionImpl.prepareStatement(ConnectionImpl.java:4143)
	at com.mysql.jdbc.ConnectionImpl.prepareStatement(ConnectionImpl.java:4042)
	at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:248)
	at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:302)
	at com.aneel.rpmware.dao.EntityDAO.create(EntityDAO.java:104)
	at com.aneel.rpmware.GroupScrubber.main(GroupScrubber.java:64)

How to repeat:
mysql  Ver 14.7 Distrib 4.1.22, for Win32 (ia32)
Connection id:          3
Current database:       *******
Current user:           ODBC@localhost
SSL:                    Not in use
Using delimiter:        ;
Server version:         4.1.22-community-nt
Protocol version:       10
Connection:             localhost via TCP/IP
Server characterset:    latin1
Db     characterset:    latin1
Client characterset:    latin1
Conn.  characterset:    latin1
TCP port:               3306
Uptime:                 5 min 54 sec

Threads: 1  Questions: 9796  Slow queries: 0  Opens: 13  Flush tables: 1  Open t
ables: 7  Queries per second avg: 27.672
--------------

		final String SQL = "INSERT INTO entity ( ENTITY_ID ,ATTRIBUTE_NAME , ATTRIBUTE_VALUE, TIMESTAMP  , TYPE  , REF   )VALUES(?,?,?,?,?,?);";

			PreparedStatement statement = connection.prepareStatement(SQL);

Connection is reused.

Suggested fix:

What is this ??
[18 Apr 2008 7:35] Valeriy Kravchuk
Please, send my.ini file content from your server. 

What Connector/J version do you use?
[19 Apr 2008 6:10] Anil Pathak
Note :
Jconnector version
mysql-connector-java-5.1.6-bin.jar

Datasource pooled with "org.apache.commons.dbcp.BasicDataSource;"

my.ini attached ..
[19 Apr 2008 6:10] Anil Pathak
my.ini

Attachment: my.ini (application/octet-stream, text), 8.93 KiB.

[22 Apr 2008 10:40] Tonci Grgin
Anil, I have to sat the same thing you did, "What is this?!".

Please attach small, self sufficient test case showing this error and I'll check.
[22 Apr 2008 16:28] Anil Pathak
The interesting part is it is from jvm itself and doesnot have a description except where it originated from.

at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
	at java.lang.AbstractStringBuilder.append(Unknown Source)

I can remember i opened a connection (autocommit) and was using a same PreparedStatement for inserts between multiple calls, only changing the parameters. The inserts were massive.

It is not a recurring problem. I have changed the code. I will try to run the same  data to see if it generates such error.
[23 Apr 2008 11:35] Tonci Grgin
Anil, we are waiting on your short test case and/or analysis.
[23 May 2008 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[26 Apr 2013 8:54] Alexander Soklakov
Hi Anil,

There is no feedback since apr 2008, so I close this report as "Can't repeat".
Please, feel free to reopen it if the problem still exists with current driver version.