Re: Problems calling java api from filter.

2008-10-28 Thread Sergio Tomillero
Hi people

I reply back with the final result.

I indicated the correct instruction in a filter, in a Run Process Action:

java -Dentorno=D remedyServer.Access new $field1$ password $field2$ $field3$
$field4$ $Description$ $field5$ $field6$ $field7$ J $field8$
$Field9$ $Field10$ 


It did not return an error, but the api did not do what it had to do. But if
instead of launching it from a filter it was launched from an active link,
the api worked correctly. 

So, I performed the actions to launch the filter in a Remedy User client in
the server's computer, and surprisingly the api worked. From that moment,
the api worked from any computer. It seems as the action of launching the
filter in the server's computer unblocked the api. In fact I have no logical
explanation for this. May be some of you have had an experiencie like this.
Anyway the problem has been resolved.

Thanks  regards,
Sergio Tomillero





-- 
View this message in context: 
http://www.nabble.com/Problems-calling-java-api-from-filter.-tp20086003p20205056.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


Re: Problems calling java api from filter.

2008-10-22 Thread Sergio Tomillero
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 21
 
 From the filter call the following:
 javapp.sh  envremedy.out 21
 
 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 0012345 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

Re: Problems calling java api from filter.

2008-10-22 Thread Sergio Tomillero
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 

Sergio Tomillero wrote:
 
 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
 0012345 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.-tp20086003p20105451.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


Re: Problems calling java api from filter.

2008-10-21 Thread [EMAIL PROTECTED]
**
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 !CheersTristan-Original Message-Date: Tue, 21 Oct 2008 10:51:39
+0200Subject: Problems calling java api from filter.From:  
      Sergio Tomillero [EMAIL PROTECTED]To:          
arslist@ARSLIST.ORGHello PeopleI have a strange
problem with an java api. The api is correct but it onlyruns from
active link. If I execute the api from the server's command
line, it runs correctly, butif 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) butthey 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  JOT012345 00098765 Error DSE
UA111 S  JA2008The 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 doesnot 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.htmlSent from the ARS (Action Request System) mailing list archive at
Nabble.com.___UNSUBSCRIBE or access ARSlist Archives at www.arslist.orgPlatinum Sponsor: www.rmsportal.com ARSlist: Where the Answers
Are
__Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are" html___


Re: Problems calling java api from filter.

2008-10-21 Thread Sergio Tomillero
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 lt;[EMAIL PROTECTED]gt; 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 0012345 00098765 quot;Error DSEquot;
 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$
 quot;$field4$quot; quot;$Description$quot; $field5$ $field6$
 quot;$field7$quot; J quot;$field8$quot; quot;$Field9$quot;
 quot;$Field10$quot; 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: quot;Where the Answers
 Arequot; 
 __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


Re: Problems calling java api from filter.

2008-10-21 Thread Atul Vohra
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 21

From the filter call the following:
javapp.sh  envremedy.out 21

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 0012345 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


Re: Problems calling java api from filter.

2008-10-21 Thread LJ Longwing
Sergio,
I had problems calling my Java app from a filter as well, what I ended up
doing was writing a Perl wrapper and using the perl script to set my
classpath and such, then just call Java from the scriptworks well. 

-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Sergio Tomillero
Sent: Tuesday, October 21, 2008 2:52 AM
To: arslist@ARSLIST.ORG
Subject: Problems calling java api from filter.

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
0012345 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.-tp20086003p2008
6003.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


Re: Problems calling java api from filter.

2008-10-21 Thread Grooms, Frederick W
FYI:  When you run a command on the server it is logged in the
arfork.log.  Look there and see exactly what the server is executing.

Fred 

-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Sergio Tomillero
Sent: Tuesday, October 21, 2008 3:52 AM
To: arslist@ARSLIST.ORG
Subject: Problems calling java api from filter.

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
0012345 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

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are