Help at the earliset error in my code java.io.IOException :403 error code

my code is not working with the google and hot bot but working fine with other like yahoo and msn
pl rectify the problem ASAP
import java.net.URL;
import java.net.URLConnection;
import java.net.MalformedURLException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.StringTokenizer;
public class hbparsing
     final static String DELIMITERS = ";-()\t\n\r\f.<>\"\'=/";
     public static void main(String args[])
          URL url = null;
          String first = new String("10 of");
          String sub = new String("of");
          String line = new String();
          String res = new String();     
          String buf = new String();
          String temp = new String();
          String searchURL="";
          searchURL = args[0];
          int i=0, j=0, k=0, val=0, total=0;
          try
               url = new URL("http://www.hotbot.com/default.asp?query="+searchURL+"&ps=&loc=searchbox&tab=web&provKey=Google&prov=Ask+Jeeves");
               URLConnection connection = url.openConnection();
               BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
               String contentType = connection.getContentType();
               if (contentType == null || contentType.startsWith("text") == false)
               throw new IOException("URL does not refer to a text file.");
               System.out.println("Receiving Data......");
               while ((line = in.readLine()) != null)
                    StringTokenizer tokenizer = new StringTokenizer(line, DELIMITERS);
                    while (tokenizer.hasMoreTokens())
                         String key = tokenizer.nextToken();
                         if (key != null && key.contains(first))
                              i = line.indexOf(first);
                              System.out.println("The search is " +first);
                              //" height="22" align="absmiddle"></strong>&#160;(Showing Results 1 - 10 of 1,441,000)</div><!-- RESULTS -->
                              StringTokenizer token1=new StringTokenizer(key," )<");
                              System.out.println("The fetched string using hb is "+key);
                              while(token1.hasMoreTokens())
                                   buf = token1.nextToken();
                                   if (buf != null && buf.contains(sub))
                                        res = token1.nextToken();
                                        j = line.indexOf(res);
                                        System.out.println("The index of the searched string using hb is " +j);     
                              temp = res.replaceAll("," , "");
                              val = Integer.parseInt(temp);
                              total = total + val;
                              System.out.println("The fetched substring using hb is "+res);
                              System.out.println("The Total values of the result searched using hb is "+total);
                              in.close();                              
                         else
                         continue;
                    if (j>0)
                         break;
                    else
                         continue;
          catch (MalformedURLException e)
               System.out.println("\nERROR! Improper syntax given for the URL to be loaded.");
          catch (SecurityException e)
               System.out.println("\nSECURITY ERROR! Can't access that URL.");
          catch (IOException e)
               System.out.println("\nINPUT ERROR! Problem reading data from that URL:\n" + e.toString());
}

Hi Narasimhan
     From what i understand from this post is that the application data is not getting downloaded to the client from the server and the data is in O-waiting in the middleware.  One possibile reason for this is because of time out in the ABAP Sync Service.  There is a parameter named <i><b>icm/keep_alive_timeout</b></i>  which indicates the time between the last successful query and the termination of connection.  The default value for his parameter is 60 seconds.  Increasing this value to a higher value (preferably in minutes, depending on your landscape and amount of data) will definitely help. You can probably set the value of this parameter to around 10 mins.
   Go to transaction RZ11 and enter the above parameter name to display the current setting. Inorder to change the default value, please refer to note 824554 which describes this in detail
Hope this helps
Best Regards
Sivakumar

