🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8170

Another Problem

#8170
From: Fco. Javier Ridruejo P�rez
Date: Sun, 08 Apr 2001 18:17
49 lines
2722 bytes
Hello Joi Ellis,

The application works after installing java 1.2.2, instead of the default
1.3.0-C from JBuilder4, the application no longer hangs on the new
MulticastSocket instruction. Maybe a bug in 1.3.0-C???

But another problem now, the application throws java.io.IOException:
Controller not valid, at runtime. Why is this caused? There are several
Threads launched, and one of them waits for standard input to put "exit"
from keyboard. When I introduce anything from keyboard, the program throws
the exception.

This same code works on Oracle JDeveloper with the option of executing the
standard output in a console window, also on Windows 2000, I do not know why
it don't works on JBuilder4.

Here it is the code:

BufferedReader br2=new BufferedReader(new InputStreamReader(System.in));
boolean sal=false;
while(!sal){
try{
sal=br2.readLine().startsWith("exit");/********Here it is produced the
exception******/
if(!sal)continue;/********on the br2.readLine()************/
// Se lee la l�nea con una llamada
//si lo que se ha leido por la entrada estandar empieza con exit se
//cierra todo y se sale
      visualizador.interrupt();
      cinco.interrupt();
      mediaHora.interrupt();
      mbone.interrupt();
      visualizador.join();
      cinco.join();
      mediaHora.join();
      mbone.join();
}
catch(IOException e){
  System.out.println(e.toString());/***********This is the Exception
launched*******/
  continue;
}
catch(InterruptedException e2){
  System.out.println(e2.toString());
}
}

Thanks very much for helping me.
Fco. Javier Ridruejo P�rez.
Technical Details
Message-ID: <4X1A6.90933$YO6.1490597@telenews.teleline.es>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!205.231.236.10!newspeer.monmouth.com!newsfeed.mad.ttd.net!telenews.teleline.es!not-for-mail
References: <3acdc535_2@dnews> <3acdc826_1@dnews> <3acdf345_2@dnews> <3ace400f_1@dnews> <jVJz6.83798$YO6.1368902@telenews.teleline.es>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,3e8cffa76c3d9
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-04-08 11:18:36 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!205.231.236.10!newspeer.monmouth.com!newsfeed.mad.ttd.net!telenews.teleline.es!not-for-mail
From: "Fco. Javier Ridruejo P�rez" <ridruejo@neofis.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3acdc535_2@dnews> <3acdc826_1@dnews> <3acdf345_2@dnews> <3ace400f_1@dnews> <jVJz6.83798$YO6.1368902@telenews.teleline.es>
Subject: Another Problem
Lines: 53
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Message-ID: <4X1A6.90933$YO6.1490597@telenews.teleline.es>
Date: Sun, 08 Apr 2001 18:17:36 GMT
NNTP-Posting-Host: 213.4.91.44
X-Complaints-To: usenet@teleline.es
X-Trace: telenews.teleline.es 986753856 213.4.91.44 (Sun, 08 Apr 2001 20:17:36 MET DST)
NNTP-Posting-Date: Sun, 08 Apr 2001 20:17:36 MET DST
Organization: Clientes_Teleline