Author Topic: upgrading to 1.5.1  (Read 6912 times)

tonils

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 0
    • View Profile
    • Email
upgrading to 1.5.1
« on: February 24, 2009, 08:52:20 »
I have upgraded our demo installation from 1.5.0 to 1.5.1 and have some problems

I see the following error when accessing the detail of answered or unanswered calls

java.lang.NoSuchMethodError: java.lang.String.replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

-- Inner Exception --
Exception: java.lang.NoSuchMethodError
Error:
java.lang.String.replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;Stack trace:
java.lang.NoSuchMethodError: java.lang.String.replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
   at it.loway.app.queuemetrics.smartTableDecorators.popupUniqueIDRowDetailDecor.decorate(popupUniqueIDRowDetailDecor.java:41)
   at it.loway.tpf.presentation.html.SmartTable.render(Unknown Source)
   at org.apache.jsp.qm.results_005fcalls_005fok_jsp._jspService(results_005fcalls_005fok_jsp.java:626)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
   at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
   at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
   at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
   at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
   at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
   at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:534)
-- End Inner Exception --

I also see the following error when trying to access the agent page. The file sys_errore.jsp is in the root of the QueueMetrics directory and has read permissions....

HTTP Status 404 - /$WEBAPP/sys_errore.jsp

type Status report

message /$WEBAPP/sys_errore.jsp

description The requested resource (/$WEBAPP/sys_errore.jsp) is not available.
Apache Tomcat/5.0

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: upgrading to 1.5.1
« Reply #1 on: February 24, 2009, 10:43:48 »
Which version of Java are you running? looks like a missing dependency on the system Java libraries. Are you running Java 1.4?


tonils

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 0
    • View Profile
    • Email
Re: upgrading to 1.5.1
« Reply #2 on: February 24, 2009, 11:38:46 »
asterisk:/home/support # java -showversion
java version "1.4.2_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_11-b06)
Java HotSpot(TM) Client VM (build 1.4.2_11-b06, mixed mode)

OS is SuSE Linux Enterprise Server 10

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: upgrading to 1.5.1
« Reply #3 on: February 24, 2009, 15:13:35 »
Can you upgrade  to java 1.5? if you cannot, we are preparing a patch.

marcos

  • Loway
  • Full Member
  • *
  • Posts: 138
  • Karma: 3
    • View Profile
Re: upgrading to 1.5.1
« Reply #4 on: February 24, 2009, 15:47:33 »
Hi Tonils,
we now have a patch for this issue. You can download it from the QueueMetrics download page in the .tar.gz format.
After installing, please check the build number on the licence page: it should be 1283.
Thank you for your feedback.

Marco.

tonils

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 0
    • View Profile
    • Email
Re: upgrading to 1.5.1
« Reply #5 on: February 24, 2009, 18:14:50 »
Many thanks, now the detail pages are working

I still can not access the Agent page....

Tony

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: upgrading to 1.5.1
« Reply #6 on: February 25, 2009, 12:55:47 »
Do you see an error there as well? can you post the stack trace?

tonils

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 0
    • View Profile
    • Email
Re: upgrading to 1.5.1
« Reply #7 on: February 26, 2009, 06:38:39 »
There is no stack trace. I can sucsessfully login as an agent, but when I click on the "show calls for agent/1234" link, I get a page that only displays this message

HTTP Status 404 - /$WEBAPP/sys_errore.jsp

type Status report

message /$WEBAPP/sys_errore.jsp

description The requested resource (/$WEBAPP/sys_errore.jsp) is not available.
Apache Tomcat/5.0

log2009-02-26.txt says the following

