Download file problem

package com.blackberry.util.network;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Enumeration;
import java.util.Hashtable;

import javax.microedition.io.Connector;
import javax.microedition.io.HttpConnection;
import javax.microedition.io.file.FileConnection;

import net.rim.device.api.io.http.HttpProtocolConstants;
import net.rim.device.api.io.transport.ConnectionDescriptor;
import net.rim.device.api.io.transport.ConnectionFactory;
import net.rim.device.api.io.transport.TransportInfo;
import net.rim.device.api.ui.UiApplication;

import com.blackberry.util.Function;
import com.blackberry.util.StringUtility;
import com.blackberry.util.log.Logger;

public class NetworkThread extends Thread
{
    private static final String twoHyphens = "--";
    private static final String Boundary = "****************256176b82bde4478"; //what_hell_is_that
    private static final String lineEnd = "\r\n";

    private ObserverInterface _ourObserver;
    private String _targetURL;
    private Hashtable _params;
    private String _fileField;
    private String _fileName;
    private String _fileType;
    private String _fileURI;
    private boolean _stopRequest = false;

    private ConnectionFactory cf;
    private Logger log;
    private int[] preferredTransportTypes = {TransportInfo.TRANSPORT_TCP_WIFI, TransportInfo.TRANSPORT_TCP_CELLULAR};
    private int[] disallowedTransportTypes = {TransportInfo.TRANSPORT_BIS_B, TransportInfo.TRANSPORT_MDS, TransportInfo.TRANSPORT_WAP, TransportInfo.TRANSPORT_WAP2};

    private long postSize = 0;

    public NetworkThread(String requestURL, Hashtable params, String fileField, String fileName, String fileType, String fileURI, ObserverInterface observer)
    {
        super();

        log = Logger.getLogger(getClass());

        cf = new ConnectionFactory();
        cf.setPreferredTransportTypes(preferredTransportTypes);
        cf.setDisallowedTransportTypes(disallowedTransportTypes);
        cf.setTimeoutSupported(true);
        cf.setAttemptsLimit(10);
        cf.setConnectionTimeout(120000);

        _targetURL = requestURL;
        _params = params;
        _fileField = fileField;
        _fileName = fileName;
        _fileType = fileType;
        _fileURI = fileURI;
        _ourObserver = observer;

        postSize = getMultipartPostBytesSize(_fileField, _fileName, _fileType, _fileURI);
    }

    public void stop()
    {
        observerError(ObserverInterface.CANCELLED, "Cancelled by User");
        _stopRequest = true;

        Thread.currentThread().interrupt();
    }

    private void observerStatusUpdate(final int status, final String statusString)
    {
        if (!_stopRequest)
        {
            _ourObserver.processStatusUpdate(status, statusString);
        }
    }

    private void observerError(int errorCode, String errorMessage)
    {
        if (!_stopRequest)
        {
            _ourObserver.processError(errorCode, errorMessage);
        }
    }

    private void observerResponse(byte [] reply)
    {
        if (!_stopRequest)
        {
            _ourObserver.processResponse(reply);
        }
    }

