Great! I will update the source with the change ASAP.

Oliver

Frank Taffelt wrote:

BINGO !!!

now it works.

many thanks,
Frank

----- Original Message -----
From: "Oliver Zeigermann" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, June 24, 2004 3:47 PM
Subject: Re: experiences with the LDAP Store



Hmmm, try this

    public NodeRevisionContent retrieveRevisionContent(Uri uri,
NodeRevisionDescriptor revisionDescriptor)
        throws ServiceAccessException, RevisionNotFoundException {
            NodeRevisionContent nrc =  new NodeRevisionContent();
            nrc.setContent(new char[0]);
            return nrc;
    }

This is my last idea. Maybe James can help?

Oliver

Frank Taffelt wrote:


LDAP store defines at line 565 the following methods:

public NodeRevisionContent retrieveRevisionContent(Uri uri,
NodeRevisionDescriptor revisionDescriptor)
       throws ServiceAccessException, RevisionNotFoundException {
       return new NodeRevisionContent();
   }

   public void createRevisionContent(
       Uri uri,
       NodeRevisionDescriptor revisionDescriptor,
       NodeRevisionContent revisionContent)
       throws ServiceAccessException, RevisionAlreadyExistException {
   }

   public void storeRevisionContent(
       Uri uri,
       NodeRevisionDescriptor revisionDescriptor,
       NodeRevisionContent revisionContent)
       throws ServiceAccessException, RevisionNotFoundException {
   }

   public void removeRevisionContent(Uri uri, NodeRevisionDescriptor
revisionDescriptor)
       throws ServiceAccessException {
   }

i'm not that into the slide api stuff, but the method
"retrieveRevisionContent" returns an default NodeRevisionContent, is

this

correct ?

Frank

----- Original Message -----
From: "Oliver Zeigermann" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, June 24, 2004 2:58 PM
Subject: Re: experiences with the LDAP Store




Maybe it is because Slide tries to write content to the LDAP store? This
does not implement content stuff properly, right?

Oliver

Frank Taffelt wrote:



this didn't help

Frank
----- Original Message -----
From: "Oliver Zeigermann" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, June 24, 2004 2:19 PM
Subject: Re: experiences with the LDAP Store





Looks different from what I expected, but this still can be the same
problem. Please, try changing the constructor of SlideTokenWrapper to
always set forceStoreEnlistment tp true as this effectively disables
reads outside of transactions. If this does not help, there must be
another problem...

Oliver

Frank Taffelt wrote:




the relevant parts:

24 Jun 2004 14:04:33 -

org.apache.slide.store.txjndi.JNDIPrincipalStore -



INFO - Calling retrieveRevisionDescriptors(/users).
24 Jun 2004 14:04:33 -

org.apache.slide.store.txjndi.JNDIPrincipalStore -



INFO - Calling retrieveRevisionDescriptor(/users).
24 Jun 2004 14:04:33 - org.apache.slide.common.Domain - WARNING -

Invalid



object at  : No content
24 Jun 2004 14:04:33 - org.apache.slide.common.Namespace - ERROR -

Unable to



read Namespace base configuration file :
24 Jun 2004 14:04:33 - org.apache.slide.common.Namespace - ERROR -
org.apache.slide.common.ObjectValidationFailedException: Invalid

object

at



: No content
org.apache.slide.common.ObjectValidationFailedException: Invalid

object

at



: No content
at



org.apache.slide.content.NodeRevisionContent.validate(NodeRevisionContent.ja

va:299)
at



org.apache.slide.store.AbstractStore.retrieveRevisionContent(AbstractStore.j

ava:1185)
at



org.apache.slide.store.ExtendedStore.retrieveRevisionContent(ExtendedStore.j

ava:326)
at

org.apache.slide.content.ContentImpl.retrieve(ContentImpl.java:352)

at



org.apache.slide.common.XMLUnmarshaller.loadObjectRevision(XMLUnmarshaller.j

ava:405)
at



org.apache.slide.common.XMLUnmarshaller.loadDefaultObjectRevision(XMLUnmarsh

aller.java:331)
at



