From: | Crispin Miller <crispin(at)cs(dot)man(dot)ac(dot)uk> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | JDBC and insert - stack overflow |
Date: | 1999-05-24 14:09:04 |
Message-ID: | 37495D80.26F5DF90@cs.man.ac.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-interfaces |
Hi,
I am afraid I am a newbie. Forgive me if this is a silly question-
I'm trying to create a large database using JDBC to load the tables by
calling executeUpdate with the statement "SQL INSERT INTO" + tableName +
" VALUES (" etc...
After 14 and a half thousand rows the java virtual machine crashes with:
Exception in thread "main" java.lang.StackOverflowError
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Compiled Code)
at sun.io.Converters.newConverter(Compiled Code)
at sun.io.Converters.newDefaultConverter(Compiled Code)
at sun.io.ByteToCharConverter.getDefault(Compiled Code)
at java.lang.String.<init>(Compiled Code)
at postgresql.PG_Stream.ReceiveString(Compiled Code)
at postgresql.Connection.ExecSQL(Compiled Code)
at postgresql.Statement.execute(Compiled Code)
at postgresql.Statement.executeUpdate(Compiled Code)
My first question is:
Am I doing things in a really stupid way?
If not, how do I fix the problem - I have tried increasing the default
stack and memory size for the JVM...
Crispin
From | Date | Subject | |
---|---|---|---|
Next Message | Edwin Ramirez | 1999-05-24 14:18:24 | JDBC getQuote Call |
Previous Message | Kaare Rasmussen | 1999-05-24 13:57:13 | Outer joins |
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Lockhart | 1999-05-24 14:16:28 | Re: [INTERFACES] ECPG feature |
Previous Message | Simon Drabble | 1999-05-24 13:37:08 | Re: [GENERAL] Problems with INSERT INTO? |