    public void run ()
    {
        HttpConnection httpConn = null;
        FileConnection fileConn = null;
        InputStream input = null;
        OutputStream output = null;
        StringBuffer buffer = new StringBuffer();
        StringBuffer responeBuffer = new StringBuffer();

        try {
            if ((_targetURL == null) || _targetURL.equalsIgnoreCase("") || (cf == null))
            {
                if (!_stopRequest)
                {
                    _ourObserver.processError(ObserverInterface.ERROR, "Target url empty or http connection initial failed!");
                }
            }

            StringBuffer urlBuffer = new StringBuffer(_targetURL);

            if ((_params != null) && (_params.size() > 0)) {
                urlBuffer.append('?');
                Enumeration keysEnum = _params.keys();

                while (keysEnum.hasMoreElements())
                {
                    String key = (String) keysEnum.nextElement();
                    String val = (String) _params.get(key);
                    urlBuffer.append(key).append('=').append(val);

                    if (keysEnum.hasMoreElements()) {
                        urlBuffer.append('&');
                    }
                }
            }

            ConnectionDescriptor connd = cf.getConnection(urlBuffer.toString());
            String transportTypeName = TransportInfo.getTransportTypeName(connd.getTransportDescriptor().getTransportType());
            httpConn = (HttpConnection) connd.getConnection();

            if (httpConn != null)
            {
                try {
                    httpConn.setRequestMethod(HttpConnection.POST);
                    httpConn.setRequestProperty(HttpProtocolConstants.HEADER_CONNECTION, HttpProtocolConstants.HEADER_KEEP_ALIVE);
                    httpConn.setRequestProperty(HttpProtocolConstants.HEADER_ACCEPT_CHARSET, "ISO-8859-1,utf-8;q=0.7,*;q=0.7");
                    //httpConn.setRequestProperty(HttpProtocolConstants.HEADER_CACHE_CONTROL,"no-cache, no-store, no-transform");
                    httpConn.setRequestProperty(HttpProtocolConstants.HEADER_CONTENT_TYPE, HttpProtocolConstants.CONTENT_TYPE_MULTIPART_FORM_DATA + "; boundary=" + Boundary);
                    httpConn.setRequestProperty(HttpProtocolConstants.HEADER_CONTENT_LENGTH, Long.toString(postSize));
                    output = httpConn.openOutputStream();

                    buffer.append(twoHyphens + Boundary + lineEnd);
                    buffer.append("Content-Disposition: form-data; name=\"" + _fileField + "\"; filename=\"" + _fileName + "\"" + lineEnd);
                    buffer.append("Content-Type: " + _fileType + lineEnd);
                    buffer.append(lineEnd);
                    output.write(buffer.toString().getBytes());
                    observerStatusUpdate(1, "Started");

                    fileConn = (FileConnection)Connector.open(_fileURI, Connector.READ);
                    long totalBytes = fileConn.fileSize();
                    if (totalBytes == -1) {throw new IOException("File " + _fileURI + " not available.");}

                    long sentBytes = 0;
                    int percentPre = 0;

                    input = fileConn.openInputStream();
                    byte[] temp = new byte[1024];

                    int len = 0;

                    while ((len = input.read(temp)) > -1)
                    {
                        if (_stopRequest)
                        {
                            observerError(ProgressListener.CANCELLED, "User canceled.");
                            return;
                        }

                        output.write(temp, 0, len); 

                        //Thread.yield();

                        sentBytes += len;
                        int percentageFinished = (int) ((sentBytes * 100) / totalBytes);
                        percentageFinished = Math.min(percentageFinished, 99); 

                        if (percentageFinished != percentPre)
                        {
                            observerStatusUpdate(percentageFinished, StringUtility.formatSize(sentBytes, 1) + " / " + StringUtility.formatSize(totalBytes, 1));
                        }

                        percentPre = percentageFinished;
                    }

                    output.write(lineEnd.getBytes());
                    output.write((twoHyphens+Boundary+twoHyphens+lineEnd).getBytes());

                    output.flush();
                    output.close();
                } catch (IOException e)
                {
                    observerError(ProgressListener.ERROR, "Post data exception: \n\n" + e.getMessage());
                }

                log.info("HTTP-POST-MULTI (" + transportTypeName + "): " + httpConn.getURL());

                int resCode = 0;
                String resMessage = "";

                try {
                    resCode = httpConn.getResponseCode();
                    resMessage = httpConn.getResponseMessage();

                    log.info("HTTP-POST-MULTI Response: " + resCode + " " + resMessage);
                } catch (IOException e) {
                    observerError(ProgressListener.ERROR, "get respone code ioexception: \n\n" + e.getMessage());
                }

                switch (resCode)
                {
                    case HttpConnection.HTTP_OK:
                    {
                        InputStream inputStream;
                        int c;

                        try {
                            inputStream = httpConn.openInputStream();
                            while ((c = inputStream.read()) != -1)
                            {
                                responeBuffer.append((char) c);
                            }

                            inputStream.close();
                        } catch (IOException e)
                        {
                            Function.errorDialog("HTTP_OK ioexception: " + e.toString());
                        }

                        observerStatusUpdate(100, "File uploaded.");

                        UiApplication.getUiApplication().invokeAndWait(new Runnable()
                        {
                            public void run()
                            {
                                try {
                                    Thread.sleep(1000);
                                } catch (InterruptedException e) {}
                            }
                        });

                        observerResponse(responeBuffer.toString().getBytes());
                        break;
                    }
                    case HttpConnection.HTTP_BAD_REQUEST:
                    {
                        InputStream inputStream;
                        int c;

                        try {
                            inputStream = httpConn.openInputStream();
                            while ((c = inputStream.read()) != -1)
                            {
                                responeBuffer.append((char) c);
                            }

                            inputStream.close();
                        } catch (Exception e)
                        {
                            Function.errorDialog("HTTP_BAD_REQUEST ioexception: " + e.toString());
                            observerError(ProgressListener.ERROR, e.getMessage());
                        }

                        observerError(ProgressListener.ERROR, "File transfer problems!");

                        break;
                    }
                    case HttpConnection.HTTP_TEMP_REDIRECT:
                    case HttpConnection.HTTP_MOVED_TEMP:
                    case HttpConnection.HTTP_MOVED_PERM:
                    {
                        observerError(ProgressListener.ERROR, "File transfer moved!");
                        break;
                    }
                    case HttpConnection.HTTP_INTERNAL_ERROR:
                    {
                        observerError(ProgressListener.ERROR, "Internal server error");
                        break;
                    }
                    default:
                        break;
                }
            }

            log.info("HTTP-POST-MULTI Body: " + httpConn.getType() + "(" + responeBuffer.length() + ")");
            log.debug(responeBuffer.toString());
        } catch (Throwable t)
        {
            Function.errorDialog(t.toString());
            log.error("New Thread Throwable: " + t.getMessage());
            t.printStackTrace();
        } finally {
            if (input != null) {try {input.close();} catch (IOException e) {}}
            if (fileConn != null) {try {fileConn.close();} catch (IOException e) {}}
            if (output != null) {try {output.close();} catch (IOException e) {}}
            if (httpConn != null) {try {httpConn.close();} catch (IOException e) {}}
        }

        _stopRequest = true;
        _ourObserver = null;

        observerStatusUpdate(100, "Finished"); // Tell Observer we have finished
        observerResponse("Succeeded".getBytes());
    }

