Connection timeout exceed

Hi, I need to make a connection via http. I'm using next code:
" StreamConnection streamConnection = null;
InputStream inputStream = null;
StringBuffer b = new StringBuffer();
try {
streamConnection = (StreamConnection) Connector.open(url, Connector.READ_WRITE, true);
inputStream = streamConnection.openInputStream();
int ch;
while ((ch = inputStream.read()) != -1) {
b.append((char) ch);
return b.toString();
But the web page takes too long to show the result because of an application necesary stuff. I don't want to reconnect the URL because of traffic charges. How can I ignore the timeout? or any ideas?

Hi, I need to make a connection via http. I'm using next code:
" StreamConnection streamConnection = null;
InputStream inputStream = null;
StringBuffer b = new StringBuffer();
try {
streamConnection = (StreamConnection) Connector.open(url, Connector.READ_WRITE, true);
inputStream = streamConnection.openInputStream();
int ch;
while ((ch = inputStream.read()) != -1) {
b.append((char) ch);
return b.toString();
But the web page takes too long to show the result because of an application necesary stuff. I don't want to reconnect the URL because of traffic charges. How can I ignore the timeout? or any ideas?

Similar Messages

  • SQL2012: Internal Error: The operation terminated unsuccessfully. The connection timeout was exceeded. Server: The operation has been cancelled

    When rendering a SSRS native mode report based on a query to SSAS the report with fail with the following error:
    An error has occurred during report processing. (rsProcessingAborted)  Cannot read the next data row for the dataset. (rsErrorReadingNextDataRow).  The connection either timed out or was lost.  Unable to read data from the transport connection:
    An existing connection was forcibly closed by the remote host.
    Putting a trace on the SSAS instance, I get an error:
    Internal error: The operation terminated unsuccessfully.  The connection timeout was exceeded. Server: The operation has been cancelled.
    I've modified the IIS (6) application pool timeouts, the SSRS rsreportserver.config timeouts, and the SSAS timeouts.  Restarted services, rebooted, and still I get this error.
    The report will render if I select a shorter time period (less data, shorter query time).
    Running SQL2012 (11.0.5058.0), SSAS and SSRS on separate servers, same subnet.
    Any help or suggested troubleshooting greatly appreciated.

    Please check the links below.
    http://www.symantec.com/business/support/index?page=content&id=TECH186577
    https://support.microsoft.com/kb/2200755?wa=wsignin1.0
    http://msdn.microsoft.com/en-IN/library/ms155782.aspx
    http://blogs.msdn.com/b/dynamicsaxbi/archive/2013/02/14/how-to-addressing-ssrs-session-timeouts.aspx

  • Connection timeout error in web report(portal)

    Hi Experts,
    Points to note about the 500 connection timeout error
    1. Error persists only in portal. query/ report works fine in RSRT and Bex Analyser.
    2.As per previous discussions tried implementing SAP notes to change ICM parameter for max of 10 minutes.
    However, it is said by Basis team that they can change parameter only if all the report gives the same error.
    Since all the report works fine they are nt ready to change the parameter.
    4. Error: Time exceeds 600seconds
    5.This issue arised only after upgrading the system to 7.3. post - upgrade. this report was working fine before.
    6. Even in the portal, report works fine when we use ABAP web link.
    Please share your suggestions.

    In the trace file there is a error message for this report "Could not find a command, masscommand or group command with alias <new task>. It is defined in group . <TaskCollectionGroup>. pls any one help me. This is for 7.31 NW portal

  • IO Exception: Lock timeout exceeded for documents , wait time = 60014

    Hi,
    We are getting an error while uploading any document on portal in KM content area. The full error details as follows
    #D27E2001B003002500000D210005D0D20004520E6FF2B6FB#1216121868039#com.sapportals.wcm.repository.service.accessstatistic.AccessStatisticManager#sap.com/irj#com.sapportals.wcm.repository.service.accessstatistic.AccessStatisticManager#BMERRON#71986##<host name>_7664450#BMERRON#3f730c80526211ddb0fcd27e2001b003#SAPEngine_Application_Thread[impl:3]_4##0#0#Error##Plain###error while handling event - com.sapportals.wcm.WcmException: IO Exception: Lock timeout exceeded for <documents>, wait time = 60006
         at com.sapportals.wcm.repository.service.appproperties.PropertiesService.setProperty(PropertiesService.java:984)
         at com.sapportals.wcm.repository.service.appproperties.PropertiesService.setProperty(PropertiesService.java:1203)
         at com.sapportals.wcm.repository.service.appproperties.PropertiesManager.setProperty(PropertiesManager.java:176)
         at com.sapportals.wcm.repository.service.accessstatistic.AccessStatisticManager.updateLastReadDate(AccessStatisticManager.java:177)
         at com.sapportals.wcm.repository.service.accessstatistic.AccessStatisticManager.received(AccessStatisticManager.java:253)
         at com.sapportals.wcm.util.events.ReceiverEntry.doSend(ReceiverEntry.java:223)
         at com.sapportals.wcm.util.events.EventBroker.send(EventBroker.java:86)
         at com.sapportals.wcm.util.events.TransactionalEventBroker.send(TransactionalEventBroker.java:56)
         at com.sapportals.wcm.repository.manager.ResourceEventBroker.send(ResourceEventBroker.java:219)
         at com.sapportals.wcm.repository.manager.AbstractRepositoryManager.sendEvent(AbstractRepositoryManager.java:322)
         at com.sapportals.wcm.repository.RMAdapter.sendEvent(RMAdapter.java:342)
         at com.sapportals.wcm.repository.ResourceImpl.sendEvent(ResourceImpl.java:4206)
         at com.sapportals.wcm.repository.ContentImpl.getInputStream(ContentImpl.java:119)
         at com.sapportals.wcm.repository.ContentImpl.getInputStream(ContentImpl.java:132)
         at com.sapportals.wcm.service.xmlforms.transformation.ResourceDemultiplexer.getContentStream(ResourceDemultiplexer.java:71)
         at com.sapportals.wcm.service.xmlforms.transformation.Transformation.render(Transformation.java:209)
         at com.sapportals.wcm.app.xmlforms.PreviewServlet.sendForm(PreviewServlet.java:165)
         at com.sapportals.wcm.app.xmlforms.PreviewServlet.doGetAction(PreviewServlet.java:130)
         at com.sapportals.wcm.app.xmlforms.XFBaseServlet.doGet(XFBaseServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sapportals.wcm.app.xmlforms.XFBaseServlet.service(XFBaseServlet.java:134)
         at com.sapportals.wcm.portal.proxy.PCProxyServlet.service(PCProxyServlet.java:333)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sapportals.portal.prt.core.broker.ServletComponentItem$ServletWrapperComponent.doContent(ServletComponentItem.java:110)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
         at java.security.AccessController.doPrivileged(AccessController.java:242)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:215)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Any Help?
    Regards,
    Sree

    Hi sreedhar Gunda,
    Check whether the repositories are in active and running mode or not. If they are running fine. then check the authorization is sufficient from BASIS people.
    points if useful
    Thanks
    Suresh

  • Is there a risk of setting a console connection timeout and what is the recommended setting?

    Is there a risk of setting a console connection timeout and what is the recommended setting? Please suggest if there is any best prctice documentation that can be referred.

    Hi Henrik
    depend on what you need or what your security policy says for my lab gear i use 60 minutes. because i know how can access this. if you have gear outside in insecure space set it to a minimum or disable the console. everybody how can access your gear can break in. simple restart and boot w/o config. and you are in.
    it realy depends how secure is your space and how much security you need.
    and than the settings for policy have to match, what sec do you have if your console login and logout is secure. but when you restart you can simple break in by starting w/o config and than load it.
    HTH
    Patrick

  • I am getting a "connection timeout" message when trying to access my Airport Extreme with various laptops, Play Station 3 and Wii. My Airport Extreme is about a month old; it was working fine until about a week ago. C

    I am getting a "connection timeout" message when trying to access my Airport Extreme with various laptops, Play Station 3 and Wii. My Airport Extreme is about a month old; it was working fine until about a week ago. Suddenly, the "timeout" is not allowing me to connect to my wireless network.

    It could be that there's a new source of interference.
    Use the advice in the second message of this thread to investigate the signal and noise levels that each client sees:
    http://discussions.apple.com/thread.jspa?threadID=2347845&start=1
    By the way, you've been misled by the poor field labeling into trying to type your entire message into the subject field, instead of putting a one-line topic description there.

  • Why do I keep getting a "connection timeout" error on my macbook pro?

    What seems to be on some kind of time schedule, my network connection times out.  The message "a connection timeout occured" is displayed, rendering my attempts at re-connection useless.  After hours of troubleshooting(my router included) and checking out other Mac forums, I have no solutions but to power cycle my router.  This pretty much makes my MB useless unless using a wired internet connection outside of my home network.  I've done tons of research online and have encountered hundreds of people with the same problem.  My machine is a late 2011 Macbook Pro.  PLEASE HELP

    Check the time and date, updates with apple' time servers
    https://discussions.apple.com/docs/DOC-3046

  • Time Capsule woes -- Connection timeouts and can't connect with one Macbook

    This is my second Time Capsule. Here's the scenario:
    I have a Netopia 3347 DSL modem. That feeds into the Time Capsule in bridge mode. There is a MacBook (metal case), iBook (yes, it's old), two iphones, a color printer and an iPad that can all connect to the Time Capsule just fine. The problem is my MacBook can't connect. The offending computer is a 2.2Ghz Intel Core 2 Duo running SL 10.6.6. This computer can connect to the Netopia just fine, so I know its internal Airport works. After several go arounds with Apple tech support, I'm still nowhere.
    Here are the symptoms:
    1. I can see the TC's network SSID in the airport pull down menu. If I select the TC, a popup appears and asks for a password. If I enter the password, I'll get a connection timeout error.
    2. On the rare occasions where it does connect, I can't open a webpage. Network diagnostics has red dots for ISP Internet and Server
    3. On the even rarer occasions where it does connect, and I can access a webpage, it's unbearably slow, and the no-surf problem reappears after a few seconds. The red dots on the Network Diagnostics reappear.
    Apple tech support was not helpful. I've power cycled everything a million times (and that doesn't explain why other computers can connect.) I know it's not my computer, because it can connect to the Netopia just fine.
    I am STUMPED.

    Magnificent! Problem solved...   Isn't there a "this solved my problem" button somewhere??  Thanks and thanks again!

  • Macbook pro keeps saying connection timeout, and it used to connect to the internet fine. what's up, why can't it find and automatically connect to the internet anymore???

    Macbook Pro keeps saying connection timeout and it used to connect to the internet fine. What's up, why can't it find and automatically connect to the internet anymore???

    Like this: https://discussions.apple.com/thread/2775868?tstart=0  ?

  • Connection Timeout after updating to 10.6.6

    Dear Friends
    I've got Macbook Pro mid 2010, when I was on 10.6.5 there was no problem connecting to Wi-Fi but after the magic update, I always got "Connection Timeout". another thing to add, I can connect to any network via windows 7 I installed on my macbook.
    Message was edited by: mutant59

    My two cents is that I have had some type of network problem since install Snow Leopard. I even went back wiped drive and did clean install. Seems their is a problem but not sure if its multiple problems or just one. Safari seems to load pages at a crawl at times. I did several speed tests and found the WIFI connection noticeably slower (about half) compared to my Windows Vista computers running WIFI. Even though my MacBook has N version connection and the Vista ones G.
    I have tried different DNS servers and nothing seems to help. The router is the second one I tried. I had a Linksys wrt54 then bought a Belkin F5d8236-4 and both have no effect on the problem. Even a different browser did not help. I have simply determined that Apple needs to fix something in Snow leopard.

  • My MacBook Pro persistently will not connect to my wireless router. The message "connection timeout" appears. What is a connection timeout and how can I fix?

    My MacBook Pro persistently will not connect to my MiFi Verizon wireless router. The message "connection timeout" appears. What is a connection timeout and how can I fix?

    Hi there terri900!
    You may want to try configuring your router settings to match the recommended settings for iOS and OS X devices, which can be found here:
    iOS and OS X: Recommended settings for Wi-Fi routers and access points
    http://support.apple.com/kb/ht4199
    You may also find some helpful information for troubleshooting this issue in this article, which can help you with any manner of issues with Wi-Fi connections:
    Wi-Fi Quick Assist
    http://support.apple.com/kb/HT1145
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • Connection timeout on hotel wifi - only with MacBook8.1 (810.9)  configd plug-in:8.1 (810.9)

    I'm having a "Connection Timeout" issue while trying to connect to my hotel's WIFI.
    I bought an ex-lease refurbished white MacBook (Build 12E55 - 2.4GHz, the last 2010 model I think) a couple of weeks ago. I bought it so I could use it while on vacation in Bali, Indonesia. I've got OS X 10..8.4 installed. 
    At home in Australia, this MacBook connected to my home WIFI with absolutely no issues at all.
    Now that I'm in Bali, I'm surprised to find that every time I try to connect to the WIFI at the hotel (where I'm staying for a whole month), I get a "Connection Timeout" error. I'm surprised because my iPhone connects to the hotel WIFI with no problem at all, as does our two iPads and the Android phones that belong to other family members. It's only my MacBook that struggles, even though I get even better signal strength indicated on my MacBook compared to my other devices.
    I can connect my MacBook to my iPhone hotspot fine, though I'd prefer to use the free hotel WIFI over my very small 3G data allowance.
    So the problem isn't that my MacBook can't connect to any WIFI, because it did at home and it still can to my iPhone hotspot.
    And the problem isn't with the router, because all other devices work flawlessly.
    I've trawled many forums and articles trying to find a solution. Here's everything I've tried already, that I can remember. (Not in this order and not all at once.)
    Rebooted MacBook (duh)
    Sitting directly under the WIFI router. (It's not a signal strength issue.)
    Set up new Network > Location. Deleted Ethernet and Bluetooth PAN so it's just WIFI in the list.
    Renewed DHCP Lease countless times.
    Tried manual TCP/IP variations. It doesn't help that I'm not sure what to put in the IPv4 Address field. I do know the Subnet Mask and Router IP from looking at my iPhone network info.
    Tried using my MAC address as the DHCP Client ID. Also tried just using "1" or leaving it blank.
    I don't know what an IPv6 is either.
    Tried BootP and completely Manual setups but not really sure of the correct settings to try.
    Tried using the DNS servers that I found on my iPhone network info for the hotel WIFI. (One of them is 8.8.8.8 which I think is Google's DNS thing?)
    Tried checking Auto Proxy Discovery and Use Passive FTP Mode, since it was suggested as part of a solution in a forum thread.
    Tried changing the MTU to a couple of other settings from an article I read. I think one was around 1453 and the other was 1494 or something close to that.
    Tried resetting PRAM
    Tried resetting SMC
    Tried a variation on resetting SMC that involved pressing down the normal keys plus one extra, for 10 secs, since it worked for someone who was told to do that by an Apple Care person. (He didn't know why it worked and other forum posters thought it was supposed to have been a SMC reset.)
    Checked the Network> Wi-Fi in System Information to see if the Channel is compatible. The router uses Channel 1 and my MacBook is capable of using Channel 1.
    Checked my country profile. It's X1. I have no idea if that's good. All I know is that I'm in Indonesia not Australia and I'm having WIFI issues with this hotel network.
    Checked the PHY Mode. Supported are 802.11 a/b/g/n. The hotel router uses 802.11n.
    Made sure I was using WPA2 Personal.
    Tried deleting all WIFI-related passwords in Keychain.
    Tried deleting all Network-related preference files.
    Tried removing all LaunchDaemons and LaunchAgents.
    It's not a "lost WIFI connection when waking from sleep" issue but I tried turning off sleep anyway.
    My husband even had the nerve to unplug the hotel router (small hotel, we're the only guests at the moment) for 10 minutes hoping it will reboot. But I don't know if that's the actual modem or just a WIFI repeater thing (sorry, can't remember the right terms). It didn't work anyway.
    I've run out of options, other than just sucking it up and getting a big 3G data allowance since I'm here for a month.
    If there is anything else I can try - perhaps working out how to set up my Network manually properly, please help me out. Here is everything in System Information that might help. I'll happily provide any other info.
    Software Versions:
      CoreWLAN:

    Sorry. The topic title got mucked up when I tried to paste in my System Information. And I can't paste it in using my iPhone without it going haywire. I can provide any details you need.

  • Why do i keep getting the "internet connection timeout" error message?

    i have been upgrading a few standard itunes albums to itunes plus versions through my 3g mobile broadband connection, while not exactly a fast process, it was working fine until i started to get a backlog of 3 or 4 albums which were waiting in a queue to be downloaded, now every time i do the "check for downloads" option i get the "internet connection timed out" error message...this has been going on for 2 days! am i right in suspecting the backlog of albums is too much for my 3g mobile broadband connection? this is really doing my head in, if any of you techies could help me, it'd be much appreciated...?

    yes i have recently updated to itunes 8.2.1, but i am starting to think its apple's servers (i tried to download at my brothers house...different computer and connection...same connection timeout error), because it will still let me download an album, but not necessarily all of the tracks. when i questioned itunes customer services about the seemingly hit and miss state of affairs with downloading, they told me to wait 3 weeks before trying to download the tracks that were giving me the grief (2 tracks from an arctic monkeys album)...which kinda indicates they know there is a problem and are trying to fix it, why else would they say wait 3 wks??? they gave me 5 free music tracks too, which is handy.

  • A connection timeout occurred. I have been receiving this error when trying to connect to the open wifi connection at my university. My wifi works perfect when I am using it on my home network. I have tried all the suggestions in forums online no luck.

    I am getting a connection timeout occurred message on my mid-2009 macbook pro I am running mountain lion 10.8.2 but problem occured before and after update. The message only happens when i attempt to connect to the wifi at my university. It works normal at my home. This error just started last semester out the blue. I have read many forums and non have helped ive reset my pram a few times, ive deleted all my networks including my home network out of my system preferences<network and all that extra stuff. if anyone has a clue please help me because one of my classes requires me to take in class test over the internet. Thanks for reading. If anyone can help PLEASE help ive been trying to fix for last few months.

    From the menu bar, select
     ▹ System Preferences... ▹ Network
    Click the Assist me button and select Assistant. Follow the prompts. You may get a warning that Wi-Fi is not available, that you're too far from the base station, or that you're using the wrong password.
    Assuming that you've ruled out those possibilities, click the lock icon in the lower left corner of the preference pane and authenticate, if necessary. From the Location menu at the top of the window, select Edit Locations. A sheet will drop down. Click the plus-sign button to create a new location. Give it any name you want. In the new location, set up the Wi-Fi service with the same settings you used before. Click Apply and test.

  • Connection timeout error while refreshing a deski report

    Hi All,
    When I tried to refresh a report I'm getting the following error.
    " Exception: DBD, ORA-12170: TNS:Connect timeout occurred State: N/A"
    Can  any one tell me how to over come it.
    BO S/W DETAILS: boxi R3.1
    DATABASE: Oracle 10g
    Thanks in Advance,
    Suresh Aluri.

    Hi,
    The issue seems to be at the database level.
    Please chk this link: http://www.dba-oracle.com/t_ora_12170_tns_connect_timeout.htm
    Suggest you to check with the DBA team.
    Regards

Maybe you are looking for

  • BPM process : where in pipeline

    Wanted to know where does bpm fit in the PI pipeline ? like we can do som nay steps like collect ,split IDocs etc. But where in pipeline does this kick off? since we can do recv determination also in bpm so does pipeline kick with the bpm rather than

  • Suggestions on a piece of working code.

    I have a piece of working code that I've been playing with for a while and I'm just not happy with it.  I'm loading an XML file full of images to flash and using them in a slide show.  The code works fine, but here's my issue. The first time an image

  • Motion Certification

    I am interested in studying and taking the Apple Motion Certification exam and was wondering if anyone has any advice. I am getting the book from peachpit press (http://www.peachpit.com/title/0321278267) But I'm having a hard time finding a list of o

  • How do I get itunes to stop loading every few minutes on my computer? I X out of it and it comes r ight back.

    How do I get itunes to stop loading every time I turn on my computer? I X out  of it and it comes right back. I have tried everything, even had a computer expert try, no luck. I tried uninstalling itunes and tried a new download, it came right back.

  • Address problem in sapscript

    Hi, I'm creating a sapscript for Sales order, my problem is this: when the order is sent to foreing country I would to print the country name, else the country name hasn't is displayed. Thank you.