org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:

261)
at



org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:

295)
at



org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:90)

at



org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessT

okenImpl.java:267)
at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:775)
at org.apache.slide.common.Domain.initNamespace(Domain.java:814)
at org.apache.slide.common.Domain.init(Domain.java:433)
at org.apache.slide.common.Domain.selfInit(Domain.java:747)
at org.apache.slide.common.Domain.accessNamespace(Domain.java:235)
at de.ifbus.Test.main(Test.java:40)
24 Jun 2004 14:04:33 - org.apache.slide.common.Namespace - INFO -

Loading



namespace slide configuration
uri = /actions/read
aRootPath = C:\DOKUME~1\frank\LOKALE~1\Temp , uri = /actions/read
24 Jun 2004 14:04:33 - org.apache.slide.common.Domain - ERROR -
org.apache.slide.structure.ObjectNotFoundException: No object found

at

/actions/read
org.apache.slide.structure.ObjectNotFoundException: No object found

at

/actions/read
at



slidestore.file.AbstractUriProperties.retrieveObject(AbstractUriProperties.j

ava:116)
at



org.apache.slide.store.txfile.TxXMLFileDescriptorsStore.retrieveObject(TxXML

FileDescriptorsStore.java:79)
at



org.apache.slide.store.AbstractStore.retrieveObject(AbstractStore.java:498)

at



org.apache.slide.store.ExtendedStore.retrieveObject(ExtendedStore.java:408)

at



org.apache.slide.common.NamespaceConfig.getActionNode(NamespaceConfig.java:1

059)
at



org.apache.slide.common.NamespaceConfig.getConfiguredNode(NamespaceConfig.ja

va:806)
at



org.apache.slide.common.NamespaceConfig.initializeNamespaceConfig(NamespaceC

onfig.java:676)
at

org.apache.slide.common.Namespace.loadConfiguration(Namespace.java:836)



at org.apache.slide.common.Domain.initNamespace(Domain.java:819)
at org.apache.slide.common.Domain.init(Domain.java:433)
at org.apache.slide.common.Domain.selfInit(Domain.java:747)
at org.apache.slide.common.Domain.accessNamespace(Domain.java:235)
at de.ifbus.Test.main(Test.java:40)
24 Jun 2004 14:04:33 - org.apache.slide.common.Domain - INFO - Domain
initialization complete
get Paramter : acl_semantics
java.lang.NullPointerException
at



org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:57

0)
at



org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessToken

Impl.java:83)
at org.apache.slide.common.Domain.accessNamespace(Domain.java:244)
at de.ifbus.Test.main(Test.java:40)
Exception in thread "main"

the line Number's may slightly differ from the slide 2.0 ones,

because

i


inserted some debug statements into the code to track down the

problem.



----- Original Message -----
From: "Oliver Zeigermann" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, June 24, 2004 1:58 PM
Subject: Re: experiences with the LDAP Store






Could you provide the full stack trace, please? It might be the same
problem - security stuff is checked outside of transactions - I had

the


other day.

Oliver

Frank Taffelt wrote:





Hi,

i have some questions after experimenting with the ldap store in

the

last




days:

here's a short description of what i tried with slide - 2.0 :

* got a clean Slide (means no stores and work directory) and

changed

only




domain.xml to JNDI Domain.xml starting up slide and got the

following

exception:

...
24 Jun 2004 13:08:24 - org.apache.slide.common.Domain - ERROR -
org.apache.slide.structure.ObjectNotFoundException: No object found

at


/actions/read
...

* i'm pretty sure that my jndidomain.xml is correct !!

* i modified domain.xml with 2 wrong ldap url's for /users and

/roles

* starting up slide again with the wrong ldap config (got some

exceptions




about the wrong ldap url but slide is initializing completely !!)

* shutting down slide

* correcting the wrong ldap urls's starting slide again

* now i can work with the ldap store and retrieve the users tree

;-)

it seems that there is something funny running the ldap store the

first


time




???

any ideas ?

thanks,
Frank



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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to