Re: Cannot get new URLconnection.getInputStream() in JAVA

new URLConnection.getInputStream() does not seem to work.
Background: I am trying to POST the data to an ASP page and reading the response back but it does not seem to work...if I comment this line out it works but does not do what it is intended for.
Basically I am trying to upload files to the server and am connecting to the URL and writing to its stream....but cannot read the response back..Please help as I have tried everything I could and have read the forums but no LUCK yet

Yeah yeah that is what I meant ...please excuse me for that ... jst getting slightly pissed off with this problem....see the code below...
BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
this is where the error is coming from and the server throws error no 500.
I have tried posting to the same URL using a Form and it works without any issues....please help

Similar Messages

  • Error cannot get new token due to device offfline state

    I cant download any app from appworld or even cant access into Myworld. Its says "Cannot get new token due to device offline state.(Error id:40760)"
    i reinstalled the appworld but its the same thing happening.Besides i have reset my BBID pasword through email as i forgot that. when i try to access in my mobile's bbid it says"Unable to update Blackberry ID account informtion while offline".
    it seems smthing wrong with the "offline state".Actually whats this thing?. i am using curve 9300 without BES or BIS but with the normal edge internet enabaling apn settings for five months.every thing was fine.but this problem is occuring for two days.my browser and other installed apps working fine but not the appworld.Please Help me....................

    Hi,
    I have the same problem, cant download any app from appworld or even cant access into Myworld. Its says "Cannot get new token due to device offline state.(Error id:40760)"
    I am using Bold 9700  without BES or BIS but with the normal edge internet enabaling apn settings for five months.every thing was fine. But this problem is occuring for two days.my browser and other installed apps working fine but not the appworld.Please Help me....................

  • Cannot get new token due to device offline state. Id error 40760

    Hi,
    I have a Blackberry Curve 9380 
    i can't go in my app world, the message says: Cannot get new token due to device offline state id error 40760
    what should i do?
    btw, i'm french
    thanks!

    Hi and Welcome to the Community!
    With a strong carrier network signal (e.g., not merely WiFi), I suggest the following steps, in order, even if they seem redundant to what you have already tried (steps 1 and 2 each should result in a message coming to your BB...please wait for that before proceeding to the next step):
    1) Register HRT
    KB00510 How to register a BlackBerry smartphone with the wireless network
    Please wait for one "registration" message to arrive to your Messages app
    2) Resend Service Books
    KB02830 Send the service books for the BlackBerry Internet Service
    Please wait for "Activation" Messages, one per already configured email account, to arrive in your Messages. If you have no already configured email accounts, please wait 1 hour.
    3) Reboot
    With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes.
    See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    If not, then please try this sequence:
    1) Remove AppWorld from your BB
    KB10040 How to view or remove installed applications on a BlackBerry smartphone
    If it requests that you reboot the BB, do so
    2) Do a Batt-Pull reboot (power on, remove battery, wait, insert battery, wait), even if redundant to the one you did in step 1.
    3) Install (on your BB) a fresh copy of AppWorld
    http://blackberry.com/appworld/download
    Again, if it requests to reboot, do so.
    4) Do another Batt-Pull reboot
    5) See if it now works.
    Otherwise, you should contact your mobile service provider for formal support.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Cannot get new ipad to message or facetime using my iphone number. Will only allow messaging and facetime with my email address

    cannot get new ipad to message or facetime using my iphone number. Will only allow messaging and facetime with my email address

    Using FaceTime  >  http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime
    iOS   http://support.apple.com/kb/TS3367
    About Messages
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755

  • With ios8.1 cannot get new gmail or use Safari?

    with ios8.1 cannot get new gmail or use Safari?

    Hello anderson113,
    It may help to force close the affected apps, then restart your iPhone.
    Force an app to close in iOS
    http://support.apple.com/en-us/HT5137
    Turn your iOS device off and on (restart) and reset
    http://support.apple.com/en-us/HT1430
    If you're still experiencing issues, the next step would be to restore the device.
    Back up and restore your iPhone, iPad, or iPod touch with iCloud or iTunes
    http://support.apple.com/en-us/HT1766
    Cheers,
    Allen

  • I cannot get new apps on my iPad 1

    I cannot get new apps on my iPad 1

    Ok...... Do you have a question for us? Perhaps you could start by explaining what's happening when you try to download apps. What error messages are you getting? What troubleshooting steps have you already tried?
    Please note that the original iPad can't be updated beyond iOS 5.1.1. Apps that require a later version of iOS won't work on your device.
    Best of luck.

  • Author       "javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream" after java update

    Not sure where to post this issue.
    I am noticing this error since I did the Mac update. The Mac update included the java update. Right now the java version is 1.6.0_31. My Mac OS X version is 10.7.3. I am seeing the problem for all the soundfont files that I am trying to load. The error i get is.
    javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream
         at javax.sound.midi.MidiSystem.getSoundbank(MidiSystem.java:565)
         at myPackage.MyMusicApp.main(MyMusicApp.java:14)
    Below is a small program I built that shows the code.
    package myPackage;
    import java.io.File;
    import javax.sound.midi.*;
    public class MyMusicApp {
        public static void main(String[] args) {
            try {
                Synthesizer synth = MidiSystem.getSynthesizer(); synth.open();
                File f =  new File("/Users/poorav/eclipseGIT/myApp/soundbanks/1247_KitDRY.sf2");
                Soundbank soundbank = MidiSystem.getSoundbank( f);
                synth.loadAllInstruments(soundbank);
            } catch (Exception e)
                e.printStackTrace();
    I am not sure what the previous build of java I was on, but i know that it was a 1.6 version. Any ideas of what could have caused this?
    thanks

    No satisfactory progress!
    I submitted a bug for this using the Apple bug reporter on 9th April (#11208868) and despite asking for an update, it has been completely ignored (even now). I'm not impressed.
    I then issued a (paid for) Developer Technical Support issue which was credited back to my account a few days later with no explanation. When I asked why, I eventually got: "At this time DTS does not provide code-level support for Java"!
    So, Apple are assuming to responsibility for this problem. I realise that Oracle is mostly responsible for Java but Apple took this crippled version (how much testing did they do?) and updated our customers' machines with it. This has effectively disabled a key feature of our product and has cost us damage to our company's reputation. Still Apple don't care and they rely on the fact that we are too small to sue them. You can see I'm not happy! I naively thought Apple would make some attempt to assist their developers.

  • I cannot get new purchases to sync with IPad - it says my computer isn't authorized - it is How do I fix this?

    I cannot get my new TV show purchases to sync to my IPad.  It says "you are not authorized on this computer"  It is authorized.  How can I fix this????

    Oh, and I'm not sure how relevant or necessary this information is, but the iTunes store on my computer doesn't work either, which led me to buy the music on my phone. I try to open it and the top says "Accessing iTunes Store..." and never gets past like a little bit less than half. I looked at some other discussions but none of the suggested solutions worked.

  • Cannot get new messages to download automatically and auto reply with out of office message have to manually check for new messages to get it to do this

    I am using Mozilla Thunderbird 31.3.0. I know how to create a message filter to set up an auto reply message, but cannot get Mozilla to automatically download new message and auto reply with the message in the filter unless I manually check for new messages, that is the only way to make it work. I have looked online and can't seem to find an answer to this particular issue. According to anything that I have found, I have the correct boxes checked in server settings: check for new messages at startup, automatically check for new messages, check for new messages every x amount of minutes. It's one thing to have to leave my computer on and Thunderbird open to make this work, but to have to manually check for new messages to get the auto response to work defeats the whole purpose of having an auto reply, as I use them for vacations, holidays, etc. I have wondered if there are any security settings that are causing this issue, but if so, I don't know what changes to make to them. Thanks in advance for any help. This is driving me crazy.

    I do find it a bit odd that Thunderbird is not getting mail on schedule, perhaps you have an add-on or anti virus program that prevents that.
    Holding shift while you start Thunderbird will start with add-ons disabled to check if mail come automatically.
    Airmail is right though, use Verizons auto responder. This link might help with that http://www.verizon.com/support/residential/internet/highspeed/account+tools/email+tools/questionsone/85621.htm#
    You say that not having such a setting in Thunderbird is something that needs fixing. This idea comes on the whole because Outlook has such an option. what most people are not aware of it only works with Exchange server. There is no "vacation response" in server mail specifications so every server implements it differently.
    Just as all cars have a radiator, you can not take any radiator and just put it in, they are subtly different even though they perform the same purpose. Same goes for the various vacation responders, They perform the same purpose but they differ between email server software brands.
    Thunderbird leaves it to the server end to expose the functionality, as they are really the only ones who understand what they did. Outlook exposes the option and mostly greys it out.

  • When i move my macbook from home to office, i cannot get new emails. how to solve?

    hi, i set up the mail at home, now move the mac to office, i cannot get any new emails now. anyone know why and how to do?

    Connection Doctor
    <http://support.apple.com/kb/TS3276>

  • I cannot get new download , ios5, for my original ipad. Each time I try it just keeps backing up the ipad.  It is almost as though itunes freezes.

    I cannot get the IOS5 ipad update onto my oringinal ipad. Each time I try, I get a "backing up ipad" this goes on for about 8-12 hours.  I have tried for 4 nights to get this update on my ipad with no luck. I have reinstalled itunes and downloaded the the new update several times, as well as rebooting my computer, (which runs windows). It appears that Itunes freezes.  When I cancel the update I cannot get into the  device icon (ipad icon) ti change the settings Help!

    my update only took 30-45mins..
    check this out if you still having trouble updating whislt hanging during the process..
    https://discussions.apple.com/message/16338741#16338741
    REP/Like it up!!

  • I cannot get news pictures on msn home page just headlines

    on msn home page I cannot get the rotating headline news pictures just the headlines

    I just checked the MSN homepage and everything appears to display correctly.
    The problem may be caused by the old version of Firefox which you're running. So I recommend you go to '''Help '''| '''Check For Updates''' to update to v3.6.16
    If you would like to update further to Firefox 4.0, repeat the same steps after installing v3.6.16
    After you update, go to the [http://www.mozilla.com/en-US/plugincheck/ Plugins Check] page and update any which appear in red.

  • Cannot get new ipod nano to be recognized by itunes - HELP?

    Anyone using Windows XP able to get new nano to be seen by iTunes? Keep getting error and even after, uninstalling and reinstalling iTunes (with help of iTunes support).  Anyone else been successful after getting that message?

    Was is exact wording of this error message?
    B-rock

  • I cannot get new E-mail after lion 10.7.5

    I have been using Lion 10.7.2 and updated to 10.7.5 and now I cannot receive new E-mail, Can send ok

    Check your SMTP settings in Mail. Make sure your email account you use is selected. Mail / Preferences / Accounts. Click the drop down for Outgoing Mail Server (SMTP) and select Edit SMTP Server List. Make sure the server name is correct under the Account Information tab. Click the Advanced tab and make sure your Authentication, User Name and Password are correct.
    I know for me after updating to 10.7.5, I had to reenter my account password for SMTP.

  • HT4623 cannot get new phone to activate

    cannot get phone to activate

    It's because the activation servers are being slammed due to the release of iOS7.
    The only things you can do are keep trying, or wait it out.

Maybe you are looking for

  • How to make a photograph look like a hand drawn cartoon in Photoshop or illustrator?

    Hi all- I'm taking a childrens book writing and illustrating class and my illustrating skills are nil. I want the photos to look like a "Cartoon" and want to create the pictures for the book but not sure which filters work best for this effect. Would

  • Profit center and GL number length

    Hi Dave, Ferry and all, Just like cost center I would like to know the digit lenght of profit center and GL account. Can you tell what Table to go or any other tcode to see the specific requirement my company has created for GL's or Profit center

  • Remove MDI Window Title Bar

    I want to remove the MDI Window Title Bar, because i already have noticed in this forum that is almost impossible to remove the whole MDI window in Forms 10g... Is it possible??

  • Combine layer names in one line

    Hello Community, I have a tiny question: Can those two lines be combined to one command by somehow group the names? I have throught about an array but I would like to have the names still visible. Maybe there is something smarter ... ? myDokument.lay

  • ? on title bar of my folders

    Why is there a question mark in the title bar of all my folders?