Response of HTTPConnection JSON server at BB on Wifi

Hey there,

I created a class that extends from the Thread:

  • Connect Wifi to my Tomcat server.
  • Request (GET method) of a resource (JSON object) on the server.
  • Lire read in response, and then analyze the JSON.

The connection is successfully established, the response is read and then comes the analysis that is the problem. Apparently he received the JSON response in a bad shape. I think the problem is with the synchronization of threads, because I'm trying to use this response to build the user interface after the analysis.

Here is the code:

Class WifiThread:

public class WifiThread extends Thread {

  private String _url;  private String _response; private String _interface = ";interface=wifi";

   public ConnectionThread(String url) {  this._url = url;   }

   public void run() {        HttpConnection conn = null;        InputStream in = null;        int code;

         try {

                   conn = (HttpConnection) Connector.open(this._url + this._interface, Connector.READ);            conn.setRequestMethod(HttpConnection.GET);

            code = conn.getResponseCode();

            if (code == HttpConnection.HTTP_OK) {                in = conn.openInputStream();                ByteArrayOutputStream out = new ByteArrayOutputStream();

                byte[] buffer = new byte[in.available()];                int len = 0;

                while (-1 != (len = inputStream.read(buffer))) {                    out.write(buffer);                                   }

                out.flush();                this._response = new String(out.toByteArray());

                System.out.println(this._response);

                if (out != null){                    out.close();                }                if (in != null){                    in.close();                }                if (conn != null){                    conn.close();                }            }

        } catch (Exception e) {            System.out.println("HTTP Thread: " + e.toString());            throw e;        }   }  

That's how his name:

public myApp extends UiApplication {

    public myApp() {

          String url = "http://[IP.Address]:[Port]/[Resource]"          WifiThread thread = new WifiThread(url);          thread.start();          thread.run();

          String response = thread.get_response();

          // Parse JSON string:          JSONObject jsonObj = MyParser.fromJSON(response);

          // Create UI          // ...

    }}

Any help would be great. Thank you!

I've seen this code before:

ByteArrayOutputStream out = new ByteArrayOutputStream();
ubyte [] buffer = new byte [in.available ()];
int len = 0;
{While (-1! = (len = {inputStream.read (buffer)))}
out. Write (buffer);
}
out. Flush();
This ._response = new String (out.toByteArray ());

Can you tell me where you got it.  I want to see if I have removed it because I think that it is inefficient and made assumptions about the encoding.

I suspect that you are sent a stream of UTF-8 bytes, in which case you can replace the above with something like:

Byte [] responseBytes is (in) IOUtilities.streamToBytes;.

try {}

This ._response = new String (responseBytes, "UTF - 8");

catch (Exception e) {}

throw new RuntimeException ("unexpected decoding error:" + try);

}

If you have additional problems can empty you out the json using something like:

System.out.println (this._response);

and review to ensure that it matches what you expect and are Json valid.

I hope this helps.

Tags: BlackBerry Developers

