Highlighted
Honored Contributor.
Honored Contributor.
993 views

9131 and 9083 errors when executing ecmascript

using:

token-xpath("es:makeAscii($lv-Given)")


[10/31/17 06:27:23.629]:Business logic driver ST: Action: do-set-local-variable("lv-first2ascii",scope="policy",token-replace-all("[^a-zA-Z]","",token-xpath("es:makeAscii
($lv-Given)"))).
[10/31/17 06:27:23.629]:Business logic driver ST: arg-string(token-replace-all("[^a-zA-Z]","",token-xpath("es:makeAscii($lv-Given)")))
[10/31/17 06:27:23.629]:Business logic driver ST: token-replace-all("[^a-zA-Z]","",token-xpath("es:makeAscii($lv-Given)"))
[10/31/17 06:27:23.630]:Business logic driver ST: token-replace-all("[^a-zA-Z]","",token-xpath("es:makeAscii($lv-Given)"))
[10/31/17 06:27:23.630]:Business logic driver ST: token-xpath("es:makeAscii($lv-Given)")
[10/31/17 06:27:23.634]:Business logic driver ST:
DirXML Log Event -------------------
Driver: \DEV-TREE\system\DriverSet\Business logic driver
Channel: Subscriber
Status: Error
Message: Code(-9131) Error in vnd.nds.stream://DEV-TREE/system/DriverSet/Business+logic+driver/Subscriber/IDMW-sub-etp-Modify#XmlData:1239 : Error evaluating XPATH ex
pression 'token-xpath("es:makeAscii($lv-Given)")' : com.novell.xml.xpath.XPathEvaluationException: TypeError: Cannot call property decompose in object [JavaPackage com.ibm.icu
.text.Normalizer]. It is not a function, it is "object". (vnd.nds.stream://DEV-TREE/system/DriverSet/Library/NOVLLIBAJC-JS#DirXML-Data#1911).
[10/31/17 06:27:23.643]:Business logic driver ST:
DirXML Log Event -------------------
Driver: \DEV-TREE\system\DriverSet\Business logic driver
Channel: Subscriber
Status: Error
Message: Code(-9083) Error submitting event to subscriber: Code(-9131) Error in vnd.nds.stream://DEV-TREE/system/DriverSet/Business+logic+driver/Subscriber/IDMW-sub-e
tp-Modify#XmlData:1239 : Error evaluating XPATH expression 'token-xpath("es:makeAscii($lv-Given)")' : com.novell.xml.xpath.XPathEvaluationException: TypeError: Cannot call pro
perty decompose in object [JavaPackage com.ibm.icu.text.Normalizer]. It is not a function, it is "object". (vnd.nds.stream://DEV-TREE/system/DriverSet/Library/NOVLLIBAJC-JS
#DirXML-Data#1911).
[10/31/17 06:27:41.731]:Business logic driver PT:Receiving DOM document from application.
[10/31/17 06:27:41.731]:Business logic driver PT:


The NOVLLIBAJC-JS is in the Library and is added to the ecmascript configuration on the driver.

Tried deleting and redeploying the entire driver with no success, same error

The namespace prefix and URI are present: es & http://www.novell.com/nxsl/ecmascript --- java extension is unchecked.

thanks,
Fred
Labels (1)
0 Likes
8 Replies
Highlighted
Knowledge Partner
Knowledge Partner

On 10/31/2017 9:36 AM, fp IDMWORKS wrote:
>
> using:
>
> token-xpath("es:makeAscii($lv-Given)")
>
>
> [10/31/17 06:27:23.629]:Business logic driver ST: Action:
> do-set-local-variable("lv-first2ascii",scope="policy",token-replace-all("[^a-zA-Z]","",token-xpath("es:makeAscii
> ($lv-Given)"))).
> [10/31/17 06:27:23.629]:Business logic driver ST:
> arg-string(token-replace-all("[^a-zA-Z]","",token-xpath("es:makeAscii($lv-Given)")))
> [10/31/17 06:27:23.629]:Business logic driver ST:
> token-replace-all("[^a-zA-Z]","",token-xpath("es:makeAscii($lv-Given)"))
> [10/31/17 06:27:23.630]:Business logic driver ST:
> token-replace-all("[^a-zA-Z]","",token-xpath("es:makeAscii($lv-Given)"))
> [10/31/17 06:27:23.630]:Business logic driver ST:
> token-xpath("es:makeAscii($lv-Given)")
> [10/31/17 06:27:23.634]:Business logic driver ST:
> DirXML Log Event -------------------
> Driver: \DEV-TREE\system\DriverSet\Business logic driver
> Channel: Subscriber
> Status: Error
> Message: Code(-9131) Error in
> vnd.nds.stream://DEV-TREE/system/DriverSet/Business+logic+driver/Subscriber/IDMW-sub-etp-Modify#XmlData:1239
> : Error evaluating XPATH ex
> pression 'token-xpath("es:makeAscii($lv-Given)")' :
> com.novell.xml.xpath.XPathEvaluationException: TypeError: Cannot call
> property decompose in object [JavaPackage com.ibm.icu
> .text.Normalizer]. It is not a function, it is "object".
> (vnd.nds.stream://DEV-TREE/system/DriverSet/Library/NOVLLIBAJC-JS#DirXML-Data#1911).
> [10/31/17 06:27:23.643]:Business logic driver ST:
> DirXML Log Event -------------------
> Driver: \DEV-TREE\system\DriverSet\Business logic driver
> Channel: Subscriber
> Status: Error
> Message: Code(-9083) Error submitting event to subscriber:
> Code(-9131) Error in
> vnd.nds.stream://DEV-TREE/system/DriverSet/Business+logic+driver/Subscriber/IDMW-sub-e
> tp-Modify#XmlData:1239 : Error evaluating XPATH expression
> 'token-xpath("es:makeAscii($lv-Given)")' :
> com.novell.xml.xpath.XPathEvaluationException: TypeError: Cannot call
> pro
> perty decompose in object [JavaPackage com.ibm.icu.text.Normalizer]. It
> is not a function, it is "object".
> (vnd.nds.stream://DEV-TREE/system/DriverSet/Library/NOVLLIBAJC-JS
> #DirXML-Data#1911).
> [10/31/17 06:27:41.731]:Business logic driver PT:Receiving DOM document
> from application.
> [10/31/17 06:27:41.731]:Business logic driver PT:
>
>
> The NOVLLIBAJC-JS is in the Library and is added to the ecmascript
> configuration on the driver.


I could go look, but I am lazy. LibAJC provides the function? If so,
it would look like the ECMA is broken due to a Java update.

So I went and looked. ECMA is:

function makeAscii(s0)
{
var sDecomposed =
String(Packages.com.ibm.icu.text.Normalizer.decompose(s0, false));
var sASCII = "";

for (var i = 0; i < sDecomposed.length; ++i)
{
if ( 0 ==
Packages.com.ibm.icu.lang.UCharacter.getCombiningClass(sDecomposed.charCodeAt(i))
)
{
sASCII += sDecomposed.charAt(i);
}
}
return sASCII;
}

I am not sure how to fix it, but someone else here will know. (I see
Designers ECMA is broken with this as well.)



> Tried deleting and redeploying the entire driver with no success, same
> error
>
> The namespace prefix and URI are present: es &
> http://www.novell.com/nxsl/ecmascript --- java extension is unchecked.
>
>
> thanks,
> Fred
>
>


0 Likes
Highlighted
Knowledge Partner
Knowledge Partner

fp IDMWORKS <fp_IDMWORKS@no-mx.forums.microfocus.com> wrote:
>

using:
>
>
> JavaPackage com.ibm.icu
> .text.Normalizer


This Java class doesn't ship with IDM. You need to install it manually.
Alex McHugh - Knowledge Partner - Stavanger, Norway
Who are the Knowledge Partners
If you appreciate my comments, please click the Like button.
If I have resolved your issue, please click the Accept as Solution button.
0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

yes, thank you.

I didn't recall copying that jar file into the dev environment from a third party.

All is good now.

I would have thought we would have an i/o or file not found type of a message.
0 Likes
Highlighted
Knowledge Partner
Knowledge Partner

On 10/31/2017 01:44 PM, fp IDMWORKS wrote:
>
> yes, thank you.
>
> I didn't recall copying that jar file into the dev environment from a
> third party.
>
> All is good now.
>
> I would have thought we would have an i/o or file not found type of a
> message.


Silly note: seeing something about a file not being found is really rare
in Java, at least when it comes to missing JARs, because Java is seldom
used to dynamically load classes, instead having all of the JARs or other
class files directly on the classpath, so either it is there, or it is
not. IDM changes this a tiny bit, but ultimately it behaves the same way.
The names of JARs are meaningless anyway, so going out and finding the
right JAR magically is a brute-force task of opening everything available,
looking inside, and then loading. This is just not Java's thing.

With that mess written, I'm expected something like NoClassDefFound
instead, but maybe this is getting mixed up because we are actually in
Rhino (JavaScript in Java) so that request for the particular package was
treated differently, or may be overloaded by something else in the Rhino
implementation. Interesting, in any case.

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.
0 Likes
Highlighted
Super Contributor.
Super Contributor.

I'm having the same issue with IDM4.8.  JDBC driver.

I've added the library NOVLLIBAJC-JS to the library under the driverset and I've added the library to the driver properties under ecmascript.  I re-deployed the driver, library and driverset properties from designer.  I see both in iManager along with an ecmascript object.  But I'm still seeing this error

DirXML Log Event -------------------
Driver: \IDMDEV\wsfg\ws\servers\IDMVaultDriverSet\JDBC-ADP-Oracle
Channel: Subscriber
Status: Error
Message: Code(-9131) Error in vnd.nds.stream://IDMDEV/wsfg/ws/servers/IDMVaultDriverSet/JDBC-ADP-Oracle/Subscriber/sub-etp-passwordTest#XmlData:21 : Error evaluating XPATH expression 'token-xpath("es:createPassword4(2,2,0)


")' : com.novell.xml.xpath.XPathEvaluationException: function 'es:createPassword4' not found.
[01/31/20 13:44:21.467]:JDBC-ADP ST:
DirXML Log Event -------------------
Driver: \IDMDEV\wsfg\ws\servers\IDMVaultDriverSet\JDBC-ADP-Oracle
Channel: Subscriber
Status: Error
Message: Code(-9083) Error submitting event to subscriber: Code(-9131) Error in vnd.nds.stream://IDMDEV/wsfg/ws/servers/IDMVaultDriverSet/JDBC-ADP-Oracle/Subscriber/sub-etp-passwordTest#XmlData:21 : Error evaluating XPATH expression 'token-xpath("es:createPassword4(2,2,0)


Peggy Townsend
Novacoast
0 Likes
Highlighted
Knowledge Partner
Knowledge Partner

Peggy,

can you validate that the ECMA object is linked to the Driver object?

Look at the DirXML-Policies in an LDAP browser, do you see the DN of LIB AJC object in there?  The two numbers in the TypedName syntax attribute in LDAP are order (starts at 0) then position in the fishbone flow. 

https://community.microfocus.com/t5/Identity-Manager-Tips/Talking-about-the-DirXML-Policies-attributes/ta-p/1773766

ECMA is linked at #3. 

 


0 Schema Map
1 Input Transform
2 Output Transform
3 ECMA Script Object
4 Sub Event Transform
5 Pub Event Transform
6 Sub Match
7 Pub Match
8 Sub Create
9 Pub Create
10 Sub Command Transform
11 Pub Command Transform
12 Sub Placement
13 Pub Placement
14 GCV Objects
15 Startup (New in IDM 4.0.2.3)
16 Shutdown (New in IDM 4.0.2.3)

 

dirxml-policies.jpg

 

0 Likes
Highlighted
Super Contributor.
Super Contributor.

  I found the entry below in the dirxml-policies of the driver in question.  If I understood correctly the final #3 indicates that it is bound to the driverset.  Is that correct?

 

cn=NOVLLIBAJC-JS,cn=Library,cn=IDMVaultDriverSet,ou=servers,ou=ws,o=wsfg#0#3


Peggy Townsend
Novacoast
0 Likes
Highlighted
Super Contributor.
Super Contributor.

The java extension check box was checked when it should not have been.


Peggy Townsend
Novacoast
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.