Thread: BUG #1181: java.lang.IllegalArgumentException

BUG #1181: java.lang.IllegalArgumentException

From
"PostgreSQL Bugs List"
Date:
The following bug has been logged online:

Bug reference:      1181
Logged by:          Ken YAZAWA

Email address:      k-yazawa@ewave.co.jp

PostgreSQL version: 7.4

Operating system:   RedhatLinux9

Description:        java.lang.IllegalArgumentException

Details:

Something unusual has occured to cause the driver to fail. Please report
this exception: Exception: java.lang.IllegalArgumentException
Stack Trace:

java.lang.IllegalArgumentException
    at java.nio.Buffer.position(Buffer.java:218)
    at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:575)
    at java.lang.StringCoding$CharsetSD.decode(StringCoding.java:186)
    at java.lang.StringCoding.decode(StringCoding.java:224)
    at java.lang.StringCoding.decode(StringCoding.java:230)
    at java.lang.String.<init>(String.java:371)
org.postgresql.jdbc1.AbstractJdbc1Connection.openConnectionV3(AbstractJdbc1
    at Connection.java:352)
org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Co
    at nnection.java:213)
    at org.postgresql.Driver.connect(Driver.java:138)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
com.gac.vision.sql.SimpleConnectionFactory.createConnection(SimpleConnectio
    at nFactory.java:67)
com.gac.vision.sql.ConnectionManager$ThreadLocalConnection.initialValue(Con
    at nectionManager.java:131)
    at java.lang.ThreadLocal$ThreadLocalMap.getAfterMiss(ThreadLocal.java:368)
    at java.lang.ThreadLocal$ThreadLocalMap.get(ThreadLocal.java:341)
    at java.lang.ThreadLocal$ThreadLocalMap.access$000(ThreadLocal.java:219)
    at java.lang.ThreadLocal.get(ThreadLocal.java:121)
com.gac.vision.sql.ConnectionManager.getConnection(ConnectionManager.java:9
    at 7)
    at com.gac.vision.batch.load.BarcodeLoader.load(BarcodeLoader.java:110)
    at com.gac.vision.batch.load.BarcodeLoader.execute(BarcodeLoader.java:91)
    at com.gac.vision.batch.load.BarcodeLoader.main(BarcodeLoader.java:177)
End of Stack Trace

Re: BUG #1181: java.lang.IllegalArgumentException

From
Kris Jurka
Date:
> The following bug has been logged online:
>
> Bug reference:      1181
> PostgreSQL version: 7.4
> Description:        java.lang.IllegalArgumentException
> Details:
>
> Something unusual has occured to cause the driver to fail. Please report
> this exception: Exception: java.lang.IllegalArgumentException
> Stack Trace:
>
> java.lang.IllegalArgumentException
>     at java.nio.Buffer.position(Buffer.java:218)
>     at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:575)
>     at java.lang.StringCoding$CharsetSD.decode(StringCoding.java:186)
>     at java.lang.StringCoding.decode(StringCoding.java:224)
>     at java.lang.StringCoding.decode(StringCoding.java:230)
>     at java.lang.String.<init>(String.java:371)
> org.postgresql.jdbc1.AbstractJdbc1Connection.openConnectionV3(AbstractJdbc1
>     at Connection.java:352)

This bug was fixed in build 213 of the jdbc driver.  Please download a
newer version from http://jdbc.postgresql.org/download.html

Kris Jurka