    private long getMultipartPostBytesSize(String name, String fileName, String fileType, String fileURI)
    {
        StringBuffer buffer = new StringBuffer();
        FileConnection fconn = null;
        long fileSize = 0;

        /*
         * @multipart post format
         *  --****************256176b82bde4478\r\n
         *  Content-Disposition: form-data; name="uploadfile"; filename="fileName"\r\n
         *  Content-Type: txt/plain\r\n
         *  \r\n
         *  [content bytes of upload file]
         *  \r\n
         *  --****************256176b82bde4478--\r\n
        */
        buffer.append(twoHyphens + Boundary + lineEnd);
        buffer.append("Content-Disposition: form-data; name=\"" + name + "\"; filename=\"" + fileName + "\"" + lineEnd);
        buffer.append("Content-Type: " + fileType + lineEnd);
        buffer.append(lineEnd);

        ByteArrayOutputStream baos = new ByteArrayOutputStream();

        try
        {
            baos.write(buffer.toString().getBytes());
            baos.write(lineEnd.getBytes());
            baos.write((twoHyphens+Boundary+twoHyphens+lineEnd).getBytes());

        } catch (IOException e) {
            Function.errorDialog("flush byte data ioexception: " + e.toString());
        }

        try {
            fconn = (FileConnection)Connector.open(fileURI);
            fileSize = fconn.fileSize();
            fconn.close();
        } catch (IOException e) {
        }

        return baos.toByteArray().length + fileSize;
    }
}

