Error 500

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

Error 500

Mencey Melgar
Hi, this is a little bit strange, my forum is working:
http://forums.6326.n7.nabble.com/

but there are some categories with the "Error 500"(try to click on "Off topic" or "Urban terror") It's strange because the others are working. Im not sure, but I think that those forums with the error are in "categories" and "forum" apps
Maybe this is due to my lastest naml customizations(in the forum's bottom)

Let me know if you have any solution or I have to undo those extras

Thanks
:) Helper
Reply | Threaded
Open this post in threaded view
|

Re: Error 500

Mencey Melgar
I found the solution, just a problem with "invisible users", but thanks anyway
:) Helper
Reply | Threaded
Open this post in threaded view
|

Re: Error 500

Mencey Melgar
Anyway I think I should explain this problem, I dont think people will investigate NAML up to that poin, but maybe you should know this little "problem".

What I was trying to do is to show the "Online People" widget("Users" at main forum) on the bottom of my forum.
So I created 2 new macros:
<macro name="footer_custom">
    <n.page_node.>
            <div style="margin-top: 1em;-webkit-border-radius: 6px;background-color: black;padding: 1em">
                <div style="font-weight: bold;font-family: 'Delius Swash Caps';font-size: 1.5em;color: white;text-align: left;padding-bottom: 0.5em;padding-left: 2em">
                    People Online
                </div>
                <div style="background-color: #1F1F1F;padding: 0.5em;-webkit-border-radius: 6px">
            <n.online_users_table.people_column_1/>
                </div>
            </div>
    </n.page_node.>
