Java/lang/ClassFormatError: Bad version information.

Hi
When running the midlet in wireless tool kit the following
error is occuring
java/lang/ClassFormatError: Bad version information.
can any body suggest me wat the problem is

Hi,
answer is at http://forum.java.sun.com/thread.jspa?threadID=569449&tstart=0

Similar Messages

  • ALERT: java/lang/ClassFormatError: Bad version information.

    Hi all,
    I'm developing a mobile application but I got this error: ALERT: java/lang/ClassFormatError: Bad version information.
    I've read all the posts in the forum and searched for other ones with google, but still no luck :-( pls help.
    The situation is the following:
    IDE: netBeans 6.5
    MIDP2.1
    CLDC1.1
    javac.source=1.3
    javac.target=1.3
    J2ME web services 1.0 loaded.
    The application retrieves tracking data from a .net web service: I've created the stub with the sun official tool included in the WTK (Stub Generator).
    When I run the jar with the sun device emulator, the splash screen is loaded but, when I retrieve data from the web service, the application crashes with the error ALERT: java/lang/ClassFormatError: Bad version information. No problem if there's no data to fetch.
    Where am I wrong? pls help, thx,
    have a i nica day,
    Michela

    Have you tried JSR172Demo application that is supplied with Netbeans? if yes, did it work?
    Instructions on how to obtain this demo app are provided in [Netbeans help|http://i39.tinypic.com/k2h8og.jpg], section Importing Java ME Projects -> Sun Java Wireless Toolkit project

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

  • 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

  • Bad Version Information Error

    Hi, I am new here.
    I made a Hello World program, and insert it into my phone, but it keeps saying : java/lang/ClassFormatError: Bad version information.
    Did I make a mistake in my program, or others?

    What the version of your JVM is on your phone, the version you used to compile it on your comp ?

  • 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

    I have an ejb client application that works fine when deployed manually. I then decided to decided to deploy with Java Web Start, the deployment goes fine but some of the app. functions don't work and return an error on the console. Here is a copy of the error message.
    Java Web Start Console, started Thu Nov 13 10:38:39 EST 2003
    Java 2 Runtime Environment: Version 1.4.0_03 by Sun Microsystems Inc.
    Logging to file: C:\Test-me\Log.txt
    java.lang.ClassFormatError: cc/admin/email/client/AdministratorUI$18 (Illegal Variable name " val$jtf")
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at com.sun.jnlp.JNLPClassLoader.defineClass(Unknown Source)
         at com.sun.jnlp.JNLPClassLoader.access$1(Unknown Source)
         at com.sun.jnlp.JNLPClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at cc.admin.email.client.AdministratorUI.createTermAndYearDialog(AdministratorUI.java:440)
         at cc.admin.email.client.AdministratorUI.jMenuItemSCTAY_actionPerformed(AdministratorUI.java:398)
         at cc.admin.email.client.AdministratorUI.access$6000471(AdministratorUI.java:77)
         at cc.admin.email.client.AdministratorUI$6.actionPerformed(AdministratorUI.java:212)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source).
    The portion of my code responsible for this is:
    final JTextField jtf = new JTextField(termAndYear[1]);
    jtf.addKeyListener(new JTextFieldFormat(jtf,4));
    jtf.addFocusListener(new java.awt.event.FocusAdapter() {
    public void focusGained(FocusEvent e) {
    jtf.setCaretPosition(0);
    jtf.selectAll();
    Apart from that action, the application works just fine. The interesting thing is, this does not happen if I run the application locally using the required jar files. It only happens when deployed with Java Web Start.
    I'll appreciate any help. Thanks

    hi,
    it looks like the class you want to load is broken. Can you send more information what app server do you use, which jre use this app server, and which java compiler do you use and the exact line were the exception trows.

  • Java.lang.ClassFormatError: _Basic using JSF in Jdeveloper10gv12

    Can someone give me why I get the following error : I've included the Class, JSP and daces-config code
    Thank
    Abi
    500 Internal Server Error
    OracleJSP:
    JSP Error:
    Request URI:/Application1-Project1-context-root/Basic.jsp
    Exception:
    java.lang.ClassFormatError: _Basic
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java)
         at com.evermind.util.OC4JSecureClassLoader.defineClassEntry(OC4JSecureClassLoader.java:172)
         at oracle.jsp.runtimev2.JspClassLoader.loadClass(JspClassLoader.java:744)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at oracle.jsp.runtimev2.JspPageInfo.getInstFacade(JspPageInfo.java:169)
         at oracle.jsp.runtimev2.JspPageTable.getInstFacade(JspPageTable.java:473)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    Java Class
    package mypackage.backing;
    import com.sun.faces.taglib.jsf_core.SelectItemsTag;
    import java.util.*;
    import javax.faces.model.SelectItem;
    import javax.faces.model.*;
    import mypackage.backing.Scholarship;
    import java.text.SimpleDateFormat;
    import java.util.ArrayList;
    public class Basic
    private SelectItem[] basicdays = new SelectItem[]{
    new SelectItem(" "),
    new SelectItem("Basic Information"),
    new SelectItem("Calculate Project"),
    new SelectItem("Change Ownership"),
    new SelectItem("Configure Project - Facility Category Group"),
    new SelectItem("Worksheets")
    private String basicday = "";
    public Basic()
    System.out.println("Class BASIC " );
    public SelectItem[] getBasicdays() {
    return basicdays;
    public void setBasicdays(SelectItem[] days) {
    this.basicdays = days;
    public String getBasicday() {
    return basicday;
    public void setBasicday(String day) {
    this.basicday = day;
    JSP Code
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
    <f:view>
    <h:outputText value="Hello"></h:outputText>
    <h:panelGrid columns="2"
    rowClasses="centered" footerClass="centered" border="1">
    <h:outputText value="Days List"></h:outputText>
    <h:selectOneMenu id="days" value="#(backing_basic.basicday)">
    <f:selectItems value="#{backing_basic.basicdays}"/>
    </h:selectOneMenu >
    </h:panelGrid>
    </f:view>
    Faces config
    <managed-bean>
    <managed-bean-name>backing_basic</managed-bean-name>
    <managed-bean-class>mypackage.backing.Basic</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/basic.jsp</from-view-id>
    <navigation-case>
    <from-outcome>nextpage</from-outcome>
    <to-view-id>/finish.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>

    I tested this code(copy-paste) in Orion and Tomcat and it works fine. I guess that this is not the full code you are executing since I see not used imports, the jsp without the <h:form> tag and a navigation rule that will never take place. Anyway try to deploy this to Tomcat or another AS to check if it running properly. I have seen ADF application running correct on Tomcat and not on Orion.

  • Java.lang.ClassFormatError: EDU/oswego/cs/dl/util/concurrent/ConcurrentRead

    Hi,
    I try to load an XML-File into my Applet with jdom4. But when reading in the Document with the SAX-Reader I get this Error:
    java.lang.ClassFormatError: EDU/oswego/cs/dl/util/concurrent/ConcurrentReaderHashMap (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 java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.dom4j.tree.NamespaceCache.<clinit>(NamespaceCache.java:48)
    at org.dom4j.Namespace.<clinit>(Namespace.java:24)
    at org.dom4j.DocumentFactory.createNamespace(DocumentFactory.java:161)
    at org.dom4j.tree.NamespaceStack.createNamespace(NamespaceStack.java:286)
    at org.dom4j.tree.NamespaceStack.getQName(NamespaceStack.java:167)
    at org.dom4j.io.SAXContentHandler.startElement(SAXContentHandler.java:221)
    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
    at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
    at org.apache.crimson.parser.Parser2.parse(Unknown Source)
    at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
    at org.dom4j.io.SAXReader.read(SAXReader.java:334)
    at org.dom4j.io.SAXReader.read(SAXReader.java:236)
    at client.Load.<init>(Load.java:42)
    at client.Login.startLoad(Login.java:183)
    at client.ParamTimer.run(ParamTimer.java:30)
    I use JRE 1.4.2_05! With JRE 1.5 I get a warning and then the JRE switches to his own SAX Parser.
    How can I solve this???
    Greets

    The error message says that the class file has a bad "magic number." Magic number is the first four bytes of a .class file and in a valid file they should be CA FE BA BE (in hex); "bad magic number" means that the first four bytes are something else and therefore it's not a valid Java .class file.

  • Java.lang.ClassFormatError while starting JSPM. SAP NW04s SR2

    Dear All,
    JSPM issued the following error when it was started. I have installed NW04s SR2 Java only and want to patch it to SP10
    #Error while executing
    phase.##
    #1.5#C000097C2FC400000000006559FA59FA00042BDF044BF5D8#1174136756631#/System/Server/Upgrade/Phases/JSPM/JSPMPhases/JSPM_MAIN##java.lang.Throwab
    le.xinit>(Throwable.java:58)#######Thread[main,5,main]##0#0#Error#1#java.lang.Throwable.xinit>(Throwable.java:58)#Java###Error : #2#java
    .lang.ClassFormatError#<null>#
    Java version is J2RE 1.4.2 IBM build j9xa64142ifx-20051125 (SAP i-Fix 97999: SR2 i-fix 93283 + 96573 + 97068 + 97427 + 96565)
    Please help.
    Warm Regards
    Mazdul

    Error got resolved by updating the JDK version

  • 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: Truncated class file

    Hi
    Previously my application is running on jdk 1.4 and its supporting castor i.e. castor-0.9.5.4-xml.jar
    Now i had upgrade my jdk to 1.6 and i am using same castor.jar
    so it is giving me following error
    Exception in thread "main" java.lang.ClassFormatError: Truncated class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
    at com.sun.tools.javac.v8.GenerateClass$Loader.findClass(GenerateClass.j
    ava:273)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at org.exolab.castor.mapping.loader.Types.typeFromName(Types.java:93)
    at org.exolab.castor.mapping.loader.MappingLoader.resolveType(MappingLoa
    der.java:228)
    at org.exolab.castor.mapping.loader.MappingLoader.createDescriptor(Mappi
    ngLoader.java:394)
    at org.exolab.castor.xml.XMLMappingLoader.createDescriptor(XMLMappingLoa
    der.java:202)
    at org.exolab.castor.mapping.loader.MappingLoader.loadMapping(MappingLoa
    der.java:258)
    at org.exolab.castor.mapping.Mapping.getResolver(Mapping.java:291)
    at org.exolab.castor.mapping.Mapping.getResolver(Mapping.java:246)
    at org.exolab.castor.xml.Marshaller.setMapping(Marshaller.java:520)
    I also try to upgrade castor to latest version i.e castor1.2-xml.jar with jdk 1.6 and this time it gives me error
    Exception in thread "main" java.lang.ClassFormatError: Truncated class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
    at com.sun.tools.javac.v8.GenerateClass$Loader.findClass(GenerateClass.j
    ava:273)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at org.exolab.castor.mapping.loader.Types.typeFromName(Types.java:92)
    at org.exolab.castor.mapping.loader.AbstractMappingLoader.resolveType(Ab
    stractMappingLoader.java:384)
    at org.exolab.castor.xml.XMLMappingLoader.createClassDescriptor(XMLMappi
    ngLoader.java:209)
    at org.exolab.castor.mapping.loader.AbstractMappingLoader.createClassDes
    criptors(AbstractMappingLoader.java:262)
    at org.exolab.castor.xml.XMLMappingLoader.loadMapping(XMLMappingLoader.j
    ava:156)
    at org.castor.mapping.MappingUnmarshaller.getMappingLoader(MappingUnmars
    haller.java:162)
    at org.castor.mapping.MappingUnmarshaller.getMappingLoader(MappingUnmars
    haller.java:128)
    at org.exolab.castor.xml.Marshaller.setMapping(Marshaller.java:556)
    Can any one please help me out..
    Thanks in advance

    hi,
    i think one of application's class file currupted , Recompile all java files and then try.
    Edited by: sagar_birari on Mar 27, 2008 5:47 AM
    Edited by: sagar_birari on Mar 27, 2008 7:20 AM

  • Java.lang.classformaterror: invalid index o in localvariabletable

    Hi All
    I am getting the next error : "java.lang.classformaterror: invalid index o in localvariabletable"l when compiling with aspectj1.1 and jdk 1.5. I have read in some forums that it was a bug uin jdk 1.5Beta; i Wonder if it has been solved or if it is possible to solve t somehow.
    Thanks in advance,
    Guadalupe

    Hi,
    I'm still on Java 1.4.2, but...... the local variable table is basically the "symbolic information" used for debugging purposes only.
    As a workaround, you might be able to turn off the debugging information by including "-g:none" in your javac command line switch.
    You may need to recompile all classes which give this error.
    regards,
    Owen

Maybe you are looking for

  • Terminal.app won't return window to default size with open tab

    I regularly have multiple Terminal.app windows open with multiple tabs open in them. If I have a window open with no tabs, I can drag scale the window to whatever size is convenient for me at the moment, then use the Window > Return to Default Size f

  • How do I print the guides on artwork so that Printer will see crop marks?

    I designed a wedding invitation in Photoshop CS3 and I need to send him samples of the artwork. I wanted to show him where the Guides are located so that he'll know where to do his cuts. I thought that I could should him where those cuts would go by

  • How to set new tabs to home page when opened

    I have no problem setting up my home page, but new tabs open as blank pages. How do I set up Firefox to open new tabs to my home page, when I manually open a new tab?

  • LOGLINE in the Notification's long text

    Can the content of the Notification's long text "Log Line" be changed? Standard SAP gives: Date, Time, Username, SAP User ID and Phone number Requirement is to add "User department"  the log line. Would this be customization  or is configuration?

  • Using datapanel to request another resource

    Hi I am using tomahawk paneltabbedpane with panel tabs. My code has the form contents of portfoliosummary.jsp <t:panelTabbedPane selectedIndex="0" width="100%">      <t:panelTab label="#{messages['portfolio_summary']}">                     ----some J