I have a driver that is using an ECMA script successfully in the test
environment. When I moved it to production, it fails to run the ECMA
script every time. Here is a snippet from the trace log:

[09/26/11 13:32:08.192]:NH PT: Applying rule 'Generate valid UID'.
[09/26/11 13:32:08.192]:NH PT: Action:
do-set-local-variable("command",scope="policy","ValidUID-iam2.sh
"+token-op-attr("NATIONAL_ID")+" "+token-op-attr("BIRTHDATE")).
[09/26/11 13:32:08.192]:NH PT: arg-string("ValidUID-iam2.sh
"+token-op-attr("NATIONAL_ID")+" "+token-op-attr("BIRTHDATE"))
[09/26/11 13:32:08.193]:NH PT: token-text("ValidUID-iam2.sh
")
[09/26/11 13:32:08.193]:NH PT: token-op-attr("NATIONAL_ID")
[09/26/11 13:32:08.193]:NH PT: Token Value: "123456789".
[09/26/11 13:32:08.193]:NH PT: token-text(" ")
[09/26/11 13:32:08.193]:NH PT: token-op-attr("BIRTHDATE")
[09/26/11 13:32:08.194]:NH PT: Token Value: "19850719".
[09/26/11 13:32:08.194]:NH PT: Arg Value: "ValidUID-iam2.sh
123456789 19850719".
[09/26/11 13:32:08.194]:NH PT: Action:
do-set-local-variable("varUID",scope="policy",arg-object(token-xpath("es:execCL($command)"))).
[09/26/11 13:32:08.194]:NH PT:
arg-object(token-xpath("es:execCL($command)"))
[09/26/11 13:32:08.195]:NH PT:
token-xpath("es:execCL($command)")
[09/26/11 13:32:08.286]:NH PT:
DirXML Log Event -------------------
Driver: \META-TREE\Services\Dirxml\DirXMLDriverSet\NewHires
Channel: Publisher
Status: Error
Message: Code(-9131) Error in
vnd.nds.stream://META-TREE/Services/Dirxml/DirXMLDriverSet/NewHires/Publisher/Create+UID#XmlData:23
: Error evaluating XPATH expression 'token-xpath("es:execCL($command)")'
: com.novell.xml.xpath.XPathEvaluationException: Wrapped
java.util.NoSuchElementException
(vnd.nds.stream://META-TREE/Services/Dirxml/DirXMLDriverSet/NewHires/execCL#DirXML-Data#21).
[09/26/11 13:32:08.295]:NH PT:

I have searched for any differences in the drivers, the OS, the
environment, etc. between the test and production environments and can't
find anything. Any ideas?


--
dparker73
------------------------------------------------------------------------
dparker73's Profile: http://forums.novell.com/member.php?userid=16091
View this thread: http://forums.novell.com/showthread.php?t=445689