Similar Messages

  • Please, could you help with The System Error?

    Hi guys,
    Please could someone help me with The system error: The Parameter is incorrect? which appears on the screen when I open Adobe Photoshop?
    It is Starter edition3.0 and so far it worked ok and suddenly this message haunts my screen. If I clic OK, whole application disappears. I tried hundred times and checked it is 5.1.2600 and my notebook has got Windows XP Profesional.
    Any advice hunging around?
    ThaaankxJ

    Thank you mark, I'll try.
    J
    Date: Fri, 18 Mar 2011 17:17:20 -0600
    From: [email protected]
    To: [email protected]
    Subject: Please, could you help with The System Error?
    Hi orion,
    Sorry that was the impression made by the support agent. If the version of the software that you have is 3.0 or 3.2, then the catalog can be upgraded when you run the trial version of Photoshop Elements. Version 8 had no time limitations, not sure if version 9 will timeout after 30 days or not.
    Just install, and when you launch, Elements will automatically convert the catalog to a format that it can read.
    -Mark
    >

  • Is that where you are offering to help retrieve the encryption-answer questions and cod have been an accident and do not forget the answers

    HHlo Is that where you are offering to help retrieve the encryption-answer questions and cod have been an accident and do not forget the answers

    How to reset your Apple ID security questions
    Go to appleid.apple.com and click on the blue button that says 'Manage Your Apple ID'.
    Log in with your Apple ID and password. If you have forgotten your Apple ID password, go to iforgot.apple.com first to reset your password with a password recovery email.
    Go to the Password & Security section on the left side. Then underneath the security questions click on the link that says 'Forgot your answers? Send reset security info email to [email]'.  This will generate an automated e-mail that will allow you to reset your security questions. 
    If that doesn't work, or  there is no rescue email link available, then you will need assistance from Apple Account Security. Follow this procedure:
    click on 'Temporary Support PIN' that is in the bottom left side, and generate a 4-digit PIN for the Apple Account Security Advisor you will be contacting later. 
    Next, go to getsupport.apple.com. If you see a message that says 'There are no products registered to this Apple ID, simply click on 'See all products and services'.
    Choose 'More Products & Services', then 'Apple ID'.
    A new page will open.  Choose 'Other Apple ID Topics', then 'Forgotten Apple ID Security Questions'.
    Click the blue 'Continue' button.
    Select the contact option that suits your needs best.
    The above information quoted with gratitude from TJBUSMC1973, another user in these forums.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base before you post a question.
    Regards.

  • Help with the following error: " could not load inserted library: /Library/Frameworks/GlimsAdditions.framework/Library/GlimsLoaderMinimal.dylib"

    This is the full error message. It's a 2011 Macbook Air running Mountain Lion. It crashed today and now will only boot into safemode. I've tracked the error down to this but this is the limit of my knowledge. Any help!?
    Process:         launchd [150]
    Path:            /sbin/launchd
    Identifier:      launchd
    Version:         442.26.2
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [1]
    User ID:         89
    Date/Time:       2013-06-08 20:12:26.463 +0100
    OS Version:      Mac OS X 10.8.2 (12C60)
    Report Version:  10
    Crashed Thread:  0
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Application Specific Information:
    dyld: launch, loading dependent libraries
    Dyld Error Message:
      could not load inserted library: /Library/Frameworks/GlimsAdditions.framework/Library/GlimsLoaderMinimal.dylib
    Binary Images:
           0x10b118000 -        0x10b13eff7  launchd (442.26.2) <7DCC9489-2DF5-3807-83FA-EF5666EE8078> /sbin/launchd
        0x7fff6ad18000 -     0x7fff6ad4c93f  dyld (210.2.3) <A40597AA-5529-3337-8C09-D8A014EB1578> /usr/lib/dyld

    try http://www.machangout.com/node/9

  • I Need help with the following error:

    Hi, I am getting the following error:
    <b>BPE_ADAPTER">SYSTEM_FAILURE_INTERNAL</b>
    I have looked at some of the other threads that deal with this but since I am new to XI I am not sure where to look. I have tried to activate in SXI_CACHE and I get a code of 99 with the following error. I did not get this error in the QAS environment, only when it was moved to Prod. We have cleared and reset all of the caches and am still getting this error when I try to activate in SXI_CACHE:
    <b>E     'STATUSCODE' is not a component of data object 'PAYLOAD'</b>
    Can someone point me in the right direction to fix this? We just moved it to prod and need to get it fixed asap.
    Thanks in advance for all of the help.
    Mike Curtis

    Hi Michael,
    Before SP16:
    the problem should be solved with the help of note 890760. You might find note
    816430 interesting as well, but the first one should help you solve the problem.
    After:
    If those are already in your system, have a look at note 996631. This could be
    the solution.
    Regards and good luck with XI.
    Jaime

  • Can anyone help with the following error message?

    While installing itunes update 7.5 received message Error 1905 module c:\programfiles\itunes\itunesminiplaayer.Dl failed to unregister HRESULT-2147220472

    I noticed no one replied to your questions but was wondering what you found out. I had an ipod shuffle and just replaced it with a 3rd gen ipod nano. The new nano who not show up on my itunes so I went in to update it to the new version and received the same exact error message you did. Were you able to figure out a solution?
    Any help you can give would be greatful.

  • Need help with the following error message...

    I just got a Shuffle for Christmas and was trying to download iTunes when I got the following message. FYI - I have a PC and the operating system is Windows XP:
    iTunesSetup[1].exe is not a valid Win32 application
    Anyone received this message before? I've looked around the troubleshooting section but am at a loss as to what to do from here...
    Thx

    I do have SR but hoping i can get quicker answer hereYou may always escalate the SR if you are not getting response timely. Anyways, give the reference of this thread in the SR and ask service engineer to file a bug.
    I will email you the wire messageI saw the wire message you mailed across. There are some junk characters in the starting of the payload and that's why parsing is failing. Most probably it is a BOM (Byte Order Mark). Ask your TP to send messages in UTF-8 encoding without BOM or any other junk character in the starting of the message. You may open the wire message payload you mailed across in notepad or textpad and you will able to see those junk characters in the starting of the payload.
    Regards,
    Anuj

  • Plz help me the following error on my producation DB

    db_recovery_file_dest_size of 2048 MB is 0.00% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Regards ...

    Ora-03114 not connected to Oracle
    after that i check my alert.log file the following messages are there
    "db_recovery_file_dest_size of 2048 MB is 0.00% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup."
    Again I Restart the DB, it is started after 30 min again ORA-03114 not connected to Oralce message is appear
    What can I do?
    Regards ...

  • HT203200 I need help solving the Itunes error 50

    When I go to the Dowloads folder in Itunes media it's empty so I can't erase the .tmp file... What else can I do to solve the problem? I am trying to rent and watch movies and I can't
    By the way I have a Macbook Pro

    Yes, at least since late afternoon EST.
    Check this site for the status of Apple Services when you need to in the future. (But right now it seems that site is down as well.)
    http://www.apple.com/support/systemstatus/
    Message was edited by: kturedi to update link.

  • The following Error:  Exception in thread "main" java.lang.NoClassDefFoundE

    Dear People,
    I would really kindly welocme any help on the following error problem:
    Exception in thread "main" java.lang.NoClassDefFoundError: CoreUpdate
    The program compiles successfully and there are no errors generated from that but I get the above error when I try to run it. I have scanned over all the previous replies that have been posted for this sort of error and have tried all the following solutions:
    1) Set classpath to point to the bin and lib directories of where the JDK1.3.1 is installed in.
    2) Have actually placed in my classpath the EXACT directory to which the tools.jar file is located (within the lib directory).
    So WHAT ELSE is there to do?? I am really frustrated with this problem and I have re-started my computer in order to boot the classpath into gear but still no joy!
    I am running Win2k so do I actually have to go into my autoexec.bat file and type the classpath in there aswell(to which I havent done) or can I just go through my computer on my desktop and then to environment variables and set it up in there (to which I have done already and nopthing seems to work)?
    PLEASE PLEASE PLEASE help!! I very frustated girl programmer!!!
    Any help would be very much appreciated!
    Regards
    Helen Pringle

    Sorry about that last email - this is the errors I get now after I have placed that '.' to my classpath!
    The program is trying to access a MySQL DB.
    java.lang.ClassNotFoundException: org.gyt.mm.mysql.Driver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:124)
    at CoreUpdate.main(CoreUpdate.java:13)
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(DriverManager.java:477)
    at java.sql.DriverManager.getConnection(DriverManager.java:159)
    at CoreUpdate.main(CoreUpdate.java:24)
    Regards
    Helen

  • I cannot restore my Iphone 4, I keep getting the error code 1611, please help and the Iphone keeps displaying the "Plug-In Itunes Symbol!??

    I cannot restore my Iphone 4, I keep getting the error code 1611, please help and the Iphone keeps displaying the "Plug-In Itunes Symbol!??

    http://tinyurl.com/nyj36v

  • I keep getting the following error code message:  We could not complete your itunes store request. An unknown error occurred (-9808).  Help!

    I keep getting the following error code message:  We could not complete your itunes store request. An unknown error occurred (-9808).  Help!

    Try:
    iTunes Store: "An unknown error occured (-9808)"

  • When signing in i get the following error  message --- activation server error -- code:E_Auth_not_ready - can someone help?

    when signing in i get the following error  message --- activation server error -- code:E_Auth_not_ready - can someone help?

    Please follow the instructions in the link below:
    https://helpx.adobe.com/digital-editions/kb/error-e_act_not_ready.html
    I hope this will help.
    -Chirag

  • I purchased Creative Cloud through the Employee Purchase program. Had to reimage system. Need help reinstalling application. I have "redemption" code, but get error saying it has already been redeemed. Please advise.

    I purchased Creative Cloud through the Employee Purchase program. Had to reimage system. Need help reinstalling application. I have "redemption" code, but get error saying it has already been redeemed. Can you please advise how I go about getting my software reinstalled? If I was given the serial number when I redeemed, I don't have any record of it.
    Thank you,
    Starla

    Hi Starla Mehaffey,
    I would suggest you to sign in with your Adobe ID during installation and your product will automatically recognize your membership details.
    Refer this Link for any further assistance:- Redemption Code Help
    Hope that helps,
    Regards,
    Rahul Tyagi

  • Please help me on the below error code.

    Hi All,
    Good evening. Can any one help me on the below error
    What is the route cause for that n what is the solution?
    ORA-27101: shared memory realm does not exist. "
    Regards,
    GR

    What is the route cause for that "Error ORA-27101 is reporting that the shared memory key generated by the client does not match any currently existing keys. This is to be expected if the ORACLE_HOME or ORACLE_SID used by the client is not the same as that used when starting up the database."
    n what is the solution?That depends on the type of your connection.
    You should probably check your listener.ora and make sure your ORACLE_HOME is set properly.
    See Metalink Doc Id 122183.1

