Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartClient upgrade error

    Good day,
    I am trying to updated from 10.0 to 13.0 and I am getting an error once I try to access my site. Below is the stack trace from my tomcat server. from my investigation the error is thrown when the Smart Client call to the MySQL database is made. I have ensured that all the jar files are installed. Your assistance is appreciated

    === 2022-08-19 11:16:00,218 [ec-1] DEBUG SQLDataSource - DataSource 511 acquired SQLDriver instance 82425631 during initialization
    === 2022-08-19 11:16:00,406 [ec-1] INFO Velocity - Velocity Tools not available - using standard Velocity Contexts.
    === 2022-08-19 11:16:00,437 [ec-1] DEBUG SQLDataSource - About to clear SQLDriver state for DS instance 511
    === 2022-08-19 11:16:00,437 [ec-1] DEBUG SQLDataSource - About to clear SQLDriver state for DS instance 511
    === 2022-08-19 11:16:00,442 [ec-1] DEBUG SQLDataSource - About to clear SQLDriver state for DS instance 511
    === 2022-08-19 11:16:00,445 [ec-1] DEBUG PoolableDataSourceFactory - Cleared and passivated DataSource 511 of type 'company' with hashCode '1462149995'
    === 2022-08-19 11:16:00,451 [ec-1] DEBUG DataSourceDMI - Invocation threw exception
    java.lang.NoSuchMethodError: org.apache.velocity.context.Context.getKeys()[Ljava/lang/String;
    at com.isomorphic.velocity.ISCReferenceInsertionEventHandler.<init>(ISCReferenceInsertionEventHandler.java:78)
    at com.isomorphic.velocity.Velocity.evaluate(Velocity.java:368)
    at com.isomorphic.velocity.Velocity.evaluateAsString(Velocity.java:296)
    at com.isomorphic.velocity.Velocity.evaluateWithSnippets(Velocity.java:502)
    at com.isomorphic.sql.SQLDataSource.generateSQLStatement(SQLDataSource.java:1749)
    at com.isomorphic.sql.SQLDataSource.SQLExecute(SQLDataSource.java:1970)
    at com.isomorphic.sql.SQLDataSource.processRequest(SQLDataSource.java:449)
    at com.isomorphic.sql.SQLDataSource.executeFetch(SQLDataSource.java:394)
    at com.isomorphic.datasource.DataSource.execute(DataSource.java:2665)
    at com.isomorphic.application.AppBase.executeDefaultDSOperation(AppBase.java:658)
    at com.isomorphic.application.AppBase.executeAppOperation(AppBase.java:555)
    at com.isomorphic.application.AppBase.execute(AppBase.java:498)
    at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:3203)
    at za.co.adminonline.dmi.BaseDMI.fetch(BaseDMI.java:103)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.isomorphic.base.Reflection._invokeMethod(Reflection.java:581)
    at com.isomorphic.base.Reflection.adaptArgsAndInvoke(Reflection.java:896)
    at com.isomorphic.datasource.DataSourceDMI.execute(DataSourceDMI.java:434)
    at com.isomorphic.datasource.DataSourceDMI.execute(DataSourceDMI.java:64)
    at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:3188)
    at za.co.adminonline.datatier.BaseDataServices.executeQuery(BaseDataServices.java:257)
    at za.co.adminonline.datatier.CompanyDataServices.getCompany(CompanyDataServices.java:53)
    at org.apache.jsp.login_jsp._jspService(login_jsp.java:179)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at za.co.adminonline.servlet.SecurityCheck.doFilter(SecurityCheck.java:83)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at com.isomorphic.servlet.CompressionFilter._doFilter(CompressionFilter.java:263)
    at com.isomorphic.servlet.BaseFilter.doFilter(BaseFilter.java:91)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:522)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:1110)
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:785)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1425)
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:748)
    === 2022-08-19 11:16:00,471 [ec-1] ERROR CompressionFilter - BaseFilter Global Exception
    org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoSuchMethodError: org.apache.velocity.context.Context.getKeys()[Ljava/lang/String;
    at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:565)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:466)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at za.co.adminonline.servlet.SecurityCheck.doFilter(SecurityCheck.java:83)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at com.isomorphic.servlet.CompressionFilter._doFilter(CompressionFilter.java:263)
    at com.isomorphic.servlet.BaseFilter.doFilter(BaseFilter.java:91)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:522)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:1110)
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:785)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1425)
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:748)
    Caused by: javax.servlet.ServletException: java.lang.NoSuchMethodError: org.apache.velocity.context.Context.getKeys()[Ljava/lang/String;
    at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:909)
    at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:838)
    at org.apache.jsp.login_jsp._jspService(login_jsp.java:504)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443)
    ... 32 more
    Caused by: java.lang.NoSuchMethodError: org.apache.velocity.context.Context.getKeys()[Ljava/lang/String;
    at com.isomorphic.velocity.ISCReferenceInsertionEventHandler.<init>(ISCReferenceInsertionEventHandler.java:78)
    at com.isomorphic.velocity.Velocity.evaluate(Velocity.java:368)
    at com.isomorphic.velocity.Velocity.evaluateAsString(Velocity.java:296)
    at com.isomorphic.velocity.Velocity.evaluateWithSnippets(Velocity.java:502)
    at com.isomorphic.sql.SQLDataSource.generateSQLStatement(SQLDataSource.java:1749)
    at com.isomorphic.sql.SQLDataSource.SQLExecute(SQLDataSource.java:1970)
    at com.isomorphic.sql.SQLDataSource.processRequest(SQLDataSource.java:449)
    at com.isomorphic.sql.SQLDataSource.executeFetch(SQLDataSource.java:394)
    at com.isomorphic.datasource.DataSource.execute(DataSource.java:2665)
    at com.isomorphic.application.AppBase.executeDefaultDSOperation(AppBase.java:658)
    at com.isomorphic.application.AppBase.executeAppOperation(AppBase.java:555)
    at com.isomorphic.application.AppBase.execute(AppBase.java:498)
    at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:3203)
    at za.co.adminonline.dmi.BaseDMI.fetch(BaseDMI.java:103)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.isomorphic.base.Reflection._invokeMethod(Reflection.java:581)
    at com.isomorphic.base.Reflection.adaptArgsAndInvoke(Reflection.java:896)
    at com.isomorphic.datasource.DataSourceDMI.execute(DataSourceDMI.java:434)
    at com.isomorphic.datasource.DataSourceDMI.execute(DataSourceDMI.java:64)
    at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:3188)
    at za.co.adminonline.datatier.BaseDataServices.executeQuery(BaseDataServices.java:257)
    at za.co.adminonline.datatier.CompanyDataServices.getCompany(CompanyDataServices.java:53)
    at org.apache.jsp.login_jsp._jspService(login_jsp.java:179)
    ... 35 more

    #2
    You are using an older version of Velocity. See The Java Dependencies doc.

    Comment


      #3
      Thank you for your response, I have looked through the dependencies and found I am using velocity-engine-core version 2.3. Can you tell me what version am meant to be using, which folder in the smart client download contains that information

      Comment


        #4
        henkiemaritz,

        these are the docs. But 2.3 seems OK, this is also bundled with smartgwtee-eval-13.0p.zip in the lib folder (velocity-engine-core-2.3.jar).
        Do you have any other velocity related jars deployed?

        Best regards
        Blama

        Comment


          #5
          Issue has been fixed. There was an old velocity jar that was being referenced. Thank you for your help

          Comment

          Working...
          X