hi,

hopefully a short to answer question

--------------
i start processing with that trigger document below


Code:
--------------------
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.10.4747">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<trigger event-id="trigger-job:Spray#20120105165841#0#0" source="Spray">
<operation-data source="Spray"/>
</trigger>
</input>
</nds>
--------------------


after some time i get:


Code:
--------------------
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.10.4747">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<trigger event-id="trigger-job:Spray#20120105165841#0#0" source="Spray">
<operation-data source="Spray"/>
</trigger>
<modify dest-dn="\test\cocoon\secoly\groups\myGroup001" event-id="trigger-job:Spray#20120105165841#0#0">
<modify-attr attr-name="Member">
<add-value>
<value>\test\cocoon\onely\r303cgrh</value>
</add-value>
</modify-attr>
</modify>
</input>
</nds>
--------------------



what id like to have is:


Code:
--------------------
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.10.4747">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<modify dest-dn="\test\cocoon\secoly\groups\myGroup001" event-id="trigger-job:Spray#20120105165841#0#0">
<modify-attr attr-name="Member">
<add-value>
<value>\test\cocoon\onely\r303cgrh</value>
</add-value>
</modify-attr>
</modify>
</input>
</nds>
--------------------



ive tried to strip the trigger operation with
Code:
--------------------
<do-strip-xpath expression="."/>
--------------------
from the document, but that not leaves the modify alone (as was
expected), but results in a looong

Code:
--------------------
Message: Code(-9010) An exception occurred: java.lang.NullPointerException
at com.novell.nds.dirxml.engine.rules.RuleUtil.findOr CreateModOperation(RuleUtil.java:1394)
at com.novell.nds.dirxml.engine.rules.DoAddDestAttrVa lue.apply(DoAddDestAttrValue.java:185)
at com.novell.nds.dirxml.engine.rules.ActionSet.apply (ActionSet.java:177)
at com.novell.nds.dirxml.engine.rules.DoIf.apply(DoIf .java:84)
at com.novell.nds.dirxml.engine.rules.ActionSet.apply (ActionSet.java:177)
at com.novell.nds.dirxml.engine.rules.DoForEach.apply (DoForEach.java:137)
at com.novell.nds.dirxml.engine.rules.ActionSet.apply (ActionSet.java:177)
at com.novell.nds.dirxml.engine.rules.DoForEach.apply (DoForEach.java:137)
at com.novell.nds.dirxml.engine.rules.ActionSet.apply (ActionSet.java:177)
at com.novell.nds.dirxml.engine.rules.DirXMLScriptPro cessor.applyRules(DirXMLScriptProcessor.java:298)
at com.novell.nds.dirxml.engine.Subscriber.processEve nts(Subscriber.java:854)
at com.novell.nds.dirxml.engine.Driver.submitTransact ion(Driver.java:624)
at com.novell.nds.dirxml.engine.DriverEntry.submitTra nsaction(DriverEntry.java:1050)
at com.novell.nds.dirxml.engine.DriverEntry.processCa chedTransaction(DriverEntry.java:934)
at com.novell.nds.dirxml.engine.DriverEntry.eventLoop (DriverEntry.java:756)
at com.novell.nds.dirxml.engine.DriverEntry.run(Drive rEntry.java:561)
at java.lang.Thread.run(Thread.java:619)
--------------------
error and breaking the operation.
i could let the modify get done directly, and let the trigger run dead
against the filter, but id prefer to have it stripped out in the first
place and let the modify run through to the (successful) end.

my questions are:
1. why does that happen?
2. how could a clean document, solely containing the modify, be
achieved?

thanks in advance for your comment(s), florian


--
florianz
------------------------------------------------------------------------
florianz's Profile: http://forums.novell.com/member.php?userid=210
View this thread: http://forums.novell.com/showthread.php?t=450336