"Détarer" problem with the Torch 9800/Device Simulator

Hello everyone,

Im a very strange problem with the Torch 9800 (OS 6).

I have an application developed with 5.0 SDK. Throughout the process of synchronization of this app, there is a point he gets a. tar.gz file that is unziped. For this purporse (in fact, the tar part / "détarer"), we use a tar / "détarer" 'library' we found here in the forum (http://code.google.com/p/j2metar/). This library works fine in all phones with OS 5.0 that we try and even on the simulators of somo 6.0.

But there seems to be a problem with the torch. During the uncompress, there are an exception, because what is the reading of the structure of the tar (from the industry), load the bytes that are invalid, corrupt, dirty, memory, and it fails.

The strange thing of all is that if I have only the routine détarer to the file (in the torch), it works! But when I run all my sinchronization, which open and close httpconnections and process the file on some points (sometimes the same point, others of different) fails.

My question is... are at - it a known bug, issue, etc. with the BONE of the torch (touch device)? Of course, the first thing that jump to mind is "my code is incorrect, memory leaks (in Java, but perhaps odd that a stream was not getting close properly)" and so on, but I can't seam to find the problem. And like I said before, this application works fine with the same file tar.gz in other devices like the 8520 OS 5, 9780 OS 6, 8900 (OS 5).

IM completely stuck with this problem and any help/test will be greatly appreciated.

Here some code, the method that makes him détarer and calls the détarer/tar library:

public static boolean "détarer" (String tarFileUrl, String destUrl) bird Exception {}

FileConnection fconn = null;
FileConnection tarFileConn = null;
TarInputStream tis = null;
Boolean bRet = false;

try {}
fconn = (FileConnection) Connector.open (destUrl, Connector.READ_WRITE);
If (! fconn.exists ())
fconn.mkdir ();   Create the folder if it does not exist
fconn. Close();
fconn = null;
            
Create a TarInputStream
tarFileConn = (FileConnection) Connector.open (tarFileUrl);
TIS = new TarInputStream (tarFileConn.openInputStream ());
tarFileConn.close ();

Entry TarEntry;
int count;
data Byte = null;
            
While ((input = tis.getNextEntry ())! = null) {}
Count = 0;
data = new ubyte [2048];

fconn = (FileConnection) Connector.open (destUrl + entry.getName (), Connector.READ_WRITE);
If (! fconn.exists ())
fconn. Create();   create the file if it doesn't exist
else {}
fconn. Delete();    Create a new
fconn. Create();
}

OutputStream os = fconn.openDataOutputStream ();
                
While ((count = tis.read (data))! = - 1) {}
OS. Write (data, 0, count);

}
                
OS. Flush();
OS. Close();
                
fconn. Close();
fconn = null;
           
}

TIS. Close();
TIS = null;
            
bRet = true;
            
} catch (Exception e) {}
e.printStackTrace ();
throw e;
} {Finally
try {}
If (tis! = null)
TIS. Close();
If (tarFileConn! = null)
tarFileConn.close ();
If (fconn! = null)
fconn. Close();
} catch (Exception e) {}
}
        
Return bRet;
}

Thank you!

Santiago.

Hello

It is a problem with the OS 6.  I've posted about this before here:

http://supportforums.BlackBerry.com/T5/Java-development/reading-and-writing-file-on-torch-9800/TD-p/...

Basically, corruption may occur if you write to the stream simultaneously in different threads.  The solution is to ensure that a single file operation is occurring at a given time.  Some people have had the chance to control the size of the buffer to something as a multiple of (64 * 1024)-1. e.g. 65535.  In addition, you can rinse after each write to the buffer.  I have had no luck with this, but others.  If you look at the bug in JIRA, there is also no activity on this:

https://www.BlackBerry.com/jira/browse/JAVAAPI-1513

Good luck!

Tags: BlackBerry Developers

