Author Topic: Java error after upgrading Queuemetrics to 1.7.1.13  (Read 4574 times)

sune

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
    • Email
Java error after upgrading Queuemetrics to 1.7.1.13
« on: November 30, 2011, 14:53:29 »
Hi All,


I have just done a upgrade on our Queuemetrics that runs on our trixbox PBX (CentOS). I have upgraded to latest version 1.7.1.13 using yum (yum update queuemetrics). Upgrade went smooth and no errors were shown. After the upgrade I get the following error when opening Queuemetrics in a browser (http://pbx:8080/queuemetrics redirected to http://pbx:8080/queuemetrics/sys_errore.jsp)


A problem occurred in QueueMetrics.

The following error occurred in the Transaction handler:

"-- Inner Exception -- - Exception: java.lang.NoSuchMethodError - Error: - java.util.ResourceBundle.containsKey(Ljava/lang/String;)Z - Stack trace: - java.lang.NoSuchMethodError: java.util.ResourceBundle.containsKey(Ljava/lang/String;)Z - at it.loway.tpf.common.containers.LDecoder.loadBundleForLocale(LDecoder.java:328) - at it.loway.app.queuemetrics.autenticazione.start.initOggettiContesto(start.java:108) - at it.loway.app.queuemetrics.autenticazione.start.doRun(start.java:38) - at it.loway.tpf.transaction.servlets.LowayTransactionController.runVerb(LowayTransactionController.java:276) - at it.loway.tpf.transaction.servlets.LowayTransactionController.serveRequest(LowayTransactionController.java:566) - at it.loway.tpf.transaction.servlets.LowayTransactionController.serveRequestWrapper(LowayTransactionController.java:387) - at it.loway.tpf.transaction.servlets.LowayTransactionController.doGet(LowayTransactionController.java:231) - at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) - at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) - at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) - at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) - at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) - at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) - at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) - at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) - at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) - at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) - at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) - at java.lang.Thread.run(Thread.java:595) - -- End Inner Exception -- - " 

System time when the error occurred: 2011-11-29.14:42:33


I have also tried the DBTest page to see if there were any issues with DB but this also gives an error. (http://pbx:8080/queuemetrics/dbtest redirects to http://pbx:8080/queuemetrics/dbtest/dbtestWizard1.jsp when clicking the "Start database check" button.


A problem occurred in QueueMetrics.

The following error occurred in the Transaction handler:

"[JSP] javax.servlet.ServletException - -- Inner Exception -- Exception: javax.servlet.ServletException Error: java.lang.NoSuchMethodError: java.util.ResourceBundle.containsKey(Ljava/lang/String;)Z Stack trace: javax.servlet.ServletException: java.lang.NoSuchMethodError: java.util.ResourceBundle.containsKey(Ljava/lang/String;)Z at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:865) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794) at org.apache.jsp.dbtest.dbtestWizard1_jsp._jspService(dbtestWizard1_jsp.java:472) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.NoSuchMethodError: java.util.ResourceBundle.containsKey(Ljava/lang/String;)Z at it.loway.tpf.common.containers.LDecoder.loadBundleForLocale(LDecoder.java:328) at it.loway.app.queuemetrics.autenticazione.start.initOggettiContesto(start.java:108) at org.apache.jsp.dbtest.dbtestWizard1_jsp._jspService(dbtestWizard1_jsp.java:121) ... 18 more -- End Inner Exception -- " 

System time when the error occurred: 2011-11-29.15:04:26


I have searched the QueueMetrics FAQ and found something that matches the error. I have tried the solution

-Shut down Tomcat (check with the Unix command ps fax that no instances of java keep running after the required shutdown and - in case they do - kill them manuall with killall -9 java).
-Clean up the Tomcat class cache - delete the entire content of the directory work that is usually located within the main Tomcat directory
-Make sure that there is one and only one QueueMetrics webapp in the entire Tomcat system (look below the webapps directory and delete accordingly)
-Restart Tomcat

But it does not change anything. The errors are the same and files in work directory are recreated.

Any help is greatly appreciated. Thank you.


Regards,
Sune Larsen

sune

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
    • Email
Re: Java error after upgrading Queuemetrics to 1.7.1.13
« Reply #1 on: December 06, 2011, 10:46:55 »
Hi All,

Anyone that can help here please ?

Regards,
Sune

coolname

  • Full Member
  • ***
  • Posts: 163
  • Karma: 0
    • View Profile
Re: Java error after upgrading Queuemetrics to 1.7.1.13
« Reply #2 on: December 18, 2011, 04:15:48 »
backup your db and reinstall

tsolaaa

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
    • View Profile
    • Email
Re: Java error after upgrading Queuemetrics to 1.7.1.13
« Reply #3 on: December 27, 2011, 18:21:10 »
Hey there,


We encountered a similar issue after upgrading to 1.7.1.13.

Diff your Web.XML file from the old version to the new version after the upgrade.

If you have a custom MYSQL password like we do, you will need to update the web.xml file to reflect that password.


Code: [Select]
<param-value>jdbc:mysql://localhost/queuemetrics?sessionVariables=sql_mode=''&amp;autoReconnect=true&amp;zeroDateTimeBehavior=convertToNull&amp;jdbcCompliantTruncation=false&amp;user=queuemetrics&amp;password=javadude</param-value>     <---- javadude should be changed to reflect whatever your MYSQL password is.

Hope this helps!

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Java error after upgrading Queuemetrics to 1.7.1.13
« Reply #4 on: January 18, 2012, 17:47:11 »

I think the issue is related to a method that is only available in Java6. So if you use RPM go for Java 6. We will use the baseline of Java 5 from the next version.



I have just done a upgrade on our Queuemetrics that runs on our trixbox PBX (CentOS). I have upgraded to latest version 1.7.1.13 using yum (yum update queuemetrics). Upgrade went smooth and no errors were shown. After the upgrade I get the following error when opening Queuemetrics in a browser (http://pbx:8080/queuemetrics redirected to http://pbx:8080/queuemetrics/sys_errore.jsp)