Is it possible http connection work well in simulator but not in mobile?

i am developing database three tier client/server application.
i want to connect mobile application to databse server via servlet page using tomcat server.
my code is working well in java wireless toolkit and it can download and upload data using my servlet page in which i had used JDBC connectivity but when i am installing same JAR file into Nokia 6030 it will gives me error like java.io.IOException: error in http operation. i had used this code to establish connectivityhcon = (HttpConnection)Connector.open(url, 3);
hcon.setRequestMethod(HttpConnection.POST);
hcon.setRequestProperty( "User-Agent","Profile/MIDP-2.0, Configuration/CLDC-1.0");
hcon.setRequestProperty("Content-Language","en-US");
hcon.setRequestProperty( "Content-Type", "application/x-www-form-urlencoded" );
dos = (DataOutputStream)hcon.openDataOutputStream();               
byte abyte0[] = data.getBytes();      
dos.write(abyte0);
dos.flush();
dis = (DataInputStream)hcon.openDataInputStream();
while((ch = dis.read()) != -1)
           response = response+(char)ch;
if(hcon.getResponseCode()==200 && !response.equals("ERROR"))     
     setData(response);
else
     errorAlert("Server Error","Server can not handle your request at this time, Error msg : " + response);in this code i am sending data to server at url where i have used servlet post method this method work well in simulator but when i m instaling this program into deveice request generated from mobile didn't came to servlet.
whe i am browsing same page's get method through WAP in mobile it is working but thruogh application not connecting.
is there any more setting require to browse url via application like in Accesspoint proxy server of provider or i need to change code?.
If anybody having the solution then please send me.
thanx .
jasmit vala.
[email protected]

Hi,
I am also facing the same problem?
Have u got any solution?
pls let me know
its urgent
thanx in adv.
Regards,
Raj

