Works with tomcat not with bea

hai i am madav
when i was working with tomcate it was fine but when i deploy in bea portal server with proper additions i am gettin java.io.FileNotFoundException: Response: '401:
Unauthorized xxx' for url: 'http://feedsind3.cricinfo.com/live/index.xml'
for below code
Authenticator.setDefault(new MyAuthenticator());
URL url = new URL"http://feedsind3.cricinfo.com/live/index.xml");
               is=url.openStream();
File f1=new File("c:\\hai2.xml");
          br = new BufferedReader(new InputStreamReader(is));
          bw1 = new BufferedWriter(new FileWriter(f1),5000);
          while((scoresFileUrl=br.readLine())!=null)
               System.out.println(scoresFileUrl);
               bw1.write(scoresFileUrl);
               bw1.flush();
               bw1.newLine();
               bw1.close();
               br.close();
               is.close();
               }catch(Exception e){
               System.out.println(" exception raised in writeToFile "+e);
     RequestDispatcher rd=req.getRequestDispatcher("/livecric.jsp");
rd.forward(req,res);     
exception raised in writeToFile java.io.FileNotFoundException: Response: '401:
Unauthorized xxx' for url: 'http://feedsind3.cricinfo.com/live/index.xml'

Exactly my problem too. I read somewhere that JDK 1.5 has modified its Authenticator class but I am not able to find an example of how to handle a website that prompts you for userid/password.
But I scaled back from JDK 1.5 to JDK 1.4 on Weblogic 8.1.5 but that does not work still. So I sense some issues with Weblogic server.
Can someone help please? Moderators?

Similar Messages

  • I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.It works with iPod not with iPhone

    I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.It works with iPod not with iPhone

    Try posting in the developer forums to see if you can get some assistance,you'll have to be a registered developer for access though.
    developer.apple.com

  • Imac works well with ethernet not with wireless - although my other imac work fine w the wireless

    imac works well with ethernet not with wireless - although my other imac work fine w the wireless?  do i have a prob with a wireless card?

    Are the computers in the same place?
    You can look around for wireless networks. See:
    iStumbler - 98
    find AirPort networks, Bluetooth devices, Bonjour services
    http://www.versiontracker.com/dyn/moreinfo/macosx/17572
    >USB dongle
    Newer Technology MAXPower 802.11g/b Wireless USB 2.0 Stick Adapter $15.99 http://eshop.macsales.com/item/Newer%20Technology/MXP2802GU2/ 
    Newer Technology MAXPower 802.11n/g/b USB Adapter. The easiest way to add Wireless Connectivity to ANY computer! 'n' speed is the newest and fastest. $29.99 http://eshop.macsales.com/item/Newer%20Technology/MXP802NU2C/

  • The problem I have since I upgraded to Mavericks version 10.9.1 The problem appears only with Mail not with other programs, not even with my browser. When I try to zoom the text of an e-mail I received or sent , I can no longer use the keys Command   to e

    the problem I have since I upgraded to Mavericks version 10.9.1
    The problem appears only with Mail not with other programs, not even with my browser.
    When I try to zoom the text of an e-mail I received or sent , I can no longer use the keys Command + to enlarge the text, although I can reduce it with Command -.
    As I have a problem with my eyes, This is a serious matter for me.
    When I write an e-mail, if I select text and press Command +, it just displaces the text to the right.
    Now, my husband has a USB keyboard. If he connects it to my computer, his regular Command + does not work either, but  he uses the extended keyboard, then it works. Unfortunately, he needs it for a musical application which does not work with a wireless keyboard.

    Firefox 3.6.4 and 3.6.6 use a process called, "plugin-container.exe" which was using up most of my CPU when I opened up multiple tabs that contained Adobe Flash files, and caused Firefox to lock up.
    My solution was to use Firefox 3.5.10 which you can get from the Mozilla website at [http://www.mozilla.com/en-US/firefox/all-older.html]
    I am using Adobe Flash 10.1.53.64 without any problem in this version of Firefox. Check the release notes, I believe it contains all the latest security fixes in "Firefox 3.6.4".
    Hopefully, they will fix Firefox 3.6 in the next version (e.g. Firefox 3.6.7), until then you should probably use "Firefox 3.5.10".

  • Javax.faces.ViewState value starts with '%' and not with '!'

    While recording and ADF Application on JMeter, what should the regular expression extractor be when the javax.faces.ViewState recorded value starts with '%' and not with '!'.
    I have been following the following link and it talks only about javax.faces.ViewState values that start with '!'
    http://one-size-doesnt-fit-all.blogspot.in/2010/04/configuring-apache-jmeter-specifically.html

    Hi,
    If '!' present in first position of string, you need to remove it or replace it in transformation.
    Following is the  sample code...
    loop at SOURCE_PACKAGE into ls_SOURCE_PACKAGE.
          record_num = sy-tabix.
          IF ( ls_SOURCE_PACKAGE-fieldname(1) = '!' ).
            ls_SOURCE_PACKAGE-fieldname(1) = '' .
    ENDIF.
        MODIFY SOURCE_PACKAGE INDEX record_num FROM LS_SOURCE_PACKAGE.
      ENDLOOP.
    Hope this helps..

  • Why does a saved hotmail message disappear when I click on "continue to create the message? It only happens with Firefox, not with Explorer.

    Why does a saved hotmail message disappear after I click on "continue creation the message? It only happens with Firefox, not with Explorer.
    == This happened ==
    Every time Firefox opened
    == A few weeks ago

    Hello Helena.
    You may be having a problem with some extension or plugin that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?

  • Ipod Works with Windows, not with Itunes

    Hi there. Three members of our family now have ipods. We were using them with 2 computers, with all three on each. It was only about two weeks ago that they stopped working with one of the computers. And not all at the same time, either. The 2nd and 3rd ipods connected to the desktop stopped working at the same time. The first to ever be connected remained working, but then stopped. These working/not working changes occurred around the removing (2nd and 3rd stopped) and then replacing (1st stopped) of our external hard drive. The drive letter for our ipods now reads 'C:', but our local disk has always been 'F:'.
    I am using Windows XP SP2, the firmware is 1.0 for all of them. I used to have the latest Itunes and latest updater, but I recently reinstalled the CD that originally came with package, and now I have older ones. I tried everything on the support site's page "Windows sees my Ipod, Itunes doesn't."
    I can't restore my ipod because the updator/ipod for windows doesn't detect it.
    Thanks for any help.

    I figured it out! I thought it had something to do with the ipod being remapped C:. So all I had to do was to change the drive to I: for Ipod, and put my Maxtor back to C.
    :. problem solved.

  • Movie works with firefox not with IE

    Do you have any idea why i have a flash movie who works fine
    in Firefox but not in internet explorer?? the swf file running
    directly in the computer works perfectly, but in the internet
    explorer when i load a movie this does not stop when i have a stop
    action in a frame..
    some help please ! thanks !!

    this is the url
    http://www.grupocaletto.com/revision/fraccionamientos.html
    when i push the right button called "san luis potosi" i go to frame
    in the same movie, then i have a button called "Cerrada del Real" i
    load a file called cerradadelreal.swf to here this works fine...
    here is where the error starts... i have a button in the up left
    called "FRACCIONAMIENTOS" when i push this button i load again the
    movie of the url but the movie play all the timeline, i mean i have
    a stop in the frame 2 and is not working... i just have this error
    with IE Explorer.. with the firefox works fine...
    any idea?

  • Viber only working with wifi, not with 3g

    Hi,
    Can anyone explain why viber works on my iphone nomatter if im in a wifi hotspot or in the middle of no where, yet my wife has to be in a wifi hotspot for it to work on her iphone? we both have 3gs iphones, both running os4.3.
    Could it be as simple as a setting?
    Regards
    Paul

    Hi, i have an ipnone 4 and im with Optus 3G. Viber is only working for me (send texts and make calls) ONLY when im on wi-fi. If im not connected to a wifi connection it will not send any texts or make a call. If i try send a text it turns into a red dot with an exclamation mark near my comment and then it comes up with a message saying "An internet connection is required to set up Viber. Check your connection and try again. The request timed out."
    Please can you reply to my email [email protected] with any help.
    Thanks

  • Router works with PC, not with Mac?

    My dad just bought a MacBook pro in the U.S and we are now enjoying our holidays in the Cook islands. Now, vacation is good and all, but one needs to keep up with the events in the world.
    Now, there is internet connection in the house we are renting, and it works fine with the owners laptop, which im currently using. However, when I try to connect it to the Mac, it just wont work. And the ports of the router, stops blinking?
    What is it that causes this problem? Is it because the router is not compatible with Mac, or is it some settings one has to change?
    PS. Sorry if this seems obvious, however this is the first Mac i've ever tried to configure. Thanks in advance!

    Im connecting with an Ethernet cable, and as said, it works fine with the PC.
    But then when plugged into the Mac the router stops blinking (doesnt send any data whatsoever) and it says that a cable is not plugged in.
    The router also sends wireless signals, however, the owner has forgotten the password (we've tried with the ones he suggested but they didnt work) however the wireless also works fine with the PC.
    I've restarted the router, ive checked that the cable is properly inserted, ive switched the slots and nothing makes it wanting to co-operate with the Mac.
    I guess this could be a router problem since its not a "famous" brand link D-link. Its some random, i would guess local, brand... supposedly thats the problem?
    Thanks for any help

  • Devices work in MAX, not with VISA calls

    Hello,
    I'm currently attempting to control a pair of CSW5550 power supplies and having all sorts of problems.
    On LAN, I have installed the devices as a TCPIP device to send SCPI commands to, as here:
    Everything works great from the MAX window. I can send most queries with no problems, in particular the *IDN? query.
    When I pop over to running a vi on the same VISA resource, however, I get very inconsistent results. Sometimes a read error, sometimes a write error, and sometimes I get a reading. Most often no error, but an error from the device and no data returned. Same thing for trying to perform other read operations, and it's clear from the response of the device (often 'invalid parameter', others) that the instrument is getting somewhat garbled commands.
    The same thing goes if I try to run it over serial USB. This is what I'm running in the vis:
    I mean, this is really basic stuff. I've tried varying the timing, newline termination, setting up and flushing the buffer.
    So ... what is the difference between the queries MAX is executing and what I'm doing, and how can I troubleshoot it?
    Thanks in advance,
    C
    PhD ChemE, CLD, Alliance Partner : www.interfaceinnovations.org

    The devices are not connected in this picture. When connected, they validate and accept test panel commands fine.
    PhD ChemE, CLD, Alliance Partner : www.interfaceinnovations.org

  • My A1084 airport express worked flawlessly with leopard, not with lion

    I have a late 2006 iMac with an intel processor.
    it was using leopard and I got an airport express a1084 (older model) and it was working flawlessly. I use it solely to play music from my iMac or iPod on my stereo wirelessly using a linksys e2500 wireless N dual band
    Compatible with 802.11a, 802.11b and 802.11g standards
    I recently was strong armed by apple to upgrade to lion since we use the mac mail program and it was being ditched with the integration of iCloud.
    so I ponied up and bought snow leopard, so I could install it and then down load lion from the app store.
    I HATE lion.
    almost all of the programs I bought previously no longer work, including my 1 month old network wired printer.
    If I don't plug the printer in to the mac, I can't scan to the iMac.
    but anyway, my airport express is the issue I am looking for help with.
    This airport goes offline constantly
    sometimes it flashes a yellow light, sometimes it has a solid yellow light.
    sometimes it works for a week, sometimes for 1 hour.
    I have re-set it up many times always with teh same result...until I plug it into a network cable, the iMac can't find it.
    si I plug it in and get it working and then move it to the stereo and it will sometimes work for a little while, then no more.
    have to set it up again.
    is this yet another compatibility issue with LION or is the airport dying?
    thank you for any light you can shed on this subject.

    I have the exact same problem.

  • CATSEARCH only works with AND not with Or

    Hello,
    If I run the following query against my database it runs absolutely fine
    SELECT * FROM
    LOAD
    WHERE ((catsearch (WILDCARD_SURNAMES, 'BRUCE', '') > 0)) AND PARSED_FORENAME1='ANTHONY'
    But if I replace the "AND" with an "OR"
    SELECT * FROM
    LOAD
    WHERE ((catsearch (WILDCARD_SURNAMES, 'BRUCE', '') > 0)) OR PARSED_FORENAME1='ANTHONY'
    I get an Oracle error
    ORA-20000: Oracle Text error:
    DRG-10849: catsearch does not support functional invocation
    DRG-10599: column is not indexed
    I don't understand this, why can't I use OR?
    Thanks for any help
    Mark

    The optimizer has chosen to drive the query from an index on parsed_forename1 or by doing a full table scan.
    This causes it to try to invoke the ctxcat index in "functional lookup" mode - effectively saying "does rowid XXX match have the word "BRUCE" in WILDCARD_SURNAMES?"
    However, CTXCAT indexes do not support functional lookups, so this is impossible.
    The solution is to use a hint which persuades the optimizer to always drive the query from the CTXCAT index.
    I know this is kind of messy, but our developers tell me there is no simple way to tell the optimizer that such as call is impossible (or infinitely expensive).

  • Apple ID Works for Purchase not with FaceTime/iMessage

    After resetting my Apple ID password, I can no longer use FaceTime or iMessage.  Both apps always prompt for the password.
    Here is my scenerio:
    Launch FaceTime, prompts for password, key password - failed
    Go to App Store, download any app, prompts for password, key password - success (app is installed)
    Launch iMessage, prompts for password, key password - failed
    Reset password again, repeat above steps with the same results

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    For non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
     Cheers, Tom

  • How do I pair my Iphone 5 (iOS 6.0.1) with my 2012 Toyota Highlander? Worked perfectly with 4S, not with 5.

    Enter pin provided by car system, but never pairs.  Also with the Iphone 5, I can not back up to my PC.  Need help with that also.

    FINALLY.....success. 
    Backed up to Icloud. 
    Deleted backups on computer. 
    Restored as a new phone. 
    then restored from Icloud backup. 
    Synced with Itunes to get contacts, calendars, notes, pictures, apps.
    Now I am able to backup to computer, and, now my Bluetooth will pair with my Toyota.

Maybe you are looking for