Slow getResource problem solved by ImageIO.scanForPlugins()

Hi all,
I have a big swing application starting with java web start. A lot of images are loaded during the frame construction using class.getResource(). This runs well with jdk1.4.2. However, in Java 5.0, each getResource takes 100ms to complete and it sometimes fails. I only get this behaviour with java web start (not as a standalone application).
I noticed the getResource becomes quicker after I call ImageIO.scanForPlugins(). So I moved this line to the top of my constructor and now it executes in 6 sec instead of 85 (even quicker than in 1.4.2) !
Now can someone explain why I get this slow getResource call, and why the scanForPlugin solves my problem ? I suspect this has something to do with loaded classes, but I don't now exactly.
Finally, since this problem is only appearing in 5.0, isn't it a regression bug ?
Thanks for the clarification,
Maxime

FiApO wrote:
I got the same issue.  Don't know why.  Maybe trafic shaping?  I tested with my t-mobile phones and same videos are fine on phone but not on Fios(with 3 different computers at different times of day).   
The video will start but it wont play all the way through. 
Also try to change DNS and blocking IP's.  Still have the problem.
Anyone got a answer for that?
Thank you.
Answer? Switch ISPs. This has been going on for months - it comes in waves. I'm having Comcast (gasp) installed here soon. I'm done with Verizon as a company. Ditching VZW as well.
Also, you should know it's more than just YouTube. It's basically any streaming service that may compete with Verizon's Redbox Instant.

