Hello Stephen,

Ahh yes, you are right. I am running 3.4.2. I will try upgrade to a
newer version and see if it works.

On Wed, Jul 13, 2011 at 2:33 PM, Stephen Bayliss
<stephen.bayl...@acuityunlimited.net> wrote:
> Hello Tomasz
>
> I am guessing you are using Fedora 3.4.2 from the log.
>
> Resource index query-based attributes are a new feature in Fedora 3.5; which
> would explain the error I think.
>
> Regards
> Steve
>
>> -----Original Message-----
>> From: Tomasz Cielecki [mailto:tom...@ostebaronen.dk]
>> Sent: 13 July 2011 13:04
>> To: fedora-commons-users@lists.sourceforge.net
>> Subject: [fcrepo-user] Trouble adding own attribute designator
>>
>>
>> Hello,
>>
>> I am trying to add the following attribute designator in
>> $FEDORA_HOME/pdp/conf/config-attribute-finder.xml
>>
>>                 <attribute designator="resource"
>> name="http://kemibrug.dk/k2/rdf#notesPids";>
>>                         <config name="queryLang" value="sparql"/>
>>                         <config name="value" value="notesPids"/>
>>                         <config name="query" value="SELECT
>> ?pid WHERE {?pid &lt;dc:identifier&gt; ?ident FILTER
>> (REGEX(STR(?ident), "note"))}"/>
>>                 </attribute>
>>
>> For some reason it makes fedora throw exceptions when trying
>> to access objects in the database:
>>
>> ERROR 2011-07-13 14:02:00.657 [http-8080-1] (DirectPDPClient)
>> Error evaluating request.
>> java.lang.NullPointerException: null
>>         at
>> org.fcrepo.server.security.xacml.pdp.finder.attribute.FedoraRI
>> AttributeFinder.getSupportedDesignatorTypes(FedoraRIAttributeF
>> inder.java:94)
>> [fcrepo-security-pdp-3.4.2.jar:na]
>>         at
>> com.sun.xacml.finder.AttributeFinder.findAttribute(AttributeFi
>> nder.java:168)
>> [sunxacml-1.2-melcoe.jar:na]
>>         at
>> com.sun.xacml.BasicEvaluationCtx.callHelper(BasicEvaluationCtx
>> .java:661)
>> [sunxacml-1.2-melcoe.jar:na]
>>         at
>> com.sun.xacml.BasicEvaluationCtx.getGenericAttributes(BasicEva
>> luationCtx.java:617)
>> [sunxacml-1.2-melcoe.jar:na]
>>         at
>> com.sun.xacml.BasicEvaluationCtx.getSubjectAttribute(BasicEval
>> uationCtx.java:551)
>> [sunxacml-1.2-melcoe.jar:na]
>>         at
>> com.sun.xacml.BasicEvaluationCtx.getSubjectAttribute(BasicEval
>> uationCtx.java:523)
>> [sunxacml-1.2-melcoe.jar:na]
>>         at
>> org.fcrepo.server.security.xacml.pdp.data.DbXmlPolicyIndex.get
>> AttributeMap(DbXmlPolicyIndex.java:425)
>> [fcrepo-security-pdp-3.4.2.jar:na]
>>         at
>> org.fcrepo.server.security.xacml.pdp.data.DbXmlPolicyIndex.get
>> Policies(DbXmlPolicyIndex.java:129)
>> [fcrepo-security-pdp-3.4.2.jar:na]
>>         at
>> org.fcrepo.server.security.xacml.pdp.finder.policy.PolicyManag
>> er.getPolicy(PolicyManager.java:147)
>> [fcrepo-security-pdp-3.4.2.jar:na]
>>         at
>> org.fcrepo.server.security.xacml.pdp.finder.policy.GenericPoli
>> cyFinderModule.findPolicy(GenericPolicyFinderModule.java:100)
>> [fcrepo-security-pdp-3.4.2.jar:na]
>>         at
>> com.sun.xacml.finder.PolicyFinder.findPolicy(PolicyFinder.java:164)
>> [sunxacml-1.2-melcoe.jar:na]
>>         at com.sun.xacml.PDP.evaluateContext(PDP.java:231)
>> [sunxacml-1.2-melcoe.jar:na]
>>         at com.sun.xacml.PDP.evaluate(PDP.java:221)
>> [sunxacml-1.2-melcoe.jar:na]
>>         at com.sun.xacml.PDP.evaluate(PDP.java:125)
>> [sunxacml-1.2-melcoe.jar:na]
>>         at
>> org.fcrepo.server.security.xacml.pdp.MelcoePDPImpl.evaluate(Me
>> lcoePDPImpl.java:118)
>> [fcrepo-security-pdp-3.4.2.jar:na]
>>         at
>> org.fcrepo.server.security.xacml.pep.DirectPDPClient.evaluate(
>> DirectPDPClient.java:74)
>> [fcrepo-security-pep-3.4.2.jar:na]
>>         at
>> org.fcrepo.server.security.xacml.pep.EvaluationEngineImpl.eval
>> uate(EvaluationEngineImpl.java:108)
>> [fcrepo-security-pep-3.4.2.jar:na]
>>         at
>> org.fcrepo.server.security.xacml.pep.EvaluationEngineImpl.eval
>> uate(EvaluationEngineImpl.java:80)
>> [fcrepo-security-pep-3.4.2.jar:na]
>>         at
>> org.fcrepo.server.security.xacml.pep.EvaluationEngineImpl.eval
>> uate(EvaluationEngineImpl.java:60)
>> [fcrepo-security-pep-3.4.2.jar:na]
>>         at
>> org.fcrepo.server.security.xacml.pep.ContextHandlerImpl.evalua
>> te(ContextHandlerImpl.java:126)
>> [fcrepo-security-pep-3.4.2.jar:na]
>>         at
>> org.fcrepo.server.security.xacml.pep.rest.PEP.doFilter(PEP.java:149)
>> [fcrepo-security-pep-3.4.2.jar:na]
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
>> er(ApplicationFilterChain.java:235)
>> [catalina.jar:na]
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
>> cationFilterChain.java:206)
>> [catalina.jar:na]
>>         at
>> org.fcrepo.server.security.jaas.AuthFilterJAAS.doFilter(AuthFi
>> lterJAAS.java:295)
>> [fcrepo-security-jaas-3.4.2.jar:na]
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
>> er(ApplicationFilterChain.java:235)
>> [catalina.jar:na]
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
>> cationFilterChain.java:206)
>> [catalina.jar:na]
>>         at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
>> rapperValve.java:233)
>> [catalina.jar:na]
>>         at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardC
>> ontextValve.java:191)
>> [catalina.jar:na]
>>         at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut
>> henticatorBase.java:525)
>> [catalina.jar:na]
>>         at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
>> Valve.java:128)
>> [catalina.jar:na]
>>         at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
>> Valve.java:102)
>> [catalina.jar:na]
>>         at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
>> gineValve.java:109)
>> [catalina.jar:na]
>>         at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdap
>> ter.java:293)
>> [catalina.jar:na]
>>         at
>> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprP
>> rocessor.java:859)
>> [tomcat-coyote.jar:na]
>>         at
>> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHan
>> dler.process(Http11AprProtocol.java:574)
>> [tomcat-coyote.jar:na]
>>         at
>> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.
>> java:1527)
>> [tomcat-coyote.jar:na]
>>         at java.lang.Thread.run(Thread.java:662) [na:1.6.0_24]
>>
>> Did I do something wrong with the attribute designator? The
>> sparql query on its own works as intended. Did I miss something?
>>
>> --
>> Med Venlig Hilsen / With Best Regards
>> Tomasz Cielecki
>> http://ostebaronen.dk
>>
>> --------------------------------------------------------------
>> ----------------
>> AppSumo Presents a FREE Video for the SourceForge Community by Eric
>> Ries, the creator of the Lean Startup Methodology on "Lean Startup
>> Secrets Revealed." This video shows you how to validate your ideas,
>> optimize your ideas and identify your business strategy.
>> http://p.sf.net/sfu/appsumosfdev2dev
>> _______________________________________________
>> Fedora-commons-users mailing list
>> Fedora-commons-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>>
>
>
> ------------------------------------------------------------------------------
> AppSumo Presents a FREE Video for the SourceForge Community by Eric
> Ries, the creator of the Lean Startup Methodology on "Lean Startup
> Secrets Revealed." This video shows you how to validate your ideas,
> optimize your ideas and identify your business strategy.
> http://p.sf.net/sfu/appsumosfdev2dev
> _______________________________________________
> Fedora-commons-users mailing list
> Fedora-commons-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>



-- 
Med Venlig Hilsen / With Best Regards
Tomasz Cielecki
http://ostebaronen.dk

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to