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

[Condor-users] Condor web service through java



Hi,

While creating Condor Web service API using WSDL files..

I have changed the setting in condor_config files as below..

ENABLE_SOAP               = TRUE
ENABLE_WEB_SERVER       = TRUE
WEB_ROOT_DIR              = $(RELEASE_DIR)/web
ALLOW_SOAP                = *
QUEUE_ALL_USERS_TRUSTED = TRUE

SCHEDD_ARGS             = -p 9661


My client file looks like this.

import java.net.*;
//import java.rmi.*;
import birdbath.ClassAd;
import birdbath.Schedd;

public class condorQueue {

  public static void main(String[] arr) throws MalformedURLException {
    try {

        int cluster = 203;
        int job = 2;
        URL url = "" URL("http://10.201.42.242:9661");

        Schedd schedd = new Schedd(url);
        ClassAd ad = new ClassAd(schedd.getJobAd(cluster,job));

         int status = Integer.valueOf(ad.get("JobStatus"));
          System.out.println(status);

       }catch (Exception e) { System.out.println(e);  }
       }

}

I got following errors in SchedLog File.

8/11 17:55:17 Received HTTP POST connection from <10.201.42.242:60495>
8/11 17:55:17 Current Socket bufsize=85k
8/11 17:55:17 Current Socket bufsize=49k
8/11 17:55:17 About to serve HTTP request...
8/11 17:55:17 SOAP entered getJobAd(), transaction: 0
8/11 17:55:17 SOAP call rejected, no permission for user NULL/<10.201.42.242:0>
8/11 17:55:17 SOAP leaving getJobAd() result=1
8/11 17:55:17 Completed servicing HTTP request


I am running the client code as root only. the client code is in side the submitter  host only.

what went wrong, what i had to change.

THANKS IN Advance.

by
Johnson



Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com