StandardContext[/QueueMetrics]LowayTransactionController: [B426AE28BDF6B27B45C66982199CA7F9] Tempo totale esecuzione verbo 'qm_start': 54 ms
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Inizio classe it.loway.app.queuemetrics.autenticazione.caricaDatiIniziali
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Fine classe it.loway.app.queuemetrics.autenticazione.caricaDatiIniziali
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Inizio classe it.loway.app.queuemetrics.autenticazione.caricaLingueAmmesse
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Fine classe it.loway.app.queuemetrics.autenticazione.caricaLingueAmmesse
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Inizio classe it.loway.app.queuemetrics.oq.caricaCodeOutbound
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Fine classe it.loway.app.queuemetrics.oq.caricaCodeOutbound
StandardContext[/QueueMetrics]LowayTransactionController: [B426AE28BDF6B27B45C66982199CA7F9] Tempo totale esecuzione verbo 'qm_start2': 145 ms
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Inizio classe it.loway.app.queuemetrics.validazione.logon
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Fine classe it.loway.app.queuemetrics.validazione.logon
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Inizio classe it.loway.app.queuemetrics.autenticazione.effettuaLogOn
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] User 'agent/100' belongs to class '4'
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] User 'agent/100' owns keys 'AGENT CHPASSWD'
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Fine classe it.loway.app.queuemetrics.autenticazione.effettuaLogOn
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Inizio classe it.loway.app.queuemetrics.autenticazione.caricaDatiIniziali
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Fine classe it.loway.app.queuemetrics.autenticazione.caricaDatiIniziali
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Inizio classe it.loway.app.queuemetrics.oq.caricaCodeOutbound
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Fine classe it.loway.app.queuemetrics.oq.caricaCodeOutbound
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Inizio classe it.loway.app.queuemetrics.autenticazione.testNLicMod
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Checking CryFeatIniter... Override?false
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Check Completed OK
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Fine classe it.loway.app.queuemetrics.autenticazione.testNLicMod
StandardContext[/QueueMetrics]LowayTransactionController: [B426AE28BDF6B27B45C66982199CA7F9] Tempo totale esecuzione verbo 'qm_autentica': 49 ms
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Inizio classe it.loway.app.queuemetrics.liveData.changeAgentServer
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Fine classe it.loway.app.queuemetrics.liveData.changeAgentServer
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Inizio classe it.loway.app.queuemetrics.liveData.agentLive
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9]  Modo SQL - preset: '1' - partition: 'P000'
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9]  - Rewriting of Local/XXX@ext channels
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Fine classe it.loway.app.queuemetrics.liveData.agentLive
StandardContext[/QueueMetrics][B426AE28BDF6B27B45C66982199CA7F9] Inizio classe it.loway.app.queuemetrics.liveData.agentLiveExtendedInfo
StandardContext[/QueueMetrics]LowayTransactionController: [B426AE28BDF6B27B45C66982199CA7F9] [ERR] -- Inner Exception --
Exception: java.lang.NoSuchMethodError
Error:
java.lang.String.contains(Ljava/lang/CharSequence;)ZStack trace:
java.lang.NoSuchMethodError: java.lang.String.contains(Ljava/lang/CharSequence;)Z
        at it.loway.app.queuemetrics.liveData.agentLiveExtendedInfo.GetAgentQueues(agentLiveExtendedInfo.java:119)
        at it.loway.app.queuemetrics.liveData.agentLiveExtendedInfo.doRun(agentLiveExtendedInfo.java:74)
        at it.loway.tpf.transaction.servlets.LowayTransactionController.serveRequest(Unknown Source)
        at it.loway.tpf.transaction.servlets.LowayTransactionController.serveRequestWrapper(Unknown Source)
        at it.loway.tpf.transaction.servlets.LowayTransactionController.doPost(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:534)
-- End Inner Exception --


QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: upgrading to 1.5.1
« Reply #8 on: February 26, 2009, 09:02:50 »
Thanks.

marcos

  • Loway
  • Full Member
  • *
  • Posts: 138
  • Karma: 3
    • View Profile
Re: upgrading to 1.5.1
« Reply #9 on: February 26, 2009, 09:53:34 »
Hi Tonils,
unfortunately in the agent pages there was a different method call compatible only with Java 1.5 and I didn't found it when fixing the call detail pages.

I've replaced it with a 1.4 compatible one and is fixed on build 1286 you can download from the QueueMetrics download page in .tar.gz format.

Thank you again for your feedback.

tonils

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 0
    • View Profile
    • Email
Re: upgrading to 1.5.1
« Reply #10 on: February 26, 2009, 12:11:04 »
Fixed!!!

Many thanks for your speedy help!

Does QueueMetrics now require Java 1.5? if not, will this become a requirement in the short term?

Tony

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: upgrading to 1.5.1
« Reply #11 on: February 27, 2009, 10:02:12 »
No we want to keep supporting 1.4 for the moment, even if we deploy it on 1.5 usually.