Uncaught error fetching image

Hi all,
It seems that my GNOME Terminal can't open a window with Java (JRE 1.5 update 6) when I call a java-dependent software. I get this kind of error messages:
Uncaught error fetching image:
java.lang.NullPointerException
        at sun.awt.image.URLImageSource.getConnection(Unknown Source)
        at sun.awt.image.URLImageSource.getDecoder(Unknown Source)
        at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
        at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
        at sun.awt.image.ImageFetcher.run(Unknown Source)Someone? Any clue?
Thanks a lot for time and experience.
Manu

which image is involved here? an image provided by my
application software, or by JRE?
what can I do to make it open this image?
manu
PS: I also tried with Xterm, but I receive the same
error messagesHard to say. The image does probably not belong to the JRE. I guess you need to debug the application.
Kaj

Similar Messages

  • Uncaught error fetching image: java.lang.NullPointerException

    Hi everybody,
    I am developing standalone application using NetBeans,the aplication is running fine in netbeans IDE but not when Jar alone tried to run.I kept all the files related to application with the jar.
    when running jar,the app is running fine upto some extent,and throwing exception at the time of fetching images from images folder which is placed inside "src folder"
    class files package and images folder are in the src folder. the code is like this:
    mLogo = new JLabel();
            URL lUrlLogo =  getClass().getResource("/images/eaze.gif");
            System.out.print(lUrlLogo);
            Image lLogoimage = Toolkit.getDefaultToolkit().createImage(lUrlLogo);//.getImage(lUrlLogo);
            ImageIcon licon = new ImageIcon(lLogoimage);
            mLogo.setIcon(licon);i tried by using Mainclass.class.getResource("/images/eaze.gif");
    and also by using thread but dint solved
    The exception is like this:
    Uncaught error fetching image:
    java.lang.NullPointerException
    at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:99)
    at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:113)
    at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:240)
    at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
    at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)

    don't specify an absolute path line "/images/eaze.gif" but use a relative path like "images/eaze.gif" or you might need the complete package path.

  • Uncaught error fetching image? Help appreciated.

    Hello. I'm currently working on a simple game that is quite similar to Minesweeper. There are 25 JPanels that show an image when they are clicked, the object being to find all the gophers. Everything is working fine, but for some reason I'm getting an error when an image tries to load. This happens randomly throughout the game, with some loading and then crashing when the error appears. The error I get is the following:
    Uncaught error fetching image:
    java.lang.NullPointerException
            at java.io.FileInputStream.<init>(FileInputStream.java:103)
            at java.io.FileInputStream.<init>(FileInputStream.java:66)
            at sun.awt.image.FileImageSource.getDecoder(FileImageSource.java:35)
            at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:240)
            at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
            at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)I'm currently using a modified version of Random that someone created, that makes sure values in a certain range are not repeated, to assign strings containing the image file's name randomly across the JPanels. Here's the method that I'm using to assign the strings:
        public void Generate() {
            for(int i = 0; i <= 24; i++) {
                if(i < maxGophers)
                    imageName = "gopher.jpg";
                else if(i < maxGophers+maxWolves && wolvesJCheckBox.isSelected())
                    imageName = "wolf.jpg";
                else if(i > maxGophers)
                    imageName = "hole.jpg";
                switch(generator.getNextInt(26)) {
                    case 1: panel1 = imageName;
                            break;
                    case 2: panel2 = imageName;
                            break;
                    case 3: panel3 = imageName;
                            break;
                    case 4: panel4 = imageName;
                            break;
                    case 5: panel5 = imageName;
                            break;
                    case 6: panel6 = imageName;
                            break;
                    case 7: panel7 = imageName;
                            break;
                    case 8: panel8 = imageName;
                            break;
                    case 9: panel9 = imageName;
                            break;
                    case 10: panel10 = imageName;
                            break;
                    case 11: panel11 = imageName;
                            break;
                    case 12: panel12 = imageName;
                            break;
                    case 13: panel13 = imageName;
                            break;
                    case 14: panel14 = imageName;
                            break;
                    case 15: panel15 = imageName;
                            break;
                    case 16: panel16 = imageName;
                            break;
                    case 17: panel17 = imageName;
                            break;
                    case 18: panel18 = imageName;
                            break;
                    case 19: panel19 = imageName;
                            break;
                    case 20: panel20 = imageName;
                            break;
                    case 21: panel21 = imageName;
                            break;
                    case 22: panel22 = imageName;
                            break;
                    case 23: panel23 = imageName;
                            break;
                    case 24: panel24 = imageName;
                            break;
                    case 25: panel25 = imageName;
                            break;
                } // end switch
            } // end for
        } // end method Generate{code}This is the code I'm using to load the images once the JPanels are clicked:
    {code:java}        imageIcon = new ImageIcon(panel1);
            image = imageIcon.getImage();
            Graphics g = blankJPanel1.getGraphics();
            g.drawImage (image, 1, 1, blankJPanel1);{code}There's also a JButton that draws all the associated images on all the panels, but that gives the error as well, drawing only some until it encounters it.
    I'm quite sure this isn't the most efficient way to go about it, so I'm open to any changes and suggestions. Thanks to anyone who can help!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    There are 25 JPanelsYou need to hold them in an array. All that panel1, panel2, ... panel25 business is a waste of time and space.
    java.lang.NullPointerExceptionSo something is null that shouldn't be.
    imageIcon = new ImageIcon(panel1);
    image = imageIcon.getImage();
    Graphics g = blankJPanel1.getGraphics();
    g.drawImage (image, 1, 1, blankJPanel1);i.e. one of those variables.

  • Help me this error :"uncaught error fetching image" with Jar file

    Hi all.
    I have a program written with Swing. This program has one button and fetch Image into this button. Image is in Images directory .When I run this program by IDE, It's OK. However, when I compress classes of this program into Jar file and run, it can not recognize the path to Image. And it leads to this error:
    "uncaught error fetching image"
    I have tried to look for a lot of information relating to this problem on the internet but nothing is possible.
    Please help me. Thank you.
    And my program
    http://www.mediafire.com/?j0yzun4d0mx

    When you JAR it's different. Try something like this:
    BufferedReader br=new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(listname)));
    you don't hae to do the BufferedReader, but the getClass().getResource... is what you need.

  • Help me this error :"uncaught error fetching image"

    I have a program written with Swing. This program has one button and fetch Image into this button. Image is in Images directory .When I run this program by IDE, It's OK. However, when I compress classes of this program into Jar file and run, it can not recognize the path to Image. And it leads to this error:
    "uncaught error fetching image"
    I have tried to look for a lot of information relating to this problem on the internet but nothing is possible.
    Please help me. Thank you.
    And my program
    http://www.mediafire.com/?j0yzun4d0mx

    Read the Swing tutorial on [How to Use Icons|http://java.sun.com/docs/books/tutorial/uiswing/TOC.html]. It shows you how to load images from a jar file.

  • What is Uncaught error fetching image ?

    Hi,
    I am using Netbeans 5.5.1 with JDK 6 bundle and trying to build an GUI application but I am getting strange error like this when I try to compile and run:
    =====================================================
    Uncaught error fetching image:
    java.lang.NullPointerException
    at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:97)
    at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:107)
    at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:240)
    at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
    at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
    =====================================================
    I tried to debug but I was not able to. It happens even before the first line of code executes?
    What is this error and how can I fix this?
    Thanks

    Well I have one image loaded in label and one in a button. Both loaded as classpath. I have tried to set the image as null (no image) but it still shows the same error. However I can build my application without error. This error shows only if tried to run from within the IDE. Built jar file can be executed from outside the IDE.

  • Error creating image

    Im getting error when trying to create an image from array
    when i am reading the image as array from the network
    public void write(OutputStream out) throws IOException{
        DataOutputStream dout = new DataOutputStream(out);
        //Write mood name
        dout.writeUTF(m_moodName);
        if(m_img == null){
          //Write there is no image
          dout.writeBoolean(false);
        }else{
          //Write there is image
          dout.writeBoolean(true);
          PngEncoder pngEncoder = new PngEncoder(m_img);
          byte[] array = pngEncoder.pngEncode();
          //Write the array length
          dout.writeInt(array.length);
          //Write the array
          dout.write(array);
          dout.flush();
      public void read(InputStream in) throws IOException{
        DataInputStream din = new DataInputStream(in);
        //Read mood name
        m_moodName = din.readUTF();
        //Read if there is image
        boolean bool = din.readBoolean();
        if(bool == true){
          //Read byte array length
          int length = din.readInt();
          byte[] array = new byte[length];
          //Read to byte array
          din.readFully(array);
          m_img = Toolkit.getDefaultToolkit().createImage(array);
      }This is the exception that i am getting
    Uncaught error fetching image:
    java.lang.NegativeArraySizeException
         at sun.awt.image.PNGImageDecoder.produceImage(Unknown Source)
         at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
         at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
         at sun.awt.image.ImageFetcher.run(Unknown Source)I am getting this error from this line... (i think)
    m_img = Toolkit.getDefaultToolkit().createImage(array);and here is PNG encoder that i am using
    http://catcode.com/pngencoder/
    please help...
    shay

    There are many possible reasons, for example:
    - pngEncoder produces wrong result.
    - byte array is corrupted on transition.
    I'd suggest to save this byte array as file and check if this image can be open by any image viewer.
    Also, it seems Image I/O is applicable in your scenario.
    Consider using it because it is recomeded API to work with images nowadays
    (unless you have something ImageIO can not handle, e.g. animated images)

  • Uncaught error java nullpoint exception, email icons disappeared, application loader unable to back up data, desktop manager unable to connect

    Model:  Curve 8900
    Provider: At&t
    Platform: 4.2.0.108
    I'm ready to throw this phone in the blender.... if I could only back up my data first. A couple of months ago the What's App application required an update. I updated it and ever since my phone has steadily had more and more issues. First, I kept getting this uncaught error message, shortly thereafter the 2 email accounts (both gmail) that I have linked to the account disappeared. The message icon shows that I have messages, but icons not there (I have tried the show all option). At one point the message icon started exponentially adding the number of messages until it got up to over 86,000. When I reboot the phone it goes back down and then steadily increases again... usually though it's more to 400 - 500 rather then tens of thousands. I have been trying to install updates and do a wipe of the BB so that I can start from scratch, unfortunately the application loader is unable to back up data. The desktop manager is unable to connect to the blackberry and indicates that an upgrade is required. I have tried doing the upgrade both directly from the phone and connected to the desktop manager, but nothing seems to work. If I try to upgrade the software directly from the BB, I get to the start download button and when I click, nothing happens. I have removed all applications except bberry app world and one game that I play, Pixelated Plus. Still nothing. Any ideas?

    Do you want to save the messages?
    If not (and I think they are the problem) open the Desktop Software > Device > Delete Data and click the "select Data" option. Select the Messages to remove. Complete the prompts and finish.
    Then, return to backup the entire device, and see if that is possible to complete this time with no messages.
    Now, once the back up is done and you have your data, you can disconnect the device.
    Now, use BBSAK to wipe the device and subsequently load the new operating system.
    **If you cannot complete the backup again above, you might have to do without it, OR you can use the Desktop Software to sync your Address book, calendar, memos and tasks to Outlook. OR, you can easily install and use BlackBerry Protect to backup your device over the air to RIM servers, then once wiped and the new OS reloaded, you can use Protect to restore the data back to the 8900. << This you should do regardless.
    Good luck, post back here as you have questions.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I cannot move photos from iphone to MacBook.  I get an error message that says: Error downloading image. iPhoto cannot import your images because there was a problem downloading an image. How can I fix/remedy this?

    I am receiving an error message every time I plug my iPhone 4S into my MacBook: Error downloading image. iPhoto cannot import your images because there was problem downloading an image.  How can I fix/remedy this?

    try Image Capture - in your applications folder
    LN

  • Editing Error - This Image cannot be rendered for editing...

    Editing Error - This Image cannot be rendered for editingbecause Aperture doesn't support the image format.
    Thats the message that appears when I'm exporting to Photoshop CS5 (I tried CS4 too), or even other Plug-ins such as Silver Efex Pro...
    That had never happened before, and I use Aperture for over 2 years.
    Its RAW image format from the same camera and all, nothing has changed. just randomly decided not to export anymore to other programs, Regular exporting works, so it's nothing to do with exporting it self, but the communication between aperture and other softwares, I think.
    I've seen some other people having the same problem, does anyone have a take on it, in how to solve this? I can't edit anymore outside of aperture. (of course not including the idea of exporting and doing everything away from aperture, which is totally not viable with the amount of content to be edited and not being in aperture anymore.)
    I've tried deleting the preferences, tried repair permissions of the Library, and still didn't work.
    Didn't go to the other 2 options (repair and rebuild database) because it would take days if chosen, and still not sure that would solve. or if has anything to do with.
    Any light anyone?

    What kind of file is it? (i.e.jpeg, Canon RAW, Nikon RAW etc..)
    As a workaround until you get the issue fixed, why not reimport the image from the original file, lift and stamp any adjustments you've made in Aperture, and see if the same problem occurs?
    A

  • Report suddenly showing ORA-20001: Error fetching column value: ORA-06502:

    Hi,
    Some reports in my applications are suddenly showing:
    ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    instead iof the data they used to show.
    In my development system I can fix this by:
    1. changing the column alias in my sql
    select 'a' alias1 from dual becomes
    select 'a' alias2 from dual
    2. SAVE CHANGES
    3. change column alias back to original
    select 'a' alias2 from dual becomes
    select 'a' alias1 from dual
    4. reorder columns back to original in the 'report attributes' tab
    alias1 is now at the bottom of my colum list - i just bounce it up to column 4 using the up arrows
    5. SAVE CHANGES
    then everything starts working OK again.
    There seems to be nothing wrong with my sql as I can make it works on a new page or after I run the above steps, so I guess something is breaking somewhere but I cannot work out what.
    Has anyone else seen this? Does anyone know the cause? Does anyone have a fix for this that does not involve the above steps (plus redeployment to prodcution and all the work that involves)?
    I am seeing this on version 2.3 and 3.0.
    Thanks,
    Martin

    Hi Scott,
    I think this is want you want (sorry it's not easy to read):
    wp.suite_id - Database Column NUMBER - Report Column Based on LOV
    wp.project_id - Database Column NUMBER - Report Column Based on LOV
    wp.application_order wp_order - Database Column NUMBER - Report Column Standard
    lpad(wp.work_package_id,5,'0')||' - '||wp.name wp_name - Database Column NUMBER/VARCHAR2 - Report Column Standard
    pt.application_order pt_order - Database Column NUMBER - Report Column Standard
    pt.name pt_name - Database Column VARCHAR2 - Report Column Standard
    substr(pt.description,1,30) description - Database Column VARCHAR2 - Report Column Standard
    pt.application_tier - Database Column VARCHAR2 - Report Column Based on LOV
    pt.application_method - Database Column VARCHAR2 - Report Column Based on LOV
    pt.TECH_LEAD_ID - Database Column NUMBER - Report Column Based on LOV
    This report has no link columns and no derived columns.
    Regards,
    Martin

  • Read Error of images in libre office

    read error in images of LibreOffice
    Hi, when loading this file, do not load images in the document, this only happens since version 3.5, instead of pictures, a box appears with the message "read error".
    The file I downloaded from the Internet, the images are correctly loaded into abiword.
    I would appreciate your help, thanks.
    The File

    Crystal Reports is limited in how it works with images - large images or a large number of images, etc. Much as CR is not a good database archiving tool, it's not a very good graphics presenter. I find stand-alone versions of CR are a bit better, but that may just be a perception. My recommendations:
    1) Try an eval of a stand-alone version of CR:
    http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    Go for CR 2008 as CR 2011 does not have any SDK
    2) Make sure the picture  blob  what ever, never spills beyond the designer pane of the report. This may change from site to site depending on printer drivers used (CR depends on these to render the report)
    3) Have a look at the article [Causes of "Background Processing" error|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50a6f5e8-8164-2b10-7ca4-b5089df76b33]
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Uncaught error handler (global error handling) not working in Chrome FP 10.1.103.22

    A few days ago I very happily discovered the new global error handling available in flash-player (FP) 10.1
    Now while all works well in Firefox (using Adobe's FP 10.1.102.64), nothing happens in Chrome (using Google's FP 10.1.103.22).
    I can disable Google's FP using the "about:plugins" page in Chrome, restart the browser, and then everything works since the browser falls back to the other flash plugin installed, which is again Adobe's FP 10.1.102.64.
    Is this a known bug?

    Don't tell me the uncaught error handler only works for a debugger version....??
    The documentation, which I read quite carefully, doesn't have a word on this. It suggests rather the opposite:
    "When content is running in a debugger version of the runtime, such as the debugger version of Flash Player or the AIR Debug Launcher (ADL), an uncaught error dialog appears when an uncaught error happens. For those runtime versions, the error dialog appears even when a listener is registered for the uncaughtError event. To prevent the dialog from appearing in that situation, call the UncaughtErrorEvent object's preventDefault() method."

  • Trying to upload pic's Message error download image issue?

    Trying to upload pic's from Iphone 4 to macbook air. iphoto is sending bcak an error message error downloading image? not able to upload?

    Jeff,
    When I purchased my Dell laptop a year ago it came loaded with Adobe Photoshop Premiere Elements 11 with photo editor and video editor. Since I really have only begun to learn to use the programs, and since I kept getting a message to upgrade now!, I decided to upgrade and learn to use edition 13 from the get-go. What I ordered was Photoshop Elements 13..order nbr AD014688152.
    What is happening is that it downloads okay but when it tries to open in Elements 11 I get the error message that it can't load, wrong type of file.
    My computer op system is Microsoft Windows 8.1 (64-bit). I know I downloaded the 64-bit and not 32-bit. 
    Perhaps I ordered the wrong upgrade?
    I appreciate your help . Let me know if you need additional info.
    Fred Hoerauf
    Sent from my iPad

  • Error Loading Image

    I get the message 'Error Loading Image'.  No explanation, it is just a jpg photo

    Hi, David-
    Did you see the error message in Edge Animate or on the webpage when you tried to preview?  I would like to point out that a 7MB file for most people on the web would be interminable, and certainly files that large are not supported on tablet devices like the iPad for other publishing needs.  I'd wonder what use case most people would have in animating a file that large, as all of the designers we've talked to always work on download optimization for various devices.
    That being said, I can look into it.
    Thanks,
    -Elaine

Maybe you are looking for

  • Material Master- Display changes thr' Z-program

    Hi,   I have created two custom fields in MM01, which appear as DISPLAY only fields. The value in these fields is populated depending on some another Z-field. This value is populated in database table thr' one Z-program. But reqmt is like, whenever t

  • Credit memo duplication

    Hi All, i have made the configuration for checking duplicate invoice. but when i post Credit memo it  post even if it is duplicate thanks for your help. Regards Sunitha Message was edited by:         sunitha l m

  • Lost iCal (1.5.5) from the tool bar

    Started sytem, in the dock no icon for iCal. Just disappeared. Any suggestions? Re-loaded iCal from finder apps still unable to place in dock.

  • Frame rate for camera does not match with AVI output

    Hello, I'm taking a video from a Basler A504K camera of well plate bottoms deflecting down. I have a frame rate indicator from the Vision Acquisition to see at what fps the camera is acquiring images, and I also have a frame rate controller at the IM

  • Cannot pay bill online anymore

    I have not been able to pay my bill online since October. I get the following message: Your bill summary is not available at this time. To view your bill, please continue to the Billing and Payment page. It also will not display my account number. Wh