Bad Magic Numbers (Any Java Guys Around)

Hi,
I am not sure if this a right place to post my Query, but since lot of OAS Questions have been ansewered Here I am Putting This here.
I have created a applet that runs fine when run from a AppletViewer But if i try to run it from the browser. It gives a ClassFormatError Bad Magic Number.
When i try to look at the Log of the Carridge It says fileNot FoundExcepition.
I do not understand why my servlet should throw that exception. The Cartridge is considering the <filename.jar> as a package.
I have given a Sample of bot my Java COnsole Output and The Log File.
My Console Output Follows
JAR cache enabled.
Opening [URL=http://csgcp435/omrsservlet/OmrsCltGeneral.jar]http://csgcp435/omrsservlet/OmrsCltGeneral.jar[/URL] no proxy
CacheHandler file name: C:\WINNT\Profiles\inN5012659\Temporary Internet Files\Content.IE5\8DYRC9UV\OmrsCltGeneral[1].html
Opening [URL=http://csgcp435/omrsservlet/OmrsLib.jar]http://csgcp435/omrsservlet/OmrsLib.jar[/URL] no proxy
CacheHandler file name: C:\WINNT\Profiles\inN5012659\Temporary Internet Files\Content.IE5\8DYRC9UV\OmrsLib[2].html
Opening [URL=http://csgcp435/omrsservlet/OmrsCltGeneral/EntryScreen.class]http://csgcp435/omrsservlet/OmrsCltGeneral/EntryScreen.class[/URL] no proxy
CacheHandler file name: C:\WINNT\Profiles\inN5012659\Temporary Internet Files\Content.IE5\8DYRC9UV\EntryScreen[1].html
java.lang.ClassFormatError: OmrsCltGeneral/EntryScreen (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)
[\code]
My Log File Out Put Follows.10-18-2000 16:21:03 257854 csgcp435 `JAVAWEB` 460 3 0x400fff `java.io.FileNotFoundException: E:\Omrs\OmrsCltGeneral\EntryScreen\class.class`
10-18-2000 16:21:03 257986 csgcp435 `JAVAWEB` 460 3 0x400fff `
`
10-18-2000 16:21:03 258282 csgcp435 `JAVAWEB` 460 3 0x400fff ` at java.lang.Throwable.<init>(Compiled Code)`
10-18-2000 16:21:03 258384 csgcp435 `JAVAWEB` 460 3 0x400fff `
`
10-18-2000 16:21:03 258642 csgcp435 `JAVAWEB` 460 3 0x400fff ` at java.io.FileInputStream.<init>(Compiled Code)`
10-18-2000 16:21:03 258752 csgcp435 `JAVAWEB` 460 3 0x400fff `
`
10-18-2000 16:21:03 258985 csgcp435 `JAVAWEB` 460 3 0x400fff ` at java.io.FileInputStream.<init>(Compiled Code)`
10-18-2000 16:21:03 259094 csgcp435 `JAVAWEB` 460 3 0x400fff `
`
10-18-2000 16:21:03 259219 csgcp435 `JAVAWEB` 460 3 0x400fff ` at oracle.owas.loader.WRBLoader.loadClassFromBytes(Compiled Code)`
10-18-2000 16:21:03 259318 csgcp435 `JAVAWEB` 460 3 0x400fff `
`
10-18-2000 16:21:03 259431 csgcp435 `JAVAWEB` 460 3 0x400fff ` at oracle.owas.loader.WRBLoader.loadClass(Compiled Code)`
10-18-2000 16:21:03 259523 csgcp435 `JAVAWEB` 460 3 0x400fff `
`
10-18-2000 16:21:03 259634 csgcp435 `JAVAWEB` 460 3 0x400fff ` at oracle.owas.loader.WRBLoader.ojsLoadClass(Compiled Code)`
10-18-2000 16:21:03 259728 csgcp435 `JAVAWEB` 460 3 0x400fff `
`
10-18-2000 16:21:03 259840 csgcp435 `JAVAWEB` 460 3 0x400fff ` at oracle.owas.loader.WRBLoaderManager.ojsLoadClass(Compiled Code)`
10-18-2000 16:21:03 259934 csgcp435 `JAVAWEB` 460 3 0x400fff `
`
10-18-2000 16:21:03 260129 csgcp435 `JAVAWEB` 460 3 0x400fff ` at oracle.OAS.servlet.servletrunner.getFromCache(Compiled Code)`
10-18-2000 16:21:03 260230 csgcp435 `JAVAWEB` 460 3 0x400fff `
`
10-18-2000 16:21:03 260380 csgcp435 `JAVAWEB` 460 3 0x400fff ` at oracle .OAS.servlet.servletrunner.exec(Compiled Code)`
10-18-2000 16:21:03 260479 csgcp435 `JAVAWEB` 460 3 0x400fff `
[\code]
Thanks in advance. Pls respond ASAP as my Implementation is Pending.
Regards,
Ganesh R

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Ganesh Raja ([email protected]):
Hi,
I am not sure if this a right place to post my Query, but since lot of OAS Questions have been ansewered Here I am Putting This here.
I have created a applet that runs fine when run from a AppletViewer But if i try to run it from the browser. It gives a ClassFormatError Bad Magic Number.
When i try to look at the Log of the Carridge It says fileNot FoundExcepition.
I do not understand why my servlet should throw that exception. The Cartridge is considering the <filename.jar> as a package.
I have given a Sample of bot my Java COnsole Output and The Log File.
My Console Output Follows
JAR cache enabled.
Opening [URL=http://csgcp435/omrsservlet/OmrsCltGeneral.jar]http://csgcp435/omrsservlet/OmrsCltGeneral.jar[/URL] no proxy
CacheHandler file name: C:\WINNT\Profiles\inN5012659\Temporary Internet Files\Content.IE5\8DYRC9UV\OmrsCltGeneral[1].html
Opening [URL=http://csgcp435/omrsservlet/OmrsLib.jar]http://csgcp435/omrsservlet/OmrsLib.jar[/URL] no proxy
CacheHandler file name: C:\WINNT\Profiles\inN5012659\Temporary Internet Files\Content.IE5\8DYRC9UV\OmrsLib[2].html
Opening [URL=http://csgcp435/omrsservlet/OmrsCltGeneral/EntryScreen.class]http://csgcp435/omrsservlet/OmrsCltGeneral/EntryScreen.class[/URL] no proxy
CacheHandler file name: C:\WINNT\Profiles\inN5012659\Temporary Internet Files\Content.IE5\8DYRC9UV\EntryScreen[1].html
java.lang.ClassFormatError: OmrsCltGeneral/EntryScreen (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)
[\code]
My Log File Out Put Follows.10-18-2000 16:21:03 257854 csgcp435 `JAVAWEB` 460 3 0x400fff `java.io.FileNotFoundException: E:\Omrs\OmrsCltGeneral\EntryScreen\class.class`
10-18-2000 16:21:03 257986 csgcp435 `JAVAWEB` 460 3 0x400fff `
`
10-18-2000 16:21:03 258282 csgcp435 `JAVAWEB` 460 3 0x400fff ` at java.lang.Throwable.<init>(Compiled Code)`
10-18-2000 16:21:03 258384 csgcp435 `JAVAWEB` 460 3 0x400fff `
`
10-18-2000 16:21:03 258642 csgcp435 `JAVAWEB` 460 3 0x400fff ` at java.io.FileInputStream.<init>(Compiled Code)`
10-18-2000 16:21:03 258752 csgcp435 `JAVAWEB` 460 3 0x400fff `
`
10-18-2000 16:21:03 258985 csgcp435 `JAVAWEB` 460 3 0x400fff ` at java.io.FileInputStream.<init>(Compiled Code)`
10-18-2000 16:21:03 259094 csgcp435 `JAVAWEB` 460 3 0x400fff `
`
10-18-2000 16:21:03 259219 csgcp435 `JAVAWEB` 460 3 0x400fff ` at oracle.owas.loader.WRBLoader.loadClassFromBytes(Compiled Code)`
10-18-2000 16:21:03 259318 csgcp435 `JAVAWEB` 460 3 0x400fff `
`
10-18-2000 16:21:03 259431 csgcp435 `JAVAWEB` 460 3 0x400fff ` at oracle.owas.loader.WRBLoader.loadClass(Compiled Code)`
10-18-2000 16:21:03 259523 csgcp435 `JAVAWEB` 460 3 0x400fff `
`
10-18-2000 16:21:03 259634 csgcp435 `JAVAWEB` 460 3 0x400fff ` at oracle.owas.loader.WRBLoader.ojsLoadClass(Compiled Code)`
10-18-2000 16:21:03 259728 csgcp435 `JAVAWEB` 460 3 0x400fff `
`
10-18-2000 16:21:03 259840 csgcp435 `JAVAWEB` 460 3 0x400fff ` at oracle.owas.loader.WRBLoaderManager.ojsLoadClass(Compiled Code)`
10-18-2000 16:21:03 259934 csgcp435 `JAVAWEB` 460 3 0x400fff `
`
10-18-2000 16:21:03 260129 csgcp435 `JAVAWEB` 460 3 0x400fff ` at oracle.OAS.servlet.servletrunner.getFromCache(Compiled Code)`
10-18-2000 16:21:03 260230 csgcp435 `JAVAWEB` 460 3 0x400fff `
`
10-18-2000 16:21:03 260380 csgcp435 `JAVAWEB` 460 3 0x400fff ` at oracle.OAS.servlet.servletrunner.exec(Compiled Code)`
10-18-2000 16:21:03 260479 csgcp435 `JAVAWEB` 460 3 0x400fff `
[\code]
Thanks in advance. Pls respond ASAP as my Implementation is Pending.
Regards,
Ganesh R<HR></BLOCKQUOTE>
=> For any Bad Magic Number problem, u simply have to empty ur cache, or restart the server ...
null

Similar Messages

  • 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>

  • 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..

  • 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?

  • Are there any magic numbers in credit limits?

    Wondering if different credit limits for an individual account, or overall total limit, has any impact on underwriting or on score.
    Back when I had under six months of credit history, before I could get a FICO, the FAKO from Amex used to tell me one thing helping my score was "you have built a strong relationship with lenders" which I took to mean I had some high limit cards (I was able to get two based on my Canadian credit, at that time $8000 on an Amex and $11000 on my RBC visa).
    Since then I have always wondered whether there are magic numbers in credit limits from a scoring or underwriting perspective.
    I hear "high limit" described differently but a common number I hear is a limit over $5000. I hear that over $25000 on an Amex and you may be asked to verify income.
    And are there any overall magic numbers? Do you wind up in a different bucket if your overall limit is $50k or $100k?
    I know it impacts utilization but is there any other impact? What about fit human underwriting, any common practices there?
    Thoughts?

    Canadian-In-Seattle wrote:
    Wondering if different credit limits for an individual account, or overall total limit, has any impact on underwriting or on score.
    Back when I had under six months of credit history, before I could get a FICO, the FAKO from Amex used to tell me one thing helping my score was "you have built a strong relationship with lenders" which I took to mean I had some high limit cards (I was able to get two based on my Canadian credit, at that time $8000 on an Amex and $11000 on my RBC visa).
    Since then I have always wondered whether there are magic numbers in credit limits from a scoring or underwriting perspective.
    I hear "high limit" described differently but a common number I hear is a limit over $5000. I hear that over $25000 on an Amex and you may be asked to verify income.
    And are there any overall magic numbers? Do you wind up in a different bucket if your overall limit is $50k or $100k?
    I know it impacts utilization but is there any other impact? What about fit human underwriting, any common practices there?
    Thoughts?I am not aware of any "magic numbers" for score based solely on credit limit $$$. They scores focus on % of credit utilized. On a side note, some posters have said that high limit cards (either over $35k or $50k) are excluded from card specific utilization calculations. See below table for getting a CL on a new card. 

  • 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

  • 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)

  • 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?

  • Image size and mime type.. non-java guy needs help

    Image size, mime type.. non-java guy needs help
    Im not at all familiar with java so this is really weird for me to work out. I?ve been doing it all day (and half of yesterday).
    Im trying to write a custom clodFusion tag in java that gets the width, height, size and MIME types of a given file. I?ve been trying to get it to work on the command line first. I can get the width and height but cant get the size and the MIME type.
    Here is what I got
    /*import com.allaire.cfx.*;*/
    import java.awt.image.renderable.*;
    import javax.media.jai.*;
    import com.sun.media.jai.codec.*;
    import java.io.*;
    import java.util.*;
    public class ImageInfo {
    private RenderedOp image = null;
    private RenderedOp result = null;
    private int height = 0;
    private int width = 0;
    private String type = "";
    private String size = "";
    public void loadf(String file) throws IOException
    file = "80by80.jpg";
    FileSeekableStream fss = new FileSeekableStream(file);
    image = JAI.create("stream", fss);
    height = image.getHeight();
    width = image.getWidth();
    System.out.println(height + "\n");
    System.out.println(width);
    System.out.println(type);
    public static void main(String[] args) throws IOException {
    ImageInfo test = new ImageInfo();
    test.loadf(args[0]);
    can anyone please help me out to modify the above so I can also print the mime type and the file size to screen.
    thanks for any help

    any suggestions?

  • 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.

  • Is there any java API throgh which My program can get harddisk,cpu ID adres

    hello
    Is there any java api throuh which i can get hard disk and processor serial numbers.
    i have already use
    process p=Runtime.getTime().exec("cmd command");
    please other than this send any java api, progamming technique that remain same on all plate forms
    advance thanks
    best regards

    >
    Is there any java api throuh which i can get hard disk and processor serial numbers.
    i have already use ..>1) What business is that information to your app.? Or to put that another way. Why do you want to know?
    2) Those words are 'Java', 'API' and 'I' (which is always upper case).
    3) One upper case letter should be used at the start of each sentence, not just once at the start of a post.

  • A problem with java program(reset problem in java GUY)

    I do not know how to make the button reset,my program only could reset diagram but button.If any one who could help me to solve this problem.The problem is When the reset button is pressed, the image should immediately revert to the black square, and the 4 widgets listed above should show values that
    correspond to the black square.
    import java.awt.*;
    import javax.swing.*;
    public class DrawPanel extends JPanel {
         public final static int CIRCLE = 1, SQUARE = 2;
         private int shape;
         private boolean fill;
         private boolean showStatus;
        private int shapeSize = 100;
        private Color foreground;
         // draw a specified shape
        public void paintComponent (Graphics g){
              super.paintComponent(g);
              // find center
            int x=(getSize().width-shapeSize)/2;
              int y=(getSize().height-shapeSize)/2;
              if (shape == CIRCLE) {
                 if (fill == true){
                     g.setColor(foreground);
                      g.fillOval(x, y, shapeSize, shapeSize);
                else{
                       g.setColor(foreground);
                    g.drawOval(x, y, shapeSize, shapeSize);
              else if (shape == SQUARE){
                 if (fill == true){
                     g.setColor(foreground);
                        g.fillRect(x, y, shapeSize, shapeSize);
                else{
                        g.setColor(foreground);
                    g.drawRect(x, y, shapeSize, shapeSize);
        // set showStatus value
        public void setShowStatus (boolean s) {
              showStatus = s;
         // return showstatus value
        public boolean getShowStatus () {
              return showStatus;
         // set fill value
        public void setFill(boolean isFill) {
              fill = isFill;
         // set shape value
        public void setShape(int shapeToDraw) {
              shape = shapeToDraw;
        // set shapeSize value
        public void setShapeSize(int newShapeSize) {
              shapeSize = newShapeSize;
        // set foreground value
        public void setForeground(Color newColor) {
              foreground = newColor;
         // repaint DrawPanel
        public void draw (){
              if(showStatus == true)
              repaint();
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class shapes extends JFrame {
         private JPanel buttonPanel; // panel for buttons
         private DrawPanel myPanel;  // panel for shapes
         private JButton resetButton;
        private JComboBox colorComboBox;
         private JRadioButton circleButton, squareButton;
         private ButtonGroup radioGroup;
         private JCheckBox filledButton;
        private JSlider sizeSlider;
         private boolean isShow;
         private int shape;
         private boolean isFill=true;
        private String colorNames[] = {"black", "blue", "cyan", "darkGray", "gray",
                                   "green", "lightgray", "magenta", "orange",
                                   "pink", "red", "white", "yellow"};   // color names list in ComboBox
        private Color colors[] = {Color.black, Color.blue, Color.cyan, Color.darkGray,
                              Color.gray, Color.green, Color.lightGray, Color.magenta,
                              Color.orange, Color.pink, Color.red, Color.white, Color.yellow};
         public shapes() {
             super("Draw Shapes");
             // creat custom drawing panel
            myPanel = new DrawPanel(); // instantiate a DrawPanel object
            myPanel.setBackground(Color.white);
             // set up resetButton
            // register an event handler for resetButton's ActionEvent
            resetButton = new JButton ("reset");
             resetButton.addActionListener(
              // anonymous inner class to handle resetButton events
                 new ActionListener() {
                       // draw a black filled square shape after clicking resetButton
                     public void actionPerformed (ActionEvent event) {
                             // call DrawPanel method setShowStatus and pass an parameter
                          // to decide if show the shape
                         myPanel.setShowStatus(true);
                             isShow = myPanel.getShowStatus();
                             shape = DrawPanel.SQUARE;
                         // call DrawPanel method setShape to indicate shape to draw
                             myPanel.setShape(shape);
                         // call DrawPanel method setFill to indicate to draw a filled shape
                             myPanel.setFill(true);
                         // call DrawPanel method draw
                             myPanel.draw();
                             myPanel.setFill(true);
                             myPanel.setForeground(Color.black);
                   }// end anonymous inner class
             );// end call to addActionListener
            // set up colorComboBox
            // register event handlers for colorComboBox's ItemEvent
            colorComboBox = new JComboBox(colorNames);
            colorComboBox.setMaximumRowCount(5);
            colorComboBox.addItemListener(
                 // anonymous inner class to handle colorComboBox events
                 new ItemListener() {
                     // select shape's color
                     public void itemStateChanged(ItemEvent event) {
                         if(event.getStateChange() == ItemEvent.SELECTED)
                             // call DrawPanel method setForeground
                             // and pass an element value of colors array
                             myPanel.setForeground(colors[colorComboBox.getSelectedIndex()]);
                        myPanel.draw();
                }// end anonymous inner class
            ); // end call to addItemListener
            // set up a pair of RadioButtons
            // register an event handler for RadioButtons' ItemEvent
             squareButton = new JRadioButton ("Square", true);
             circleButton = new JRadioButton ("Circle", false);
             radioGroup = new ButtonGroup();
             radioGroup.add(squareButton);
             radioGroup.add(circleButton);
            squareButton.addItemListener(
                // anonymous inner class to handle squareButton events
                new ItemListener() {
                       public void itemStateChanged (ItemEvent event) {
                           if (isShow==true) {
                                 shape = DrawPanel.SQUARE;
                                 myPanel.setShape(shape);
                                 myPanel.draw();
                   }// end anonymous inner class
             );// end call to addItemListener
             circleButton.addItemListener(
                   // anonymous inner class to handle circleButton events
                new ItemListener() {
                       public void itemStateChanged (ItemEvent event) {
                             if (isShow==true) {
                                 shape = DrawPanel.CIRCLE;
                                 myPanel.setShape(shape);
                                 myPanel.draw();
                             else
                                 System.out.println("Please click Reset button first");
                   }// end anonymous inner class
             );// end call to addItemListener
             // set up filledButton
            // register an event handler for filledButton's ItemEvent
            filledButton = new JCheckBox("Filled", true);
             filledButton.addItemListener(
              // anonymous inner class to handle filledButton events
            new ItemListener() {
                  public void itemStateChanged (ItemEvent event) {
                    if (isShow==true) {
                            if (event.getStateChange() == ItemEvent.SELECTED) {
                                  isFill=true;
                                  myPanel.setFill(isFill);
                                  myPanel.draw();
                            else {
                                isFill=false;
                                  myPanel.setFill(isFill);
                                  myPanel.draw();
                    else
                        System.out.println("Please click Reset button first");
              }// end anonymous inner class
             );// end call to addItemListener
            // set up sizeSlider
            // register an event handler for sizeSlider's ChangeEvent
            sizeSlider = new JSlider(SwingConstants.HORIZONTAL, 0, 300, 100);
            sizeSlider.setMajorTickSpacing(10);
            sizeSlider.setPaintTicks(true);
            sizeSlider.addChangeListener(
                 // anonymous inner class to handle sizeSlider events
                 new ChangeListener() {
                      public void stateChanged(ChangeEvent event) {
                          myPanel.setShapeSize(sizeSlider.getValue());
                             myPanel.draw();
                 }// end anonymous inner class
             );// end call to addChangeListener
            // set up panel containing buttons
             buttonPanel = new JPanel();
            buttonPanel.setLayout(new GridLayout(4, 1, 0, 50));
             buttonPanel.add(resetButton);
             buttonPanel.add(filledButton);
            buttonPanel.add(colorComboBox);
            JPanel radioButtonPanel = new JPanel();
            radioButtonPanel.setLayout(new GridLayout(2, 1, 0, 20));
            radioButtonPanel.add(squareButton);
            radioButtonPanel.add(circleButton);
            buttonPanel.add(radioButtonPanel);
            // attach button panel & draw panel to content panel
            Container container = getContentPane();
            container.setLayout(new BorderLayout(10,10));
            container.add(myPanel, BorderLayout.CENTER);
             container.add(buttonPanel, BorderLayout.EAST);
            container.add(sizeSlider, BorderLayout.SOUTH);
            setSize(500, 400);
             setVisible(true);
         public static void main(String args[]) {
             shapes application = new shapes();
             application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }Many thanks

    Who is this Java guy anyway?

  • 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

  • I've never done any java, so i really need help

    Hello all.
    i've never done any java, but i've been trying to make a series of phrases scroll every few seconds.. i'd like the text to have links so that while the text goes up, you can click on the links..
    could anyone help ? pls
    PS/ there an example of what i'd like to be done
    over http://java.sun.com/index.html at the botom left of the page..
    Thanks all for the help !!! =)
    ps: i've already posted this question but got no sure answer... hope someones got a bit of time to help

    im not looking for duke dolars or how they are called but many guys here are, so if you want a fast answere or even want one you should give some dolars. thats my experiance.
    but about youre question. if you only want to make somethink like this try looking for source code of news ticker. there are a lot of things like this. try www.javaboutique.com or www.sourceforge.com

Maybe you are looking for

  • Javax.mail.MessagingException: Not Connected

    Hi All, I am trying to read the message from pop.gmail.com using JavaMail API.I ma using POP3 protocol for it. But I got the following Exception javax.mail.MessagingException: Not Connected at com.sun.mail.pop3.POP3Store.checkConnected(POP3Store.java

  • Monitor Port Issues

    Hi everyone, i've looked through the forums for an answer to my problem but to no avail. Ok i'm using a 2002 quicksilver g4 with the stock geforce mx graphics card. I think this card has only ADC and VGA outputs. Anyway i tried to connect this 19" vi

  • KVM switchs, any problems with MSI boards???

    Hi Everybody!! X-Abit fan here, I have a 2 port Belkin DVI KVM switch. I had trouble with Asus and kvm's so I'm asking ahead of time. I built a couple of MSI boxes in the P3 days and had good experience. I'm glad to here Quality is back as a priority

  • Oracle9i Data Guard - Filtering for a Logical Standby DB?

    Hello All 1) When using Oracle9i data guard with a logical standby database is it possible to "screen" the sql statements that are executed? For example if I don't want any "delete" commands to be replicated on the standby box can I filter them out?.

  • Switching between documents

    I used cmd+` to switch between documents many times, yet all of a sudden the short cut does not work any more. No problem with other cmd short cuts. Could anyone be of help?