comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * Tomcat cache errors !!! and java.lang.IncompatibleClassChangeError - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/db8496e440d8e28f * JAVA graphic API - 5 messages, 4 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5031f682b2f55a01 * opinion on coding standard - 5 messages, 5 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1f96751a1d317c1a * javax.xml.Parsers location - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a06eb697f944bccf * TOMCAT JSP deployment - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a8d0740af8e16287 * Is JDK5.0 stable enough? - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/db7b3d1aa35d24fb * Java Career Questions - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b2c43e3a96c2d70e * get MBeanServer remotly - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/987c2b9ab1223dbd * request.getHeader - referer - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/810ddbb36c621b1f * GridBagLayout: window resizing problem - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c8cd62ee9cb3f253 * Telling the truth at interviews for Java positions - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b3bba249c109316a * Facts and Fallacies of Software Engineering - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d663c4795a28c937 * Reading huge text files one line at a time.... - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5297862f47d197a6 * Query about compression and decompression in Java using java.util.zip package - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/94b99410cf502ba8 * Enterprise Reporting Solution - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/38f07a10dcb1c6ea * Multiple references to simple type-variables - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7f02fa2953a07b98 * Have I got this completely wrong? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/70d49c0f295c6520 * Acess to tomcat realm authentification data ? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9a3c551ca9c58113 * Best Java Profiler? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a0ac5813a0001f52 ========================================================================== TOPIC: Tomcat cache errors !!! and java.lang.IncompatibleClassChangeError http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/db8496e440d8e28f ========================================================================== == 1 of 1 == Date: Tues, Nov 23 2004 10:48 am From: <Jean Gillet> Hello, I fall on a a little delirious bug under tomcat 3.2.4 (ok it is a little oold, but it goes well... until there, more ever I don't have the choixe). If I call a JSP, tomcat creates a file java and a class in its WORK compared to my JSP. Using many time the same JSP, if I y re access, it fails and a Tomcat says to me: ______________________________________________ < h1>Error: 500</h1 > < h>Location: SITECODE/APPLI/section3.jsp</h2><b>Internal Servlet Error:</b><br><pre>javax.servlet.ServletException At org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508) At javax.servlet.http.HttpServlet.service(HttpServlet.java:853) At org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) At org.apache.tomcat.core.Handler.service(Handler.java:287)... root causes = java.lang.IncompatibleClassChangeError At _ 00030_00030_0005fSITECODE.APPLI_00031.JSP._0002f_00030_00030_0005fSITECODE_0002fAPPLI_00031_0002fJSP_0002fBAPPLI_00031Section_00033_000 èjspSection3_jsp_1._jspService...... Section3_jsp_1.java:92) At org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) At javax.servlet.http.HttpServlet.service(HttpServlet.java:853) At org.apache.jasper _______________________________________________________ When I look on the line 92 into the generated java class, the exception occurs on a Response.setContentType( ) in UTF8. I remove this the corresponding line into the JSP. It runs. In the afternoon, the problem appears again on the same JSP ... I re write the directive, it updates the JSP, so a java is generated and it runs. It happens like this many times ... Everything is like the Tomcat cache can manage only a given number of JSP / servlet, and when a limit is reached, it fails ... I hava a lot of JSP, in many dirs with long names (12 char for examples). I really need help ... I looked on java.sun.com / google, but I didn't see question of limits for tomcat (wih has 768 Mb for Xmx and Xms !!) Thks ========================================================================== TOPIC: JAVA graphic API http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5031f682b2f55a01 ========================================================================== == 1 of 5 == Date: Tues, Nov 23 2004 10:49 am From: <Jean Gillet> Hello, I'm searching a java free graphic API to draw chart / Bars / Lines for 2 series on a double (lef and right axis) ? ANy suggestion ? == 2 of 5 == Date: Tues, Nov 23 2004 11:06 am From: Chris Smith <[EMAIL PROTECTED]> <<Jean Gillet>> wrote: > I'm searching a java free graphic API to draw chart / Bars / Lines for 2 > series on a double (lef and right axis) ? > ANy suggestion ? JFreeChart. -- www.designacourse.com The Easiest Way To Train Anyone... Anywhere. Chris Smith - Lead Software Developer/Technical Trainer MindIQ Corporation == 3 of 5 == Date: Tues, Nov 23 2004 11:04 am From: Andrew Thompson <[EMAIL PROTECTED]> On Tue, 23 Nov 2004 19:49:58 +0100, <Jean Gillet> wrote: > I'm searching a java free .. I take it you mean '(written in) Java (and) free', rather than 'without Java/lacking Java'. [ ;-) ] >..graphic.. Best group for things 'graphic'.. <http://www.physci.org/codes/javafaq.jsp#cljg> >..API to draw chart / Bars / Lines <http://www.cs.uu.nl/wais/html/na-dir/computer-lang/java/gui/faq.html> Q7.3 >..for 2 series on a double (lef and right axis) ? I'm sorry, I do not understand that bit. Have a look over the specs. for JFreeChart and see if it fits your needs. HTH -- 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 5 == Date: Tues, Nov 23 2004 11:47 am From: <Jean Gillet> No I don't like java ;D .... lol "Andrew Thompson" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > On Tue, 23 Nov 2004 19:49:58 +0100, <Jean Gillet> wrote: > >> I'm searching a java free .. > > I take it you mean '(written in) Java (and) free', rather than > 'without Java/lacking Java'. [ ;-) ] > >>..graphic.. > > Best group for things 'graphic'.. > <http://www.physci.org/codes/javafaq.jsp#cljg> > >>..API to draw chart / Bars / Lines > > <http://www.cs.uu.nl/wais/html/na-dir/computer-lang/java/gui/faq.html> > Q7.3 > >>..for 2 series on a double (lef and right axis) ? > > I'm sorry, I do not understand that bit. Have a look over the > specs. for JFreeChart and see if it fits your needs. > > HTH > > -- > 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 == 5 of 5 == Date: Tues, Nov 23 2004 12:06 pm From: Oscar kind <[EMAIL PROTECTED]> Jean Gillet wrote: > I'm searching a java free graphic API to draw chart / Bars / Lines for 2 > series on a double (lef and right axis) ? > ANy suggestion ? jFreeChart and Chart2D (both licenced under the LGPL). I haven't used the latter in quite some time though. Both can draw several charts in one image, but I don't know if that is what you are looking for. You'll have to find that out for yourself if they satisfy your requirements. The links: - http://www.jfree.org/jfreechart/ - http://chart2d.sourceforge.net/ -- 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: opinion on coding standard http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1f96751a1d317c1a ========================================================================== == 1 of 5 == Date: Tues, Nov 23 2004 10:54 am From: "sks" <[EMAIL PROTECTED]> > Normally the advice is to put up with coding standards, even if they aren't > what you would choose, even if they are a bit daft, because the consistency > is worth more than whatever the advantages of your personal style might be. > > But one does have to draw the line somewhere - some coding standards are > just so bad that it's reasonable to call them "wrong". > > The worst of all is the requirement to have hard tab characters in source > files - if someone asks me to do that I just find another job. I think using multiple spaces instead of tabs is completely ridiculous. == 2 of 5 == Date: Tues, Nov 23 2004 10:51 am From: kaeli <[EMAIL PROTECTED]> In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] enlightened us with... > > "John" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > John wrote: > > > Our project leader is making the decision to enforce coding standards > > > through the use of our IDE. While standards and consistency are > > > beneficial, I'm unhappy with one limitation of our IDE (IntelliJ IDEA > > > 4.5), namely its inability to preserve extra spaces. I've found that > > > a judicious use of spacing can often make code much easier to read and > > > consequently to understand. Below is an example of before and after > > > formatting. For me, the formatted code seems to blur together and is > > > much harder to read. I'm wondering what opinions others might have. > > > > That's why s/he is the boss and you are not. Learn to live with it. > It isn't all that bad. Stop whining. You'll just make her mad. Oh, and god forbid we make the PM MAD... Methinks YOU are one of those bad bosses these people dislike so much. (or a blatant troll) If a PM gets angry b/c team members have real reasons for wanting to do things differently, s/he is a complete moron who deserves to be fired on the spot. No one likes a micromanager who is so incompetant and egotistical, s/he has to have power trips about stupid things. It's worse when those stupid things actually make team members have a harder time of it. A good boss makes life EASIER for their team, not harder. A good boss listens to suggestions that have a logical basis, weighs the pros and cons, and decides how best to do things based on logic and business needs, not their itty bitty ego. If someone is this much of an ass, it would do ALL the employees good to get the hell out of Dodge before they go down with them. These kinds of PMs love to blame their mistakes on the underlings. / have been team member and PM in my time, sometimes both at once -- -- ~kaeli~ Well, aren't we just a flipping ray of sunshine? http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace == 3 of 5 == Date: Tues, Nov 23 2004 12:27 pm From: Eric Sosman <[EMAIL PROTECTED]> kaeli wrote: > [...] > If a PM gets angry b/c team members have real reasons for wanting to do > things differently, s/he is a complete moron who deserves to be fired on the > spot. Good grief, kaeli! What in the world makes you think that "real reasons" never conflict with each other? Methinks the person unable to perceive conflict is the "complete moron," not the person who seeks a resolution. > No one likes a micromanager who is so incompetant and egotistical, s/he has > to have power trips about stupid things. It's worse when those stupid things > actually make team members have a harder time of it. A good boss makes life > EASIER for their team, not harder. A good boss listens to suggestions that > have a logical basis, weighs the pros and cons, and decides how best to do > things based on logic and business needs, not their itty bitty ego. > > If someone is this much of an ass, it would do ALL the employees good to get > the hell out of Dodge before they go down with them. These kinds of PMs love > to blame their mistakes on the underlings. Most people outgrow the "Terrible Twos" eventually. Hang in there. -- [EMAIL PROTECTED] == 4 of 5 == Date: Tues, Nov 23 2004 12:57 pm From: [EMAIL PROTECTED] (Brock Heinz) Hi John, This document is somewhat the 'authority' on coding standards. http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html Most IDE's try to conform this as well. Brock [EMAIL PROTECTED] (John) wrote in message news:<[EMAIL PROTECTED]>... > Our project leader is making the decision to enforce coding standards > through the use of our IDE. While standards and consistency are > beneficial, I'm unhappy with one limitation of our IDE (IntelliJ IDEA > 4.5), namely its inability to preserve extra spaces. I've found that > a judicious use of spacing can often make code much easier to read and > consequently to understand. Below is an example of before and after > formatting. For me, the formatted code seems to blur together and is > much harder to read. I'm wondering what opinions others might have. > > > > Original code fragment: > > private FormSetupComponent formSetupComponent; > private FormSetupProperties formSetupProperties; > private FormProperties formProperties; > private MsgManager msgManager; > private AbstractProperties selectedProperties; > private ResourceBundleHelper mBundle; > > edgeBoundary[0] = createBoundaryLine(x, y, x, y + h); > edgeBoundary[1] = createBoundaryLine(x + w, y, x + w, y + h); > edgeBoundary[2] = createBoundaryLine(x, y + h, x + w, y + h); > edgeBoundary[3] = createBoundaryLine(x, y, x + w, y); > > > With extra spaces removed: > > private FormSetupComponent formSetupComponent; > private FormSetupProperties formSetupProperties; > private FormProperties formProperties; > private MsgManager msgManager; > private AbstractProperties selectedProperties; > private ResourceBundleHelper mBundle; > > edgeBoundary[0] = createBoundaryLine(x, y, x, y + h); > edgeBoundary[1] = createBoundaryLine(x + w, y, x + w, y + h); > edgeBoundary[2] = createBoundaryLine(x, y + h, x + w, y + h); > edgeBoundary[3] = createBoundaryLine(x, y, x + w, y); == 5 of 5 == Date: Tues, Nov 23 2004 2:15 pm From: Scott Ellsworth <[EMAIL PROTECTED]> In article <[EMAIL PROTECTED]>, kaeli <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > enlightened us with... > > > > "John" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > John wrote: > > > > Our project leader is making the decision to enforce coding standards > > > > through the use of our IDE. While standards and consistency are > > > > beneficial, I'm unhappy with one limitation of our IDE (IntelliJ IDEA > > > > 4.5), namely its inability to preserve extra spaces. I've found that > > > > a judicious use of spacing can often make code much easier to read and > > > > consequently to understand. Below is an example of before and after > > > > formatting. For me, the formatted code seems to blur together and is > > > > much harder to read. I'm wondering what opinions others might have. > > > > > > That's why s/he is the boss and you are not. Learn to live with it. > > It isn't all that bad. Stop whining. You'll just make her mad. > > Oh, and god forbid we make the PM MAD... Often not a good idea. I try to only make PMs angry when there is something worth winning. An actual bad decision that will make the product worse, or add to work for no benefit, for example. Scarfling around on a coding standard that my IDE enforces is just not worth the energy. > Methinks YOU are one of those bad bosses these people dislike so much. (or a > blatant troll) > If a PM gets angry b/c team members have real reasons for wanting to do > things differently, s/he is a complete moron who deserves to be fired on the > spot. Perhaps. Perhaps the PM has their own reasons, which might well make sense. For example, on every project where someone flatly refused to go along with the coding standards, there was someone who would reformat and check in other people's code with no changes other than the format. This makes it hard as hell to find the actual changes in the file. Even better, they would reformat any file they worked on, using an automated tool, and check in real changes along with reformatting. Guess who the villain was? Got it in one - the person who felt that their coding standard was just better, and that if people only saw it, they would convert. A good PM only puts up the minimal required standard, but their perception may well differ with yours. If they respond to valid complaints, such as "the IDE will not autoformat, so we have to spend valuable hours doing it ourselves", rather than the specious "I do not like it", then they are doing their job. > No one likes a micromanager who is so incompetant and egotistical, s/he has > to have power trips about stupid things. It's worse when those stupid things > actually make team members have a harder time of it. A good boss makes life > EASIER for their team, not harder. A good boss listens to suggestions that > have a logical basis, weighs the pros and cons, and decides how best to do > things based on logic and business needs, not their itty bitty ego. Perhaps the PM did make that decision, and it went against the original poster. Having been in a coding standard war, I would not be eager to get in another. I might well decide that a reasonably rigorous coding standard was the only way to prevent it. At the moment, I am working with cool people who do not do garbage like that, and we have no coding standards, but this is the exception. Scott ========================================================================== TOPIC: javax.xml.Parsers location http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a06eb697f944bccf ========================================================================== == 1 of 1 == Date: Tues, Nov 23 2004 11:04 am From: [EMAIL PROTECTED] (gizzy truong) "Sympatico Member" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > I believe at the Apache website but I can't remember the url. > > "Gibakou" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Does anybody know where could I download the javax.xml.parsers package > > from? I'm new in the java-xml field... You may get it from Sun web site ========================================================================== TOPIC: TOMCAT JSP deployment http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a8d0740af8e16287 ========================================================================== == 1 of 1 == Date: Tues, Nov 23 2004 11:09 am From: Chris Smith <[EMAIL PROTECTED]> Jim <[EMAIL PROTECTED]> wrote: > Anyone know how I can set up my website so that if i visit, > > http://www.123.org > > I will be able to see, > http://www.123.org/myapp > > Right now, the only way I can get to myapp, which starts with a > index.jsp is by appending on the directory. You can either set up Apache to redirect, or you can change the location of your web application. The first is Apache configuration, and off- topic in this newsgroup. The second can be done by adding an explicit Context element to Tomcat's server.xml; see the tomcat docs for the attributes and such of that element and that config file. -- www.designacourse.com The Easiest Way To Train Anyone... Anywhere. Chris Smith - Lead Software Developer/Technical Trainer MindIQ Corporation ========================================================================== TOPIC: Is JDK5.0 stable enough? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/db7b3d1aa35d24fb ========================================================================== == 1 of 3 == Date: Tues, Nov 23 2004 10:42 am From: Oscar kind <[EMAIL PROTECTED]> metfan <[EMAIL PROTECTED]> wrote: > > Could it be used for production environment now? Thanks. The JDK 5.0 doesn't exist. I'll assume you mean the JDK 1.5.0, baved on the Java 5 specification... IMHO, even the beta could be used for production (but that's hard to explain to your boss). -- 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 == 2 of 3 == Date: Tues, Nov 23 2004 11:36 am From: Chris Smith <[EMAIL PROTECTED]> Oscar kind <[EMAIL PROTECTED]> wrote: > The JDK 5.0 doesn't exist. I'll assume you mean the JDK 1.5.0, baved on > the Java 5 specification... You've picked up some bad information somewhere. There is a JDK 5.0, and it's the same thing as the JDK 1.5.0 with a different name. See, for example, http://java.sun.com/j2se/1.5.0/download.jsp where Sun says "JDK 5.0 source code is available for researchers and others interested in exploring the details of the JDK." Clearly, Sun considers it just fine to refer to the JDK as version 5.0. -- www.designacourse.com The Easiest Way To Train Anyone... Anywhere. Chris Smith - Lead Software Developer/Technical Trainer MindIQ Corporation == 3 of 3 == Date: Tues, Nov 23 2004 2:04 pm From: Scott Ellsworth <[EMAIL PROTECTED]> In article <[EMAIL PROTECTED]>, metfan <[EMAIL PROTECTED]> wrote: > Could it be used for production environment now? Thanks. I have been holding off on that for a number of reasons. One big one for us is the status of the Mac 1.5 port - it will likely ship with their next OS release, which is not due for a number of months. By not deploying to it, we make sure that our devs do not check in code that requires it. (Devs can use any JDK or compiler they like, but the nightlies run against Sun 1.4.x right now. We do a test build against 1.5 to make sure we do not accidentally use any 1.5 syntax.) That said, our limited testing has been very positive. There are new bugs, but they have not affected our code base. Scott ========================================================================== TOPIC: Java Career Questions http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b2c43e3a96c2d70e ========================================================================== == 1 of 3 == Date: Tues, Nov 23 2004 11:11 am From: Chris Smith <[EMAIL PROTECTED]> J.Storta <[EMAIL PROTECTED]> wrote: > I am trying to find out a few things from people that do Java > development for a living. > > 1) What, if any, IDE do you use? NetBeans? Eclipse? Other? Eclipse, mainly. > 2) What do you spend most of your time doing? Debugging existing > code? Writing new code? Debugging. Anyone who does both will inevitable spend the majority of time debugging. > 3) Aside from the knowing the language itself, what would you say is > the most important skill to have as a Java Developer? If I had to pick one, it would definitely be a knack for good OO modeling. -- www.designacourse.com The Easiest Way To Train Anyone... Anywhere. Chris Smith - Lead Software Developer/Technical Trainer MindIQ Corporation == 2 of 3 == Date: Tues, Nov 23 2004 12:06 pm From: Collin VanDyck <[EMAIL PROTECTED]> J.Storta wrote: > I am just getting started in Java programming. > 3) Aside from the knowing the language itself, what would you say is > the most important skill to have as a Java Developer? Trust that it is not the compiler's fault, but rather your own. == 3 of 3 == Date: Tues, Nov 23 2004 12:10 pm From: kjc <[EMAIL PROTECTED]> Get good solid OO principles under your belt first. In other words, what i'm saying is, learn Smalltalk first. J.Storta wrote: > I am just getting started in Java programming. > > I am trying to find out a few things from people that do Java > development for a living. > > 1) What, if any, IDE do you use? NetBeans? Eclipse? Other? > > 2) What do you spend most of your time doing? Debugging existing > code? Writing new code? > > 3) Aside from the knowing the language itself, what would you say is > the most important skill to have as a Java Developer? > > Thanks. ========================================================================== TOPIC: get MBeanServer remotly http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/987c2b9ab1223dbd ========================================================================== == 1 of 1 == Date: Tues, Nov 23 2004 11:37 am From: [EMAIL PROTECTED] (jajoo) Hi to all of you, is anyone any idea haw to get (javax.management.)MBeanServer from another java VM. I have JBOSS running with registered Mbeans on it. I have test running separately on another VM. How to get Jboss's MbeanServer from my test and to be able to invoke methods on registered Mbeans. 10x to everyone thet even read this :) jajoo ========================================================================== TOPIC: request.getHeader - referer http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/810ddbb36c621b1f ========================================================================== == 1 of 1 == Date: Tues, Nov 23 2004 11:42 am From: [EMAIL PROTECTED] (Mark Fitz) "Murray" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > "sks" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > > Well it's referer lower case. > > > > But it only works if you've clicked a link. If you type something in at > the > > url bar the referer will always be null. > > Or if your browser/firewall chooses not to set the referer header (depending > on security settings) Thanks guys, this was indeed the case - I had installed Zone Alarm Pro (trial)which was screwing up the header information... what a headache trying to figure this one out! ========================================================================== TOPIC: GridBagLayout: window resizing problem http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c8cd62ee9cb3f253 ========================================================================== == 1 of 1 == Date: Tues, Nov 23 2004 12:14 pm From: "Filip Larsen" <[EMAIL PROTECTED]> Stéphanie Vanhove wrote > I have a JPanel on which I have a square drawing. Now I added this panel to > a gridbaglayout, along with some buttons and a list. > [...] > I want to be able to resize the window, without the panel disappearing, but > I also want the drawing in the panel to appear in the center at all times You don't specify how your JPanel draws that square, but if you do it from your own code, you can change that code to support drawing the square centered. If the square has a fixed size independent of the JPanel size, you should offset the drawing Math.max(0,(panel.width-square.width)/2) in x and similar in y. Regards, -- Filip Larsen ========================================================================== TOPIC: Telling the truth at interviews for Java positions http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b3bba249c109316a ========================================================================== == 1 of 2 == Date: Tues, Nov 23 2004 12:16 pm From: Chris Smith <[EMAIL PROTECTED]> lyallex <[EMAIL PROTECTED]> wrote: > I have just escaped from a rather unpleasent organization here in the > UK. At both the interviews I attended I made it quite plain that I was > after a senior Java developers position. I even made my position clear > to the MD. At all times I was assured that the position I was applying > for WAS a senior position and the salary appeared to reflect this. > > In the four and a half months I endured this nightmare I did not > recieve a single project that was anywhere near what I would call > senior. I wonder if you and your employer simply didn't agree on what "senior" really means. I don't really look at the world as being composed of "senior" work and "junior" work, so if I told you I wanted a senior developer, it would just mean that I didn't want to train someone up to a productive level on the job. It would not necessarily mean that I have inherently difficult tasks that I need someone to perform. > In fact such projects did not appear to exist in the > organization full stop. That seems to confirm my suspicion that you weren't lied to, but simply misunderstood the work that existed at the organization. -- www.designacourse.com The Easiest Way To Train Anyone... Anywhere. Chris Smith - Lead Software Developer/Technical Trainer MindIQ Corporation == 2 of 2 == Date: Tues, Nov 23 2004 12:54 pm From: lyallex <[EMAIL PROTECTED]> On 23 Nov 2004 09:02:42 -0800, [EMAIL PROTECTED] (Jean Lutrin) wrote: >> I'd be most interested to hear if others have had >> similar experiences. > >Hi there, > >Answer slightly off-c.l.j.p.-topic, but as you ask... > >I have a job right now (should be working btw, not >posting to Usenet ;) but still took the time to go >to an interview last week. The company was a small >company (around 60 people), mostly employees and >some freelance (I'm a freelance btw). snip >And the guy, the main "Java architect", says to me: "Hey, >what if I say to you that we have two Unix admins, one of >them is really bad and we consider firing him, would >you be interested ?" Yes, it's all a bit strange really isn't it, you go for one job and they offer you another. Still at least they made it clear what they were offering you. Good luck and thanks for the reply. Cheers Lyallex ========================================================================== TOPIC: Facts and Fallacies of Software Engineering http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d663c4795a28c937 ========================================================================== == 1 of 1 == Date: Tues, Nov 23 2004 12:36 pm From: Casey Hawthorne <[EMAIL PROTECTED]> Interesting book: Facts and Fallacies of Software Engineering by Robert L. Glass >http://www.amazon.com/exec/obidos/tg/detail/-/0321117425/qid=1100831838/sr=1-1/ref=sr_1_1/002-2804743-7762466?v=glance&s=books Some of the more interesting and amazing "facts": Fact 19: Modification of reused code is particularly error-prone. If more than 20 to 25% of a component is to be revised, it is more efficient and effective to rewrite it from scratch. Fact 21: For every 25% increase in problem complexity, there is a 100% increase in the complexity of the software solution. That's not a condition to try to change (even though reducing complexity is always a desirable thing to do); that's just the way it is. - Why is reuse-in-the-large unsuccessful? (Because complexity magnifies diversity.) - Why are there so many different correct approaches to designing the solution to a problem? (Because the solution space is so complex.) Fact 26: When moving from requirements to design, there is an explosion of "derived requirements" (the requirements for a particular design solution) caused by the complexity of the solution process. The list of these design requirements is often 50 times longer than the list of original requirements. Fact 30: COBOL is a very bad language, but all the others (for business data processing) are so much worse. Fact 33: Even if 100% test coverage were possible, that is not sufficient criterion for testing. Roughly 35% of software defects emerge from missing logic paths (missing requirements), and another 40% from the execution of a unique combination of logic paths (Combinatorics). They will not be caught by 100% coverage. Fact 42: Enhancement is responsible for roughly 60% of software maintenance costs. Error correction is roughly 17%. Therefore, software maintenance is largely about adding new capability to old software, not fixing it. - The 60/60 rule: 60% of software's dollar is spent on maintenance, and 60% of that maintenance is enhancement. Enhancing old software is, therefore, a big deal. -- Regards, Casey ========================================================================== TOPIC: Reading huge text files one line at a time.... http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5297862f47d197a6 ========================================================================== == 1 of 1 == Date: Tues, Nov 23 2004 12:52 pm From: [EMAIL PROTECTED] (Brock Heinz) "John C. Bollinger" <[EMAIL PROTECTED]> wrote in message > > BufferedReader >> try { > > this.finalize(); > > Even though I'm not very keen to analyze your code, I can't help > commenting on this. You should _never_ invoke an object's finalize() > method from user code. It is for the use of the GC. If you have > cleanup code that you want to execute periodically then put it in its > own method; it is OK for finalize() to invoke such a method, if need be. I had considered this, but since the app is running in a J2EE server, I wasn't sure what the consequences of calling System.gc() would be. Really - by me programatically executing any type of garbage collection, I am really just placing a bandaid over a gash. > (It is better, however, to not rely on the finalizer for anything.) > At best, putting such code into finalize() is potentially confusing. > Overriding finalize() at all has an effect on GC of instances of the > relevant class, although how serious the implications are will depend on > a wide variety of factors. > > > } catch (Throwable t) { > > log.warn("Could not finalize - keep on reading anyhow"); > > } > > And I have to comment on that, too. It's almost never a good idea to > write such generic catch blocks. I agree, but the the finalize() method throws 'Throwable' :) This is an instance where regardless of any exceptions occurred from trying to 'finalize', I wanted to stay within the for block and continue to process the messages. > That will catch all manner or checked > and unchecked Exceptions, as well as all Errors, and ignore them. At > the very, very least you should log the Throwable's message. Much > better, however, is to only catch the specific exceptions that you have > reason to expect may be thrown. Again, I agree. I didn't send you the entire method. The try/catch block that I had pasted into my post was nested in a larger try/catch where I would catch specific exceptions and I could react accordingly. >You can be reasonably confident that > you know how to handle those appropriately, but you have no reason for > confidence that you know how to handle any other Throwable. > > > } > > } > > reader.close(); > > > > > > Does anyone see any problems with reading the files one line at a time > > in this manner (using the readLine() method)? I seem to hit an > > OutofMemoryException right around line 315,000. Is the readLine() > > method interally not efficient to use? > > That would be an OutOfMemoryError. If you are getting one then it > probably means that your program is caching objects (messages, strings, > something) somehow. It might, however, mean that your input is corrupt, > and at some point contains a very long sequence of bytes without a line > delimiter -- the system could be trying to construct a multi-megabyte > String object or JMS message. After more researching into the problem, I finally cornered the issue. The true source of the problem wasn't me validating / parsing the file. The source of the problem was in the third party messaging framework we were using. > > In the archives I've seen the approach of reading chunks of the file > > with a buffer, and then determining each line by seaching for carriage > > returns or line breaks. Anyone have any thoughts on this? > > Your BufferedReader does that for you already. > > > John Bollinger > [EMAIL PROTECTED] Thanks for the feedback, John! Brock ========================================================================== TOPIC: Query about compression and decompression in Java using java.util.zip package http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/94b99410cf502ba8 ========================================================================== == 1 of 1 == Date: Tues, Nov 23 2004 12:56 pm From: "Filip Larsen" <[EMAIL PROTECTED]> yogesh wrote > [...] > I wanted to know what is the logical explanation of the sequence of > the statements marked below > > GZIPOutputStream gz = new GZIPOutputStream(fos); > ObjectOutputStream oos = new > ObjectOutputStream(gz); > oos.writeObject(sarah); With standard Java I/O one or more streams are connected into a kind of pipeline of processing. You put data into one end which, after processing (typically including buffering and modification), appear in the other end in a file, on network socket, in byte array buffer, or similar. In your case, you want the object stream data to be compressed before it is placed in a file, hence you must have the pipeline: ObjectOutputStream -> GZIPOutputStream -> FileOutputStream. When you write an object to the ObjectOutputStream it will emit a sequence of bytes that are zipped by the GZIPOutputStream which, when enought bytes have been received, will emit a sequence of zipped bytes to the FileOutputStream. When you close or flush the ObjectOutputStream in the end, the OutputStreams of your pipeline will flush any buffered data they might contain. > It seems to me that at the time the GZIPOutputStream is created, it is > empty and the then the empty stream is passed on to ObjectOutputStream > and then objects are written into the stream. Think of it as a pipeline where data you put in may appear right away in the other end. The OutputStreams are meant to process data, not to store it as such. Of course, some streams have to buffer a bit of data in order to work or perform better, but in principle they do not store data. Regards, -- Filip Larsen ========================================================================== TOPIC: Enterprise Reporting Solution http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/38f07a10dcb1c6ea ========================================================================== == 1 of 1 == Date: Tues, Nov 23 2004 1:01 pm From: [EMAIL PROTECTED] (Brock Heinz) Check out Jasper: http://jasperreports.sourceforge.net/ There are also a number of designer tools to modify your Jasper templates. I believe there are a few posted at sourceforge as well. Brock [EMAIL PROTECTED] (Don) wrote in message news:<[EMAIL PROTECTED]>... > Hi There, > I am looking for an open source reporting tool that i can use to > generate the usual report formats. The tool must be robust and manage > high load. the tool will also be used bye quartz scheduler so it must > be able to handle many threads of execution. > Any help of suggestion on a tool that would suit would be great. ========================================================================== TOPIC: Multiple references to simple type-variables http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7f02fa2953a07b98 ========================================================================== == 1 of 2 == Date: Tues, Nov 23 2004 1:10 pm From: [EMAIL PROTECTED] (Jesper Sahner) Hi! When working with objects it is possible to have multiple references to the same object, e.g.: Point p,q; p=new Point(); q=p; p.x=5; System.out.println(p.x+" "+q.x); p and q refers to the same object, hence q.x has the same value as p.x. Is the same possible for simple type-variables? - and further: Is it possible to "map" an array of simple type variables {i,j,k} to an array-structure a[0]-a[2], so that changing e.g. a[0] changes 'i'? I am not looking for a solution involving heavy object-wrapping, because performance is essential for me. Regards, Jesper == 2 of 2 == Date: Tues, Nov 23 2004 1:23 pm From: "Boudewijn Dijkstra" <[EMAIL PROTECTED]> "Jesper Sahner" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Hi! > > When working with objects it is possible to have multiple references > to the same object, e.g.: > Point p,q; > p=new Point(); > q=p; > p.x=5; > System.out.println(p.x+" "+q.x); > > p and q refers to the same object, hence q.x has the same value as > p.x. Not just the same value, but also the same memory location. > Is the same possible for simple type-variables? No. Only with Objects. > - and further: Is it possible to "map" an array of simple type > variables {i,j,k} to an array-structure a[0]-a[2], so that changing > e.g. a[0] changes 'i'? Do you want to map variables to an array or an array to variables? Or what do you want? ========================================================================== TOPIC: Have I got this completely wrong? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/70d49c0f295c6520 ========================================================================== == 1 of 1 == Date: Tues, Nov 23 2004 1:49 pm From: Raymond DeCampo <[EMAIL PROTECTED]> harry wrote: > All I want to do is to package a JAR file inside an EJB Jar file so that the > EJB class file methods can access the JAR's file's classes! > > There is no WEB-INF/lib directory as with web components so where exactly > should I place it & how to reference it from the EJB class methods? > > This only seems to work if I expand the JAR file inside the EJB classes > directory. > > Am I trying to do the impossible? completely off the mark? or wot? > > I have tried all sorts of combinations but all fail unless in exploded > format! > > please someone put me out of my misery! > Use the Class-Path attribute of the MANIFEST.MF file in the EJB jar just as if it were an application. HTH, Ray -- XML is the programmer's duct tape. ========================================================================== TOPIC: Acess to tomcat realm authentification data ? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9a3c551ca9c58113 ========================================================================== == 1 of 1 == Date: Tues, Nov 23 2004 1:49 pm From: Carsten Zerbst <[EMAIL PROTECTED]> Hello, I have an web app running in tomcat with my own jndi based login mechanism. Now I think about converting it to container managed security. But I need to access the jndi database in the JSPs. If I use the container managed solution, is it possible to access user id and credential from a JSP ? Thanks, Carsten ========================================================================== TOPIC: Best Java Profiler? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a0ac5813a0001f52 ========================================================================== == 1 of 1 == Date: Tues, Nov 23 2004 1:50 pm From: "Chris" <anon> I'm looking for a cheap or free profiler for use within the Eclipse environment. I used to use Eclipse Profiler, but it hasn't been updated in a while and it doesn't work correctly with Eclipse 3.0. Any suggestions? ======================================================================= 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
