comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * How do you cast to array? - 5 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/884dee2def4bbb47 * stack implementation - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5c909f1ce5b4696a * How to stop java service with command line parameter '-stop'? - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/489c4e28d50c81ff * Bluetooth connection closed - 2 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8c33cc13c53a3163 * making a ByteChannel from a ByteBuffer? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4e063881e84d0ce1 * Timeout for InputStream - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2b007c3bdd51a445 * How to starthandshake with client browser?? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2d41b9d8f6879f8b * I/O file operations efficiency - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/55c397eb0d93e8a0 * AppletViewer and access to the local filesystem - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/aae0f7f6692849ef * Axis version 1.2 wrong SOAP format - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f4306a72c8752b64 * Question about wait - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c3b941d1ad39c7b8 * Resize border around components - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/361998bd91b9526c * How to get my IP address - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bd97add828fa8a4a * If you wanna be my lover... - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5b0f39eca4dd2fc5 * JBoss and Xalan problem ... - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fb254078872725c2 * problem with java versions and jar - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2a7a12b44a2ec7c7 * multi-inheritance between EntityBeans - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c56b1038efd7ffbb * NoClassDefFoundError exception - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4ddad41290f0004d * port number in JBoss application - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/40e1a95cd09ff898 ========================================================================== TOPIC: How do you cast to array? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/884dee2def4bbb47 ========================================================================== == 1 of 5 == Date: Tues, Nov 2 2004 6:16 am From: Joona I Palaste <[EMAIL PROTECTED]> Chris Uppal <[EMAIL PROTECTED]> scribbled the following: > Joona I Palaste wrote: >> Right you are. I just tried both ways with a list of one hundred >> thousand elements, repeated ten thousand times. Guess how much using >> the array passed in saved me in contrast to constructing a new array? >> About 0.34%. IOW, one three-hundredth. Not worth losing sleep over. > Since the array of size 100K is going to be allocated (and intialised) anyway, > however you express it, the real difference is in the allocation, or not, of > the 0-sized array. The allocation (and intialisation) of a 0-sized array is > "obviously" going to be tiny in comparison with a 100K array. If you want the > difference to show up better, compare the case where the input has only 1 or 2 > elements. (Not that I can imagine a context where the difference /would/ make > a difference, but at least you'd get a bigger percentage number from your tests > ;-) A test using a list of one element, repeated one million times, showed using the array passed in was a little over four times as fast as constructing a new array. So it's apparently mostly a question of how big arrays you're using. -- /-- Joona Palaste ([EMAIL PROTECTED]) ------------- Finland --------\ \-------------------------------------------------------- rules! --------/ "It sure is cool having money and chicks." - Beavis and Butt-head == 2 of 5 == Date: Tues, Nov 2 2004 6:38 am From: "John C. Bollinger" <[EMAIL PROTECTED]> DeMarcus wrote: > One can wonder who on earth have use for the toArray() I tried to use. One can only wonder who has use for the Vector class you tried to use. Or other implementations of the List interface. Or any implementation of Set. None of these (prior to 1.5) supported element types more specific than Object. If you can deal with the Collection types at all then their no-arg toArray() methods' return type is just par for the course. John Bollinger [EMAIL PROTECTED] == 3 of 5 == Date: Tues, Nov 2 2004 7:30 am From: "xarax" <[EMAIL PROTECTED]> "DeMarcus" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Look at this. > > Vector v = new Vector(); > v.add( new String( "Nothing" ) ); > String[] sv = (String[])v.toArray(); > > Why do I get a ClassCastException here? Vector.toArray() returns Object[]. Use this instead: { String[] sv; Vector v; String s; int kk; v = new Vector(); s = "Nothing"; v.add(s); /* add more String instances here */ kk = v.size(); sv = new String[kk]; v.toArray(sv); } Hope this helps. == 4 of 5 == Date: Tues, Nov 2 2004 7:46 am From: "xarax" <[EMAIL PROTECTED]> "Daniel Chirillo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I don't know enough about the internals to give you a complete answer. > I'll let someone else provide more details. > > Here's what I've noticed: Although the compiler will allow you to > downcast arrays, you will always get a ClassCassException if you > downcast an array. /snip/ Wrong. { String[] sa; Object[] oa; sa = new String[1]; sa[0] = "Fubar"; oa = (Object[]) sa; /* upcast OK */ sa = (String[]) oa; /* downcast OK */ } That's an example that won't get ClassCastException. The actual component type of the array when the array was created determines how far down you can cast an Object[]. If you created an Object[], then you're stuck with that. If you created a String[], then you can cast back-and-forth between Object[] and String[]. You cannot cast downward any deeper than the original array element type that was specified when the array was created. It doesn't matter whether the actual instances in the array have deeper sub-types or whether they could all be downcast successfully to a deeper sub-type. public class A {} public class B extends A {} { B[] ba; A[] aa; aa = new A[1]; aa[0] = new B(); /* sub-type of A */ ba = (B[]) aa; /* downcast: ClassCastException */ } The ClassCastException above occurs due to the array element type is A, not B, even though every element instance of the array is type B. This is all specified in the JLS. An array has its own type and its own rules for downcasting that are separate from the rules for downcasting the individual element instances. Hope this helps. == 5 of 5 == Date: Tues, Nov 2 2004 7:50 am From: Joona I Palaste <[EMAIL PROTECTED]> xarax <[EMAIL PROTECTED]> scribbled the following: > "Daniel Chirillo" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> I don't know enough about the internals to give you a complete answer. >> I'll let someone else provide more details. >> >> Here's what I've noticed: Although the compiler will allow you to >> downcast arrays, you will always get a ClassCassException if you >> downcast an array. > /snip/ > Wrong. > { > String[] sa; > Object[] oa; > sa = new String[1]; > sa[0] = "Fubar"; > oa = (Object[]) sa; /* upcast OK */ > sa = (String[]) oa; /* downcast OK */ > } > That's an example that won't get ClassCastException. > The actual component type of the array when the array > was created determines how far down you can cast an > Object[]. I figure trying to do oa[0] = new Integer(1); will then throw an ArrayStoreException. -- /-- Joona Palaste ([EMAIL PROTECTED]) ------------- Finland --------\ \-------------------------------------------------------- rules! --------/ "War! Huh! Good God, y'all! What is it good for? We asked Mayor Quimby." - Kent Brockman ========================================================================== TOPIC: stack implementation http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5c909f1ce5b4696a ========================================================================== == 1 of 3 == Date: Tues, Nov 2 2004 6:19 am From: "John C. Bollinger" <[EMAIL PROTECTED]> George W. Cherry wrote: > "John C. Bollinger" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] [...] >>>"Tor Iver Wilhelmsen" <[EMAIL PROTECTED]> schreef in >>>bericht news:[EMAIL PROTECTED] >> >>>>it, etc. Ideally I would write my own implementation using a >>>>LinkedList as an internal representation. [Possible java.util.LinkedList-based implementation removed] > Why did you implement this with LinkedList rather > than ArrayList? Because I was speculating on what Tor might have had in mind, and he specifically referred to a LinkedList. The code I offered could be trivially changed to use an ArrayList instead if that were desired. John Bollinger [EMAIL PROTECTED] == 2 of 3 == Date: Tues, Nov 2 2004 8:39 am From: Tor Iver Wilhelmsen <[EMAIL PROTECTED]> Michael Borgwardt <[EMAIL PROTECTED]> writes: > Um... no? Not if used properly, i.e. Sorry, wasn't thinking clearly: I was thinking about queues. == 3 of 3 == Date: Tues, Nov 2 2004 8:47 am From: [EMAIL PROTECTED] (George W. Cherry) Tor Iver Wilhelmsen <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > "George W. Cherry" <[EMAIL PROTECTED]> writes: > > > Why did you implement this with LinkedList rather > > than ArrayList? > > Because LinkedList is more efficient when you only manipulate the > start and end of the list, and are not interested in accessing > elements by their index. Basically, with an ArrayList you have an > underlying array that will grow and have its elements shifted about > whenever you do a pop(). I believe LinkedList may be more efficient than ArrayList if you manipulate the start or middle of the list, but not if you manipulate only the end of the list (the top of the stack). If ArrayList isn't more efficient than LinkedList when you're implementing a stack, than when is it more efficient than LinkedList (and why did Joshua Bloch state that ArrayList is generally more efficient than LinkedList)? George ========================================================================== TOPIC: How to stop java service with command line parameter '-stop'? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/489c4e28d50c81ff ========================================================================== == 1 of 2 == Date: Tues, Nov 2 2004 6:34 am From: [EMAIL PROTECTED] (Will) I've got a java service under solaris which runs in the background (command line based). When I start the application it runs and periodically executes some stuff. Questions: ========== 1. Is there an easy and quick way to stop the application/service instead of killing the process from within the shell (which is not really nice). 2. How can I stop it using java code? Is there any other way than listening to a socket or monitoring a file for some kind of shutdown command? (interprocess communication) 2. How can I avoid that more than one instance of the application run at the same time? Here's the code I use so far: ============================= public final class NuevMailTimer extends TimerTask{ public static void main(String[] args) { if (args.length!=1) { System.out.println("ERROR: Missing argument"); System.out.println("Usage: XXXX -start|stop"); System.exit(1); } if (args[0].trim().toLowerCase().equals("-stop")) { System.out.println("stopped!"); // WHAT TO PUT IN HERE?? } if (!args[0].trim().toLowerCase().equals("-start")) { System.out.println("ERROR: Unknown argument"); System.out.println("Usage: XXXX -start|stop"); System.exit(1); } ... Long pollInterval = new Long(poll_interval); final long TIMER_INTERVAL = pollInterval.longValue(); TimerTask tTask = new NuevMailTimer(); Timer myTimer = new Timer(); myTimer.scheduleAtFixedRate(tTask, 0, TIMER_INTERVAL); } public void run() { ... } } Will == 2 of 2 == Date: Tues, Nov 2 2004 7:32 am From: Thomas Weidenfeller <[EMAIL PROTECTED]> Will wrote: > I've got a java service under solaris which runs in the background > (command line based). When I start the application it runs and > periodically executes some stuff. You could use cron instead to periodically execute some program. > 1. Is there an easy and quick way to stop the application/service > instead of killing the process from within the shell (which is not > really nice). kill or better pkill (with SIGTERM, not SIGKILL) is the easy, quick and clean way. If you need to do cleanup work in the Java program, add a shutdown hook. If you don't like to type the [p]kill command line, wrap it in a small shell script. > 2. How can I stop it using java code? > Is there any other way than listening to a socket or monitoring a file > for some kind of shutdown command? (interprocess communication) I am not aware of anything simple. If you want to have something complex, you could tap into the VM via the debugging API (has been changed in 1.5 to the tool API) and terminate the VM. But that would be more brutal than kill. > 2. How can I avoid that more than one instance of the application run > at the same time? (a) Try opening some application-specific port. If the port is in use, your application is already running. (b) Use a lock file. When the file is already locked, assume your application is already running. This can only be done reliable with recent java versions, where you have some atomic operation for checking/locking (FileChannel.tryLock()). /Thomas ========================================================================== TOPIC: Bluetooth connection closed http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8c33cc13c53a3163 ========================================================================== == 1 of 2 == Date: Tues, Nov 2 2004 6:49 am From: "barak" <[EMAIL PROTECTED]> Hi, everyone, I used JBuilder to develop J2ME application, running on Nokia 6230, communicate to Bluetooth device. The discover device and services goes fine and finally the connection command look like btConnection = (StreamConnection)Connector.open( "btspp://00E098C0F053:1;authenticate=false;encrypt=false;master=false"); The connection opened and function for about one second then closed. Any idea why the connection closed? Thanks in advanced == 2 of 2 == Date: Tues, Nov 2 2004 7:28 am From: "barak" <[EMAIL PROTECTED]> Hi, everyone, I used JBuilder to develop J2ME application, running on Nokia 6230, communicate to Bluetooth device. The discover device and services goes fine and finally the connection command look like btConnection = (StreamConnection)Connector.open( "btspp://00E098C0F053:1;authenticate=false;encrypt=false;master=false"); The connection opened and function for about one second then closed. Any idea why the connection closed? Thanks in advanced ========================================================================== TOPIC: making a ByteChannel from a ByteBuffer? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4e063881e84d0ce1 ========================================================================== == 1 of 1 == Date: Tues, Nov 2 2004 6:49 am From: bugbear <[EMAIL PROTECTED]> In the java.io code set, it's easy to take a "pile o' data", and put a facade over it so it looks like a data source. byte [] stuff; java.io.InputStream inputStream = new java.io.ByteArrayInputStream(stuff); In the new and improved world of nio, I would like (analogously) to present a java.nio.ByteBuffer as a java.nio.ReadableByteChannel (*). I cannot find (I've looked **) an obvious way to do this. Can anyone help? BugBear (*) If anyone cares, I actually *need* to present a ByteBuffer as an InputStream, but the java.nio.channels.Channels has implements static InputStream newInputStream(ReadableByteChannel ch) (**) i.e. I've read and reread the javadoc for java.nio, and googled a lot. ========================================================================== TOPIC: Timeout for InputStream http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2b007c3bdd51a445 ========================================================================== == 1 of 1 == Date: Tues, Nov 2 2004 6:54 am From: "Filip Larsen" <[EMAIL PROTECTED]> Manish Hatwalne wrote > Is it possible somehow to get an input stream from an HttpURLConnection > object to timeout on a read() operation? How can I do it? Recently I had to do the same in a way that did not require major change to an existing input stream pipeline, and I came up with the PolledInputStream class included below. You may be able to modify it to suit your needs. Note: to work it relies on the underlying inputstream being able to report available() > 0 when there is input, which do not necessarily hold for all InputStreams. However, it do seem to hold for Sun's HttpURLConnection input streams as far as I have been able to test. ====PolledInputStream.java==== import java.io.IOException; import java.io.InputStream; /** * Adapter to change blocking input into polled input with timeout. * * @author Filip Larsen */ public class PolledInputStream extends InputStream { public PolledInputStream(InputStream input, long timeout) { this.input = input; this.timeout = timeout; } public int available() throws IOException { return input.available(); } public void close() throws IOException { input.close(); } public void mark(int readlimit) { input.mark(readlimit); } public boolean markSupported() { return input.markSupported(); } public int read() throws IOException { waitForAvailable(); return input.read(); } public int read(byte[] b) throws IOException { return read(b,0,b.length); } public int read(byte[] b, int off, int len) throws IOException { waitForAvailable(); int n = available(); return input.read(b, off, Math.min(len,n)); } public void reset() throws IOException { input.reset(); } public long skip(long n) throws IOException { return input.skip(n); } private InputStream input; private long timeout; private void sleep(long time) { try { Thread.sleep(Math.max(0,time)); } catch (InterruptedException ignore) { } } private void waitForAvailable() throws IOException { long until = System.currentTimeMillis() + timeout; while (available() == 0) { if (System.currentTimeMillis() > until) { throw new IOException("input timed out"); } try { Thread.sleep(100); } catch (InterruptedException ignore) { } } } } ====End of PolledInputStream.java==== Regards, -- Filip Larsen ========================================================================== TOPIC: How to starthandshake with client browser?? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2d41b9d8f6879f8b ========================================================================== == 1 of 1 == Date: Tues, Nov 2 2004 7:09 am From: Rogan Dawes <[EMAIL PROTECTED]> Bruno Grieder wrote: > Additional notes: > > a-You MIM should NOT send any reply directly to the client. > Actually, it has to send the 200 Ok response to the CONNECT request, prior to negotiating the SSL session. > c- Your MIM will NEVER be transparent in terms of authentication: you > can transparently pass the content including headers from client to > server, but authentication will always be Client to MIM and MIM to > server. (Fortunately, if not this would defeat the whole purpose of > using certificates). Note that, depending on the location of the MIM, and collusion between the operator of the client (e.g. browser) and the operator of the MIM, the operator of the browser can simply accept the invalid certificates presented by the MIM, and can also possibly load the browser's client certificate in the MIM application, with the nett result that the server has no knowledge that anything is amiss, and the browser will continue to operate with no degraded functionality. WebScarab includes this functionality. Regards, Rogan -- Rogan Dawes *ALL* messages to [EMAIL PROTECTED] will be dropped, and added to my blacklist. Please respond to "nntp AT dawes DOT za DOT net" ========================================================================== TOPIC: I/O file operations efficiency http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/55c397eb0d93e8a0 ========================================================================== == 1 of 2 == Date: Tues, Nov 2 2004 7:25 am From: [EMAIL PROTECTED] (hristo) I have some questions regarding the I/O file operations efficiency. Consider I/O operations involving the disk. Assume that I write periodically one Byte in the file after executing one processing block of code. Does this mean that at each of these periods, that only Byte will be stored in the disk despite its slow access time, or instead it will be stored in the memory buffer (of what size?) first then moved into the disk once the buffer is full? Should the programmer force the second option (by using BufferOutputStream) or is it done automatically by the JVM or OS? I have read also that writing and reading should be done on chunks of 256 (512,1024) bytes since the disk sector is of this size. Should I specify explicitly the buffer size or will it be handled automatically by the JVM or OS Say I have a stream of X bytes, should write it into the disk per once, or instead repetitively on X/256 bytes size. Thanks for your help == 2 of 2 == Date: Tues, Nov 2 2004 7:58 am From: Eric Sosman <[EMAIL PROTECTED]> hristo wrote: > I have some questions regarding the I/O file operations efficiency. > > Consider I/O operations involving the disk. Assume that I write > periodically one Byte in the file after executing one processing block > of code. Does this mean that at each of these periods, that only Byte > will be stored in the disk despite its slow access time, or instead it > will be stored in the memory buffer (of what size?) first then moved > into the disk once the buffer is full? Yes. No. Both. Maybe. Most O/Ses will hold disk output in a buffer for a while, either until the buffer fills or an explicit buffer-flush is requested (possibly by closing the file) or until some time period elapses. Most O/Ses also provide ways to modify this behavior, changing a disk's or file's buffering parameters or defeating buffering altogether. The details (including just what adjustments are possible, and under what circumstances) are O/S-specific, and not directly controllable from Java. > Should the programmer force the second option (by using > BufferOutputStream) or is it done automatically by the JVM or OS? BufferedOutputStream provides a buffer that operates at a different level: it's in the JVM's memory, not in the O/S. The output data sits in the JVM's buffer until it's time for it to be flushed, then it's written to the O/S. At that point the O/S may decide to write it directly or may choose to buffer it again. Presumably, the folks who wrote the JVM for your system put some thought into making BufferedOutputStream "play nicely" with the O/S' own buffering schemes, but the two are logically independent. > I have read also that writing and reading should be done on chunks of > 256 (512,1024) bytes since the disk sector is of this size. Should I > specify explicitly the buffer size or will it be handled automatically > by the JVM or OS No; you should use 8192 bytes because the O/S performs its I/O in sixteen-sector "pages." Or maybe you should use 4096 bytes because the O/S writes eight "pages" at a time, or 65536 because it writes 128 pages. Or maybe you should write ~1450 bytes at a time because the disk is mounted remotely and the data must cross an Ethernet cable with a 1500-byte MTU, or ... You should probably not worry about any of this unless you have measured the I/O performance and found it too slow or unless you have an a priori reason to believe that you'll need exceptionally high speeds (e.g., for streaming high- speed and high-volume telemetry). > Say I have a stream of X bytes, should write it into the disk per > once, or instead repetitively on X/256 bytes size. Write it in whatever chunks are most natural for the program that's generating the data: a character at a time, a line at a time, or whatever. Trust the JVM and the O/S to do something reasonable. What you get will almost certainly be slower than the very utmost the hardware could possibly be driven to deliver, but is very likely to be "good enough." Then, *if* the data rate turns out to be inadequate, start measuring and tweaking -- but only then, because the more of this you do, the more you tie your program to the peculiarities of a particular platform. -- [EMAIL PROTECTED] ========================================================================== TOPIC: AppletViewer and access to the local filesystem http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/aae0f7f6692849ef ========================================================================== == 1 of 1 == Date: Tues, Nov 2 2004 7:28 am From: G Winstanley <[EMAIL PROTECTED]> On Tue, 02 Nov 2004 04:35:34 GMT, the cup of Andrew Thompson <[EMAIL PROTECTED]> overfloweth with the following: > On Mon, 01 Nov 2004 19:07:30 +0000, G Winstanley wrote: > > > I've been trying to get appletviewer to have read access to images on the > > local filesystem > > Why? > > >..to make applet testing easier, > > OK, but what do you intend doing for deployment? > > This is a very relevant and important question since > any applet worth worrying about gets deployed to the net > and you must have another strategy for that circumstance. > > In that case, it might make sense to go directly to the > strategy you intend to use on deployment. > > >... but I'm coming across > > problems. The most obvious route to take seemed to be creating a user policy > > file (.java.policy) with the appropriate entry, but this seems to have > > failed. I've tried the following: > > Are you reading or writing to the files? > > If you are just reading, you can put the fiel ine the classpath > and appletviewer will read it without further hassles. > <http://java.sun.com/sfaq/#read> > > HTH Ok, I've managed to get something working finally. I forgot to add the $ before the {/} to ensure it got substituted. grant codebase "file:/G:/NetBeans Projects/-" { permission java.io.FilePermission "G:${/}NetBeans Projects${/}-", "read"; }; Stan ========================================================================== TOPIC: Axis version 1.2 wrong SOAP format http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f4306a72c8752b64 ========================================================================== == 1 of 1 == Date: Tues, Nov 2 2004 7:32 am From: [EMAIL PROTECTED] ([EMAIL PROTECTED]) Hello We want to use the new recommondation SOAP 1.2 within our applications. I've installed the latest AXIS library version 1.2RC1. When we use the samples with this library our application send the wrong format of the SOAP message. We use the library together with JBoss-3.2.6. Is there a possibility to switch the SOAP 1.1 engine to SOAP 1.2 engine. I can't find any documentation about this. Best regards Dirk Joosen ========================================================================== TOPIC: Question about wait http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c3b941d1ad39c7b8 ========================================================================== == 1 of 1 == Date: Tues, Nov 2 2004 7:39 am From: "Neutrino" <[EMAIL PROTECTED]> Thank you very much, this solution is working fine. AR ========================================================================== TOPIC: Resize border around components http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/361998bd91b9526c ========================================================================== == 1 of 1 == Date: Tues, Nov 2 2004 7:47 am From: [EMAIL PROTECTED] (Asra) Hello, I'm making a GUI designer in Java and I was wondering how can we have a border around the selected component that lets us resize the component. The usual border contains smal squares along the corners and center of the outlining lines. -Asra ========================================================================== TOPIC: How to get my IP address http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bd97add828fa8a4a ========================================================================== == 1 of 2 == Date: Tues, Nov 2 2004 8:16 am From: "Neutrino" <[EMAIL PROTECTED]> Hello, I try to read my IP address, under Windows XP, the function InetAddress.getLocalHost().getHostAddress() return the correct address but with Linux Red Hat the same function return 127.0.01 How to get the correct address under Linux ? Thanks AR == 2 of 2 == Date: Tues, Nov 2 2004 8:23 am From: Michael Borgwardt <[EMAIL PROTECTED]> Neutrino wrote: > I try to read my IP address, under Windows XP, the function > InetAddress.getLocalHost().getHostAddress() return the correct address but > with Linux Red Hat the same function return 127.0.01 > How to get the correct address under Linux ? Which is the "correct address"? 127.0.0.1 sounds perfectly correct to me. One computer can have *a lot* of IP addesses. You can get all of them via NetworkInterface.getNetworkInterfaces() and then getInetAddresses() on all of the results. ========================================================================== TOPIC: If you wanna be my lover... http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5b0f39eca4dd2fc5 ========================================================================== == 1 of 1 == Date: Tues, Nov 2 2004 8:55 am From: [EMAIL PROTECTED] (Adamskii) Erissa <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Young 30's loud-mouthed Wiccan with a shitty attitude and general > contempt for apathetic, Lexus-worshipping, stuck up Republicans > seeks same or younger GWF for obnoxious fun times. <snip> ...errr... Do you know where I can get the 1.3 patch for Far Cry? ========================================================================== TOPIC: JBoss and Xalan problem ... http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fb254078872725c2 ========================================================================== == 1 of 1 == Date: Tues, Nov 2 2004 8:57 am From: [EMAIL PROTECTED] (Elpecek) Hello, I'm developping web application with reporting capability. A report is generated from XML through XSLT stylesheet. The XSLT file, which I prepared, is correct and works fine in XML Spy and under JBoss on JDK 1.4.1. But a few weeks ago we decided to change JDK to 1.4.2_06 and everything collapsed. I collected "prefix must resolve to a namespace:" exception. After my personal investigation it appeared that Xalan included in this version of JDK has a problem with xsl:number element (to be more specific: it crashes when it finds xsl:number in the stylesheet). I tried to replace Xalan through $JDK$/jre/lib/endorsed directory mechanism, and it helped to my report, but JBOSS (3.1.5) started to crash (it can't read it's own configuration files). I also tried to put there (endorsed dir) older versions of Xalan, but it didn't bring any positive effect. Is there any other way to cope with this problem? Thanks in advance, Tomek ========================================================================== TOPIC: problem with java versions and jar http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2a7a12b44a2ec7c7 ========================================================================== == 1 of 1 == Date: Tues, Nov 2 2004 8:56 am From: Jürgen <[EMAIL PROTECTED]> I solved the problem. With the correct runtime version everything is fine. thanks anyway. greetings jürgen ========================================================================== TOPIC: multi-inheritance between EntityBeans http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c56b1038efd7ffbb ========================================================================== == 1 of 1 == Date: Tues, Nov 2 2004 8:58 am From: "Grzegorz Trafny" <[EMAIL PROTECTED]> Hi, Question is lightly theoretical but how to implement project (for example: data model ) in which was used multi-inheritance? Especially, how to model multi-inheritance in apps which data is based on EntityBeans? Problem is quite large because normally it is not possible to apply (in EntityBeans) even single inheritance. However it exists patterns to solve this problem (f.e.: article "EJB Inheritance" from onjava.com). Maybe someone know way (similar to above mentioned) how to by-pass problem of multi inheritance in EntityBeans (and java :)))? Greetings GT ========================================================================== TOPIC: NoClassDefFoundError exception http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4ddad41290f0004d ========================================================================== == 1 of 2 == Date: Tues, Nov 2 2004 9:03 am From: [EMAIL PROTECTED] (Matt) Test.java is just a simple class. I have the Java path set in environment, but it has NoClassDefFoundError exception when i run the program. any ideas? C:\>javac Test.java C:\>java Test Exception in thread "main" java.lang.NoClassDefFoundError: Test please help. thanks!! == 2 of 2 == Date: Tues, Nov 2 2004 9:06 am From: Sudsy <[EMAIL PROTECTED]> Matt wrote: > Test.java is just a simple class. I have the Java path set in environment, > but it has NoClassDefFoundError exception when i run the program. any ideas? > > C:\>javac Test.java > > C:\>java Test > Exception in thread "main" java.lang.NoClassDefFoundError: Test > > please help. thanks!! java -classpath . Test -- Java/J2EE/JSP/Struts/Tiles/C/UNIX consulting and remote development. ========================================================================== TOPIC: port number in JBoss application http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/40e1a95cd09ff898 ========================================================================== == 1 of 1 == Date: Tues, Nov 2 2004 9:05 am From: [EMAIL PROTECTED] (Matt) how to find out the port number in JBoss application?? please help. thanks!! ======================================================================= You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer". comp.lang.java.programmer [EMAIL PROTECTED] Change your subscription type & other preferences: * click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe Report abuse: * send email explaining the problem to [EMAIL PROTECTED] Unsubscribe: * click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe ======================================================================= Google Groups: http://groups-beta.google.com
