Welcome Guest ( Log In | Register )


 
Reply to this topicNew Topic
Workstation, wsexec custom problem
enmanuelor
post Sep 25 2009, 06:35 PM
Post #1


Contributor
**

Group: Members
Posts: 21
Joined: 24-April 09
Member No.: 480


Hi,

Sorry by wirte in this forum, but I ddidn't find Workstation forum.

I need to custom wsexec throuh "Request=RunClass" paramater-value but the program trows java.lang.NoSuchMethodException when we executed the java line command:

C:\ java -cp .;xfbwsjti.jar;xfbwsexec.jar;MyWSExec.jar; sopra.xfbws.transfer.interf.exec.XFBWSExec DOMAIN=http:// devsrv01/xfbwsuser/ USER=wsuser1 GROUP=wsgroup1 PASSWORD=wsuser1 PASSWORDFORMAT=CLEAR STATION=wsserver1 LANG=English REQUEST=RunClass FILENAME=C:\\testfile.txt CLASS=MyClass DEBUG=yes ARGV=myArg1
16:31:31 instantiation
16:31:31 Exception: java.lang.NoSuchMethodException: MyClass.execute(sopra.xfbws.plugin.JTI, java.lang.String)
2
000000000000
2019
execute


The source code of MyClass is:

import sopra.xfbws.plugin.FileTransferReport;

public class MyClass {

public Integer execute(sopra.xfbws.plugin.JTI jti, String args) {
FileTransferReport ftr = new FileTransferReport();
System.out.println("It's works!: " + args);
jti.createFileTransfer(new String[]{"SERVICE=" + args}, ftr);
return new Integer(0);
}

}

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

Can anybody help me?

If someone knows where is the Workstation forum please take me in.

Thanks.

Additionally I've attached the .jar that I'm using

Thanks in advance
Go to the top of the page
 
+Quote Post
enmanuelor
post Sep 30 2009, 03:05 PM
Post #2


Contributor
**

Group: Members
Posts: 21
Joined: 24-April 09
Member No.: 480


QUOTE (enmanuelor @ Sep 25 2009, 07:35 PM) *
Hi,

Sorry by wirte in this forum, but I ddidn't find Workstation forum.

I need to custom wsexec throuh "Request=RunClass" paramater-value but the program trows java.lang.NoSuchMethodException when we executed the java line command:

C:\ java -cp .;xfbwsjti.jar;xfbwsexec.jar;MyWSExec.jar; sopra.xfbws.transfer.interf.exec.XFBWSExec DOMAIN=http:// devsrv01/xfbwsuser/ USER=wsuser1 GROUP=wsgroup1 PASSWORD=wsuser1 PASSWORDFORMAT=CLEAR STATION=wsserver1 LANG=English REQUEST=RunClass FILENAME=C:\\testfile.txt CLASS=MyClass DEBUG=yes ARGV=myArg1
16:31:31 instantiation
16:31:31 Exception: java.lang.NoSuchMethodException: MyClass.execute(sopra.xfbws.plugin.JTI, java.lang.String)
2
000000000000
2019
execute


The source code of MyClass is:

import sopra.xfbws.plugin.FileTransferReport;

public class MyClass {

public Integer execute(sopra.xfbws.plugin.JTI jti, String args) {
FileTransferReport ftr = new FileTransferReport();
System.out.println("It's works!: " + args);
jti.createFileTransfer(new String[]{"SERVICE=" + args}, ftr);
return new Integer(0);
}

}

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

Can anybody help me?

If someone knows where is the Workstation forum please take me in.

Thanks.

Additionally I've attached the .jar that I'm using

Thanks in advance



Hi:

I've found what was te error, this class have to be executed with a SDK Java Version 1.3

Thanks
Go to the top of the page
 
+Quote Post

Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Skin designed by IPB Forum Skins