You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2008/01/15 23:25:35 UTC
[jira] Created: (SLING-161) request to a repository property throws
ClassCastException
request to a repository property throws ClassCastException
----------------------------------------------------------
Key: SLING-161
URL: https://issues.apache.org/jira/browse/SLING-161
Project: Sling
Issue Type: Bug
Reporter: Tobias Bocanegra
The node '/content/test/ contains a property named 'test':
The requested URL /content/test/test.html resulted in an error in Sling Default Error Handler Servlet.
Exception:
java.lang.ClassCastException: org.apache.jackrabbit.core.PropertyImpl
at org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResource.(JcrNodeResource.java:77)
at org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl.getResource(JcrResourceResolverFactoryImpl.java:247)
at org.apache.sling.jcr.resource.internal.JcrResourceResolver.getResourceInternal(JcrResourceResolver.java:594)
at org.apache.sling.jcr.resource.internal.JcrResourceResolver.scanPath(JcrResourceResolver.java:575)
at org.apache.sling.jcr.resource.internal.JcrResourceResolver.transformURL(JcrResourceResolver.java:545)
at org.apache.sling.jcr.resource.internal.JcrResourceResolver.resolve(JcrResourceResolver.java:251)
at org.apache.sling.jcr.resource.internal.JcrResourceResolver.resolve(JcrResourceResolver.java:103)
at org.apache.sling.core.impl.request.RequestData.(RequestData.java:157)
....
Suggest to ignore properties in resource resolution and interpret them as suffix. so the above should resolve to the resource at '/content/test'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (SLING-161) request to a repository property throws
ClassCastException
Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tobias Bocanegra closed SLING-161.
----------------------------------
exception does not occur anymore.
> request to a repository property throws ClassCastException
> ----------------------------------------------------------
>
> Key: SLING-161
> URL: https://issues.apache.org/jira/browse/SLING-161
> Project: Sling
> Issue Type: Bug
> Reporter: Tobias Bocanegra
> Assignee: Felix Meschberger
>
> The node '/content/test/ contains a property named 'test':
> The requested URL /content/test/test.html resulted in an error in Sling Default Error Handler Servlet.
> Exception:
> java.lang.ClassCastException: org.apache.jackrabbit.core.PropertyImpl
> at org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResource.(JcrNodeResource.java:77)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl.getResource(JcrResourceResolverFactoryImpl.java:247)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.getResourceInternal(JcrResourceResolver.java:594)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.scanPath(JcrResourceResolver.java:575)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.transformURL(JcrResourceResolver.java:545)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.resolve(JcrResourceResolver.java:251)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.resolve(JcrResourceResolver.java:103)
> at org.apache.sling.core.impl.request.RequestData.(RequestData.java:157)
> ....
> Suggest to ignore properties in resource resolution and interpret them as suffix. so the above should resolve to the resource at '/content/test'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SLING-161) request to a repository property
throws ClassCastException
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger resolved SLING-161.
-------------------------------------
Resolution: Fixed
Added a JcrPropertyResource and a Resource factory method to the JcrResourceResolver in Rev. 613159. The JcrResourceResolverFactoryImpl.getResource method now just forwards to this factory method.
> request to a repository property throws ClassCastException
> ----------------------------------------------------------
>
> Key: SLING-161
> URL: https://issues.apache.org/jira/browse/SLING-161
> Project: Sling
> Issue Type: Bug
> Reporter: Tobias Bocanegra
> Assignee: Felix Meschberger
>
> The node '/content/test/ contains a property named 'test':
> The requested URL /content/test/test.html resulted in an error in Sling Default Error Handler Servlet.
> Exception:
> java.lang.ClassCastException: org.apache.jackrabbit.core.PropertyImpl
> at org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResource.(JcrNodeResource.java:77)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl.getResource(JcrResourceResolverFactoryImpl.java:247)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.getResourceInternal(JcrResourceResolver.java:594)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.scanPath(JcrResourceResolver.java:575)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.transformURL(JcrResourceResolver.java:545)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.resolve(JcrResourceResolver.java:251)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.resolve(JcrResourceResolver.java:103)
> at org.apache.sling.core.impl.request.RequestData.(RequestData.java:157)
> ....
> Suggest to ignore properties in resource resolution and interpret them as suffix. so the above should resolve to the resource at '/content/test'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (SLING-161) request to a repository
property throws ClassCastException
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12560376#action_12560376 ]
fmeschbe edited comment on SLING-161 at 1/18/08 5:45 AM:
------------------------------------------------------------------
Added a JcrPropertyResource and a Resource factory method to the JcrResourceResolver in Rev. 613159. The JcrResourceResolverFactoryImpl.getResource method now just forwards to this factory method.
Please close this issue if this resolves your problem. Thanks.
was (Author: fmeschbe):
Added a JcrPropertyResource and a Resource factory method to the JcrResourceResolver in Rev. 613159. The JcrResourceResolverFactoryImpl.getResource method now just forwards to this factory method.
> request to a repository property throws ClassCastException
> ----------------------------------------------------------
>
> Key: SLING-161
> URL: https://issues.apache.org/jira/browse/SLING-161
> Project: Sling
> Issue Type: Bug
> Reporter: Tobias Bocanegra
> Assignee: Felix Meschberger
>
> The node '/content/test/ contains a property named 'test':
> The requested URL /content/test/test.html resulted in an error in Sling Default Error Handler Servlet.
> Exception:
> java.lang.ClassCastException: org.apache.jackrabbit.core.PropertyImpl
> at org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResource.(JcrNodeResource.java:77)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl.getResource(JcrResourceResolverFactoryImpl.java:247)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.getResourceInternal(JcrResourceResolver.java:594)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.scanPath(JcrResourceResolver.java:575)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.transformURL(JcrResourceResolver.java:545)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.resolve(JcrResourceResolver.java:251)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.resolve(JcrResourceResolver.java:103)
> at org.apache.sling.core.impl.request.RequestData.(RequestData.java:157)
> ....
> Suggest to ignore properties in resource resolution and interpret them as suffix. so the above should resolve to the resource at '/content/test'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (SLING-161) request to a repository property
throws ClassCastException
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger reassigned SLING-161:
---------------------------------------
Assignee: Felix Meschberger
> request to a repository property throws ClassCastException
> ----------------------------------------------------------
>
> Key: SLING-161
> URL: https://issues.apache.org/jira/browse/SLING-161
> Project: Sling
> Issue Type: Bug
> Reporter: Tobias Bocanegra
> Assignee: Felix Meschberger
>
> The node '/content/test/ contains a property named 'test':
> The requested URL /content/test/test.html resulted in an error in Sling Default Error Handler Servlet.
> Exception:
> java.lang.ClassCastException: org.apache.jackrabbit.core.PropertyImpl
> at org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResource.(JcrNodeResource.java:77)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl.getResource(JcrResourceResolverFactoryImpl.java:247)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.getResourceInternal(JcrResourceResolver.java:594)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.scanPath(JcrResourceResolver.java:575)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.transformURL(JcrResourceResolver.java:545)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.resolve(JcrResourceResolver.java:251)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.resolve(JcrResourceResolver.java:103)
> at org.apache.sling.core.impl.request.RequestData.(RequestData.java:157)
> ....
> Suggest to ignore properties in resource resolution and interpret them as suffix. so the above should resolve to the resource at '/content/test'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.