Similar Questions

  • BlackBerry Smartphones big problem with the torch 9800

    Hi mangment

    I have me Saudi Arabia, my services blackberry torch bay is STC

    but I have more problem needing urgent fixed yoyr end to avoid any problems with the client

    I give you the problem:

    -slow Internet a few open time nd not to open some time must be restart my phone

    Facebook - last worm is not working nd nd nd rss my spase twtier

    -software update blackberry form each time give no avalbel update

    -hang up

    -the slow volume

    -the world of the app does not work in Saudi Arabia

    -My worm's last 6.0.0.246 but still you are not average to resolv urgnet need resolve or

    I need torch nd my mony due am customer feedback

    thnks alharbi

    Yes, you should be able to update the device without problem.

    For other questions, please contact your technical service provider support. If they cannot help you resolve anything, ask them to bring the issue to a level RIM tech support person.

    Good luck

  • BlackBerry smartphone email a problem with my Torch 9800.

    I have a problem with my Torch 9800. When you try to configure the e-mail account on the torch, my companion of techno geniuses who ran in while I was reading upward on the ins and outs selected the company option and then tried to enter the e-mail address and the password. When she came back invalid, I had just read the correct option. Now the torch will not support to give me the Internet e-mail account option. or company. I made the default I saw through the command prompt and options, nothing seems to work when he gets online after the restoration, select email overall upward and it's always the newspaper and projection of password to the company. This phone is only 4 days old, I'm not impressed that I can't go back to the option, or am I missing something?

    Help will be appreciated.

    See you soon

    Thanks for the tip on the service provider. Turns out there was to be a $10 monthly fee paid to blackberry to activate the service.

    All good and working

    See you soon

  • Error message indicating the problem with the monitor of devices in Windows XP.

    Original title: Device Monitor

    Error message indicating the problem with the monitor of devices in windows xp. How to fix?

    Hello

    1. when exactly you receive this error message?

    2. What is the brand and model of your computer?

    3. What is the exact error message that you receive?

    Please provide us with more information about the issue so that we can provide you with the necessary assistance.

  • problem with the base system device

    Hello! I have HP pavilion dv7-2250em, and I have a problem with the base system device. What should I do?

    Hello

    Maybe that's a problem with the card reader driver.  Try to download and install the driver from the link below.

    FTP://ftp.HP.com/pub/SoftPaq/sp45001-45500/sp45046.exe

    Once the installation is complete, restart the laptop.

    Kind regards

    DP - K

  • BlackBerry smartphones, what's up with the Torch 9800 OS 6.0.0.747

    Hello again!
    Is someone can you please tell me what is the new update OS of the Torch 9800? I use 9800/6.0.0.246 bundle 695. I want to upgrade my OS to 6.0.0.747 (my first upgrade - if ever), but first of all, I want to know what has been added to the old operating system. Thank you!

    An upgrade of this nature is generally bug fixes. If your device works well for you, there is no need to upgrade. You won't get all the new features.

  • problem with the connection of devices to VMware guests

    I have a hpe 130f.  When I power on a virtual machine, I get the message «failed to initialize the controller usb in VMware» I did everything according to the VMware kb. I've never had this problem with my old computer, so I suspect it's a driver causing the problem.

    The fixed. I discovered that the ATI catalyst install Manager has been installed which contains an amd usb filter driver. I just uninstalled, rebooted and now VMware can communicate with my usb devices.  I don't know why, who was installed by hp as my system has a nvidia card, although I think there may be an ati integrated graphics card.

  • Problem with the Wifi Smart device identification

    I have more than 20 devices in my network. Most with dynamic IP allocation. After you run the router for a while, it seems that names assigned device mixes and when I look at the list of devices and click on a specific device it will show a lot of MAC and IP addresses that belongs to him.
    Anyone else experience this behavior?
    It would be nice if it was possible to manually assign a name to a specific MAC address.
    It's the E4200

    This is a known bug.

    http://community.Linksys.com/T5/wireless-routers/EA6500-multiple-devices-under-one-device/TD-p/57231...

    http://community.Linksys.com/T5/wireless-routers/unknown-device-on-network-Linksys-EA4500/TD-p/50747...

  • How can keyboard and mouse issues - I solve them? Is this a problem with the computer or device?

    Hello

    Recently (within the last week), I ran into a problem where my computer thinks certain keys/buttons are down.

    They are:

    W

    A

    S

    D

    Q

    E

    Maj

    Space

    Control

    Right-click

    Left click

    These are my most commonly used keys/buttons, so it can become very annoying. In addition, most of the F keys get stuck, but it's because there is something that needs to be cleaned under the feet.

    My questions are: How can I fix? Is this a problem with my computer or my keyboard and mouse?

    He questions, here are my computer Incase care, as well as my keyboard and mouse:

    Inspiron 620, 8 GB RAM Dell, AMD Radeon HD 6450, everything the way it came to the left

    Mad Catz Cyborg S.T.R.I.K.E. 7 keyboard

    Mad Catz Cyborg R.A.T. 9 mouse

    Hello

    Welcome to the Dell Community Forum.

    This can happen due to wear normal use of the keyboard and the mouse, click on this link http://ow.ly/Ermrr which has some steps and download the FIxit. Restart the computer and let us know if this changes anything.

  • Problem with the installation of Playbook Simulator program

    I get the following error message in the VMware Player when trying to install the Playbook Simulator on my Windows XP computer.

    What is the reference for this? I have to re-download the BlackBerryPlayBookSimulator-Installer - 0.9.2 - Win.exe file and start from scratch?

    ERROR MESSAGE:

    Loading of the neutrinos...

    WARNING: The contents of/dev/hd0 is permanently deleted!

    You want to continue with the installation?

    [UI Y] or [N]? --> Y

    Partitioning/dev/hd0...

    Install images... This may take a few minutes

    [33% 1 M/s ETA:04:55 s: #]

    bzcat: error during decompression data integrity.

    Input file = / cd/hd0t179, output file = (stdout)

    It is possible that the compressed file has been corrupted.

    You can use the option - tvv to test the integrity of these files.

    You can use the program "bzip2recover" to try to recover

    data from the sections not damaged damaged files.

    mkqnx6fs: not a fs-qnx6 filesystem ' / dev/hd0t179 ".

    Operation finished, file synchronization and shutdown system

    Please remove the installation media

    Press to restart.

    Hey tony,.

    your best bet will probably be to re - download, extract and install again. How much space you set the virtual disk have? Try the 8 GB configuration and see if that helps the next installation. Good luck!

  • Re: Satellite C650 - problem with the devices connected to USB ports

    Hello

    Can help someone, I have a C650 and everytime I try to connect to something to him via the USB ports, it is not "found" by the computer?

    The other night, I tried to get pictures on my phone but it wasn'; work and I put it down to a problem with the phone, but today I tried to install something digital crafts for my daughter and during installation it tells you to insert the thing into the USB port and click Next, when I do that he's going through a lot of "research" and said then it can not be found.

    The laptop makes a beep sound as it would on an extraction device when you plug... I hope that makes sense. So I am now assuming that the problem is with my computer, is there something I can do to fix this?
    Thanks in advance

    Sorry should add - it's like nothing is plugged at all when it is, and it happens on two USB ports, not just one...

    Post edited by: leahhw123

    Hello

    What happens with plug n play like USB mouse device?
    You are able to use an external USB mouse correctly?

    > but today I tried to install something digital crafts for my daughter and during installation it tells you to insert the thing into the USB port and click Next, when I do that he's going through a lot of "research" and said then it can not be found.
    I guess this could be a problem with the software or drivers installed.

    I searched a bit and his city that he has a software is compatible with windows vista/2000/xp. Win 7 is not mentioned do not know if this could be a problem, but in your case, I recommend asking the support of this software product for some advice.

    In addition, you can try to install this software once more, check whether this USB problem appears again.

  • Windows Media Player cannot play the file because there is a problem with the audio device.

    Original title: Media Player

    I tried to play my music in media player and they will not play. The tab that appears says "Windows Media Player cannot play the file because there is a problem with the audio device. It might not be a sound device installed on your computer, it can be used by another program, or it may not work properly. Also, I can not play music in the window, that I downloaded everything. If anyone has an answer I would appreciate the help. Thank you

    Hi MikeMcKayXE,

    ·         What is the brand and model of the computer?

    Follow the suggestions below for a possible solution:

    Method 1: Quit other programs that may be using your sound device, and then try to play the file again.

    Method 2: Install an updated driver.

    Step 1: Firstly uninstall the audio from the device manager driver and Add / Remove Programs

    a. click Startand then click Control Panel.

    b. click Systemand click on the hardware tab, then click Device Manager.

    c. to the title sound, video and games controller, check the sound card that is listed.

    d. right click on the sound card, and then click Uninstall driver.

    Step 2: To see if an updated driver is available, use Windows Update or access the sound device manufacturer's Web site.

    Follow these steps to do the same thing:

    a. click Startand then click Control Panel.

    b. click Systemand click on the hardware tab, then click Device Manager.

    c. the title sound, the video controller and games, make sure that the sound card is listed.

    d. right click on the sound card and then click Update driver to install the latest version of the driver.

    e. visit the sound card manufacturer's Web site to determine if a newer version of the driver is available for download.

    Method 3: If you have multiple audio devices installed on your computer, try to use another. The selected audio device might not support Secure Audio Path (SAP).

    You can see the following article for more information:

    Resolution of the problems of reading in the Windows Media Player for Windows XP

    http://support.Microsoft.com/kb/306317

    Let us know if that helps.

  • problem with the drivers for the card microsoft virtual wifi miniport... problems with PnP devices

    He said to reinstall the drivers for this problem, but they don't reinstall... also he says hardware changes have been detected... can someone explain in easy to understand words what the problem is and how to fix it... pleaseeeeee... Thank you... The convenience store said: THERE IS A PROBLEM WITH THE DRIVER of MICROSOFT VIRTUAL WIFI MINIPORT ADAPTER... DRIVERS MUST BE REINSTALLED... it won't reinstall... also: PROBLEM WITH PnP DEVICES HARDWARE CHANGES HAVE BEEN DETECTED? CAN SOMEONE HELP ME UNDERSTAND, IN EASY WORDS, EXACTLY WHAT I NEED TO DO TO FIX THIS... CD-ROM... IM USING A SAMSUNG LAPTOP MODEL NPR 519 RUNNING WINDOWS 7... Thank you... Update on the microsoft Web site says: this DEVICE no IS NOT WORKING PROPERLY BECAUSE WINDOWS cannot LOAD THE DRIVERS REQUIRED for THIS DEVICE (code 31)... im not computer savvy please someone help

    Hi MAGIC,

    It seems that you may need to update your BIOS firmware.

    You may need to contact Samsung for more information, if the update is available for download on their Web site.

    When started this issue is happening?

    You can disable the virtual WiFi adapter, as it essentially works as a tool of development at the moment:

    http://msdn.Microsoft.com/en-us/library/dd815243%28VS.85%29.aspx

    What is the device that has the problem?

    Reinstall the drivers to fix the problem?

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

  • Windows Media Player cannot play the file because there is a problem with the audio device. It might not be a sound device installed on your computer

    Original title: speaker FOR desktop

    In the deskstop I connected an external speaker INTEX WITH power SUPPLY via USB and pins with audio jack.    The device is installed REALTek.   When I play songs or video, he said: -.

    "Windows Media Player cannot play the file because there is a problem with the audio device. "It might not be a sound device installed on your computer, it can be used by another program, or it might is not working properly.

    How to solve this problem.

    Hello

    I realize has the inconvenience that you are having with your speakers that you get an error message while playing the songs. I will certainly help you to question.

    I would like to know some information:

    1. Have you tried to plug any other speakers or headphones?

    2. You did changes to the hardware/software before this problem?

    3. Have you tried using these speakers with another PC?

    Also, I suggest you refer to the suggestion of Pinaki reducing replied on June 20, 2014 from the link below:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-hardware/Windows-Media-Player-cannot-play-the-file-because/7faf6bdb-6a4e-4B5B-b5a9-2119907d953e

    Hope this information helps.

    Thank you to provide us with the information to look for more on this subject and to better understand the issue and we will be happy to offer our help.

    Please get back to us with an update on the issue, we will be happy to help you.

  • Cannot use Skype download message problem with the recording device.

    Original title: Windows Livecam

    Hi my Skype can't my webcam micro and constantly sentds me a message saying "problem with recording device" How can I solve this problem?

    He also says that my audio device is disabled in windows. I don't know what to do if someone could help that would be great :)

    I had this problem too. This isn't a matter of Skype but there is a problem with the Audio driver on your system.

    I used the following steps to detect the problem:

    (a) I uninstalled the existing version of Skype

    (b) installed the new version of Skype

    (c) check if the problem still persists. Given that the problem still persisted.

    (d) consulted the sound link in the Panel control, updated sound card driver software.

    Problem solved.

Maybe you are looking for

  • Ink HP Officejet 8600 Costco refills will not be printed.

    Always buy at Costco HP printers. Buy an about every 1 1/2 years. The price ink cartridges were break me and was so excited that Costco has started filling them. Worked fine the first time and now this time it wouldn't, except Cyan, so I went back to

  • Disk image to update the firmware in linux?

    I recently bought the a Ultra II SSD 240 GB and I wanted to make sure I'm using the latest firmware. To my surprise, there is no way to update the firmware in Linux. My current firmware version is X31200RL (the description of disk indicates this) It

  • Startup.exe appears every time I start the computer.

    OT: startWhen I start my computer 'setup.exe'.s (with quotes) always appears.   After seceral closing click it disappears. It is very mysterios. Can someone help me? Meredith

  • Change the location of the TEMP folder on another drive

    1. What are the steps (dialog) to change the files TEMP system Windows7 on drive C for one of my other drives local HHD? Now, I have only a 160 GB SSD for my boot (C - drv) and want to keep the WRITE/ERASE SPO to a minimum. 2. is it a security risk t

  • Office Reinstillation

    I reformatted my C drive after backup when I tried to reinstall Office, she asked the key. I entered the key I receivedwith the program and that it was not valid. I am on 7.