problems
hello, this is a problem that i have when i try to run java: ./../bin/i586/green_threads/java: error in loading shared libraries: ./../lib/i586/green_threads/libjava.so: undefined symbol: _dl_symbol_value can't figure out why? any help would be greatly appreciated. joseph -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Unidentified subject!
Joly Joseph 515-237-6602 [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
policytool
Could someone please tell me how to use the policy tool to set permissions for classes I run from my filesystem? I thought this entry in jdk/jre/lib/security/java.policy would take care of that, but apparently it does not. The documentation for this is scanty and driving me nuts (I had to add an AllPermission to the default property list in order to get anything to work). grant codeBase "file:" { permission java.security.AllPermission; }; -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: policytool
Oliver Fels wrote: > > This only works for the appletviewer, applications do not make any > use of the java.policy file per default in the Linux 1.2 version. > You need to set a runtime option if you want to use it. > This will change in JDK 1.3 > That is NOT TRUE. I was getting security exceptions when doing normal things like reading/writing from a file and connecting to the rmi registry. When I used the policy tool my problems went away. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Changing heap size
alias java="java -Xmx555" ALPESH KOTHARI wrote: > Hello, > > I am using Java2 on RH6.0. I have developed an GUI > application using Java. Now it runs out of memory at > some places. So I am increasing heap size with the > help of -Xmx and it works fine. But, I have to do this > every time I run application. Is it possible someway > to permenantly change the heap size to some larger > number? > > Thanking You, > With Regards, > Alpesh > > = > KOTHARI ALPESH D. > STUDENT M. TECH. > CEDT > INDIAN INSTITUTE OF SCIENCE > BANGALORE-560 012 > INDIA > __ > Do You Yahoo!? > Bid and sell for free at http://auctions.yahoo.com > > -- > 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: about Class class.
SABYASACHI S GUPTA wrote: > > Now I get the compilation error that method is not there in Object. > So now if I want to call the method of the newly created instance > what should I do... > Cast it. ((myclass) b).method() -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Security (was Re: policytool)
Hmm. Well the program that gave me the security exception WAS an RMI program, and one of the exceptions what for not having permissions to resolv/connect to a host, but I also got a security exception when trying to open a file. Nelson Minar wrote: > This list is full of stuff that's not Linux specific. > > >>>applications do not make use of the java.policy file per default in > >>>the Linux 1.2 version. > > RMI is an exception to this rule. Since Java 1.1, RMI has required a > security policy of some sort because it can load remote classes by > default. In Java2, you have to have the right policy file to make RMI > work. See the rmi-users list and RMI documentation for more info. > > [EMAIL PROTECTED] > . . . .. . . . http://www.media.mit.edu/~nelson/ > > -- > 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: serial port
Read and write the specaial files /dev/cua0, /dev/cua1, etc. Michele Trainotti wrote: > Hi guys, I'm new linux user,how can I read the serial ports form > java under linux??? Ciao Michele -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: jsdk2.0 connection problem
Gordon Keith wrote: > [EMAIL PROTECTED] wrote: > > > > When I run the jsdk2.0 server and try to bring up a servlet it gives me > > the following error: > > > > "A network error occured while netscape was recieving data: (Network > > error: > > connection reset by peer.) > > > > try connecting again." > > > > This doesn't happen when using the jsdk1.0 version. > > I certainly got this problem with jsdk1.0 and 2.0, but it happens much > earlier and more often in 2.0. The problem doesn't occur on Solaris or > NT using the same JSDK (which is pure java). > > I found it occurred on about half the connections on 1.0, but normally > after all the data had been sent to the client. > > With 2.0 it occurs much more often, often before significant amounts of > data have been sent to the client. > > I suspect some sort of bug in JSDK that relies on some sort of automatic > buffer flushing that doesn't occur on the linux JVM. > > I think I've tested under both the blackdown 1.1.7 and 1.2pre2. > > I don't think the problem exists under the IBM JVMs. > > I haven't tested extensively, but those are my observations. > > Let me know if you find a solution. What servlet engine are you using? Apache Jserv? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Icon for an application
Dirk Waxweiler wrote: > Hi everybody > > I want to insert an Icon for my GUI. I get an Icon, but it ist a black > point. > > URL url = new URL("file:///./Brief.gif"); > Image icon = Toolkit.getDefaultToolkit().getImage(url); > prog.setIconImage(icon); > > Is my gif too big ? > I think the file url has to be absolute. file:///./xxx won't work. (but file://./... might, I'm not sure) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: HELP: -mx flag.....
Bruno Boettcher wrote: I had a similar problem running a program on jdk 1.2.1 for win. The solution was to every now and then explicitly call the garbage collector ( System.gc() ) every now and then. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: NEW JDK RELEASE!
Jan Buchmann wrote: > On Sat, Nov 27, 1999 at 11:26:49AM -0700, Riyad Kalla wrote: > > Interestingly enough, on some of the sites I was crossing last night in search of >RC2, I saw that RC1 was on some. When was RC1 released? I don't ever remeber seeing >ANYTHING about an RC1. > > > > But anyway, you might try RC1 since it might be compatable with older versions of >Glibc, or upgrade glibc I suppose. > I downloaded rc1 before rc2 was out (in fact before any announcements were made) and >it didn't work with the same error (btw it has the "glibc2.1.2" in the name too)i, >that's why i "upgraded" to rc2. I guess I have to wait for SuSE 6.3 which provides >the new glibc. > > > (offtopic) Does anybody know which consequences it would have to upgrade to a new >glibc. Would I have to recompile some apps or something like that? Or does it just >fit into the system and is completely downwards-compatible(I heard something about >changed symbolnames)? I upgraded a redhat 5.0 system to a new glibc. They were supposed to be compatible. They weren't. Had to wipe the system and start over. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Stability of jdk1.2pre-v2
Jon Coppeard wrote: > Hi all, > > I've been trying to run Apache JServ with the blackdown jdk (1.2 pre v2), but > the jre keeps crashing under high load (the java process segfaults)... It's > running with native threads on a dual processor machine, glibc 2.0.7. > > I've heard reports that native threads in this version can be unstable - > however I can't find anything about this in the FAQ. Is this a known problem? > Is upgrading to glibc 2.1 or jdk 1.2.2 likely to make things better? > > Thanks in advance, > > Jon Coppeard > Real Time Studio It could be a problem of your running out of room in the process table. Try recompiling your kernel for more processes (instructions come with the jdk) or change the wrapper script to use green threads by default. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: IDE's
Paolo Ciccone wrote: The main problem I had with Jbuiler (enterprise 3 demo for windows) was that it wouldn't let me specify a classpath to use in compiling so I could not compile my program (that used the quicktime jsdk from apple). Also the auto-indent didn't seem to work. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: RMi deaths
[EMAIL PROTECTED] wrote: > Has anyone ever come across this exception: > > System Error:java.rmi.NoSuchObjectException: no such object in table > System Error:at >sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:249) > System Error:at >sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:224) > System Error:at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126) > System Error:at >com.teamenergy.secure.permissionsserver.GamekeeperRemoteServer_Stub.getActivityPermissions(UnknownSource) > > I have a small RMI Server which happily runs on a Jdk1.2.2rc2 under Linux. > It works fine, but after a while the client gives the above error when it > tries to connect. If I just restart the server, it work >From the javadoc: ublic class NoSuchObjectException extends RemoteException A NoSuchObjectException is thrown if an attempt is made to invoke a method on an object that no longer exists in the remote virtual machine. If a NoSuchObjectException occurs attempting to invoke a method on a remote object, the call may be retransmitted and still preserve RMI's "at most once" call semantics. A NoSuchObjectException is also thrown by the method java.rmi.server.RemoteObject.toStub and by the unexportObject methods of java.rmi.server.UnicastRemoteObject and java.rmi.activation.Activatable and ... so perhaps the distributed garbage collection is not working properly? Trying putting a printline in your finalize method so you know when your object is garbage collected. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JDK 1.2.2 RC3 and RC1 VolanoMark results
Is there any way I can get a hold of the benchmark software? I'd like to try the tya compiler with blackdown's jdk and see how it stacks up. John Neffenger wrote: > I updated the Volano Report to include Blackdown JDK 1.2.2 RC3 on Red > Hat 6.1 and Inprise JDK 1.2.2 RC1 on Red Hat 6.0: > > The Volano Report > http://www.volano.com/report.html > > Kevin Hendricks told me he already knows the fix for the SIGSEGV problem > at just over 1000 connections (see Table 2). When I work around the > problem by not setting socket timeouts, the Blackdown VM goes right up > to 4000 connections. Amazing. > > The Inprise Java VM still hits the following bug, which Blackdown fixed > in Release Candidate 3: > > http://www.blackdown.org/cgi-bin/jdk/incoming?id=1578 > > Let me know if you find any errors in the updated Volano Report. > > John Neffenger > > -- > 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: Questions to SUN, blackdown, inprise
Juergen Kreileder wrote: > > Jan Buchmann writes: > > Jan> On Wed, Dec 08, 1999 at 08:29:04AM -0800, Paolo Ciccone wrote: > >> It's called Borland JIT :). Seriously the latest JIT is > >> included in the Sun/Inprise JDK but you can use it with any > >> other JDK 1.2 if you want. At present time there are no plans > >> to port the JIT to other architectures than Intel. > > Jan> So sunwjit.so in the blackdown-port is the same as javacomp.so? > > No, sunwjit and javacomp are two different products. sunwjit is what > we get from Sun (actually they bought this JIT from another company) > as a binary. javacomp is Borland's JIT. > > I'm not sure if we'll ever see a fixed version of sunwjit as Sun seems > to have given up with this product. We can't fix the bug ourselves as > we don't have the source code. I am not aware of the details of the licence agreement between blackdown and sun. Would it permit you to bundle the tya jit instead of sun's? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: sun announcement
Dimitrios Vyzovitis wrote: > Apparently, sun has made an apologetic announcement. Check out: > http://java.sun.com/features/1999/12/linux.html > > However, how should someone interpret: > "Blackdown.org continues to be a valuable source for Java technology for > Linux, including JDK 1.1.x releases."? > > Hopefully, it doesn't imply "Thanks guys, we'll take it over from now. > Just keep supporting these 1.1.x ports, as they march towards > irrelevance and we get all the credit for the relevant part..." Seesh. Read more carefully, will you? We look forward to continued collaboration with Blackdown with the common goal of providing the Java 2 platform to the Linux community." Blackdown.org continues to be a valuable source for Java technology for Linux, including JDK 1.1.x releases. Take things in context. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Testing RMI with New release
I'm getting this too. rmiregistry prints it out whenever something calls Naming.rebind() and any program prints it out when doing Naming.lookup(). I'm using 1.2.2 rc3. Everything does appear to work though (mostly). Santos Jha wrote: > 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] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
permissions
All applications can listen on sockets on the localhost for ports 1024 and up. In addition I gave all files on my machine to connect and resolv on localhost. If I try to do a Naming.lookup() from another machine it will succeed, even though I didn't give rmiregistry accept permission for anything. Calls to my rmi program fail from another machine. Calls from the localhost succeed though. My questions are: 1) How come rmiregistry works when I didn't give it accept permission for *any* machine, not even the localhost? 2) How come my rmi program will accept calls from the localhost when I didn't give it permission to accept from any machine? And if it will accept from the localhost, why not from other hosts? here is my java.policy: /* AUTOMATICALLY GENERATED ON Thu Dec 09 21:47:50 EST 1999*/ /* DO NOT EDIT */ grant codeBase "file:${java.home}/lib/ext/*" { }; grant { permission java.lang.RuntimePermission "stopThread"; permission java.net.SocketPermission "localhost:1024-", "listen"; permission java.util.PropertyPermission "java.version", "read"; permission java.util.PropertyPermission "java.vendor", "read"; permission java.util.PropertyPermission "java.vendor.url", "read"; permission java.util.PropertyPermission "java.class.version", "read"; permission java.util.PropertyPermission "os.name", "read"; permission java.util.PropertyPermission "os.version", "read"; permission java.util.PropertyPermission "os.arch", "read"; permission java.util.PropertyPermission "file.separator", "read"; permission java.util.PropertyPermission "path.separator", "read"; permission java.util.PropertyPermission "line.separator", "read"; permission java.util.PropertyPermission "java.specification.version", "read"; permission java.util.PropertyPermission "java.specification.vendor", "read"; permission java.util.PropertyPermission "java.specification.name", "read"; permission java.util.PropertyPermission "java.vm.specification.version", "read"; permission java.util.PropertyPermission "java.vm.specification.vendor", "read"; permission java.util.PropertyPermission "java.vm.specification.name", "read"; permission java.util.PropertyPermission "java.vm.version", "read"; permission java.util.PropertyPermission "java.vm.vendor", "read"; permission java.util.PropertyPermission "java.vm.name", "read"; }; grant codeBase "file://-" { permission java.io.FilePermission "<>", "read, write, delete, execute"; permission java.net.SocketPermission "localhost", "connect, resolve"; }; -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: permissions
Matthias Pfisterer wrote: > Hi, > > it should be possible to determine this by trial-and-error. Remove that > AllPermissions and run your program. Watch out for the first > SecurityException. It usually can be derived from the error message > which permission is missing. Grant this permissen, then run you prg > again... > > Matthias Good idea, but the security exception does not make it to my code (in the rmi program) and I can't hack up rmiregistry. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: RMI without http server?
Jean-Pierre Fournier wrote: > Hi Folks, > > I'm hoping that some RMI guru can help > me get started. I'm trying to create a > simple RMI client/server on a single computer, > but something is choking in the rebind() call. > Maybe for some reason rmiregistry can't tell you are trying to connect from the localhost? Trying binding with just the string, not //localhost/string -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
invalid method hash with rmi calls
What does this exception thrown by my rmi client mean? The client compiles with the latest version of the server. java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: invalid method hash java.rmi.UnmarshalException: invalid method hash at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java, Compiled Code) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java, Compiled Code) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java, Compiled Code) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: invalid method hash with rmi calls
OK that was with the inprise jdk. I had to switch back to blackdown because the Inprise jdk was core dumping on me. Now I'm getting the same 'invalid message hash' ServerException with Blackdown and I can't fix it no matter what I do with my policy file. [EMAIL PROTECTED] wrote: > They were in sync. I discovered I got the same message after I killed the > server! I had been playing with my policy file before, and I had removed > the allpermission that had been granted to jdkhome/lib/ext. When I put > that back all my problems went away. The permission thing seems real > screwy to me. > > On Thu, 16 Dec 1999, Chris Abbey wrote: > > > it means the method you were calling has somehow changed since the > > server's _Skel class was compiled. I know you said they're in sink, > > but verify that the client and server both have the same version of > > the interface, the impl, the _Stub and the _Skel classes... also > > verify that the _Stub and _Skel match the interface and that the > > impl matches the interface. Greping the outputs of -verbose for the > > class is the quickest way to check the first one, the second will > > take some code review. -=Chris > > > > At 19:27 12/16/99 -0500, Joseph Shraibman wrote: > > >What does this exception thrown by my rmi client mean? The client > > >compiles with the latest version of the server. > > > > > >java.rmi.ServerException: RemoteException occurred in server thread; > > >nested exception is: > > >java.rmi.UnmarshalException: invalid method hash > > >java.rmi.UnmarshalException: invalid method hash > > >at > > >sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemote > > Call.java, > > >Compiled Code) > > >at > > >sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java, > > >Compiled Code) > > >at sun.rmi.server.UnicastRef.invoke(UnicastRef.java, Compiled > > >Code) > > > > > > > > > > > >-- > > >To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > >with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > > > > > > > > > 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] > > > > -- > 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]
UnixFileSystem
Why is java.io.UnixFileSystem not included in the java sources distributed with the blackdown jdk? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Interclient 1.51 JDBC problems on Linux with Blackdown 1.2.2RC3
Wim Ceulemans wrote: > Ola Samuelson wrote: > > > > Hi! > > First, thanks to all that makes java/jserv work on linux. > > > > Hope this is right for this forum. > > > > I have following: > > * x86 machines > > * Interbase 5.6 on Redhat 6.1(2.2.13)/interserver/interclient 1.51JRE1.2 > > > > * Interbase Interclient1.51 on Redhat 6.1(2.2.14)/Blackdown jdk > > 1.2.2rc3/Sun > > JSDK2.0/Jserv 1.1b3/Apache 1.3.9 > > * Loads of memory, SMP kernel on all machines > > * Everything starts ok and seems to work. I can run all test servlets > > and java > > on all machines. All logs show a complete startup and > >tells me that installation seems to be ok. > > > > Problems: > > 1. Interclient(jdbc) reports "Broken pipe on connection ...". But ONLY > > if > > leaving the local machine(ie db url to other machine). > > Strange thing is that if coming with jdbc from Windows to same > > machine there > > is NEVER a problem(Broken pipe). > > So it's Interclient OR Java on linux, right? A failed call to > > Interclient > > screws it up. > > 3. I use prepared statements and "normal" statements and after the > > queries are > > executed i use a while resultset.next to position first > > to first record and then through out the set. > > But sometimes this statement does not only produce false - it > > actually > > produces the error "Operation on closed resultset". > > And I definitely does not close it at this point in execution. Why? > > 4. Looking at processes I sometimes see something like: "Java > > [defunct]". What > > is this? > > 5. Can anyone recommend a jdbc connection pool for servlets that is easy > > > > to use, > > stable and FREE? Thanks! > > Just an idea. Can it be that your connection object or something else is > garbage collected? Make sure your main program keeps a reference to your > Connection object. Or better yet have a finalize method that closes the connection when the object is gc'd. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
msql jdbc drivers
Someone on this list once emailed me the url of a mature mysql jdbc 2.0 driver, but I seem to have lost the email. Does anybody know of one? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Servlet
You are trying to get a servlet to invoke an applet? Roger Smith wrote: > I have written a servlet yjay invokes an applet to communicate with a > database. I am using Java Web server 2.0, and when I start the servlet > from the browser, I get this error at the bottom of my Netscape window: > applet machine class machine could not be loaded. > > Also when I try to acces my host:8080 from another machine, I cannot. > Can anyone help me?? > Thanks > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: TYA
I did a while ago with tya 1.5 and was surprised to see sunwjit beat it. But tya doesn't crash the vm in certain circumstances that sunwjit crashes. I keep meaning to run the benchmarks again with all the updated versions of everything but I've been busy. I'll let everyone know when I get around to it. [EMAIL PROTECTED] wrote: > Hiya, > > In reference to the TYA JIT, how does it slot in to the Blackdown Jdk1.2? > Has anyone done any benchmarks of the Blackdown JVM performance without a > JIT, with it's own JIT and with the TYA JIT? > > J Baker > > -- > John Baker, BSc CS. > Java developer and Linux lover:-) > Sms: [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: Many small objects -> crash
Try using a differnt jit like tya. Ekkehard Kraemer wrote: > Hello, > > the problem which was discussed a while ago on this list is still persistent > with RC4: any program that creates lots (say, 30) of small objects (like > java.math.BigInteger) will eventually segfault. > > Just to make sure it doesn't drop off any TODO lists. ;-) Perhaps somebody > could verify that it is really a Linux bug (by trying a small test program on > the Win or Solaris JDK). > > MbG, Ekkehard > > -- > 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]
Thread priorities don't work with native threads
Run the following with green threads and you get only H's. Run it with native threads and you get H's mixed with L's /** * threadtest.java * * * Created: Mon May 1 15:35:45 2000 * * @author Joseph Shraibman * @version 1.0 */ public class threadtest { public threadtest() {} public Runnable getWT(String name){ return new workThread(name); } class workThread implements Runnable{ String name; public workThread(String n){name = n;} public void run(){ //Thread.yield(); while(true){ System.out.print(name); System.out.flush(); } } } public static void main(String[] args){ threadtest tt = new threadtest(); Thread t1 = new Thread(tt.getWT("H")); Thread t2 = new Thread(tt.getWT("L")); t2.setPriority( t2.getPriority() -1); t2.start(); t1.start(); } } // threadtest Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [Re: Thread priorities dont work with native threads]
Juergen Kreileder <[EMAIL PROTECTED]> wrote: Jurergen> Don't use thread priorities for synchronization! I'm not. I have an rmi server that needs to do a lot of work. I want to spin off some time insensitve tasks into their own low priority thread so that rmi calls that need fast responses won't be starved. Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
java -Xmx1024M doesn't work
I started an application with java -Xmx1024M classname and at about 60megs I got an OutOfMemoryError. I tried it again with java -Xmx1073741824 classname and it works. Verstion is 1.2.2 rc4 Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [Re: Java2 & Alpha]
Well unless it is put up on the ports page nobody will know about it. Uncle George <[EMAIL PROTECTED]> wrote: I have done a linux/java 1.2 port to alpha /gat Jo Uthus wrote: > Ilya wrote: > > | Is there any work being done on porting JDK 1.2 to Linux on Alpha? > > I recently attended a seminar where COMPAQ talked about their ongoing > Linux-work. > > The representative said that JDK1.2 would be ready for Alpha late > December, although this is _not_ stated anywhere on their website(s). > > I believe that it was a commercial project, meaning that you have to > purchase a license to use it. I'm not sure on that last point though. > > -- > Jo Uthus| e-mail: [EMAIL PROTECTED] (private) > Software Engineer | e-mail: [EMAIL PROTECTED] (work) > > -- > 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] Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: J2SEE 1.3 for Linux!
Nathan Meyers wrote: > > On Mon, Jun 05, 2000 at 10:49:35AM -0700, Nelson Minar wrote: > > What would be *really* great is if there were an open source Java > > implementation that we could all contribute to and avoid all these > > politics. My impression is the Java design is stable enough that this > > is reasonable to do, but that it's a lot of work to implement. > > Ah, but there is: Kaffe is alive and well and benefitting greatly from > user contribution. You can't contribute if you're polluted by any Sun > anti-open-source licenses, but the rest of can. > > The current implementation is almost 1.1-complaint and has parts of 1.2. > The Java spec is huge, of course, and getting the rest of the way to > a full implementation isn't a quick job. But, as far as I can tell, > Kaffe is by far the strongest of the open source Java implementations. > I thought kaffe died when the company that wrote it got bought out my M$. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: compiler optimization
David Blankley wrote: > > I went on an interview last week and was thrown this question: > > what is wrong/sub-optimal with the following code: > > public class someClass { > /* > * some methods, etc > */ > public boolean myBool = false; > } > > Of course, since booleans default to false, Sez who? Maybe your jre happens to run that way, but IIRC the behavior is undefined. If I wasn't so lazy I would look it up. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JSDK 1.3: is this fixed?
http://developer.java.sun.com/developer/bugParade/bugs/4326346.html Can someone check if this is fixed in jsdk 1.3? I can't download it for some reason. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Why nonblocking I/O in Java is hard
Matt Welsh wrote: > > Juergen Kreileder <[EMAIL PROTECTED]> writes: > > > "Matt" == Matt Welsh <[EMAIL PROTECTED]> writes: > > > > Matt> Turns out this is not as easy as it could be -- because even > > Matt> though you call system calls like read(), write(), and > > Matt> fcntl() from native code, these are trapped by the Java > > Matt> runtime library to do magic things when green threads are > > Matt> used! > > > > Why don't you use native threads? > > We would love to use native threads, except that most versions of the > Linux JDK (including Blackdown's) have serious native thread related > bugs -- i.e., JVM crashes. Once native thread support is stable enough > for big applications, we won't need this kind of hack. > Only if you use the sunwjit. I've had no problems with no jit. We use tya. It doesn't crash nearly as often as sunwjit and the inprise jdk. Most of its bugs seem to be of the not handling errors gracefully type and you don't run into them if everything goes well. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Anyone using blackdown jdk on SMP linux?
David Marshall wrote: > > Michael Thome wrote: > > > I've been unable to get blackdown native-thread VM implementation to > > > > work properly on my x86-based SMP machine. I'd be interested in > > corresponding with anyone who's had better luck. > > > > Essentially the problem is that code like: > > synchronized (lock) { > > lock.wait(); > > } > > results in exceptions like: > > java.lang.IllegalMonitorStateException: current thread not owner > > at java.lang.Object.wait(Native Method) > > at java.lang.Object.wait(Object.java, Compiled Code) > > ... > > > > I see it happening in my code, in jdk code (e.g. rmiregistry) and in > > > > third-party code. I have a short example which makes the bogon > > trivially reproducable. > > > > I haven't had any problems on single-cpu machines, though I run a > > different kernel on those machines. > > > > I'm mostly using Blackdown 1.2.2RC4 with javacomp (though jit > > doesn't > > seem to matter). IBM JDK1.3 beta exhibits almost identical > > behavior. > > The "Sun" 1.3 beta with hotspot actually doesn't throw these > > exceptions - it silently hangs instead. > > > > BTW - I'm using a 2-cpu intel machine w/ various late-2.3-series > > kernels and glibc 2.1.3. > > I've had similar experiences, though on a 2.2.12 kernel. > I get the dumps when using either javacomp or sunwjit (Blackdown > 1.2.2RC4) - maybe after minutes, maybe after hours. > > I have been able to run long-term high-volume tests (48 hours, > constant hammering, max-throughput testing) without problems when > running with no jit at all - that's the only configuration in which > I've had consistent repeatable results. > > Haven't done any 1.3 SMP testing yet. What about tya? We're considering buying a dual processor machine to run our java programs but if we can't get something running with a jdk on an smp kernel there probably won't be much point. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Anyone using blackdown jdk on SMP linux?
David Marshall wrote: > > Joseph Shraibman wrote: > > > > I've had similar experiences, though on a 2.2.12 kernel. > > > I get the dumps when using either javacomp or sunwjit (Blackdown > > > 1.2.2RC4) - maybe after minutes, maybe after hours. > > > > > > I have been able to run long-term high-volume tests (48 hours, > > > constant hammering, max-throughput testing) without problems when > > > running with no jit at all - that's the only configuration in > > which > > > I've had consistent repeatable results. > > > > > > Haven't done any 1.3 SMP testing yet. > > > > What about tya? > > > > We're considering buying a dual processor machine to run our java > > programs but if we can't get something running with a jdk on an smp > > kernel there probably won't be much point. > > Haven't tried tya on SMP, so can't report on this. (Anyone else?) I'm afraid I don't have an SMP box to try on. But tya is easy to install. Do you not have access to your SMP test box any more? U can get tya from http://sax.sax.de/~adlibit/ > Only reasonable results I got were with no jit (java > -Djava.compiler=none etc.). For our testing (JMS environment) we got > better throughput on 2 CPU SMP server with no jit than on non-SMP > w/jit. > I did see on the JDK 1.3 Linux beta readme that "Sun does support or > recommend running the Java 2 SDK on SMP kernels." > > Can anyone from Sun / Blackdown comment on future SMP support, and > what the underlying issues are? > > -- > David Marshall mailto:[EMAIL PROTECTED] > VM Systems, Inc. http://www.vmguys.com > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Security bug in a major fraction of VMs
And this is a big security problem? Access specifiers are meant to protect programmers from doing stupid things, not protect security. Of course if you hack the jvm you will be able to get access to a private field. So just what is the security concern here? Wolfgang Hoschek wrote: > > There is a serious security bug in a major fraction of VMs. > Some VMs do not check access specifiers at runtime. This allows you to > access private data with either a hacked compiler, direct editing of > byte code, or a simple recompile. > For details, see http://metalab.unc.edu/javafaq/ > > I checked the mini program given there on a number of Linux and Solaris > VMs. > > "NOT OK" means the access specifiers are not checked at runtime > "OK" means they are checked and the runtime correctly refuses the class. > > Interestingly BlackdownRC4 with Inprise's jitter was "NOT OK" whereas > BlackdownRC4 with sunwjit SIGSEV'd which is also not quite ok. > Here the builds I checked: > > Solaris@Spars > > - NOT OK: java version "1.3.0", Java Hotspot(TM) Client VM (build > 1.3-beta, mixed mode) > - OK: (IncompatibleClassChangeError) java version "1.2.2", Solaris VM > (build Solaris_JDK_1.2.2_05a, native threads, sunwjit) > > RedHat6.1@Intel > > - NOT OK: java full version "JDK 1.1.8 IBM build l118-2515 (JIT > enabled: jitc)" > - NOT OK: java version "1.2.2", Classic VM (build Linux_JDK_1.2.2_RC4, > nativethreads, javacomp) > - HALF OK (segmentation violation): java version "1.2.2", Classic VM > (build Linux_JDK_1.2.2_RC4, nativethreads, sunwjit) > - NOT OK: java version "1.3.0", Java(TM) 2 Runtime Environment, Standard > Edition (build 1.3.0), Classic VM (build 1.3.0, J2RE 1.3.0 IBM build > cx130-2605 (JIT enabled: jitc)) > - NOT OK: java version "1.3.0", Classic VM (build 1.3.0, J2RE 1.3.0 IBM > build cx130-2502 (JIT enabled: jitc)) > - NOT OK: java version "1.3.0beta1", Java(TM) 2 RuntimeEnvironment, > Standard Edition (build 1.3.0beta-b07), Java Hotspot(TM) Client VM > (build 1.3.0beta-b04, mixed mode) > > Cheers, > Wolfgang. > > -- > 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]
Error with blackdown FCS but not RC4
When trying to use activatables I get this error after I switched to blackdown 1.2.2 FCS from RC4. Exception: java.rmi.activation.ActivateFailedException: failed to activate object; nested exception is: java.security.AccessControlException: access denied (com.sun.rmi.rmid.ExecOptionPermission -Djava.specification.name=Java Platform API Specification ) java.rmi.activation.ActivateFailedException: failed to activate object; nested exception is: java.security.AccessControlException: access denied (com.sun.rmi.rmid.ExecOptionPermission -Djava.specification.name=Java Platform API Specification ) java.security.AccessControlException: access denied (com.sun.rmi.rmid.ExecOptionPermission -Djava.specification.name=Java Platform API Specification ) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:249) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:224) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126) at sun.rmi.server.Activation$ActivatorImpl_Stub.activate(Unknown Source) at java.rmi.activation.ActivationID.activate(ActivationID.java:94) at sun.rmi.server.ActivatableRef.activate(ActivatableRef.java:255) at sun.rmi.server.ActivatableRef.invoke(ActivatableRef.java:114) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Error with blackdown FCS but not RC4
Juergen Kreileder wrote: > > >>>>> "Joseph" == Joseph Shraibman <[EMAIL PROTECTED]> writes: > > Joseph> When trying to use activatables I get this error after I > Joseph> switched to blackdown 1.2.2 FCS from RC4. > > Joseph> Exception: java.rmi.activation.ActivateFailedException: failed to > Joseph> activate object; nested exception is: > Joseph> java.security.AccessControlException: access denied > Joseph> (com.sun.rmi.rmid.ExecOptionPermission -Djava.specification.name=Java > Joseph> Platform API Specification ) > Joseph> java.rmi.activation.ActivateFailedException: failed to activate object; > Joseph> nested exception is: > Joseph> java.security.AccessControlException: access denied > Joseph> (com.sun.rmi.rmid.ExecOptionPermission -Djava.specification.name=Java > Joseph> Platform API Specification ) > Joseph> java.security.AccessControlException: access denied > Joseph> (com.sun.rmi.rmid.ExecOptionPermission -Djava.specification.name=Java > Joseph> Platform API Specification ) > Joseph> at > Joseph> >sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:249) > Joseph> at > Joseph> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:224) > Joseph> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126) > Joseph> at sun.rmi.server.Activation$ActivatorImpl_Stub.activate(Unknown > Joseph> Source) > Joseph> at > Joseph> java.rmi.activation.ActivationID.activate(ActivationID.java:94) > Joseph> at > Joseph> sun.rmi.server.ActivatableRef.activate(ActivatableRef.java:255) > Joseph> at sun.rmi.server.ActivatableRef.invoke(ActivatableRef.java:114) > > The upgrade to 1.2.2-0006 included some rmid changes. Basically it > looks like a back-port from 1.3, that means you have to run rmid with > its own security file. See > http://java.sun.com/j2se/1.3/docs/tooldocs/solaris/rmid.html#policyFile > for an example. > OK so I try it like the example: Starting rmid: rmid: illegal option: J-Djava.security.policy=rmid.policy use: rmid [-port num] [-log dir] [-stop] [-Coption] rmid -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JDK1.3 on Linux with SMP
Uh, yeah, that's right. Sun's jdk says that it doesn't work on smp kernels. You'll have to use the latest blackdown version. The rc4 version didn't work on smp kernels because the jit it shipped with couldn't handle native threads, but supposedly the final release has fixed those bugs. Release candiate 4 did work on smp kernels using green threads or the tya jit. Java Linux wrote: > > Hi all, > > We're running Red Hat Linux 6.1, kernel 2.2.12 and > glibc 2.1.2 on Pentium SMP machines. After several > hours of running, sometimes one node will crash, > giving: > > Exception in thread "main" java.lang.OutOfMemoryError > <> > > In fact, it's unlikely that there should be any memory > problems and this error does not occur when running on > a single node. It's also disturbing that each java > process takes only about 40 percent of the processing > capacity on each node, even though it could go up to 7 > > percent or more. So, Sun's JDK 1.3 doesn't seem to be > working on SMP machines under linux. > > Any advice? > > Thanks. > > __ > Do You Yahoo!? > Yahoo! Mail - Free email you can access from anywhere! > http://mail.yahoo.com/ > > -- > 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]
pipe failures
I have a cron process that is run every hour. It usually works fine, but sometimes I get messages like this: /usr/local/jdk1.2.2/jre/bin/realpath: Can't reopen pipe to command substitution (fd 4): No child processes /usr/local/jdk1.2.2/jre/bin/realpath: /i386/realpath: No such file or directory exec: /i386/realpath: cannot execute: No such file or directory java was not found in /bin/i386/native_threads/java ... and then the next time it works fine. What does this mean? I'm running: java version "1.2.2" Classic VM (build Linux_JDK_1.2.2_FCS, native threads, sunwjit) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Some jar utility and .jar questions
Bill Halchin wrote: > > Hello, > >1) Can the javac compler extract classes from .jar files if > these files are in CLASS_PATH or must I "unjar"? javac is like any other java program. If it is in the CLASSPATH (no underscore) it can be found. > >2) I tried "jar -t xerces.jar" and the jar utility seems to be > waiting for more from StdIn?? I also tried "jar -x > xerces.jar" with the same results. ? try jar -tf xerces.jar > >I am trying to use the Apache Xerces SAX classes. Any help > would be greatly appreciated! > Beware Documents created with the parser are ~ 500K. To get them smaller you have to: DOMParser.setFeature("http://apache.org/xml/features/dom/defer-node-expansion", false); -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Blackdown Applet -> try EARLIER versions of Netscape
Barnet Wagman wrote: > PS is there any browser that works under Linux that does a better job > with > applets? > Mozilla is supposed to use the java that is installed on the system and in windows it works, but I haven't figured out how to get it to work in Linux. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java/Linux Resources from IBM
Jeffrey I Condon/Cupertino/IBM wrote: > > A proposal for fixing the Java programming language's threading problems > - > Allen Holub suggests that the Java programming language's threading model > is possibly the weakest part of the language. This article proposes > significant changes and additions to the Java language that would address > many of these problems. > http://www-4.ibm.com/software/developer/library/j-king.html?open&l=258,t=gr,p=j.king > I agree with a lot of those, especially the need for reader/writer locks, but some I don't. I think wait/notify is pretty clear and I don't like his proposed changes. Some of the changes I just didn't get. Can someone explain why we should wrap our threads in other threads? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java/Linux Resources from IBM
Nathan Meyers wrote: > > Joseph Shraibman wrote: > > > Jeffrey I Condon/Cupertino/IBM wrote: > > > > > > A proposal for fixing the Java programming language's threading problems > > > - > > > Allen Holub suggests that the Java programming language's threading model > > > is possibly the weakest part of the language. This article proposes > > > significant changes and additions to the Java language that would address > > > many of these problems. > > > >http://www-4.ibm.com/software/developer/library/j-king.html?open&l=258,t=gr,p=j.king > > > > > I agree with a lot of those, especially the need for reader/writer > > locks, but some I don't. I think wait/notify is pretty clear and I > > don't like his proposed changes. Some of the changes I just didn't get. > > Can someone explain why we should wrap our threads in other threads? > > The MxN threading model (user-space threads within kernel threads) But how exactly does making your own thread help? You would have to do your own task management, and to what purpose? has long been part of > Solaris. It would be a pretty nice addition to Linux, given Linux's thread scaling > limits. Which should be going away in the 2.4 kernel. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
help..
Friends, I'm relativly new to Linux/Java/Oracle. As a first step, i tried to install Oracle 8i on my linuxbox (Red Hat 6.2 - which is the downloadable version supplied along with a popular magazine ). Fortunatly, the CD carried a script file, which installed Java 1.1 in the /usr/bin directory (javac,java,jar,javadoc etc. commands). I have no clue regarding installation process though I'm able to try out some basic java pograms from any user login. I have downloaded a site which explains the installation of Oracle 8i on Linux Unfortunatly When I try to install Oracle 8i, i get the following message :cannot find class java/lang/thread' :could not create Java VM' I have downloaded jre1.1.6, but do not know how to set it's parameters so that Oracle installer would work. Any advice ? Joseph -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Java - Linux - Oracle
Friends, I'm relativly new to Linux/Java/Oracle. As a first step, i tried to install Oracle 8i on my linuxbox (Red Hat 6.2 - which is the downloadable version supplied along with a popular magazine ). Fortunatly, the CD carried a script file, which installed Java 1.1 in the /usr/bin directory (javac,java,jar,javadoc etc. commands). I have no clue regarding installation process though I'm able to try out some basic java pograms from any user login. I have downloaded a site which explains the installation of Oracle 8i on Linux Unfortunatly When I try to install Oracle 8i, i get a message that Java VM not started. I have downloaded jre1.1.6, but do not know how to set it's parameters so that Oracle installer would work. Any advice ? Joseph -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
rmi security bug
Juergen Kreileder wrote: > > The Blackdown Java-Linux Team is happy to announce the availability of > Java2 SE v1.3.0-FCS for i386 and PPC, Java 3D 1.2 for PPC, and Java2 > SE v1.2.2-FCS for S/390. > > > Java2 Standard Edition Version 1.3.0 FCS for Linux on i386 and PPC > == > > Don't confuse the Blackdown release with Sun's 1.3.0-FCS, our version > is based on Sun's 1.3.0_01 code. > Argh. http://developer.java.sun.com/developer/bugParade/bugs/4326346.html *still* hasn't been fixed. How can a bug this serious continue to not be fixed? Does Sun not allow blackdown to fix this? -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Does "HotSpot" always mean no "green threads"?
Scott Murray wrote: > > On Sun, 19 Nov 2000, Volker wrote: > > > Hi, > > > > does HotSpot only support "native threads" but not "green ones"? > > Yes, that seems to be the case with all of the the existing HotSpot VMs. > Sun made a decision a while back that it wasn't going to be the jvm's job any more to manage threads. Thus no more green threads. -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: localhost ip
Nathan Meyers wrote: > > [EMAIL PROTECTED] wrote: > > > dear all > >how can i get the localhost ip in java . > > InetAddress.getLocalHost() > But that would sometimes just give me 127.0.0.1. I never figured out what made it work on some runs but not on others. I thought it might be the security manager but it turned out it wasn't. -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: localhost ip
Joi Ellis wrote: > > On 22 Nov 2000, Juergen Kreileder wrote: > > > It's not that easy. A host may have several IP addresses and other > > hosts may have to use different addresses to reach it. E.g. hosts on > > the intranet may have to use 192.168.0.100, but external machines may > > have to use 65.123.66.124. > > This is true, but it is not allowed in DNS for one host to have multiple > addresses. [jks@d1 ~] nslookup www.yahoo.com Server: proxy1.union1.nj.home.com Address: 24.3.128.33 Non-authoritative answer: Name:www.yahoo.akadns.net Addresses: 216.32.74.52, 216.32.74.53, 216.32.74.55, 216.32.74.50 216.32.74.51 Aliases: www.yahoo.com -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Hot Spot crashes
Vote for: http://developer.java.sun.com/developer/bugParade/bugs/4372197.html Jochen Witte wrote: > > Hello everybody, > we`re using the j2sdk-1.3.0-FCS with Resin 1.1.5 (Java-Servlet-Engine) > and Apache 1.3.14 on a SuSE7.0-Machine. > Under higher load, the Servlet Engine reports: > > # HotSpot Virtual Machine Error, Internal Error > > After that, the whole engine restarts, which causes long accesstimes to > our webserver. > > Is this a "real" Hotspot-Problem or is it a problem of our > servlet-engine? > > Anybody ideas? > -- > Jochen Witte > <[EMAIL PROTECTED]> > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
[Fwd: Sun Security Bulletin #00199]
Does this affect blackdown jdk's in any way? -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -BEGIN PGP SIGNED MESSAGE- Sun Microsystems, Inc. Security Bulletin Bulletin Number:#00199 Date: November 29, 2000 Cross-Ref: Title: Potential security issue in class loading The information contained in this Security Bulletin is provided "AS IS." Sun makes no warranties of any kind whatsoever with respect to the information contained in this Security Bulletin. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY WARRANTY OF NON-INFRINGEMENT OR IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, ARE HEREBY DISCLAIMED AND EXCLUDED TO THE EXTENT ALLOWED BY APPLICABLE LAW. IN NO EVENT WILL SUN MICROSYSTEMS, INC. BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES HOWEVER CAUSED AND REGARDLESS OF ANY THEORY OF LIABILITY ARISING OUT OF THE USE OF OR INABILITY TO USE THE INFORMATION CONTAINED IN THIS SECURITY BULLETIN, EVEN IF SUN MICROSYSTEMS, INC. HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. If any of the above provisions are held to be in violation of applicable law, void, or unenforceable in any jurisdiction, then such provisions are waived to the extent necessary for this disclaimer to be otherwise enforceable in such jurisdiction. 1. Background Under certain circumstances, the Java(TM) Runtime Environment may allow an untrusted Java class to call into a disallowed class. This is a potential security issue. This issue may or may not affect other vendors' Java implementations which are derived from Sun's Java Development Kit JDK(TM) source base. Sun has notified and made the remedy available to its Java licensees. To the best of Sun's knowledge, Netscape Navigator and Microsoft Internet Explorer are not exposed to this vulnerability. Sun recommends that you upgrade to the latest JDK/JRE releases listed in section 3 of this bulletin. 2. Affected Releases The following releases are affected: Windows Production and Solaris(TM) Reference Releases JDK/JRE 1.2.2_004 or earlier JDK/JRE 1.2.1_003 or earlier JDK/JRE 1.1.8_002 or earlier JDK/JRE 1.1.7B_005 or earlier JDK/JRE 1.1.6_007 or earlier Solaris Production Releases JDK/JRE 1.2.2_05 or earlier JDK/JRE 1.2.1 JDK/JRE 1.1.8_10 or earlier JDK/JRE 1.1.7B JDK/JRE 1.1.6 Linux Production Release JDK/JRE 1.2.2_005 or earlier Solaris Production releases JDK/JRE 1.2.1, 1.1.7B, and 1.1.6 should no longer be used. In addition, releases prior to JDK/JRE 1.1.6 for Windows or Solaris should no longer be used. Users of these releases should upgrade to a later release listed in Section 3. This vulnerability was fixed in Java 2 Standard Edition SDK v 1.3. The HotSpot(TM) 1.0 and 1.0.1 virtual machines are affected by this vulnerability. HotSpot 2.0 is not affected by this vulnerability. HotSpot 1.0 and 1.0.1 virtual machines should no longer be used. Users that cannot move to Java 2 Standard Edition SDK v 1.3 should revert to the Classic virtual machine in JDK/JRE 1.2.2_006 (Windows or Solaris reference). Those users wishing to take advantage of the performance of HotSpot 2.0 should migrate to Java 2 Standard Edition SDK v 1.3.0. 3. Binary Update Releases The following update releases are available in relation to this issue. Windows Production and Solaris Reference Releases JDK/JRE 1.2.2_006http://java.sun.com/products/jdk/1.2/ JDK/JRE 1.2.1_004http://java.sun.com/products/jdk/1.2.1/ JDK/JRE 1.1.8_005http://java.sun.com/products/jdk/1.1/ JDK/JRE 1.1.7B_007 http://java.sun.com/products/jdk/1.1.7B/ JDK/JRE 1.1.6_009http://java.sun.com/products/jdk/1.1.6/ Solaris Production Releases JDK/JRE 1.2.2_06 http://www.sun.com/software/solaris/java/download.html JDK/JRE 1.1.8_12 http://www.sun.com/software/solaris/java/archive.html Linux Production Release JDK/JRE 1.2.2_006http://java.sun.com/products/jdk/1.2/download-linux.html ___ APPENDICES A. Sun security bulletins are available at: http://sunsolve.sun.com/security B. Sun Security Coordination Team's PGP key is available at: http://sunsolve.sun.com/pgpkey.txt C. To report or inquire about a
Re: Unidentified subject!
It is probably a worm. Ignore it. Ashish Kulkarni wrote: > > NEVER send emails with long attachments on a mailing list : if you have something >intresting, put it up on > some FTP space and request users to see it via linking a URL to it. otherwise it >totally wastes bandwidth. > > - Original Message - > From: lisuke <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, November 30, 2000 5:29 AM > Subject: Unidentified subject! > > | hi,everyone ,I found a very good life bible cite collection. > | Send it to you everyone here,and good luck to everybody! > | Enjoy it~~ > | > | > | > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to print String to default Printer, Help
The easiest way is to save to a temporary file, do Process p = Runtime.exec("lpr "+myfilename); p.waitFor(); ... then delete the file. New Java wrote: > > Hi, there, > > What I want to do is: > When the following code running, > print "try to be printed" to my default printer, NOT > my screen. Could you help me on it? > > Thanks!! (Sorry for the basic stupid question) > > David > > *** > > public static void main (String args[]) { >str_mystring = "try to be printed" > > } > > *** > > __ > Do You Yahoo!? > Yahoo! Shopping - Thousands of Stores. Millions of Products. > http://shopping.yahoo.com/ > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: What are the disadvantages of using jikes instead of javac?
In at least a few instances that I know of, jikes produces slower code. But I don't think javac is a really great optimizing compiler either. There is at least one bug that causes jikes to crash where javac compiles the code. Don't remember exactly what it was, I think it was something like private inner classes. I just made them non-private and they compiled fine. Jacob Nikom wrote: > > Hi, > > I started to use jikes and like it very much. So I started to wonder, > what are the disadvantages to use jikes instead of javac (SUN or > Blackdown)? What not to use only jikes? > > Jacob Nikom > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JDK1.3 only classic works
It apperears Sun has finally fixed the HotSpot crash problem. See http://developer.java.sun.com/developer/bugParade/bugs/4372197.html. They previously marked it as closed; non-reproducable but now it is marked fixed. The fix limits the number of threads available on a system, but most apps don't need a few hundred threads anyway. Graham Murray wrote: > > I have just downloaded the Blackdown 1.3-FCS and only the "classic" VM > works. If I try client (the default) or server there is no error shown > - it just hangs. It does this even with 'java -version'. > > >From the command line, I can either use java -classic or change > jvm.cfg, but my main reason for upgrading was to get java support > working in Mozilla (daily updates) but this "hardwires" the 'client' > jvm. > > I am using Linux 2.4.0-test12-pre7 >glibc 2.2 >Pentium III UP > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
2.4 kernel and threads
>From README.linux to the 1.2.2 distrib: * If you get OutOfMemory errors when you try create more than xxx threads you'll have to increase the number of tasks supported by kernel (the default is 256 per user). Change NR_TASKS in /usr/src/linux/include/linux/tasks.h and recompile the kernel, or upgrade to a 2.4 kernel. So can I assume a 2.4 kernel has no limits on threads? -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: 2.4 kernel and threads
Scott Murray wrote: > > On Wed, 10 Jan 2001, Joseph Shraibman wrote: > > > On a related note, what is the difference between "buffered" and > > "cached" memory? I've noticed that with 2.4.0 there is barely any > > buffered. > > Nowadays the buffers are purely used for buffering access to the block > devices (e.g. disks). Pretty much everything else is now cached in the > page cache. That still doesn't answer my question. If everything is treated as a file, what is the difference between buffer and cache? > > > How have other people been finding 2.4.0? I've noticed that some things > > like resizing windows are much slower. > > On most benchmarks I've seen, 2.4.0 is faster than 2.2.x. I've been running > the test kernels for quite a while, and the VM tweaks that went in in the > last few before 2.4.0 improved interactive response quite a bit. Some things do seem quicker to me, but some things slower. I notice that my system suddenly starts taking up a lot of cpu time in the system area that can run on for 30 seconds. -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JRE as part of Linux
Until Sun agress to release java under the gpl, it ain't gonna happen. There isn't even a 1.2 compatible free jvm. Yavor Kolarov wrote: > > Hello > > Recently an interesting question crossed my mind - is there a project for > "emedding" JRE as part of Linux system. By embedding I mean starting it at > system boot or the first time it's needed and keep it running, so that when > the user starts an Java application java is already there and start time is > shortened. One of the reasons lots of users avoid java is because even the > simplest application loads several times slower than its naive ecuivalent. > I know about the kernel module that invokes JRE when you exec a java .class > file(with appropriate +x permission). But it doesn't keep JVM is not resident. > > -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JRE as part of Linux
Yavor Kolarov wrote: > > Thanks to everyone who replied! > > It is clear that JVM can't be part of the kernel. Because of three main > reasons: > 1. Java is not GPL'ed > 2. the more code in the kernel the worse. Java is too big and not so stable. > You don't want different people sharing the jvm because of security issues. Past incidents have shown that sun isn't very security concious with the jvm. What is really needed is a pre-started jvm. When you start up a java process, the jvm will fork, and the child will su to you and proceed as normal. I don't know exactly what the jvm is doing when it is taking all that time starting up so I don't know how useful this would be. -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: writing data to lp0
Just open it like you would any other file. Raphael Mack wrote: > > Hi, > > I want to write some data to my lp0-port. Does anyone know how I can do > this? > -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Thread.yield() on 2.4
Is it just me or does Thread.yield() not work anymore with the 2.4.0 kernel? -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Thread.yield() on 2.4 - more
Juergen Kreileder wrote: > > > Please note that it is perfectly legal with respect to the JLS to > implement Thread.yield() as nop in JVMs based LinuxThreads. Actually > it is not only legal, it's desirable to implement it as nop on JVMs > that employ preemptive scheduling policies (especially on > multiprocessor machines). Look, if Thread.yield() is ever called by the programmer, he has a reason for it. In my case, I'm calling it because I want the thread handling the rmi call to return before the thread that calls exit() calls exit() because I don't want the client to get an EOFException. With the 2.2.15 kernel it worked perfectly. With 2.4.0 it doesn't, and my clients are getting EOFExceptions. public void exit() throws RemoteException{ new Thread((new Runnable(){ public void run () { Thread.yield() ; System.exit(0); } })).start(); //allow this method to end so the client doesn't get an error. } > > Given the loose semantics of Thread.yield(), it is merely a pure > heuristic *hint* to the JVM. The JVM may interpret this hint in any > way it likes. May doesn't mean should. I imagine the spec was so loose because it could be expected that fine control over the threading might not be available to the implementors of the jvm on every platform, not because the writers of the spec didn't think Thread.yield() would be useful. -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
exiting problems.
I'm having a problem with ghost processes. When my java programs are running I see sevral processes for each program, each the same size. The ghost processes usually have many processes with size of zero and one with a small size, like ~5M. Killing the threads with size 0 does nothing, but killing the thread with a small size will cause it and the processes with size 0 to disappear. This seems to especially be a problem with ActivationGroupInit, but maybe that's just because I'm always restarting rmid. Second problem: After I stop rmid there are still some ActivationGroupInit processes left around. I'm currently running 1.2.2fcs from blackdown. These problems have happened with 2.2.15 and 2.4.0 kernels. -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java.lang.Runtime
Lars Lathan wrote: > > Hello, > > I try to run an ICA-Client from within my java program using the exec() > method from java.lang.Runtime. Here a snipset of my code: > >String cmd = "/home/ica/jicasession -address:192.168.1.200 > -username:joe -password:joe > \"-initialprogram:C:\\Office\\Word\\winword.exe C:\\docs\\1.doc"; > >Runtime r = Runtime.getRuntime(); >r.exec(cmd); > > When I run this, the ICA client starts, but instead of executing the > whole initialprogram parameter it tries to execute C:\docs\1.doc. > > Excecuting the above command on my console works fine. > > Does anybody got a similar problems and knows how to solve it? > So something like: String[] cmd = { "home/ica/jicasession","-address:192.168.1.200", "-username:joe","-password:joe","-initialprogram:C:\\Office\\Word\\winword.exe C:\\docs\\1.doc"}; Runtime r = Runtime.getRuntime(); r.exec(cmd); -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Blackdown on SuSE
Hi, I've been trying to install a blackdown jdk on an IBM penguin box using SuSE linux and have not had much luck so far. I can extract the blackdown version, and unpack it but when I try to run the java command I get this: l008064:~/j2sdk1.3.0/bin # ./java -version Error: can't find libjava.so. and I also get a sinking feeling when reading the system requirements for blackdown which say: Check your version of glibc using the following command: ls /lib/libc-* The output of this command should show libc-2.1.3.so or higher. when I check ls /lib/libc-* I find nothing. The closest I get is libc.so.6 and I am really not sure where to go from here. My apologies for my lack of ignorance, but I am not a regular Linux user and am not sure how to deal with these library issues. Thanks in advance CHEERS> SAM -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Blackdown on SuSE
Follow up to my own mail - I got help from another list, the solution seems to be: >You need JDK that is compiled for s390(search google "s390 jdk"), for > example: > http://www.ibiblio.org/pub/languages/java/blackdown.org/JDK-1.2.2/s390/FCS/?M=A Sam Joseph wrote: > I've been trying to install a blackdown jdk on an IBM penguin box using > SuSE linux and have not had much luck so far. > > I can extract the blackdown version, and unpack it but when I try to run > > the java command I get this: > > l008064:~/j2sdk1.3.0/bin # ./java -version > Error: can't find libjava.so. > > and I also get a sinking feeling when reading the system requirements > for blackdown which say: > > Check your version of glibc using the following command: > > ls /lib/libc-* > > The output of this command should show libc-2.1.3.so or higher. > > when I check ls /lib/libc-* I find nothing. > > The closest I get is libc.so.6 and I am really not sure where to go from > here. > > My apologies for my lack of ignorance, but I am not a regular Linux user > and am not sure how to deal with these library issues. > > Thanks in advance > > CHEERS> SAM > > -- > 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: Blackdown on SuSE
Juergen Kreileder wrote: > On Wed, 27 Jun 2001, Alan Hawrelak wrote: > > > Sam Joseph wrote: > > > >> I can extract the blackdown version, and unpack it but when I try > >> to run > >> > >> the java command I get this: > >> > >> l008064:~/j2sdk1.3.0/bin # ./java -version > >> Error: can't find libjava.so. > > Looks more like he tried to run a x86 build on S/390 Juergen is right. This was the problem, as someone on a different list also informed me. I had been given access to a machine remotely and didn't know what processor was being used. Is there some way to check this remotely perhaps? [quick check of system properties] I guess typing printenv HOSTTYPE might help. It all sounds so simple after the event ... Anyhow, thanks to Alan, Franz and Amol for various helpful comments on the java library issues which have helped advance my understanding of the issue. CHEERS> SAM -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
shutdown hooks
If I create a shutdown hook, does it create an os-level thread that sits around doing nothing until the java program exits? -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
local -remote database
Hi, I'am trying to implement a system which does the following : The Client m/c's are proposed to be loaded with Java Application (Client) and Local database (MS Access). After processing, some specific data will have to be extracted from the local database, displayed in a table format and then send to the server. Clients maybe anywhere between 10-15. Data from the server is viewed using servlets/jsp. It is this data transfer from Client m/c to Server m/c that's giving me problems. I've tried using Serialization technique , never seems to work on my local m/c which I use for testing. I run jdk 1.3, Tomcat 3.2, MySQL on Linux. Any help would be greatly appreciated. Thanks, Joseph ps : Anybody who'd like to have a look at my code, please indicate. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Threads on i386-redhat-linux-gnu
Hi All, So I'm having this problem that the logging system that I have used successfully on other linux platforms is not working on i386-redhat-linux-gnu. The logging system is designed to store logging messages and then write them to the log file in a low priority thread. However when I run the code on i386-redhat-linux-gnu the logging thread doesn't even start. The main Logger class implements runnable, and a new thread is created in the constructor: public Logger( Log p_log) { if(o_verbosity > 0) System.out.println("creating new logger"); o_messages = new Vector(100); o_log = p_log; o_thread = new Thread( this); o_running = false; o_sem = new Semaphore(); o_thread.start(); if(o_verbosity > 0) System.out.println("starting logger thread"); } and as you can see the thread is started, but the run method doesn't start. Or at least the debug command on the first line of the run command does not get displayed: public void run() { if(o_verbosity > 0) System.out.println("logger thread running ..."); o_running = true; ... ... And yes, the o_verbosity is set to 10. Is there some special setting that I need on red hat linux to allow the spawning of new threads? Thanks in advance. CHEERS> SAM -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
java script error (not javascript)
I have a cron job that runs hourly. A few times a week it fails with an error like this. What's going on? My version: java version "1.3.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) = /usr/local/jdk/bin/../jre/bin/realpath: Can't reopen pipe to command substitution (fd 4): No child processes /usr/local/jdk/bin/../jre/bin/realpath: /usr/local/jdk/bin/../jre/bin/i386/: is a directory exec: /usr/local/jdk/bin/../jre/bin/i386/: cannot execute: Permission denied /usr/local/jdk/bin/java: /bin/realpath: No such file or directory /usr/local/jdk/bin/java: /bin/realpath: No such file or directory grep: /lib/jvm.cfg: No such file or directory grep: /lib/jvm.cfg: No such file or directory java was not found in /bin/i386/native_threads/java -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
magic line in unix
I have been having problems making beanshell shell scripts on linux. Bascially #! /usr/local/jdk/bin/java bsh.Interpreter works, while #! /usr/local/jdk/bin/java -client bsh.Interpreter does not work. The problem seems to be that all arguments are lumped together when passed to the program, so java doesn't get two arguments '-client' and 'bsh.Interpreter', it gets one '-client bsh.Interpreter'. Who is responsible for magic line interpretation, the shell that calls the script or the kernel? Where is the spec for magic lines? -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://xis.xtenit.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: magic line in unix
I found some mailing list archives from 2000 mentioning #! but it was a mess and refered to things the readers of that list knew about but I don't. For example I couldn't figure out what XCUd3 ERN 6 is. Could you point me to something more specific? Dan Kegel wrote: > Joseph Shraibman wrote: > >>I have been having problems making beanshell shell scripts on linux. >> >>Bascially #! /usr/local/jdk/bin/java bsh.Interpreter works, while >>#! /usr/local/jdk/bin/java -client bsh.Interpreter does not work. The problem seems >to be >>that all arguments are lumped together when passed to the program, so java doesn't >get two >>arguments '-client' and 'bsh.Interpreter', it gets one '-client bsh.Interpreter'. >Who is >>responsible for magic line interpretation, the shell that calls the script or the >kernel? >> Where is the spec for magic lines? >> > > It's a sad story. Search for #! in bodies at > http://www.opengroup.org/sophocles/show_archive.tpl?listname=austin-group-l > > - Dan > -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://xis.xtenit.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: magic line in unix
OK figured out what xcu is, but where in there does it discuss #! ? For the rest of you: http://www.unix-systems.org/version3/xcu_contents.html Dan Kegel wrote: > Joseph Shraibman wrote: > >>I have been having problems making beanshell shell scripts on linux. >> >>Bascially #! /usr/local/jdk/bin/java bsh.Interpreter works, while >>#! /usr/local/jdk/bin/java -client bsh.Interpreter does not work. The problem seems >to be >>that all arguments are lumped together when passed to the program, so java doesn't >get two >>arguments '-client' and 'bsh.Interpreter', it gets one '-client bsh.Interpreter'. >Who is >>responsible for magic line interpretation, the shell that calls the script or the >kernel? >> Where is the spec for magic lines? >> > > It's a sad story. Search for #! in bodies at > http://www.opengroup.org/sophocles/show_archive.tpl?listname=austin-group-l > > - Dan > -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://xis.xtenit.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
running java on rh 8.0
I tried to run java 1.4.1 from sun on my rh 8.0 box and I spent a day trying to figure out why rmi wouldn't work. I finally figured out that I had to uninstall libgcj (which was needed by gettext, so I had to uninstall that too) and now everything works perfectly. I'm just posting this to help anyone else who may be having the same problem. Perhaps something could be done about this on the jdk side, I don't know. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: running java on rh 8.0
I figured it out. I was running the right *java*, but I was running the rmiregistry from libgcj. Tom Ball wrote: All I had to do was change my PATH setting so that the 1.4.1 version of Java came before the libgcj one. I haven't tested everything yet, but so far, so good... Tom On Mon, 2002-11-04 at 17:15, Joseph Shraibman wrote: I tried to run java 1.4.1 from sun on my rh 8.0 box and I spent a day trying to figure out why rmi wouldn't work. I finally figured out that I had to uninstall libgcj (which was needed by gettext, so I had to uninstall that too) and now everything works perfectly. I'm just posting this to help anyone else who may be having the same problem. Perhaps something could be done about this on the jdk side, I don't know. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://xis.xtenit.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Does blackdown suffer from bug 4694590?
http://developer.java.sun.com/developer/bugParade/bugs/4694590.html I know it doesn't suffer from bug 4706607 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
1.4.1 release
According to http://www.blackdown.org/java-linux/java2-status/jdk1.4-status.html blackdown 1.4.1 has been in beta since July. What is holding up the release? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
file.encoding change between jdk 1.3.1 and 1.4.1
I have code to create a Multipart like this: MimeMultipart mm = new MimeMultipart("alternative"); BodyPart bp = new MimeBodyPart() ; bp.setText(text); mm.addBodyPart(bp); bp = new MimeBodyPart() ; //reset variable for html part bp.setContent(html,"text/html"); mm.addBodyPart(bp); Under java 1.3.1 this generated mail that had this for the html multipart: --=_Part_2_6220608.1041458193261 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable When I upgraded to 1.4.1 it now looks like this: --=_Part_21_20566889.1041555012620 Content-Type: text/html; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: quoted-printable This charset=ANSI_X3.4-1968 is causing problems when netscape reads the mail. It appears that file.encoding changed between versions. Does anyone know why? -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://xis.xtenit.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [JAVAMAIL-INTEREST] file.encoding change between jdk 1.3.1 and1.4.1
BTW can I get a survey of what your file.encodings and systems are? A quick way to find out if you have beanshell in your classpath: echo "System.out.println(System.getProperty(\"file.encoding\"));" | java bsh.Interpreter The system where I had this problem is a redhat 6.x system. On a rh 8.0 that used to be a 7.2 it is ISO-8859-1, and on a system that always was 8.0 it is UTF-8 Joseph Shraibman wrote: I have code to create a Multipart like this: MimeMultipart mm = new MimeMultipart("alternative"); BodyPart bp = new MimeBodyPart() ; bp.setText(text); mm.addBodyPart(bp); bp = new MimeBodyPart() ; //reset variable for html part bp.setContent(html,"text/html"); mm.addBodyPart(bp); Under java 1.3.1 this generated mail that had this for the html multipart: --=_Part_2_6220608.1041458193261 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable When I upgraded to 1.4.1 it now looks like this: --=_Part_21_20566889.1041555012620 Content-Type: text/html; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: quoted-printable This charset=ANSI_X3.4-1968 is causing problems when netscape reads the mail. It appears that file.encoding changed between versions. Does anyone know why? -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://xis.xtenit.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
broken link on blackdown site
The link for jad on http://www.blackdown.org/java-linux/products/javatools.html should be http://www.geocities.com/zz_xu/jad.html (unless someone knows of a more recent site). -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://xis.xtenit.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: linux
Masnizar jamian wrote: I'm new to linux , so are there any difference between windows platform and linux in terms of coding (mainly in multithread)? Because I heard that a linux thread is different from windows thread. Could you recommend me any reading material that clear some cobweb in my brain ? Thanks in advance for helping me. Thread priorities don't work in Linux, and neither does Thread.yield() (couldn't it be implimented as sleep(1)?) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: linux
Alexander V. Konstantinou wrote: Actually, thread priorities work fine in Linux. No, they don't, not with the latest sun jdk on redhat 8.0. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: linux
Hui Huang wrote: Joseph Shraibman wrote: Alexander V. Konstantinou wrote: Actually, thread priorities work fine in Linux. No, they don't, not with the latest sun jdk on redhat 8.0. Thread priority is just a hint (same applies to Thread.yield()). While the jvm authors can't do anything about the kernel ignoring the priority, they *can* do something about Thread.yield(): make it the equivalent to sleep(1) kernel space. JDK passes the priority information to the kernel, How? but they are ignored. It may sound like a surprise, but most of the time kernel scheduler can do a better job than human in prioritizing jobs. Um, no. The few cases I would set a priority I would have a good reason. BTW does the jvm give threads with higher prio prefrence when delivering notify()'s? -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://xis.xtenit.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: linux
Hui Huang wrote: Joseph Shraibman wrote: Hui Huang wrote: Joseph Shraibman wrote: Alexander V. Konstantinou wrote: Actually, thread priorities work fine in Linux. No, they don't, not with the latest sun jdk on redhat 8.0. Thread priority is just a hint (same applies to Thread.yield()). While the jvm authors can't do anything about the kernel ignoring the priority, they *can* do something about Thread.yield(): make it the equivalent to sleep(1) No. sleep(0) would come close, not sleep(1). Except I looked at the code and sleep(0) doesn't do anything. At least when I looked. Thread.yield() is used under two different scenarios: + waiting for certain condition to become true (or false), most likely this is used in a yield loop, and current thread has nothing to do but burning CPU cycles in a while loop. + be nice and let kernel/pthread know that this would be a good point to schedule another thread to run, current thread still has some work to do. Such yields are necessary for non-preemptive schedulers (e.g. green thread). In the first case, it's probably OK to sleep(1), but it makes no sense for the second case. Uh, sure, forcing yourself to sleep means another thread will be scheduled. And you can always sleep on a monitor instead in the first case, Unless you are a lazy coder ;) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
per jvm thread limit
I'm running: java version "1.4.1_01" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01) Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode) ... on redhat 8.0. I've discovered that I get get somewhere between 3600 and 3700 threads in a jvm without any arguments. If I pass in -Xss100k I can get that up to 8190 threads, but I'm not sure why. How can I maximize the number of threads per jvm? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: per jvm thread limit
Dan Kegel wrote: The -Xss100k helps because each thread stack immediately occupies its full range of address space (discontiguous stacks not being supported). If the OS defaults to a limit of 1GB address space for user processes, at 100KB per stack, that's a hard limit of 10,000 threads. I never got anywhere near 1gb of memory usage. Thus to get over 8190 threads, you'll probably need to both raise threads-max and rebuild your kernel to allow 2GB or 3GB of address space for user processes. (See also http://www.kegel.com/c10k.html ) That points to http://www.volano.com/linux.html which doesn't exist anymore. The wayback machine has a verion from Oct 31 2001 that doesn't say how to recompile the kernel to increase the limit. It does point me to /etc/security/limits.conf, but I don't have anything set there. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: per jvm thread limit
Dan Kegel wrote: Joseph Shraibman wrote: I never got anywhere near 1gb of memory usage. Physical memory, maybe, but I bet you a nickel you got up near 1GB of *virtual* memory. Go learn about how thread stacks work. You're not running out of RAM; you're running out of address space. I guess I don't know enough about the internals of the memory management, but how? I know that virtual address is given by the operating system, which uses the virtual addresses to map to physical addresses so it can do swapping, but why would it run out of address? By the way, what kernel are you running? And which of The one that comes with redhat 8.0 (updated), which is kernel-smp-2.4.18-19.8.0 CONFIG_1GB CONFIG_2GB CONFIG_3GB are set in your kernel configuration? No idea. How can I check? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: per jvm thread limit
Juergen Kreileder wrote: [EMAIL PROTECTED] writes: On Fri, 14 Feb 2003, Juergen Kreileder wrote: BTW: If you use another setting than CONFIG_1GB or if you're on x86-64 you want to use the new release. Older HotSpot versions have problems with the other values. So which ones are good? Is the latest sun jdk good or only the forthcoming blackdown? Blackdown 1.4.1-01 (released yesterday) works correctly. AFAIK Sun will fix the problem in 1.4.2. Do you know if sun fixed in in 1.4.1_02? Juergen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: browsing java sites
Kent E. wrote: does it mean... browsing thru a linux is not allowed while browsing thru a windows2000 can view the page which i stated below? Maybe the windows jvm has broken security, letting it work when it shouldn't. I really have no idea. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Runtime.maxMemory()
What does Runtime.maxMemory() return exactly? I have this program: public class MaxMemory{ private static String uft(){ Runtime rt = Runtime.getRuntime(); long free = rt.freeMemory(), total = rt.totalMemory(), used = total - free; long max = rt.maxMemory(); java.text.NumberFormat nf = java.text.NumberFormat.getInstance() ; return "used: "+nf.format(used)+" free: "+nf.format(free)+ " total: "+nf.format(total)+" max: "+nf.format(max); } public static void main(String[] args){ System.out.println("before we start: "+uft()); java.util.HashSet al = new java.util.HashSet(1024); int i = 0; byte[] barrier = new byte[2048]; while(true) try{ al.add(new byte[1024]); i++; } catch(OutOfMemoryError e){ barrier = null; break; } System.out.println("after "+i+"k "+uft()); } } // MaxMemory When I run it I get: [EMAIL PROTECTED] ] java MaxMemory before we start: used: 318,832 free: 1,712,784 total: 2,031,616 max: 134,217,728 after 61993k used: 66,649,312 free: 800 total: 66,650,112 max: 134,217,728 [EMAIL PROTECTED] ] java -Xmx128m MaxMemory before we start: used: 318,832 free: 1,712,784 total: 2,031,616 max: 201,326,592 after 123587k used: 133,233,920 free: 768 total: 133,234,688 max: 201,326,592 [EMAIL PROTECTED] ] java -version java version "1.4.1_02" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06) Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Runtime.maxMemory()
Joseph Shraibman wrote: What does Runtime.maxMemory() return exactly? With further testing it appears to return exactly 64meg over the true limit. Also when doing java -Xmx3m the real value used is actuall 4 megs, and it appears all odd values are rounded up 1. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: browsing java sites
Applets have security constraints. For instance they can only connect to the server they came from. kent_mdk wrote: hi to all still confused. as browsing to this site http://www.anfyteam.com/anj/anfybutton/anbutton.html i got this error messages... //== Java VM version: 1.4.1_01 Java VM vendor: Sun Microsystems Inc. java.security.AccessControlException: access denied (java.net.SocketPermission www.anfyteam.com resolve) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:542) at java.lang.SecurityManager.checkConnect(SecurityManager.java:1042) at sun.awt.SunToolkit.getImageFromHash(SunToolkit.java:461) at sun.awt.SunToolkit.getImage(SunToolkit.java:504) at anfybutton.b(anfybutton.java) at anfybutton.a(anfybutton.java) at anfybutton.c(anfybutton.java) at anfybutton.a(anfybutton.java) at anfybutton.c(anfybutton.java) at anfybutton.init(anfybutton.java) at org.kde.kjas.server.KJASAppletStub.initApplet(KJASAppletStub.java:145) at org.kde.kjas.server.KJASAppletStub$1.run(KJASAppletStub.java:98) at java.lang.Thread.run(Thread.java:536) //=== but if I will make my own applet with a JLabe and a JButton on it, it will normally show up... so it means that i successfully installed java in it.. but why do i have these error messages.. do i have to set another configuration file in linux? thanks in advance... kent -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://xis.xtenit.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Volano Report update
Hui Huang wrote: Still not convinced? Try creating more than 1024 threads, that's something you couldn't do without NPTL. There has been a lot of work done in the past to make this happen. Drop me an email if you'd like to hear more about the boring story of threading support within JVM ;-) I do that all the time on redhat 8 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]