I'm seeing this strange behavior, and don't really
know how to go about finding what's going on. I have
a class that looks like this:

  class Foo
  {
    public void process()
    {
      // do some stuff
    }

    public static final void main(String[] ignored)
    {
        process();
        System.out.println("Done!");
    }
  }

Method main() is for testing purposes only. Method
process() does some stuff with a bunch of values
stored in arrays, and prints lots of output. From a
command prompt, I run this thing like this:

  java <classpath settings> Foo

Everything works Ok in the original array-based version,
including printing "Done!" at the end and returning
to the command prompt.

I changed process() to go to MySQL instead of taking
the values from fixed arrays. I used torque to generate
the peers, and everything works EXACTLY the same (I'm
verifying this by diff'ing the output in both cases). I'm
still getting the "Done!" printed at the end; however,
after printing "Done!" the command window just hangs in
there, and I don't get the command prompt back. The process
is not using up any CPU, and I can hit Ctrl-C to abort it,
but it never goes back to the command prompt on its own.
My tests indicate that commenting out the call to process()
(and, therefore, to the Peer stuff) makes the program finish
on its own.

Any ideas what's going on? Any suggestions on how to debug
this behavior?

Thanks,


-- 
Gonzalo A. Diethelm
[EMAIL PROTECTED]


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to