Stacktrace on filtering some entries

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Stacktrace on filtering some entries

sodul
Our glu model does not has a uniform format. Notably for tomcat based app they have a list of web apps, and I show them in our customized dashboard view.

A 'tomcat' entry would look as such:
    {
      "agent": "agent01",
      "initParameters": {
        "pygluLocation": "http://artifactory/artifactory/glu-scripts/glu.py",
        "shn_bin": "shnbin-product1-46.tgz",
        "skeleton": "shn-apache-tomcat.tgz",
        "webapps": [
          {
            "contextPath": "product1",
            "war": "product1-0.4.0.war"
          },
          {
            "contextPath": "probe",
            "war": "probe-2.3.3.war"
          }
        ]
      },
      "metadata": {
        "product": "product1"
      },
      "mountPoint": "/product1",
      "script": "http://artifactory/artifactory/glu-scripts/GenericGluScript.groovy",
      "tags": ["frontend", "sharding", "webapps"]
    },

Other apps do not have a "webapps" list.

To show these webapps I have customized the dashboard view to include these fields:
    {
      "groupBy": "uniqueCountOrUniqueVal",
      "linkable": true,
      "name": "webapp",
      "orderBy": "asc",
      "source": "initParameters.webapps[0].war",
      "visible": true
    },
    {
      "groupBy": "uniqueCountOrUniqueVal",
      "linkable": true,
      "name": "webapp2",
      "orderBy": "asc",
      "source": "initParameters.webapps[1].war",
      "visible": true
    },

Now, when we click on a war file in the dashboard we get a stack trace. I do believe that it used to work and it might be a new bug in 5.3.0.

I have reproduced in both of our consoles running 5.3.0.


An unexpected error has occurred
Error 500: Internal Server Error
URI
/console/dashboard/redelta
Class
groovy.lang.MissingMethodException
Message
No signature of method: org.linkedin.glu.provisioner.core.model.PropertySystemFilterBuilder.getAt() is applicable for argument types: (java.lang.Integer) values: [0] Possible solutions: getAt(java.lang.String), putAt(java.lang.String, java.lang.Object), wait(), grep(), getClass(), wait(long)
Trace
   Line | Method
->>    1 | run              in Script1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|     92 | parse            in org.linkedin.glu.provisioner.core.model.SystemFilterBuilder
|    132 | setCustomFilter  in org.linkedin.glu.orchestration.engine.session.UserSessionImpl
|    181 | initUserSession  in org.linkedin.glu.console.filters.UserPreferencesFilters
|     52 | doCall . . . . . in org.linkedin.glu.console.filters.UserPreferencesFilters$__clinit__closure2_closure3_closure4
|    669 | handle           in org.eclipse.jetty.servlet.ServletHolder
|   1448 | doFilter . . . . in org.eclipse.jetty.servlet.ServletHandler$CachedChain
|    195 | doFilter         in grails.plugin.cache.web.filter.PageFragmentCachingFilter
|     63 | doFilter . . . . in grails.plugin.cache.web.filter.AbstractFilter
|   1419 | doFilter         in org.eclipse.jetty.servlet.ServletHandler$CachedChain
|    455 | doHandle . . . . in org.eclipse.jetty.servlet.ServletHandler
|    137 | handle           in org.eclipse.jetty.server.handler.ScopedHandler
|    575 | handle . . . . . in org.eclipse.jetty.security.SecurityHandler
|    231 | doHandle         in org.eclipse.jetty.server.session.SessionHandler
|   1075 | doHandle . . . . in org.eclipse.jetty.server.handler.ContextHandler
|    384 | doScope          in org.eclipse.jetty.servlet.ServletHandler
|    193 | doScope . . . .  in org.eclipse.jetty.server.session.SessionHandler
|   1009 | doScope          in org.eclipse.jetty.server.handler.ContextHandler
|    135 | handle . . . . . in org.eclipse.jetty.server.handler.ScopedHandler
|    276 | forward          in org.eclipse.jetty.server.Dispatcher
|    103 | forward . . . .  in     ''
|   1419 | doFilter         in org.eclipse.jetty.servlet.ServletHandler$CachedChain
|     55 | doFilter . . . . in org.apache.shiro.grails.SavedRequestFilter
|   1419 | doFilter         in org.eclipse.jetty.servlet.ServletHandler$CachedChain
|    449 | executeChain . . in org.apache.shiro.web.servlet.AbstractShiroFilter
|    365 | call             in org.apache.shiro.web.servlet.AbstractShiroFilter$1
|     90 | doCall . . . . . in org.apache.shiro.subject.support.SubjectCallable
|     83 | call             in     ''
|    383 | execute . . . .  in org.apache.shiro.subject.support.DelegatingSubject
|    362 | doFilterInternal in org.apache.shiro.web.servlet.AbstractShiroFilter
|    125 | doFilter . . . . in org.apache.shiro.web.servlet.OncePerRequestFilter
|   1419 | doFilter         in org.eclipse.jetty.servlet.ServletHandler$CachedChain
|    455 | doHandle . . . . in org.eclipse.jetty.servlet.ServletHandler
|    137 | handle           in org.eclipse.jetty.server.handler.ScopedHandler
|    533 | handle . . . . . in org.eclipse.jetty.security.SecurityHandler
|    231 | doHandle         in org.eclipse.jetty.server.session.SessionHandler
|   1075 | doHandle . . . . in org.eclipse.jetty.server.handler.ContextHandler
|    384 | doScope          in org.eclipse.jetty.servlet.ServletHandler
|    193 | doScope . . . .  in org.eclipse.jetty.server.session.SessionHandler
|   1009 | doScope          in org.eclipse.jetty.server.handler.ContextHandler
|    135 | handle . . . . . in org.eclipse.jetty.server.handler.ScopedHandler
|    255 | handle           in org.eclipse.jetty.server.handler.ContextHandlerCollection
|    154 | handle . . . . . in org.eclipse.jetty.server.handler.HandlerCollection
|    116 | handle           in org.eclipse.jetty.server.handler.HandlerWrapper
|    368 | handle . . . . . in org.eclipse.jetty.server.Server
|    489 | handleRequest    in org.eclipse.jetty.server.AbstractHttpConnection
|    942 | headerComplete . in     ''
|   1004 | headerComplete   in org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler
|    640 | parseNext . . .  in org.eclipse.jetty.http.HttpParser
|    235 | parseAvailable   in     ''
|     82 | handle . . . . . in org.eclipse.jetty.server.AsyncHttpConnection
|    628 | handle           in org.eclipse.jetty.io.nio.SelectChannelEndPoint
|     52 | run . . . . . .  in org.eclipse.jetty.io.nio.SelectChannelEndPoint$1
|    608 | runJob           in org.eclipse.jetty.util.thread.QueuedThreadPool
|    543 | run . . . . . .  in org.eclipse.jetty.util.thread.QueuedThreadPool$3
^    722 | run              in java.lang.Thread
Reply | Threaded
Open this post in threaded view
|

Re: Stacktrace on filtering some entries

frenchyan
Administrator
This syntax (webapps[x]) has never been supported in filters (I just checked the code). This is not a new change. You should submit a ticket as a new feature to handle this notation.

Thanks
Yan
Reply | Threaded
Open this post in threaded view
|

Re: Stacktrace on filtering some entries

sodul
https://github.com/pongasoft/glu/issues/248

Not a blocker or high priority.