Maybe you are looking for

  • Can't find backed up iphone data on macbook pro mountain lion

    i went to library/application but could not find itunes or mobilesync like everyone has said in threads. my iphone is backed up but i have no idea where it is stored, can you please help? thanks

  • Color laserjet 2840 and windows 8.1

    Hi, i am running HP Pavillion dv9700 entertainment notebook. Just finished clean installing windows 8.1 Running great so far. Before i switched from Vista 32 to Windows 8.1 i used this same printer on my machine and i used a software suite from HP ca

  • Replacing the same value in a string with varying values

    If I have a string: "%s is the %s I am referring to" and - I want to replace the %s occurrences with DIFFERENT values... what's the best way to do this. I was thinking parsing it into seperate strings using substr and instr but, I'm not sure if that'

  • Re: Drop in speed from 17Mbps to 5Mbps ...

    I'm responsible for 3 separate BT broadband accounts at three different addresses in 3 parts of the country. I've recently "upgraded" all 3 routers to BT HomeHub4. Subsquently, there has been a dramatic FALL in download speeds at all 3 locations.  Ca

  • How to run BSP programs

    Hi, I am new to BSP. I want to know about BSP programing and how can i run the BSP programs? To run BSP program how can configure the internet services? Plese give the complete solution. Thanks & Regards, Dhanunjaya Reddy.