org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [/templates/watch.vm]

XWiki.org JIRA | Sorin Burjan | 6 years ago
  1. 0

    Steps to reproduce: -Login -watch space/page/wiki Refresh the page. You will see that the settings are not saved. By looking at the console you see something similar with: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [/templates/watch.vm] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:204) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:160) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1840) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:153) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:915) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'addWiki' in class com.xpn.xwiki.plugin.watchlist.WatchListPluginApi threw exception java.lang.UnsupportedOperationException at /templates/watch.vm[line 11, column 20] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:243) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:187) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.ASTElseIfStatement.render(ASTElseIfStatement.java:92) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:195) ... 40 more Caused by: java.lang.UnsupportedOperationException at java.util.AbstractList.add(AbstractList.java:148) at java.util.AbstractList.add(AbstractList.java:108) at com.xpn.xwiki.plugin.watchlist.WatchListStore.addWatchedElement(WatchListStore.java:464) at com.xpn.xwiki.plugin.watchlist.WatchListPluginApi.addWiki(WatchListPluginApi.java:218) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) ... 47 more 2011-05-30 13:02:44,355 [http://192.168.2.17:8080/xwiki/bin/skin/resources/js/scriptaculous/effects.js] ERROR c.x.x.w.XWikiAction - Connection aborted

    XWiki.org JIRA | 6 years ago | Sorin Burjan
    org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [/templates/watch.vm]
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Why SortedList.add() throws UnsupportedOperationException?

    Stack Overflow | 2 years ago | Aubin
    java.lang.UnsupportedOperationException
  4. 0

    abstractlist protobuf java

    Stack Overflow | 4 years ago | AxelF
    java.lang.UnsupportedOperationException

  1. sriharshakiran 1 times, last 7 months ago
  2. Dragos 5 times, last 8 months ago
  3. poroszd 1 times, last 8 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsupportedOperationException

    No message provided

    at java.util.AbstractList.add()
  2. Java RT
    AbstractList.add
    1. java.util.AbstractList.add(AbstractList.java:148)
    2. java.util.AbstractList.add(AbstractList.java:108)
    2 frames
  3. com.xpn.xwiki
    WatchListPluginApi.addWiki
    1. com.xpn.xwiki.plugin.watchlist.WatchListStore.addWatchedElement(WatchListStore.java:464)
    2. com.xpn.xwiki.plugin.watchlist.WatchListPluginApi.addWiki(WatchListPluginApi.java:218)
    2 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:616)
    4 frames
  5. Apache Velocity
    SimpleNode.render
    1. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
    2. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
    3. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
    4. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
    5. org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
    6. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
    7. org.apache.velocity.runtime.parser.node.ASTElseIfStatement.render(ASTElseIfStatement.java:92)
    8. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
    9. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
    9 frames
  6. org.xwiki.velocity
    DefaultVelocityEngine.evaluate
    1. org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:195)
    2. org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:160)
    2 frames
  7. com.xpn.xwiki
    XWikiAction.execute
    1. com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
    2. com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1840)
    3. com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:153)
    4. com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224)
    5. com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
    5 frames
  8. struts
    ActionServlet.doGet
    1. org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
    2. org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
    3. org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    4. org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    4 frames
  9. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    2 frames
  10. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
    2 frames
  11. com.xpn.xwiki
    ActionFilter.doFilter
    1. com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
    1 frame
  12. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    1 frame
  13. org.xwiki.wysiwyg
    ConversionFilter.doFilter
    1. org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
    1 frame
  14. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    1 frame
  15. com.xpn.xwiki
    XWikiDavFilter.doFilter
    1. com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
    1 frame
  16. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    1 frame
  17. org.xwiki.container
    SavedRequestRestorerFilter.doFilter
    1. org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
    1 frame
  18. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    1 frame
  19. org.xwiki.container
    SetCharacterEncodingFilter.doFilter
    1. org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
    1 frame
  20. Jetty Server
    SelectChannelEndPoint.run
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
    8. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
    9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    10. org.mortbay.jetty.Server.handle(Server.java:326)
    11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
    12. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:915)
    13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
    14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
    16. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    16 frames
  21. Jetty Util
    QueuedThreadPool$PoolThread.run
    1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
    1 frame