Similar Messages

  • Slow Safari problem SOLVED

    Thanks to Klaus I was able to get my safari back up to warp 5. For the last several days it has been running quite slowly.
    A few days ago I tried the solution I saw posted by Mulder that had basically suggested the following
    1. Quit Safari if it's running.
    2. Use Disk Utility to Repair Permissions.
    3. Go to Home/Library/Caches/Safari and delete all the sub-folders within that one.
    4. Go to Home/Library/Safari and delete any of these files you have there:
    • Downloads.plist
    • History.plist
    • LastSession.plist
    That did zip, zilch, nada as far as speeding things up.
    So I tried the solution Klaus offered:
    Open System Preferences/Network. Double click on your connection type, or select it in the drop-down menu. Click on TCP/IP and in the box marked 'DNS Servers' enter the following two numbers:
    208.67.222.222
    208.67.220.220
    Click on Apply Now and close the window.
    And WHAMO! Warp Speed again.
    Thank you Klaus for your assistance!!

    boileree72 wrote:
    For my knowledge what does adding the two DNS numbers do? What do they relate to and why does it solve the problem of slow loading web pages? I never had this problem until the last month or so and progressively got worse.
    I just posted this in another thread, so I'll just copy and paste here:
    DNS is the "Domain Name System" that directs your web browser to the right address when you type in a domain name, like http://www.apple.com . The DNS system looks up that address, finds that it is located at a server with the address 17.149.160.49 and directs your browser there. Sometimes the DNS provided by ISPs is flaky, and sometimes there are communication problems somewhere between your web browser and the DNS server your ISP provides. Using alternate, known-good DNS servers can solve those problems.
    the DNS addresses that Klaus recommended are from a very reliable, free service provided by OpenDNS.
    In your case I'd guess that the DNS that your ISP provided started having problems recently and got progressively worse.
    Message was edited by: Rachel R

  • Slow YouTube problem solved!

    Hey folks! This was bugging me for days and I really thought Verizon was throttling YouTube where it was practically unusable. I found a fix after searching around for a bit and it seems the problem is the way the YouTube app "talks" to the nameservers through the router. 
    I have a Samsung Smart TV with a YouTube app and I was getting the slowest speeds on it while watching YouTube, then I did some searching around and found some people solve the problem by using Google DNS. 
    I though I had set that in the Verizon Router but it seems devices connected to the Router are using IT as a name server and not Google. Somehow I think a firmware upgrade on the Router is the culprit but not for everything, just the YouTube app. Seems the YouTube app "steams" in segments rather than a progressive download and probably utilized the nameservers on the Router instead of the live internet. I guess it's a bug in the YouTube app software that creates the long waits.
    What you'll have to do is set Google DNS on the device or computer your are using. On my Smart TV I set the primary to:
    8.8.8.8
    if you can ad a secondary then the addres is:
    8.8.4.4
    And that did the trick. You need to set this on all devices that stream video. I tested it with various 1080p videos on YouTube and it works flawlessly! My faith in FIOS is restored More info on Google DNS here:
    https://developers.google.com/speed/public-dns/

    FiApO wrote:
    I got the same issue.  Don't know why.  Maybe trafic shaping?  I tested with my t-mobile phones and same videos are fine on phone but not on Fios(with 3 different computers at different times of day).   
    The video will start but it wont play all the way through. 
    Also try to change DNS and blocking IP's.  Still have the problem.
    Anyone got a answer for that?
    Thank you.
    Answer? Switch ISPs. This has been going on for months - it comes in waves. I'm having Comcast (gasp) installed here soon. I'm done with Verizon as a company. Ditching VZW as well.
    Also, you should know it's more than just YouTube. It's basically any streaming service that may compete with Verizon's Redbox Instant.

  • Slow loading problem solved

    THANKS for help with wrt150n router. looks like things are now working great after using your tips.

    FiApO wrote:
    I got the same issue.  Don't know why.  Maybe trafic shaping?  I tested with my t-mobile phones and same videos are fine on phone but not on Fios(with 3 different computers at different times of day).   
    The video will start but it wont play all the way through. 
    Also try to change DNS and blocking IP's.  Still have the problem.
    Anyone got a answer for that?
    Thank you.
    Answer? Switch ISPs. This has been going on for months - it comes in waves. I'm having Comcast (gasp) installed here soon. I'm done with Verizon as a company. Ditching VZW as well.
    Also, you should know it's more than just YouTube. It's basically any streaming service that may compete with Verizon's Redbox Instant.

  • Win XP slow boot problem solved

    Hi guys,
    Just want to share my discovery re: slow boot.
    For Win XP Pro users with 1 HDD:
    1.  Go to Device Manager
    2.  Select IDE Controller
    3.  Select Primary Channel (assuming HDD is connected to IDE1 which according to the MSI manual should be the case)
    4.  Click on the Advance Setting Tab
    5.  On Device 1, Select None for Device Type and click OK
    6.  Wait for a while because it takes some time for the window to close
    And that's it !!!  I did tried the bootvis optimization first but only about 5 seconds were taken off from the start up.  I also took out the jumper in my WD HDD and even replaced my IDE cable.  Before my discovery, it took 2 mins to boot my PC.  Now it only takes 30 sec (i.e., from Win XP logo to desktop).
    Hope it works for you guys.  Good Luck !!!

    Great tips for the ATA HD from Artic  .
    But for SATA the device cannot be change.
    Anyway thanks for the great tips Artic.
    Casing Tt Xaser III Skull
    M/B 865 PE Neo-2 PFS Platinum Edition Bios Ver.3.6
    CPU:P4 2.4C (HT enable) and ThermalTake SubZero 4G
    (DOT Rank=Commander,Turbo,2395 mHz - 2760 mHz)
    Memory: Corsair XMS 3500 2x512 meg (dual-channel dimm 2 and 4)
    VGA:ELSA Gladiac 925 Ti4600
    HD:2 SATA Maxtor 80gig and 1 ATA Maxtor 80Gig
    CD/RW Yamaha and Pioneer DVD
    PSU:ThermalTake Silent PurePower 480W (W0010/Black)
    +5 V/40 A, +3.3 V/30 A, +12 V/18 A, -5 V/0.3 A, -12 V/0.8 A, +5 VSB/2 A Peak Load 550 W
    Window XP PRO SP1
    NEC FP2141SB
    Microsoft DesktopPro
    Sound Blaster Audigy 2 Platinum + Klipsch Promedia 4.1

  • K9N2 Sli Platinum + SSD OCZ Vertex 3 = Slow Speed Problem [PARTIALLY SOLVED]

    Hey folks,
    I have a problem with my new SSD. I only get sequential reads of 140MB/s and writes of 114MB/s.
    I think it is a driver related issue. I once got faster SATA2-like speeds but cannot reproduce the system settings again... Everything back to SATA1-like speeds after reboot.
    First my pc specs:
    MSI K9N2 Sli Platinum, BIOS v3.9
    - 6 SATAII ports by nForce 750a SLI
    - 2 ESATA (External-SATA) ports (back panel) by JMB363
    - Supports storage and data transfers at up to 3 Gb/s
    AMD Phenom II 965 Black
    Patriot PV224G8500ELKB Viper II Series DDR2 4GB (2 x 2GB, CL5 PC-8500/1066MHz)
    SSD SATAIII OCZ Vertex 3, 120GB, FW v2.11
    LG Internal BlueRay BH10LS30
    Windows 7 Ultimate x64
    I only get very slow speeds with the SSD. I tried so many things that I am getting very frustrated now, I am even thinking about getting a new board and ram just to get the SSD up to speed...  
    1)
    I installed Win7 first with all the default settings in Windows Setup from DVD. Default "IDE ATA/ATAPI controllers" driver was "Standard AHCI1.0 Serial ATA Controller".
    SSD was connected to SATA1-port,  On-Chip Sata Controller AHCI enabled in BIOS,  Extra RAID/IDE Controller disabled.
    All fine, but whichever benchmark I used (AS SSD, HD Tune Pro, Atto Disk Benchmark, CrystalDiskMark; other tools used: DriveControllerInfo, AIDA64/Everest, CrystalDiskInfo ) I got e.g. 140MB/s Read and 114MB/s Write sequentially (CrystalDiskmark, similar with random data AND only zeros ).
    Trim working (it seems) with AHCI driver. I also changed to nvstor64 driver (nforce driver setup 15.56), with is marginally faster but not what you would expect from a SATAIII drive on SATAII controller.
    2)
    I installed Win7 using "diskpart" (Shift-F10) during disk setup, setting a cluster size of 64k instead of default. No real change.
    3)
    After reinstall of Win7 x64 (again...), I changed from SATA1 port to SATA6 port, also enabled Extra Raid/IDE controller set to AHCI as well.
    Nothing changed. With all settings to default in Windows (ahci default driver), I then manually updated the ahci to nvstore64 driver in Device Management, rebooted.
    Then a minute later after reboot I got the following Sequential speeds with CrystalDiskMark:
    273MB/s read and 137MB/s write (random data)  +  274MB/s read and 220MB/s write (with zeros) !!!
    While I ran this benchmark Windows came up with a message: "You must restart your computer to apply these changes - Restart Now/Restart Later".
    After the previos reboot, when I changed manually from AHCI to NVSTORE, I had changed nothing in the current session, apart from running CrystalDiskMark.
    I did reboot and I was back to the slow SSD speeds again = 140/114 MB/s...
    4)
    I have tried every possible combination of mainboard SATA ports, drivers changing with nvidia setup/manually, deleting and disabling controllers (incl BSOD and startup repair :D ), chaning bios settings around, but I just cannot get back the faster speeds  
    There is never any change in speed, whether I use ahci or nvstore64, whichever benchmark I use, whether random or zeros...
    5)
    Could the SSD be broken, something internally preventing it from faster speeds (with this one random exception)?
    Could it be that my K9N2 SataPorts only allows for / reduced to SATA1 speeds?
    Am I missing something with the driver setup?
    Do I need additional drivers for the extra JMicron Controller when using SataPorts 5/6 ?
    I have no other mainboard to test this with...
    Please guys, I am going to jump out of the window if I can't fix it... :(
    Thanks, Mike

    Hey guys - problem 'solved':  
    I tested the OCZ SSD Vertex 3 120GB with following sata3 controller card http://www.lycom.com.tw/PE-115H.htm.
    The card itself works immediately (needs at least PCIe x4 slot, will work slower otherwise but still faster than the OCZ SSD @sata1 with nvidia chipset).
    There is some raid setup, doesn't apply to me, the boot even with the card is really only a few seconds longer and not annoying at all. Windows (7 x64) needed a driver, supplied on CD (which is cheap and making noise like h**l). The card works w/o the driver but doesn't harm to install it...
    Also, just to clarify, this sata controller card did not need any specific setup at all. Just put it in, plug in sata cable (I use akasa sata3-rated), maybe change boot device in BIOS (I didn't even have to), done - booting Windows as usual.
    Benchmark CDM with sata controller card Lycom PE-115H:
    http://img24.imageshack.us/img24/3845/cdmpe115hahci0x00.png
    http://img850.imageshack.us/img850/7549/cdmpe115hahcirand.png
    Speed is much better than before with nvidia chipset 750a SLI controller: sata1 (sata2 whenever it randomly worked):
    http://img839.imageshack.us/img839/505/cdmahci0x0.png
    http://img13.imageshack.us/img13/6258/cdmahci0x0sata6contnv64.png
    Final thoughts:
    Well, I am happy with the SSD speed now (PCIe limited to 5Gbps). However, I had to spent quite some time to get it working on my sata2-cabable mainboard. Finally, I had to buy a extra controller card to get it working reliably at speeds faster than sata1. There is hardly any useful information on why this problem occurs with (older) nvidia chipsets and OCZ (sata3) SSDs. I still think that OCZ must know about this problem, but regards this issue as low priority, while at the same time not planning on giving up on sales to people with nvidia chipsets. Maybe OCZ should just make a big sticker on the box the drives come in with something like "Does/Might not work with nvidia chipsets, please use third-party sata controller card or different SSD manufacturer".   But then none of these potential customers would buy OCZ SSDs...  
    I will keep the sata3 controller, anyway handy to have, but return the OCZ Vertex 3 120GB and replace it with a SSD from a different manufacturer (Corsair Force GT, Patriot and OWC are not that great to get around here). The benchmarks for most people will not achieve the maximum advertised OCZ speeds anyway, so why not go with a brand that allows for some plug'n'play with some customer support.
    Hope this post helps others like me with their nvidia chipset  + sata1 speed problem
    Cheers, Mike

  • Slow internet problem on my iMac solved by installing Google Chrome browser

    Slow internet problem on my iMac solved by installing Google Chrome. My daughter came with her macbook pro loaded with OSX 10.6.8 but running Chrome and she could open all my problem websites instantly. So fault was in Safari. Thanks for all your help.  My original post has disappeared

    Original post is at:
    All of my pre 2012 macs extremely slow to load web pages but my son's 2014 mac and my iphone and ipad 2 load same sites instantly

  • I can not write in Hebrew And create effects It shows all distorted  When This problem solved?

    I can not write in Hebrew
    And create effects
    It shows all distorted
    When This problem solved?

    roeisarusi wrote:
    When This problem solved?
    Nobody knows.  iWorks apps have always had bugs that make them unsuitable for Hebrew/Arabic for most people.  Tell Apple here:
    http://www.apple.com/feedback/keynote.html

  • How to problem solve adf issue in the mx340 model

    how to problem solve adf issue in the mx340 model

    Alex,
    the missing thing in your example is the fact, that if only one value is selected, the parameter has exact this value like BOSTON. If you choose more than one value, the parameter includes the *'*, so that it looks like *'BOSTON','NEW YORK'*. So you need to check in the package, if there's a *,* in the parameter or not. If yes there's more than one value, if not it's only one value or it's null.
    So change your package to (you need to expand your variables)
    create or replace package bip_departments_2_parameters
    as
    p_dep_2_param varchar2(1000);
    p_loc_1_param varchar2(1000);
    p_where_clause varchar2(1000);
    function beforereporttrigger
    return boolean;
    end bip_departments_2_parameters;
    create or replace package body bip_departments_2_parameters
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    p_where_clause := ' ';
    if p_dep_2_param is not null then
    if instr(p_dep_2_param,',')>0 then
    p_where_clause := 'WHERE DNAME in ('||p_dep_2_param||')';
    else
    p_where_clause := 'WHERE DNAME = '''||p_dep_2_param||'''';
    end if;
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || ' AND LOC IN ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || ' AND LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    else
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || 'WHERE LOC in ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || 'WHERE LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments_2_parameters;
    I've written a similar example at http://www.oracle.com/global/de/community/bip/tipps/Dynamische_Queries/index.html ... but it's in german.
    Regards
    Rainer

  • WiFi connection problem solved

    My intel iMac and MBA had no problem but iPods 3g and 5g did.  I had an old Netgear router connected and sitting next to my Airport Express.  On a hunch I diconnected the Netgear and created a guest network to replace the one on the Netgear.  PROBLEM SOLVED! 
    Evidently our iPods and boarder's iPhone had problems sorting out the signals and finding the right addresses.  Moving the AE to a higher and slightly more central position also helped.
    Jim

    Same here on a Vodafone PocketWiFi 2.
    Tried NetworkManager, wicd, wifi-menu but all have the same issue.
    I recently installed Aptosid on another machine and it has the same problem... It also has kernel version 3.9.
    All the live CDs I've tried work, even an Arch CD from May works, though a current install does not.
    I have no problems connecting to another (wpa2 enterprise) network yet can't on this 3G modem.
    I'm hoping this isn't a permanent issue and perhaps an update very soon will fix this.
    It seems the only way to fix this for now is to use an old version of Linux. I'm currently running a virtual machine only for the purpose of Internet sharing, very annoying.

  • Bug fix for Mac book wireless - problem solved!

    Aparantly there is a rather large number of folks out there who've discovered this dillema with wireless not working very well at this point on the Macbook.
    Well, I can attest there is one very good solution out there for this issue. This application called Sonar Theater from www.sunray.tv includes a bug fix for the wireless connection issues with Macbook in their latest 1.5 release of Sonar Theater.
    I downloaded it, put it into my start up folder and waalaa! problem solved. I've haven't any more issues with dropped wireless since - it's been running constantly for over 2 weeks now.
    I haven't even attempted to touch my router configuration - don't need to.

    Welcome to the better life of Macs. I am using Sonar Theater too and it's been working very well for me. In fact, I'm getting hooked on just texting a message to my Mac book to fire up user sessions now. I think if you give the Mac Book some time however, you'll find that there really is no comparison to PC's. Your life overall is going to just keep getting better as you dig in to the resources available to new Mac users.
    I'm sure it seems confusing to PC users at first, but here's how to set up any application as part of your startup sequence. It really is extremely easy and simple compared to the PC world. Oh and by the way, in reality, Mac users refer to this as your login sequence. So, at login time, you can do a multitude of different things for each user account you might want to set up. Naturally, you can choose to share or not share applications and data between these user accounts on your Mac too....
    Mac OS X 10.3 or later
    1. Log in as the user who wishes to have a login item or as an admin user.
    2. Choose System Preferences from the Apple menu.
    3. Choose Accounts from the View menu.
    4. Click the name of the user.
    5. Click the Startup Items button
    6. Click the "Add {+}" button.
    The item you selected will automatically open the next time you log in.
    there are several ways to get good info from the apple community on tips and tricks as well. you should just try the apple os x web site...here,
    http://www.apple.com/macosx/resources/
    happy mac-ing!

  • Mediawiki, mysql, php? problems [SOLVED]

    On Sunday my Arch install that is hosted by Slicehost became unresponsive to them so they had to do an emergency reboot. After it came back up my install of mediawiki was (and still is) only returning a blank page (at least in Firefox). After some digging I found out that part of the problem was that mysqld wasn't starting so I managed to get that fixed by commenting out the lines relating to innodb and putting in skip-innodb into my.cnf. But I'm still getting a blank page.
    According to Mediawiki's manual, "A blank white page indicates a PHP error which isn't being printed to the screen." They give two lines to put into LocalSettings.php to force error messages but after doing that I'm still getting a blank page. Changing display_errors in php.ini to ON didn't have any effect.  When I load the wiki in Safari I get the following error: "Got java.io.EOFException (Server closed connection while sending the HTTP header.): http://some_url.com/mediawiki/index.php/Main_Page". I have no idea what this error means and googling java.io.EOFException doesn't bring up anything very helpful. My PHP Test Page indicates that PHP is up and running.
    Any ideas on fixes or where I can find more clues?
    [EDIT]
    Mysql was definitely the root of the problems with Mediawiki. I tried nearly every suggestion listed in the forums for fixing a mysql install that wouldn't start but nothing worked. I even completely uninstalled mysql and reinstalled it but it still refused to start. I switched over to postgresql and switched mediawiki to run with that. Problem solved.
    Last edited by k_odoma (2009-05-23 01:48:35)

    There are some other things that must be done to connect to
    the database
    (such as passing the usernamee, password, and host info to
    mysql_connect()
    and storing the connection resource), and those might be in
    the include
    files. I generally place all of the connection parameters in
    a separate file
    that is located in a folder that can't be accessed by a
    browser, for
    security purposes.
    Paul Swanson
    Portland, Oregon, USA
    "Amy Blankenship *AdobeCommunityExpert*"
    <[email protected]>
    wrote in message news:edk6ui$69c$[email protected]..
    > What's in the include(s)?
    >
    > "83Dons" <[email protected]> wrote in
    message
    > news:edk5s5$4uk$[email protected]..
    > > Here is the php code for the 'read' and 'write'
    parts:
    > >
    > >
    > >
    > > <?php
    > > include '......';
    > > mysql_select_db('clinskills') or die("UNABLE TO
    CONNECT TO
    DATABASE");
    > > $sql = "select A1Answer from authorware where id =
    '13'";
    > > $result = mysql_query($sql);
    > > $answer1 = mysql_result($result,0,"A1Answer");
    > > print $answer1;
    > > ?>
    > >
    > > <?php
    > > include '............';
    > > mysql_select_db('clinskills') or die("UNABLE TO
    CONNECT TO
    DATABASE");
    > > $newdata = $_GET['data'];
    > > mysql_query("insert into authorware (A1Answer)
    values('$newdata')")
    or
    > > die(mysql_error());
    > > mysql_close(); ?>
    > >
    >
    >

  • Acrobat printing problems (solved)

    Hi Folk
    I'm getting on well with Arch apart from one problem, I can not print from Acrobat reader, it accepts the command and does precisely nothing, the jobs are appearing in cups but not being printed, I can print from Open Office and test print from cups but no cooperation with acrobat,  anyone have any ideas? thanks
    Pete
    Last edited by pete051 (2009-09-29 19:14:12)

    I don't know what DE are you using. In my case, I use xfce and when acroread starts with his stupidity I just change the print command to 'xfprint'. That forces acroread to redirect the print job to xfce's printing frontend, and problem solved.
    Now, if you're using kde, I guess there is something named 'kdeprint', 'kprint' or similar. For gnome, I've no idea.
    I hope this helps.
    p.s. Sometimes, cups takes his time to print. When its taking too long I purge cups' temp files and restart the daemon.
    Last edited by kjon (2009-09-25 00:32:23)

  • Stuck with grub problem (SOLVED)

    Today i tried to upgrade my Arch Linux, it downloaded everything that should be downloaded, it was installing upgrades but at the installing grub it stucks as like this
    "Copying /boot/grub/grub.cfg.pacsave to /boot/grub/grub.cfg"
    I've waited it for about 15 minutes, it didn't move on. So i did ctrl+z to break. Then i tried to update again. But it gives an error which is:
    error: failed to commit transaction (conflicting files)
    python: /usr/bin/2to3 exists in filesystem
    Error occured, no packages were upgraded.
    Please help me guys!
    Last edited by bilgee0629 (2011-03-21 10:36:28)

    Problem solved by moving 2to3 to other directory.

  • Dr.Watson problems solved.

    DR.WATSON PROBLEMS SOLVED:
    System:
    WLS 5.1 with SP11 running on NT4 Using OCI817_8.
    Oracle 7.3.4 running on NT4.
    Problems:
    Dr.Watson exceptions in native code...
    # An EXCEPTION_ACCESS_VIOLATION exception has been detected in native code outside
    the VM.
    # Program counter=0x60239689
    When asking BEA and Oracle:
    "Use the latest OCI available. It is backward compatible !"
    What have been done to solve the problem:
    Going through all SQL code (and doing some rewriting), configuring connection
    pools (TestOnReserve / TestOnRelease, refresh, etc) and several other configurations...
    At last, we tried to change to the OCI version matching the Oracla versions we
    were connecting to (from OCI817_8 to OCI734_7).
    Voila ! NO MORE DR.WATSON EXCEPTIONS !
    Our conclusion:
    If possible, use the OCI version that matches the Oracle version you are running
    on.

    Hi Abhijit
    Couple of pointers which could resolve the issue:
    1. Since you are using the JDBC-ODBC bridge what occurs internally is that your JDBC API through the Virtual Machine make calls into the ODBC API on your Windows system. So the Watson error that you are getting is probably an illegal access by one of the methods in the ODBC API - this is for the Diagnosis part.
    2. The Solution part -
    a. Should I change my JDBC-ODBC driver? Not necessarily because the problems could be with the ODBC interface implementation and changing the driver might not help.
    b. Should I change my programming style? This is one thing which could really help. The problem with creating connections each time is that it takes a lot of resources to do it, So there is a performance degradation. What you could do inyour code is use a Java Bean to create the required Connection. You can also think of using a prepared statement appropriately encapsulate it since you are invoking a particular query repeatedly. In your JSP page you can retrive(create) this bean through the jsp:useBean tag with the session as the scope attribute. The <jsp:setProperty methods could also be used to set the DSN name and the driver.
    Once this bean is successfully created you have an open connection.
    Now for the part you have pasted - replace the create connections with getting a new Statement object which would hold your Query. At the end of the JSP just close the Statement object.
    Once you are done updating the page you may transfer the control to a different JSP - Let that transfer trigger the connection close in the Java bean.
    This should solve the Dr.Watson problem.
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems inc
    http://www.sun.com/developers/support

Maybe you are looking for

  • More than 5 tabs in tab bar controller

    Hi, I'm totally at a lost trying to get 6 tabs connected to my tab bar controller, which was created using the tab bar controller template.  Everything thing works fine with 5 view controllers.  When I add a 6th view controller I get the "More" tab i

  • Exception com.sap.aii.utilxi.misc.api.BaseRuntimeException

    Hi Guy, I'm testing something very simple with Xi. I have 2 file adapters. One is sender and the other one is a receiver. I'am able to pick up the file but I cant write it. I keep getting this message :   <?xml version="1.0" encoding="UTF-8" standalo

  • Please help me with my sound options

    Hey I have problems with my sound settings. I want to use my headphone port for an input line. You can usually change the input options to line in, but that option is not even given to me, infect it is not even there! Please help me to get this optio

  • Mail stopped working

    I have had this iTouch for 10 days now. I have version 2.0.2(5C1) and everything was working perfectly until I connected the iTouch to my Mac Powerbook today. Then, Mail stopped working altogether. Send or Receive is not working. I just see a "Checki

  • PDF ? ?

    Can i save a page as a PDF ? or as an offline page?