Hi all, Thanks to everybody for having answered my message and for your comments. I have been reviewing and I have found what I guess the root of the problem could be.
In active link the indicated is the next: $PROCESS$ @@:java -Dentorno=......... But if it does not run in filter, is possible that the syntax is incorrect, and the correct could be: java -Dentorno=......... That is to say without '$PROCESS$ @@:'. In both cases, the instruction is assigned to a field by a Set Field action. Due to it all is in the customer's server and I do not have directly access to it, up to the next Monday they will not be able to modify the filter and testing. In case it failed, I will go on testing taking into account your advices. Anyway I will keep you informed updating with the result. Thanks, Sergio Tomillero Atul Vohra wrote: > > Sergio, > > When you call the code from the command line the environment variables are > based on your profile but when it is called from the filter it is based on > variables set in remedy. > > Try this out - > > Write a shell script (ex: javaapp.sh) that would call your java > application. In this script echo the environment variables. > > Run from command line > javaapp.sh >> envcommand.out 2>>&1 > > From the filter call the following: > javapp.sh >> envremedy.out 2>>&1 > > Compare the 2 out files and see the difference. Then set env variables as > needed in the shell script > > Atul >> ----- Original Message ----- >> From: "Sergio Tomillero" <[EMAIL PROTECTED]> >> To: arslist@ARSLIST.ORG >> Subject: Re: Problems calling java api from filter. >> Date: Tue, 21 Oct 2008 02:20:51 -0700 >> >> >> Hi Tristan, >> But if I can execute the instruction from the command line of the server, >> I >> suppose the patch and classpath are correct, aren't they? Or may be I >> should >> indicate something additional in Remedy Configuration? The ar.cfg are >> indicated al ARF-Java-Class-Path. >> >> kind regards >> >> >> >> >> [EMAIL PROTECTED] wrote: >> > >> > ** >> > Hi, Please be aware, >> > that you run the api program with the correct path and classpath >> > variable.You can use a shell script for testing purposes ! Cheers >> Tristan >> > -----Original Message----- Date: Tue, 21 Oct 2008 10:51:39 >> > +0200 Subject: Problems calling java api from filter. From: >> > Sergio Tomillero <[EMAIL PROTECTED]> To: >> > arslist@ARSLIST.ORG Hello People I have a strange >> > problem with an java api. The api is correct but it only runs from >> > active link. If I execute the api from the server's command >> > line, it runs correctly, but if I execute it from a filter, it does >> > not run returning ARERR 341. I have reviewed all logs >> > (arerror.log, arapi.log, filter.log, sql.log) but they do not show >> > anything special about the problem. As example, the >> > instruction in the server's command line, that runs Ok, should be >> > like this: java -Dentorno=D remedyServer.Access aaa RA111 >> > password JOT000 000000000012345 00098765 "Error DSE" >> > UA111 S JA2008 The instruction in the same in active link or >> > filter, as it islike this: $PROCESS$ @@:java -Dentorno=D >> > remedyServer.Access new $field1$ password $field2$ $field3$ >> > "$field4$" "$Description$" $field5$ $field6$ >> > "$field7$" J "$field8$" "$Field9$" >> > "$Field10$" As I have mentioned, from an active >> > link it runs, but from a filter fails. The >> > configuration is ARServer 5.1.2, Windows 2000. - Is it normal >> > that the same instruction runs from an active link and does not run >> > from a filter? - How can I find the error? What should I trace? Thanks >> in >> > advance, Sergio Tomillero -- View this message in context: >> > >> http://www.nabble.com/Problems-calling-java-api-from-filter.-tp20086003p20086003.html >> > Sent from the ARS (Action Request System) mailing list archive at >> > Nabble.com. >> > >> _______________________________________________________________________________ >> > UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum >> > Sponsor: www.rmsportal.com ARSlist: "Where the Answers >> > Are" __Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers >> > Are" >> > html___ >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Problems-calling-java-api-from-filter.-tp20086003p20086152.html >> Sent from the ARS (Action Request System) mailing list archive at >> Nabble.com. >> >> _______________________________________________________________________________ >> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org >> Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are" > >> > > _______________________________________________________________________________ > UNSUBSCRIBE or access ARSlist Archives at www.arslist.org > Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are" > > -- View this message in context: http://www.nabble.com/Problems-calling-java-api-from-filter.-tp20086003p20105419.html Sent from the ARS (Action Request System) mailing list archive at Nabble.com. _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"