Logging of BES Simulator

Hello

Does anyone know if the DOS window that runs to the simulated BES writes to a log file?

I am trying to display all the data written in the BACK window when I push the contents of a simulator of BB. But because of the size of the back window I lose old data before the end of the thrust.

I set the logging to:

[Record]
Logging.Level = 4
Logging.Console.log.Level = 4

Thanks for your help

Andrew

I found the solution to the question.

I used version BES 4.1.4

The default logging in the BAT file setting - 4 = Logging.level is incorrect

It must be changed in - Logging.file.log.level = 4

Then it works

See you soon

Andrew

Tags: BlackBerry Developers

Similar Questions

  • How to get to the event log in the simulator of blackberry 9800

    Can someone tell me how I could see the event log in the blackberry Simulator

    Plugin Eclipse - 3.5

    Version BlackBerry java sdk - 6.0.0.29

    Simulator model - 9800

    There is an option in tools - see the event log, but it shows

    0:08:13.659: LED: off
    0:08:16.862: LED: on (0x003f0000)
    0:08:17.034: LED: off
    0:08:20.112: LED: on (0x003f0000)
    0:08:20.284: LED: off
    0:08:23.487: LED: on (0x003f0000)
    0:08:23.658: LED: off

    Help me??

    Well, I just shot to the top of my Simulator of 9800 and it worked perfectly.

    Hold down the ALT key enter L, G, then L, then G

    Here, to the event log

  • To access the logs of events outside the Simulator Simulator

    We must be able to access a text copy of the Simulator event outside the Simulator logs.

    The goal is to have a tester to be able to send logs of the Simulator to a developer when they run into a problem with the application.

    Does anyone know how to do this?

    In the Simulator: simulate-> USB cable connected

    On the command line: JavaLoader-u eventlog > simulator.log

  • Bold 9900 event log

    The usual key combination of Alt - L Alt - Alt - Alt and G L does not backup the event log on the simulator of the Bold 9900.  Instead, as soon as the first Alt - L is typed, a search begins with a double quotation mark is entered in the search field.

    I don't have access to a real device of the Bold 9900 to check whether the device has the same way or not.

    What is the key combination to bring up the log of events on the Bold 9900?

    Thank you

    Bold 9900 Simulator

    OS 7.0.0.261

    The default behavior when you tap the home screen is to open the universal search.  You can change this by going to Options, home screen Preferences and change the pitch by typing universal search to Application shortcuts.  This will allow you to use the shortcut Alt + lglg on the home screen.

  • RMAN-11003 RAC 10 g 2 database recovery

    Hello, I'm doing a full restore of the database and when it was done the recovery database, always get the error:

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the command recover to 15/07/2014 06:07:04

    ORA-00283: cool cancelled due to errors

    RMAN-11003: failure in parsing / execution of the SQL statement: alter database recover logfile ' / archive/archivelog/PEP/PEP1_74_852396492.arc'

    ORA-00283: cool cancelled due to errors

    ORA-01112: media recovery not started

    It's a two nodes with the version 10.2.0.4 RAC' once which annuls the recovery, I open the database and everything is OK.

    The steps are:

    srvctl stop database d PEP

    sqlplus "/ as sysdba".

    bootable media;

    ALTER system set cluster_database = false scope = spfile sid ='* ';

    stop immediately;

    bootable media;

    RMAN target /.

    PARALLELMEDIARESTORE OFF SET;

    RMAN > restore database;

    RMAN > restore database;

    errors:

    RMAN-03002: failure of the command recover to 15/07/2014 06:07:04

    ORA-00283: cool cancelled due to errors

    RMAN-11003: failure in parsing / execution of the SQL statement: alter database recover logfile ' / archive/archivelog/PEP/PEP1_74_852396492.arc'

    ORA-00283: cool cancelled due to errors

    ORA-01112: media recovery not started

    RMAN > alter database open;

    The database opens successfully

    NAME CHECKPOINT_CHANGE # CHECKPOINT_CHANGE # STATUS

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

    /BD/oradata/PEP/System01.dbf 1025895 1025895 Normal startup

    /BD/oradata/PEP/undotbs01.dbf 1025895 1025895 Normal startup

    /BD/oradata/PEP/sysaux01.dbf 1025895 1025895 Normal startup

    /BD/oradata/PEP/undotbs02.dbf 1025895 1025895 Normal startup

    /BD/oradata/PEP/users01.dbf 1025895 1025895 Normal startup

    /BD/oradata/PEP/vmware01.dbf 1025895 1025895 Normal startup

    / BD/oradata/PEP/RMANT01. DBF 1025895 1025895 Normal startup

    There, the error occurs if everything seems to be ok.

    Thank you

    The scenario is very probably below:

    You have restored a controlfile who had an old sequences in his V$ LOG (compared to archived newspapers with the later sequence numbers) and the related recovery online papers were physically available on the disc. RMAN preferred just retrieve available online Redo Logs and therefore simulated a full recovery (anyway, he did not ask CAMILLE):

    Once even a single online Redo Log has been applied, recovery get ORA-283

    My Jul 14 18:14:43 2014

    Recovery Media Log /archive/archivelog/PEP/PEP2_29_852396492.arc<(====== archivelog="" seq#="" 29="" thr#="" 2="">

    My Jul 14 18:14:43 2014

    Online Redo Log recovery: thread 1 mem Group 1 Seq 25 reading 0<(===== online="" redo="" log="" seq#="" 25="" thr#="" 1="" got="">

    Mem # 0: /bd2_PEPui3/redo/redo11.log

    MEM # 1: /archive2/oradata/PEP/redo12.log

    ORA - 279 marked during: alter database recover logfile ' / archive/archivelog/PEP/PEP2_29_852396492.arc'...<(=== archivelog="" seq#="" 29="" thr#="" 2="" throwing="">

    My Jul 14 18:14:44 2014

    ALTER database recover logfile ' / archive/archivelog/PEP/PEP2_30_852396492.arc'

    My Jul 14 18:14:44 2014

    Recovery Media Log /archive/archivelog/PEP/PEP2_30_852396492.arc

    ORA - 288 marked during: alter database recover logfile ' / archive/archivelog/PEP/PEP2_30_852396492.arc'...<(==== archivelog="" seq#="" 30="" thr#="" 2="" throwing="">

    My Jul 14 18:14:44 2014

    ALTER database recover continue

    My Jul 14 18:14:44 2014

    Online Redo Log recovery: thread 1 mem Group 2 Seq 26 reading 0 (= Seq # 26 Thr # 1 newspaper... and so forth below... applied online )

    Mem # 0: /bd2_PEPui3/redo/redo21.log

    MEM # 1: /archive2/oradata/PEP/redo22.log

    My Jul 14 18:14:46 2014

    Online Redo Log recovery: Don 2 mem 3 Seq 31 reading 0 group

    Mem # 0: /bd2_PEPui3/redo/redo31.log

    MEM # 1: /archive2/oradata/PEP/redo32.log

    My Jul 14 18:14:48 2014

    Online Redo Log recovery: Don 2 mem Group 4 Seq reading 32 0

    Mem # 0: /bd2_PEPui3/redo/redo41.log

    MEM # 1: /archive2/oradata/PEP/redo42.log

    My Jul 14 18:14:51 2014

    (PEP2) Complete media recovery

  • Send the log file only works on Simulator

    Hello together,

    I added the ability for our users to send a log file of the application for me (author). Its a business application. We have now deployed version and now the log file is NOT attached to the email.

    The code I am using:

    void ApplicationUI::sendLogfile()
    {
        InvokeRequest request;
        request.setAction("bb.action.COMPOSE");
        request.setMimeType("message/rfc822");
        QVariantMap data;
        data["to"] = (QVariantList() << "[email protected]" << "[email protected]");
        data["subject"] = "ceAuToApp Logdatei";
        QString fileName = QString("log.txt.%1").arg(QDate::currentDate().toString("yyyy-MM-dd"));
        QString filePath = QString("logs/%1").arg(fileName);
        QString logpath = QString("shared/misc/%1").arg(fileName);
        QFile::remove(logpath);
        QFile::copy(filePath,logpath);
        QString logpathEncoded = QString(QUrl(logpath).toEncoded());
        data["attachment"] = (QVariantList() << logpathEncoded);
        QVariantMap moreData;
        moreData["data"] = data;
        bool ok;
        request.setData(bb::PpsObject::encode(moreData, &ok));
        InvokeManager manager;
        manager.invoke(request);
    }
    

    QML:

    Button {
                text: qsTr("Logdatei an Entwickler senden")
                onClicked: {
                    _ApplicationUI.sendLogfile()
                }
                horizontalAlignment: HorizontalAlignment.Center
            }
    

    Any ideas why it works on Simulator as well as on the device (running in developer mode) but not within the company? Thanks for your help.

    Sven

    He got together with the following code:

    void ApplicationUI::sendLogfile()
    {
        InvokeRequest request;
        request.setAction("bb.action.COMPOSE");
        request.setMimeType("message/rfc822");
        QVariantMap data;
        data["to"] = (QVariantList() << "[email protected]" << "[email protected]");
        data["subject"] = "ceAuToApp Logdatei";
        QString fileName = QString("log.txt.%1").arg(QDate::currentDate().toString("yyyy-MM-dd"));
        QString filePath = QDir::currentPath() + QDir::separator() + QString("logs/%1").arg(fileName);
        QString logpath = QDir::currentPath() + QDir::separator() + QString("shared/misc/%1").arg(fileName);
        QFile::remove(logpath);
        QFile::copy(filePath,logpath);
        QString logpathEncoded = QString(QUrl(logpath).toEncoded());
        data["attachment"] = (QVariantList() << logpathEncoded);
        QVariantMap moreData;
        moreData["data"] = data;
        bool ok;
        request.setData(bb::PpsObject::encode(moreData, &ok));
        InvokeManager manager;
        manager.invoke(request);
    }
    
  • EventLogger events does not appear in the event log Simulator

    So, I was more than a little frustrated with debugging Widget applications and decided to help me a bit.

    I've created a Widget extension that connects to System.out and the EventLogger BB using:

    Logger.Java:

    public class Logger {}

    public static final String APP_NAME = "AppName";
    public static final long GUID = 0xb50dd37e31148effL;

    public static enableLogging() Sub {}
    If (EventLogger.register (GUID, APP_NAME, EventLogger.VIEWER_STRING)) {}
    out ("recorder active.");
    }
    else {}
    ("EventLogger record has failed.");
    }
    }

    /**
    * Prints System.out and event log (if enabled).
    */
    public static {Sub out (String msg)
    String message = formatMessage (msg);
    System.out.println (message);
    log (message);
    }

    /**
    * Prints in the journal of the events with the ALWAYS_LOG level.
    */
    Public Shared Sub log (String msg) {}
    logEvent (msg, EventLogger.ALWAYS_LOG);
    }

    private public static Sub logEvent (String msg, int level) {}
    If (EventLogger.logEvent (GUID, msg.getBytes ())) {}
    System.out.println ("EventLogger.logEvent succeeded.");
    }
    else {}
    System.out.println ("EventLogger.logEvent failed.");
    }
    }
    ...
    }

    The Widget extension works.  I can not even log JavaScript stuff :

    somewhere in file.js:

    Logger.log ("it is JavaScript!");

    as seen by the Eclipse debug console:

    AppName [2010-09-24 12:01:33.609]: active recorder.
    EventLogger.logEvent succeeded.
    AppName [2010-09-24 12:01:33.625]: it's JavaScript!
    EventLogger.logEvent succeeded.

    RIDDLE ME THIS: WHY are the messages NOT sent to the event log Simulator! (9550 or 9800 > tools > Show Event Log does not show my posts.)

    My frustration with BB Monte.

    -----

    Windows XP 32-bit

    Install Eclipse Version: 3.5.2 version identifier: M20100211-1343

    Version plugin Web blackBerry: 2.0.0.201003191451 - 33

    BlackBerry Java plug-in Version: 1.1.2.201004161203 - 16

    BlackBerry Java SDK Version: 5.0.0.25
    BlackBerry Widget SDK Version: 1.0.0.201003191451 - 126

    6.0.0.141 blackBerry SmartPhone Simulator

    As a new BB developer, imagine my surprise when I discovered that the API of EventLogger BB and the BB Simulator event log were completely foreign.

    It's like they're really trying to confuse us.

  • Connect a device Simulator to a BES

    Hello

    First of all, I am a newbie to everything that blackberry.  I will work on the development of mobile applications on blackberries for our society.  We currently have a BES, I try to connect to a device Simulator.

    I followed the instructions I found online here.

    And according to the instructions, I was connected, but I am still unable to navigate anywhere.  Instead, I get an error message about: unable to connect to the selected Mobile Data Service, please try again later.

    Any thoughts on what I might hurt?

    I use the simulator device for 9500 and I think our BES corp is 4.1...

    Thanks in advance.

    In the BlackBerry Smartphone Simulator, go to Options, Advanced Options, service book.  What the PDAP service books do you see there?  You should see an entry that says "Desktop [IPPP]", which is for your BlackBerry Enterprise Server.  If you see other entries of the PDAP attempt to delete in origin by choosing Delete in the menu.  If this does not help, try the following:

    1. close the Simulator.

    2. run clean.bat or manually remove the .dmp files.

    3. move net_rim_bb_sbinjector_lib.cod and net_rim_sdk_simulationSB.cod from the simulator\Java directory to another location on your hard drive outside the directory of Simulator (keep it in case you want to use the MDS - CS Simulator and/or mail server Simulator).

    4. follow the steps of the DKB article you reference above (you will need EA again).

  • Call log will not appear in the Simulator

    For some reason the call log manager which is available on my phone does not appear on the Simulator. I don't know if it's a bug or a feature?

    Any help in getting it on the Simulator is appreciated.

    It manifests!

    I was looking for the icon to call log similar to what appears on my phone.

    Who's going to do. Thanks a lot for your help.

  • Everyone see additional logging to the console of the 9800 Simulator?

    Everyone sees a bunch of * beep * in the saved for 9800 Simulator console?

    Each action in the Simulator causes a large amount of what follows to be connected. Am I doing something wrong or should I run the Simulator in another case?

    [0,0] FileIO:info by name full 1e5f
    [0,0] FileIOpen 1e60 start
    [0,0] FileIOpen full 1e60
    [0,0] FileIO:read start 1e61
    [0,0] FileIO:read 1e61 full
    [0,0] FileIO:fileinfo start 1e62
    [0,0] by name FileIO:info full 1e62
    [0,0] FileIO:fileinfo start 1e63
    [0,0] by name FileIO:info full 1e63
    [0,0] FileIO:fileinfo start 1e64
    [0,0] by name FileIO:info full 1e64

    I guess that's common, because I also get same messages when I run my 9800 Simulator

  • I try to log into Microsoft Flight Simulator Game spy. I get the message saying unable to connect to the network. I have FSX Gold edition. What can I do to make it work again?

    Please read above.

    Hello

    The question you posted would be better suited in the Forums of Simulator. I would recommend posting your query in the Forums of flight simulation.
     
     
    I hope this helps.
  • Redirect 302 get only when connected via BES loop

    Hello

    I have a problem when I am connected via BES, I get a server redirection loop (it returns a 302 with the originial URL response in the "location" header field). When it is connected via the BIS-B, WiFi or carrier, the server returns redirects as expected and the app works. However I require a BES connection and him give a priority when they are available.

    Note that I checked the connection returned by Networking.java string is correct (we add ";) (deviceside = false' when BES is to be using).

    Here's the network code I use:

    package [redacted]
    
    /*
     * Networking.java
     *
     * This code is based on the connection code developed by Mike Nelson of AccelGolf.
     * http://blog.accelgolf.com/2009/05/22/blackberry-cross-carrier-and-cross-network-http-connection
     *
     */
    
    import net.rim.device.api.system.CoverageInfo;
    import net.rim.device.api.system.DeviceInfo;
    import net.rim.device.api.system.WLANInfo;
    
    public class Networking
    {
        Networking()
        {
        }
    
    // Whether or not to the simulator should use MDS to connect.
    // By default this should be false, however if you are testing
    // in an environment where MDS will be the expected connection method,
    // set this to true to have the simulator attempt to use MDS.  This variable
    // has no effect on what happens on a real device.
        private static final boolean isMDS = false;
    
        // the timeout
        public static final int TIMEOUT = 30000;
    
        /**
         * Determines what connection type to use and returns the necessary string
         * to use it.
         *
         * @return A string with the connection info
         */
        public static String getConnectionString()
        {
    
            String connectionString = null;
    
            // Simulator behavior is controlled by the USE_MDS_IN_SIMULATOR variable.
            if (DeviceInfo.isSimulator())
            {
                if (isMDS)
                {
                    connectionString = ";ConnectionTimeout=" + TIMEOUT + ";deviceside=false";
                }
                else
                {
                    connectionString = ";ConnectionTimeout=" + TIMEOUT + ";deviceside=true";
                }
            }
    
            // Check for an MDS connection instead (BlackBerry Enterprise Server)
            else if ((CoverageInfo.getCoverageStatus() & CoverageInfo.COVERAGE_MDS) == CoverageInfo.COVERAGE_MDS)
            {
                System.out.println("MDS coverage found");
                connectionString = ";ConnectionTimeout=" + TIMEOUT + ";deviceside=false";
            }
    
            else if ((CoverageInfo.getCoverageStatus() & CoverageInfo.COVERAGE_BIS_B) == CoverageInfo.COVERAGE_BIS_B)
            {
                // otherwise, use the Uid to construct a valid carrier BIS-B request
                System.out.println("Using BIS");
                connectionString = ";ConnectionTimeout=" + TIMEOUT + ";deviceside=false;ConnectionType=[redacted]";
            }
    
            // Wifi is the preferred transmission method
            else if (WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED)
            {
                System.out.println("Using WIFI");
                connectionString = ";interface=wifi";
            }
    
            // Is the carrier network the only way to connect?
            else if ((CoverageInfo.getCoverageStatus() & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT)
            {
    
                // Has carrier coverage, but not BIBS.  So use the carrier's TCP network
                System.out.println("Device is connected Direct");
                connectionString = ";ConnectionTimeout=" + TIMEOUT + ";deviceside=true";
    
            }
    
            // If there is no connection available abort to avoid bugging the user unnecssarily.
            else if (CoverageInfo.getCoverageStatus() == CoverageInfo.COVERAGE_NONE)
            {
                System.out.println("There is no available connection.");
            }
    
            // In theory, all bases are covered so this shouldn't be reachable.
            else
            {
                System.out.println("no other options found, assuming device.");
                connectionString = ";ConnectionTimeout=" + TIMEOUT + ";deviceside=true";
            }
    
            return connectionString;
        }
    }
    

    Here is sendRequest managed the connection method and the redirection:

    public HttpResponse sendRequest(HttpRequest request)
        {
            String url = request.getUrl();
            if (url == null)
            {
                HttpResponse result = new HttpResponse();
                result.responseCode = 404;
                result.responseMessage = "Not Found";
                return result;
            }
    
            ConnectionWrapper cw = connectionWrapperForRequest(request);
            if (cw == null)
            {
                return null;
            }
    
            boolean compressionEnabled = !request.disableCompression() && COMPRESSION_ENABLED;
    
            HttpResponse result = new HttpResponse();
            try
            {
                String finalURL = url.trim() + Networking.getConnectionString();
                cw.connection = (HttpConnection) Connector.open(finalURL, Connector.READ_WRITE, false);
                System.out.println("Connection string: " + Networking.getConnectionString());
                System.out.println("Full connec.  URL: " + finalURL);
    
                if (cw.connection == null)
                {
                    result.errorMessage = "Could not open a network connection.";
                    result.completedWithError = true;
                    return result;
                }
    
                cw.connection.setRequestMethod(request.getHttpMethod());
    
                if (compressionEnabled)
                {
                    cw.connection.setRequestProperty("Accept-Encoding", "gzip");
                }
    
                cw.connection.setRequestProperty("User-Agent",
                        "" + DeviceInfo.getManufacturerName() + "/" + DeviceInfo.getDeviceName() + "/" + Config.getVersionNumber());
                if (request.username() != null)
                {
                    cw.connection.setRequestProperty("Authorization", "Basic " + Utils.base64Encode(request.username() + ":" + request.password()));
                }
    
                // set this header so BES servers will not change the content of the headers
                cw.connection.setRequestProperty("x-rim-transcode-content", "none");
    
                //add cookies
                if (HttpCookieJar.getInstance().cookieCount() > 0)
                {
                    cw.connection.setRequestProperty("Cookie", HttpCookieJar.getInstance().getCookiesAsString());
                }
    
                //pull request headers from HttpRequest
    
                Hashtable headers = request.getHeaders();
                for (Enumeration e = headers.keys(); e.hasMoreElements();)
                {
                    String key = (String) e.nextElement();
                    cw.connection.setRequestProperty(key, (String) headers.get(key));
                }
    
                byte[] upstreamBytes = request.requestBytes();
                if (upstreamBytes != null && upstreamBytes.length > 0)
                {
                    Logger.getLogger().log(new String(upstreamBytes));
                    cw.connection.setRequestProperty(HttpProtocolConstants.HEADER_CONTENT_TYPE,
                            HttpProtocolConstants.CONTENT_TYPE_APPLICATION_X_WWW_FORM_URLENCODED);
                    cw.connection.setRequestProperty(HttpProtocolConstants.HEADER_CONTENT_LENGTH, String.valueOf(upstreamBytes.length));
                    cw.outputStream = cw.connection.openOutputStream();
                    cw.outputStream.write(upstreamBytes);
                }
    
                Logger.getLogger().log("Get response");
    
                result.responseCode = cw.connection.getResponseCode();
                result.responseMessage = cw.connection.getResponseMessage();
    
                Logger.getLogger().log("Status Code: " + result.responseCode);
                Logger.getLogger().log("Status Message: " + result.responseMessage);
    
                //suck out the cookies here
                int fieldNo = 0;
                String headerField;
                while ((headerField = cw.connection.getHeaderField(fieldNo)) != null)
                {
                    if (cw.connection.getHeaderFieldKey(fieldNo).equals("Set-Cookie"))
                    {
                        HttpCookieJar.getInstance().setCookie(headerField);
                    }
                    fieldNo++;
                }
    
                System.out.println("get redirect");
    
                //get redirect location
                String location;
                if ((location = cw.connection.getHeaderField("Location")) != null)
                {
                    if (location == url.trim())
                    {
                        Logger.getLogger().log("Redirect loop");
                    }
                    Logger.getLogger().log("Redirect: " + location);
                    result.redirectLocation = location.trim();
                }
                else
                    result.redirectLocation = null;
    
                byte[] buffer = new byte[HTTP_BUFFER_SIZE];
                int count;
    
                System.out.println("compression");
    
                cw.inputStream = cw.connection.openInputStream();
                if (compressionEnabled)
                {
                    String encoding = cw.connection.getEncoding();
                    if ("gzip".equalsIgnoreCase(encoding))
                    {
                        cw.inputStream = new GZIPInputStream(cw.inputStream);
                    }
                }
    
                cw.inputStream = new DataInputStream(cw.inputStream);
    
                System.out.println("output stream");
    
                ByteArrayOutputStream out = new ByteArrayOutputStream();
                try
                {
                    while ((count = cw.inputStream.read(buffer)) >= 0)
                    {
                        out.write(buffer, 0, count);
                    }
                    result.bytes = out.toByteArray();
                }
                finally
                {
                    out.close();
                }
                cw.close();
                Logger.getLogger().log("Response complete");
            }
            catch (IOException e)
            {
                result.errorMessage = e.getMessage();
                result.completedWithError = true;
                Logger.getLogger().log("ERROR!:" + e.getMessage());
            }
            finally
            {
                removeConnectionWrapper(cw);
            }
            return result;
        }
    

    Here's the whole HttpService.java for the context of the SendRequest method above:

    //#preprocess
    
    //package
    //imports
    
    public class HttpService
    {
        private static HttpService _instance;
    
        private static final boolean COMPRESSION_ENABLED = false;
        private static final int HTTP_BUFFER_SIZE = 1024;
    
        public static synchronized HttpService instance()
        {
            if (_instance == null)
            {
                _instance = new HttpService();
            }
            return _instance;
        }
    
        private WorkQueue _requestQueue = new WorkQueue(1024, 4);
        private Hashtable _connections = new Hashtable(10);
    
        private HttpService()
        {
            // singleton
        }
    
        private ConnectionWrapper connectionWrapperForRequest(HttpRequest request)
        {
            ConnectionWrapper cw = null;
            synchronized (request)
            {
                if (!request.cancelled())
                {
                    cw = new ConnectionWrapper(request);
                    synchronized (_connections)
                    {
                        _connections.put(request, cw);
                    }
                }
            }
            return cw;
        }
    
        private void removeConnectionWrapper(ConnectionWrapper cw)
        {
            synchronized (_connections)
            {
                _connections.remove(cw.request);
            }
            cw.close();
        }
    
        public void cancelRequest(HttpRequest request)
        {
            ConnectionWrapper cw = null;
            synchronized (request)
            {
                synchronized (_connections)
                {
                    cw = (ConnectionWrapper) _connections.remove(request);
                }
                request.setCancelled();
            }
            if (cw != null)
            {
                cw.close();
            }
        }
    
        public void executeRequest(final HttpRequest request)
        {
            _requestQueue.addWorkItem(new Runnable()
            {
                public void run()
                {
                    HttpResponse response = sendRequest(request);
                    if (!request.cancelled() && response != null)
                    {
                        request.completeRequest(response);
                    }
                };
            });
        }
    
        public HttpResponse sendRequest(HttpRequest request)
        {
            String url = request.getUrl();
            if (url == null)
            {
                HttpResponse result = new HttpResponse();
                result.responseCode = 404;
                result.responseMessage = "Not Found";
                return result;
            }
    
            ConnectionWrapper cw = connectionWrapperForRequest(request);
            if (cw == null)
            {
                return null;
            }
    
            boolean compressionEnabled = !request.disableCompression() && COMPRESSION_ENABLED;
    
            HttpResponse result = new HttpResponse();
            try
            {
                String finalURL = url.trim() + Networking.getConnectionString();
                cw.connection = (HttpConnection) Connector.open(finalURL, Connector.READ_WRITE, false);
                System.out.println("Connection string: " + Networking.getConnectionString());
                System.out.println("Full connec.  URL: " + finalURL);
    
                if (cw.connection == null)
                {
                    result.errorMessage = "Could not open a network connection.";
                    result.completedWithError = true;
                    return result;
                }
    
                cw.connection.setRequestMethod(request.getHttpMethod());
    
                if (compressionEnabled)
                {
                    cw.connection.setRequestProperty("Accept-Encoding", "gzip");
                }
    
                cw.connection.setRequestProperty("User-Agent",
                        "" + DeviceInfo.getManufacturerName() + "/" + DeviceInfo.getDeviceName() + "/" + Config.getVersionNumber());
                if (request.username() != null)
                {
                    cw.connection.setRequestProperty("Authorization", "Basic " + Utils.base64Encode(request.username() + ":" + request.password()));
                }
    
                // set this header so BES servers will not change the content of the headers
                cw.connection.setRequestProperty("x-rim-transcode-content", "none");
    
                //add cookies
                if (HttpCookieJar.getInstance().cookieCount() > 0)
                {
                    cw.connection.setRequestProperty("Cookie", HttpCookieJar.getInstance().getCookiesAsString());
                }
    
                //pull request headers from HttpRequest
    
                Hashtable headers = request.getHeaders();
                for (Enumeration e = headers.keys(); e.hasMoreElements();)
                {
                    String key = (String) e.nextElement();
                    cw.connection.setRequestProperty(key, (String) headers.get(key));
                }
    
                byte[] upstreamBytes = request.requestBytes();
                if (upstreamBytes != null && upstreamBytes.length > 0)
                {
                    Logger.getLogger().log(new String(upstreamBytes));
                    cw.connection.setRequestProperty(HttpProtocolConstants.HEADER_CONTENT_TYPE,
                            HttpProtocolConstants.CONTENT_TYPE_APPLICATION_X_WWW_FORM_URLENCODED);
                    cw.connection.setRequestProperty(HttpProtocolConstants.HEADER_CONTENT_LENGTH, String.valueOf(upstreamBytes.length));
                    cw.outputStream = cw.connection.openOutputStream();
                    cw.outputStream.write(upstreamBytes);
                }
    
                Logger.getLogger().log("Get response");
    
                result.responseCode = cw.connection.getResponseCode();
                result.responseMessage = cw.connection.getResponseMessage();
    
                Logger.getLogger().log("Status Code: " + result.responseCode);
                Logger.getLogger().log("Status Message: " + result.responseMessage);
    
                //suck out the cookies here
                int fieldNo = 0;
                String headerField;
                while ((headerField = cw.connection.getHeaderField(fieldNo)) != null)
                {
                    if (cw.connection.getHeaderFieldKey(fieldNo).equals("Set-Cookie"))
                    {
                        HttpCookieJar.getInstance().setCookie(headerField);
                    }
                    fieldNo++;
                }
    
                System.out.println("get redirect");
    
                //get redirect location
                String location;
                if ((location = cw.connection.getHeaderField("Location")) != null)
                {
                    if (location == url.trim())
                    {
                        Logger.getLogger().log("Redirect loop");
                    }
                    Logger.getLogger().log("Redirect: " + location);
                    result.redirectLocation = location.trim();
                }
    
                byte[] buffer = new byte[HTTP_BUFFER_SIZE];
                int count;
    
                System.out.println("compression");
    
                cw.inputStream = cw.connection.openInputStream();
                if (compressionEnabled)
                {
                    String encoding = cw.connection.getEncoding();
                    if ("gzip".equalsIgnoreCase(encoding))
                    {
                        cw.inputStream = new GZIPInputStream(cw.inputStream);
                    }
                }
    
                cw.inputStream = new DataInputStream(cw.inputStream);
    
                System.out.println("output stream");
    
                ByteArrayOutputStream out = new ByteArrayOutputStream();
                try
                {
                    while ((count = cw.inputStream.read(buffer)) >= 0)
                    {
                        out.write(buffer, 0, count);
                    }
                    result.bytes = out.toByteArray();
                }
                finally
                {
                    out.close();
                }
                cw.close();
                Logger.getLogger().log("Response complete");
            }
            catch (IOException e)
            {
                result.errorMessage = e.getMessage();
                result.completedWithError = true;
                Logger.getLogger().log("ERROR!:" + e.getMessage());
            }
            finally
            {
                removeConnectionWrapper(cw);
            }
            return result;
        }
    
        private static class ConnectionWrapper
        {
            final HttpRequest request;
            InputStream inputStream = null;
            OutputStream outputStream = null;
            HttpConnection connection = null;
    
            public ConnectionWrapper(HttpRequest request)
            {
                this.request = request;
            }
    
            public void close()
            {
                try
                {
                    if (outputStream != null)
                        outputStream.close();
                }
                catch (Exception e)
                {
                }
                try
                {
                    if (inputStream != null)
                        inputStream.close();
                }
                catch (Exception e)
                {
                }
                try
                {
                    if (connection != null)
                        connection.close();
                }
                catch (Exception e)
                {
                }
            }
        }
    }
    

    Sorry for the amount of code.

    I had our BES admin visit problematic page via a browser on the Server BES itself.

    Running, the Web server was an update of AJAX-style page that informs the user that they had no access to that particular content. Programmatically, see us all is "the page has been moved here" - but in a browser, it's a different story.

    Thanks again Peter for your insight!

  • Accurate cycle of FPGA simulation error

    Hello.

    I have problems simulating an FPGA vi with a third party Simulator.

    I took the example of the tutorial found at http://zone.ni.com/devzone/cda/tut/p/id/12942 , but I get the error of dialogue (see attachment) during the construction of the export of the simulation.

    I put in the LabVIEW options the Simulator to ISim.

    The text in the details section of the dialog error box is:

    Error-61499 occurred at niFpgaSimulate_GenerateCompileOrder.vi<><><>

    Possible reasons:

    LabVIEW FPGA: An internal software error in the LabVIEW FPGA Module has occurred.  Please contact National Instruments technical support on ni.com/support.

    There was an error in the compile command generation. The file that caused the problem is... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd. For more information, see compileOrder.log in the directory of niFpga simulation. The error information is less to:

    Line 53: Syntax error near ', '.
    ERROR: HDLCompiler:854 - "... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd" line 13: Unit ignored due to previous errors.
    ERROR: HDLCompiler:688 - "... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd" line 65: pkgnifpgasimulationmodel statement Package is not yet compiled
    ERROR: HDLCompiler:69 - "... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd" line 73: is not declared.
    ERROR: HDLCompiler:69 - "... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd" line 79: is not declared.
    ERROR: HDLCompiler:69 - "... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd" line 81: is not declared.
    ERROR: HDLCompiler:69 - "... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd" line 77: is not declared.
    ERROR: HDLCompiler:69 - "... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd" line 89: is not declared.
    ERROR: HDLCompiler:69 - "... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd" line 90: is not declared.
    ERROR: HDLCompiler:69 - "... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd" line 95: is not declared.
    ERROR: HDLCompiler:617 - "... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd" line 95: nearby; prefix must designate a scalar or array type
    ERROR: HDLCompiler:69 - "... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd" line 98: is not declared.
    ERROR: HDLCompiler:69 - "... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd" line 100: is not declared.
    ERROR: HDLCompiler:69 - "... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd" line 102: is not declared.
    ERROR: HDLCompiler:69 - "... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd" line 104: is not declared.
    ERROR: HDLCompiler:69 - "... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd" line 97: is not declared.
    ERROR: HDLCompiler:69 - "... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd" line 107: is not declared.
    ERROR: HDLCompiler:69 - "... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd" line 110: is not declared.
    ERROR: HDLCompiler:69 - "... / niFpga /... / niFpga/PkgNiFpgaSimulationModel.vhd" line 113: is not declared.

    Using LabVIEW 2011 (Xilinx tools 12.4) on Windows 7 Pro 64 bit.

    Any help would be appreciated.

    Thank you.

    Hello

    It seems that there is an article in the knowledge base that describes the error you see.  Let me know if it solves your problem.

    Error-61499 took place at niFpgaSimulate_GenerateCompileOrder.vi

    See you soon,.

    Ryan

  • Reproduction of example of Simulation Interface Toolkit

    Hello everyone,

    trying to replicate the example provided in the Simulation Interface Toolkit - how-to , I am facing an error with LabVIEW 2009.

    I have created a host VI working with the file .mdl Simulink on localhost as Simulation environment that runs smoothly.

    And I can't properly compile the file desired .dll (sinewave.dll) with Simulink and nidll.tlc.

    But if I want to use a cRio-9024 as time real target FPGA-interface I get the following error when I start the host-VI:

    Missing file of Simulation Model

    The sinewave.out simulation file could not lie in the projected paths. Please FTP the file manually to your system in real time.

    The following planned paths do not contain the simulation model:
    C:\ [...] \sinewave_nidll_vxworks_rtw\sinewave.out
    C:\ [...] \sinewave_nidll_rtw\sinewave.out

    >>>

    It's the State of deployment resulting:

    Initializing...
    Calculating dependencies...
    The checking for conflicts. This may take some time...
    Prepare the items for download. This may take some time...
    Deployment NI_FileType.lvlib
    Deployment NI_SIT_util.lvlib
    Deployment NI_LVConfig.lvlib
    Deployment NI_SIT_Replay.lvlib
    Deployment XDNodeRunTimeDep.lvlib
    Deployment NI_SIT_Data Log.lvlib
    Deployment NI_SIT_SITServer.lvlib
    Deployment NI_SIT_driversupportVIs.lvlib
    Deployment NI_SIT_ClientConnMngr.lvlib
    Deployment NI_SIT_sitctls.lvlib
    Deployment sinewave_Driver.lvproj
    Deployment of NO-Mess-Fix(successfully deployed target settings)
    Deployment NI_SIT_Data Log.lvlib:Expand Signal Name.vi (7.85 K)
    Number.VI NI_SIT_Data Log.lvlib:Get group deployment (4.46 K)
    Deployment of Text.vi "BOLD" (11.92 K)
    Deployment whitespace.ctl (2.09 K)
    Deploy the value string Value.vi (5.06 K)
    Deployment of NI_SIT_Replay.lvlib:Wait for Ack.vi (5.50 K)
    Deployment NI_SIT_driversupportVIs.lvlibIT pilot FP Strings.vi (2.31 K)
    Deployment NI_SIT_driversupportVIs.lvlibCommand.ctl Server IT (2.09 K)
    Deployment NI_SIT_Data Log.lvlib:Enable turn off Item.vi LPG (13.12 K)
    Deployment NI_SIT_Data Log.lvliband group probe list is activated (9,54 K) Groups.vi
    Deployment NI_SIT_Data Log.lvliband group probe list active record State.vi (7,41 KB)
    Deployment NI_SIT_driversupportVIs.lvlibcalendar Src.viNI_SIT_driversupportVIs.lvlib ITIT Timing Src.vi loaded with errors on the target and was closed.
    LabVIEW: Unable to load the shared library SIT_TimingInterface.*IT_InitTimingSrc:C on the device target RT.
    LabVIEW: Unable to load the shared library SIT_TimingInterface.*IT_GenerateOneTick:C on the device target RT.
    LabVIEW: Unable to load the shared library SIT_TimingInterface.*IT_ClearTimingSrc:C on the device target RT.
    Deployment of container NO-Mess-Fix
    Completed with errors of deployment

    >>>

    Why should I produce a file called sinewave.out? I don't think that I really need.

    Can someone tell me please how to use the sinewave.dll properly to make it work on my cRio?

    (I don't want to use e/s material and yet, just run the file .dll on the cRio.)

    The best help for would be a description step by step from a VI of work using sinewave.mdl inside LabVIEW with ready to use sinewave.dll.

    I need to examine any document in order to complete this example?

    Thanks for your effort!

    Hi Jan,

    Yes it s a target VxWorks.

    Marco

  • Crash application Simulator Eaglelander3d

    Hi all

    I tried for a while get this Simulator

    http://www.eaglelander3d.com/downloads/EL3DSetup215rcF.exe

    to run after installation, but all I get is an error message

    Problem event name: APPCRASH

    Application name: EagleLander3D.exe

    Application version: 2.1.5.0

    Application timestamp: 4bb8aa45

    Fault Module name: KERNELBASE.dll

    Fault Module Version: 6.1.7600.16385

    Timestamp of Module error: 4a5bdbdf

    Exception code: e0434f4d

    Exception offset: 0000b 727

    OS version: 6.1.7600.2.0.0.768.3

    Locale ID: 2057

    As the true administrator I lit the .net framework and installed the latest graphics drivers, the sim card installs 2008 C++, directX 9 and.net 3.5 sp1

    If there is no other information, I can get (event logs) and then ask.

    Thanks in advance,

    Drakulton.

    Win7 Home premium 64-bit (6.1, build 7600)

    AMD Athlon 64 3500 + 2.2 GHz

    3072 MB ram

    7900GX2 graphics card

    Hi drakulton,

    It seems that there are some compatibility issues with the game and Windows 7. You can contact the game publisher to check if there are patches released for the same thing.

    www.eaglelander3d.com

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for

  • Brand-pages do not open in new tabs. Why is this?

    I had to clean up Firefox as it kept crashing. Since then he opens not favourites in new tabs: it simply replaces the page I look at. I would like to be able to open several pages, but I tried everything in the troubleshooting pages and nothing has w

  • Color LaserJet MFP M177fw Pro: installation of web services blocked to 'connection '.

    I'm trying to enable Web Services on this new LaserJet.  I am in the built-in Web Server page and the configuration of Web Services tab.  I clicked on 'Turn on' and it just keeps spinning in connection... DNS is 8888 and 8844 All the other tabs work;

  • Mac pro mid-2012 video card options

    I need to replace the video card on my Mac Pro mid-2012 (OS 10.8).  It came with an ATI Radeon HD 5770, 1 GB.  It is the only card that works with this machine?  If this is not the case, what are the cheaper options.  I do not use the computer for ga

  • I hid a picture, how do I get it back? Or where I can find it?

    I accidentally hid a picture, how can I get it back? When you are on the photo and you pull up the menu to copy, print, or send in other applications, there is an option to hide, I did, but how can you get it back? Or where you can find?

  • Questions of NOR-PCI-6010

    Dear OR Tech Support,. I'm working on a master's thesis which is on the order of a pneumatic positioning system. In fact I work with DAQ hardware first, so I don't know much. I need to produce 4-20 my for my valve actuation (5/3). If I understand wel