[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] [Birdbath Related] Basics



Hi,
Thanks for the help. However, the error persists. I am also appending at the end of this email a few lines from the schedd log on the computer running the soap web_server. I would be grateful for any more help please.
 
[Matt]
I believe the "cmd" and the "executable" are the same thing -- it
says that in the code if I remember correctly. So, your "cmd" would
be the main class of your application, for the Java universe [1].
 
[Afras]
 
Yes it was mentioned in the comments explaining the function. Sorry that I overlooked.

[Matt]

I think the problem you are seeing is coming from sendFileHelper() in
the SOAPScheddApiHelper.java you sent. In there you will find the
line "int index = filenameWithPath.lastIndexOf('/');" that will not
give you a correct response because your paths use '\'s instead of
'/'s. Try changing the '/' to a '\' and see what happens. This is
likely a broken assumption that was made in the helper api, sorry.

[Afras]
 
Single Back Slash is an escape character and therefore becomes a syntax error within quotes or double quotes. Double Back Slash doesn't work either. I have tried using both. However, the file paths can be mentioned in two ways: with \\  or with /.
So keeping the line  int index = filenameWithPath.lastIndexOf('/'); as it is, I have tried two ways
 
1.
when I try with this way
 
filesToSend = { "d:/test/TestJob.class" }
 
SOAPScheddApiHelper.submitJobHelper(schedd, null, -1, -1, "afras",
                                        UniverseType.JAVA, "TestJob.class", "TestJob", null, null,
                                        filesToSend);
 
I get the following errors:
 
Failed to begin Transaction
JobSubmissionException Failed to begin Transaction

2.
If I only change
filesToSend = {"d:\\test\\TestJob.class"}
 
then I get

Error Declaring File

Afrasyab: Submit Job Exception

where this exception is only thrown for instruction 

SOAPScheddApiHelper.submitJobHelper(schedd, null, -1, -1, "afras",
                                        UniverseType.JAVA, "TestJob.class", "TestJob", null, null,
                                        filesToSend);

is made.

I am appending below my sub file that I used to submit the same job on command line and executed it gracefully. There is yet another thing however

 

universe = java

CLASSPATH = .

executable = TestJob.class

arguments = TestJob

output = TestJobOutput.out

error = TestJobErrors.err

log = TestJobLog.log

queue

2/28 20:45:35 (pid:3912) Completed servicing HTTP request
2/28 20:45:35 (pid:3912) Received HTTP POST connection from < 192.168.1.5:4819>
2/28 20:45:35 (pid:3912) About to serve HTTP request...
2/28 20:45:35 (pid:3912) Completed servicing HTTP request
2/28 20:45:35 (pid:3912) Received HTTP POST connection from < 192.168.1.5:4820>
2/28 20:45:35 (pid:3912) About to serve HTTP request...
2/28 20:45:35 (pid:3912) Completed servicing HTTP request
2/28 20:48:34 (pid:3912) Job has no JobStatus attribute.  Ignoring...
2/28 20:48:34 (pid:3912) Job has no JobStatus attribute.  Ignoring...
2/28 20:48:35 (pid:3912) ProcAPI sanity failure, age = -99268577
2/28 20:52:35 (pid:3912) ProcAPI sanity failure, age = -99268337
2/28 20:53:34 (pid:3912) Job has no JobStatus attribute.  Ignoring...
2/28 20:53:34 (pid:3912) Job has no JobStatus attribute.  Ignoring...
2/28 20:56:35 (pid:3912) ProcAPI sanity failure, age = -99268097
2/28 20:58:34 (pid:3912) Job has no JobStatus attribute.  Ignoring...
2/28 21:00:35 (pid:3912) ProcAPI sanity failure, age = -99267858