Cannot openInputStream on device

Dear all,
I've written a J2ME application for Sony Ericsson T610 that requests data from a servlet. In the emulator everything goes fine, but when I run it on the real device it throws an exception on "is.openInputStream" ! Since it runs fine in the emulator, I have a hard time finding the problem. Can anyone help me ?
This is the servlet side :
           HttpConnection conn = null;
          InputStream is = null;
          byte[] receivedData = null;
          try
               /* Setup the Http connection */                                        
               conn = (HttpConnection)Connector.open(this.composedUrl);               
               conn.setRequestMethod(HttpConnection.GET);               
               conn.setRequestProperty("User-Agent","Profile/MIPD-1.0 Configuration/CLDC-1.0");               
                             conn.setRequestProperty("Content-type","application/x-www-form-urlencoded");               
               /* Open the connection */
               is = conn.openInputStream();
               /* Read the Http header */
               String contentType = conn.getType();
               formSchedule.append("<"+contentType+">");
               /* Read the data */
               int len = (int)conn.getLength();
               if(len > 0)
                    receivedData = new byte[len];                    
                    int actual = is.read(receivedData);
               else
                    receivedData = new byte[1024];
                    int ch;
                    len = 0;
                    while((ch = is.read()) != -1)
                         if(len<1024)
                              receivedData[len++] = (byte)ch;
               /* Show the data on screen */
               String response = new String(receivedData,0,(len%1023));
               StringItem strResponse = new StringItem(response,null);
               formSchedule.append(strResponse);
               display.setCurrent(formSchedule);
          catch(Exception e)
          finally
               try
                    if(is!=null)
                         is.close();
                    if(conn!=null)
                         conn.close();
               catch(IOException ioe) {}
     }This is the servlet side :
     public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
          String prog_s=request.getParameter(PROGRAM_PAR);
          String date_s=request.getParameter(DATE_PAR);
          PrintWriter out=response.getWriter();
          if (date_s!=null && prog_s!=null){
               try{
                    int program=Integer.parseInt(prog_s);
                    //DateFormat format=DateFormat.getDateInstance();
                    Date date=new Date(Long.parseLong(date_s));
                    switch (program){
                    case PROG_CERT:
                         out.println("Certificate - "+date);
                         break;
                    case PROG_ENG:
                         out.println("Engeneering - "+date);
                         break;
                    case PROG_ENT:
                         out.println("Certificate - "+date);
                         break;
                    default:
                         out.println("Invalid Program Parameter");
                         break;
               }catch (NumberFormatException e){
                    out.println(date_s);
          }else{
               if (date_s==null) out.println("Date Parameter is missing");
               if (prog_s==null) out.println("Program Parameter is missing");
          out.close();
     }Any help or advice would be greatly appreciated.
Philippe

3 hours is all it should take to full charge. It should turn on after 15 minutes using the wall adapter.
See: What to do if your iPhone or iPad will not turn on

Similar Messages

  • I have a Tritton TRI-BC200 hands free device that my iPhone 5 no longer "sees" on Bluetooth, so, I cannot pair the device. Anyone have a suggestion? Tritton no longer supports the device.

    I have a Tritton TRI-BC200 hands free device that my iPhone 5 no longer "sees" on Bluetooth, so, I cannot pair the device. Anyone have a suggestion? Tritton no longer supports the device.

    I had this problem and what I did was: read the user manual. I was actually using the wrong buttons to put the Tri-BC200 on pairing mode. I also boot my I phone. Everything worked OK. Regards.

  • I have installed the new up to date itunes which i can open on my PC, however when i connect my ipad or iphone i get an error saying i cannot use the device as the require software isn't installed?? I'm very confused please help......

    I have installed the new up to date itunes which i can open on my PC, however when i connect my ipad or iphone i get an error saying i cannot use the device as the require software isn't installed?? I'm very confused please help......

    Let's try a standalone Apple Mobile Device Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of why it's not installing under normal conditions.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleMobileDeviceSupport.msi (or AppleMobileDeviceSupport64.msi) to do a standalone AMDS install.
    (If it offers you the choice to remove or repair, choose "Remove", and if the uninstall goes through successfully, see if you can reinstall by doubleclicking the AppleMobileDeviceSupport.msi again.)
    Does it install (or uninstall and then reinstall) properly for you? If so, can you get a normal iTunes install to go through properly now?
    If instead you get an error message during the install (or uninstall), let us know what it says. (Precise text, please.)

  • Cannot open/stat device

    Good day to all.
    I'm trying to install Solaris 10 (11/06) on my pentium D box. I have 1 SATA hdd (primary master) and 1 DVD-RW drive. The hdd have 2 primary partitions - 1st - win-xp, ntfs, 2nd - for Solaris OS and 1 logical partition. During installation process I have an error - installboot failed - failed to install boot block.
    After that I boot in single user shell disagreed to mount found solaris partition on /a and entered command - /sbin/installgrub stage1 stage2 /dev/dsk/c1d0s0 and got an error - cannot open/stat device /dev/dsk/c1d0s2
    I don't understand why installgrub trying to use c1d0s2 instead of c1d0s0?
    By the way, mount /dev/dsk/c1d0s0 /a works fine.
    Pls help!

    Hi,
    I have a disk with 2 partitions. 1st partition I installed solaris2 filesystem/slices. 2nd partition I created via fdisk from within solaris.
    I assigned 2nd partition to a zpool. Creating the zpool trashed my MBR, and I could no longer boot Solaris off the hard drive.
    booting into singleuser mode off the install cd, solaris detected the 1st partition, and mounted it at /a. Running installgrub gave me the same error message.
    Trick I tried:
    Copy stage1 and stage2 files off /a/boot/grub into /tmp.
    unmount /a.
    re-run installgrub
    violla installgrub has no problem writing to device. The MBR was restored! Horray!

  • Just installed a new Airport Exteme.  Set up was no problem however we have  3 IPads and 1 Mac laptop and cannot get all devices to access Internet. Every reset of the airport gives a different combination of devices allowed access. Any ideas as to why?

    Just installed a new airpot extreme with a modem to use as a wireless system. Setup was successful however with 3 iPads and one laptop we cannot get all devices access to Internet. Each reset of airport extreme results in a different combination of devices that successfully connect. Any ideas as to why?

    Well, this is interesting,
    Let me tell you coulpe of things I noticed:
    - Are you using LEAP as the EAP method? some config examples illustrate configuriong using LEAP with WEP keys. Forget this and use WPA2-AES.
    http://www.cisco.com/en/US/products/hw/wireless/ps4570/products_configuration_example09186a00801c40b6.shtml
    - in some AP configurations (AP1 for example) I can see that:
    wlccp authentication-server client any method_Users
    This means that the wlccp client authentication will use the method called method_Users. Let us see what is configured with this method:
    aaa authentication login method_Users group Users
    This shows us that the method method_Users uses the server group named Users.
    let us see what is configured withe the group Users:
    aaa group server radius Users
    NOTHING!! it is empty!! so when a client tries to connect it will try to autheticate it against the radius server but the radius server group that it needs to check is empty.
    so I think you need to either use the correct method under which the server is configured with the wlccp statement. OR you need to configure the method_Users with correct user group that contains a server.
    Check and let me know if that works.
    Regards,
    Amjad

  • Windows cannot load the device driver for this hardware. The driver may be corrupted or missing.

    I'm having the error "Windows cannot load the device driver for this hardware. The driver may be corrupted or missing. (Code 39)" and I can't read/write CDs/DVDs. When I try to update the driver  I have the message that it is already up to date.
    I can't find the driver to dowload and try to fix the problem. Where can I download it or solve somehow my problem?

    Hi juigarashi,
    Microsofts automated troubleshooting service on the link below may help
    CD/DVD Repair
    Hope it works for you.
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Getting an error 'Cannot open Boot device' while trying to install Solaris

    Hi,
    We were trying to install Solaris * on a Sun Sparc system and the CD rom drive does not seem to get recognised. When we try booting from cd rom we get an error 'Cannot open boot device' .
    This server was up & running and we were trying to remove a hard disk that had failed and modified the vfstab script . After that the system failed to even boot up. So when we tried reinstalling the OS we are running into this problem.
    Am new to this technology ...And any help would be greatly appreciated. .....
    Thanks

    Cdrom drive must be scsi device 6
    I assume you are running < boot cdrom> at the ok prompt
    also at the ok prompt run the command <probe-scsi> (without the angled brackets) you need to see the following:
    Target 6
    Unit 0 Removable read only device TOSHIBA XM.......bigpileofnumbers
    If not, check the cdrom drive and the cdrom inside
    hope this helps
    Alan

  • Canopus 110 and the dreaded "Cannot connect to device"  msg

    I am using Premiere Elements 2.0 with the Canopus 110 to make copies of my HI-8 and Beta tapes, and getting increasingly frustrated with the way PE 2 drops my temporary file and forces me to start the whole copy over again from the beginning every time I get the "Cannot connect to device" error. It occurred to me that maybe later versions of PE have fixed this problem. It seems simple enough -- when I press 'Stop Capture' the temporary file instantly becomes permanent, so why not when I get a momentary interruption in the signal? It would be worth $100 to me to upgrade to PE 6 or 7 or whatever the latest version is.
    So, my question is directed toward others who are plagued by this irritating message: Do the later versions of PE 'save' what has already been recorded?
    Thanks!

    'Stop capture on dropped frames' was already turned off. You gave me an idea, however. I will turn it ON and see if that solves my problem (if Capture must be aborted, I want PE2 to save what has already been captured).
    I had not heard of WinDV and was quite impressed. Only a 38K download, and it works right out of the box! Now to try recording and see what it does when the connection is interrupted.
    Two good ideas -- thanks, both of you!

  • "windows cannot access specified device, path or file", adobe reader x

    hi,
    i had an older version of reader (9.something i think) that started making troubles, so i removed it (via control panel) and tried to use reader x instead. but after installing it i tried to run it and got this message titled "c:\programfiles\adobe\reader10.0\eula.exe":
    "windows cannot access specified device, path or file. you may not have the appropriate permitions to access the item".
    after clicking "ok" the program shuts.
    i downloaded this version from adobe's site and registered. i also tried to go back to version 9 but the installation itself wouldn't go.
    i'm using windows xp and downloaded reader using chrome. i deleted all previous adobe reader files from my computer prior to downloading, so it should behave as if this the first time this program was installed on it.
    how can i solve it? (i've already tried going through the whole process again and again)
    thank you for any help.

    I have found out how to solve this issue..
    Took A few days to figure it out and a lot of installs and un-installing
    Install CS6 master collection again and restart your machine- Make sure all anti-virus is disabled
    What you have to do:
    1. Press Start
    2. go under "Abode Master Collection CS6 (it should say its empty)
    3. now left click the folder "Adobe Master Collection" and open it..
    4. it will now come up with all programmes that SHOULD have worked - their thumbnails will not be visible it will look as if its corrupted.
    5. Now this is a long procedure- go on the first shortcut, lefts click and go to properties.
    6. Then select the option that says "Open File Location" it will then take you to its main folder.
    7. Left click the highlighted Programme within the main folder, then go on properties
    8. Go on the security Tab, press "continue" then you go on "Add" then type your account name, then "check name" then tick the box "full control"
    9. Then navigate to the "compatibility" Tab and select "Run this programme as an administrator (if you don't do this it will come up with another error)
    You should now have the thumbnail (picture) for the programme now
    You have to now repeat this for the rest of the programmes/shortcut's within the "Adobe Master Collection" Folder

  • Upgrading to Lightroom 5.6 get message "Windows cannot access specific device path or file. You may not have the appropriate permissions to access the item" I'm running Windows 7. How do I make it work?

    Upgrading to Lightroom 5.6 get message "Windows cannot access specific device path or file. You may not have the appropriate permissions to access the item" I'm running Windows 7. How do I make it work?

    right click the installation file and click 'run as administrator'.

  • Upgrade to K7N2 - Win2K cannot find bootable device

    I just tried upgrading my system to a K7N2. When Win2K loads (during the white logo'ed screen with the progress bar) it gives a BSOD with something like "Cannot find bootable device" (I forget the exact phrase). I've had to swap back to my previous MB and Win2K is fine so the disk isn't corrupt which was my first worry.
    If I booted to DOS via floppy, all FAT32 partitions were readable. If I booted using the Win2K floppies, all NTFS partitions looked fine.
    I beleive I have the HDD Access mode set correctly - it was set to LRG on my old system. (If I set it to anything else, it will just hang before Win2k loads).
    I guess (or rather hope) its a BIOS setting that's wrong, but I can't figure out which.
    This has got me stumped. Any clues/suggestions would be gratefully received.
    K7N2
    AthlonXP 2100+
    512MB PC2700
    IBM 46GB HDD (IBM-DTLA-307045)
    GeForce 4200Ti

     Uninstall the IDE controllers in the system device managers page..............reboot and install M$ reference ide contollers check them and see if that is so.....if not then you will have to manually install them...........save and exit........place the hddrive back on the other mb and see if that will get you into widows.......from there you can update the ide controllers from the MSI cd.....
    If all else fails boot the system to the windows cd and do a windows repair of the systems HAL (Hardware Abstraction Layer)
    skip the ASR and go to repair................ navigate to the  c:windows> prompt,  and type..............(example here e:  is the cdrom drive where the windows cd is loaded and c: is the drive you have windows running on.)
    copy e:i386hal.dl_ c:windowssystem32

  • When you load Windows via Boot Camp Assistant program and run Windows does not recognize the "usb" outlets cannot identify the device through the Dvd or flash

    When you load Windows via Boot Camp Assistant program and run Windows does not recognize the "usb" outlets cannot identify the device through the Dvd or flash

    Did you install BC drivers on the Windows side?

  • Won't Install in Win XP "The system cannot open the device or file specifie

    When installing Quichktime or iTunes, the installer displays ""The system cannot open the device or file specified."
    What should I do?

    I was getting this problem too. To resolve I did the following.
    Physically disconnected PC from network.
    Stopped Anti Virus (Evira personal).
    Turned off Windows Firewall.
    Stopped Malware detection (PrevX).
    Installed iTunes + Quicktime.
    Restarted above security programs.
    Reconnected to network.
    Problem sorted.

  • Cannot find boot device, cannot continue.

    Im trying to install arch linux on my eeepc but im running into problems, i choose arch linux from the installer menu and then as it goes on it suddenly stops saying 'Cannot find boot device, cannot continue... Falling back to interactive prompt' and im pretty sure thats not meant to happen so what do i do?

    I am getting this error as well using the archlinux-2009.02-core  64 bit iso image.
    Same exact error
    Something about a searching for SCSI sda device
    Scanning boot...
    Scanning cd...
    Scannng USB...
    'Cannot find boot device, cannot continue... Falling back to interactive prompt'
    then I get a $ prompt, and cannot use keyboard, I have to manually push the power button to restart.
    I'm booting from a Sansa Clip 4gb
    Also, my computer has no optical drive...yet
    Last edited by Anonymo (2009-04-04 16:05:54)

  • Users cannot access removable devices after you enable and then disable a Group Policy setting in Windows 7 64 Bit

    Users cannot access removable devices after you enable and then disable a Group Policy setting on Windows 7 64 bit machines.
    on the 32 bit machines I was able to apply this hotfix
    http://support2.microsoft.com/kb/2738898
    But it will not install on 64 bit machines. 
    Is there a hotfix for 64 bit?  If not, what is the work around?
    Thanks!
    Robert

    Select "Show hotfixes for all platforms and languages", then download x64 hotfix:
    Please take a moment to Vote as Helpful and/or Mark as Answer where applicable. Thanks.

Maybe you are looking for

  • IOMMU explanation of kernel parameters

    Hello! I've set up an HTPC with an AMD A4-5300 CPU, A75 (Hudson-D3) chipset and a PCIe sound card (Asus Xonar DX). Whenever I tried to get a sound out of it (e.g. aplay blubb.wav) I only got dozens of these messages in the kernel log: [ 46.215678] AM

  • Reports for display secondary cost element

    Dear SAP consultant After run settlement cycles we going to display reports for secondary cost elements but it is return zero balance, i know that when i am trying to drill down it will get the whole data. but it is not practical because the huge amo

  • Need help on installation on SEM 3.5

    Hi Friends I have SEM 3.5 software and wish to install it on BW. I have BW 3.5 already installed and would like to know which version of SEM supports the BW 3.5. Moreover the SEM DVD which I have mentions as > Incl. Suport Package 1-11 > SAP BW Conte

  • Where's the mail jar

    hi when i use netweaver 7.0, i can use "Used DC" to add a DC named "mail". now i develop with nwce, i can not find the dc anymore. can anyone tell me where it is or which dc(name) i can use it then i can use javamail api. should i use ext lib project

  • How do you activat siri and has siri com to norway ?

    how do you activat siri and has siri com to norway ?