I use post multipart via httpConnection method to upload files on server (website a service net disk, single file size is limited to 500 MB), I tested the Simulator (9800 Asia, software: 6.0.0.706, platform: 3.0.0.159, network: wifi) and download a large file 40 MB, but when I signed my record of cod and tested on the device (9900 (, software: 7.1.0.1098, platform: 5.1.0.701 network: wifi), I had an interruption during about 3 MB of data download and threw a ConncectionClosedException.

Here is my proposal, when output.write (filled with all bytes) amount (perhaps 10240 bytes), it will download bytes in the buffer to the server immediately, and waiting for filled with bytes remaining and so on. Download the bytes in the buffer may take a long time to wait, if the ConnectionClosedException is took place during this freeze period?

If I download a file less than 1 MB on the device, it will be probably successful, Yes, not 100% success rates, I do not know what problem I am facing now

"I don't have limits of authority to deal with pieces of data on the server.

You might have problems if you do this on mobile service because they can or can not cut you if you try to upload too many bytes, more WiFi, it should work good Chunking is really useful for recovery reboot only, does not provide all of the extra features.

«the network indicator in the upper right corner of the device screen will flash several times, until the flash stopped writing bytes will continue progress.»

OK, not my experience with mobile connections, maybe it works that way with WiFi or using the https protocol, which does not establish the connection at first.

That being said, I don't think I can help a lot here sorry.

Tags: BlackBerry Developers

Similar Questions

  • Download files problem between icloud on Mac and iphone

    Hi, I just bought my first iphone and Mac. I copy the files to icloud drive (using Mac) but there may be days for those who appear in the icloud on my iphone. Is there something wrong?

    The rate of initial synchronization is usually very slow, especially if you have a lot of files and large files. People have reported their photo synchronization library took a week or more.

  • Random problem, download files

    I have a random problem, downloading files on different web sites. I click on the file to download and retrieve the backup file with the file name box instead, I get something like "attachment.php". He always seems to be php files.

    By clicking on the file many times to download later, it will download, but it is very frustrating.

    I went through all the guides and troubleshooting suggestions. Nothing makes no difference. I disable add-ins, antivirus etc. nothing works.

    For example, this is the last download, I tried (click on the download button):

    http://www.Pixologic.com/ZBrush/getting-started/

    I got "download.php", which is not just the zip file with a different name. It is in fact different.

    Do it a few times I finally got the zip file.

    It seems to happen on any web site. The common theme is that this '.php' is involved.

    Is this a bug? Any ideas?

    Do you not see the correct link I posted above at the bottom of the browser window if you hover over the download button?

    You can have security software as a software firewall or antivirus which is at the origin of the problems if safe mode did not help.

  • RV082 problems with internet - downloading file corruption

    Hey guys,.
    I have the RV082 router and I'm having a strange problem.

    When I try and download files or applications, my computer happens to expire during the download and unexpectedly farm or the file that I am trying to download is corrupted.  I have never seen anything like this before.  I spent the time on the phone with my ISP and they said this isn't a problem on their end.  I am able to browse the internet without any problem.  I just have problems downloading stuff.

    I have reproduced this problem on other computers on my network.  If it is not isolated to my computer.  that tells me that there must be something wrong with the router.

    Is this a problem with my router settings?

    Any help is greatly appreciated.

    It's really weird. I suggest to manipulate the MTU of the RV082 section if this will solve the problem. Follow this link to determine the correct MTU size for router:

    http://Linksys.custhelp.com/cgi-bin/Linksys.cfg/php/enduser/std_adp.php?p_faqid=4454&p_created=11647...

    Also, make sure that you are using the latest firmware for the router said. You can download the latest firmware for the router on this link:

    http://www.Cisco.com/en/us/products/ps9926/index.html

    Apart from that, I suggest you contact support CISCO focus more on your problem. In my view, that this unit is part of serial company Cisco devices now supports. Try going to this link for other devices of the series business and the site where you can get your hands on Cisco for support:

    http://www.Cisco.com/Web/products/Linksys/index.html

  • BlackBerry - problem downloading file

    I want to be able to download files via the java app BB

    first attempt:

    I create browserfield to call 'upload.php' and send the file dirrectly from this page, but got the following error message

    [24941.271] VM: + GC (f) w = 11
    [24942.203] VM:-GCt = 119, b = 1, r = 0, g = f, w = 11, m = 0
    [24942.264] VM:QUOT t = 8
    [24942.264] VM: + CR
    [24942.287] VM:-CR t = 3
    [24943.78] type of bridge: 5 PID: 149 Exception loading URL: net.rim.device.internal.bridge.BridgeDatagramTooLa

    RGEException [24943.78]: size of datagram Bridge: 8295740 exceeds the maximum: 1048576
    [24943.78] AM: output net_rim_bb_browser_olympia_proxy (397)
    [24943.78] net_rim_bb_browser_olympia_proxy cleaning (397) process that is started
    [24943.78] type of bridge: 5 PID: 149 cleaning process Java run
    [24943.787] VM:EVTOv = 7680, w = 201
    [24943.787] type of bridge: 5 PID: 149 disconnection
    [24943.787] type of bridge: 5 PID: 149 uninit
    [24943.797] type of bridge: 7 PID: 149 cleaning process Java run
    [24943.805] type of bridge: 7 PID: 149 disconnection
    [24943.812] type of bridge: 7 PID: 149 uninit
    [24943.812] type of bridge: 5 PID: 149 uninit

     

    second attempt:

    Oh... I thought I can solved this problem by creating a loading screen to read data from the file and send it to 'upload.php' as a type string or one he calls binary data may be...

    I followed the instructions in the following thread

    http://supportforums.BlackBerry.com/T5/Java-development/problem-how-to-upload-file-to-server/m-p/186... and... many other thread

    Pro:

    1. I can send text file on the server with the size< 100kb,="" it="" can="" be="" bigger="">

    disadvantages:

    1. only works with "interface = wifi", other type as Boolean deviceside does not work

    2. when I tried to download an image type ' image/jpeg', the compiler returns the following error

    [9852.57] GS (createSurface): promote temporarily the size of the window
    [9852.585] VM:EVTOv = 1, l = 31
    [9852.585] CMM: CreateFileApp (970) No sig 0 x 424252
    [9852.601] VM:EVTOv = 1, l = 31
    [9852.617] VM:EVTOv = 1, l = 31
    [9852.617] BRM:IDL +.
    [9852.625] BRMR +.
    [9852.625] BRM:NMC:393216
    [9852.625] BRM:JFR:92175860
    [9852.671] VM:EVTOv = 1, l = 31
    [9852.687] VM:EVTOv = 1, l = 31
    [9852.703] VM:EVTOv = 1, l = 31
    [9852.75] VM:EVTOv = 1, l = 31
    [9852.75] BRMR -.
    [9852.75] BRM:NMC:393216
    [9852.75] BRM:JFR:92175860
    [9852.75] BRM:IDL -.
    [9852.812] VM:EVTOv = 1, l = 31
    [9853.0] - 1
    [9854.257] VM:RTMSh = 134, o = 0x34101C00, p = net_rim_bb_trust_application_manager
    [9854.257] VMPRMv = 1
    [9854.265] AM: output net_rim_bb_trust_application_manager (388)
    [9854.304] VM:EVTOv = 7680, w = 194
    [9854.312] net_rim_bb_trust_application_manager cleaning (388) process that is started
    [9854.312] net_rim_bb_trust_application_manager cleaning (388) process
    [9864.101] server response: IMG-20130324 - 00241.jpg
    0
    error

    [9866.492] JVM: bklt @9866492: timer
    [9866.492] JVM: bklt [1] @9866492: usrIdle 14, usrTime 30, usrAct 1
    [9866.492] JVM: bklt [1] @9866492: chkIdle currTime 29, 31
    [9866.492] JVM: bklt @9866492: setTimer 16

    then I want to have a dead-end in my way... but what facebook, twitter etc. Use to upload the local file on their server ?

    additions to Split into pieces

  • Problem with the downloaded file (Installer cloud creative)

    I reset my computer and upgraded to Mac OSX 10.11.4. I downloaded Creative Cloud Desktop install but in the middle of the stage 'Download', I get an error 205 "it seems to be a problem with the files downloaded.". I checked the firewall and connectivity issues and everything is ok. This is just like the installer is corrupted.

    Clear Tmp folder.

    Make sure the option "use FTP mode passive mode" is unchecked in the proxies tab.

    If you are using a wireless or Wifi Internet connection, try wired Ethernet connection.

    Always the same? or who already use the wired connection.  Try live delayed creative cloud Installer.

    N ° 1)

    Click on below link and download page of 6 CS open, do not download anything from there, just keep it open.

    Download Adobe Creative Suite 6 applications

    Step 2)

    Click on the link below and download file CC to install offline DMG and use them to install the desktop CC app and check.

    http://trials2.Adobe.com/AdobeProducts/KCCC/1/OSX10/ACCCx3_6_0_248.dmg

  • I have problems to install CS6 Design &amp; Web Premium. From the CD, the Setup program crashes or he tells me it's a forgery (it isn't). In the Web download file, I can't even extract. I get an error of access violation.

    I have problems to install CS6 Design & Web Premium. From the CD, the Setup program crashes or he tells me it's a forgery (it isn't). In the Web download file, I can't even extract. I get an error of access violation. I'm on a Surface Pro Windows 3.

    Solution posted in duplicate message I'm having various problems installation CS6 Design & Web Premium. From the CD, the Setup program crashes or he tells me it's a forgery (it isn't). In the Web download file, I can't even extract. I get an error of access violation. -This message of locking... MOD

    To contact our support staff, you must click on the following link: https://helpx.adobe.com/contact.html

    In at top right, sign in to adobe.com with your Adobe ID

    Select the category of assistance you need and once completed, you will see the blue band that still says "need help, contact us.

    A click on that and you should see options to chat/phone.

  • Download problem - links / download files that are not in the indd file

    An article in a folio gives us problems that no other items are. It takes ages to download and seems to be download links that aren't in the indd file.

    The INDD file contains nothing complicated, multiple MSS and an object using the image sequence. Any ideas why it could be downloading files not used in the indd file?

    Is there an overlay Web content in the article? In some cases, people are unable to join the local HTML files in a single folder, so article will post a bunch of unnecessary files.

  • Problems loading a file in SkyDrive: "sorry, SkyDrive can't download files. Please download the files that are contained in the folder instead.

    Whenever I try to add a "xlsx" to "SkyDrive" document I get the following message:

    Sorry, SkyDrive can't download files. Please download the files that are contained in the folder instead. Neither I am able to drag and drop files in skydrive folder!

    I even tried as well to load it from the Office & do slip from the "Desktop" to the "SkyDrive" - but not of joy!

    Assistance would be greatly appreciated

    > Sorry, that SkyDrive impossible to download files. Please download the files that are contained in the folder instead.

    He tells you to OPEN the file, download the files on skydrive. BUR, NOT the FOLDER itself.

    You can download several files at the same time. How many? I'm not sure. I do not have more than 2 files both myself.

    SkyDrive limited maximum 50 MB each download.

  • Problems with downloading files

    I have Win8. I had Adobe Reader 11 that worked perfectly well download any file in any destination. Now when I try to download it either 1) completely blocks my computer 2) States, I don't have the latest version. I tried to download the new DC Adobe which I have no interest in and when open the domain controller downloaded file he totally locked up my computer. I like to turn it off.  Why Adobe 'fix' something that didn't need to be fixed? I need to download new files and cannot. Any solution?

    Cynthia, you can try to use this tool first remove all traces of your computer:

    http://labs.Adobe.com/downloads/acrobatcleaner.html

    Then you can download the full Setup offline reader for the version you want from

    http://get.Adobe.com/reader/Enterprise/

    After downloading, restart your computer and run the Setup program before anything else.

  • Downloading files over 2 meg are missing in Firefox but not Chrome or IE

    I have a problem when using Firefox to download files in cPanel and even in WordPress when adding themes or plugins. It will download WordPress plug-ins, but I think the point that it starts failing is when the plugin zip file is complete 2meg. It is not related to the server I checked it it works fine in Chrome and IE.

    I refreshed Firefox and deleted all cookies and cache several times.

    I think it may have started after upgrading Windows 10 but not positive.

    Separate the issue;
    Shows details of the system;

    Plug-ins installed

    Adobe PDF plugin for Firefox and Netscape 15.8.20082
    Adobe PDF plugin for Firefox and Netscape 10.1.15

    Having multiple versions of a program can cause problems.
    You must remove older programs. Then download the current full installer.

  • Firefox crashes when I try to open a downloaded file

    Hello!

    Whenever I try to open a file I just downloaded Firefox stops working. I get a windows "Firefox has stopped working" error message.

    Steps to follow:
    Download a file
    Download blue arrow icon will blink to indicate that the download is finished
    I click on the download arrow to open the list of downloaded files
    I clicked on the file I want to open
    Firefox crashes

    I tried the following:

    - reinstall firefox
    - refresh firefox
    - start firefox in safe mode (still crashes)
    

    I also tested in safe mode Windows and do not have the problem. According to me, indicating that there is another piece of software that is the cause of the crash, but I do not know how to identify what other software it is.

    Firefox does not record these subject aircraft crash: crashes so I have no newspaper to share.

    I have an error in the Windows Event Viewer:

    The failing application name: firefox.exe, version: 35.0.1.5500, time stamp: 0x54c1fdbc
    The failed module name: ntdll.dll, version: 6.3.9600.17630, time stamp: 0x54b0d74f
    Exception code: 0xc0000374
    Offset: 0x000e5994
    Process ID vulnerabilities: 0xcbc
    Start time of application vulnerabilities: 0x01d046499c589612
    The failing application path: C:\Program Files (x 86) \Mozilla Firefox\firefox.exe
    The failed module path: C:\WINDOWS\SYSTEM32\ntdll.dll
    Report ID: e600231d-b23c-11e4-bea1-90e6bad76e7f
    Faulting full name of the package:
    ID of the failed package-parent application:

    Any help would be great.

    OK, so this I've not exactly "resolved" the issue, but I have a solution. I dropped Firefox and installed Firefox developer edition instead:

    https://www.Mozilla.org/en-us/Firefox/developer/

    I don't have the same problem when using that. Fact.

  • Downloaded files disappear in 5 seconds. Show all downloads in the drop-down list is empty.

    It is a new problem. Unless I immediately open downloaded files - even a PDF - they left of Firefox in about 5 seconds and I have to go to download the windows folder to retrieve. I tried to change the settings for windows defender, I searched browser.download.scanwhendone in the config, but it wasn't there.
    I have my story never save settings, but still for many years.

    You need to keep the history if you want to keep visible downloads Manager downloads and on topic: downloads page.

    Firefox handles downloads in the downloads folder in the library (history > show history)

    • Downloads are treated as elements of history: history of compensation removes items from included download and vice versa.
    • When the downloads are in progress you see a download button animation on the toolbar for Navigation showing an estimate of the remaining time
    • The download button gets a blue highlight all completed once download to make you aware that there are new downloads.
    • Suspend and resume are in the context menu of an item.
    • You can open the connection: downloads page in a tab or a window for easy access.
  • RESUME downloading files always fail after the last update.

    Right click on the download file and click on suspend, then right click again and choose RESUME is not resume the download, it says failed. I tried many downloads all of them are failed, but before the last day it's work very well.

    Hello

    Try Firefox Safe mode to see if the problem goes away. Safe mode is a troubleshooting mode, which disables most of the modules.

    (If you use it, switch to the default theme).

    • Under Windows, you can open Firefox 4.0 + in Safe Mode holding the key SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac, you can open Firefox 4.0 + in Safe Mode holding the key option key when starting Firefox.
    • Under Linux, you can open Firefox 4.0 + with leaving Firefox then go to your Terminal and running Safe Mode: firefox-safe-mode (you may need to specify the installation path of Firefox for example/usr/lib/firefox)
    • Or open the Help menu and click on the restart with the disabled... modules menu item while Firefox is running.

    Once you get the pop-up, simply select "" boot mode safe. "

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. To do this, please follow article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. It might help others who have the same problem.

    Thank you.

  • Firefox can not play videos, download files or run updates

    All of a sudden my browser isn't more videos. Firefox tells me my ins plugg java are blocked because there are unstable, but I can't update. later I noticed that I can not download files or run updates. What could be the cause of the problem?

    I already tried other things: System Recovery, deleted temporary files, etc. I received an alert from avira anti virus, but this doesn't seem to be a dangerous virus that is causing the problem more I received this alert a day after the trouble started.

    BEGIN scan in "C:\Documents and Settings\Gebruiker\Local Settings\Temp\Ge1lqHQ6.exe.part"
    C:\Documents and Settings\Gebruiker\Local Settings\Temp\Ge1lqHQ6.exe.part

     [DETECTION] Contains virus patterns of Adware ADWARE/InstallRex.Gen
     [NOTE]      The file was moved to the quarantine directory under the name '560cb63d.qua'!
    

    More old version of Malwarebytes (cannot update), can not find malware.

    I don't have access to another computer to download files or updates and transfer... No idea what could be the cause of the problem, it would indeed be the java plugin? and how to solve?

    It turns out that it was a problem with the router/modem, nothing related to malware. I did not know before, but my phone could not also download new applications or updates and a friend's computer had the same exact problems once connected to the network wireless home.

    Not quite sure what caused her but restarted the modem and the router and everything works again.

    Thanks for your help anyway, if tried my phone earlier, maybe I would have thought it more early then

Maybe you are looking for

  • End of 2015 iMac 27 inches 5K screen lights up when the "sleep mode"

    When the iMac is in "standby", sometimes the display lights for a while and then turns back off the coast. Screen does not completely, simply turn the backlight (it's like when you see a black image with the high brightness level). I know the iMac tu

  • Why can't I find an add-on to open a new tab in my homepage on Firefox 5?

    I was able to open a new tab in my homepage (Google in my case) in all other versions of Firefox. I'm a loyal user, but it's frustrating. I can't locate an add-on for this feature. Is there something there?

  • Can't see the details - time and State of charge of battery

    my PC laptop battery charge and discharge ok but the icon in the taskbar can not tell me how cool.I left there just an empty battery that says remains unknown. Is there something wrong with my battery or is this a driver issue maybe?

  • Satellite U200-160: where to get a replacement of the fan

    Someone point me in the direction to have a replacement for this laptop CPU fan as it gets very noisy and also if anyone knows where to find replacement keys especially buttons of the mouse on laptop, because the paint is fading and it looks terrible

  • Synchronization of Contacts

    Having a problem syncing the contacts list on my iMac to my iPad. The iCloud Mail synchronizes well. Cannot find anything on the settings of the iPad that synchronizes contacts. Thanks for any info.