Hello,all. I’ve met a wired problem when using webmthods,Pls help me out.
webMethods service description:the service generate the edi file if all the data is valid.
input: companyid,partnerid,batchNo
output:msgStr,fileStr
service execute:
- search database using batchNo,through a custom jdbc template, if every required field is not null, then the data is valid. If not, the sql is return the error message(like the email address cann’t be null) to msgStr.
2.branch on errWholeMsg.
if errWholeMsgis not null, it means we can’t generate the edi file. then the program will exit and return msgStr.Otherwise, the program will continue and get the right edi file from database.
the problem is that: when calling wm service from ie browser, it can executed correctly, but when called by another java application, sometimes it correctly but sometime it is not.I’ve save the pipeline data after the database validate(step 1), and found that the pipeline data is different.
ie execute pipelile data:the chinese charactor are about the validate message.like container no can’t be null
[highlight=xml]
[/highlight]
java application pipeline data:
[highlight=xml]
<?xml version="1.0" encoding="UTF-8"?> 2558 2558 D:\pipeline\afterDataFind.txt 2558 86 SNL CD00008001 2[/highlight]
because of the different pipeline data, the results also differed. in the java application case, errWholeMsg is null ,so the branch will not exit the program but in the IE case, errWholeMsg is not null which means the data is invalid and the program exits.
By the way, i’ve found when start the IS server, there is an error as blow:
wm.adapter.wmjdbc.admin:registerAdapter com.wm.pkg.art.error.DetailedServiceException: [ART.114.13] Adapter Runtime: Error occured while Adapter Runtime was loading adapter type “JDBCAdapter”. [ART.114.9] Adapter Runtime: Error(s) while registering adapter type JDBCAdapter.
wm.art.adapter.deployment:registerAdapterType com.wm.pkg.art.error.DetailedServiceException: [ART.114.13] Adapter Runtime: Error occured while Adapter Runtime was loading adapter type “JDBCAdapter”. [ART.114.9] Adapter Runtime: Error(s) while registering adapter type JDBCAdapter.
wm.art.adapter.deployment:registerAdapterType [ART.114.13] Adapter Runtime: Error occured while Adapter Runtime was loading adapter type “JDBCAdapter”. [ART.114.9] Adapter Runtime: Error(s) while registering adapter type JDBCAdapter.
wm.art.adapter.deployment:registerAdapterType [ART.114.9] Adapter Runtime: Error(s) while registering adapter type JDBCAdapter.
wm.art.adapter.deployment:registerAdapterType [ART.118.5057] Adapter Runtime (Connection): Adapter Runtime was unable to initialize 1 connection resources for the adapter “JDBCAdapter”.
Does anybody have met this problem before? Please help. And advice or commands are highly appreciated.
Many thanks.
Nancy