2950 New S/W Load Problem

File "flash:/c2950-i6q4l2-mz.121-22.EA6.bin" uncompressed and installed, entry p
oint: 0x80010000
executing...
Error: hardware not supported by firmware.
Try loading newer software instead.
System Resetting...
I just delete the previous config.text file from the Flash memory, and copy the new one to the flash from the TFTP server, when i restart the switch the above error genrated, due to this error, switch is start display the error and restart again, what is the solution of this problem,becaus switch is not going to be started how can i upgrade or set the switch to the factory default setting.
How can i solve this problem, Give me a solution.
Thank You

Either the IOS is not supported or corrupted. Either way, you need to do IOS recovery. Here is a link with a step-by-step procedure:
http://www.cisco.com/en/US/products/hw/switches/ps628/products_tech_note09186a0080169696.shtml

Similar Messages

  • New tabs are not updating the names of the sites they have loaded. When I open a new tab and load a site, the tab simply stays named "New Tab". When I open a link in a new window, it shows "Connecting..." even while its fully loaded.

    New tabs are not updating the names of the sites they have loaded. When I open a new tab and load a site, the tab simply stays named "New Tab". When I open a link in a new window, it shows "Connecting..." even while its fully loaded.

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]

  • 3d motion tween load problem

    Hey all,
    I'm having a problem which has made me struggling for two days. I hope i can get some new ideas for my problem here.
    I created a fla which includes several 3d motion tween in CS5.5, when it's compiled it works perfect. But when i try to load this swf into my main project, images get blurry and distorted. Below is the screenshot of the situation. The first one is the correct one, and second one is loaded into main project. I read that scaling 3d tweens might cause such problems and tried to fix it by two solutions. As first, i tried to retransform the tween by: myContainer.transform.matrix = new Matrix(); but didn't work out. As second, i tried to rescale the stage which mentioned as a solution is some blogs.
    And i don't know if it is some kind of bug as mentioned here: http://forums.adobe.com/message/2258767
    I'd really be glad if i can get some ideas, thanks all.

    anyone?

  • New MacBook Air camera problem

    Got my new macbook air (mid 2012) and camera doesn't show anything:
    Mac recognizes the FaceTime HD Camera (on System Information),
    but when turning on FaceTime / Photobooth / Skype etc.. the loading icon just stay
    on the screen and nothing else come up.
    Already installed all software updates and tried setting up a new user - still same problem.
    I use OS X Mountain Lion 10.8.4 on Macbook air 13.3" Mid 2012.
    What should I do?

    Jacob ..
    Try troubleshooting the built in camera >  How to Troubleshoot iSight
    Since the same thing happens in more than one user account, try Resetting the PRAM first.

  • New version wont load..Message Error 7 - Windows error 126

    new version wont load..Message Error 7 - Windows error 126

    Any update on this???? Still having the same problem.

  • Add a dimension in an ASO app.  Loading problem

    Hi guys.
    I have an ASO application and I need to add a scenario dimension. this new dimension will have 2 members real, forecast. Currently I have 6 different dimensions, and i need to export all current database info and reload it with the intersenction with the member real of the new dimension.
    The problem consists in that i cant get an export file with column format, since essbase doesn't alllow it for aggregate databases, so i can't just aggregate one column to a rule file for solving the problem. The ASO default database export puts continuously all dim member names intersections and the asssociated data, separated by comma, and so on, so i can't use a rule file to treat the essbase native export file, as far i know.
    I thought that with a report script with all dimensions in rows will help me, since it's the way to get all intersections and data in columns, but the problem is after a while, the admin services stops the report generation stating that there isn't enough cache memory in the app, since the database is too big. I increased from 32k to even 2056k the cache size, and the problem still continues, so I really accept any suggestion in order to solve the problem.
    I broke the report in just smaller reports, by years, and by accounts, letting the other dims in level 0, and with just one account member and 1 year, the report tooks about 3 hours to generate it, and there would be be about 60 reports similar with similar times, so it's not an economical and effective solition..
    I wonder if there anyway that you know thaat can help us.
    Thanks in advance four your comments.

    Thanks Glenn for you answer.... I got another idea using part of your solution. Did an export of the current cube, create another ASO cube with similar outine, but added the new dimension and memebers real and forecast, modified the export file adding on the first line the word "real" of the new member, and loaded the modified export in the new cube.... and worked!!
    Thanks to all

  • Dynamic class loading problem using unknown JAR archive and directory names

    I read the following article, which enlightened me a lot:
    Ted Neward: Understanding Class.forName().
    However, it took me some while to understand that my problem is the other way around:
    I know the name of the class, I know the name of the method,
    but my program/JVM does not know where to load the classes from.
    Shortly, my problem is that the server engine that I am writing
    uses two different versions of the same library.
    So I am trying out the following solution:
    My program is named TestClassPathMain.java
    Assume the two libraries are named JAR1.jar and JAR2.jar
    and the class/instance method that should
    be exposed to TestClassPathMain.java by them is named
    TestClass1.testMethod().
    As long as I was depending on just one library,
    I put JAR1.jar in the classpath before starting java,
    and I was happy for a while.
    At the moment I got the need to use another version of
    TestClass1.testMethod() packaged in JAR2.jar,
    a call would always access JAR1.jar's
    TestClass1.testMethod().
    I then decided to remove JAR1.jar from the classpath,
    and programmatically define two separate ClassLoaders, one for use
    with JAR1.jar and the other for use with JAR2.jar.
    However, the problem is only partly solved.
    Please refer to the enclosed code for details.
    (The code in the JAR1.jar/JAR2.jar is extremely simple,
    it just tells (by hardcoding) the name of the jar it is packaged in
    and instantiates another class packaged in the same jar using
    the "new" operator and calls a method on it. I don't enclose it.)
    The TestClassPathMain.java/UC1.java/UC2.java code suite was
    successfully compiled with an arbitrary of JAR1 or JAR2 in the classpath,
    however removed from the classpath at runtime.
    (I know that this could have been done (more elegantly...?) by producing an Interface,
    but I think the main problem principle is still untouched by this potential lack of elegancy(?))
    1) This problem should not be unknown to you experts out there,
    how is it generally and/or most elegantly solved?
    The "*** UC2: Variant 2" is the solution I would like best, had it only worked.
    2) And why arent "*** UC2: Variant 2" and
    "*** static UC2: Variant 2" working,
    while "*** Main: Variant 2" is?
    3) And a mal-apropos:
    Why can't I catch the NoClassDefFoundError?
    The output:
    *** Main: Variant 1 JAR 1 ***:
    Entering TestClass1.testMethod() packaged in JAR1.jar
    About to instantiate TestClass2 with the new operator
    About to call TestClass2.testMethod()
    Entering TestClass2.testMethod() packaged in JAR1.jar
    *** Main: Variant 1 JAR 2 ***:
    Entering TestClass1.testMethod() packaged in JAR2.jar
    About to instantiate TestClass2 with the new operator
    About to call TestClass2.testMethod()
    Entering TestClass2.testMethod() packaged in JAR2.jar
    *** Main: Variant 2 JAR 1 ***:
    Entering TestClass1.testMethod() packaged in JAR1.jar
    About to instantiate TestClass2 with the new operator
    About to call TestClass2.testMethod()
    Entering TestClass2.testMethod() packaged in JAR1.jar
    *** Main: Variant 2 JAR 2 ***:
    Entering TestClass1.testMethod() packaged in JAR2.jar
    About to instantiate TestClass2 with the new operator
    About to call TestClass2.testMethod()
    Entering TestClass2.testMethod() packaged in JAR2.jar
    *** UC1: Variant 1 JAR 1 ***:
    Entering TestClass1.testMethod() packaged in JAR1.jar
    About to instantiate TestClass2 with the new operator
    About to call TestClass2.testMethod()
    Entering TestClass2.testMethod() packaged in JAR1.jar
    *** UC1: Variant 1 JAR 2 ***:
    Entering TestClass1.testMethod() packaged in JAR2.jar
    About to instantiate TestClass2 with the new operator
    About to call TestClass2.testMethod()
    Entering TestClass2.testMethod() packaged in JAR2.jar
    *** static UC2: Variant 2 JAR 1 ***:
    Exception in thread "main" java.lang.NoClassDefFoundError: TestClass1
            at UC2.runFromJarVariant2_static(UC2.java:56)
            at TestClassPathMain.main(TestClassPathMain.java:52)
    TestClassPathMain.java
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.URLClassLoader;
    public class TestClassPathMain {
        public static void main(final String args[]) throws MalformedURLException, ClassNotFoundException, InstantiationException, SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {
                // Commented out because I cannot catch the NoClassDefFoundError.
                // Why?
                try {
                    final TestClass1 testClass1 = new TestClass1();
                    System.out.println(
                        "\nThe class TestClass1 is of some unexplicable reason available." +
                        "\nFor the purpose of the test, it shouldn't have been!" +
                        "\nExiting");
                    System.exit(1);
                } catch (NoClassDefFoundError e) {
                    System.out.println("\nPositively confirmed that the class TestClass1 is not available:\n" + e);
                    System.out.println("\n\nREADY FOR THE TEST: ...");
                // Works fine
                System.out.println("\n*** Main: Variant 1 JAR 1 ***:");
                runFromJarVariant1("file:/W:/java/eclipse/workspaces/simped_test/CP1/JAR1.jar");
                System.out.println("\n*** Main: Variant 1 JAR 2 ***:");
                runFromJarVariant1("file:/W:/java/eclipse/workspaces/simped_test/CP2/JAR2.jar");
                // Works fine
                System.out.println("\n*** Main: Variant 2 JAR 1 ***:");
                runFromJarVariant1("file:/W:/java/eclipse/workspaces/simped_test/CP1/JAR1.jar");
                System.out.println("\n*** Main: Variant 2 JAR 2 ***:");
                runFromJarVariant1("file:/W:/java/eclipse/workspaces/simped_test/CP2/JAR2.jar");
                // Works fine
                final UC1 uc1 = new UC1();
                System.out.println("\n*** UC1: Variant 1 JAR 1 ***:");
                uc1.runFromJarVariant1("file:/W:/java/eclipse/workspaces/simped_test/CP1/JAR1.jar");
                System.out.println("\n*** UC1: Variant 1 JAR 2 ***:");
                uc1.runFromJarVariant1("file:/W:/java/eclipse/workspaces/simped_test/CP2/JAR2.jar");
                // Crashes
                System.out.println("\n*** static UC2: Variant 2 JAR 1 ***:");
                UC2.runFromJarVariant2_static("file:/W:/java/eclipse/workspaces/simped_test/CP1/JAR1.jar");
                System.out.println("\n*** static UC2: Variant 2 JAR 2 ***:");
                UC2.runFromJarVariant2_static("file:/W:/java/eclipse/workspaces/simped_test/CP2/JAR2.jar");
                // Crashes
                final UC2 uc2 = new UC2();
                System.out.println("\n*** UC2: Variant 2 JAR 1 ***:");
                uc2.runFromJarVariant2("file:/W:/java/eclipse/workspaces/simped_test/CP1/JAR1.jar");
                System.out.println("\n*** UC2: Variant 2 JAR 2 ***:");
                uc2.runFromJarVariant2("file:/W:/java/eclipse/workspaces/simped_test/CP2/JAR2.jar");
        private static void runFromJarVariant1(final String jarFileURL)
            throws MalformedURLException,
                   ClassNotFoundException,
                   InstantiationException,
                   IllegalArgumentException,
                   IllegalAccessException,
                   InvocationTargetException,
                   SecurityException,
                   NoSuchMethodException {
            final URL url = new URL(jarFileURL);
            final URLClassLoader cl =
                new URLClassLoader(new URL[]{url},
                                   Thread.currentThread().getContextClassLoader());
            final Class clazz = cl.loadClass("TestClass1");
            final Object testClass1 = clazz.newInstance();
            final Method testMethod1 = clazz.getMethod("testMethod", null);
            testMethod1.invoke(testClass1, null);
        private static void runFromJarVariant2(final String jarFileURL)
            throws MalformedURLException,
                   ClassNotFoundException,
                   InstantiationException,
                   IllegalArgumentException,
                   IllegalAccessException,
                   InvocationTargetException,
                   SecurityException,
                   NoSuchMethodException {
            final URL url = new URL(jarFileURL);
            final URLClassLoader cl =
                new URLClassLoader(new URL[]{url},
                                   Thread.currentThread().getContextClassLoader());
            final Class clazz = cl.loadClass("TestClass1");
            final TestClass1 testClass1 = new TestClass1();
            testClass1.testMethod();
    UC1.java
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.URLClassLoader;
    public class UC1 {
        public void runFromJarVariant1(final String jarFileURL)
            throws MalformedURLException,
                   ClassNotFoundException,
                   InstantiationException,
                   IllegalArgumentException,
                   IllegalAccessException,
                   InvocationTargetException,
                   SecurityException,
                   NoSuchMethodException {
            final URL url = new URL(jarFileURL);
            final URLClassLoader cl =
                new URLClassLoader(new URL[]{url},
                                   Thread.currentThread().getContextClassLoader());
            final Class clazz = cl.loadClass("TestClass1");
            final Object testClass1 = clazz.newInstance();
            final Method testMethod1 = clazz.getMethod("testMethod", null);
            testMethod1.invoke(testClass1, null);
    UC2.java
    import java.lang.reflect.InvocationTargetException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.URLClassLoader;
    public class UC2 {
        public void runFromJarVariant2(final String jarFileURL)
        throws MalformedURLException,
               ClassNotFoundException,
               InstantiationException,
               IllegalArgumentException,
               IllegalAccessException,
               InvocationTargetException,
               SecurityException,
               NoSuchMethodException {
            final URL url = new URL(jarFileURL);
            final URLClassLoader cl =
                new URLClassLoader(new URL[]{url},
                                   Thread.currentThread().getContextClassLoader());
            final Class clazz = cl.loadClass("TestClass1");
            final TestClass1 testClass1 = new TestClass1();
            testClass1.testMethod();
         * Identic to the "runFromJarVariant2" method,
         * except that it is static
        public static void runFromJarVariant2_static(final String jarFileURL)
        throws MalformedURLException,
               ClassNotFoundException,
               InstantiationException,
               IllegalArgumentException,
               IllegalAccessException,
               InvocationTargetException,
               SecurityException,
               NoSuchMethodException {
            final URL url = new URL(jarFileURL);
            final URLClassLoader cl =
                new URLClassLoader(new URL[]{url},
                                   Thread.currentThread().getContextClassLoader());
            final Class clazz = cl.loadClass("TestClass1");
            final TestClass1 testClass1 = new TestClass1();
            testClass1.testMethod();
    }

    2. i need to load the class to the same JVM (i.e. to
    the same environment) of the current running
    aplication, so that when the loaded class is run, it
    would be able to invoke methods on it!!!
    ClassLoader(s) do this. Try the URLClassLoader.
    (I was talking about relatively esoteric "security"
    issues when I mentioned the stuff about Class objects
    "scope".) You might use the URLClassLoader kind of
    like this.
    Pseudo-code follows:
    // setup the class loader
    URL[] urls = new URL[1];
    urls[0] = new URL("/path/to/dynamic/classes");
    URLClassLoader ucl = new URLClassLoader(urls);
    // load a class & use make an object with the default constructor
    Object tmp = ucl.loadClass("dynamic.class.name").newInstance();
    // Cast the object to a know interface so that you can use it.
    // This may be used to further determine which interface to cast
    // the class to. Or it may simply be the interface to which all
    // dynamic classes have to conform in your program.
    InterfaceImplementedByDynamicClass loadedObj =
        (InterfaceImplementedByDynamicClass)tmp;It's really not as hard as it sounds, just write a little test of
    this and you will see how it works.

  • PSE 12 trial version - loading problems

    I have been trying for 3 days to load the 30 day trial of PSE12 on my new computer. My computer is loaded with Windows 8.  I have encountered problems over and over again with loading PSE12, but never the same problem.
    For example: after one download the start menu would open but it wouldn't go to the organizer or editor.  So I deleted that program and re-loaded it BUT -
    then , it went straight to the organizer - and froze, so I clicked out - tried to click back in, and NOTHING> >> not even the start menu.
    THIS IS SOOO FRUSTRATING! Makes me really second guess whether I should purchase this or not
    Please help!!!

    I think it said error 101, but not totally sure that I recall it 
    correctly.  I deleted everything and reinstalled and then it  worked.
    Haldis
    In a message dated 12/31/2013 11:27:15 A.M. Pacific Standard Time, 
    [email protected] writes:
    Re:  PSE 12 trial version - loading problems
    created by Jeff A Wright (http://forums.adobe.com/people/JeffAWright) 
    in  Trial Download & Install - View the full  discussion
    (http://forums.adobe.com/message/5969733#5969733)

  • Flash Image Gallery load problem

    This a familiar problem that has been put up here a thousand
    times I'm sure but as yet I haven't been able to find a solution
    for it. I've put together a simple image gallery using Flash and an
    XML file. It works perfectly on my system but there are issues with
    the images loading properly when I put them onto my site. I know
    very little Flash, I've been using a pre-made gallery that I
    downloaded but since it works on my computer I assume I should be
    able to get it to work online too. The thumbnails for the file seem
    to work fine and the information from the XML file is obviously
    being accessed, however the main images are not loading. I've
    included all the code below (Actionscript, XML and the Web coding),
    if someone could help me before I put my fist through a wall that
    would be great:
    Actionscript
    stop();
    //specify the url where folder is located below (if
    applicable)
    toadd="";
    t = 0;
    l = 0;
    theside = 1;
    galxml = new XML();
    galxml.load(toadd+"flash/fashion/easy-xml-gallery-2.xml");
    galxml.ignoreWhite = true;
    galxml.onLoad = function(success) {
    if (success) {
    maxnum = galxml.firstChild.childNodes.length;
    for (n=0; n<maxnum; n++) {
    specs = galxml.firstChild.childNodes[n];
    //TEXT FOR SIDE NAV
    duplicateMovieClip(side.thumbs.thumbsb, "thumbs"+n, n);
    thumbclip = eval("side.thumbs.thumbs"+n);
    thumbclip._x = n*100;
    thumbclip.thetitle = specs.attributes.name;
    thumbclip.theurl = specs.attributes.theurl;
    thumbclip.thecaption = specs.attributes.caption;
    thumbclip.thenum = n+1;
    thumbclip._alpha = 100;
    loadMovie(toadd+"/flash/fashion/images/"+(n+1)+"b.jpg",
    thumbclip.thumbload.thumbload2);
    play();
    side.thumbs.thumbsb._visible = false;
    mainperc.onEnterFrame = function() {
    if (mainperc.perc<98) {
    mainperc._alpha += 5;
    mainperc.perc = Math.round(l/t*100);
    mainperc.perctext = mainperc.perc+"%";
    mainperc.ltext = "OF THUMBNAILS LOADED
    ("+Math.round(t/1024)+"kb)";
    if (mainperc.perc>98) {
    //mainperc._alpha -= 5;
    if (mainperc._alpha<-50) {
    delete mainperc.onEnterFrame;
    XML
    <gallery>
    <pic1 name="ONE">
    <pic2 name="TWO"/>
    <pic3 name="THREE"/>
    <pic4 name="FOUR"/>
    <pic5 name="FIVE"/>
    <pic6 name="SIX"/>
    <pic7 name="SEVEN"/>
    <pic8 name="EIGHT"/>
    <pic9 name="NINE"/>
    <pic10 name="TEN"/>
    </gallery>
    Webpage coding
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>shorty designs</title>
    <style type="text/css">
    <!--
    body,td,th {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: #666666;
    body {
    margin-left: 0px;
    margin-top: 0px;
    background-image: url(images/fashion_back.gif);
    background-repeat: no-repeat;
    a:hover {
    color: #999999;
    text-decoration: none;
    .Sections {
    color: #333333;
    font-weight: bold;
    #wrapper {
    background-color: #FFFFFF;
    padding: 10px;
    width: 760px;
    margin-right: auto;
    margin-left: auto;
    .section_reg {
    color: #333333;
    font-weight: bold;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: large;
    padding-left: 10px;
    .contact {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: large;
    color: #333333;
    background-color: #FFFFFF;
    width: 400px;
    padding-left: 22px;
    text-align: right;
    .section_back {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: large;
    color: #FFFFFF;
    background-color: #000000;
    width: 135px;
    padding-left: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    background-position: center center;
    vertical-align: middle;
    height: auto;
    .style2 {color: #F0F0F0}
    a:link {
    text-decoration: none;
    color: #333333;
    a:visited {
    text-decoration: none;
    color: #333333;
    a:active {
    text-decoration: none;
    -->
    </style>
    <script src="Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    </head>
    <body>
    <div id="wrapper">
    <p class="Sections"><img src="images/version5.jpg"
    alt="shorty logo" width="166" height="85" /><span
    class="contact">Contact by email:
    [email protected]</span></p>
    <p class="Sections">
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','536','height','518','align','right','src','/flash/fashion/fashion','quality','high',' pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=Shockwa veFlash','movie','/flash/fashion/fashion'
    ); //end AC code
    </script>
    <noscript>
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    width="536" height="518" align="right">
    <param name="movie" value="/flash/fashion/fashion.swf"
    />
    <param name="quality" value="high" />
    <embed src="/flash/fashion/fashion.swf" width="536"
    height="518" align="right" quality="high" pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
    type="application/x-shockwave-flash"></embed>
    </object>
    </noscript>
    </p>
    <p class="section_back">Fashion</p>
    <p class="section_reg"><a
    href="travel.html">Travel</a></p>
    <p class="section_reg"><a
    href="wedding.html">Wedding</a></p>
    <p class="section_reg"><a
    href="layout.html">Layout</a></p>
    <p class="section_reg"><a
    href="personal.html">Personal</a></p>
    </div>
    </body>
    </html>

    Yep, these are the directions:
    this is very easy to update. You only need to edit the simple
    xml file and add images to the images folder.
    step 1.
    add as many images as you like at the size 536 x 403
    step 2.
    create thumbnails for the above images at size 100x75
    step 3.
    update the xml file with the name url and caption for each
    image. (to take the url off just click through to the button on the
    main picture and delete the script that says getURL(theurl)
    step 4.
    open flash file and change the 'toadd' variable to the folder
    where the flash file and image folder is located on your site.
    thats it done.
    The frustrating thing now is that the files are finally being
    found but the thumbnail function has decided to mess up.

  • Image loading problem

    I've been having a problem with my app that is designed to take an image, scale it into 3 different sizes and then save it.
    The problem seems to be that the image doesn't load correctly as when I look at the width and height of it, they come back as -1. I've tried both:
    try
                image = ImageIO.read(new File(url));
            catch(IOException e)
                e.printStackTrace();
                throw new RuntimeException("Error loading file: " + url);
            }and
    image = Toolkit.getDefaultToolkit().getImage(url);my code at present looks like this:
    package resizeImage;
    import com.sun.image.codec.jpeg.*;
    import javax.imageio.*;
    import java.awt.image.*;
    import java.awt.*;
    import java.io.*;
    import javax.swing.ImageIcon;
    public class resizeImage
        public BufferedImage convert(Image im)
            BufferedImage bi = new BufferedImage(im.getWidth(null),im.getHeight(null),BufferedImage.TYPE_INT_RGB);
            Graphics bg = bi.getGraphics();
            bg.drawImage(im, 0, 0, null);
            bg.dispose();
            return bi;
        public String resize(String url, String id)
            // Try and load image -------------------------------------------------
            this.url = "hobbes.jpg";
            this.id = "1";
            try
                image = ImageIO.read(new File(url));
            catch(IOException e)
                e.printStackTrace();
                throw new RuntimeException("Error loading file: " + url);
            //image = Toolkit.getDefaultToolkit().getImage(url);
            //BufferedImage temp = convert(image);
            int temp1 = image.getWidth(null);
            int temp2 = image.getHeight(null);
            return ("Width = "+temp1+"\tHeight = "+temp2);
    ...

    Your code loaded an image okay. It could be that the image you are trying to load has
    corrupted data. Using the 'getResource' method simplifies the process of making up urls.
    The Swing tutorial page "How to Use ImageIcons" has a discussion on its use. If you use
    the Toolkit 'getImage' methods be sure to use a MediaTracker to load the image since these
    methods return immediately. The MediaTracker api has demo code.
    import com.sun.image.codec.jpeg.*;
    import javax.imageio.*;
    import java.awt.image.*;
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    import javax.swing.ImageIcon;
    public class ImageLoading
        public BufferedImage convert(Image im)
            BufferedImage bi = new BufferedImage(im.getWidth(null),
                                                 im.getHeight(null),
                                                 BufferedImage.TYPE_INT_RGB);
            Graphics bg = bi.getGraphics();
            bg.drawImage(im, 0, 0, null);
            bg.dispose();
            return bi;
        public String resize(String path, String id)
            BufferedImage image = null;
            try
                URL url = getClass().getResource(path);
                image = ImageIO.read(url);
            catch(MalformedURLException mue)
                System.err.println("mue for : " + path + " = " + mue.getMessage());
            catch(IOException e)
                e.printStackTrace();
                throw new RuntimeException("Error loading file: " + path);
            int imageWidth  = image.getWidth(null);
            int imageHeight = image.getHeight(null);
            BufferedImage bi = convert(image);
            int biWidth  = bi.getWidth();
            int biHeight = bi.getHeight();
            return ("imageWidth = " + imageWidth + "\timageHeight = " + imageHeight + "\n" +
                    "biWidth    = " + biWidth +    "\tbiHeight    = " + biHeight);
        public static void main(String[] args)
            ImageLoading test = new ImageLoading();
            String s = test.resize("images/cougar.jpg", "1");
            System.out.println(s);
    }

  • Help with a simple loading problem

    I have tried every way to load a very simple text file into a
    Flash document and display it in a textField. Works fine on my
    machine, when I upload it to the hosting server (same
    configuration, same everything) stops working. Please can someone
    even tell me what to look at. Out of ideas.
    Thanks
    Dave

    Dave,
    What actionscript are you using to load the text? It's
    probably one of two
    things:
    1- It could just be an error in the path to the text. For
    example if your
    action script is pointing to text in a "text" folder but the
    text file on
    the server is not in that folder
    2- When online your LoadVar function will take a little
    longer than it will
    locally. If you move on from the loadVar frame before the
    vars are loaded,
    the data from your text file will never make it into your
    Flash. You can
    use onLoad to make sure the vars are loaded before moving on:
    stop();
    myLoadVar = new LoadVars ();
    myLoadVar.load("yourtextfile.txt")
    myLoadVar.onLoad = function (success){
    if (success == true) {
    gotoAndPlay("where ever you want it to go");
    Let me know if that solves your problem
    Jesse
    > I have tried every way to load a very simple text file
    into a Flash
    > document
    > and display it in a textField. Works fine on my machine,
    when I upload
    > it to
    > the hosting server (same configuration, same everything)
    stops
    > working. Please
    > can someone even tell me what to look at. Out of ideas.
    > Thanks
    > Dave

  • Easy pre-load problem

    Hi all,
    Photographer's web site.
    I'm using the attached code on a button to load pictures from
    a local folder.
    The pictures were exported from Adobe Image Ready as .swf
    files and it all works fine.
    Only problem is that some are BIG in terms of file size and
    because I've been given "finished"
    .swf files I can't put a pre-loader into the .swf that's to
    be loaded.
    Can I make some kind of reusable movie clip which resides in
    the main (level 0) movie which runs a pre-loader
    so that users will see a "loading" animation while these big
    files load ?
    Just to make it clear:
    index.swf is a very basic movie with "next" and "previous"
    buttons running the attached code to load the swf files which have
    been supplied to me. The swf files which are loaded by this code
    have been supplied to me and I can't edit them. I need a "loading"
    animation/script which will sit in the index.swf to let users know
    a new picture is loading.
    Clear as mud ?
    All and any help much appreciated.
    Best wishes
    Tony

    your moviecliploader has an onLoadProgress listener method
    that you can use to animate your preloader.

  • Will a new computer fix the problem?

    I currently have a Windows XP system from appx 2004 with PSE 3.0 on it. PSE 3.0 is no longer responding when I try to open the browser or editor or anything! the computer seems to be having other issues as well so I think its time to upgrade to a newer computer. When I last backed up my photos (44,000+) to an external drive, the PSE 3.0 was working fine.    If I get a new computer and install PSE 3.0 on the new computer and use my backup to load all my photos to the new computer..   will the PSE 3.0 load with all of the original tags from the photo browser?

    I have never performed a backup with video files, as I don't have any.
    Nevertheless, based on the way the PSE Organizer works, I am relatively certain that the tags for videos are included in the backup (as well as the tags for photos). I'm also relatively certain that both photos and videos are included in the backup. (Note: I am referring to backups made via the Organizer command File->Backup Catalog)
    But the only way to know for sure is to cross your fingers and try it.
    Best to start a new thread since your question has nothing to do with the original topic (will a new computer fix the problem)

  • When the message arrives, the message tone sound that many times. How this problem can be solved? I installed the new version, but the problem is not resolved, the future is to be taken into account in the new version of this?

    When the message arrives, the message tone sound that many times. How this problem can be solved? I installed the new version, but the problem is not resolved, the future is to be taken into account in the new version of this?

    I'm not sure I understand the question, is the message tone going more then once?
    Turn off repeat message alert here:
    settings > notifications > messages > repeat alert > never
    Some people have found this does not stop the repeat miessage tone,
    if you are one of those then I suggest you contact Apple:
    http://www.apple.com/feedback/iphone.html
    They may not respond, but hopefully will fix in uodate if enough people complain.

  • HT1151 I have my iTunes library on an external hard drive that was connected to a PC, now I want to connect to my new iMac and load the iTunes library onto that computer, can I do that?

    I have my iTunes library on an external hard drive that was connected to a PC, now I would like to connect that hard drive my new iMac and load the iTunes library onto that computer, can I do that?  Looking for a solution that keeps me from re-ripping my CD collection.

    Here are the official Apple Support instructions:
    http://support.apple.com/kb/HT4527
    Ciao.

Maybe you are looking for

  • ISE 1.2 Error Messages

    Hi forum, We have an ISE deployment that we are lab testing. This is running v1.2.0.899 with Patch 2 installed. We have an authC policy configured for domain-joined computers for 802.1x and domain credentials:      Condition: Wired_802.1X      Allow

  • Where is delete button on mail notifications in Mavericks?

    I've upgraded my late 2008 Macbook to Mavericks.  I was excited to be able to delete emails directly from the pop up notifications.  Instead the notifications are worse.  Before I could open the email or close the notification.  Now the two choices a

  • BW Retail - Material variants

    Hello All, does anyone knows a business content extractor for SAP retail that allows the extraction of material variants characteristics (color, size) in a similar way as the RIS is updated. I know that these characteristics can be retrieved using a

  • Portal upgrade

    Guys, We have a windows NW04 Portal landscape and are planning to upgrade it. In order to build a sandbox landscape which we shall be used to run a test upgrade, we took a image of the development portal backend, frontend, ITS server and R/3. Once th

  • HELP PLEASE!!! 2nd iPod in 3 days to die....

    Someone, anyone, please help!!! Saturday while putting music on my iPod - it died - it automatically went into disk mode - it would not restore or anything, so I took it back to Walmart and exchanged it. Well, here I am with the new one, and it's don