Socket problem
I'm having trouble running the networking examples from the Java
tutorial on the Linux JDK. I know this is basic stuff and I've gone
through the mailing list archives and the FAQ
My problem is that Socket throws an IOException for every IP address
I use. For example:
try {
echoSocket = new Socket("localhost", 7);
} catch (UnknownHostException e) {
System.err.println(e);
} catch (IOException e) {
System.err.println(e);
}
I'm using the latest JDK 1.2.2 RC2 on a Mandrake 6.1 system (glibc
2.1.2) and I've run the apps from both my user account and from root.
My connection to the Internet is through PPP with dynamic IP
addressing.
"ping localhost" works as does "ping myhostname". But all the Java
clients die with an IOException on the first attempt to create a Socket
object.
=
/etc/hosts
=
127.0.0.1 civic localhost localhost.localdomain
=
/etc/host.conf
=
order hosts,bind
multi on
Any ideas?
--Dan
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RPMs
You may remember my plea for assistance for help with installing the JDK and all the archiving problems I had. I was wondering if there was a concerted effort, anywhere, to create RPMs of the latest releases. Because my office network and CD writer, in a concerted attempt, do not wish me to copy any file that ends with .tar or .bz2 I settled for a jdk1.7 RPM and had no problems with it at all. I know it is a bit selfish of me to ask for RPMs, and not more generic distributions, but if it helps anyone to put java on their machine then it can only be a good thing. If someone knows of any method for generating RPMs I might have a go myself. Thanks. James.
Re: (Review ID: 98288) Tried to submit a bugreport on grigbaglayout
I dont know about 1.2.2, Sun is no releaseing any Non-Commercial source releases
to me anymore.
In one of my followup messages I did offer to supply the code, and point u to
the part that has gone awol. I did not get an answer. Nor did I get an answer to
this msg I posted. :-/
Its unfortunate that u, or SUN do not have these books that are publish - well
by sun. It does help in explaining how gridbaglayout works ( but not always, as
it falls short on some features ). I would think that u'd folks get a copy when
it appears that the 'bug' fixing committee doesn't understand some of java
features. It is particularily annoying when u suggest that I RTFM, when u wont
bother looking up ur own manuals.!
gat
BTW its not ur fault that layout is, or appears, to be a magical art.
chamness wrote:
> Uncle,
> Try as I might, I can't test your code. It is an incomplete
> code sample. The field 'users' is not declared, as is
> 'buttonpanel'. I'm guessing that both of these are Panels.
> I also don't have your ButtonPanel class. The size of the
> Frame (or Panel) is also necessary, since this effects the layout.
>
> I presume that you are using jdk1.2 since you refer to the
> book, "graphic Java1.2" Does this bug still exist in jdk1.2.2 ?
>
> Unfortunately, we don't have this book.
>
> Mark Chamness
>
> - Original Bug Report---
>
> category : java
> subcategory : classes_awt
> type : bug
> synopsis : Tried to submit a bugreport on grigbaglayout
> description : [gat@kodak gat]$ java -version
> java version "1.1.8"
> [gat@kodak gat]$
>
> Thanks, maybe u wanna look at "graphic Java1.2 - mastering the JFC third
> edition"
> Components, Containers, and Layout Managers ~pg 381
>
> chamness wrote:
>
> > Uncle,
> > Looks like you are re-using the object gbc for
> > all components you add. This will cause behavior
> > you probably don't intend.
> >
> > I suggest you check out the java tutorial on java.sun.com
> > and the swing examples.
> >
> > The type of support you are requesting can be found through two
> > services provided by Sun.
> >
> > Java Developer Connection - http://java.sun.com/jdc,
> > a free service which provides:
> >Access to technical support, and technical question and answer
> >database.
> >
> >Online discussion forums with JavaSoft engineers, and regular
> >weekly office hours with JavaSoft staff.
> >
> >Information about Java, including technical articles, training
> >courses, regular columns, and programming tips and techniques.
> >
> >Product Discounts
> >
> > Sun Developer Support - http://sunservice.usec.sun.com,
> > a paid service which provides:
> >Online and telephone support services with an array of packaging
> >options and delivery methods.
> >
> > Mark Chamness
> >
> > - Original Bug Report---
> >
> > category : java
> > subcategory : classes_awt
> > type : bug
> > synopsis : GridBagLayout does wrong layout ( or cannot undo REMAINDER )
> > description : tried to create a layout of:
> >
> > Listlabel Textfield
> > listlabel textfield
> > listbutton botton button
> >
> > but appearently I ( unexpectedly get )
> > ListLabel
> > listTextField
> > ListLabel
> > ListTextfield
> > Listbutton button button
> >
> > I am at a loss at understanding why I cant get textfield Label on same line
> :-(
> >
> > ListlHost = new List( 5 );
> > Label lHostName = new Label("Hostname");
> > Label lHostAddress = new Label("HostAddress");
> > TextField tfHostName = new TextField(20);
> > TextField tfHostAddress = new TextField(20);
> > Button bAdd = new Button( "Add" );
> > Button bRename = new Button( "Rename" );
> > Button bDelete = new Button( "Delete" );
> > ButtonPanel bpUsers = new ButtonPanel();
> >
> > .
> > .
> > .
> >
> > setLayout( new BorderLayout() );
> >
> > GridBagLayout gbl = new GridBagLayout();
> > GridBagConstraints gbc = new GridBagConstraints();
> > users.setLayout( gbl );
> >
> > gbc.anchor = GridBagConstraints.NORTHWEST;
> > gbc.gridheight = GridBagConstraints.REMAINDER;
> > gbc.fill = GridBagConstraints.VERTICAL;
> > users.add( lHost, gbc );
> >
> > gbc.gridheight = 1;
> > gbc.gridwidth = 1;
> > gbc.fill = GridBagConstraints.NONE;
> > users.add( lHostName, gbc );
> > gbc.gridwidth = GridBagConstraints.REMAINDER;
> > users.add( tfHostName, gbc );
> > gbc.gridwidth = 1;
> > users.add( lHostAddress, gbc );
> > gbc.gridwidth = GridBagConstraints.REMAINDER;
> > users.add( tfHostAddress, gbc );
> >
> > bpUse
Re: Assistance please...
>Blackdown's documentation seems quite inadequate especially to a beginner >like me who is more used to the plug and play nature of Windows. Well, talking of plug and play like behaviour. Does anyone know where I can get the RPM's for the Blackdown ports? cheers Todd --- Todd Papaioannou @ MSI Luckyspin @ TerraFirmA http://luckyspc.lboro.ac.ukhttp://terrafirma.terra.mud.org "Mobility is Key" 'It's a brave new world in there' --- The Aglet Portal - http://luckyspc.lboro.ac.uk/Aglets --- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re:jdk bug (nested memory levels)?
Kevin Hendricks wrote: > Hi, > > > OUCH: nested memory code, to 1 levels. > > This is an error message that basically says the locks we placed around our own > malloc functions to make them green_thread safe were *not* effective. > > ... > I am not sure how to debug this problem. Is there any way you could track down > the sequence of events that causes this and give us a small sample program to > test with. > the problem is that it's a rather complicated application server setup (servlet accessing ejb accessing oracle db) that causes this to happen. we'll try to find a smaller sample so that you can reproduce this. > > Thanks, > > p.s. there is a new jdk 1.2.2 with real working native threads out right now > (jdk 1.2.2 rc2). It should not exhibit this problem under native threads (but > probably will under green_threads). You may want to give it a try. > it happens with both, the old and the new version of the jdk with native and green threads, which seems kind of strange. is there any other lib apart from libc that we should check for the right version? What about the kernel? We're using 2.2.1 with smp. Are there any known issues with that? Another thing, we installed glibc 2.1.2 () in usr/local/lib in addition to our standard libc (2.1.1) and set LD_LIBRARY_PATH before running the new jdk binaries. is there something wrong with that? Thanks p.s.: attached is the output of an ldconfig -D > > Kevin > Blackdown Java porting team. -- (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de ldconfig.out.gz
Re: RPMs
"James Butler" <[EMAIL PROTECTED]> writes: > Because my office network and CD writer, in a concerted attempt, do > not wish me to copy any file that ends with .tar or .bz2 When you download the files, save it with a name (and type) of your choice. If necessary, further change the name and the type after downloading. The name and the type do not have to be anything close to tar, gzip, bz2, etc. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JCK Test
Time-wise, how long does it take to re-run the JCK tests? ( please let me know the hardware its being run on ) Best wishes, -- [ Riyad Kalla ] [ [EMAIL PROTECTED] ] [ CS - Major ] [ University of Arizona ] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Corrupted JDK-1.2.2
Ok, got a problem. Downloaded 21 megs of jdk-1.2.2-RC2-linux-i386-glibc-2.1.2.sh. Downloaded it as ASCII from ftp.tux.org. When I do: sh jdk-1.2.2-RC2-linux-i386-glibc-2.1.2.sh I get about 10 screens of licence info and then: 5. Source Code. Software may contain source code that is provided solely for reference purposes pursuant to the terms of this Agreement. Do you agree to the above license terms? [yes or no] yes Unpacking... Checksumming... 1 The download file appears to be corrupted. Please refer to the Troubleshooting section of the Installation Instructions on the download page for more information. Please do not attempt to install this archive file. What gives? Why the shar file anyway? bz2 was ok, gz even better. shar files aren't even compressed All comments welcome john -- E-Mail: John N. Alegre <[EMAIL PROTECTED]> Date: 28-Nov-99 Time: 14:08:47 This message was sent by XFMail -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: RPMs
Well, I don't think it is as simple as that. If only it was.I was being rather specific in picking on tars and bzips but I think it is the company (Reuters) LAN or the CD writer just misbehaving somewhere. James. - Original Message - From: Albert Y.C. Lai <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, November 28, 1999 4:16 PM Subject: Re: RPMs > "James Butler" <[EMAIL PROTECTED]> writes: > > > Because my office network and CD writer, in a concerted attempt, do > > not wish me to copy any file that ends with .tar or .bz2 > > When you download the files, save it with a name (and type) of your > choice. If necessary, further change the name and the type after > downloading. The name and the type do not have to be anything close > to tar, gzip, bz2, etc. > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Corrupted JDK-1.2.2
Download as binary. The file is bristling with non-ASCII data. Nathan On Sun, Nov 28, 1999 at 02:16:37PM -0600, John N. Alegre wrote: > Ok, got a problem. > > Downloaded 21 megs of jdk-1.2.2-RC2-linux-i386-glibc-2.1.2.sh. Downloaded it > as ASCII from ftp.tux.org. > > When I do: > > sh jdk-1.2.2-RC2-linux-i386-glibc-2.1.2.sh > > I get about 10 screens of licence info and then: > > 5. Source Code. Software may contain source code that is provided > solely for reference purposes pursuant to the terms of this Agreement. > > Do you agree to the above license terms? [yes or no] > yes > Unpacking... > Checksumming... > 1 > The download file appears to be corrupted. Please refer > to the Troubleshooting section of the Installation > Instructions on the download page for more information. > Please do not attempt to install this archive file. > > What gives? Why the shar file anyway? bz2 was ok, gz even better. shar files > aren't even compressed > > All comments welcome > john > > -- > E-Mail: John N. Alegre <[EMAIL PROTECTED]> > Date: 28-Nov-99 > Time: 14:08:47 > > This message was sent by XFMail > -- > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Corrupted JDK-1.2.2
At 2:16 PM -0600 11/28/99, John N. Alegre wrote: >What gives? Why the shar file anyway? bz2 was ok, gz even better. shar files >aren't even compressed Well, as I understand it, this is indeed compressed. It would be silly not to. The web page described it as a self-extracting zip file, if I remember correctly. In addition, having a shell script handle the install allows things like environment vars to be set, or library version checking to be done, etc. Now, I'm not a member of the blackdown team in any way shape or form, but I imagine that they wanted the flexibility that such a large, cross-distribution software package deserves. Just think about Winblows and Mac. When was the last time you downloaded a large development environment for Windows and it wasn't in the form of an installer? Even the JDK for other platforms comes in the form of an installer...why not linux too? Incidentally, I'm sure one could discover quite a bit by just reading the darn shell script. It's probably even commented... I haven't downloaded it yet, and given the problems people are having with AMD chips, it's unlikely I will for a while, until that gets resolved. I clearly can't release a java software product which is only supported on PII chips! -Will P.S. Rather than waste time speculating, like I just have, I'd be quite interested in a member of the blackdown team letting us know exactly what the primary motivation behind the new packaging was. ___ Will Koffel Course 21M (617) 225-6428 ~*_*~ [EMAIL PROTECTED]Course 6 MIT '00 http://web.mit.edu/wkoffel/www --- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Corrupted JDK-1.2.2
Shouldn't you download it as a binary since its a self container archive? If you download as ASCII aren't you destroying the nature of the archive? Just a thought -Riyad "John N. Alegre" wrote: > Ok, got a problem. > > Downloaded 21 megs of jdk-1.2.2-RC2-linux-i386-glibc-2.1.2.sh. Downloaded it > as ASCII from ftp.tux.org. > > When I do: > > sh jdk-1.2.2-RC2-linux-i386-glibc-2.1.2.sh > > I get about 10 screens of licence info and then: > > 5. Source Code. Software may contain source code that is provided > solely for reference purposes pursuant to the terms of this Agreement. > > Do you agree to the above license terms? [yes or no] > yes > Unpacking... > Checksumming... > 1 > The download file appears to be corrupted. Please refer > to the Troubleshooting section of the Installation > Instructions on the download page for more information. > Please do not attempt to install this archive file. > > What gives? Why the shar file anyway? bz2 was ok, gz even better. shar files > aren't even compressed > > All comments welcome > john > > -- > E-Mail: John N. Alegre <[EMAIL PROTECTED]> > Date: 28-Nov-99 > Time: 14:08:47 > > This message was sent by XFMail > -- > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- [ Riyad Kalla ] [ [EMAIL PROTECTED] ] [ CS - Major ] [ University of Arizona ] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Corrupted JDK-1.2.2
Looks like that might be the problem ill go back and download as a bin. In the old days shar files where always ascii with any bin date uuencoded. Thanks for the help john On 28-Nov-99 Will Koffel wrote: > At 2:16 PM -0600 11/28/99, John N. Alegre wrote: >>What gives? Why the shar file anyway? bz2 was ok, gz even better. shar >>files >>aren't even compressed > > Well, as I understand it, this is indeed compressed. It would be silly > not to. The web page described it as a self-extracting zip file, if I > remember correctly. In addition, having a shell script handle the install > allows things like environment vars to be set, or library version checking > to be done, etc. Now, I'm not a member of the blackdown team in any way > shape or form, but I imagine that they wanted the flexibility that such > a large, cross-distribution software package deserves. > > Just think about Winblows and Mac. When was the last time you downloaded > a large development environment for Windows and it wasn't in the form > of an installer? Even the JDK for other platforms comes in the form of an > installer...why not linux too? > > Incidentally, I'm sure one could discover quite a bit by just reading the > darn shell script. It's probably even commented... I haven't downloaded > it yet, and given the problems people are having with AMD chips, it's > unlikely I will for a while, until that gets resolved. I clearly can't > release a java software product which is only supported on PII chips! > > -Will > > P.S. Rather than waste time speculating, like I just have, I'd be quite > interested in a member of the blackdown team letting us know exactly > what the primary motivation behind the new packaging was. > > > > ___ > Will Koffel Course 21M > (617) 225-6428 ~*_*~ > [EMAIL PROTECTED]Course 6 > MIT '00 http://web.mit.edu/wkoffel/www > --- > -- E-Mail: John N. Alegre <[EMAIL PROTECTED]> Date: 28-Nov-99 Time: 17:33:18 This message was sent by XFMail -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: NEW JDK RELEASE! "Illegal instruction"
Yes. I get the same Illegal instruction error on a Pentium MMX 233 running Debian potato (refreshed last night), glibc-2.1.2. -Peter Paul Bowman wrote: > > The JDK-1.2.2rc2 release appears to have been built with some native > code > which is dependent on a Pentium II or newer processor. > > The JDK-1.2.2rc2 release runs out of the box on a Pentium II - 266Mhz > processor > using Slackware 7, which is based on glibc-2.1.2. > > Trying the same JDK release on a machine using a Pentium-MMX - 233Mhz > with Slackware > 7, I got the Illegal instruction error. > > -Paul > > Riyad Kalla wrote: > > > > Odd, no mine worked fine right off the bat. It seems a bit faster to me, but > > other than that I can't tell a difference (I don't do the hardcore-coding you all > > do). > > > > Best wishes, > > > > -Riyad > > > > Ekkehard Kraemer wrote: > > > > > Hallo Riyad, > > > > > > RK>New release of JDK 1.2.2! > > > > > > After downloading the 20 MB and installing it (I wonder why it doesn't come as > > > standard .tgz, but never mind), I just get "Illegal instruction" (without any > > > other output) when running java oder appletviewer. I'm running a up-to-date > > > Debian potato system, i.e. the same as was used compiling the JDK. > > > > > > Has anybody on this list had the same problem and fixed it? If so, how? > > > > > > MbG, Ekkehard > > > > > > -- > > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > > > -- > > [ Riyad Kalla ] > > [ [EMAIL PROTECTED] ] > > [ CS - Major ] > > [ University of Arizona ] > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Corrupted JDK-1.2.2
Thanks for your reply John. In the old days of UNIX shar files were just borne shell scripts with any binary in a uuencode include. The script itself was always ascii, thus my incorrect assumption that this was to be downloaded as ascii. Indeed downloading as bin fixed things. I have cc'ed this to the list so anyone reading wont commit the same boo boo. Thanks john On 28-Nov-99 [EMAIL PROTECTED] wrote: > Actually, it's a bit more peculiar than that. The sh file is actually > mostly binary. I'm guessing the sh style distribution is so they can stick > on the license agreement, probably at sun's behest. In any case, you'll > have to download it in binary mode, not ascii mode. As far as compression > is concerned, it appears to be a self extracting zip file. You won't get a > lot more compression by compressing the sh file (I tried). > > It's a peculiar way to distribute binaries, and I personally wouldn't > expect it to work. Perhaps it doesn't... that would explain all the > complaints of "Illegal Instruction" out there (myself included). > > > > > > > "John N. Alegre" <[EMAIL PROTECTED]> on 11/28/99 02:16:37 PM > > To: [EMAIL PROTECTED] > cc:(bcc: John Knutson/GISD/SGG/ARLUT) > Subject: Corrupted JDK-1.2.2 > > > > > Ok, got a problem. > Downloaded 21 megs of jdk-1.2.2-RC2-linux-i386-glibc-2.1.2.sh. Downloaded > it > as ASCII from ftp.tux.org. > When I do: > sh jdk-1.2.2-RC2-linux-i386-glibc-2.1.2.sh > I get about 10 screens of licence info and then: > 5. Source Code. Software may contain source code that is provided > solely for reference purposes pursuant to the terms of this Agreement. > Do you agree to the above license terms? [yes or no] > yes > Unpacking... > Checksumming... > 1 > The download file appears to be corrupted. Please refer > to the Troubleshooting section of the Installation > Instructions on the download page for more information. > Please do not attempt to install this archive file. > What gives? Why the shar file anyway? bz2 was ok, gz even better. shar > files > aren't even compressed > All comments welcome > john > -- > E-Mail: John N. Alegre <[EMAIL PROTECTED]> > Date: 28-Nov-99 > Time: 14:08:47 > This message was sent by XFMail > -- > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > > > -- E-Mail: John N. Alegre <[EMAIL PROTECTED]> Date: 28-Nov-99 Time: 19:59:40 This message was sent by XFMail -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Testing RMI with New release
Hi, I was trying to learn RMI using JDK1.2.2. I am using different examples given in Java Network Programming(2nd edition). My rmiregistry command runs successfully. However when I give java DateServerImpl it gives me /usr/local/jdk1.2.2/jre/lib/rt.jar Bad file Discriptor. Do you have any hint? Thank you santos __ Get Your Private, Free Email at http://www.hotmail.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
hint to mirror maintainers...
there's actvity on the web pages... you might want to update your mirrors. and those that think it's being done for you might want to double check your scripts three out of four mirrors are at least five months out of date, while the remaining one is unreachable from here. Considering how slow www.blackdown.org is, and how much faster the mirrors are (even one of the ones a lot farther away is routinely faster for me) I would think that keeping them up to date would be a high priority activity -=Chris cabbey at home dot net <*> http://members.home.net/cabbey I want a binary interface to the brain! Today's opto-mechanical digital interfaces are just too slow! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