</macro>
(at line 8, "people_column_1):
<macro name="people_column_1">
    <n.set_visitor_online/>
    <n.user_column width="70%"/>
</macro>

I inserted "footer_custom" on "forum_footer":
<override_macro name="forum_footer">
    <n.page_node.>
        <div id="forum-footer" class="forum-footer nowrap">
            <t>Created by <t.author.owner.avatar_and_link/></t>
            <span class="weak-color" style="padding-left:.5em">|</span>
            <n.views show_text="true"/>
                </div>
    </n.page_node.>
    <n.footer_custom/>
</override_macro>

All seems ok, but here is the bug:

If we try to enter in a "view_standard_workgroup" page("Forum" app type), we will se the "Error 500" page(sorry, I couldn't do a screenshot):

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

More Details
Error 500
NAML exception in customized site: can't get visitor on cached page
        in visitor(nabble:reply.naml:421) - <n.if.visitor.is_site_admin> - public void nabble.view.web.template.ServletNamespace.visitor(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter) throws javax.servlet.ServletException
        in (nabble:reply.naml:422) - <t>
        in (nabble:reply.naml:422) - <t.location.page_node.subject/>
        in online_users(custom_tweak:online_users_table:2) - <n.online_users. include_invisible_users="[n.visitor.is_site_admin/]"> - public void nabble.view.web.template.NabbleNamespace.online_users(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
        in page_node(custom_tweak:footer_custom:2) - <n.page_node.> - public void nabble.view.web.template.NodePageNamespace.page_node(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
        in footer_custom(custom_tweak:forum_footer:19) - <n.footer_custom/>
        in forum_footer(nabble:view_mixed.naml:32) - <n.forum_footer/>
        in body(nabble:app.naml:78) - <n.body/>
        in comment(nabble:app.naml:196) - <n.comment.>
        in app_body_footer(nabble:app.naml:79) - <n.app_body_footer/>
        in body(nabble:app.naml:93) - <n.body/>
        in body(nabble:utilities.naml:10) - <n.body/>
        in nabble_html(nabble:utilities.naml:18) - <n.nabble_html> - public void nabble.view.web.template.ServletNamespace.nabble_html(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
        in html_impl(nabble:utilities.naml:4) - <n.html_impl>
        in html(nabble:app.naml:88) - <n.html>
        in do(nabble:utilities.naml:977) - <n.as_node_page.do/>
        in as_node_page(nabble:utilities.naml:977) - <n.as_node_page.do/> - public void nabble.view.web.template.NodeNamespace.as_node_page(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
        in do(nabble:utilities.naml:982) - <n.get_node_from_request_parameter.do/>
        in get_node_from_request_parameter(nabble:utilities.naml:982) - <n.get_node_from_request_parameter.do/> - public void nabble.view.web.template.ServletNamespace.get_node_from_request_parameter(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter) throws java.io.IOException,javax.servlet.ServletException,nabble.naml.namespaces.TemplateException
        in catch_exception(nabble:utilities.naml:981) - <n.catch_exception. id="get-node-block"> - public void nabble.naml.namespaces.BasicNamespace.catch_exception(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
        in (workgroup:workgroup.naml:277) - <subroutine name="view_standard_workgroup" requires="basic,nabble,servlet">
        in view_standard_workgroup(workgroup:workgroup.naml:272) - <then.view_standard_workgroup />
        in if(workgroup:workgroup.naml:271) - <n.if.get_node_from_parameter.is_workgroup> - public static void nabble.naml.namespaces.BasicNamespace._if(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
        in call_view_standard(nabble:app.naml:29) - <n.call_view_standard/>
        in call_view_forum(nabble:app.naml:4) - <n.call_view_forum/>
        in case(nabble:app.naml:3) - <n.case. value="forum"> - public void nabble.naml.namespaces.BasicNamespace$SwitchNamespace._case(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
        in assignment_permission(workgroup:workgroup.naml:421) - <n.has_groups_with_permission.assignment_permission/>
        in switch(nabble:app.naml:2) - <n.switch. value="[n.get_node_from_parameter.type/]"> - public void nabble.naml.namespaces.BasicNamespace._switch(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
        in (nabble:app.naml:1) - <macro name="view_app" requires="servlet,nabble,basic">
Message: NAML exception in customized site: can't get visitor on cached page
RequestURI: /Off-topic-f134.html
Server: n7.nabble.com
Caused by:
fschmidt.util.servlet.JtpContextServlet$JtpServletException: url=http://forums.6326.n7.nabble.com/Off-topic-f134.html  user-agent=Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11 method=GET referer=http://forums.6326.n7.nabble.com/
        at fschmidt.util.servlet.JtpContextServlet.handleException(JtpContextServlet.java:571)
        at fschmidt.util.servlet.JtpContextServlet.service2(JtpContextServlet.java:465)
        at fschmidt.util.servlet.JtpContextServlet.service(JtpContextServlet.java:332)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1360)
        at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:77)
        at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:144)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
        at cachingfilter.CachingFilter.doFilter(CachingFilter.java:133)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
        at fschmidt.util.servlet.ConnectionLimitFilter.doFilter(ConnectionLimitFilter.java:94)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
        at fschmidt.util.servlet.BadBotFilter.doFilter(BadBotFilter.java:74)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
        at nabble.view.lib.NabbleErrorFilter.doFilter(NabbleErrorFilter.java:21)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
        at org.eclipse.jetty.server.Server.handle(Server.java:349)
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:449)
        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:910)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:634)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45)
        at nabble.model.Executors$1$1.run(Executors.java:27)
        at fschmidt.util.executor.ThreadTimer$1.run(ThreadTimer.java:18)
        at fschmidt.util.executor.AbstractThreadPool$1.run(AbstractThreadPool.java:29)
        at java.lang.Thread.run(Thread.java:662)
Caused by: javax.servlet.ServletException: NAML exception in customized site: can't get visitor on cached page
        in visitor(nabble:reply.naml:421) - <n.if.visitor.is_site_admin> - public void nabble.view.web.template.ServletNamespace.visitor(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter) throws javax.servlet.ServletException
        in (nabble:reply.naml:422) - <t>
        in (nabble:reply.naml:422) - <t.location.page_node.subject/>
        in online_users(custom_tweak:online_users_table:2) - <n.online_users. include_invisible_users="[n.visitor.is_site_admin/]"> - public void nabble.view.web.template.NabbleNamespace.online_users(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
        in page_node(custom_tweak:footer_custom:2) - <n.page_node.> - public void nabble.view.web.template.NodePageNamespace.page_node(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
        in footer_custom(custom_tweak:forum_footer:19) - <n.footer_custom/>
        in forum_footer(nabble:view_mixed.naml:32) - <n.forum_footer/>
        in body(nabble:app.naml:78) - <n.body/>
        in comment(nabble:app.naml:196) - <n.comment.>
        in app_body_footer(nabble:app.naml:79) - <n.app_body_footer/>
        in body(nabble:app.naml:93) - <n.body/>
        in body(nabble:utilities.naml:10) - <n.body/>
        in nabble_html(nabble:utilities.naml:18) - <n.nabble_html> - public void nabble.view.web.template.ServletNamespace.nabble_html(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
        in html_impl(nabble:utilities.naml:4) - <n.html_impl>
        in html(nabble:app.naml:88) - <n.html>
        in do(nabble:utilities.naml:977) - <n.as_node_page.do/>
        in as_node_page(nabble:utilities.naml:977) - <n.as_node_page.do/> - public void nabble.view.web.template.NodeNamespace.as_node_page(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
        in do(nabble:utilities.naml:982) - <n.get_node_from_request_parameter.do/>
        in get_node_from_request_parameter(nabble:utilities.naml:982) - <n.get_node_from_request_parameter.do/> - public void nabble.view.web.template.ServletNamespace.get_node_from_request_parameter(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter) throws java.io.IOException,javax.servlet.ServletException,nabble.naml.namespaces.TemplateException
        in catch_exception(nabble:utilities.naml:981) - <n.catch_exception. id="get-node-block"> - public void nabble.naml.namespaces.BasicNamespace.catch_exception(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
        in (workgroup:workgroup.naml:277) - <subroutine name="view_standard_workgroup" requires="basic,nabble,servlet">
        in view_standard_workgroup(workgroup:workgroup.naml:272) - <then.view_standard_workgroup />
        in if(workgroup:workgroup.naml:271) - <n.if.get_node_from_parameter.is_workgroup> - public static void nabble.naml.namespaces.BasicNamespace._if(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
        in call_view_standard(nabble:app.naml:29) - <n.call_view_standard/>
        in call_view_forum(nabble:app.naml:4) - <n.call_view_forum/>
        in case(nabble:app.naml:3) - <n.case. value="forum"> - public void nabble.naml.namespaces.BasicNamespace$SwitchNamespace._case(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
        in assignment_permission(workgroup:workgroup.naml:421) - <n.has_groups_with_permission.assignment_permission/>
        in switch(nabble:app.naml:2) - <n.switch. value="[n.get_node_from_parameter.type/]"> - public void nabble.naml.namespaces.BasicNamespace._switch(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
        in (nabble:app.naml:1) - <macro name="view_app" requires="servlet,nabble,basic">
        at nabble.view.web.template.NamlServlet.checkTweaked(NamlServlet.java:189)
        at nabble.view.web.template.NamlServlet.service(NamlServlet.java:148)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at fschmidt.util.servlet.JtpContextServlet.service2(JtpContextServlet.java:461)
        ... 37 more
Caused by: nabble.naml.compiler.TemplateRuntimeException: can't get visitor on cached page
        in visitor(nabble:reply.naml:421) - <n.if.visitor.is_site_admin> - public void nabble.view.web.template.ServletNamespace.visitor(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter) throws javax.servlet.ServletException
        in (nabble:reply.naml:422) - <t>
        in (nabble:reply.naml:422) - <t.location.page_node.subject/>
        in online_users(custom_tweak:online_users_table:2) - <n.online_users. include_invisible_users="[n.visitor.is_site_admin/]"> - public void nabble.view.web.template.NabbleNamespace.online_users(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
        in page_node(custom_tweak:footer_custom:2) - <n.page_node.> - public void nabble.view.web.template.NodePageNamespace.page_node(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
        in footer_custom(custom_tweak:forum_footer:19) - <n.footer_custom/>
        in forum_footer(nabble:view_mixed.naml:32) - <n.forum_footer/>
        in body(nabble:app.naml:78) - <n.body/>
        in comment(nabble:app.naml:196) - <n.comment.>
        in app_body_footer(nabble:app.naml:79) - <n.app_body_footer/>
        in body(nabble:app.naml:93) - <n.body/>
        in body(nabble:utilities.naml:10) - <n.body/>
        in nabble_html(nabble:utilities.naml:18) - <n.nabble_html> - public void nabble.view.web.template.ServletNamespace.nabble_html(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
        in html_impl(nabble:utilities.naml:4) - <n.html_impl>
        in html(nabble:app.naml:88) - <n.html>
        in do(nabble:utilities.naml:977) - <n.as_node_page.do/>
        in as_node_page(nabble:utilities.naml:977) - <n.as_node_page.do/> - public void nabble.view.web.template.NodeNamespace.as_node_page(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
        in do(nabble:utilities.naml:982) - <n.get_node_from_request_parameter.do/>
        in get_node_from_request_parameter(nabble:utilities.naml:982) - <n.get_node_from_request_parameter.do/> - public void nabble.view.web.template.ServletNamespace.get_node_from_request_parameter(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter) throws java.io.IOException,javax.servlet.ServletException,nabble.naml.namespaces.TemplateException
        in catch_exception(nabble:utilities.naml:981) - <n.catch_exception. id="get-node-block"> - public void nabble.naml.namespaces.BasicNamespace.catch_exception(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
        in (workgroup:workgroup.naml:277) - <subroutine name="view_standard_workgroup" requires="basic,nabble,servlet">
        in view_standard_workgroup(workgroup:workgroup.naml:272) - <then.view_standard_workgroup />
        in if(workgroup:workgroup.naml:271) - <n.if.get_node_from_parameter.is_workgroup> - public static void nabble.naml.namespaces.BasicNamespace._if(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
        in call_view_standard(nabble:app.naml:29) - <n.call_view_standard/>
        in call_view_forum(nabble:app.naml:4) - <n.call_view_forum/>
        in case(nabble:app.naml:3) - <n.case. value="forum"> - public void nabble.naml.namespaces.BasicNamespace$SwitchNamespace._case(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
        in assignment_permission(workgroup:workgroup.naml:421) - <n.has_groups_with_permission.assignment_permission/>
        in switch(nabble:app.naml:2) - <n.switch. value="[n.get_node_from_parameter.type/]"> - public void nabble.naml.namespaces.BasicNamespace._switch(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
        in (nabble:app.naml:1) - <macro name="view_app" requires="servlet,nabble,basic">
        at nabble.naml.compiler.Compiler.interpFix(Compiler.java:2007)
        at nabble.naml.compiler.Compiler$Block.run(Compiler.java:1636)
        at nabble.naml.compiler.BlockWrapper.printTo(BlockWrapper.java:68)
        at nabble.naml.compiler.BlockWrapper.toString(BlockWrapper.java:62)
        at nabble.naml.compiler.Template.stringValue(Template.java:86)
        at nabble.naml.compiler.Template.booleanValue(Template.java:111)
        at nabble.naml.compiler.InterpreterImpl.getArgAsBoolean(InterpreterImpl.java:85)
        at nabble.view.web.template.NabbleNamespace.online_users(NabbleNamespace.java:821)
        at sun.reflect.GeneratedMethodAccessor524.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at nabble.naml.compiler.JavaCall.invoke(JavaCall.java:26)
        at nabble.naml.compiler.Compiler$Block.invoke(Compiler.java:1557)
        at nabble.naml.compiler.Compiler$Block.run(Compiler.java:1631)
        at nabble.naml.compiler.Compiler$Chunks.run(Compiler.java:1121)
        at nabble.naml.compiler.BlockWrapper.printTo(BlockWrapper.java:68)
        at nabble.naml.compiler.ScopedInterpreterImpl$1.printTo(ScopedInterpreterImpl.java:25)
        at nabble.naml.compiler.TemplatePrintWriter.print(TemplatePrintWriter.java:31)
        at nabble.naml.compiler.BlockWrapper$BlockWriter.print(BlockWrapper.java:32)
        at nabble.view.web.template.NodePageNamespace.page_node(NodePageNamespace.java:64)
        at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at nabble.naml.compiler.JavaCall.invoke(JavaCall.java:26)
        at nabble.naml.compiler.Compiler$Block.invoke(Compiler.java:1557)
        at nabble.naml.compiler.Compiler$Block.run(Compiler.java:1625)
        at nabble.naml.compiler.Compiler$Chunks.run(Compiler.java:1121)
        at nabble.naml.compiler.BlockWrapper.printTo(BlockWrapper.java:68)
        at nabble.naml.compiler.ScopedInterpreterImpl$1.printTo(ScopedInterpreterImpl.java:25)
        at nabble.naml.compiler.BlockWrapper.toString(BlockWrapper.java:62)
        at nabble.naml.compiler.ScopedInterpreterImpl.getArgString(ScopedInterpreterImpl.java:42)
        at nabble.view.web.template.HtmlNamespace.<init>(HtmlNamespace.java:32)
        at nabble.view.web.template.ServletNamespace.nabble_html(ServletNamespace.java:208)
        at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at nabble.naml.compiler.JavaCall.invoke(JavaCall.java:26)
        at nabble.naml.compiler.Compiler$Block.invoke(Compiler.java:1557)
        at nabble.naml.compiler.Compiler$Block.run(Compiler.java:1625)
        at nabble.naml.compiler.Compiler$Chunks.run(Compiler.java:1121)
        at nabble.naml.compiler.BlockWrapper.printTo(BlockWrapper.java:68)
        at nabble.naml.compiler.ScopedInterpreterImpl$1.printTo(ScopedInterpreterImpl.java:25)
        at nabble.naml.compiler.TemplatePrintWriter.print(TemplatePrintWriter.java:31)
        at nabble.view.web.template.NodeNamespace.as_node_page(NodeNamespace.java:869)
        at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at nabble.naml.compiler.JavaCall.invoke(JavaCall.java:26)
        at nabble.naml.compiler.Compiler$Block.invoke(Compiler.java:1557)
        at nabble.naml.compiler.Compiler$Block.run(Compiler.java:1625)
        at nabble.naml.compiler.BlockWrapper.printTo(BlockWrapper.java:68)
        at nabble.naml.compiler.ScopedInterpreterImpl$1.printTo(ScopedInterpreterImpl.java:25)
        at nabble.naml.compiler.TemplatePrintWriter.print(TemplatePrintWriter.java:31)
        at nabble.view.web.template.ServletNamespace.get_node_from_request_parameter(ServletNamespace.java:322)
        at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at nabble.naml.compiler.JavaCall.invoke(JavaCall.java:26)
        at nabble.naml.compiler.Compiler$Block.invoke(Compiler.java:1557)
        at nabble.naml.compiler.Compiler$Block.run(Compiler.java:1625)
        at nabble.naml.compiler.BlockWrapper.printTo(BlockWrapper.java:68)
        at nabble.naml.compiler.TemplatePrintWriter.print(TemplatePrintWriter.java:31)
        at nabble.naml.namespaces.BasicNamespace.catch_exception(BasicNamespace.java:586)
        at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at nabble.naml.compiler.JavaCall.invoke(JavaCall.java:26)
        at nabble.naml.compiler.Compiler$Block.invoke(Compiler.java:1557)
        at nabble.naml.compiler.Compiler$Block.run(Compiler.java:1631)
        at nabble.naml.compiler.Compiler$Chunks.run(Compiler.java:1121)
        at nabble.naml.compiler.Template.run(Template.java:60)
        at nabble.naml.compiler.Compiler$Subroutine.run(Compiler.java:1773)
        at nabble.naml.compiler.BlockWrapper.printTo(BlockWrapper.java:68)
        at nabble.naml.compiler.TemplatePrintWriter.print(TemplatePrintWriter.java:31)
        at nabble.naml.namespaces.BasicNamespace._if(BasicNamespace.java:140)
        at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at nabble.naml.compiler.JavaCall.invoke(JavaCall.java:26)
        at nabble.naml.compiler.Compiler$Block.invoke(Compiler.java:1557)
        at nabble.naml.compiler.Compiler$Block.run(Compiler.java:1631)
        at nabble.naml.compiler.BlockWrapper.printTo(BlockWrapper.java:68)
        at nabble.naml.compiler.TemplatePrintWriter.print(TemplatePrintWriter.java:31)
        at nabble.naml.namespaces.BasicNamespace$SwitchNamespace._case(BasicNamespace.java:888)
        at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at nabble.naml.compiler.JavaCall.invoke(JavaCall.java:26)
        at nabble.naml.compiler.Compiler$Block.invoke(Compiler.java:1557)
        at nabble.naml.compiler.Compiler$Block.run(Compiler.java:1631)
        at nabble.naml.compiler.Compiler$Chunks.run(Compiler.java:1121)
        at nabble.naml.compiler.BlockWrapper.printTo(BlockWrapper.java:68)
        at nabble.naml.compiler.ScopedInterpreterImpl$1.printTo(ScopedInterpreterImpl.java:25)
        at nabble.naml.compiler.TemplatePrintWriter.print(TemplatePrintWriter.java:31)
        at nabble.naml.namespaces.BasicNamespace._switch(BasicNamespace.java:859)
        at sun.reflect.GeneratedMethodAccessor157.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at nabble.naml.compiler.JavaCall.invoke(JavaCall.java:26)
        at nabble.naml.compiler.Compiler$Block.invoke(Compiler.java:1557)
        at nabble.naml.compiler.Compiler$Block.run(Compiler.java:1631)
        at nabble.naml.compiler.Template.run(Template.java:60)
        at nabble.naml.compiler.Template.run(Template.java:33)
        at nabble.modules.ModuleManager.run(ModuleManager.java:270)
        at nabble.view.web.template.NamlServlet.service(NamlServlet.java:169)
        at nabble.view.web.template.NamlServlet.service(NamlServlet.java:138)
        ... 39 more
Caused by: java.lang.RuntimeException: can't get visitor on cached page
        at nabble.view.web.template.ServletNamespace.visitorNamespace(ServletNamespace.java:73)
        at nabble.view.web.template.ServletNamespace.visitor(ServletNamespace.java:107)
        at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at nabble.naml.compiler.JavaCall.invoke(JavaCall.java:26)
        at nabble.naml.compiler.Compiler$Block.invoke(Compiler.java:1557)
        at nabble.naml.compiler.Compiler$Block.run(Compiler.java:1625)
        ... 143 more

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

So, as it says, the problem is at "online_users_table"(line 8 before) due to line 2 of this macro:

<override_macro name="online_users_table" dot_parameter="columns" requires="node_page">
    <n.online_users. include_invisible_users="[n.visitor.is_site_admin/]">
        <n.filter_by.current_user.can_view.page_node/>
        <n.sort_by_node_count_desc/>
        <n.people_table.>
            <n.columns/>
        </n.people_table.>
    </n.online_users.>
    
    <div class="weak-color" style="margin-top:1em">
        <n.one_or_many.online_anonymous_users_count>
            <one_text><t>anonymous user</t></one_text>
            <many_text><t>anonymous users</t></many_text>
        </n.one_or_many.online_anonymous_users_count>
        <br/>
        <n.one_or_many.online_invisible_users_count>
            <one_text><t>invisible user</t></one_text>
            <many_text><t>invisible users</t></many_text>
        </n.one_or_many.online_invisible_users_count>
    </div>
</override_macro>

So what I finally did is create a new macro called "online_users_1" and i just I changed
<n.online_users. include_invisible_users="[n.visitor.is_site_admin/]">
 to  
<n.online_users.>
 So I had to delete(at line 16 before)
<n.one_or_many.online_invisible_users_count>
 because if not deleted, all users would be able to see how many users don't want to be showed as "online", and it's supposed that only admins can see this "feature".
Here is the macro:
<macro name="online_users_1" dot_parameter="columns" requires="node_page">
    <n.online_users.>
        <n.filter_by.current_user.can_view.page_node/>
        <n.sort_by_node_count_desc/>
        <n.people_table.>
            <n.columns/>
        </n.people_table.>
    </n.online_users.>
    
    <div class="weak-color" style="margin-top:1em">
        <n.one_or_many.online_anonymous_users_count>
            <one_text><t>anonymous user</t></one_text>
            <many_text><t>anonymous users</t></many_text>
        </n.one_or_many.online_anonymous_users_count>
    </div>
</macro>

I actually don't know if this issue is important or not, but I just wanted to report it .

Regards
:) Helper
Reply | Threaded
Open this post in threaded view
|

Re: Error 500

Pedro
Once, someone posted a simpler solution for this feature. I'll try to remember it.
My test forum.