Arithmetic Exception
Hello Everyone, I am receiving what I interpret as a 'divide by zero' error - StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.ArithmeticException: / by zero at edu.uc.cohorts.util.Util.calcCohortAllotment(Util.java:123) at edu.uc.cohorts.util.CohortAssignmentDB.AssignCohort(CohortAssignmentDB.java:720) The class code for the string calcCohortAllotment is below - string = calcCohortAllotment string = (Ljava/lang/Integer;)Ljava/lang/String; name = calcCohortAllotment, descriptor=(Ljava/lang/integer;)Ljava/lang/String; class = edu/uc/cohorts/util/Util; name=calcCohortAllotment, descriptor=(Ljava/lang/integer;)Ljava/lang/String; string = ok Any assistance is greatly appreciated, Dwight
RE: [OT] Arithmetic Exception
Thanks for the response; I will check the code. Dwight At 08:52 AM 6/1/2007, you wrote: From: Dwight Farris [mailto:[EMAIL PROTECTED] Subject: Arithmetic Exception I am receiving what I interpret as a 'divide by zero' error - java.lang.ArithmeticException: / by zero at edu.uc.cohorts.util.Util.calcCohortAllotment(Util.java:123) Doctor, doctor, it hurts when I do this! This is an error in the code of your webapp; as good as Tomcat is, it can't correct basic programming errors in user code. The exception is telling you exactly where to look for the problem. You need to either check for zero before the divide, or catch the exception in your code, or configure an error page for the situation if you want to display something pretty to the end user. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Application startup error - TOMCAT 5.0.28 / 1.5
Hello All, One of my webApps is throwing the following exception; java.lang.ClassFormatError: Illegal UTF8 string in constant pool in class file org/hibernate/hql/ast/ErrorCounter I have checked the UTF8 strings; nothing has changed and the app has been running without issue. Any ideas are greatly appreciated Dwight - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Application startup error - TOMCAT 5.0.28 / 1.5
Thanks for your quick response, Barry; I will take a look into that. Dwight -Original Message- From: Propes, Barry L [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 25, 2007 8:19 AM To: Tomcat Users List Subject: RE: Application startup error - TOMCAT 5.0.28 / 1.5 almost sounds like you have to use the equivalent for a like a lquo; or some similar type marking in the proper xml file. Might look into it, even though nothing changed as you said. -Original Message- From: Dwight Farris [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 25, 2007 10:11 AM To: 'Tomcat Users List' Subject: Application startup error - TOMCAT 5.0.28 / 1.5 Hello All, One of my webApps is throwing the following exception; java.lang.ClassFormatError: Illegal UTF8 string in constant pool in class file org/hibernate/hql/ast/ErrorCounter I have checked the UTF8 strings; nothing has changed and the app has been running without issue. Any ideas are greatly appreciated Dwight - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SPAMMED: Additional JARs have been added
Hello Everyone, I am running TOMCAT 5.0.28 on a Mac OS X; JVM 1.5.0_06-112 platform; over a period of a week I have made some code changes to ensure the service will automatically restart if it stops. The following are some of the changes that I have made: TOMCAT now starts via launchd script which will watch it and restart it if it dies. For this to work I had to modify catalina.sh to not exit when it starts tomcat (1 removed the trailing from the 'start' options). If TOMCAT stops, launchd will just restart it right away. TOMCAT did stop at about 15:25 MST today. It restarted fine, but now the catalina.out file is being spammed with: INFO: Additional JARs have been added: 'commons-digester.jar' Mar 29, 2007 3:54:59 PM org.apache.catalina.core.StandardContext reload INFO: Reloading this Context has started Any assistance is greatly appreciated Dwight - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TOMCAT 5.0.28 stability
Hello Bob, I made the change in CATALINA_OPTS in catalina.sh; and I searched the Catalina.out file for exceptions with the following returning: java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Time Management workshop java.sql.SQLException: Illegal operation on empty result set... If I am not mistaken, there appears to be an issue with resource centered on data manipulation. I am continuously writing data from a data warehouse to a local MySQL data repository. I envision receiving a number of these types of exceptions; however I am beginning to believe TOMCAT 5.0 has an issue supporting the processes from MySQL. The premise of this assumption stems from the fact that I have the same scenario running on a TOMCAT 5.5 development platform and it will only stop running when the app fails on 5.0. Hope this makes some sense. Dwight If your webapp(s) really need a gig of memory, I sugggest changing CATALINA_OPTS CATALINA_OPTS=$CATALINA_OPTS -Xms1024m -Xmx1024m Looks like you are using unix/linux. Did you 'grep' for Exception and Error in catalina.out? The Cohorts getName() messages don't look familiar to me. Is there a Cohorts class in one or more of your webapp's? -Bob Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TOMCAT 5.0.28 stability
Thanks for your response; I will look into the SQL code Dwight -Original Message- From: gb1071nx [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 27, 2007 9:47 AM To: Tomcat Users List Subject: RE: TOMCAT 5.0.28 stability This is certainly not a tomcat stability problem, it's the application that has been coded poorly syntax to use near 's Time Management workshop You've got some SQL code somewhere that looks like this: String sql = INSERT INTO table (foo) VALUES(' + fooVar + '); And you're inserting data (fooVar variable contains) Manager's Time Management workshop Which results in SQL that looks like: INSERT INTO table (foo) VALUES('Manager's Time Management workshop') Notice how the single quote results in mal-formed SQL? -Original Message- From: Dwight Farris [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 27, 2007 11:34 AM To: 'Tomcat Users List' Subject: TOMCAT 5.0.28 stability Hello Bob, I made the change in CATALINA_OPTS in catalina.sh; and I searched the Catalina.out file for exceptions with the following returning: java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Time Management workshop java.sql.SQLException: Illegal operation on empty result set... If I am not mistaken, there appears to be an issue with resource centered on data manipulation. I am continuously writing data from a data warehouse to a local MySQL data repository. I envision receiving a number of these types of exceptions; however I am beginning to believe TOMCAT 5.0 has an issue supporting the processes from MySQL. The premise of this assumption stems from the fact that I have the same scenario running on a TOMCAT 5.5 development platform and it will only stop running when the app fails on 5.0. Hope this makes some sense. Dwight __ __ If your webapp(s) really need a gig of memory, I sugggest changing CATALINA_OPTS CATALINA_OPTS=$CATALINA_OPTS -Xms1024m -Xmx1024m Looks like you are using unix/linux. Did you 'grep' for Exception and Error in catalina.out? The Cohorts getName() messages don't look familiar to me. Is there a Cohorts class in one or more of your webapp's? -Bob __ __ Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]