No Subject
am running a java method which includes a native method and am getting the following error messages, any ideas anyone? Cheers. Murray. SIGSEGV 11* segmentation violation stackbase=0xb9f0, stackpointer=0xb8f8 Full thread dump: "Finalizer thread" (TID:0x40655210, sys_thread_t:0x41399f04, state:R) prio=1 "Async Garbage Collector" (TID:0x40655258, sys_thread_t:0x41378f04, state:R) prio=1 "Idle thread" (TID:0x406552a0, sys_thread_t:0x41357f04, state:R) prio=0 "Clock" (TID:0x40655088, sys_thread_t:0x41336f04, state:CW) prio=12 "main" (TID:0x406550b0, sys_thread_t:0x818ddd8, state:R) prio=5: pending=jav a.lang.NoSuchFieldError *current thread* tracerouteJ.main(tracerouteJ.java:14) Monitor Cache Dump: Registered Monitor Dump: Thread queue lock: Name and type hash table lock: String intern lock: JNI pinning lock: JNI global reference lock: BinClass lock: Class loading lock: Java stack lock: Code rewrite lock: Heap lock: Has finalization queue lock: Finalize me queue lock: Dynamic loading lock: Monitor IO lock: Child death monitor: Event monitor: I/O monitor: Alarm monitor: Waiting to be notified: "Clock" (0x41336f04) Monitor registry: owner "main" (0x818ddd8, 1 entry) Thread Alarm Q: IOT trap/Abort (core dumped) n-ary .. .. .. the uk java specialists http://www.n-ary.com [Servlets][JDBC][Applications] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Netscape 4.61 bus error
Hi, I just upgraded to RedHat 6.0 and Netscape 4.61 and when I invoke a Java applet, Netscape exits with a 'bus error' when trying to start Java. Has anyone seen this and if so, does anyone know what the solution is ? Thanks Rob -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
segmentation while using db2cc
I've just got db2 udb up and running, (or almost running). I've been experimenting with table creation etc via db2cc and routinely get a segmentation fault in the jvava vm (using blackdown 117_v3). Has anyone else seen this? My system is an asus dual processor PII 400, 256m ram, running Redhat 6.0. Using green threads and I will go on to test with native threads soon as I post this. tothedumpdothedumptothedumpdumpdump... wcn SIGSEGV 11* segmentation violation stackbase=0x48918000, stackpointer=0x48917b64 Full thread dump: "AWT-Modal" (TID:0x422922a0, sys_thread_t:0x4e0c, state:CW) prio=5 sun.awt.motif.ModalThread.run(MDialogPeer.java:142) "AWT-Dispatch-Proxy" (TID:0x422922c0, sys_thread_t:0x48938e0c, state:CW) prio=5 java.lang.Object.wait(Object.java) java.awt.EventQueue.getNextEvent(EventQueue.java:118) java.awt.EventDispatchThread.run(EventDispatchThread.java:67) "Image Fetcher 0" (TID:0x422b5bb8, sys_thread_t:0x4899be0c, state:CW) prio=8 sun.awt.image.ImageFetcher.nextImage(ImageFetcher.java:101) sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:138) sun.awt.image.ImageFetcher.run(ImageFetcher.java:119) "TraceRepositoryQueueProcessor_thread" (TID:0x422d7028, sys_thread_t:0x4897ae0c, state:CW) prio=5 navigator.TraceRepository.serviceTheTraceQueue(TraceRepository.java:152) navigator.TraceRepository.run(TraceRepository.java:134) java.lang.Thread.run(Thread.java) "MessageRepositoryQueueProcessor_thread" (TID:0x422d70d8, sys_thread_t:0x48959e0c, state:CW) prio=5 db2_udb.MessageRepository.serviceTheMessageQueue(MessageRepository.java:210) db2_udb.MessageRepository.run(MessageRepository.java:190) java.lang.Thread.run(Thread.java) "AWT-Finalizer" (TID:0x42314198, sys_thread_t:0x48917e0c, state:R) prio=9 *current thread* sun.awt.motif.X11Graphics.dispose(X11Graphics.java:103) sun.awt.motif.X11Graphics.doFinalization(X11Graphics.java:116) sun.awt.AWTFinalizer.run(AWTFinalizer.java:47) "Screen Updater" (TID:0x42310428, sys_thread_t:0x488f6e0c, state:CW) prio=4 java.lang.Object.wait(Object.java) sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java:70) sun.awt.ScreenUpdater.run(ScreenUpdater.java:90) "TimerQueue" (TID:0x4230e930, sys_thread_t:0x488d5e0c, state:CW) prio=5 javax.swing.TimerQueue.run(TimerQueue.java:205) java.lang.Thread.run(Thread.java) "ImageRepository" (TID:0x422fc2d8, sys_thread_t:0x48867e0c, state:CW) prio=1 navigator.ImageRepository.loadCacheThreaded(ImageRepository.java:1473) navigator.ImageRepository.run(ImageRepository.java:1353) java.lang.Thread.run(Thread.java) "CC_localhost_9000" (TID:0x422f8bd0, sys_thread_t:0x48846e0c, state:CW) prio=5 CC.run(CC.java:365) java.lang.Thread.run(Thread.java) "AWT-Motif" (TID:0x422ee5e8, sys_thread_t:0x48825e0c, state:CW) prio=5 java.lang.Thread.run(Thread.java) "AWT-Input" (TID:0x422ee608, sys_thread_t:0x48804e0c, state:CW) prio=5 "AWT-EventQueue-0" (TID:0x422ee620, sys_thread_t:0x487e3e0c, state:CW) prio=5 java.lang.Object.wait(Object.java) sun.awt.motif.MDialogPeer.show(MDialogPeer.java:98) java.awt.Dialog.show(Dialog.java:219) java.awt.Component.show(Component.java:511) java.awt.Component.setVisible(Component.java:473) common.HotKeyDialog.setVisible(HotKeyDialog.java:662) db2_udb.ColumnInfo.init(ColumnInfo.java:352) db2_udb.ColumnInfo.(ColumnInfo.java:209) db2_udb.ColumnInfo.(ColumnInfo.java:223) db2_udb.TablePageEditColumns.actionBAdd(TablePageEditColumns.java:892) db2_udb.TablePageEditColumns.actionPerformed(TablePageEditColumns.java:605) javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1066) javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1101) javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378) javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250) javax.swing.plaf.basic.BasicButtonListener$ReleasedAction.actionPerformed(BasicButtonListener.java:269) javax.swing.JComponent.processKeyBinding(JComponent.java:1528) javax.swing.JComponent.processKeyBindings(JComponent.java:1541) javax.swing.JComponent.processKeyEvent(JComponent.java:1457) java.awt.Component.processEvent(Component.java:2209) "Finalizer thread" (TID:0x422e7210, sys_thread_t:0x487abe0c, state:R) prio=1 sun.awt.AWTFinalizer.addFinalizeable(AWTFinalizer.java:57) sun.awt.motif.X11Graphics.finalize(X11Graphics.java:111) "Async Garbage Collector" (TID:0x422e7258, sys_thread_t:0x4878ae0c, state:CW) prio=1 "Idle thread" (TID:0x422e72a0, sys_thread_t:0x48769e0c, state:R) prio=0 "Clock" (TID:0x422e7088, sys_thread_t:0x48748e0c, state:CW) prio=12 "main" (TID:0x422e70b0, sys_thread_t:0x81a8040, state:CW) prio=5 Monitor Cache Dump: javax.swing.TimerQueue@1110501688/493248: Waiting to be notified: "TimerQueue" (0x488d5e0c) sun.awt.motif.ModalThread@1109992096/1113424048: owner "AWT-Modal" (0x4e0c, 1 entry) Waiting to be notified:
Re: Netscape 4.61 bus error
I had the same problem. I just grabbed a new rpm and installed all over and it was fine. Of course, if anyone knows why it happened in the first place I am sure Rob and I would be happy to hear it ;-) Rob Nugent wrote: Hi, I just upgraded to RedHat 6.0 and Netscape 4.61 and when I invoke a Java applet, Netscape exits with a 'bus error' when trying to start Java. Has anyone seen this and if so, does anyone know what the solution is ? Thanks Rob -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- --- Todd M Greanier "I will return to chomp and devour" Sr. Software Engineer Frontier Corporation
Sending mail from an application (Pre-v2 JDK, Redhat 6.0)
Hey all, How would one go about sending e-mail from an application? I have tried doing it via the Runtime.exec() method and running a long drawn out 'mail' command, but the system executes it too fast and it ends up getting garbled in the process. Any ideas? Thanks, Abe Abe L. Getchell - Systems Engineer System Support Services Kentucky Department of Education Voice 502-564-2020x225 E-mail [EMAIL PROTECTED] Web http://www.kde.state.ky.us/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: Netscape 4.61 bus error
I ran into a similar problem with Netscape 4.5.x. At the RedHat site, they reported that this was due to a bug in one of their RPMs. The fix was to add the 75dpi font to the font path with: /usr/sbin/chkfontpath --add /usr/X11R6/lib/X11/fonts/75dpi as root. For more info, the reference number of the reported bug and solution is: REF#990511-0082 Hope this helps. Bill > -Original Message- > From: Rob Nugent [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 22, 1999 9:20 AM > To: [EMAIL PROTECTED] > Subject: Netscape 4.61 bus error > > > Hi, > > I just upgraded to RedHat 6.0 and Netscape 4.61 and when I > invoke a Java > > applet, Netscape exits with a 'bus error' when trying to start Java. > > Has anyone seen this and if so, does anyone know what the > solution is ? > > Thanks > Rob > > > -- > 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: Netscape 4.61 bus error
Bill, Many thanks - that fixed it ! Rob Bill & Martinah Smith wrote: > I ran into a similar problem with Netscape 4.5.x. At the RedHat site, they > reported that this was due to a bug in one of their RPMs. The fix was to add > the 75dpi font to the font path with: > > /usr/sbin/chkfontpath --add /usr/X11R6/lib/X11/fonts/75dpi > > as root. > > For more info, the reference number of the reported bug and solution is: > REF#990511-0082 > > Hope this helps. > > Bill > > > -Original Message- > > From: Rob Nugent [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, July 22, 1999 9:20 AM > > To: [EMAIL PROTECTED] > > Subject: Netscape 4.61 bus error > > > > > > Hi, > > > > I just upgraded to RedHat 6.0 and Netscape 4.61 and when I > > invoke a Java > > > > applet, Netscape exits with a 'bus error' when trying to start Java. > > > > Has anyone seen this and if so, does anyone know what the > > solution is ? > > > > Thanks > > Rob > > > > > > -- > > 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: Sending mail from an application (Pre-v2 JDK, Redhat 6.0)
[EMAIL PROTECTED] wrote: > > Hey all, > How would one go about sending e-mail from an application? I have > tried doing it via the Runtime.exec() method and running a long drawn out > 'mail' command, but the system executes it too fast and it ends up getting > garbled in the process. Any ideas? Sounds like a job for the JavaMail extension... available for download from JavaSoft. Nathan > Thanks, > Abe > > Abe L. Getchell - Systems Engineer > System Support Services > Kentucky Department of Education > Voice 502-564-2020x225 > E-mail [EMAIL PROTECTED] > Web http://www.kde.state.ky.us/ > > -- > 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: Segmentation Fault and 1024-bit reselotion?
Nathan Meyers wrote: > Rob Clark wrote: > > > > For what it is worth, I see the same problem under xfree86 at 16bpp, > > so I am not sure that it is an Xvnc problem. > > > > What is involved in adding support for new color depths? I would like > > to drop support for older versions of JDK for an application that I am > > developing that I would be willing to volunteer to help, if possible. > > If you can solve your immediate problems by running your X server in an > 8-bit mode, do it. > > The JDK is not open source, and you'll need to jump through some hoops > to contribute to the Blackdown port. If it's really, really important to > your work that you fix the JDK, be prepared to dive into Java2D code > that is, I'm sure, nice and hairy. > Well I did and extensive review of Java2D and yes its very hairy. There are mutiple pipelines and its not very clear to me at least which one gets used when. Plus the are many cases where there is way to many object getting created. I think the Java2D implementation illustrates a basic weakness with the java language how do you operate on a "primitive" type such as color wich can be defined many diffrent ways. If the java language had the ability to define new primitive types based on the current ones then I think it would be much easier to implement Java2D. If you could even just transform and array of ints into a array of bytes and vice versa then it would be great! Classes like this should compile in java. public class byteInt[] extends int[] { /** * Provides a view of a int array as and array of bytes * data is shared between int and byte view **/ native byte[] asByteArray(); } byteInt[] myInts = new byteInt[10]; byte[] myByte = myInts.asByteArray(); // views a byteInt as a byte array "big endian" You can do this by shifting and copying but its very inefficient. There are many more "Array" operations needed for graphics that there missing or impossible to implement efficiently directly in the java language. Some of these issues could be fixed by special optimizations for loops wich perform operations on primitive data. There is no reason such loops cannot run at native speeds. Mike But once you get through how it works adding yet another bit depth is not that hard. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
jdk1.1.7_v3 with RH 5.2
Hi all, jre,jdk 117_v3 (glibc) -> core dump with RH5.2 with green,native threads , jit or nojit 117_v1a run fine . I check bad libraries (as suggest in install), ldconfig but nothing seems bad. Does v3 runs only with RH6.0 or glic2.1 ? Thanks a lot for any info Luc Martin [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: Sending mail from an application (Pre-v2 JDK, Redhat 6.0)
You could try using JavaMail, which is available from Java.sun.com (sorry don't have exact URL to hand, but search should find it). We have used it successfully to send plain text mails, as well as mails with attachments. -- Sebastian Bazley <[EMAIL PROTECTED]> The opinions expressed herein are my own, and are not necessarily endorsed by my employer ... > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 22 July 1999 15:06 > To: [EMAIL PROTECTED] > Subject: Sending mail from an application (Pre-v2 JDK, Redhat 6.0) > > > Hey all, > How would one go about sending e-mail from an > application? I have > tried doing it via the Runtime.exec() method and running a > long drawn out > 'mail' command, but the system executes it too fast and it > ends up getting > garbled in the process. Any ideas? > > Thanks, > Abe > > Abe L. Getchell - Systems Engineer > System Support Services > Kentucky Department of Education > Voice 502-564-2020x225 > E-mail [EMAIL PROTECTED] > Web http://www.kde.state.ky.us/ > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > ___ This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Sema Group. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify the Sema Group Helpdesk by telephone on +44 (0) 121 627 5600. ___ application/ms-tnef
Re: Netscape 4.61 bus error
>I just upgraded to RedHat 6.0 and Netscape 4.61 and when I invoke a Java >applet, Netscape exits with a 'bus error' when trying to start Java. I don't have that happen, but pretty much any Java applet I run works for about 5 seconds before the entire netscape process wedges, consuming 100% CPU and having to be kill -9ed. I've just assumed that once again Netscape on Linux has bad Java support. In particular, I'm guessing glibc2.1 kills it. Is there some workaround for this? Anyone have better results? [EMAIL PROTECTED] . . . .. . . . http://www.media.mit.edu/~nelson/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Evoke Unix call ">" from Java??
I am trying to make my Java code to exec another Unix program. The command in Unix/Linux platform is: "ppmtogif inputfile.ppm > outputfile.gif" The command will create a new output file storing a gif formatted image. However, I tryed the following in my Java code: String command = "ppmtogif inputfile > outputfile"; try { Process GUIP = Runtime.getRuntime().exec(command); } // End for try It does not do work. --Sim -- Yuet Sim Lee -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Netscape 4.61 bus error
Nelson Minar wrote: > > >I just upgraded to RedHat 6.0 and Netscape 4.61 and when I invoke a Java > >applet, Netscape exits with a 'bus error' when trying to start Java. > > I don't have that happen, but pretty much any Java applet I run works > for about 5 seconds before the entire netscape process wedges, > consuming 100% CPU and having to be kill -9ed. > > I've just assumed that once again Netscape on Linux has bad Java > support. In particular, I'm guessing glibc2.1 kills it. Is there some > workaround for this? Anyone have better results? I've not had that many problems with Netscape and Java. Sure it will crash or lock up sometimes, but not every time. For the most part it's usable. I'm using a Mandrake RPM, but it will work on a RH6 system. If you want to give it a try look at: ftp://ftp.wtfo.com/pub/linux/mandrake/6.0/Mandrake/RPMS/ There are the usual 3 RPMs. -Jim -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Evoke Unix call ">" from Java??
The redirection operator ">" is interpreted by the shell, and your exec call doesn't go through a shell. Try this: String[] cmds = { "sh", "-c", "ppmtogif inputfile.ppm > outputfile.gif" }; Runtime.getRuntime().exec(cmds); This will run a shell that will interpret your command line. There are other solutions that don't involve running an external shell, but this is the simplest. Nathan Yuet Sim Lee wrote: > > I am trying to make my Java code > to exec another Unix program. > The command in Unix/Linux platform > is: > > "ppmtogif inputfile.ppm > outputfile.gif" > > The command will create a new output file > storing a gif formatted image. > However, I tryed the following in my > Java code: > >String command = "ppmtogif inputfile > outputfile"; >try { >Process GUIP = Runtime.getRuntime().exec(command); >} // End for try > > It does not do work. > > --Sim > > -- > Yuet Sim Lee > > -- > 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]
Help needed
Hi, Here is a piece of code, i am trying to execute in JDK1.2pre-release. But it does not seem to be running. The code : *** class test { public static void main(String Str[]) { int sum=0; int a=7; int b=7; for (int i=0;i<10;i++) sum=(a*a*a*b) + (a*a*a*b)+ (a*a*a*b)+ (a*a*a*b); } } *** ERROR: java: ../../../../src/share/java/bcopt/Loop.C:374: boolean Loop::is_node_invariant(class Node *) const: Assertion `_invariant_nodes_list[node->GetBlock()->GetBlockNumber()].contains(node) == ret_val' failed. SIGABRT 6* abort (generated by abort(3) routine) stackpointer=0xb47c Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v2, native threads): "Finalizer" (TID:0x404bf320, sys_thread_t:0x80cc558, state:CW, native ID:0xc04) prio=8 at java.lang.Object.wait(Native Method) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174) "Reference Handler" (TID:0x404bf3b0, sys_thread_t:0x80c7da0, state:CW, native ID:0x803) prio=10 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:424) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114) "SIGQUIT handler" (TID:0x404bf3e0, sys_thread_t:0x80c0838, state:R, native ID:0x402) prio=5 "main" (TID:0x404bf1e0, sys_thread_t:0x804bf40, state:R, native ID:0x400) prio=5 Monitor Cache Dump: (0x404c6b49): owner "main" (0x804bf40) 1 entry java.lang.ref.ReferenceQueue$Lock@404BF338/404F5028: Waiting to be notified: "Finalizer" (0x80cc558) java.lang.ref.Reference$Lock@404BF3C0/404F4B20: Waiting to be notified: "Reference Handler" (0x80c7da0) Registered Monitor Dump: PCMap lock: utf8 hash table: JNI pinning lock: JNI global reference lock: BinClass lock: Class linking lock: System class loader lock: Code rewrite lock: Heap lock: Monitor cache lock: owner "main" (0x804bf40) 1 entry Thread queue lock: owner "main" (0x804bf40) 1 entry Monitor registry: owner "main" (0x804bf40) 1 entry *** Can somebody help me out... Thanx a lot.. regards, Raj -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
draw images
hi, i want to draw a image in my applet and i used the code below. but it is not loading. i think there is a small mistake. thanks in advance MUTHU. import java.awt.*; import java.lang.*; import java.net.*; public class GetImage extends java.applet.Applet { Image img; public void init() { System.out.println(getCodeBase()); try { img = getImage(new URL("http://163.122.6.33:2000/applet/"),"Chinese.jpg"); System.out.println(img.getSource()); } catch(Exception e) { System.out.println("Exception"+e); } } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bad file descriptors?
Hi, Can someone tell me what this means: java.io.IOException: Bad file descriptor at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(Compiled Code) ... This keeps happening while attempting to read an input file I need to use. Thanks, dstn. -- Dustin Lang, [EMAIL PROTECTED]-- (java developer, linux guy, freak with rainbow hair) User, n.: a particularly slow and unreliable input/ output device that is attached by default to the standard input and output streams. (stolen from a Gamelan article, author unknown) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: draw images
> i want to draw a image in my applet and i used the code > below. but it is not loading. i think there is a small mistake. > > public class GetImage extends java.applet.Applet { > > Image img; > > public void init() { > > System.out.println(getCodeBase()); > try { > img = getImage(new > URL("http://163.122.6.33:2000/applet/"),"Chinese.jpg"); > System.out.println(img.getSource()); > } > catch(Exception e) > { > System.out.println("Exception"+e); > } > > } If you mean that it's partially loading, then you probably need to use a MediaTracker to make sure the image is completely loaded before you try to use it. (I'm not sure if you have a different problem exactly) The code to do this is something like: MediaTracker tracker = new MediaTracker(this); img = getImage(getDocumentBase(), "Chinese.jpg"); tracker.addImage(img, 0); try { tracker.waitForAll(); } catch (InterruptedException ex) { System.err.println("Exception while waiting for image to load"); ex.printStackTrace(); } Hope this helps, Rick Sanders [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Netscape 4.61 bus error
I had the same problem ( along with many others ) when I upgraded my Debian system to glibc 2.1. Several days, and 3 distro installs later, everything works fine. You know in the glibc HOW-TO's where they tell you to leave the libc alone unless you know what you're doing? They're absolutely right. Incidentally, I'm now on Redhat 5.2 ( glibc 2.07 ), and Communicator 4.61 downloaded from Netscape is working great. JDK2pre2 seems to be working all right, but it hasn't been put through any paces yet ( still busy rebuilding my setup ) --Brian Wisti ([EMAIL PROTECTED]) Todd Greanier wrote: > > I had the same problem. I just grabbed a new rpm and installed all > over and it was fine. > > Of course, if anyone knows why it happened in the first place I am > sure Rob and I would be happy to hear it ;-) > > > Rob Nugent wrote: > > > Hi, > > > > I just upgraded to RedHat 6.0 and Netscape 4.61 and when I invoke a > > Java > > > > applet, Netscape exits with a 'bus error' when trying to start Java. > > > > Has anyone seen this and if so, does anyone know what the solution > > is ? > > > > Thanks > > Rob > > > > --- > > -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Help needed
Raj, Basically it says that your code doesn't make sense because the result of sum is invariant to the loop. I can't tell you why it fails under Blackdown JDK1.2 for Linux (it does on my machine too) but works under Sun JDK1.2 for Windows. If you changed your code to something like this sum + = (a*a*a*b) + (a*a*a*b)+ (a*a*a*b)+ (a*a*a*b); it works because then the loop makes sense. Rudy -Original Message- From: Rajkishore Barik <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Thursday, July 22, 1999 11:47 AM Subject: Help needed >Hi, > Here is a piece of code, i am trying to execute in > JDK1.2pre-release. But it does not seem to be running. > The code : >*** >class test { >public static void main(String Str[]) { > int sum=0; > int a=7; > int b=7; > > for (int i=0;i<10;i++) > sum=(a*a*a*b) + (a*a*a*b)+ (a*a*a*b)+ (a*a*a*b); >} >} >*** > ERROR: >java: ../../../../src/share/java/bcopt/Loop.C:374: boolean Loop::is_node_invariant(class Node *) const: Assertion `_invariant_nodes_list[node->GetBlock()->GetBlockNumber()].contains(node) == ret_val' failed. >SIGABRT 6* abort (generated by abort(3) routine) > stackpointer=0xb47c > >Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v2, native threads): >"Finalizer" (TID:0x404bf320, sys_thread_t:0x80cc558, state:CW, native ID:0xc04) prio=8 > at java.lang.Object.wait(Native Method) > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112) > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127) > at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174) >"Reference Handler" (TID:0x404bf3b0, sys_thread_t:0x80c7da0, state:CW, native ID:0x803) prio=10 > at java.lang.Object.wait(Native Method) > at java.lang.Object.wait(Object.java:424) > at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114) >"SIGQUIT handler" (TID:0x404bf3e0, sys_thread_t:0x80c0838, state:R, native ID:0x402) prio=5 >"main" (TID:0x404bf1e0, sys_thread_t:0x804bf40, state:R, native ID:0x400) prio=5 >Monitor Cache Dump: > (0x404c6b49): owner "main" (0x804bf40) 1 entry >java.lang.ref.ReferenceQueue$Lock@404BF338/404F5028: > Waiting to be notified: > "Finalizer" (0x80cc558) >java.lang.ref.Reference$Lock@404BF3C0/404F4B20: > Waiting to be notified: > "Reference Handler" (0x80c7da0) >Registered Monitor Dump: >PCMap lock: >utf8 hash table: >JNI pinning lock: >JNI global reference lock: >BinClass lock: >Class linking lock: >System class loader lock: >Code rewrite lock: >Heap lock: >Monitor cache lock: owner "main" (0x804bf40) 1 entry >Thread queue lock: owner "main" (0x804bf40) 1 entry >Monitor registry: owner "main" (0x804bf40) 1 entry >*** > >Can somebody help me out... >Thanx a lot.. >regards, >Raj > > > > > >-- >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: Sending mail from an application (Pre-v2 JDK, Redhat 6.0)
You can use the JavaMail API, designed to support mail handling, filing and processing or use one of the many free available mail classes that abstract the details of sending email into simple, convenient method calls. (i.e. http://www.coolservlets.com) Another example is the sun.net.smtp.SmtpClient class with is subject to change and unsupported: import sun.net.smtp.SmtpClient; ... try { SmtpClient smtp = new SmtpClient(); smtp.from("[EMAIL PROTECTED]"); smtp.to("[EMAIL PROTECTED]"); PrintStream msg = smtp.startMessage(); msg.println("To: [EMAIL PROTECTED]"); msg.println("Subject: Test"); msg.println(); msg.println("message goes here"); smtp.closeServer(); } catch (IOException e) {} ... [EMAIL PROTECTED] wrote: > > Hey all, > How would one go about sending e-mail from an application? I have > tried doing it via the Runtime.exec() method and running a long drawn out > 'mail' command, but the system executes it too fast and it ends up getting > garbled in the process. Any ideas? > > Thanks, > Abe > > Abe L. Getchell - Systems Engineer > System Support Services > Kentucky Department of Education > Voice 502-564-2020x225 > E-mail [EMAIL PROTECTED] > Web http://www.kde.state.ky.us/ > > -- > 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: Bad file descriptors?
Dustin Lang writes: > Can someone tell me what this means: > > java.io.IOException: Bad file descriptor > at java.io.FileInputStream.readBytes(Native Method) > at java.io.FileInputStream.read(Compiled Code) > ... Sorry, I can't say without looking at the native method. But I'd lay even money that Linux's read() system call is returning EBADF, and there is some macro in the native code that throws an exception with a description taken from sys_errlist[errno]. read(2) says that EBADF indicates that "fd is not a valid file descriptor or is not open for reading." I don't know why that would be the case, but I can't see how it could be anything other than (a) a bug in JDK 1.2pre, or (b) some sort of resource-exhaustion type thing. You could try running strace to see exactly the parameters to the failing read call. Best, daniel dulitz Valley Technologies, Inc. Peak Performance Real-Time DSP State College, PA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Help needed
Rudi Streif wrote: > > Raj, > > Basically it says that your code doesn't make sense because the result of > sum is invariant to the loop. I can't tell you why it fails under Blackdown > JDK1.2 for Linux (it does on my machine too) but works under Sun JDK1.2 for > Windows. The failure is in the Sun JIT -- having some trouble performing an optimization for loop invariance. It doesn't fail with tya or with no JIT. Nathan > If you changed your code to something like this > sum + = (a*a*a*b) + (a*a*a*b)+ (a*a*a*b)+ (a*a*a*b); > it works because then the loop makes sense. > > Rudy > > -Original Message- > From: Rajkishore Barik <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> > Date: Thursday, July 22, 1999 11:47 AM > Subject: Help needed > > >Hi, > > Here is a piece of code, i am trying to execute in > > JDK1.2pre-release. But it does not seem to be running. > > The code : > >*** > >class test { > >public static void main(String Str[]) { > > int sum=0; > > int a=7; > > int b=7; > > > > for (int i=0;i<10;i++) > > sum=(a*a*a*b) + (a*a*a*b)+ (a*a*a*b)+ (a*a*a*b); > >} > >} > >*** > > ERROR: > >java: ../../../../src/share/java/bcopt/Loop.C:374: boolean > Loop::is_node_invariant(class Node *) const: Assertion > `_invariant_nodes_list[node->GetBlock()->GetBlockNumber()].contains(node) == > ret_val' failed. > >SIGABRT 6* abort (generated by abort(3) routine) > > stackpointer=0xb47c > > > >Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v2, native threads): > >"Finalizer" (TID:0x404bf320, sys_thread_t:0x80cc558, state:CW, native > ID:0xc04) prio=8 > > at java.lang.Object.wait(Native Method) > > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112) > > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127) > > at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174) > >"Reference Handler" (TID:0x404bf3b0, sys_thread_t:0x80c7da0, state:CW, > native ID:0x803) prio=10 > > at java.lang.Object.wait(Native Method) > > at java.lang.Object.wait(Object.java:424) > > at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114) > >"SIGQUIT handler" (TID:0x404bf3e0, sys_thread_t:0x80c0838, state:R, > native ID:0x402) prio=5 > >"main" (TID:0x404bf1e0, sys_thread_t:0x804bf40, state:R, native > ID:0x400) prio=5 > >Monitor Cache Dump: > > (0x404c6b49): owner "main" (0x804bf40) 1 entry > >java.lang.ref.ReferenceQueue$Lock@404BF338/404F5028: > > Waiting to be notified: > > "Finalizer" (0x80cc558) > >java.lang.ref.Reference$Lock@404BF3C0/404F4B20: > > Waiting to be notified: > > "Reference Handler" (0x80c7da0) > >Registered Monitor Dump: > >PCMap lock: > >utf8 hash table: > >JNI pinning lock: > >JNI global reference lock: > >BinClass lock: > >Class linking lock: > >System class loader lock: > >Code rewrite lock: > >Heap lock: > >Monitor cache lock: owner "main" (0x804bf40) 1 entry > >Thread queue lock: owner "main" (0x804bf40) 1 entry > >Monitor registry: owner "main" (0x804bf40) 1 entry > >*** > > > >Can somebody help me out... > >Thanx a lot.. > >regards, > >Raj > > > > > > > > > > > >-- > >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]
DB2, Linux & Java Experiences
I am searching for a database for my new project. now there are really a lot of RDBMS systems for Linux (nearly too much!). at the moment I am playing with mySQL, which is nice, simple, but lacks some functionality: foreign keys, first of all. PostgreSQL seems to have other problems, now there are certain commercial systems, that should be free for non-commercial use. I have not worked with Oracle yet, and what I read about Oracle, the installation/administration seems to be really a heavy task, and I have no time for much learning at the moment ( the RDBMS is only a small part of the project). So I thought about DB2. has someone experiences with DB2 and -- installation -- administration -- JDBC -- connection to Access / ODBC is it hard to enter the DB2 world? happy about any comments! alex Dipl.Ing. Alexander Schatten Email: [EMAIL PROTECTED] URL: http://www.bigfoot.com/~AlexanderSchatten Address: Gallitzinstr.7-13/7/71160 Vienna/Austria Tel: +43 1 914 29 84 FAX: +49 89 666 176 2292 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Help needed
I don't have a problem with 1.1.7B, and if you use 1.2pre2 and put a System.out.println to print out sum after your loop, it will exit normally with a sum of 9604. Without the println, 1.2pre2 bombs for me too. Strange. -Jim -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Java IDE for Linux?
Hello, Can someone recommend a Java Development environment for Linux? That is: an IDE to develop Java code, not necessarily written in Java. I looked at Kawa, a Java based IDE, but based on their Web site, it's not clear if will run under anything but Windoze. What are most people using? emacs? thanks --G -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Java IDE for Linux? (Correction)
Actually, I just realized that Kawa is Win32 binaries, so never mind the previous Kawa comments >Can someone recommend a Java Development environment for Linux? That is: >an IDE to develop Java code, not necessarily written in Java. > >I looked at Kawa, a Java based IDE, but based on their Web site, it's not clear >if will run under anything but Windoze. > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java IDE for Linux?
emacs or xemacs with JDE is what I like the best so far. I've looked at NetBeans, and it's okay, but a little slow. I do like Together/J and Structure Builder that integrade modeling tools with code generation. On Thu, 22 Jul 1999, Guillermo Payet wrote: > > Hello, > > Can someone recommend a Java Development environment for Linux? That is: > an IDE to develop Java code, not necessarily written in Java. > > I looked at Kawa, a Java based IDE, but based on their Web site, it's not > clear > if will run under anything but Windoze. > > What are most people using? emacs? > > thanks > > --G > > > -- > 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: Java IDE for Linux?
This same question came up a few weeks ago, and there were a lot of suggestions, which I checked out. I used to use Emacs with the JDE addition, which was simple and nice... but someone pointed me to AnyJ, and good lord... I was blown away! Its a free developement environment for Linux ( not for win/sun though) and looks to me to be somewhere on the level with VisualAge (IBM's), probably not as powerful... but it was wonderful! Here is a link to it, I really hope we can all maybe help out its developement, seems to be the most promissing IDE I've seen for Java, and its very far along (.97) and 1.0 is to be released at the end of this month. URL: http://www.netcomputing.de/ -Riyad Guillermo Payet wrote: > Hello, > > Can someone recommend a Java Development environment for Linux? That is: > an IDE to develop Java code, not necessarily written in Java. > > I looked at Kawa, a Java based IDE, but based on their Web site, it's not > clear > if will run under anything but Windoze. > > What are most people using? emacs? > > thanks > > --G > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- [ Riyad Kalla ] [ InterAccess Corporation ] [ University of Arizona ] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDK1.2 installation problems
Hi, I am using linux-RedHat6 on my ix86 system. After downloading about 20 MB of JDK1.2 pre-ver2.1 , the installation bombed on me stating missing libjava.so. I hava glibc2.1 on my system and I'm sure I have downloaded the correct version of JDK. So what is the problem? Please help me. Bye,,
Which tar file(s)?
Folks, Thanks for all the help about using java without graphics! You guys are much better than the technichal support I'm getting out of livesoftware for jrun! I got a few more questions. I'm trying to download a blackdown run time environment. I don't want a development kit, just enough to run servlets via jrun with apache. In the ftp directory I see files for il8n, jds, jre, and rt. What are all these? Shouldn't this info be in some readme somewhere? I figured the native must mean a native threads version? I assumed I only want the "jre" version thinking it is only the java run time environment? I downloaded that, untared it and stuff but I don't see any start up scripts and any time I try to run anything from the bin directory, like jre, it cant find the .so files even though they are there buried in the file structure that untarred. Did I download the wrong thing? Must I get them all or something? Thanks again! Brent -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java IDE for Linux?
Hi G, > Can someone recommend a Java Development environment for Linux? That is: > an IDE to develop Java code, not necessarily written in Java. How about "WipeOut"? I use this on linux. http://www.softwarebuero.de/wipeout-eng.html This can develop not only Java but also C, C++, etc. Because it get these compiler lunched with makefile. So, Java1.2 is also available but unfortunately, as the debugger called "bugview" don't support yet, it is a little difficult to develop Java1.2. -- MUKAIYAMA, Kazushi/powered by Arizona Design Inc. Artist in residence at the Center for Research in Computing and the Arts, University of California San Diego * mailto:[EMAIL PROTECTED] * (MY HOME) http://www.arizona.ne.jp/~kazu/ * (CRCA/UCSD) http://crca-www.ucsd.edu/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Evoke Unix call ">" from Java??
On Thu, 22 Jul 1999, Yuet Sim Lee wrote: > I am trying to make my Java code > to exec another Unix program. > The command in Unix/Linux platform > is: > > "ppmtogif inputfile.ppm > outputfile.gif" > > The command will create a new output file > storing a gif formatted image. > However, I tryed the following in my > Java code: You need to exec a shell and have it run your program. Try something like String cmd = "/bin/sh -c \"ppmtogif inputfile > outputfile\""; ... I hope that helps Mo DeJong dejong at cs.umn.edu >String command = "ppmtogif inputfile > outputfile"; >try { >Process GUIP = Runtime.getRuntime().exec(command); >} // End for try > > > It does not do work. > > > --Sim > > > > -- > Yuet Sim Lee > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java IDE for Linux?
Guillermo Payet <[EMAIL PROTECTED]> writes: > Hello, > > Can someone recommend a Java Development environment for Linux? That is: > an IDE to develop Java code, not necessarily written in Java. My preference is XEmacs (http://www.xemacs.org/) with JDE (http://sunsite.auc.dk/jde/) and the JDK. However, IBM has ported VisualAge for Java to linux. Go to http://www.software.ibm.com/vadd and look for the links and info there. Last I checked, it required a membership to VADD (Visual Age Developer's Domain), but that's free, as is the preview download of VAJLinux. .c. -- /** Chris Woods * [EMAIL PROTECTED] * ICQ#21740987 * * ObjectNetworks LLC * Network Systems Development * * Linux OSS Java Objects Distributed Systems * * Mobile Agents Multi-Tier Enterprise Systems */ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
NetDynamics
Has anyone have use the NetDynamics before ? I plan to use the NetDynamics run on NT /Solaris and the database server is Linux which have Postgres / MySQL . Does anybody ever tried to configure in such a way or that is possible ? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]