pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Crispin Miller <crispin@cs.man.ac.uk>
To: pgsql-general@postgresql.org
Subject: JDBC and insert - stack overflow
Date: Mon, 24 May 1999 15:09:04 +0100
Message-ID: <37495D80.26F5DF90@cs.man.ac.uk> (raw)

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





view thread (5+ messages)  latest in thread

Message-ID: <37495D80.26F5DF90@cs.man.ac.uk>
Permalink:  ../37495D80.26F5DF90@cs.man.ac.uk/
Also on:    postgresql.org/message-id/37495D80.26F5DF90@cs.man.ac.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: crispin@cs.man.ac.uk, pgsql-general@postgresql.org
  Subject: Re: JDBC and insert - stack overflow
  In-Reply-To: <37495D80.26F5DF90@cs.man.ac.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox