No queries (foldertype) on folders

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

No queries (foldertype) on folders

Roberto van der Linden
Hello,

I want to add a folder with no configured queries. But I noticed that when the property hippostd:foldertype has no value, it results in all possible queries available in the project on that folder.

I tried to remove the property, but this results in a stacktrace..

So my other solution was to add a non exisiting query to prevent the stacktrace. This works but results in three log warnings.

I was wondering if there is a good solution? Otherwise an improvement could be to add a constants like 'none' that could be used as value and then ignore the look up for queries.

Cheers,
Roberto
Reply | Threaded
Open this post in threaded view
|

Re: No queries (foldertype) on folders

Frank van Lankvelt
On Thu, Feb 23, 2012 at 2:30 PM, Roberto van der Linden
<[hidden email]> wrote:

> Hello,
>
> I want to add a folder with no configured queries. But I noticed that when
> the property hippostd:foldertype has no value, it results in all possible
> queries available in the project on that folder.
>
> I tried to remove the property, but this results in a stacktrace..
>
> So my other solution was to add a non exisiting query to prevent the
> stacktrace. This works but results in three log warnings.
>
I don't think there is a better alternative at the moment.

Could you post the stacktrace?  If we can eliminate that in favor of
the behavior you're looking for, that seems a better solution.  (the
foldertype property is not mandatory, so not having it should be
handled better by the application)

thanks, Frank

> I was wondering if there is a good solution? Otherwise an improvement could
> be to add a constants like 'none' that could be used as value and then
> ignore the look up for queries.
>
> Cheers,
> Roberto
>
> --
> View this message in context: http://hippo.2275632.n2.nabble.com/No-queries-foldertype-on-folders-tp7311825p7311825.html
> Sent from the Hippo CMS 7 mailing list archive at Nabble.com.
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/forums.html



--
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 1 Broadway, Cambridge, MA 02142

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com
_______________________________________________
Hippo-cms7-user mailing list and forums
http://www.onehippo.org/cms7/support/forums.html
Reply | Threaded
Open this post in threaded view
|

Re: No queries (foldertype) on folders

Roberto van der Linden
Hi Frank,

No value of the property:

CMS 2012-02-28 11:18:55,778 ERROR [org.hippoecm.frontend.i18n.SearchingTranslatorPlugin] Exception building query: org.apache.jackrabbit.spi.commons.conversion.IllegalNameException: '[' not allowed in name

No property:
Results in all possible queries

Property with empty value:

CMS 2012-02-28 11:21:18,047 ERROR [org.hippoecm.repository.standardworkflow.FolderWorkflowImpl] javax.jcr.RepositoryException: Failed to resolve path  relative to node /hippo:configuration/hippo:queries/hippo:templates
javax.jcr.RepositoryException: Failed to resolve path  relative to node /hippo:configuration/hippo:queries/hippo:templates
        at org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:239)
        at org.apache.jackrabbit.core.NodeImpl.resolveRelativeNodePath(NodeImpl.java:222)
        at org.apache.jackrabbit.core.NodeImpl.hasNode(NodeImpl.java:2220)
        at org.hippoecm.repository.decorating.NodeDecorator.hasNode(NodeDecorator.java:301)
        at org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.prototypes(FolderWorkflowImpl.java:141)
        at org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.hints(FolderWorkflowImpl.java:117)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationHandler.invoke(WorkflowManagerImpl.java:642)
        at $Proxy49.hints(Unknown Source)
        at org.hippoecm.repository.impl.WorkflowDescriptorImpl.<init>(WorkflowDescriptorImpl.java:92)
        at org.hippoecm.repository.impl.WorkflowDescriptorImpl.<init>(WorkflowDescriptorImpl.java:56)
        at org.hippoecm.repository.impl.WorkflowManagerImpl.getWorkflowDescriptor(WorkflowManagerImpl.java:280)
        at org.hippoecm.repository.decorating.checked.WorkflowManagerDecorator.getWorkflowDescriptor(WorkflowManagerDecorator.java:53)
        at org.hippoecm.addon.workflow.AbstractWorkflowPlugin.buildMenu(AbstractWorkflowPlugin.java:145)
        at org.hippoecm.addon.workflow.ContextWorkflowPlugin.populate(ContextWorkflowPlugin.java:61)
        at org.hippoecm.addon.workflow.ContextWorkflowPlugin.onBeforeRender(ContextWorkflowPlugin.java:70)
        at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
        at org.apache.wicket.Component.beforeRender(Component.java:1103)
        at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1777)
        at org.apache.wicket.Component.onBeforeRender(Component.java:4004)
        at org.apache.wicket.markup.html.tree.AbstractTree$TreeItem.onBeforeRender(AbstractTree.java:329)
        at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
        at org.apache.wicket.Component.beforeRender(Component.java:1103)
        at org.apache.wicket.Component.prepareForRender(Component.java:2295)
        at org.apache.wicket.Component.prepareForRender(Component.java:2332)
        at org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:853)
        at org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:680)
        at org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:590)
        at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
        at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1260)
        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1331)
        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)
        at org.apache.wicket.RequestCycle.request(RequestCycle.java:546)
        at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
        at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.hippoecm.frontend.ResourceRewriteFilter.doFilter(ResourceRewriteFilter.java:129)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
        at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.jackrabbit.spi.commons.conversion.MalformedPathException: empty path
        at org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:222)
        at org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:180)
        at org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:152)
        at org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:71)
        at org.hippoecm.repository.jackrabbit.HippoCachingPathResolver.getQPath(HippoCachingPathResolver.java:55)
        at org.hippoecm.repository.jackrabbit.HippoNamePathResolver.getQPath(HippoNamePathResolver.java:63)
        at org.apache.jackrabbit.core.SessionImpl.getQPath(SessionImpl.java:609)
        at org.apache.jackrabbit.core.session.SessionContext.getQPath(SessionContext.java:305)
        at org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:237)
        ... 55 more
CMS 2012-02-28 11:21:18,057 ERROR [org.hippoecm.repository.standardworkflow.FolderWorkflowImpl] javax.jcr.RepositoryException: Failed to resolve path  relative to node /hippo:configuration/hippo:queries/hippo:templates
javax.jcr.RepositoryException: Failed to resolve path  relative to node /hippo:configuration/hippo:queries/hippo:templates
        at org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:239)
        at org.apache.jackrabbit.core.NodeImpl.resolveRelativeNodePath(NodeImpl.java:222)
        at org.apache.jackrabbit.core.NodeImpl.hasNode(NodeImpl.java:2220)
        at org.hippoecm.repository.decorating.NodeDecorator.hasNode(NodeDecorator.java:301)
        at org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.prototypes(FolderWorkflowImpl.java:141)
        at org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.hints(FolderWorkflowImpl.java:117)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationHandler.invoke(WorkflowManagerImpl.java:642)
        at $Proxy49.hints(Unknown Source)
        at org.hippoecm.frontend.plugins.standardworkflow.FolderWorkflowPlugin.onModelChanged(FolderWorkflowPlugin.java:264)
        at org.apache.wicket.Component.modelChanged(Component.java:2255)
        at org.apache.wicket.Component.setDefaultModel(Component.java:3092)
        at org.apache.wicket.MarkupContainer.setDefaultModel(MarkupContainer.java:794)
        at org.hippoecm.frontend.service.render.AbstractRenderService.updateModel(AbstractRenderService.java:287)
        at org.hippoecm.frontend.service.render.AbstractRenderService.setDefaultModel(AbstractRenderService.java:278)
        at org.hippoecm.addon.workflow.AbstractWorkflowPlugin.buildMenu(AbstractWorkflowPlugin.java:156)
        at org.hippoecm.addon.workflow.ContextWorkflowPlugin.populate(ContextWorkflowPlugin.java:61)
        at org.hippoecm.addon.workflow.ContextWorkflowPlugin.onBeforeRender(ContextWorkflowPlugin.java:70)
        at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
        at org.apache.wicket.Component.beforeRender(Component.java:1103)
        at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1777)
        at org.apache.wicket.Component.onBeforeRender(Component.java:4004)
        at org.apache.wicket.markup.html.tree.AbstractTree$TreeItem.onBeforeRender(AbstractTree.java:329)
        at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
        at org.apache.wicket.Component.beforeRender(Component.java:1103)
        at org.apache.wicket.Component.prepareForRender(Component.java:2295)
        at org.apache.wicket.Component.prepareForRender(Component.java:2332)
        at org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:853)
        at org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:680)
        at org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:590)
        at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
        at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1260)
        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1331)
        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)
        at org.apache.wicket.RequestCycle.request(RequestCycle.java:546)
        at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
        at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.hippoecm.frontend.ResourceRewriteFilter.doFilter(ResourceRewriteFilter.java:129)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
        at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.jackrabbit.spi.commons.conversion.MalformedPathException: empty path
        at org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:222)
        at org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:180)
        at org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:152)
        at org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:71)
        at org.hippoecm.repository.jackrabbit.HippoCachingPathResolver.getQPath(HippoCachingPathResolver.java:55)
        at org.hippoecm.repository.jackrabbit.HippoNamePathResolver.getQPath(HippoNamePathResolver.java:63)
        at org.apache.jackrabbit.core.SessionImpl.getQPath(SessionImpl.java:609)
        at org.apache.jackrabbit.core.session.SessionContext.getQPath(SessionContext.java:305)
        at org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:237)
        ... 57 more


Cheers,
Roberto
Reply | Threaded
Open this post in threaded view
|

Re: No queries (foldertype) on folders

Frank van Lankvelt
thanks Roberto; I've created
https://issues.onehippo.com/browse/REPO-328 for the issue.
The implementation would then interpret 'no property' different from
'empty list of values'.  In the latter case, no options would be
available in the context menu.

cheers, Frank


On Tue, Feb 28, 2012 at 11:22 AM, Roberto van der Linden
<[hidden email]> wrote:

> Hi Frank,
>
> *No value of the property:*
>
> CMS 2012-02-28 11:18:55,778 ERROR
> [org.hippoecm.frontend.i18n.SearchingTranslatorPlugin] Exception building
> query: org.apache.jackrabbit.spi.commons.conversion.IllegalNameException:
> '[' not allowed in name
>
> *No property:*
> Results in all possible queries
>
> *Property with empty value:*
>
> CMS 2012-02-28 11:21:18,047 ERROR
> [org.hippoecm.repository.standardworkflow.FolderWorkflowImpl]
> javax.jcr.RepositoryException: Failed to resolve path  relative to node
> /hippo:configuration/hippo:queries/hippo:templates
> javax.jcr.RepositoryException: Failed to resolve path  relative to node
> /hippo:configuration/hippo:queries/hippo:templates
>        at
> org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:239)
>        at
> org.apache.jackrabbit.core.NodeImpl.resolveRelativeNodePath(NodeImpl.java:222)
>        at org.apache.jackrabbit.core.NodeImpl.hasNode(NodeImpl.java:2220)
>        at
> org.hippoecm.repository.decorating.NodeDecorator.hasNode(NodeDecorator.java:301)
>        at
> org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.prototypes(FolderWorkflowImpl.java:141)
>        at
> org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.hints(FolderWorkflowImpl.java:117)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationHandler.invoke(WorkflowManagerImpl.java:642)
>        at $Proxy49.hints(Unknown Source)
>        at
> org.hippoecm.repository.impl.WorkflowDescriptorImpl.<init>(WorkflowDescriptorImpl.java:92)
>        at
> org.hippoecm.repository.impl.WorkflowDescriptorImpl.<init>(WorkflowDescriptorImpl.java:56)
>        at
> org.hippoecm.repository.impl.WorkflowManagerImpl.getWorkflowDescriptor(WorkflowManagerImpl.java:280)
>        at
> org.hippoecm.repository.decorating.checked.WorkflowManagerDecorator.getWorkflowDescriptor(WorkflowManagerDecorator.java:53)
>        at
> org.hippoecm.addon.workflow.AbstractWorkflowPlugin.buildMenu(AbstractWorkflowPlugin.java:145)
>        at
> org.hippoecm.addon.workflow.ContextWorkflowPlugin.populate(ContextWorkflowPlugin.java:61)
>        at
> org.hippoecm.addon.workflow.ContextWorkflowPlugin.onBeforeRender(ContextWorkflowPlugin.java:70)
>        at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
>        at org.apache.wicket.Component.beforeRender(Component.java:1103)
>        at
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1777)
>        at org.apache.wicket.Component.onBeforeRender(Component.java:4004)
>        at
> org.apache.wicket.markup.html.tree.AbstractTree$TreeItem.onBeforeRender(AbstractTree.java:329)
>        at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
>        at org.apache.wicket.Component.beforeRender(Component.java:1103)
>        at org.apache.wicket.Component.prepareForRender(Component.java:2295)
>        at org.apache.wicket.Component.prepareForRender(Component.java:2332)
>        at
> org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:853)
>        at
> org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:680)
>        at
> org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:590)
>        at
> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
>        at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1260)
>        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1331)
>        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)
>        at org.apache.wicket.RequestCycle.request(RequestCycle.java:546)
>        at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
>        at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.hippoecm.frontend.ResourceRewriteFilter.doFilter(ResourceRewriteFilter.java:129)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>        at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>        at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>        at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>        at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
>        at
> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
>        at
> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
>        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
>        at java.lang.Thread.run(Thread.java:662)
> Caused by:
> org.apache.jackrabbit.spi.commons.conversion.MalformedPathException: empty
> path
>        at
> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:222)
>        at
> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:180)
>        at
> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:152)
>        at
> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:71)
>        at
> org.hippoecm.repository.jackrabbit.HippoCachingPathResolver.getQPath(HippoCachingPathResolver.java:55)
>        at
> org.hippoecm.repository.jackrabbit.HippoNamePathResolver.getQPath(HippoNamePathResolver.java:63)
>        at org.apache.jackrabbit.core.SessionImpl.getQPath(SessionImpl.java:609)
>        at
> org.apache.jackrabbit.core.session.SessionContext.getQPath(SessionContext.java:305)
>        at
> org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:237)
>        ... 55 more
> CMS 2012-02-28 11:21:18,057 ERROR
> [org.hippoecm.repository.standardworkflow.FolderWorkflowImpl]
> javax.jcr.RepositoryException: Failed to resolve path  relative to node
> /hippo:configuration/hippo:queries/hippo:templates
> javax.jcr.RepositoryException: Failed to resolve path  relative to node
> /hippo:configuration/hippo:queries/hippo:templates
>        at
> org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:239)
>        at
> org.apache.jackrabbit.core.NodeImpl.resolveRelativeNodePath(NodeImpl.java:222)
>        at org.apache.jackrabbit.core.NodeImpl.hasNode(NodeImpl.java:2220)
>        at
> org.hippoecm.repository.decorating.NodeDecorator.hasNode(NodeDecorator.java:301)
>        at
> org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.prototypes(FolderWorkflowImpl.java:141)
>        at
> org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.hints(FolderWorkflowImpl.java:117)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationHandler.invoke(WorkflowManagerImpl.java:642)
>        at $Proxy49.hints(Unknown Source)
>        at
> org.hippoecm.frontend.plugins.standardworkflow.FolderWorkflowPlugin.onModelChanged(FolderWorkflowPlugin.java:264)
>        at org.apache.wicket.Component.modelChanged(Component.java:2255)
>        at org.apache.wicket.Component.setDefaultModel(Component.java:3092)
>        at
> org.apache.wicket.MarkupContainer.setDefaultModel(MarkupContainer.java:794)
>        at
> org.hippoecm.frontend.service.render.AbstractRenderService.updateModel(AbstractRenderService.java:287)
>        at
> org.hippoecm.frontend.service.render.AbstractRenderService.setDefaultModel(AbstractRenderService.java:278)
>        at
> org.hippoecm.addon.workflow.AbstractWorkflowPlugin.buildMenu(AbstractWorkflowPlugin.java:156)
>        at
> org.hippoecm.addon.workflow.ContextWorkflowPlugin.populate(ContextWorkflowPlugin.java:61)
>        at
> org.hippoecm.addon.workflow.ContextWorkflowPlugin.onBeforeRender(ContextWorkflowPlugin.java:70)
>        at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
>        at org.apache.wicket.Component.beforeRender(Component.java:1103)
>        at
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1777)
>        at org.apache.wicket.Component.onBeforeRender(Component.java:4004)
>        at
> org.apache.wicket.markup.html.tree.AbstractTree$TreeItem.onBeforeRender(AbstractTree.java:329)
>        at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
>        at org.apache.wicket.Component.beforeRender(Component.java:1103)
>        at org.apache.wicket.Component.prepareForRender(Component.java:2295)
>        at org.apache.wicket.Component.prepareForRender(Component.java:2332)
>        at
> org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:853)
>        at
> org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:680)
>        at
> org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:590)
>        at
> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
>        at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1260)
>        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1331)
>        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)
>        at org.apache.wicket.RequestCycle.request(RequestCycle.java:546)
>        at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
>        at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.hippoecm.frontend.ResourceRewriteFilter.doFilter(ResourceRewriteFilter.java:129)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>        at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>        at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>        at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>        at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
>        at
> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
>        at
> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
>        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
>        at java.lang.Thread.run(Thread.java:662)
> Caused by:
> org.apache.jackrabbit.spi.commons.conversion.MalformedPathException: empty
> path
>        at
> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:222)
>        at
> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:180)
>        at
> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:152)
>        at
> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:71)
>        at
> org.hippoecm.repository.jackrabbit.HippoCachingPathResolver.getQPath(HippoCachingPathResolver.java:55)
>        at
> org.hippoecm.repository.jackrabbit.HippoNamePathResolver.getQPath(HippoNamePathResolver.java:63)
>        at org.apache.jackrabbit.core.SessionImpl.getQPath(SessionImpl.java:609)
>        at
> org.apache.jackrabbit.core.session.SessionContext.getQPath(SessionContext.java:305)
>        at
> org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:237)
>        ... 57 more
>
>
> Cheers,
> Roberto
>
> --
> View this message in context: http://hippo.2275632.n2.nabble.com/No-queries-foldertype-on-folders-tp7311825p7325046.html
> Sent from the Hippo CMS 7 mailing list archive at Nabble.com.
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/forums.html



--
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 1 Broadway, Cambridge, MA 02142

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com
_______________________________________________
Hippo-cms7-user mailing list and forums
http://www.onehippo.org/cms7/support/forums.html
Reply | Threaded
Open this post in threaded view
|

Re: No queries (foldertype) on folders

Niels van Kampenhout-2
Roberto, don't hold your breath: I reported the same issue back in
2010: https://issues.onehippo.com/browse/CMS7-4432

One remark: I'm not sure if the behaviour is still the same, but
instead of the two options you describe (no property, or empty
property value), you can also have an 'invalid' property value (name
of non-existing query), which back then resulted in a warning. Maybe
that's slightly better that the error/stacktrace the other options
lead to ;-)

Regards,
Niels

On Tue, Feb 28, 2012 at 3:12 PM, Frank van Lankvelt
<[hidden email]> wrote:

> thanks Roberto; I've created
> https://issues.onehippo.com/browse/REPO-328 for the issue.
> The implementation would then interpret 'no property' different from
> 'empty list of values'.  In the latter case, no options would be
> available in the context menu.
>
> cheers, Frank
>
>
> On Tue, Feb 28, 2012 at 11:22 AM, Roberto van der Linden
> <[hidden email]> wrote:
>> Hi Frank,
>>
>> *No value of the property:*
>>
>> CMS 2012-02-28 11:18:55,778 ERROR
>> [org.hippoecm.frontend.i18n.SearchingTranslatorPlugin] Exception building
>> query: org.apache.jackrabbit.spi.commons.conversion.IllegalNameException:
>> '[' not allowed in name
>>
>> *No property:*
>> Results in all possible queries
>>
>> *Property with empty value:*
>>
>> CMS 2012-02-28 11:21:18,047 ERROR
>> [org.hippoecm.repository.standardworkflow.FolderWorkflowImpl]
>> javax.jcr.RepositoryException: Failed to resolve path  relative to node
>> /hippo:configuration/hippo:queries/hippo:templates
>> javax.jcr.RepositoryException: Failed to resolve path  relative to node
>> /hippo:configuration/hippo:queries/hippo:templates
>>        at
>> org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:239)
>>        at
>> org.apache.jackrabbit.core.NodeImpl.resolveRelativeNodePath(NodeImpl.java:222)
>>        at org.apache.jackrabbit.core.NodeImpl.hasNode(NodeImpl.java:2220)
>>        at
>> org.hippoecm.repository.decorating.NodeDecorator.hasNode(NodeDecorator.java:301)
>>        at
>> org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.prototypes(FolderWorkflowImpl.java:141)
>>        at
>> org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.hints(FolderWorkflowImpl.java:117)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at
>> org.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationHandler.invoke(WorkflowManagerImpl.java:642)
>>        at $Proxy49.hints(Unknown Source)
>>        at
>> org.hippoecm.repository.impl.WorkflowDescriptorImpl.<init>(WorkflowDescriptorImpl.java:92)
>>        at
>> org.hippoecm.repository.impl.WorkflowDescriptorImpl.<init>(WorkflowDescriptorImpl.java:56)
>>        at
>> org.hippoecm.repository.impl.WorkflowManagerImpl.getWorkflowDescriptor(WorkflowManagerImpl.java:280)
>>        at
>> org.hippoecm.repository.decorating.checked.WorkflowManagerDecorator.getWorkflowDescriptor(WorkflowManagerDecorator.java:53)
>>        at
>> org.hippoecm.addon.workflow.AbstractWorkflowPlugin.buildMenu(AbstractWorkflowPlugin.java:145)
>>        at
>> org.hippoecm.addon.workflow.ContextWorkflowPlugin.populate(ContextWorkflowPlugin.java:61)
>>        at
>> org.hippoecm.addon.workflow.ContextWorkflowPlugin.onBeforeRender(ContextWorkflowPlugin.java:70)
>>        at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
>>        at org.apache.wicket.Component.beforeRender(Component.java:1103)
>>        at
>> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1777)
>>        at org.apache.wicket.Component.onBeforeRender(Component.java:4004)
>>        at
>> org.apache.wicket.markup.html.tree.AbstractTree$TreeItem.onBeforeRender(AbstractTree.java:329)
>>        at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
>>        at org.apache.wicket.Component.beforeRender(Component.java:1103)
>>        at org.apache.wicket.Component.prepareForRender(Component.java:2295)
>>        at org.apache.wicket.Component.prepareForRender(Component.java:2332)
>>        at
>> org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:853)
>>        at
>> org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:680)
>>        at
>> org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:590)
>>        at
>> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
>>        at
>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1260)
>>        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1331)
>>        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)
>>        at org.apache.wicket.RequestCycle.request(RequestCycle.java:546)
>>        at
>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
>>        at
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
>>        at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>        at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>        at
>> org.hippoecm.frontend.ResourceRewriteFilter.doFilter(ResourceRewriteFilter.java:129)
>>        at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>        at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>        at
>> org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
>>        at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>        at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>        at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>        at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>        at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>        at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>        at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>        at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
>>        at
>> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
>>        at
>> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
>>        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
>>        at java.lang.Thread.run(Thread.java:662)
>> Caused by:
>> org.apache.jackrabbit.spi.commons.conversion.MalformedPathException: empty
>> path
>>        at
>> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:222)
>>        at
>> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:180)
>>        at
>> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:152)
>>        at
>> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:71)
>>        at
>> org.hippoecm.repository.jackrabbit.HippoCachingPathResolver.getQPath(HippoCachingPathResolver.java:55)
>>        at
>> org.hippoecm.repository.jackrabbit.HippoNamePathResolver.getQPath(HippoNamePathResolver.java:63)
>>        at org.apache.jackrabbit.core.SessionImpl.getQPath(SessionImpl.java:609)
>>        at
>> org.apache.jackrabbit.core.session.SessionContext.getQPath(SessionContext.java:305)
>>        at
>> org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:237)
>>        ... 55 more
>> CMS 2012-02-28 11:21:18,057 ERROR
>> [org.hippoecm.repository.standardworkflow.FolderWorkflowImpl]
>> javax.jcr.RepositoryException: Failed to resolve path  relative to node
>> /hippo:configuration/hippo:queries/hippo:templates
>> javax.jcr.RepositoryException: Failed to resolve path  relative to node
>> /hippo:configuration/hippo:queries/hippo:templates
>>        at
>> org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:239)
>>        at
>> org.apache.jackrabbit.core.NodeImpl.resolveRelativeNodePath(NodeImpl.java:222)
>>        at org.apache.jackrabbit.core.NodeImpl.hasNode(NodeImpl.java:2220)
>>        at
>> org.hippoecm.repository.decorating.NodeDecorator.hasNode(NodeDecorator.java:301)
>>        at
>> org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.prototypes(FolderWorkflowImpl.java:141)
>>        at
>> org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.hints(FolderWorkflowImpl.java:117)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at
>> org.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationHandler.invoke(WorkflowManagerImpl.java:642)
>>        at $Proxy49.hints(Unknown Source)
>>        at
>> org.hippoecm.frontend.plugins.standardworkflow.FolderWorkflowPlugin.onModelChanged(FolderWorkflowPlugin.java:264)
>>        at org.apache.wicket.Component.modelChanged(Component.java:2255)
>>        at org.apache.wicket.Component.setDefaultModel(Component.java:3092)
>>        at
>> org.apache.wicket.MarkupContainer.setDefaultModel(MarkupContainer.java:794)
>>        at
>> org.hippoecm.frontend.service.render.AbstractRenderService.updateModel(AbstractRenderService.java:287)
>>        at
>> org.hippoecm.frontend.service.render.AbstractRenderService.setDefaultModel(AbstractRenderService.java:278)
>>        at
>> org.hippoecm.addon.workflow.AbstractWorkflowPlugin.buildMenu(AbstractWorkflowPlugin.java:156)
>>        at
>> org.hippoecm.addon.workflow.ContextWorkflowPlugin.populate(ContextWorkflowPlugin.java:61)
>>        at
>> org.hippoecm.addon.workflow.ContextWorkflowPlugin.onBeforeRender(ContextWorkflowPlugin.java:70)
>>        at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
>>        at org.apache.wicket.Component.beforeRender(Component.java:1103)
>>        at
>> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1777)
>>        at org.apache.wicket.Component.onBeforeRender(Component.java:4004)
>>        at
>> org.apache.wicket.markup.html.tree.AbstractTree$TreeItem.onBeforeRender(AbstractTree.java:329)
>>        at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
>>        at org.apache.wicket.Component.beforeRender(Component.java:1103)
>>        at org.apache.wicket.Component.prepareForRender(Component.java:2295)
>>        at org.apache.wicket.Component.prepareForRender(Component.java:2332)
>>        at
>> org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:853)
>>        at
>> org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:680)
>>        at
>> org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:590)
>>        at
>> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
>>        at
>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1260)
>>        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1331)
>>        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)
>>        at org.apache.wicket.RequestCycle.request(RequestCycle.java:546)
>>        at
>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
>>        at
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
>>        at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>        at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>        at
>> org.hippoecm.frontend.ResourceRewriteFilter.doFilter(ResourceRewriteFilter.java:129)
>>        at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>        at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>        at
>> org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
>>        at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>        at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>        at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>        at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>        at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>        at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>        at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>        at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
>>        at
>> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
>>        at
>> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
>>        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
>>        at java.lang.Thread.run(Thread.java:662)
>> Caused by:
>> org.apache.jackrabbit.spi.commons.conversion.MalformedPathException: empty
>> path
>>        at
>> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:222)
>>        at
>> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:180)
>>        at
>> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:152)
>>        at
>> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:71)
>>        at
>> org.hippoecm.repository.jackrabbit.HippoCachingPathResolver.getQPath(HippoCachingPathResolver.java:55)
>>        at
>> org.hippoecm.repository.jackrabbit.HippoNamePathResolver.getQPath(HippoNamePathResolver.java:63)
>>        at org.apache.jackrabbit.core.SessionImpl.getQPath(SessionImpl.java:609)
>>        at
>> org.apache.jackrabbit.core.session.SessionContext.getQPath(SessionContext.java:305)
>>        at
>> org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:237)
>>        ... 57 more
>>
>>
>> Cheers,
>> Roberto
>>
>> --
>> View this message in context: http://hippo.2275632.n2.nabble.com/No-queries-foldertype-on-folders-tp7311825p7325046.html
>> Sent from the Hippo CMS 7 mailing list archive at Nabble.com.
>> _______________________________________________
>> Hippo-cms7-user mailing list and forums
>> http://www.onehippo.org/cms7/support/forums.html
>
>
>
> --
> Amsterdam - Oosteinde 11, 1017 WT Amsterdam
> Boston - 1 Broadway, Cambridge, MA 02142
>
> US +1 877 414 4776 (toll free)
> Europe +31(0)20 522 4466
> www.onehippo.com
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/forums.html



--
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 1 Broadway, Cambridge, MA 02142

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com
_______________________________________________
Hippo-cms7-user mailing list and forums
http://www.onehippo.org/cms7/support/forums.html
Reply | Threaded
Open this post in threaded view
|

Re: No queries (foldertype) on folders

Roberto van der Linden
Yes, I know :-)  that is what we are using right now.. But that also
results in 3 warnings...

But thanks for mentioning :-)
Reply | Threaded
Open this post in threaded view
|

Re: No queries (foldertype) on folders

Frank van Lankvelt
In reply to this post by Niels van Kampenhout-2
On Thu, Mar 1, 2012 at 3:42 PM, Niels van Kampenhout
<[hidden email]> wrote:
> Roberto, don't hold your breath: I reported the same issue back in

well, I have committed the fix now and it has been reviewed & backported ;-)

cheers, Frank


> 2010: https://issues.onehippo.com/browse/CMS7-4432
>
> One remark: I'm not sure if the behaviour is still the same, but
> instead of the two options you describe (no property, or empty
> property value), you can also have an 'invalid' property value (name
> of non-existing query), which back then resulted in a warning. Maybe
> that's slightly better that the error/stacktrace the other options
> lead to ;-)
>
> Regards,
> Niels
>
> On Tue, Feb 28, 2012 at 3:12 PM, Frank van Lankvelt
> <[hidden email]> wrote:
>> thanks Roberto; I've created
>> https://issues.onehippo.com/browse/REPO-328 for the issue.
>> The implementation would then interpret 'no property' different from
>> 'empty list of values'.  In the latter case, no options would be
>> available in the context menu.
>>
>> cheers, Frank
>>
>>
>> On Tue, Feb 28, 2012 at 11:22 AM, Roberto van der Linden
>> <[hidden email]> wrote:
>>> Hi Frank,
>>>
>>> *No value of the property:*
>>>
>>> CMS 2012-02-28 11:18:55,778 ERROR
>>> [org.hippoecm.frontend.i18n.SearchingTranslatorPlugin] Exception building
>>> query: org.apache.jackrabbit.spi.commons.conversion.IllegalNameException:
>>> '[' not allowed in name
>>>
>>> *No property:*
>>> Results in all possible queries
>>>
>>> *Property with empty value:*
>>>
>>> CMS 2012-02-28 11:21:18,047 ERROR
>>> [org.hippoecm.repository.standardworkflow.FolderWorkflowImpl]
>>> javax.jcr.RepositoryException: Failed to resolve path  relative to node
>>> /hippo:configuration/hippo:queries/hippo:templates
>>> javax.jcr.RepositoryException: Failed to resolve path  relative to node
>>> /hippo:configuration/hippo:queries/hippo:templates
>>>        at
>>> org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:239)
>>>        at
>>> org.apache.jackrabbit.core.NodeImpl.resolveRelativeNodePath(NodeImpl.java:222)
>>>        at org.apache.jackrabbit.core.NodeImpl.hasNode(NodeImpl.java:2220)
>>>        at
>>> org.hippoecm.repository.decorating.NodeDecorator.hasNode(NodeDecorator.java:301)
>>>        at
>>> org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.prototypes(FolderWorkflowImpl.java:141)
>>>        at
>>> org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.hints(FolderWorkflowImpl.java:117)
>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>        at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>        at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>>        at
>>> org.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationHandler.invoke(WorkflowManagerImpl.java:642)
>>>        at $Proxy49.hints(Unknown Source)
>>>        at
>>> org.hippoecm.repository.impl.WorkflowDescriptorImpl.<init>(WorkflowDescriptorImpl.java:92)
>>>        at
>>> org.hippoecm.repository.impl.WorkflowDescriptorImpl.<init>(WorkflowDescriptorImpl.java:56)
>>>        at
>>> org.hippoecm.repository.impl.WorkflowManagerImpl.getWorkflowDescriptor(WorkflowManagerImpl.java:280)
>>>        at
>>> org.hippoecm.repository.decorating.checked.WorkflowManagerDecorator.getWorkflowDescriptor(WorkflowManagerDecorator.java:53)
>>>        at
>>> org.hippoecm.addon.workflow.AbstractWorkflowPlugin.buildMenu(AbstractWorkflowPlugin.java:145)
>>>        at
>>> org.hippoecm.addon.workflow.ContextWorkflowPlugin.populate(ContextWorkflowPlugin.java:61)
>>>        at
>>> org.hippoecm.addon.workflow.ContextWorkflowPlugin.onBeforeRender(ContextWorkflowPlugin.java:70)
>>>        at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
>>>        at org.apache.wicket.Component.beforeRender(Component.java:1103)
>>>        at
>>> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1777)
>>>        at org.apache.wicket.Component.onBeforeRender(Component.java:4004)
>>>        at
>>> org.apache.wicket.markup.html.tree.AbstractTree$TreeItem.onBeforeRender(AbstractTree.java:329)
>>>        at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
>>>        at org.apache.wicket.Component.beforeRender(Component.java:1103)
>>>        at org.apache.wicket.Component.prepareForRender(Component.java:2295)
>>>        at org.apache.wicket.Component.prepareForRender(Component.java:2332)
>>>        at
>>> org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:853)
>>>        at
>>> org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:680)
>>>        at
>>> org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:590)
>>>        at
>>> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
>>>        at
>>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1260)
>>>        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1331)
>>>        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)
>>>        at org.apache.wicket.RequestCycle.request(RequestCycle.java:546)
>>>        at
>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
>>>        at
>>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
>>>        at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>>        at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>        at
>>> org.hippoecm.frontend.ResourceRewriteFilter.doFilter(ResourceRewriteFilter.java:129)
>>>        at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>>        at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>        at
>>> org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
>>>        at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>>        at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>        at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>        at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>>        at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>>        at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>        at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>        at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
>>>        at
>>> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
>>>        at
>>> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
>>>        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
>>>        at java.lang.Thread.run(Thread.java:662)
>>> Caused by:
>>> org.apache.jackrabbit.spi.commons.conversion.MalformedPathException: empty
>>> path
>>>        at
>>> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:222)
>>>        at
>>> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:180)
>>>        at
>>> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:152)
>>>        at
>>> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:71)
>>>        at
>>> org.hippoecm.repository.jackrabbit.HippoCachingPathResolver.getQPath(HippoCachingPathResolver.java:55)
>>>        at
>>> org.hippoecm.repository.jackrabbit.HippoNamePathResolver.getQPath(HippoNamePathResolver.java:63)
>>>        at org.apache.jackrabbit.core.SessionImpl.getQPath(SessionImpl.java:609)
>>>        at
>>> org.apache.jackrabbit.core.session.SessionContext.getQPath(SessionContext.java:305)
>>>        at
>>> org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:237)
>>>        ... 55 more
>>> CMS 2012-02-28 11:21:18,057 ERROR
>>> [org.hippoecm.repository.standardworkflow.FolderWorkflowImpl]
>>> javax.jcr.RepositoryException: Failed to resolve path  relative to node
>>> /hippo:configuration/hippo:queries/hippo:templates
>>> javax.jcr.RepositoryException: Failed to resolve path  relative to node
>>> /hippo:configuration/hippo:queries/hippo:templates
>>>        at
>>> org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:239)
>>>        at
>>> org.apache.jackrabbit.core.NodeImpl.resolveRelativeNodePath(NodeImpl.java:222)
>>>        at org.apache.jackrabbit.core.NodeImpl.hasNode(NodeImpl.java:2220)
>>>        at
>>> org.hippoecm.repository.decorating.NodeDecorator.hasNode(NodeDecorator.java:301)
>>>        at
>>> org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.prototypes(FolderWorkflowImpl.java:141)
>>>        at
>>> org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.hints(FolderWorkflowImpl.java:117)
>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>        at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>        at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>>        at
>>> org.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationHandler.invoke(WorkflowManagerImpl.java:642)
>>>        at $Proxy49.hints(Unknown Source)
>>>        at
>>> org.hippoecm.frontend.plugins.standardworkflow.FolderWorkflowPlugin.onModelChanged(FolderWorkflowPlugin.java:264)
>>>        at org.apache.wicket.Component.modelChanged(Component.java:2255)
>>>        at org.apache.wicket.Component.setDefaultModel(Component.java:3092)
>>>        at
>>> org.apache.wicket.MarkupContainer.setDefaultModel(MarkupContainer.java:794)
>>>        at
>>> org.hippoecm.frontend.service.render.AbstractRenderService.updateModel(AbstractRenderService.java:287)
>>>        at
>>> org.hippoecm.frontend.service.render.AbstractRenderService.setDefaultModel(AbstractRenderService.java:278)
>>>        at
>>> org.hippoecm.addon.workflow.AbstractWorkflowPlugin.buildMenu(AbstractWorkflowPlugin.java:156)
>>>        at
>>> org.hippoecm.addon.workflow.ContextWorkflowPlugin.populate(ContextWorkflowPlugin.java:61)
>>>        at
>>> org.hippoecm.addon.workflow.ContextWorkflowPlugin.onBeforeRender(ContextWorkflowPlugin.java:70)
>>>        at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
>>>        at org.apache.wicket.Component.beforeRender(Component.java:1103)
>>>        at
>>> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1777)
>>>        at org.apache.wicket.Component.onBeforeRender(Component.java:4004)
>>>        at
>>> org.apache.wicket.markup.html.tree.AbstractTree$TreeItem.onBeforeRender(AbstractTree.java:329)
>>>        at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
>>>        at org.apache.wicket.Component.beforeRender(Component.java:1103)
>>>        at org.apache.wicket.Component.prepareForRender(Component.java:2295)
>>>        at org.apache.wicket.Component.prepareForRender(Component.java:2332)
>>>        at
>>> org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:853)
>>>        at
>>> org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:680)
>>>        at
>>> org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:590)
>>>        at
>>> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
>>>        at
>>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1260)
>>>        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1331)
>>>        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)
>>>        at org.apache.wicket.RequestCycle.request(RequestCycle.java:546)
>>>        at
>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
>>>        at
>>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
>>>        at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>>        at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>        at
>>> org.hippoecm.frontend.ResourceRewriteFilter.doFilter(ResourceRewriteFilter.java:129)
>>>        at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>>        at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>        at
>>> org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
>>>        at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>>        at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>        at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>        at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>>        at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>>        at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>        at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>        at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
>>>        at
>>> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
>>>        at
>>> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
>>>        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
>>>        at java.lang.Thread.run(Thread.java:662)
>>> Caused by:
>>> org.apache.jackrabbit.spi.commons.conversion.MalformedPathException: empty
>>> path
>>>        at
>>> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:222)
>>>        at
>>> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:180)
>>>        at
>>> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:152)
>>>        at
>>> org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:71)
>>>        at
>>> org.hippoecm.repository.jackrabbit.HippoCachingPathResolver.getQPath(HippoCachingPathResolver.java:55)
>>>        at
>>> org.hippoecm.repository.jackrabbit.HippoNamePathResolver.getQPath(HippoNamePathResolver.java:63)
>>>        at org.apache.jackrabbit.core.SessionImpl.getQPath(SessionImpl.java:609)
>>>        at
>>> org.apache.jackrabbit.core.session.SessionContext.getQPath(SessionContext.java:305)
>>>        at
>>> org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:237)
>>>        ... 57 more
>>>
>>>
>>> Cheers,
>>> Roberto
>>>
>>> --
>>> View this message in context: http://hippo.2275632.n2.nabble.com/No-queries-foldertype-on-folders-tp7311825p7325046.html
>>> Sent from the Hippo CMS 7 mailing list archive at Nabble.com.
>>> _______________________________________________
>>> Hippo-cms7-user mailing list and forums
>>> http://www.onehippo.org/cms7/support/forums.html
>>
>>
>>
>> --
>> Amsterdam - Oosteinde 11, 1017 WT Amsterdam
>> Boston - 1 Broadway, Cambridge, MA 02142
>>
>> US +1 877 414 4776 (toll free)
>> Europe +31(0)20 522 4466
>> www.onehippo.com
>> _______________________________________________
>> Hippo-cms7-user mailing list and forums
>> http://www.onehippo.org/cms7/support/forums.html
>
>
>
> --
> Amsterdam - Oosteinde 11, 1017 WT Amsterdam
> Boston - 1 Broadway, Cambridge, MA 02142
>
> US +1 877 414 4776 (toll free)
> Europe +31(0)20 522 4466
> www.onehippo.com
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/forums.html



--
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 1 Broadway, Cambridge, MA 02142

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com
_______________________________________________
Hippo-cms7-user mailing list and forums
http://www.onehippo.org/cms7/support/forums.html