Similar Messages

  • HT1937 my cellular data connection works in one location but not in another

    Why does my iPhone's data connection work at other places but not at work?
    It works sometimes.

    Good question to ask your cell phone provider.. Maybe the material the building is made of is blocking the cellular data signal.

  • Internet connectivity works in OS X, but not in Windows 7 Ultimate

    I have a new Mac Mini. Mid 2011. 2.3 GHz i5. 8 GB RAM.OS X Lion 10.7.3. Windows 7 Ultimate.
    I used Bootcamp to install Windows 7 Ultimate on a partition. All drivers are apparently up-to-date -- they were installed through the Bootcamp Assistant. Internet connectivity works fine in OSX, but is very unstable, if even existant, in Windows. If I do have a connection, I have download speeds of <1Mbps.
    Any thoughts on what may be causing this?

    Hello, I don't think I can help, I do have 10.7.3 & W7 Ultimate, but I run W7 in Parallels...
    http://www.parallels.com/
    And it uses Shared Networking of OSX.

  • Same page with tables works well on IE but not on Firefox or Safari

    This qs may have been asked already but I am new to the forum.
    I have created a page in DW using tables and everything fits beautifully in it. It works really well when tested on IE but all the alignments are way off on Mozilla Firefox and Safari(mac). I cant figure out why this is happening. I would like to site to work well on all 3 browsers.
    here is the page: http://3beespaperie.com/casablanca.htm
    as you can see, the top of the main photo should line up wiht the top of 'details'.  same with http://3beespaperie.com/rajkumar.htm where the top of the photo is in the same table and row as that of the orange text on the right.
    please help,
    Thanks

    Please see the announcement at the top of the discussion list for this forum.  Pick the Dreamweaver General Discussion forum from it, and repost your question there.

  • Jdeveloper 9.0.3 Apps works well on 9iAS but not on 10g AS

    We have application built in Jdeveloper 9.0.3 it is working well on 9i AS R 2 but when we deploy it on 10 AS R1 it is deopled no error but all JSP function are giving error at run time
    pleas help

    JDeveloper 9.03 does not support 10g application server.
    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/as_supportmatrix.html

  • FCP Quicktime Movies works well in iDVD, but not in DVDSP

    Hello,
    I work in a film school with several iMac & PowerMac editing suites running Final Cut Studio 2.
    Every computer is set up exactly the same way, yet we are having odd problems with DVDSP on one of the PowerMacs.
    From FCP6, we export self contained quicktime movies, that we then Compress, and then import into DVDSP. This system works well on all of our new iMacs, but on the 3 year old PowerMac, the resultant DVDs that it burns do NOT playback on any DVD Players at all.
    Yet strangely, when I take the same QT Movie into iDVD on that computer, it burns a perfectly good DVD.
    I have even tried bringing the QT Movie files and Compressor files from the Power Mac and transfer them onto an iMac and have been able to burn them fine that way as well. This is occurring with all the FCP projects on this computer.
    Any help would be much appreciated,
    Sincerely,
    Marc Griffin

    It could be a few things, but it may be that the drive itself is dirty or going. It sounds strange but there were people on the board who ran into issues where they could burn the DVD but not play it back on the same drive. Could be something became corrupted. Also people have noticed some strange things happening if an install of Studio 2 was done over a prior installation - it seemed to be most reliable by doing a fresh OS install then installing 2. Also does the computer have all the updates to the software? Are all the computers running the same OS? Have you deleted prefs and repaired permissions?
    Also check your settings on the PowerMac, are you doing a proper build/burn? Did you set a first play? Are you using the same type of media?

  • XML data connection works in the preview, but not in the final swf

    Hello,
    I have set-up a dashboard with an XML data connection button to load XML data from an internet source. Everthing works perfect in the preview-swf within Xcelsius 4.5. But pressing the button in the exported swf does not have any effect. The dashboard is busy for 2 seconds, but no data is loaded. What could be the reason?
    Thanks.

    Yes, the location is registered. The problem also occours when the swf is opened directly on the web server where the xml-source is running.

  • Wha wha pedal work well with GarageBand but don't want to work with logic pro 9.1.8 on my MBPro end 2011

    Install on MacBook Pro end of 2011 with logic Pro 9.1.8 and Apogee GIO interface guitar
    The wha wha pedal work well with GarageBand but not working with Logic Pro
    Only the red light turning on and off at the screnn of the MBPro and on my Apogee GIO (Guitar Interface Midi) switch button but the effect wha wha won't work.
    HOPE YOU UNDERSTAND MY ENGLISH

    Pancenter...
    Yes... but I have come across some setups that came with a native SL (and even one Lion!) installation.. that somehow had a corrupted or older Prokit installed for some unknown reason... and given it's a quick fix to try.. I thought I'd mention it..
    I frankly don't think it is entirely a Prokit issue itself, but it wouldn't do any harm to try and install v7 just in case it is part of the problem...
    +1 on the UAD stuff....
    Also, at the time it crashed... according to the logs...the OP was running Ableton Live at the same time, presumably rewired with Logic... so add all that together with UAD plugins... and that's quite a load on the system...
    Finally in thread 32 there is a weird exception msg relating to the Trash2 plugin.. that I haven't seen before...
    Thread 32:
    0   libSystem.B.dylib      
    0x94c29afa mach_msg_trap + 10
    1   libSystem.B.dylib      
    0x94c2a267 mach_msg + 68
    2   ...tope.audioplugins.AU.Trash2
    0x667bd57a catch_exception_raise + 250
    3   libSystem.B.dylib      
    0x94c57259 _pthread_start + 345
    4   libSystem.B.dylib      
    0x94c570de thread_start + 34
    That might be nothing... but as i said, I haven't seen that one before and given what else is going on.. it might be involved too... or nothing to do with that at all!

  • I have a MacBook Pro and all of a sudden  I cannot get wireless internet connectivity to my router or any other router, I get connectivity through the ethernet port but not wireless. This was working well till this morning

    I  have a MacBook Pro and all of a sudden  I cannot get wireless internet connectivity to my router or any other router, I get connectivity through the ethernet port but not wireless. This was working well till this morning

    BXB1905 wrote:
    I tried the Apple diagnostics it did not work.
    What do you mean it did not work!  What were the results of the diagnostic tests?
    Have you contacted your ISP to determine if the problem is on their end?  
    Have you changed your router channel?  Sometimes this resolves wireless problems.
    Your profile confirms you are using Lion.  Check out the following: 
    Troubleshooting Wi-Fi issues in OS X Lion and Mac OS X v10.6
    Configuring 802.1X in Mac OS X Lion and Later

  • My iPad 2 is connected, works well and is found under "devices" on the left side of my iTunes window.  But when I go into my iTunes account the iPad2 is not listed nor found to be "associated" with my account.  Why not?

    My iPad 2 is connected, works well and is found under "devices" on the left side of my iTunes window.  However, when I go into my iTunes store account under "manage devices" the iPad2 is not listed nor found to be "associated" with my account.  Why not?

    Even if you put a credit or debit card on file with iTunes it will still use your balance FIRST.
    I would suggest putting a card on file and testing to see if it will allow you to make a purchase, then removing the card from the account after successful download of an item.
    EE

  • Applet work well in appletviewer but do not work within browser

    hi, i created an applet that works well in appletviewer,but it does not work within a firefox browser, it issue a message: java.security.AccessControlException: access denied (java.io.FilePermission imgDir/vsam.jpg read). What can i do to solve this issue please ?

    sign the applet, use doprivileged and trust the applet when you open it.
    Use htmlconverter in jdk/bin folder to convert you applet so it uses
    object tag instead of applet so IE won't try to run it with msjvm.
    Signing applets:
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post and reply 18 for the java class file using doprivileged
    Still problems?
    A Full trace might help us out:
    http://forum.java.sun.com/thread.jspa?threadID=656028

  • Any suggestions on how to get wifi to work?  I have a multitech router and can connect with a computer wirelessly but not the ipad.

    Any suggestions on how to get wifi to work?  I have a multitech router and can connect with a computer wirelessly but not the ipad.

    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/TS1398

  • Ipod works on one computer but not the other?

    Can someone please help me? My ipod works on my laptop but not the desktop. When I plug the Ipod into the desktop it sometimes shows up in Itunes but says it's corrupt. Which it obviously isn't because it works fine on it's own when not plugged into a computer and it works fine when I plug it into the laptop. Also when I looked in my computer the Ipod would show up as drive j and it would flash on and off. Well, I tried plugging the Ipod into a different port and that worked as far as drive j stopped flashing on and off. I tried changing the drive name and it wouldn't let me because it always went back to drive j even after I changed it to drive z. Itunes is playing music and is up to date. I have Windows Vista Home Premium 64 bit. Please help.

    Well start with these articles and see if that gets you anywhere...
    iPod is not recognized properly by computer when USB drivers are not installed properly or are out of date
    http://docs.info.apple.com/article.html?artnum=305136
    iTunes for Windows: iTunes 7 doesn't recognize iPod
    http://docs.info.apple.com/article.html?artnum=304434
    iPod missing in "My Computer" or in iTunes for Windows
    http://docs.info.apple.com/article.html?artnum=61711
    Also you might try forcing the iPod into disk mode first, then connecting it to your computer and see if that makes it show up in iTunes...
    Putting iPod into Disk Mode
    http://docs.info.apple.com/article.html?artnum=93651
    Windows confuses iPod with network drive or hard drive and may keep iPod from mounting or songs may seem to disappear
    http://support.apple.com/kb/TS1493
    Patrick

  • Superdrive works on XP/bootcamp but not on OSX?

    So, I've been through this a billion times. Even time-machined & formatted. But nothing works..
    I went through about 200 DVD's trying to put together a proposal for school and it kept failing to burn. With Toast, Disk Utility, Drag&Drop notta. Finally pulled the data onto my external, booted into Windows using boot camp, used nero, and worked without a Hitch.
    I've tried every trick on this site and on every other site possible. Tech support says that i'm free to pay em to replace the drive and tried arguing with em bout the bootcamp working etc.. (long story), but eh... fail! (mac support = worse then windows at this point)
    I have a hard time feeling this is a Hardware issue since it works on the Windows BootCamp partition but not on the Mac OSX 10.5.4 partition.
    MATSHITA DVD-R UJ-857E:
    Firmware Revision: ZA0E
    Interconnect: ATAPI
    Burn Support: Yes (Apple Shipping Drive)
    Cache: 2048 KB
    Reads DVD: Yes
    CD-Write: -R, -RW
    DVD-Write: -R, -R DL, -RW, +R, +R DL, +RW
    Write Strategies: CD-TAO, CD-SAO, DVD-DAO
    Media: Insert media and refresh to show available burn speeds
    I'm not as fluent in mac as i am with windows (MCSE/MCSA) but going to 2 years of electrical school I damned well know this most likely is a software issue not hardware.
    After spending three days reading in this forum i havn't found anything that works or similar to someone saying it works in bootcamp partition but not osx... sooo just curious if anyone's got any ideas worth while..
    thanks!

    There is no way to do this and I don't believe Apple would view this as an "issue"; in my humble opinion, it is because iMacs have a gorgeous display (your choice of 21.5 or 27") and therefore were not necessarily designed to be used with a second display, whereas laptops were - hence the available option to use it in clamshell mode:
    http://support.apple.com/kb/HT3131
    Edit: You can create a totally black image and use that as your desktop picture if you like.
    Message was edited by: Barbara Daniels1

  • Playing playlists on apple TV:  It worked at one time, but not now.  Home sharing is on, on the computer, but AppleTV wants me to turn it on!

    Trying to play playlist on Apple TV.  It worked at one time, but not now.  Home sharing is on, on the computer; but apple TV keeps asking me to turn home sharing on.
      What gives?

    Hello hobartco,
    Home sharing will, indeed, need to be set up on your Apple TV, as well.
    Setting up Home Sharing for Apple TV (2nd generation and 3rd generation)
    http://support.apple.com/kb/HT4352
    Cheers,
    Allen

Maybe you are looking for

  • ? parameters & JSTreeBrowser

    I have a JSTreeBrowser based on a view that is self-referential. It works fine. But I need to restrict the rows that appear using a bind variable (?). I put the ? in the View object's where clause, set Use ?Type parameters and compiled. The View Obje

  • HT1386 How do you sync your itunes from the Iphone to the macbook pro?

    How do you sync your itunes from the iphone to the macbook pro?  Let's say, I have an Iphone 3GS and it was synced to my older pc (I know...) and it crashed and I can't retrieve my files on there.  I want everything that I have on my 3Gs: photos, vid

  • How to change the priority of workitem

    im using the task to trigger the work item. normally the work item is coming with priority 5 that is medium. can i trigger the workitem with the priority decided by me in the method? generally who will decide the priority of the work item ? please su

  • Can't drag mail to trash or other files in Mail in OS X 10.6.1

    I just set my Mail up to connect to my company's outlook server. The problem is when i have to drag mail to a folder under the outlook inbox I get "an error occurred while moving messages to mailbox"

  • Changes don't show up online

    Hey everyone! I'm having this weird problem where I connect to the site i'm working with just fine, and changes i make locally and "put" are reflected in remote view in dreamweaver......everything looks good...but when I go online...the changes are n