comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * java.net.SocketException: Insufficient buffer space - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7c9c56b240ed60b1 * "Could not find main-class" - 7 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/631c41f6c0ad1a67 * Stack trace ALL exceptions? - 4 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/540a5bc35537462c * mbox files - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/99e8d68e613f028c * viva questions - any ideas? - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5ea074c24d5897ac * Immediate J2EE Openings - St. Louis - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/35d1f65ef52acc1c * why this Applet fails - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f1a64e18e89e48c8 * has someone seen this error before? - 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f8e9f76b902386f4 * mutliple CPUs, threading and JVM 1.4.2 - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/66935facb3b0272 * How do you report a JIT crash bug? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6e12e8e3c39c7cc4 * Creating us map graphics? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/75eb4279ecace9dd * local disk based JDBC implementation - 4 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3bcd34f5eb202fef * NullPointerException with FileInputStream - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/31f437f0b81b32cd ========================================================================== TOPIC: java.net.SocketException: Insufficient buffer space http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7c9c56b240ed60b1 ========================================================================== == 1 of 2 == Date: Wed, Nov 3 2004 9:14 am From: "Jeff" <[EMAIL PROTECTED]> I did post the same content last night, but did not include the error in the subject line. Does anyone have more detail on what this exception means? The JVM is JRockit. Our server experiences this error when it's client sends heavy load (7 or 8 Megabits/sec). In netstat, we see the tcp receive buffer growing large, implying our server is falling behind. That should result in tcp closing the advertised window to the client. It shouldn't throw an error so we're not sure which buffer space is insufficient: tcp's or our buffereInputStream. Socket probeSocket = sock.accept(); probeSocket.setReceiveBufferSize(32768); BufferedInputStream is = new BufferedInputStream( probeSocket.getInputStream(), 024000 ); Anybody have some experience with this error? Thanks -- Jeff == 2 of 2 == Date: Wed, Nov 3 2004 12:48 pm From: "John C. Bollinger" <[EMAIL PROTECTED]> Jeff wrote: > Our server experiences this error when it's client sends heavy load (7 or 8 > Megabits/sec). In netstat, we see the tcp receive buffer growing large, > implying our server is falling behind. That should result in tcp closing > the advertised window to the client. It shouldn't throw an error so we're > not sure which buffer space is insufficient: tcp's or our > buffereInputStream. The problem is not the BufferedInputStream. In the first place, it cannot exhaust its buffer because it is a *read* buffer, wholly or partially filled from the underlying input stream as needed. In the second place, it would not generate a java.net.SocketException under any circumstances, although it might allow such an exception thrown by the wrapped InputStream to propogate outward. If you want to verify, it's not that hard to replace a BufferedInputStream's buffering behavior with hand-rolled buffering. As I wrote elsewhere, a SocketException almost surely reflects an error condition reported by the native network stack. John Bollinger [EMAIL PROTECTED] ========================================================================== TOPIC: "Could not find main-class" http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/631c41f6c0ad1a67 ========================================================================== == 1 of 7 == Date: Wed, Nov 3 2004 9:14 am From: Tarlika Elisabeth Schmitz <[EMAIL PROTECTED]> Hello Andrew, Andrew Thompson wrote: > On Wed, 03 Nov 2004 16:03:46 +0000, Tarlika Elisabeth Schmitz wrote: >>The application consists of a couple of dozen jar files. I specify the >>main class via >><application-desc main-class="app.Main"/> >>but it is only found if the jar file containing the main class is the >>first listed in <resources>. If this jar file is not the first the above >>error occurs. > > > Untested.. have you tried.. > <jar href="YourMainJar.jar" download="eager"/> ? > Tried it but it doesn't make a difference. My understanding is the default is "eager" anyway. Also, I cannot specify it in the Ant task when using fileset to produce the "resources" section. -- Regards/Gruß, Tarlika == 2 of 7 == Date: Wed, Nov 3 2004 9:20 am From: Tarlika Elisabeth Schmitz <[EMAIL PROTECTED]> Hello Bent, Bent C Dalager wrote: > In article <[EMAIL PROTECTED]>, > Tarlika Elisabeth Schmitz <[EMAIL PROTECTED]> wrote: > > I think it's an artifact of a different feature. In short, if you do > not specify a main-class in the jnlp file, jws will use the main-class > it finds in the manifest file of the first jar file in the resource > section. This is all well and nice of course, but it appears to me to > have the side effect that even if you _do_ specify a main-class, it > still only looks for it in the first jar file. I tried it with and without main-class specification in the Manifest file. Same difference. Scunner. That really renders my JNLP Ant task nearly useless. > I wrote my own ANT task to sort the file names with my main jar on > top. This seems crazy, just because WS is too stupid to search through the resources list? I don't understand where the problem is: after all, java.exe doesn't require the jars in the classpath to be in any specific order either. -- Regards/Gruß, Tarlika == 3 of 7 == Date: Wed, Nov 3 2004 9:23 am From: Andrew Thompson <[EMAIL PROTECTED]> On Wed, 03 Nov 2004 17:14:00 +0000, Tarlika Elisabeth Schmitz wrote: > Andrew Thompson wrote: >> On Wed, 03 Nov 2004 16:03:46 +0000, Tarlika Elisabeth Schmitz wrote: .. >> Untested.. have you tried.. >> <jar href="YourMainJar.jar" download="eager"/> ? > > Tried it but it doesn't make a difference. ... Bummer. :-( I hope that Bent's suggestion works better for you. -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane == 4 of 7 == Date: Wed, Nov 3 2004 9:32 am From: Tarlika Elisabeth Schmitz <[EMAIL PROTECTED]> Hello Bent, Just detected : Bent C Dalager wrote: > In article <[EMAIL PROTECTED]>, > Tarlika Elisabeth Schmitz <[EMAIL PROTECTED]> wrote: > >>Is this a feature? Is there a work-around? <jar href="app.jar" main="true"/> The "main" attribute gets WebStart to look for the main class in this jar far file regardless whether it's at the top or not. FOr my JNLP Ant task that means: I can still use fileset but I additionally specify <jar href="app.jar" main="true"/> in the resources section. WebStart doesn't care if you've got more than one entry for the same jar. -- Regards/Gruß, Tarlika Elisabeth Schmitz == 5 of 7 == Date: Wed, Nov 3 2004 9:34 am From: Tarlika Elisabeth Schmitz <[EMAIL PROTECTED]> Hello Andrew, Andrew Thompson wrote: > On Wed, 03 Nov 2004 17:14:00 +0000, Tarlika Elisabeth Schmitz wrote: > > >>Andrew Thompson wrote: > > >>>On Wed, 03 Nov 2004 16:03:46 +0000, Tarlika Elisabeth Schmitz wrote: > > ... > >>>Untested.. have you tried.. >>><jar href="YourMainJar.jar" download="eager"/> ? >> >>Tried it but it doesn't make a difference. ... > > > Bummer. :-( Or "Scunner", as the Scots say. > I hope that Bent's suggestion works better for you. Found a better one, see my other posting ;-) -- Regards/Gruß, Tarlika == 6 of 7 == Date: Wed, Nov 3 2004 9:38 am From: Andrew Thompson <[EMAIL PROTECTED]> On Wed, 03 Nov 2004 17:32:28 +0000, Tarlika Elisabeth Schmitz wrote: > <jar href="app.jar" main="true"/> > The "main" attribute gets WebStart to look for the main class in this > jar far file regardless whether it's at the top or not. I could find no reference to that in the docs I was looking at.. <http://java.sun.com/j2se/1.4.2/docs/guide/jws/developersguide/syntax.html> How did you discover that solution? -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane == 7 of 7 == Date: Wed, Nov 3 2004 9:55 am From: Tarlika Elisabeth Schmitz <[EMAIL PROTECTED]> Hello Andrew, Andrew Thompson wrote: > On Wed, 03 Nov 2004 17:32:28 +0000, Tarlika Elisabeth Schmitz wrote: > > >><jar href="app.jar" main="true"/> >>The "main" attribute gets WebStart to look for the main class in this >>jar far file regardless whether it's at the top or not. > > > I could find no reference to that in the docs I was looking at.. > <http://java.sun.com/j2se/1.4.2/docs/guide/jws/developersguide/syntax.html> > > How did you discover that solution? > Right enough - I never saw this in any of the Java WebStart docs I found on the net. I just looked through the the Roxes JNLP Ant task documentation again to get some ideas and lo and behold, they described the "main" attribute: "The main attribute of a jar element indicates whether this element contains the main class (true | false)." Voilà. And that's what it generates. You learn something new every day. -- Regards/Gruß, Tarlika ========================================================================== TOPIC: Stack trace ALL exceptions? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/540a5bc35537462c ========================================================================== == 1 of 4 == Date: Wed, Nov 3 2004 9:07 am From: kaeli <[EMAIL PROTECTED]> In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] enlightened us with... Okay, I just had to make sure I didn't write to out until the end. This works pretty well, but there are two things I need... [code] StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); exception.printStackTrace(pw); if ( exception instanceof ServletException ) { pw.println( "Root cause:" ); ((ServletException) exception ).getRootCause().printStackTrace( pw ); } out.print(sw); sw.close(); pw.close(); [/code] This message has "10 more" in it. I want those other lines. Stack Trace: org.apache.jasper.JasperException at org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper (JspRuntimeLibrary.java:199) at org.apache.jasper.runtime.JspRuntimeLibrary.introspect (JspRuntimeLibrary.java:146) at _jsps._ops_beta. _events_retrofit_updateNow_jsp._jspService (_events_retrofit_updateNow_jsp.java:138) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService (NSServletRunner.java:915) at com.iplanet.server.http.servlet.NSServletRunner.Service (NSServletRunner.java:483) Root cause: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:324) at org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper (JspRuntimeLibrary.java:195) at org.apache.jasper.runtime.JspRuntimeLibrary.introspect (JspRuntimeLibrary.java:146) at _jsps._ops_beta. _events_retrofit_updateNow_jsp._jspService (_events_retrofit_updateNow_jsp.java:138) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService (NSServletRunner.java:915) at com.iplanet.server.http.servlet.NSServletRunner.Service (NSServletRunner.java:483) Caused by: java.lang.IllegalArgumentException: Network Number not valid. at OPS_Beans_20.OPS_EventBean.setNetworkNumber (OPS_EventBean.java:150) ... 10 more Also, I want to get the text after "Caused by" (network number not valid). Do you know where that's coming from? For some reason, when I try exception.getMessage() or even ((ServletException) exception ).getRootCause().getMessage() I get null, so I want to put that text on the screen so the user can easily see what the problem was. Or is there something I am missing to get the original message from the original exception? Thanks for your help! -- -- ~kaeli~ Not one shred of evidence supports the notion that life is serious. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace == 2 of 4 == Date: Wed, Nov 3 2004 9:49 am From: Sudsy <[EMAIL PROTECTED]> kaeli wrote: <snip> > Also, I want to get the text after "Caused by" (network number not valid). Do > you know where that's coming from? > For some reason, when I try > exception.getMessage() > or even > ((ServletException) exception ).getRootCause().getMessage() > I get null, so I want to put that text on the screen so the user can easily > see what the problem was. Or is there something I am missing to get the > original message from the original exception? My mistake: the sw should have been pw in the code I posted (slaps self silly). I don't know how to get the "10 more lines..." message without creating a filter; probably more trouble than it's worth. As to the message, Exception#getMessage doesn't always return a message. I've noticed that it sometimes returns null in my own code. I tend to revert to the toString method. YMMV. -- Java/J2EE/JSP/Struts/Tiles/C/UNIX consulting and remote development. == 3 of 4 == Date: Wed, Nov 3 2004 10:37 am From: kaeli <[EMAIL PROTECTED]> In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] enlightened us with... > > My mistake: the sw should have been pw in the code I posted (slaps self > silly). I know, I caught that. Easy mistake. > I don't know how to get the "10 more lines..." message without creating > a filter; probably more trouble than it's worth. Darn. > As to the message, Exception#getMessage doesn't always return a message. > I've noticed that it sometimes returns null in my own code. I tend to > revert to the toString method. YMMV. > I got null with toString, too, which was why I wanted the text from the original exception. I'll keep playing. If I find an easy solution, I'll post it, just in case anyone else has this issue. Thanks for the help. -- -- ~kaeli~ Bakers trade bread recipes on a knead-to-know basis. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace == 4 of 4 == Date: Wed, Nov 3 2004 11:48 am From: kaeli <[EMAIL PROTECTED]> In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] enlightened us with... Okay, this seems to be working rather well right now. So, I'll consider it the solution until something else blows up. *LOL* It gets the original exception, as desired, even past the servletexception, but handles them if the exception isn't nested or isn't a servletexception, too. // unwrap nested exceptions. while (exception instanceof ServletException || exception instanceof InvocationTargetException) { if (exception instanceof ServletException) exception = ((ServletException) exception).getRootCause(); else exception = ((InvocationTargetException) exception).getCause(); } errMsg = exception.getMessage(); errMsg = errMsg==null?exception.toString():errMsg; %> <p class="bigAttention">Message: <%= errMsg %></p> <p>Stack Trace: <% // print stack trace. exception.printStackTrace(new PrintWriter(out)); %> </p> Output was, as desired: An exception occurred: Message: Unparseable date: " " Stack Trace: java.text.ParseException: Unparseable date: " " at java.text.DateFormat.parse(DateFormat.java:334) at OPS_Beans_ 20.OPS_EventBean.setSchPrelimDueDate(OPS_EventBean.java:435) at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:324) at org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper (JspRuntimeLibrary.java:195) at org.apache.jasper.runtime.JspRuntimeLibrary.introspect (JspRuntimeLibrary.java:146) at _jsps._ops_beta. _events_retrofit_updateNow_jsp._jspService (_events_retrofit_updateNow_jsp.java:138) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService (NSServletRunner.java:915) at com.iplanet.server.http.servlet.NSServletRunner.Service (NSServletRunner.java:483) -- -- ~kaeli~ Cthulhu saves our souls and redeems them for valuable coupons later. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace ========================================================================== TOPIC: mbox files http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/99e8d68e613f028c ========================================================================== == 1 of 2 == Date: Wed, Nov 3 2004 10:03 am From: steph <[EMAIL PROTECTED]> Hi, Does anyone know a library that can read and write mbox files, handling multipart ? Thanks. -- stephane retirez les lettres majuscules et le 666 de l'adresse pour l'utiliser. == 2 of 2 == Date: Wed, Nov 3 2004 10:22 am From: Oscar kind <[EMAIL PROTECTED]> steph <[EMAIL PROTECTED]> wrote: > Does anyone know a library that can read and write mbox files, handling multipart ? You can use the JavaMail API. Someone wrote an mbox provider. It's somewhere on this page: http://bluezoo.org/knife/ -- Oscar Kind http://home.hccnet.nl/okind/ Software Developer for contact information, see website PGP Key fingerprint: 91F3 6C72 F465 5E98 C246 61D9 2C32 8E24 097B B4E2 ========================================================================== TOPIC: viva questions - any ideas? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5ea074c24d5897ac ========================================================================== == 1 of 2 == Date: Wed, Nov 3 2004 10:10 am From: "Madhur Ahuja" <[EMAIL PROTECTED]> Hello My instructor gave me some sample viva questions. Some of the questions, were quite odd. I have searched the net for their answers, I just decided to post them here, to get ideas of your people. Q. What is the data structure used in the garbage collection scheme of java[ or perhaps sun's jvm]. A. I have found that, implementation of garbage collection is implementation dependent. java specification only specifies what is garbage collection and not what algorithm to apply. As regard of sun's jvm, i have found that it uses *reference counting collectors* algorithm to find out unused objects. Q. How is the memory map of a static variable, different from that of non static variable. A. This one is quite odd. I think it depends on the OS,platform etc. In short one can say that only one copy of static variable is maintained for a class having multiple instances. Q. Can you override public static void main method? A. No. Since it is a static method. Although no error will be generated. Q. What is the latest version of J2EE A. Same as JDK I think? 1.5 or JSDK 5.0 Q. What is the meaning of 2 in J2SDK and 1,4 in Java 1.4 A. This confuses me lot. Perhaps anyone can help in this case. Also the latest 1.5 has been termed as 5.0. Q. What do u know about drafts,specifications of J2SE? A. Drafts? no idea about this. Perhaps these are same as versions. Q. What are the components of JFC? A. Swing, AWT. Q. What are the disadvantages of Swing over AWT? A. Might be little slow. Q. What are the major changes in java from versions 1.1,1.2,1.3,1.4 A. Although the answer of this question is best found on the Sun's site. My instructor told that he was interested in the version groups of java. For ex, 1.1-1.2 is regarded as similar java version while 1.3-1.4 is regarded as another equal java version. Has anyone ideas on this? Q. There is a famous trick in java programming to prevent the decompilation of your .class files(may be not successful). what is that trick? A. I have found about "encrypting the class files and decrypting them while loading through a custom classloader inside the JVM". This fails due to a API, which directly takes the unencrypted class files as an argument.(taken from the www.javaworld.com) -- Madhur Ahuja [madhur<underscore>ahuja<at>yahoo<dot>com] Homepage http://madhur.netfirms.com == 2 of 2 == Date: Wed, Nov 3 2004 11:53 am From: Oscar kind <[EMAIL PROTECTED]> Madhur Ahuja <[EMAIL PROTECTED]> wrote: > My instructor gave me some sample viva questions. > Some of the questions, were quite odd. And you provided your own answers. Good work! My notes are below. > Q. What is the data structure used in the garbage collection > scheme of java[ or perhaps sun's jvm]. The structure is irrelevant to programming. What is relevant, is that you don't know when an object is collected (and in general you cannot force garbage collection). > Q. How is the memory map of a static variable, different from that > of non static variable. > A. This one is quite odd. I think it depends on the OS,platform > etc. In short one can say that only one copy of static variable is > maintained for a class having multiple instances. IMNSHO, the question is poorly worded. Your answer is correct though. > Q. Can you override public static void main method? > A. No. Since it is a static method. Although no error will be > generated. Correct. Note that the compiled class actually calls the method on the class. The compiler silently translated a call to staticMethod() into TheClass.staticMethod(), thus creating the illusion of inheritance. But static methods are not included in the inheritance hierarchy, and thus cannot be overridden. > Q. What is the latest version of J2EE > A. Same as JDK I think? 1.5 or JSDK 5.0 J2EE is different from the JDK. The latest version is 1.4. See: http://java.sun.com/j2ee/ > Q. What is the meaning of 2 in J2SDK and 1,4 in Java 1.4 > A. This confuses me lot. Perhaps anyone can help in this case. Also > the latest 1.5 has been termed as 5.0. After Java 1.0 and 1.1, the API received a major overhaul. Subsequent versions were called Java2, but the numbering of the individual versions did not change (thus 1.2.x, 1.3.x and 1.4.x). With the arrival of generics, enumerations, autoboxing and the other janguage changes in Java, the "family version" (for lack of a better term) was increased again. This time to 5. I don't know why. > Q. What do u know about drafts,specifications of J2SE? > A. Drafts? no idea about this. Perhaps these are same as versions. No. For each of the new features of 1.5, there was a draft specification. These have been incorporated in the general Java specification, which all JVM's must adhere to be allowed to call themselves a Java Virtual Machine. > Q. What are the disadvantages of Swing over AWT? > A. Might be little slow. Also, AWT depends more on the underlying platform, and thus has subtle incompatibilities across platforms. These cannot be solved by programmers that just use the Java API. Other than by using Swingg that is. > Q. What are the major changes in java from versions 1.1,1.2,1.3,1.4 > A. Although the answer of this question is best found on the Sun's site. > My instructor told that he was interested in the version groups of java. > For ex, 1.1-1.2 is regarded as similar java version while 1.3-1.4 is > regarded as another equal java version. Has anyone ideas on this? Java 1: 1.0-1.1 (initial version) Java 2: 1.2-1.4 (major overhaul of the API) Java 5: 1.5 (introduction of new language features) > Q. There is a famous trick in java programming to prevent the > decompilation of your .class files(may be not successful). > what is that trick? > A. I have found about "encrypting the class files and decrypting them > while loading through a custom classloader inside the JVM". This > fails due to a API, which directly takes the unencrypted class files > as an argument.(taken from the www.javaworld.com) The "trick" is obfuscation. It uses the fact than Java bytecode is more similar to machine code than to Java. Obfuscation cannot be perfect because the functionality is preserved. And with a special JVM reverse engeneering is always possible. However, some obfuscators can mangle the bytecode such that the original code structure is destroyed beyond automated decompilation. In most cases however, reverse engeneering a key component (for example a licence key checker) is still too easy for comfort. Determining a way for the customers to want to connect to one of your servers over the internet is a much better way to guarantee sales (the server denies access to illegal/duplicate licence keys). -- Oscar Kind http://home.hccnet.nl/okind/ Software Developer for contact information, see website PGP Key fingerprint: 91F3 6C72 F465 5E98 C246 61D9 2C32 8E24 097B B4E2 ========================================================================== TOPIC: Immediate J2EE Openings - St. Louis http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/35d1f65ef52acc1c ========================================================================== == 1 of 1 == Date: Wed, Nov 3 2004 10:14 am From: [EMAIL PROTECTED] (Kristin Menefee) OCI/Advantage Consulting is currently seeking 6 Sr. Java Developers for immediate start! Local candidates to St. Louis preferred. Please contact Jane Bullington at [EMAIL PROTECTED] or 314-579-0066 x205 with any interest. Sr. Java Developer (6 positions available!) Openings for Java/J2EE Software Developers for a multi-phase software development effort. The candidates will work with a team of software and web developers, and software architects, to implement the application to the defined business requirements. Responsibilities: Interpret software design specifications and OOD models for application modules, and translate them into Java source code Develop and unit test application modules and web pages Integrate application modules with other modules and external systems Qualifications: Minimum of a Bachelor's degree in Computer Science or an equivalent field of study 5+ years development experience with Java 2-3 years experience with J2EE, including JSP, Servlets and EJBs Experience with XML and Struts (or other MVC frameworks) Experience interfacing with relational databases (Oracle, DB2 UDB) using JDBC Familiarity with OOD patterns and UML methodology Experience with J2EE application servers (IBM WebSphere, BEA WebLogic, JBoss, etc.) Experience applying the above technologies to the development of n-tier, web-based applications. Detail-oriented individual with solid verbal and written communication skills. Experience with the Unified Process (or other similar methodology) Experience with Web Services and Hibernate a plus ========================================================================== TOPIC: why this Applet fails http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f1a64e18e89e48c8 ========================================================================== == 1 of 1 == Date: Wed, Nov 3 2004 10:17 am From: "Madhur Ahuja" <[EMAIL PROTECTED]> Andrew Thompson <[EMAIL PROTECTED]> wrote: > On Wed, 3 Nov 2004 16:32:16 +0530, Madhur Ahuja wrote: > >> This Applet runs fine as an application but >> does not displays output in the console window .... > > What browser? What Java? > <http://www.physci.org/pc/property.jsp?prop=java.version> > >> ...as it does in the application. > > It displays continuous numbers when run from AppletViewer. > Ditto for IE 6 running Java 1.5.0. > > What did I (or you) miss? Thanks, the problem was that I was using the old class file. My Bad. Thanks ! -- Madhur Ahuja [madhur<underscore>ahuja<at>yahoo<dot>com] Homepage http://madhur.netfirms.com ========================================================================== TOPIC: has someone seen this error before? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f8e9f76b902386f4 ========================================================================== == 1 of 3 == Date: Wed, Nov 3 2004 10:49 am From: "John Harlow" <[EMAIL PROTECTED]> > Our server has what appears to be a network IO problem under load. Can you try smaller (say 16k) "chunks"? I have a feeling you are hitting a hard limit on some underlying layer that may have issues with large buffer sizes. == 2 of 3 == Date: Wed, Nov 3 2004 12:18 pm From: "John C. Bollinger" <[EMAIL PROTECTED]> Louis wrote: > [EMAIL PROTECTED] wrote... > >>Seems more like a queue limitation, rather than buffer. >>Do you have a setting like "tcp_conn_request_max" and what (if any) does it >>say? > > > I believe the OP stated it was a single connection that was > saturated. He had not previously so stated, but he now has done. All the same I find the assertion surprising. John Bollinger [EMAIL PROTECTED] == 3 of 3 == Date: Wed, Nov 3 2004 12:30 pm From: "John C. Bollinger" <[EMAIL PROTECTED]> Jeff wrote: > "Louis" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>[EMAIL PROTECTED] wrote... >> >>>Seems more like a queue limitation, rather than buffer. >>>Do you have a setting like "tcp_conn_request_max" and what (if any) does >>>it >>>say? >> >>I believe the OP stated it was a single connection that was >>saturated. >> > > > Correct - it's a single connection that generates the error That's still not clear. I _think_ you mean that your "probe" connects just once to the server during a test run, and while connected sends data over the one connection at a sustained rate of about 7.5 MB/s (from the original message) for an extended time, and at some point during this procedure the server fails. You _could_ mean, however, that the probe makes some number of connections serially, sending some unspecified amount of data over each one at an overall rate of about 7.5 MB/s, and most of the transmissions complete successfully, but some random one occasionally fails. Either way, the exception reported appears to be signaling a resource exhaustion condition in the network stack. I really don't have enough information to diagnose it any more specifically, and I certainly couldn't say whether the Java server implementation has anything to do with the problem. John Bollinger [EMAIL PROTECTED] ========================================================================== TOPIC: mutliple CPUs, threading and JVM 1.4.2 http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/66935facb3b0272 ========================================================================== == 1 of 1 == Date: Wed, Nov 3 2004 11:29 am From: David <[EMAIL PROTECTED]> I'm curious about what the JVM does with threads in a multi-CPU environment. I'm most curious about Linux and Windows. Does anyone know if there is any type of CPU affinity that occurs on these systems as a result of something the JVM does? Or will the JVM try to work with both CPUs and balance native-threading accordingly? ========================================================================== TOPIC: How do you report a JIT crash bug? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6e12e8e3c39c7cc4 ========================================================================== == 1 of 1 == Date: Wed, Nov 3 2004 11:57 am From: "Mickey Segal" <[EMAIL PROTECTED]> Internet Explorer 6 on Windows XP running Java 1.5 crashed and left a log file on my desktop. The log begins: # # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c9010f3, pid=1312, tid=3304 Is there something one can do with these files? This crash occurred with a very large Java applet and it is unlikely that Sun will want to look through tens of thousands of lines of code. ========================================================================== TOPIC: Creating us map graphics? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/75eb4279ecace9dd ========================================================================== == 1 of 1 == Date: Wed, Nov 3 2004 12:00 pm From: [EMAIL PROTECTED] (D. Alvarado) Hello, Does anyone know of any Java freeware that can help me generate a US map with states being different colors? I am running JDK 1.3 for Solaris. My intention is to color code states based on the number of users wwe have from each state. Thanks, - Dave ========================================================================== TOPIC: local disk based JDBC implementation http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3bcd34f5eb202fef ========================================================================== == 1 of 4 == Date: Wed, Nov 3 2004 12:15 pm From: Alex Hunsley <[EMAIL PROTECTED]> Juha Laiho wrote: > Alex Hunsley <[EMAIL PROTECTED]> said: > >>I'm looking for local disk storage based JDBC implementations (i.e. one >>that stores the database in files on disk, the exact format isn't important) >> >>I've found a few already: >> >>http://www.csv-jdbc.com/ (commercial) >> >>http://hsqldb.sourceforge.net/ - in memory or on disk database. >> >>http://www.servletguru.com/downloads.htm (see SimpleText.zip, is a text >>JDBC driver) >> >>Just wondering if anyone is using or knows of any more that I've missed > >>from my above list! > > Derby; a project recently donated to Apache by IBM. Like hsqldb; don't > know what are the actual differences. thanks, I'm having a sniff around for that now... alex == 2 of 4 == Date: Wed, Nov 3 2004 12:14 pm From: Alex Hunsley <[EMAIL PROTECTED]> [EMAIL PROTECTED] wrote: > Don't know if you're using Windows or not, but if you are you might be > able to use the JDBC/ODBC bridge with the Microsoft text or Excel ODBC > drivers. I had found references to that today, but didn't take them seriously for some reason! (maybe it was the idea of bridging to something else adding complexity; maybe the microsoft aspect put me off :) thanks for pointing that out again, alex == 3 of 4 == Date: Wed, Nov 3 2004 12:20 pm From: Thomas Kellerer <[EMAIL PROTECTED]> Juha Laiho wrote on 03.11.2004 17:12: >> >>http://hsqldb.sourceforge.net/ - in memory or on disk database. >> > > Derby; a project recently donated to Apache by IBM. Like hsqldb; don't > know what are the actual differences. Derby is the version of Cloudscape that was donated to Apache from IBM. For embedding into an application I would prefer HSQLDB. It's much smaller (2MB download vs 80MB) and seems to offer (at least for the mentioned type of application) a very similar performance. Thomas == 4 of 4 == Date: Wed, Nov 3 2004 1:05 pm From: "Ann" <[EMAIL PROTECTED]> "Alex Hunsley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm looking for local disk storage based JDBC implementations (i.e. one > that stores the database in files on disk, the exact format isn't important) > > I've found a few already: > I use MySQL and the files are on my local disk. conn = DriverManager.getConnection("jdbc:mysql://localhost/" + "jones"); where jones is the name of the database. ========================================================================== TOPIC: NullPointerException with FileInputStream http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/31f437f0b81b32cd ========================================================================== == 1 of 1 == Date: Wed, Nov 3 2004 12:30 pm From: Steve Horsley <[EMAIL PROTECTED]> Mark F wrote: > For some reason I'm getting an NPE at this line: > > fis = new FileInputStream(HitCountFilter.HITS_FILENAME); > > HITS_FILENAME is a static variable that is set to "C:\\hits.ser" > Is HitCounterFilter declared as a reference variable of some sort (could be null), or is it a class name? Steve ======================================================================= 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
