I got ArrayIndexOutOfBoundsException when I tried to generate the gif image
I just upgrade JDK from 1.5 to 1.6. Then I want to save my image as a gif file. ( I used to save it as png file which was working perfect. ). I got ArrayIndexOutOfBoundsException at the time I am trying to save the image file:
java.lang.ArrayIndexOutOfBoundsException: 0
at com.sun.imageio.plugins.common.PaletteBuilder.insertNode(PaletteBuilder.java:267)
at com.sun.imageio.plugins.common.PaletteBuilder.insertNode(PaletteBuilder.java:274)
at com.sun.imageio.plugins.common.PaletteBuilder.insertNode(PaletteBuilder.java:274)
at com.sun.imageio.plugins.common.PaletteBuilder.insertNode(PaletteBuilder.java:274)
at com.sun.imageio.plugins.common.PaletteBuilder.insertNode(PaletteBuilder.java:274)
at com.sun.imageio.plugins.common.PaletteBuilder.insertNode(PaletteBuilder.java:274)
at com.sun.imageio.plugins.common.PaletteBuilder.insertNode(PaletteBuilder.java:274)
at com.sun.imageio.plugins.common.PaletteBuilder.insertNode(PaletteBuilder.java:274)
at com.sun.imageio.plugins.common.PaletteBuilder.insertNode(PaletteBuilder.java:274)
at com.sun.imageio.plugins.common.PaletteBuilder.buildPalette(PaletteBuilder.java:237)
at com.sun.imageio.plugins.common.PaletteBuilder.createIndexedImage(PaletteBuilder.java:76)
at com.sun.imageio.plugins.gif.GIFImageWriter.write(GIFImageWriter.java:564)
at com.sun.imageio.plugins.gif.GIFImageWriter.write(GIFImageWriter.java:492)
at javax.imageio.ImageWriter.write(ImageWriter.java:598)
at javax.imageio.ImageIO.write(ImageIO.java:1479)
at javax.imageio.ImageIO.write(ImageIO.java:1521)
at xxx.xxx.xxx.clusterImage.ClusterImageMaker.saveImage(ClusterImageMaker.java:863)
The code that caused exception in ClusterImageMaker.java is as following:
try {
857 //if (!imageExist(atrgtr, list)) {
858 //return;
859 //}
860 String gifname = findImageFileName( atrgtr, somNum,list);
861 String fullname = gifpath + gifname;
862 log.info("file name = " + fullname);
863 ImageIO.write(im_out, "GIF", new File( fullname ));
864 } catch (Exception ex) {
865 log.error("error" + ex.getMessage());
866 ex.printStackTrace();
867 throw new SMDException( "fail to save image file ", ex );
868 }
It took me quite a time trying to figure it out. Now I am desperate. Please help.
Post a SSCCE .
Similar Messages
-
My computer got corrupted when I tried to install the Mac OS X update combined
When I tried to download 5 new updates the download could not be completed it got stuck on the Mac OS X update combined. I have the snow leopard and was advised to reinstall the operating system. Can I do this without loosing what I have? Is there something else that I can do?
You can reinstall Snow Leopard without erasing the disk but hopefully you have a backup of your important files just in case.
Mac OS X 10.6 Help: Reinstalling Mac OS X
Can I do this without loosing what I have?
No guarantees, sorry.
Backup < most important term in computing. -
I got a Model Number: A1181, My hard drive burned out. I bouhgt a new hard drive Wd Blue Scorpio 500 GB. When i tried to install the MAC OS, it identifies a hard drive with 3.6 TB and i'm not able to do the installation. I touhgt the new ard drive was bad but i was able to install windows XP. Any ideas what do i have to do?
Well, let's hope that nothing was jiggled out of place when you were installing the new hard drive. Your optical drive may just be out of alignment or the disc you have is "dirty." Get a lint-free cloth and some rubbing alcohol, then clean the disc as thoroughly as you can starting from the center and working outward in a concentric circlular motion. See if that helps. In particular clean the inner portion well.
If this does not help, then you have a problem. You have opened the computer yourself. That action voids all support from Apple. If you take the computer in for service the store may refuse to service the computer. This is not related to your now expired warranty. -
I got "activateFailure" when I tried to activate zoneset after I added new zonings. it says "fabricChange".
We need more information
MDS, N5k, version ?
fc-alias, device-alias, enhanced zoning,.....
Topology
CLI output "show zoneset ....", "show active zoneset ....."
And the complete error message ? e.g. syslog -
Apple store,just wanted to check on how to change my area settings in itunes from United States to United Arab Emirates(that's where i stay).it got changed when i tried to download google maps from the US store in itunes.please help me out here.Thanks
Please please help me, if you know how.
-
I recently purchased an upgrade to Photoshop CS6. (Dec 9 2014). I have today downloaded the file (Photoshop_13_LS16.7z
This downloaded OK
When I tried to run the file (Winzip) I got the following message
"Installer failed to initialise. Could be due to a missing file. Please download Abobe support adviser."
I tried to do that and it told me Adobe support adviser no longer exists.
Could you please advise a solution.Extract it to a different location inside a dedicated folder and make sure to not destroy the file and folder hierarchy inside the archive. also run the install with sufficient user privielges and security stuff turned off.
Mylenium -
My ipod got messed up when i tried to update the software on it
when i tried to update the software, an icon appeared on my computer that said that there is a corrupt file on my ipod. How can i fix it. it doesnt show up on itunes so i dont know what to do
Hi bigd2k10,
First, force your iPod into disk mode, and connect it to your computer. See if it is recognized that way.
If it isn't being recognized, then see these articles:
iPod missing in "My Computer" or in iTunes for Windows
iPod is recognized by Windows but not iTunes
iTunes 7 doesn't recognize iPod
If you can sucessfully get your iPod recognized in iTunes, then I would suggest that you try restoring your iPod. For info on restoring, see:
Restoring iPod to factory settings
If that doesn't help, then see if this post by Da Gopha helps:
Da Gopha: iTunes displays a "corrupt file" error message
-Kylene -
Received notice of an update for one of my apps and when I tried to update the message reads "Account Not in this store" i must switch to a Canadian store before purchasing. I deleted app and tried to download again but still got the message. Anyone know how to fix? FYI have had phone for 2 years and this is the first time this has happened.
The Apple id that you created do you remember if you created with your region sellected as Canada or US. If so you can change Region directly on your device by clicking on App Store icon, Scroll to bottom and tap your app is, click view acct and change region
-
ORA-12505, error when i tried to open the "Workflow Administrator" tool
i have installed Oracle content server 10g r3, but when i tried to open the "Workflow Administrator" tool i got the following error "ORA-12505, TNS: listener does not currently know of SID given in connect descriptor", so how can i solve this issue?
//hint i am using Oracle database 10gIs the rest of your UCM install running OK?
This implies that the JDBC connection is failing.
Are you running Workflow Administrator from the Admin Applets in the browser OR as a standalone application from command line (*nix) or Start menu (windows)
I think that the application would normally look in config.cfg and use the JDBC connection string given in there - this would include the SID. Can you tnsping the SID?
Tim -
What do I do after I got an error after trying to download the security update?
What do I do next when I got an error after trying to download the security update?
Thank you for providing these details. It makes helping you much easier.
You have a 16GB iPad, but have only 2.4GB available. This is likely contributing to the issue. This amount, 15% of the iPad's storage capacity, is the minimum free space you should have. But when updating iOS, you should expect the new version to use somewhat more space than the old. I believe going to Settings > General > Usage and freeing space will help with your issue.
Another recommendation would be to use iTunes on your computer to do the update instead of over-the-air.
I believe either one of these would help you. Both would be at least as good. -
Some of my photos in Iphoto turn blank (white) when I tried to edit the size like zoon in and out.Can someone help me on this?
As a Test:
Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
Import a few pics into this new, blank library. Is the Problem repeated there? -
Hello I am just wondering why there is a message of error 1004 when i tryed to make the update on my apps. Does someone know what it means?
Yes, many know what this means. You can too. Just type in "error 1004" in the search box at the top of this page. Or, just look to the right. You'll find many links in the "More Like This" box.
Always good forum etiquette to search for previous posts on the topic before posting. -
I am trying to set an open DNS using the MacAir. But when I tried to flush the existing one at utilities/terminal, it will not work. I am using Yosemite. May I know what should be the command line so that I can shift to an open DNS? Thanks
>SystemPreferences>Network>DNS
-
About a month ago a song randomly appeared in my songs list and when I tried swiping to the left to delete the song it wouldn't slide over to show the delete button. The delete slide appears with all of my other songs except that one. The ICloud songs are turned off and it wasn't iTunes Radio. 2 more songs like this have appeared and I can't delete them from both my iPhone or my computer (they don't even show up on my computer). If somebody knows how to fix this that would be amazing! Thank You.
Have you:
- Restore from backup. See:
iOS: Back up and restore your iOS device with iCloud or iTunes
- Restore to factory settings/new iOS device.
If a PC
Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
or
Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8 -
How do i recover data from an external hard drive that was accidentally deleted? After I verified the drive, a message appeared that said my drive needed to be repaired. When I tried to access the drive again, the 700 Gigs of music is gone!
Stop using the drive immediately, un plug it.
Buy a copy of ProSoft DataRescue 4 and use it to search for deleted files.
Maybe you are looking for
-
How to Use a report as a filter in another report
Hi We are presently migrating from microstategy to OBIEE. There is a report with 3 attributes and a single metric(the metric is the count of remedy ticket). The 2nd report has just the 3 attributes(the person who doesn't have a ticket for the given t
-
Create a new page that will open in a separate window
Hi, I would like to add a new page to my website but have it open into a new window when linked to instead of replacing the page that was open thereby having both pages open side by side. The example would be having my bio open up along side my about
-
Errors when importing a project in NWDS
Hi All, I imported the SAP delivered project Webdynpro_OVS_Valuehelp into NWDS. I get the following errors: Missing required library: 'C:Program Files/NWDS716/IDE70/eclipse/plugins/com.sap.tc.ap_2.0.0/comp/SAP_JTECHS/DCs/sap.com/webservices/_comp/gen
-
Spry Master Data Region - Horizontal
I'm using the following tutorial to create navigation for my site: Spry framework for Ajax http://www.adobe.com/designcenter/video_workshop/index.html?id=vid0166 In this example the XML data is listed vertically. Is there a way for the data to be dis
-
WWhere has photo stream gone, done iOS 8 update and it's screwed everything up