Hi,

I create a ECMA script:


Code:
--------------------

var tracer= new Packages.com.novell.nds.dirxml.driver.Trace("ECMAS cript");
function changePwd(){
tracer.trace("craete java calss instacne---start");
var test = new Packages.tw.com.thinkon.anchor.action.Test();
tracer.trace("craete java calss instacne---ok");

tracer.trace("send mail ---start");
test.sendEmailTest();
tracer.trace("send mail ---ok");

tracer.trace("call webservice ---start");
test.changePassword2();
tracer.trace("call webservice ---ok");
return "ok";
}

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



User Null Driver,and get log :

[04/14/2014 13:22:39.305] Generic Null ST: Action:
do-set-local-variable("testMail",scope="policy",token-xpath("es:testMail()")).
[04/14/2014 13:22:39.305] Generic Null ST:
arg-string(token-xpath("es:testMail()"))
[04/14/2014 13:22:39.305] Generic Null ST:
token-xpath("es:testMail()")
[04/14/2014 13:22:39.305] start
[04/14/2014 13:22:39.305]
[04/14/2014 13:22:43.018] down
[04/14/2014 13:22:43.018]
[04/14/2014 13:22:43.018] Generic Null ST: Token Value:
"com.novell.xsl.extensions.JavaVoid@33bd06a0".
[04/14/2014 13:22:43.018] Generic Null ST: Arg Value:
"com.novell.xsl.extensions.JavaVoid@33bd06a0".
[04/14/2014 13:22:43.018] Generic Null ST: Action:
do-set-local-variable("runChangePwd",scope="policy",token-xpath("es:changePwd()")).
[04/14/2014 13:22:43.018] Generic Null ST:
arg-string(token-xpath("es:changePwd()"))
[04/14/2014 13:22:43.018] Generic Null ST:
token-xpath("es:changePwd()")
[04/14/2014 13:22:43.018] Generic Null ST: ECMAS cript:
craete java calss instacne---start
[04/14/2014 13:22:43.018] Generic Null ST: ECMAS cript:
craete java calss instacne---ok
[04/14/2014 13:22:43.018] Generic Null ST: ECMAS cript: send
mail ---start
[04/14/2014 13:22:43.018] start
[04/14/2014 13:22:43.018]
[04/14/2014 13:22:46.076] down
[04/14/2014 13:22:46.076]
[04/14/2014 13:22:46.076] Generic Null ST: ECMAS cript: send
mail ---ok
[04/14/2014 13:22:46.076] Generic Null ST: ECMAS cript: call
webservice ---start
[04/14/2014 13:22:46.076] Generic Null ST:
DirXML Log Event -------------------
Driver: \THINKON\system\Driver Set\Generic Null
Channel: Subscriber
Status: Error
Message: Code(-9131) Error in
vnd.nds.stream://THINKON/system/Driver+Set/Generic+Null/Subscriber/NpamWebervice#XmlData:67
: Error evaluating XPATH expression 'token-xpath("es:changePwd()")' :
com.novell.xml.xpath.XPathEvaluationException: function 'es:changePwd'
not found.
[04/14/2014 13:22:46.294] Generic Null ST:
DirXML Log Event -------------------
Driver: \THINKON\system\Driver Set\Generic Null
Channel: Subscriber
Status: Error
Message: Code(-9083) Error submitting event to subscriber:
Code(-9131) Error in
vnd.nds.stream://THINKON/system/Driver+Set/Generic+Null/Subscriber/NpamWebervice#XmlData:67
: Error evaluating XPATH expression 'token-xpath("es:changePwd()")' :
com.novell.xml.xpath.XPathEvaluationException: function 'es:changePwd'
not found.
[04/14/2014 13:22:46.512] Generic Null EV: Physically purged 228 bytes
from cache 32918.TAO
[04/14/2014 13:22:46.512] Generic Null EV: Elapsed time: 2.952
milliseconds



you can see to send email is ok and to call webservice is error.

It is on the same java class, I don't know how to solve it.

The lib of java contain axis.jar, wsdl4j.jar, jaxen-1.1-beta-6.jar,
jaxrpc.jar, commons-email-1.3.2.jar, mail-1.4.4.jar,
commons-discovery-0.2.jar, commons-logging-1.1.1.jar,
logback-classic-1.0.9.jar, logback-core-1.0.9.jar, slf4j-api-1.6.1.jar.

Maybe is Conflict of lib ???

thanks


--
rickInTw
------------------------------------------------------------------------
rickInTw's Profile: https://forums.netiq.com/member.php?userid=6885
View this thread: https://forums.netiq.com/showthread.php?t=50527