Similar Questions

  • NB200-h-13 - no response from the DNS server and gateway

    Hello

    I have netbook NB200-h-13 with XP SP3. Its impossible to connect to wireless internet and the error messages are
    HE DIDN'T THERE WAS NO RESPONSE FROM THE DNS SERVER
    HE DIDN'T THERE WAS NO RESPONSE FROM THE DEFAULT GATEWAY

    The connection with the ethernet cable is ok with the adpter reltek that also adpter atheros ar9285 WiFi is activation, working properly and the modem router signal is strong.

    Hi abk55,

    What program you receive this error message?
    Have you tried another browser, for example Firefox or Opera?

    I guess it has something to do with your wireless network card or WLAN parameters if the LAN cable is working properly. So you should try to update the WLAN driver on the Toshiba site.
    Also, try to disable the filtering of MAC addresses and use another encryption.

  • Incorrect response from the SOCKS server deploy when debug_token.bar

    I created the debug_token.bar

    and try to deploy it to the device. (Device Manager blackberry can recognize the device)

    I called

    / Motion Developer/SDK/Research\ In\ / BlackBerry\ 10 WebWorks\ SDK\ 1.0.4.5/dependencies/tools/bin/blackberry-deploy - installDebugToken /Users/myname/debug_token.bar 169.254.0.1 - password mydevicepassword

    After 2 or 3 minutes, it reported:

    Error: Unable to connect: incorrect response to the SOCKS server. Check the settings of IP address for the target. Try to ping the target.

    I ping peripheral ip to 169.254.0.1

    He responsed:

    Ping 169.254.0.1
    PING 169.254.0.1 (169.254.0.1): 56 data bytes
    64 bytes from 169.254.0.1: icmp_seq = 0 ttl = 255 time = 2.406 ms
    64 bytes from 169.254.0.1: icmp_seq = 1 ttl = 255 time = 0.881 ms
    64 bytes from 169.254.0.1: icmp_seq = 2 ttl = 255 time = 0.803 ms
    64 bytes from 169.254.0.1: icmp_seq = 3 ttl = 255 time = 0,869 ms
    64 bytes from 169.254.0.1: icmp_seq = 4 ttl = 255 time = ms 1,080
    64 bytes from 169.254.0.1: icmp_seq = 5 ttl = 255 time = 0,848 ms
    64 bytes from 169.254.0.1: icmp_seq = 6 ttl = 255 time = 0,823 ms
    64 bytes from 169.254.0.1: icmp_seq = 7 ttl = 255 time = 1,175 ms
    64 bytes from 169.254.0.1: icmp_seq = 8 ttl = 255 time = 0,893 ms
    64 bytes from 169.254.0.1: icmp_seq = 9 ttl = 255 time = 1,130 ms
    64 bytes from 169.254.0.1: icmp_seq = 10 ttl = 255 time = 0,860 ms
    64 bytes from 169.254.0.1: icmp_seq = 11 ttl = 255 time = 0,819 ms

    even though I checked ndk ide, the device has been connected

    He likes without any problem, but cannot deploy token

    Welcome to any comment

    Have you tried to deploy from the NDK since it is able to connect?  It could be using the connection, prevents your order manually run to connect.

  • Analysis of response of HttpConnection

    Hello! I have the same problem as in this thread
    http://supportforums.BlackBerry.com/T5/Java-development/parsing-response-of-HttpConnection/m-p/13985...
    When I use this code:

    httpConn = GetConnection(_url);
    responseCode = httpConn.getResponseCode();
    if(responseCode == 200)
    {
        is = httpConn.openInputStream();
        StringBuffer stringBuffer = new StringBuffer();
        byte[] byteArr = null;
    
        int ch;
        while ((ch = is.read()) != -1) {
                stringBuffer.append((char)ch);
        }
    }
    

    I get in stringBuffer:

    «Ð\u009FÑ\u0080емиÑ\u008F Ð Ñ\u0083неÑ\u0082а 2011»

    Ð\u0092 Ð\u009CоÑ\u0081кве Ñ\u0081оÑ\u0081Ñ\u0082оÑ\u008FлаÑ\u0081Ñ\u008C Ð\u0092оÑ\u0081Ñ\u008CмаÑ\u008F Ñ\u0082оÑ\u0080жеÑ\u0081Ñ\u0082веннаÑ\u008F Ñ\u0086еÑ\

    I applied the advice of Peter and with this code

    httpConn = GetConnection(_url);
    responseCode = httpConn.getResponseCode();
    responseMessage = httpConn.getResponseMessage();
    if(responseCode == 200)
    {
        is = httpConn.openInputStream();
    
        StringBuffer stringBuffer = new StringBuffer();
        byte[] byteArr = null;
        byteArr = new byte[1];
        int readIn = 0;
    
        while((readIn = is.read(byteArr)) > 0) {
                String temp = "";
                try {
                     temp = new String (byteArr, 0, readIn, "UTF-8");
                } catch (Exception e) {
                   e.printStackTrace();
                }
            stringBuffer.append(temp);
    }
    

    I get this:

    2011

    \r
    \n2011.

    As you can see, he "ate" all characters, except the numbers and English letters, but I read all of the characters, of course.

    So how can receive this content as a String or byte array without losing characters?

    Replace this:

    StringBuffer stringBuffer = new StringBuffer();
    Byte [] byteArr = null;
    byteArr = new ubyte [1];
    Int read = 0;
                   
    While ((read = is.read (byteArr)) > 0) {}
    String temp = "";
    try {}
    Temp = new String (byteArr, 0, reading, 'UTF-8');
    } catch (Exception e) {}
    e.printStackTrace ();
    }
    stringBuffer.append (temp);

    }

    with something like

    Byte [] responseBytes = IOUtilities.streamToByte (is);

    String responseString = new String (responsebytes, "UTF - 8");

    It's not good, there's a try catch missing on the one hand, but you get the idea.

    If you then take the data to a parser that takes a stream, then only convert the bytes into a string, instead feeding in a ByteArrayinputStream using responseBytes (again, I probalby had it wrong, but you get the idea).

    I think it should overcome your problems.

  • HttpService with JSON server - help please

    Hello!
    I'm moving in return a JSON object in flex using HttpService. The scenario is like this - using HttpService I call an action as I am using Struts 2.0. This action is supposed to return a string in JSON format. When I pass in return the data as XML data is displayed correctly with the structure hierarchail. But when I pass the JSON string back it does not display anything.

    This is the call to the server
    < mx:HTTPService id = "srv" url = "... / myaction/getSomeData.action"/ > "

    the value of srv is coming with a null value.

    I am a total newbie to Flex.

    Thanks for any help in advance.
    Rohit

    First, you will need to read your response as a simple text by specifying resultFormat = "text" in your service:

    http://192.168.103.128:8081/ManageMe/manageme/generateXMLForGantt.action"resultFormat ="text"/ >

    Now in your result event you read the answer in the form of simple text:

    var rawData:String = String (event.result);

    Of course, now, you must encode the string as a JSON object. Flex is not a built-in JSON encoder/decoder. So here's the library done by Adobe/Flex people than hanldes JSON:

    http://code.Google.com/p/AS3corelib/

    Once you have downloaded this library and you copied into your lib foleder, the following line would look like:

    try {}
    Alert.Show (rawData);
    var o: Object = JSON.decode (rawData);
    Alert.Show (o ['baselineEnd']);

    }
    {catch(e:Error)})
    handle the error
    }

    should work!

    ATTA

  • 404 response code httpconnection

    Hello everyboy,

    can someone tell me why this code returns the message 404 with the majority of URLs, but when I use a rest Client, the same URL works normally and returns a 200 OK response code

    public class ServiceRequestThread extends Thread {
        protected String _URL;
        protected HTTPBasicsMainScreen _Dest = null;
        public ServiceRequestThread(String URL, HTTPBasicsMainScreen screen){
         super();
        _Dest = screen;
        _URL = URL
    
        }
    
        public void run()
        {
        try
        {
    
        HttpConnection conn = (HttpConnection)
        Connector.open(_URL+";deviceside=true;", Connector.READ);
        conn.setRequestMethod(HttpConnection.GET);
    
         int responseCode = conn.getResponseCode();
    
        if (responseCode != HttpConnection.HTTP_OK)
        {
        InputStream data = conn.openInputStream();
        StringBuffer raw = new StringBuffer();
        byte[] buf = new byte[4096];
        int nRead = data.read(buf);
    
        while (nRead > 0)
        {
        System.out.println("nread :"+nRead);
        raw.append(new String(buf,0,nRead));
        nRead = data.read(buf);
        }
        _Dest.updateDestination(raw.toString());
        }
    
        else
        {
    
        _Dest.updateDestination("responseCode="+
        Integer.toString(responseCode));
        }
        }
    
        catch (IOException e)
        {
        e.printStackTrace();
        _Dest.updateDestination("Exception:"+e.toString());
        }
        }
    }
    

    Thanks in advance

    Hi peter_strange

    I want to thank very you much for your help, it works now, the problem comes from the semicolon back.

    now, everything's fine.

  • How can I send my email in windows mail response to the original server, it comes

    I had no idea that when I want to activate windows messaging it would take them from road runner and only put in the mail window how to go back to the Road Runner

    You need to mark the option leave a copy of messages on the server in WinMail until you do a send/receive. The only way to get them back to your Webmail RR account now to send to yourself. Of course, this will change all the headers.

  • How to make httpconnection and get the xml response using httpconnection in post method.

    Hello

    I am new to the blackberry web work,

    I want to make httpconnection using the post method and also pass a parameter related to my url.

    This function returns xml data.

    How can I perform this task.

    Please help me if anyone has a solution...

    I have soved that problem myself.

  • Response from the RADIUS server

    Hello

    I added a controller to the ACS, as an AAA client then set the ACS in the WLC, but I can't be able to authenticate the users of ACS only local users on the WLC how can I get on it? help please.

    The 'bad request to NAS' usually indicates incorrect shared secret parameters. Please

    check or reconfigure the secret shared on the controller and the ACS for this SIN, do not copy and paste.

  • Windows Server 2012 Release Candidate, WiFi n, the NPS server. Error 0x800f0922

    I can't add the NPS server to the roll, Windows Server 2012 Release Candidate, features no. WiFi connection. I get the error 0x800f0922.

    Hello

    I would like to inform you that this Site is for support to the consumer.

    I would ask you to send the query to Technet.

    See the link below for further assistance;

    http://TechNet.Microsoft.com/en-us/library/bb625087.aspx

  • HTTP POST: Returns a response of login instead of a JSON response page

    Dear all,

    I just glued a snippet of code for HTTP Post where I WRITE a message to multiple parties to the server that will
    Authentication. I expect a response the following JSON. But when I run the present I always LOGIN
    Page in HTML.

    Can someone let me know the problem in the code below...

    Thanks a ton for your help.

    Thank you
    MGR

    / public final class MyScreen extends form {}
    private RichTextField _Output;
    public MyScreen() {}
    Set the displayed title of the screen
    setTitle ("MyTitle");

    _Output = new RichTextField();
    Add (_output);
    addMenuItem (_GetDataAction);
    }
    protected _GetDataAction MenuItem = new MenuItem ("GetData", 100000, 10) {}
    public void run() {}
    String URL = "";
    ServiceRequestThread svc = new ServiceRequestThread (URL,
    (MyScreen) UiApplication.getUiApplication)
    (. getActiveScreen());
    SVC. Start();
    }
    };
    {} public void updateDestination (final String text)
    UiApplication.getUiApplication () .invokeLater (new Runnable() {}
    public void run() {}
    _Output.SetText (Text);
    }
    });
    }

    }
    class ServiceRequestThread extends Thread {}

    protected String _URL;
    protected MyScreen _Dest = null;
    protected URLEncodedPostData _PostData = null;
    StringBuffer writer = new StringBuffer();

    {} public void setPOSTData (URLEncodedPostData data)
    _PostData = data;
    }

    public ServiceRequestThread (String URL, display MyScreen) {}
    Super();
    Dest = screen;
    _URL = URL;
    }

    public void run() {}
      
    Try
    {
    String limit = "SATBA";
    String twoHyphens = "-";
    "{String data1 = '{\"IMPORTING\': {\"IN_COUNTRY_CODE\":\"US\'}} ';
    String CRLF = "\r\n";
    Byte [] encrypted = Base64OutputStream.encode ("Userassword".getBytes (), 0, "userassword".length (), false, false);
           
    "Preparing the post data.
         
    Writer.Append ("-" + boundary) .append (CRLF);
    Writer.Append ("Content-Disposition: form-data;") Name = ()-"param\" ")." Append
    CRLF);
    Writer.Append ("Content-Type: text/json;") charset ="+" UTF - 8 ") .append (CRLF);
    Writer.Append ("Content-Transfer-Encoding: 8 bit") .append (CRLF);
    Writer.Append ("request - ID:Abcd123456"). Append (CRLF);
    Writer.Append("request-type:rfc_json"). Append (CRLF);
    Writer.Append ("Function:00163E0136C01EE0AE8B059433A71727")
    . Append (CRLF);
    Writer.Append (CRLF);
    Writer.Append (data1). Append (CRLF);
    Writer.Append("--" + Boundary + "--"). Append (CRLF);
    String string = new String (writer);
                           
    HttpConnection conn1 = (HttpConnection) Connector.open (_URL, Connector.READ_WRITE);
    conn1.setRequestMethod (HttpConnection.post);
    conn1.setRequestProperty ("authorization", "Basic" + new String (encoded));
    conn1.setRequestProperty ("Content-Type", "multipart/mixed; limit =" + limit);
     
    OutputStreamWriter osw is new OutputStreamWriter (conn1.openOutputStream (), 'UTF-8');.
    OSW. Write (String);
    OSW. Flush();
    OSW. Close();
       
    int responseCode = conn1.getResponseCode ();
    If (responseCode == HttpConnection.HTTP_OK) {}
    Given InputStream = conn1.openInputStream ();
    Gross StringBuffer = new StringBuffer();
    Byte [] buf = new byte [4096];
    not read int = data.read (buf);
    While (not read > 0) {}
    RAW. Append (new String (buf, 0, read));
    not read = data.read (buf);
    }
    _Dest.updateDestination (RAW. ToString());
    } else {}
    _Dest.updateDestination ("responseCode ="
    + Integer.toString (responseCode));
    }
    }
    catch (IOException e)
    {
    e.printStackTrace ();
    _Dest.updateDestination("exception:"+e.ToString());)
    }
    }

    }

    Hello

    Thank you very much code was perfectly fine and she is on property rim.public of the file where the

    application.handler.http.AuthenticationSupport has been set to true, and because of this in the fact that he wasn't loggging.

    Now I put it to false, and the correct answer came.

    Thank you very much.

    Best regards

    MGR

  • Parses the JSON response in blackberry

    Hi, I want to analyze the response from the server in JSON format.

    I did some searching on Google but I can not find any library or jar kind of thing. Everywhere, it is supplied code open source in the zip file.

    How can I achieve this?... & If there is no available for blackberry and then how to use any container that opens the source code in my application?

    I used 1 jar file org.json, but it gives me the "module not found" exception

    Help, please...

    Thanks in advance.

    Download the zip package org.json.me file and import it into your project...

    can use it as...

    External JSONObject = new JSONObject (resp);     an RESP is JSON response I get
    JSONArray ja = outer.getJSONArray ('DATA');
    JSONArray arr = ja.getJSONArray (0);                to access each element in the JSON array.

    If the response contains the JSON array... A JSON array will be of the form...

    'DATA': ['abc', 'def'] / / DATA isarray and 'abc' and 'def' name are elements of the table...

  • JSON format - Date and special characters

    Hi all

    I had a JSON server in which, I have a few text values and date.

    1. How can I convert special characters to normal String.e.g. Comma etc. ?
    2. How can I convert long date, a string in the format e.g. "1345670466960-0400"?

    I really appreciate any help above.

    Solved... Where the above closure. For others, I will post the solution.

    Special characters-

    QByteArray buffer(bufSize, 0);
    int read = reply->read(buffer.data(), available);
    //response = QString(buffer); -- Wrong way to convert the bytes.
    response = QString::fromUtf8(buffer); // right way, so special character handled itself.
    

    Day fromatting - for example "/ Date (1345670466960-0400).

    QString getStringDate(QString k){
        QDateTime date = QDateTime::fromTime_t(getDate(k));
        QString strDate = date.toString("MM/dd/yyyy HH:mm:ss");
        return strDate;
    }
    long getDate(QString k) {
        long rc = 0;
        QString v = k;
        if (v.length() > 0 ) {
            int b = v.indexOf("/Date(");
            if (b >= 0) {
                b += 6;
                int e = v.indexOf(')', b);
                if (e > b) {
                    QString s = v.mid(b, e);
                    int sign = 1;
                    if (s.indexOf('-') > 0 || s.indexOf('+') > 0) {
                        sign = s.indexOf('-') > 0 ? -1 : 1;
                        e = sign < 0 ? s.indexOf('-') : s.indexOf('+');
                        s = s.mid(0, e);
                    }
                    bool *ok = false;
                    s = s.mid(0, s.length() - 3); //trimming it for seconds only....
                    rc = s.toLong(ok, 0);
                }
            }
        }
        return rc;
    }
    
  • Xcode Server installation failed (ssl configuration infrastructure)

    After the upgrade to Server 5.2 today, I am unable to start the service of Xcode as a result of a mistake.

    The first time, I tried to implement the service, after having chosen the Xcode application, I was asked to create a service user account Xcode. So, I followed the guests to create a Xcode Server user account.

    Then I saw a message that Xcode Helper should be allowed to make UI script, to which I agreed.

    Finally, a progress bar appears where, apparently, that was under the service of Xcode configuration.

    And then an error stating:

    Xcode Server installation failed (ssl configuration infrastructure)

    Try clicking on choose Xcode and selecting a new version of Xcode or upgrade to a newer version of the server.

    Given that I had just installed the latest version of Xcode previously, I advanced and checked that Xcode launches without problem, and no message appears.

    Then I went to System Preferences > Security & privacy > accessibility and verified that an entry is added for Xcode Helper, and I checked the box next to it to allow access.

    Also, I have advanced and connected to the server of Xcode user account and used the fast user switching option to return to my main account.

    Unfortunately, trying to start again service results in the same error. I even tried to start the service when you are logged on the server of Xcode user account. Whenever it has failed with the same message.

    Whenever I try to start the service, I see this (or very similar) message sequence struck the system log:

    20 September 15:50:36 servermgr_xcode Server [867]: getSetXcodePathProgressWithRequest: {}

    control = getSetXcodePathProgress;

    currentPercentageCompleteRangeMaximum = 10;

    currentPercentageCompleteRangeMinimum = 10;

    currentStep = 'Xcode stop server';

    percentComplete = 10;

    status = running;

    }

    20 September 15:50:37 Server servermgr_xcode [867]: task completed (State 0)

    20 September 15:50:37 Server servermgr_xcode [867]: stderr output for the job:

    (4 / 6) [START] stop nginx daemon

    (3 / 6) Server [START] stop API

    (1 / 6) [START] stop CouchDB

    (6 / 6) [START] stop builder

    (5 / 6) [START] daemon stop control

    (2 / 6) [START] stop repeat

    (5 / 6) [END - 0.05 S] Stop control daemon

    (1 / 6) [END - 0.05 S] Judgment of CouchDB

    (2 / 6) [END - 0.05 S] Stopping repeat

    (3 / 6) [END - 0.05 S] Stop server API

    (4 / 6) [END - 0.14 S] Stop the nginx daemon

    (6 / 6) [END - 0.16 S] Stop generator

    A successful!

    Total time: 0.32 seconds

    20 September 15:50:37 Server servermgr_xcode [867]: launch/usr/bin/xcrun xcscontrol - initialize - build-service-user xcodeserver

    20 September 15:50:37 Server servermgr_xcode [867]: wait for task to leave

    20 September 15:50:37 Server lsd [961]: LaunchServices: could not store file lsd-identifiers to /private/var/db/lsd/com.apple.lsdschemes.plist

    20 September 15:50:37 Server servermgr_xcode [867]: xcscontrol reported progress: (1/29) checking that Xcode is accessible

    20 September 15:50:37 Server sudo [1422]: root: TTY = unknown; PWD =; USER = nobody; /Applications/XCode.app/Contents/developer = / usr/bin/file COMMAND

    20 September 15:50:37 Server servermgr_xcode [867]: xcscontrol reported progress: (1/29) checking that Xcode is accessible

    20 September 15:50:37 Server servermgr_xcode [867]: xcscontrol reported progress: running (4/29) xcode-selector - /Applications/Xcode.app

    20 September 15:50:38 Server servermgr_xcode [867]: xcscontrol reported progress: integration of control to prepare (9/29)

    20 September 15:50:38 Server servermgr_xcode [867]: xcscontrol reported progress: (11/29) setting up the config for Redis file

    20 September 15:50:38 Server servermgr_xcode [867]: xcscontrol reported progress: (12/29) setting up the config for CouchDB file

    20 September 15:50:38 Server servermgr_xcode [867]: xcscontrol reported progress: launchd jobs (13/29) system configuration

    20 September 15:50:38 Server servermgr_xcode [867]: xcscontrol reported progress: (14/29) creative group for users of service if required

    Note : There was a lot of posts like this that I missed:

    20 September 15:50:38 syslogd server [69]: notice of Configuration:

    ASL Module 'com.apple.AccountPolicyHelper' claims the selected messages.

    These messages may not appear in the standard system log files or in the database of the ASL.

    20 September 15:50:38 Server servermgr_xcode [867]: xcscontrol reported progress: configuration record (16/29)

    20 September 15:50:38 Server servermgr_xcode [867]: xcscontrol reported progress: users of creative services (17/29) if necessary

    20 September 15:50:38 Server servermgr_xcode [867]: xcscontrol reported progress: infrastructure configuration of SSL (18/29)

    20 September 15:50:39 Server servermgr_xcode [867]: getSetXcodePathProgressWithRequest: {}

    control = getSetXcodePathProgress;

    currentPercentageCompleteRangeMaximum = 75;

    currentPercentageCompleteRangeMinimum = 20;

    currentStep = "Configuring SSL infrastructure."

    percentComplete = 54;

    status = running;

    }

    20 September 15:50:41 com.apple.SecurityServer [114 Server]: displaying guest Keychain for Applications/Xcode.app/Contents/Developer/usr/bin/xcscontrol(1421)

    20 September 15:50:41 Server servermgr_xcode [867]: xcscontrol reported progress: FAILED (18/29): configuration of SSL infrastructure

    20 September 15:50:41 Server servermgr_xcode [867]: task completed (Status 5)

    20 September 15:50:41 Server servermgr_xcode [867]: stderr output for the job:

    (1/29) [START] make sure Xcode is accessible

    (1/29) [END - 0.20 S] Make sure Xcode is accessible

    Audit (2/29) [START] version of Xcode is supported

    (2/29) [END - 0.00 S] Check if the version of Xcode is supported

    Developer mode (5/29) [START] if necessary activation

    [START] Running (4/29) xcode-selector - /Applications/Xcode.app

    (29/3) [START] check if the server version is supported

    (3/29) [END - 0.02 S] Check if the server version is supported

    Data directories (6/29) [START] creation by default (if they are missing)

    (6/29) [END - 0.00 S] Creation of data directories by default (if they are missing)

    (7/29) [START] create a symbolic link to the current path of the Xcode application

    Access to the repository (8/29) [START] HTTP configuration

    Integration of control (9/29) [STARTED] preparation

    Access [START] SSH configuration repository (10/29)

    (8/29) [END - 0.12 S] Access to the HTTP repository configuration

    (7/29) [END - 0.12 S] Create a symbolic link to the current path of the Xcode application

    (10/29) [END - 0.12 S] The access to the repository SSH configuration

    (11/29) [START] establishing the file config for Redis

    (12/29) [START] set up the config for CouchDB file

    (13/29) [START] Setup launchd job system

    (5/29) [END - 0.16 S] Enabling developer mode if necessary

    (9/29) [END - 0.23 S] Preparation of control integrations

    (11/29) [END - 0.16 S] Setting up the config for Redis file

    (12/29) [END - 0.20 S] Setting up the config for CouchDB file

    (13/29) [END - 0.20 S] Launchd jobs system configuration

    Group creation [START] (14/29) for users of service if required

    Saving configuration [START] (16/29)

    (15/29) [START] configuration CouchDB to use all cores

    (14/29) [END - 0.02 S] Creation of service if required users group

    Users of creative services [START] (17/29) if necessary

    (4/29) [END - 0.41 S] Running xcode - select - switch for /Applications/Xcode.app

    (15/29) [END - 0.08] Configuration of CouchDB to use all cores

    (16/29) [END - 0.33 S] Configuration of the recording

    (17/29) [END - 0.52 S] Creation of users of the service if necessary

    Configuration of SSL infrastructure [START] (18/29)

    (18/29) [END - 3.03 S] FAILED: SSL infrastructure Configuration

    Failed: could not export the certificate of the server API: error Domain = =-25308 Security Code 'user intervention is not permitted.' UserInfo = {NSLocalizedDescription = User interaction is not allowed.}

    Total time: 4.13 seconds

    The service initialization error: could not export the certificate of the server API: error Domain = =-25308 Security Code 'user intervention is not permitted.' UserInfo = {NSLocalizedDescription = User interaction is not allowed.}

    20 September 15:50:41 Server servermgr_xcode [867]: response: {}

    error = "Xcode Server Configuration has failed (ssl configuration infrastructure)";

    errorCode = "-1";

    errorDomain = ServermgrXcodeErrorDomain;

    errorLocalizedDescription = "Configuration of Xcode Server failed (ssl configuration infrastructure)";

    errorLocalizedFailureReason = "failed to install Service in step: Setup ssl infrastructure";

    errorLocalizedRecoverySuggestion = "try clicking on choose Xcode and selecting a new version of Xcode or upgrade to a newer version of the server.

    errorString = "Configuration of Xcode Server failed (ssl configuration infrastructure)";

    status = 1;

    }

    20 September 15:50:41 com.apple.xpc.launchd [Server 1] (com.apple.dt.XCSDeviceService [1417]): Service not out 5 seconds after SIGTERM. Sending SIGKILL.

    20 September 15:50:42 Server servermgr_xcode [867]: getSetXcodePathProgressWithRequest: {}

    control = getSetXcodePathProgress;

    currentPercentageCompleteRangeMaximum = 75;

    currentPercentageCompleteRangeMinimum = 20;

    currentStep = "FAILED: SSL infrastructure configuration ';

    error = "Xcode Server Configuration has failed (ssl configuration infrastructure)";

    errorCode = "-1";

    errorDomain = ServermgrXcodeErrorDomain;

    errorLocalizedDescription = "Configuration of Xcode Server failed (ssl configuration infrastructure)";

    errorLocalizedFailureReason = "failed to install Service in step: Setup ssl infrastructure";

    errorLocalizedRecoverySuggestion = "try clicking on choose Xcode and selecting a new version of Xcode or upgrade to a newer version of the server.

    errorString = "Configuration of Xcode Server failed (ssl configuration infrastructure)";

    percentComplete = 54;

    status = FAILURE;

    }

    This article is interesting:

    20 September 15:50:41 com.apple.SecurityServer [114 Server]: displaying guest Keychain for Applications/Xcode.app/Contents/Developer/usr/bin/xcscontrol(1421)

    No prompt was displayed at this time. I had to see a real Keychain prompt? In any case, this article seems to be the cause of the problem:

    Failed: could not export the certificate of the server API: error Domain = =-25308 Security Code 'user intervention is not permitted.' UserInfo = {NSLocalizedDescription = User interaction is not allowed.}

    Help to get the Xcode service backup and race would be much appreciated!

    I had this same problem. I typed in the following in the terminal:

    sudo /applications/xcode-beta6.app/contents/developer/usr/bin/xcscontrol--reinitialiser

    After the reset, I tried to enable the server to Xcode from the macOS GUI server and it worked

  • DNS server for the WRT54GS v6 problem

    This router running for 2 years without any problem (even on Windows7 since las year), recently it wont let me conect to the internet, network and say sharing that the configuration of the computer center are good but no response from the DNS server is present.

    (Windows 7 RTM Ultimate x 86, Bellsouth / AT & T ISP in Florida.) Conexion ADSL, nine cables ethernet and material held in the best conditions, the network card: Realtek RTL8102E/RTL8103 Family PCI - E Fast Ethernet NIC (NDIS 6.20) (v7.2)

    ================================================================================

    What I tried:

    Reset the router or modem (connected to a Westell 6100), in order to define the default settings and (based on the Web reset and reset buttons)

    Flushing IP in CMD

    Make the web based configuration for my WRT54GS v6, releasing DCHP, renewing, defaults, etc...

    Upgrade the firmware to v1.52.7 (latest) nothing helps, dating back to 1.52.6 original.

    Shows Device Manager hardware works correctly.

    Windows 7 show me a link to view the properties of my WRT54GS when I right click on it, I also see the "Enable" option, but every time I use it I get "Connection Failed!"

    ===========================================================================================

    I'm not much of a tech guy, and read the forum does not help me a lot, so I ask for help please.

    PS: CD installed by default for her with her old EasyLink Advisor without success, tried also the last 2 Lela EasyLink Advisor, nothing helps.

    In addition, there is no default gateway glancing an IPCONFIG in CMD and now there is (192.168.1.1), which I use to enter its web-based configuration.

    That your ISP is a DSL provider, most of the DSL Modem has a DHCP server on them, so they act as a router. From now you the type of connection is NAT behind NAT.

    Order for your Linksys router to work with a DSL Modem. Connect to the Linksys router and on the Configuration tab configuration page, you must modify the "local IP address" to 192.168.2.1 and click on save settings...

    Once the settings are saved, unplug the power to the router and Modem, wait 30 seconds and then plug in the power to the Modem, and once all the lights are cover then you can connect the power supply to the router and check if you are online.

Maybe you are looking for