Announcement

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

    Exception in developerConsoleOperations.jsp after SmartGWT upgrade

    Isomorphic,

    I upgraded to SmartClient Version: v12.0p_2019-10-09/Pro Deployment (built 2019-10-09) and noticed that the following exception is now logged when opening the SmartClient Developer Console.

    The exception is only logged when running in Super Dev Mode.

    The exception is not logged with SmartClient Version: v12.0p_2019-09-14/Pro Deployment (built 2019-09-14)

    Thanks

    Code:
    2019-10-09-15:34:28:050 -0400   WARN [qtp1144045209-95]
    org.apache.jasper.JasperException: An exception occurred processing JSP page /*/tools/developerConsoleOperations.jsp at line 77
    
    74:             }
    75:         }
    76:     } catch (Throwable e) {
    77:         rpc.sendFailure(req, e);
    78:     }
    79:
    80: } // for(requests)
    
    
    Stacktrace:
        at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:405)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:349)
        at org.eclipse.jetty.jsp.JettyJspServlet.service(JettyJspServlet.java:107)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
        ...
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
        at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:95)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
        at org.eclipse.jetty.server.Server.handle(Server.java:499)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
        at java.lang.Thread.run(Thread.java:748)
    Caused by: javax.servlet.ServletException: java.lang.Exception: send(rpcRequest, rpcResponse) called twice for the same rpcRequest.  Only one RPCResponse can be sent to an RPCRequest.
        at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:905)
        at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:834)
        at org.apache.jsp.*.tools.developerConsoleOperations_jsp._jspService(developerConsoleOperations_jsp.java:156)
        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:432)
        ... 53 more
    Caused by: java.lang.Exception: send(rpcRequest, rpcResponse) called twice for the same rpcRequest.  Only one RPCResponse can be sent to an RPCRequest.
        at com.isomorphic.rpc.RPCManager.send(RPCManager.java:650)
        at com.isomorphic.rpc.RPCManager.sendFailure(RPCManager.java:812)
        at com.isomorphic.rpc.RPCManager.sendFailure(RPCManager.java:828)
        at org.apache.jsp.*.tools.developerConsoleOperations_jsp._jspService(developerConsoleOperations_jsp.java:139)
        ... 56 more
    Last edited by stonebranch3; 9 Oct 2019, 13:11.

    #2
    Isomorphic,

    This appears to be related to the following exception in the smartgwt.log :

    Code:
    2019-10-15-11:27:08:340 -0400  ERROR [qtp511004129-53] Unable to instantiate class 'com.isomorphic.messaging.StreamDataSource' - check to make sure you have isomorphic_realtime_messaging.jar (and its dependencies: isomorphic_core_rpc.jar, isomorphic_js_parser.jar, commons-jxpath-1.3.jar, commons-pool-1.6.jar, commons-lang-2.6.jar, httpclient-4.5.5.jar, commons-vfs2-2.1.jar, poi-ooxml-schemas-3.17.jar, commons-io-2.5.jar, slf4j-api-1.7.25.jar, groovy-sql-2.4.13.jar, activation.jar, commons-cli-1.4.jar, log4j-1.2.17.jar, commons-collections-3.2.2.jar, xmlbeans-2.6.0.jar, velocity-1.7.jar, poi-3.17.jar, commons-collections4-4.1.jar, hibernate-validator-4.1.0.Final.jar, mail.jar, javax.persistence.jar, commons-codec-1.10.jar, commons-fileupload-1.3.3.jar, httpcore-4.4.9.jar, groovy-jsr223-2.4.13.jar, joda-time-2.9.9.jar, poi-ooxml-3.17.jar, validation-api-1.0.0.GA.jar, groovy-2.4.13.jar) in your CLASSPATH
    2019-10-15-11:27:08:341 -0400  ERROR [qtp511004129-53] Exception while attempting to load a DataSource
    java.lang.ClassNotFoundException: com.isomorphic.messaging.StreamDataSource
    This issue was reported here; however, this exception is still logged with the latest build (Oct 12) when not including the isomorphic_realtime_messaging.jar on the classpath.

    Thanks.



    Comment


      #3
      This will be fixed in tomorrow's (Oct 19) build. Took a bit of time to track down as there were multiple interlocking issues where a harmless error message (that you reported and linked to - thanks!) resulted in an unrelated change triggering a bug.

      Comment


        #4
        Isomorphic,

        The java.lang.ClassNotFoundException is no longer logged in the smartgwt.log after applying the latest SmartGWT build (Oct 29); however, we're still seeing the above org.apache.jasper.JasperException logged in our server log.

        Thanks.

        Comment


          #5
          The Jan 24 build will have a fix for this - at least for logging an error that is not the underlying cause. Please let us know what you're seeing - we will do further testing to ascertain whether the superdevmode produces a legit error for us to deal with. Thanks!

          Comment


            #6
            Hi Isomorphic,

            I applied the Jan 27 build and I still see the JasperException but it looks to have a different cause now.

            Thanks.

            Code:
            2020-01-28-09:58:58:572 -0500   WARN [qtp1657761402-94]
            org.apache.jasper.JasperException: java.lang.IllegalStateException: STREAM
                at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:585)
                at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:465)
                at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:405)
                at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:349)
                at org.eclipse.jetty.jsp.JettyJspServlet.service(JettyJspServlet.java:107)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
                at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
                at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
            ...
                at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
                at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
                at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
                at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
                at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
                at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
                at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
                at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
                at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
                at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
                at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
                at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:95)
                at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
                at org.eclipse.jetty.server.Server.handle(Server.java:499)
                at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
                at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
                at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
                at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
                at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
                at java.lang.Thread.run(Thread.java:748)
            Caused by: java.lang.IllegalStateException: STREAM
                at org.eclipse.jetty.server.Response.getWriter(Response.java:910)
                at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:109)
                at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:109)
                at org.springframework.security.web.context.SaveContextOnUpdateOrErrorResponseWrapper.getWriter(SaveContextOnUpdateOrErrorResponseWrapper.java:109)
                at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:109)
                at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:115)
                at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:108)
                at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:181)
                at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:120)
                at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75)
                at org.apache.jsp.***.tools.developerConsoleOperations_jsp._jspService(developerConsoleOperations_jsp.java:162)
                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:432)
                ... 53 more

            Comment


              #7
              This should be definitively fixed now (March 28, 2020 and onwards builds)

              Comment


                #8
                I verified that this is resolved with the following build:

                SmartClient Version: v12.0p_2020-04-01/Pro Deployment (built 2020-04-01)

                Thanks!

                Comment


                  #9
                  Excellent - thanks for verifying!

                  Comment


                    #10
                    Created dir: ****/generated/src
                    org.apache.jasper.JasperException: file:****/web/wafmodule/tools/skinTools/skinEditor.jsp(700,82) PWC6228: #{...} not allowed in a template text body.
                    org.apache.jasper.JasperException: PWC6228: #{...} not allowed in a template text body.

                    I am seeing the above error with today's download - not sure if it's related. Disabling tools solves it for now

                    Comment


                      #11
                      Originally posted by tmarshall View Post
                      Created dir: ****/generated/src
                      org.apache.jasper.JasperException: file:****/web/wafmodule/tools/skinTools/skinEditor.jsp(700,82) PWC6228: #{...} not allowed in a template text body.
                      org.apache.jasper.JasperException: PWC6228: #{...} not allowed in a template text body.

                      I am seeing the above error with today's download - not sure if it's related. Disabling tools solves it for now
                      When you report a problem, you need to specify which version of the product you're using. Note how the original poster reported his exact version in the first post.

                      Comment


                        #12

                        When you report a problem, you need to specify which version of the product you're using. Note how the original poster reported his exact version in the first post.
                        smartgwtee-12.1p - as mentioned downloaded on 7th April

                        Comment


                          #13
                          If you downloaded on the 7th, you'd have the build from 2020-04-05. We're not seeing any error like you reported. Are you running the Showcase? The sample project BuiltInDS? How do we reproduce the problem?

                          Comment

                          Working...
                          X