Java.lang.ClassFormatException : Bad Magic number Excpetion

Hi all
I am trying to hit an applet through an iplanet web connector.
The scenario is machine 1 is the web server (iplanet 4.1) . machine 2 is app
server (iplanet 6.0 sp2)
The web connector is configured for handling all the requests to machine2
that refer to the app server.
when i place my jar (containing the applet classes) on the app server and
then try to open it through a jsp on the app server itself , it
throws a
java.lang.ClassFormatError: com/niit/cliks/te/web/TestingEngine (Bad magic
number)
exception.
But if i try with the same jar file on the web server (the same as running
the app server( - i.e. machine 2 ) the jar works just fine.
can anybody put some light on the issue. I am in a very tight deadline
situation.
thanks and regards
raghav..
PS - the applet is not signed and i don't wish (and plan) to sign it.

Dear friend
But the same class file and jars are working (without any change in the jar) when i put them on the web server which is also on the same machine running the app server.
I may suspect my compiled files but i don't.
i have compiled them at least ten times from the moment i started getting the error.
any other guesses....
thanks for your consideration
regards..
raghav..

Similar Messages

  • Java error message - Bad version number in .class file

    I get the  error noted below in Safari, Firefox, and Chrome when I try to view java containing web pages.
    Specifically this page: http://aviationweather.gov/adds/tafs/java/
    My Java Preferences are as follows
    My OS is 10.5.8
    Thanks!
    Java Plug-in 1.6.0_26
    Using JRE version 1.5.0_30-b03-389-9M3425 Java HotSpot(TM) Client VM
    User home directory = /Users/ernest
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
        at java.lang.reflect.Method.invoke(Method.java:592)
        at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Plugin2ClassLoader.java :1014)
        at sun.plugin2.applet.Plugin2ClassLoader.access$100(Plugin2ClassLoader.java:69)
        at sun.plugin2.applet.Plugin2ClassLoader$2.run(Plugin2ClassLoader.java:991)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Plugin2ClassLoader.java:9 55)
        at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:134)
        at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:250)
        at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:180)
        at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:161)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:675)
        at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3046)
        at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.ja va:1498)
        at java.lang.Thread.run(Thread.java:655)
    Exception: java.lang.UnsupportedClassVersionError: Bad version number in .class file

    Hi, thank you for the reply.  However, java is definitely enabled on my computer, on all my browsers.  In fact, if I go to the SUN website and run the java test, I get that all is OK.
    I think it may have something to do with the .class (maybe in .jar-file) compiled with a higher version of java than the virtual machine trying to run it. 
    The example I found (google search) is .class-file that is compiled with JDK 6 and I am trying to run it with 1.4 JVM.
    There is some software error going on somewhere... but I do not know enough to fix it.
    Many thanks for all your help

  • Java.lang.ClassFormatError: HTML (Bad magic number)

    hi,
    i have quite a strange problem:
    when my applet tries to parse an XML file with SAX (no DTD-validation) i got the following error:
    java.lang.ClassFormatError: <HTML> (Bad magic number)
    Well i had some problems before with the ClassFormatError but they were because some class-files were corrupt. They were easy to fix because the defecitve class-file was written next to java.lang.ClassFormatError. This time i got the <HTML> expression next to the error. what does this mean?
    thnx in advance!
    marc

    Bad magic Number. means the first 4 bytes did not equals CAFEBABE (0xCAFEBABE) But why do you see <HTML> after that is beyound me. Can you locate which class is foul and replace it?

  • Java.lang.ClassFormatError: AppletSame (Bad magic number)??****

    I run a Japplet(AppletSame.class) ,found this Exception:
    java.lang.ClassFormatError: AppletSame (Bad magic number)??****
    what does it mean?how can i solve it?

    hi,
    the problem comes if there is some kind of problem with the class file and therefore the JVM cannot read the class file, try recompiling the program..
    cheerz
    ynkrish

  • Java.lang.ClassFormatError: Bad major version number

    Hi friends,
    I am using JWS2.0(trial version). I have uploaded class files into servlet (and respective packages), every thing was working fine. one fine day i started getting the 404 - file not found error(JWS not yet expired). I uninstalled the jws, j2sdk1.4.0, jre1.4.0 but with no result.
    I even formated the system and loaded all again. But still i am getting the same problem.
    The servlet is the simple HelloWorld servlet.
    Through the SunExample its working fine. But the uploaded servlet is not getting recognised.
    Here is the ErrorLog
    [Tue Feb 22 17:26:29 GMT+05:30 2005] ClassLoaderFactory Error: Can not find Class : Hello [ ClassNotFoundException ]
    [Tue Feb 22 17:26:31 GMT+05:30 2005] ClassLoaderError: (com.sun.server.loader.JarClassLoader@17d67e:\servlets) ERROR: Unable to load class local class Hello
    [Tue Feb 22 17:26:31 GMT+05:30 2005] java.lang.ClassFormatError: Bad major version number
    at java.lang.ClassLoader.defineClass(ClassLoader.java:219)
    at com.sun.server.loader.ServletClassLoader.callDefineClass(ServletClassLoader.jav a:726)
    at com.sun.server.loader.ServletClassLoader.checkAndDefineClass(ServletClassLoader .java:620)
    at com.sun.server.loader.DirectoryClassLoader.getClassFromLocalDir(Compiled Code)
    at com.sun.

    Try re-compiling the Servlet. Make sure that the JDK version used to recompile is <= the version used to run the server (if you are using a higher jdk to compile the servlet, maybe Java 5.x, then you are to run, maybe Java 1.4.x, then use the -target option of javac to target the lower release...)

  • JVM issue with applet - Duplicate Key in Parameter Table - Bad Magic Number

    Hey, I have Googled this one to death and have seen a few vague references to this problem, but nothing I can relate back as solution.
    I wonder if I need to tell the customer to reinstall the OS and, ultimately, the JRE. I'm just looking for a little guidance on what any of you may think. Am I missing a setting or something?
    The user is trying to download an applet with IE with 1.3.1_16 and Firefox 1.07 with the Java Embeded Plug-in.
    Even though JRE 1.3.1_16, 1.4.2_09 and 1.5 are all installed and Firefox has the JEP also installed, Firefox still wants to use 1.3.1_16 as does IE. I'm guessing that the JEP didn't work.
    They can't use Safari which does seem to be using 1.4.2_09 because their RSA ID won't authenticate through it.
    On my machine, when I run with the same OS,browsers, and Java 2 plug-ins, I can successfully load the applet.
    This is the error that the user gets in the java console is:
    Duplicate key in parameter table: code using the htmlAttribute.
    first: com.ibm.eNetwork.HOD.HostOnDemand
    second: com.ibm.eNetwork.HOD.HostOnDemand.class
    java.lang.ClassFormatError: com/ibm/eNetwork/HOD/HostOnDemand (Bad magic number) at java.lang.ClassLoader.defineClass0(NativeMethod)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:488)...
    Would you reinstall the OS and Java? or look at another setting? or look at the JEP installation again?
    Thank you.

    Without reading the full post (sorry for that) my guess is that the applet needed to be fetched through a
    proxy, the proxy corrupts the applet because it's signed (finjan is one that does that).
    The reason why a proxy would do so is because the default settings of sun jre will ask the user the
    "do you trust" question to the user which could result in the user loading an applet that is allowed to do
    anything the programmer wants (4us, spyware, nasty stuff).
    Try to do the following:
    1. create a html file locally with the following content:
    rightclick and save target as
    2. open the page, right click the link and save the file
    3. apen the file with an unzip programm (winzip) and check if the content has changed.
    4. If the content has changed than the proxy might have done this, contact the system administrator
    It might allso have been done by a firewall installed locally.

  • [b] bad magic number [/b]

    hallo,
    first sorry for my bad english but i'm from austria.
    i wrote a html-page in which a applet is called using object tag. if i click on this page open it with ie there is no problem, but when i return this page with an servlet i get the following stacktrace:
    java.lang.ClassFormatError: spider/view/Graph (Bad magic number)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source) i'm greatfully for any help

    the client and the server are using jdk1.4 exactly the same cause I reinstalled it on both machines.
    Also I recompiled it several times but it doesn't work anyway.
    i get the stacktrace on client side. and my html page which the servlet returns is the following:
    <html>
    <head>
    <title>Spider V 1.0</title>
    </head>
    <body style="margin:0px;">
    <center>
    <SCRIPT LANGUAGE="JavaScript"><!--
    var info = navigator.userAgent; var ns = false; var _ns6 = false;
    var ie = (info.indexOf("MSIE") > 0 && info.indexOf("Win") > 0 && info.indexOf("Windows 3.1") < 0);
    //--></SCRIPT>
    <COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
    var ns = (navigator.appName.indexOf("Netscape") >= 0 && ((info.indexOf("Win") > 0 && info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0)));
    var ns6 = ((ns == true) && (_info.indexOf("Mozilla/5") >= 0));
    //--></SCRIPT></COMMENT>
    <SCRIPT LANGUAGE="JavaScript"><!--
    if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 100% HEIGHT = 100%><NOEMBED><XMP>');
    else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet" CODE = "spider.view.Graph" ARCHIVE = "spider.jar" WIDTH = 100% HEIGHT = 100% browser = "yes" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
    //--></SCRIPT>
    <APPLET CODE = "spider.view.Graph" ARCHIVE = "spider.jar" WIDTH = 100% HEIGHT = 100%></XMP>
    <PARAM NAME = CODE VALUE = "spider.view.Graph" >
    <PARAM NAME = ARCHIVE VALUE = "spider.jar" >
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">
    <PARAM NAME="scriptable" VALUE="false">
    <PARAM NAME = "browser" VALUE ="yes">
    <PARAM NAME=OID VALUE=339>
    <PARAM NAME=TYPE VALUE=Case>
    <PARAM NAME=AVW_USER VALUE=Gernot>
    <PARAM NAME=AVW_PASSWORD VALUE=Manzel>
    </APPLET>
    </NOEMBED></EMBED></OBJECT>
    </body>
    </html>

  • T6340 cannot boot disk - Bad magic number in disk label

    Hi,
    I have a shiny new T6340 that I am just setting up.
    When I get through the CMM to the SP and onto the EEPROM,
    I then try to start the boot process:
    {0} ok boot disk1
    Sun Blade T6340 Server Module, No Keyboard
    Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
    OpenBoot 4.30.4, 130848 MB memory available, Serial #76313344.
    Ethernet address 0:14:4f:8c:73:0, Host ID: 848c7300.
    Boot device: /pci@500/pci@0/pci@9/@0/disk@1  File and args:
    Bad magic number in disk label
    Can't open disk label package
    ERROR: boot-read fail
    Evaluating:
    Can't open boot device
    {0} ok show-disks
    a) /pci@500/pci@0/pci@9/LSILogic,sas@0/disk
    b) /pci@500/pci@0/pci@2/pci@0/usb@0,2/storage@5/disk
    c) /pci@500/pci@0/pci@2/pci@0/usb@0,2/storage@1/disk
    q) NO SELECTION
    Enter Selection, q to quit: q
    {0} ok boot /pci@500/pci@0/pci@9/LSILogic,sas@0/disk
    Boot device: /pci@500/pci@0/pci@9/LSILogic,sas@0/disk  File and args:
    Bad magic number in disk label
    Can't open disk label package
    ERROR: boot-read fail
    Can't open boot device
    {0} ok This is a brand new B6000 system and has not been booted before.
    Please tell me what I need to do to enable the disks, so I can do the next bit!
    rachel

    @rachel,
    In your original post you showed a screen capture of what you tried.
    First you typed "boot disk1". ( Why disk1? Why not disk0?)
    When that didn't seem to work, you displayed the disks recognized by the system at OpenBoot.
    The first of those disks was a device path of
    /pci@500/pci@0/pci@9/LSILogic,sas@0/disk{code}
    and so you attempted to boot from that but omitted whatever slice might be the boot slice of a factory preinstalled OS.    For example...  
    {code:java}
    boot /pci@500/pci@0/pci@9/LSILogic,sas@0/disk@0,0{code}
    (just guessing at what could be that bootable slice).
    What happens if you simply type "*boot*" when you are at OBP?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Bad magic number in super-block while trying to open /dev/sda2

    hello,
    So I've a linux partition, and then I wanted to install a Windows copy. I've only 1 HDD with differents partition into it:
    sda5 (swap)
    sda6 /user
    sda7/var
    sda8 / (which contain the boot and root of course)
    sda3 /home
    sda2 NTFS (windows xp)
    So, as I had linux installed before windows, I had to make my sda2 NTFS (87) under my cfdisk. Then, I went to install windows, everything worked fine, windows booted with his boot system, but I had to restore grub with my archlinux live cd:
    grub> find /boot/grub/stage1
    grub>root (hd0,7)
    grub>setup (hd0)
    everything worked successfully, my grub loaded till while booting archlinux I got this error:
    couldn't find ext2 superblock, trying backup blocks...
    e2fsck: Bad magic number in super-block while trying to open /dev/sda2
    The superblock could not be read or does not describe a correct ext2
    filesystem. If the device is valid and it really contains an ext2
    filesystem (and not swap or ufs or something else), then the superblock
    is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
    What I tried is to run the e2fsck -b 8193 /dev/sda2 but right after that, I thought about it, this isn't linux partition so of course, the superblock isn't the same as they are ntfs type from widnows?
    I've read on some forum but unfortunately didn't solve my problem, if anyone has any suggestion before I format the NTFS partition, I'd really appreciate it.
    best regards, maz

    what I think it happened, is that after installing windows your partitions numbers got twisted a bit. What you have to do is to edit /etc/fstab, and check out your linux and swap partitions mounting entries, I believe you just have to change the number of /dev/sda[number] coresponding to your linux partition in fstab
    If you can't solve it, post the output of
    fdisk -l
    and
    cat /etc/fstab
    Last edited by I'mGeorge (2011-07-21 20:53:31)

  • Bad magic number

    I have an applet that i am trying to load in a JSP
    <applet name="MyTestApplet" code="mypackage.MyTestApplet.class" >
    </applet>
    mypackage/MyTestApplet.class is under the approot/pages directory and the jsp is also in the same directory.
    whenever the jsp is called and applet does not get inited and the error i see is a ClassFormatError: Bad magic number
    Please help.. this is extremely urgent.
    Thanks in advance for any input anyone may have.
    The appserver i am using is SunONE

    First the <applet tag is depreciated, you should use <object instead (w3c has depreciated applet for quite
    some time now).
    When I see the tag you don't use a jar package (archive is missing) so let's pretend the url to your page is
    http://mysite/mypage.jsp
    the mypage.jsp contains the applet so the url to the applet is:
    http://mysite/mypackage/MyTestApplet.class
    can you download the file using a browser?
    you can do this by saving the following line in a html file and right click it then sava target
    right click and save target as
    After downloading is the file the same as the file on the web server?
    The reason I ask this is because I got the bad magic number when a jar was loaded through a proxy.
    The proxy did something with the jar file making it corrupt. I think your problem has something to do with
    the way your web server is serving the applet or (proxy) something between the client and the server.

  • Java.lang.IllegalStateException: Exceeded maximum number of waiting threads

    Hi all,
    I use coherence3.3.1,coherence work as hibernate L2 cache and meet following problem,could you help me check the problem?thanks.
    java.lang.IllegalStateException: Exceeded maximum number of waiting threads (Status=2)
         at com.tangosol.net.cache.OverflowMap$Status.waitForAvailable(OverflowMap.java:4029)
         at com.tangosol.net.cache.OverflowMap.prepareStatus(OverflowMap.java:2152)
         at com.tangosol.net.cache.OverflowMap.beginKeyProcess(OverflowMap.java:1873)
         at com.tangosol.net.cache.OverflowMap.getInternal(OverflowMap.java:580)
         at com.tangosol.net.cache.OverflowMap.get(OverflowMap.java:330)
         at com.tangosol.coherence.component.util.CacheHandler.getLease(CacheHandler.CDB:3)
         at com.tangosol.coherence.component.util.CacheHandler.getCachedResource(CacheHandler.CDB:10)
         at com.tangosol.coherence.component.util.CacheHandler.get(CacheHandler.CDB:1)
         at com.tangosol.coherence.component.util.SafeNamedCache.get(SafeNamedCache.CDB:1)
         at com.tangosol.coherence.hibernate.CoherenceCache.get(CoherenceCache.java:65)
         at org.hibernate.cache.StandardQueryCache.get(StandardQueryCache.java:105)
         at org.hibernate.loader.Loader.getResultFromQueryCache(Loader.java:2152)
         at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2117)
         at org.hibernate.loader.Loader.list(Loader.java:2087)
         at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:289)
         at org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1695)
         at org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:142)
         at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:150)
         at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:804)
    j

    Hi,
    Can you please provide the relevant coherence config files?
    thanks,
    -Rob

  • ALERT: java/lang/ClassFormatError: Bad stack map.

    Hello friends.
    I need help. SOS.
    Where is wrong in this code?
    Problem is in comparision.
    Comenting this lines, all are ok.
            if(time1==time2)
                System.out.println("Equal");
            else
                System.out.println("Different");C�digo del Midlet:
    package borrame.pruebas;
    import java.util.Date;
    import javax.microedition.lcdui.Command;
    import javax.microedition.lcdui.CommandListener;
    import javax.microedition.lcdui.Display;
    import javax.microedition.lcdui.Displayable;
    import javax.microedition.lcdui.Form;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.MIDletStateChangeException;
    public class Prueba extends MIDlet implements CommandListener {
        Display display;
        Form mainForm;
        // Comandos para salir y volver a la pantalla principal.
        Command cmdSalir;
        public Prueba() {
            super();
            mainForm = new Form ("HelloMidp");
            cmdSalir = new Command("Salir", Command.EXIT,1);
            mainForm.addCommand(cmdSalir);
            mainForm.setCommandListener(this);
        protected void startApp() throws MIDletStateChangeException {
            display = Display.getDisplay(this);
            display.setCurrent (mainForm);
            long time1 = new Date().getTime();
            long time2 = new Date().getTime() +100;
            System.out.println("time1: " + time1);
            System.out.println("time2: " + time2);
            System.out.println("time1 + time2 =" + (time1 + time2));
            if(time1==time2)
                System.out.println("Equal");
            else
                System.out.println("Different");
        protected void pauseApp() {
            // TODO Auto-generated method stub
        protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
            // TODO Auto-generated method stub
        public void commandAction(Command c, Displayable d) {
            if (c == cmdSalir) { // Selecciono salir de la aplicacion
                try {
                    destroyApp(false);
                } catch (MIDletStateChangeException e) {
                    e.printStackTrace();
                notifyDestroyed();
    }Output console:
    Warning: Cannot convert string "-b&h-lucida-medium-r-normal-sans-*-140-*-*-p-*-iso8859-1" to type FontStruct
    Running with storage root DefaultColorPhone
    ALERT: java/lang/ClassFormatError: Bad stack map.
    Method............: b7d29990 'com/sun/midp/midlet/MIDletState.createMIDlet (static)'
    Stack Chunk.......: b783d300
    Frame Pointer.....: b783d3a4
    Current IP........: b7da5669 = b7da565b + offset 14
    Previous Frame....: b783d36c
    Previous IP.......: b7d87f44 (offset 52)
    Frame size........: 7 (1 arguments, 6 local variables)
    Argument[0].......: b783cad0
    Local[1]..........: b78b35c8
    Local[2]..........: b7d87f41
    Local[3]..........: b783cc38
    Local[4]..........: b7d29788
    Local[5]..........: b78b355c
    Local[6]..........: 0
    Operand[1]........: b783cad0
    Method............: b7d16390 'com/sun/midp/midlet/Scheduler.schedule (virtual)'
    Stack Chunk.......: b783d300
    Frame Pointer.....: b783d36c
    Current IP........: b7d87f44 = b7d87f10 + offset 52
    Previous Frame....: b783d338
    Previous IP.......: b7d92b05 (offset 28)
    Frame size........: 7 (2 arguments, 5 local variables)
    Argument[0].......: b783cd14
    Argument[1].......: b783c460
    Local[2]..........: b78b20c4
    Local[3]..........: b78b3594
    Local[4]..........: b7d92b01
    Local[5]..........: b78b35a8
    Local[6]..........: b7d162b0
    Operand[1]........: b783cd14
    Method............: b7d1e084 'com/sun/midp/main/Main.runLocalClass (static)'
    Stack Chunk.......: b783d300
    Frame Pointer.....: b783d338
    Current IP........: b7d92b05 = b7d92ae9 + offset 28
    Previous Frame....: b783d314
    Previous IP.......: b7d9257c (offset 116)
    Frame size........: 3 (1 arguments, 2 local variables)
    Argument[0].......: b783d1bc
    Local[1]..........: b783c460
    Local[2]..........: b78b3570
    Method............: b7d1dfe4 'com/sun/midp/main/Main.main (static)'
    Stack Chunk.......: b783d300
    Frame Pointer.....: b783d314
    Current IP........: b7d9257c = b7d92508 + offset 116
    Previous Frame....: 0
    Previous IP.......: 1
    Frame size........: 3 (1 arguments, 2 local variables)
    Argument[0].......: b783d5ec
    Local[1]..........: b783d1bc
    Local[2]..........: b783cb24
    VM status:
    Instruction pointer.: b7da5669 (offset within invoking method: 14)
    Next instruction....: 0x4c
    Frame pointer.......: b783d3a4
    Local pointer.......: b783d388
    Stack size..........: 128; sp: b783d3bc; ranges: b783d308-b783d508;
    Contents of the current stack frame:
        b783d388: b783cad0 (lp)
        b783d38c: b78b35c8
        b783d390: b7d87f41
        b783d394: b783cc38
        b783d398: b7d29788
        b783d39c: b78b355c
        b783d3a0: 0
        b783d3a4: b783d36c (fp)
        b783d3a8: b7d87f44
        b783d3ac: b783d384
        b783d3b0: b7d29990
        b783d3b4: b783d300
        b783d3b8: 0 (end of frame)
        b783d3bc: b783cad0 (sp)
    Execution stack contains 184 items:
    b783d5ec
    b783d1bc
    b783cb24
    0
    1
    b78b3560
    b7d1dfe4
    b783d300
    0
    b783d1bc
    b783c460
    b78b3570
    b783d314
    b7d9257c
    b783d328
    b7d1e084
    b783d300
    0
    b783cd14
    b783c460
    b78b20c4
    b78b3594
    b7d92b01
    b78b35a8
    b7d162b0
    b783d338
    b7d92b05
    b783d34c
    b7d16390
    b783d300
    0
    b783cd14
    b783cad0
    b78b35c8
    b7d87f41
    b783cc38
    b7d29788
    b78b355c
    0
    b783d36c
    b7d87f44
    b783d384
    b7d29990
    b783d300
    0
    b783cad0
    Execution completed.
    717374 bytecodes executed
    5 thread switches
    742 classes in the system (including system classes)
    3720 dynamic objects allocated (102340 bytes)
    2 garbage collections (88196 bytes collected)
    Execution completed.
    717374 bytecodes executed
    5 thread switches
    742 classes in the system (including system classes)
    3720 dynamic objects allocated (102340 bytes)
    2 garbage collections (88196 bytes collected)

    My enviroment:
    Linux Gentoo.
    Sun JDK 1.4.2.10
    eclipse 3.2 WTP 1.5
    eclipseme 1.5.5
    Midlet config:
    MIDlet-Version: 1.0
    MicroEdition-Configuration: CLDC-1.0
    MicroEdition-Profile: MIDP-1.0
    WTK 2.2
    In last test, i'm using ktoolbar directly to build and execute midlet and all go ok.
    So, My code is not problem.
    I suppose that eclipseme corrupt my classes in build process.
    SOLUTION:
    My radical solution. I use eclipse without eclipseme, and i use ktoolbar to build, run, package, etc...
    Thank's

  • Sun Ultra 25 - Bad magic number in disk label

    I have a Sun Ultra 25 SPARC that is booting fine to it's 80GB SATA drive. Solaris 10, OpenBoot 4.22.19.
    Here's what I did:
    I installed a 2TB Western Digital SATA drive into the HDD1 slot.
    I formatted the disk in the HDD1 slot via the format command, labeled the disk, and divided it into partitions.
    I then used newfs to build the ufs on all partitions.
    I mirrored the disk in HDD0 to the disk in HDD1 using ufsdump for all partitions. The data is accessible and looks ok.
    After this was done I did an installboot to /dev/rdsk/c1t1d0s0 (the / partition of the HDD1 slot).
    I then did a fsck on every partition to verify that they are okay.
    I then took the hard drive in HDD1 and put it in the HDD0 slot, now wanting to boot off that disk.
    At the reboot:
    Bad magic number in disk label
    Can't open disk label package
    If I do a probe-scsi:
    MPT Version 1.05, Firmware Version 1.08.03.00
    Target 0
    Unit 0 Disk ATA WDC WD20EADS-00R0A01 3907029168 Bocks, 2000 GB SATA device PhyNum 0
    As far as I can tell disk0 is the correct devalias which is:
    /pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/disk@0,0
    I just don't understand how the fsck is okay, but the boot give bad magic number in disk label?
    The 80GB drive in HDD slot 0 works fine with the boot disk0 command, all I'm doing is swapping a larger disk with the same data for the smaller disk.

    if it is like any other Sun product, it needs to go through the format command and get a volname.... it is just a label, but it needs to be done.
    haroldkarl

  • OCFS2 bad magic number

    Hello.
    Do anybody know about what doing with this error:
    mount /dev/sde /raid/4
    mount.ocfs2: Bad magic number in inode while trying to determine heartbeat information
    fsck.ocfs2 /dev/sde
    fsck.ocfs2 1.6.4
    fsck.ocfs2: Bad magic number in inode while initializing the DLM
    sudo debugfs.ocfs2 /dev/sde
    debugfs.ocfs2 1.6.4
    debugfs: ls //
    ls: Bad magic number in inode while checking directory at block 66
    debugfs: stats
      Revision: 0.90
      Mount Count: 0   Max Mount Count: 20
      State: 0   Errors: 0
      Check Interval: 0   Last Check: Sat Oct 18 06:30:52 2014
      Creator OS: 0
      Feature Compat: 3 backup-super strict-journal-super
      Feature Incompat: 592 sparse inline-data xattr
      Tunefs Incomplete: 0
      Feature RO compat: 1 unwritten
      Root Blknum: 65   System Dir Blknum: 66
      First Cluster Group Blknum: 32
      Block Size Bits: 12   Cluster Size Bits: 17
      Max Node Slots: 16
      Extended Attributes Inline Size: 256
      Label: mediadisk4
      UUID: 1126B3D209AA4BE088260B2A590AB995
      Hash: 2997730071 (0xb2adbb17)
      DX Seed[0]: 0x00000000
      DX Seed[1]: 0x00000000
      DX Seed[2]: 0x00000000
      Cluster stack: classic o2cb
      Inode: 2   Mode: 00   Generation: 2716855348 (0xa1efec34)
      FS Generation: 2716855348 (0xa1efec34)
      CRC32: 00000000   ECC: 0000
      Type: Unknown   Attr: 0x0   Flags: Valid System Superblock
      Dynamic Features: (0x0)
      User: 0 (root)   Group: 0 (root)   Size: 0
      Links: 0   Clusters: 213645733
      ctime: 0x50bf9210 -- Wed Dec  5 22:27:28 2012
      atime: 0x0 -- Thu Jan  1 03:00:00 1970
      mtime: 0x50bf9210 -- Wed Dec  5 22:27:28 2012
      dtime: 0x0 -- Thu Jan  1 03:00:00 1970
      ctime_nsec: 0x00000000 -- 0
      atime_nsec: 0x00000000 -- 0
      mtime_nsec: 0x00000000 -- 0
      Refcount Block: 0
      Last Extblk: 0   Orphan Slot: 0
      Sub Alloc Slot: Global   Sub Alloc Bit: 65535
    Thanks for any help.

    This looks to be filesystem corruption.  The reason the fsck's don't find anything is they are really _not_ doing any checking.  In the filesystem is an unmounted-cleanly flag.  This flag is set when the umount(1) is done.  If the system were to crash with the filesystem still mounted, this unmounted-cleanly flag would not be set, so the system would consider the filesystem to need checking: no unmounted-cleanly flag, fsck has work to do; unmounted-cleanly flag set means fsck does nothing.
    Be sure the filesystem is unmounted all around the cluster before attempting to repair the filesystem.
    So do this:
        # fsck.ocfs2 -f /path/to/device/partition
    The "-f" switch forces fsck.ocfs2 to ignore the state of the "unounted-cleanly" flag and actually perform its tests.
    Does this repair the problem?

  • Bad Magic Number in Disk Label & DiskSuite

    Envrionment:
    E450
    Solaris 8
    DiskSuite 4.2.1
    16 disks
    Because of a power failure, after reboot one of the disks has bad magic number in its disk label. The slice was in a mirror. DiskSuite has hot spares and one of them took over the failed slice. I am trying to figure out how to get it back to where it was.
    I think I should use 'format' to recover the disk label from the backup label. However, once the label is recovered, how do I make it stop using the hotspare and have the failed slice join back to the mirror?
    Sorry if this is basic question, I am relatively new to Sun/Solaris and I just took over the E450.
    Thanks,

    Envrionment:
    E450
    Solaris 8
    DiskSuite 4.2.1
    16 disks
    Because of a power failure, after reboot one of the
    disks has bad magic number in its disk label. The
    slice was in a mirror. DiskSuite has hot spares and
    one of them took over the failed slice. I am trying to
    figure out how to get it back to where it was.
    I think I should use 'format' to recover the disk
    label from the backup label. However, once the label
    is recovered, how do I make it stop using the hotspare
    and have the failed slice join back to the mirror?
    Sorry if this is basic question, I am relatively new
    to Sun/Solaris and I just took over the E450.
    Thanks,Since the host spare took over then you're free to repair/replace the bad drive. In this case you could check the drive using format and partition to view the partitions. If the label is bad then I would suspect the drive is still good and a simple format>label and save command would repair the label. Then once this is done if all goes well then the system should rebuild the drive and the hot spare will not longer be used. The system should regonize the drive as a replacement and rebuild it then stop using the hot spare.
    Michael

Maybe you are looking for