users@glassfish.java.net

Re: http-listener-1 die

From: <glassfish_at_javadesktop.org>
Date: Fri, 29 Aug 2008 11:47:46 PDT

I have the same problem:

A simple program like this will cause glassfish to crash:

        for(int n=0;n<1000;n++)
        {
            new Thread() {
                public void run()
                {
                    try
                    {
                        URL url = new URL("http://localhost:8080/ee");
                        URLConnection uc = url.openConnection();
                        BufferedReader rd = new BufferedReader(new InputStreamReader(uc.getInputStream()));
                        String line;
                        while((
                                line = rd.readLine()) != null)
                            System.out.println(line);
                    } catch(Exception e) { e.printStackTrace(); }
                }
            }.start();
        }

Why is this?
[Message sent by forum member 'pesalomo' (pesalomo)]

http://forums.java.net/jive/thread.jspa?messageID=296249