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

Re: [Condor-users] [Birdbath] Could you help me submitting a job, gracefully?




On May 24, 2006, at 10:36 AM, Afrasyab Bashir wrote:

Hi,

If there is a line between begging and requesting then i'm on it. If there is none then place me in the former, please.

[1]    PROBLEM
------------------

I am unable to submit a job since birdbath's inception. Tired of trying, I always chose to do something different with birdbath. Today I'm using version is 6.7.19. I'm receiving an error saying

That's too bad. I got the impression back in March that you were submitting jobs...


Exeption thrown says:
----------------------

Validation constraint violation: data type mismatch xsd:byte in element <data>

This is not much information to go on. My best guess would be that you never regenerated the stubs for 6.7.19's WSDL files...


Instruction on which Exception is thrown:
-----------------------------------------

status = schedd.sendFile(transaction, clusterId, jobId, filename, 0, exBuffer);

Function containing above instruction:
--------------------------------------

sendFileHelper(CondorScheddPortType schedd,
                                   String filenameWithPath,
                                   Transaction transaction,
                                   int clusterId, int jobId)

the example file name:
----------------------

SOAPScheddApiHelper.java

SubmitJob.java
----------------
     String filesToSend[] = {
         "d:\\Test\\TestJob.class"
     };

SOAPScheddApiHelper.submitJobHelper(

         schedd, null,
         -1,
         -1, "S2VP",
         UniverseType.JAVA, "TestJob.class",
         "TestJob", "TRUE", null,
         filesToSend

         );

and yes I have changed the line in SOAPScheddApiHelper to

int index = filenameWithPath.lastIndexOf('\\');

This is unrelated to your reported exception, but the executable for a Java job should be java, e.g. d:\\bin\\java or wherever you keep it, and the argument should be TestJob (as you have it).


I've taken your TestJob.java and with the above change managed to have it run without problem. To capture the output you might also want to consider passing extra (below) instead of null in the second to last argument to submitJobHelper.

ClassAdStructAttr[] extra = {new ClassAdStructAttr("Out", ClassAdAttrType.value3, "stdout.txt") };



matt

[2]   REQUEST
-----------------

TestJob.java is attached to this email. I have tried submitting the same on command line and it executes gracefully.

Now I know there is high probability that i might be doing something pretty stupid but i'm unable to figure out what. Therefore,

a) I will be extremely grateful if you try executing the same file (as attached) at your end and if you do then please send me your amended SubmitJob.java and and SOAPScheddApiHelper.java and anyother related file (if other than this).

b) If above is not possible then please tell me where I'm doing it wrong.

thanks
<TestJob.java>
_______________________________________________
Condor-users mailing list
Condor-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/condor-users