Java.lang.IllegalAccessException using Reflection and SSL

Hi all,
I am getting the java.lang.IllegalAccessException when trying to access the field's value. I'm passing an object that has it's fields set. I'm trying to determine the object passed to my method, get the object's fields, get the field values and store them in an array for later processing. The italic line is where the error occurs. I'm running SSL and my constructors for the objects that I'm passing are all declared "public".
Can anyone help me fix this problem or suggest a better way?
Thanks.
*my method
    public void setHtFields( Object obj ) throws Exception
        setAction( "view" );
        setRecType( obj.getClass().getName() );
        Field flds[] = obj.getClass().getDeclaredFields();
        String fieldList = "";
        String value = "";
        for ( int x=0; x<flds.length ; x++ )
value = flds[x].get(obj).toString();            htFields.put( flds[x].getName(), value);
            fieldList +=  flds[x].getName() + "::" + value + "~";
        setFieldValue( fieldList );
        insertRecord();
        return;
* stack trace
java.lang.IllegalAccessException
     at java.lang.reflect.Field.get(Native Method)
     at com.yoursummit.utils.historyLogging.setHtFields(historyLogging.java:276)
     at org.apache.jsp.edit_emp_jsp._jspService(edit_emp_jsp.java:99)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
     at java.lang.Thread.run(Thread.java:479)

The object your are invoking setHtFields on must be declaring some private or protected fields which you can't access.
If you try printing the thrown IllegalAccessException message, not just a stack trace, you will see which exacly one.

Similar Messages

  • Java.lang.NoSuchMethodError using beans and JSP

    Hi,
    I get a
    java.lang.NoSuchMethodError: Unit.UnitBean.execSQL(Ljava/lang/String; Ljava/sql/ResultSet;
    when i try to call that method from my jsp page. I can call all other methods in teh bean but I can't understand why it can't find execSQL when it finds every thing else.
    Any help would be greatly appreciated.
    Mike
    Heres a copy of my java bean code:
    package Unit;
    import java.sql.*; 
    import java.io.*; 
    public class UnitBean
         Connection con;
         String error;
         public boolean connect() throws ClassNotFoundException,SQLException
              String StudentNumber = "xxx";
              String strHost = "xxxx";
              String strConnectURL = ("jdbc:postgresql://" + strHost + "/");
              String strUser = "xxxx";
              String strPassword = "xxxxx";
              Class.forName("org.postgresql.Driver");
              con = DriverManager.getConnection(strConnectURL, strUser, strPassword);     
              return true;
         public void disconnect() throws SQLException
              con.close();
         public ResultSet execSQL(String sql)throws SQLException
              Statement s = con.createStatement();
              ResultSet rs = s.executeQuery(sql);
              return rs;
         public String test()
              String Mike="HIHIHIHIHI";
              return Mike;
    }And the jsp code:
    <%@ page language="java" contentType="text/html"%>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*" %>
    <jsp:useBean id="Unit" class="Unit.UnitBean" scope="page"/>
    <html>
         <head>
              <title>Test My Bean!!!!???!!?!</title>
         </head>
         <body>
              <%
                   String SQL ="Select * from unit where unitid='CMPS2B26'";
                   ResultSet rs =null;
                   try
                        Unit.connect();
                        rs = Unit.execSQL(SQL);
                        while(rs.next())
                                  out.println(rs.getString("unitid"));
                        Unit.disconnect();     
                   catch(Exception e)
                        out.println("<p>Problem with jsp code" +e);
              %>
              This is a jsp page.
              <p><a href = "http://stuweb3.cmp.uea.ac.uk/~xxxx/index.html">Click here for home page</a>
         </body>
    </html>

    Yeah, that worked great, thanks a lot. I thought that JSP compiled when you changed it and then visited it, but i've tried that. I just ran ant stop start on my server and it's all working.
    Thanks again :)
    Mike

  • Emulator runtime error - java.lang.IllegalAccessException

    Hi
    Im working through some example code, and when i build, everything is fine, with no errors, however when i run in the emulator, even though at this moment the program actually does nothing, its just a skeleton, i get the following error:
    Unable to create MIDlet MyC
    java.lang.IllegalAccessException
    at com.sun.midp.midlet.MIDletState.createMIDlet(MIDletState.java:148)
    at com.sun.midp.midlet.Selector.run(Selector.java:151)
    For hours, i have been pondering over the code, but the answer eludes me as to why i get this error
    Here is the main midlet:
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.lcdui.game.*;
    public class my extends MIDlet implements CommandListener {
    private MyC canvas;
    public void startApp() {
    if (canvas == null) {
    canvas = new MyC(Display.getDisplay(this));
    Command exitCommand = new Command("Exit", Command.EXIT, 0);
    canvas.addCommand(exitCommand);
    canvas.setCommandListener(this);
    // Start up the canvas
    canvas.start();
    public void pauseApp() {}
    public void destroyApp(boolean unconditional) {
    canvas.stop();
    public void commandAction(Command c, Displayable s) {
    if (c.getCommandType() == Command.EXIT) {
    destroyApp(true);
    notifyDestroyed();
    here is the class it uses:
    import javax.microedition.lcdui.*;
    import javax.microedition.lcdui.game.*;
    import java.util.*;
    import java.io.*;
    public class MyC extends GameCanvas implements Runnable
    private Display display;
    private Sprite playerSprite;
    private boolean sleeping;
    private long framedelay;
    public MyC(Display d)
    super(true);
    display = d;
    framedelay = 33;
    public void start()
    display.setCurrent(this);
    try
    playerSprite = new Sprite(Image.createImage("/player.png"),12,12);
    catch (IOException e){}
    sleeping = false;
    Thread t = new Thread(this);
    t.start();
    public void stop()
    public void run()
    Graphics g = getGraphics();
    while (!sleeping)
    update();
    draw(g);
    try
    Thread.sleep(framedelay);
    catch (InterruptedException ie) {}
    private void update()
    return;
    private void draw(Graphics g)
    playerSprite.paint(g);
    flushGraphics();
    }

    im using j2me, and yes, i have gone straight for
    mobile phone midlet programming. That isn't going to be easy.
    When i remove the
    detail at the end of the constructor, the code wont
    exectute at all. By looking at the code i presented
    here, is there anything noticeable as to why i keep
    getting this error?"Won't execute" doesn't tell me anything.
    Removing the parameter means that you need to do other things to the code because there will be undefined items.
    If you are copying code exactly as it appears in a tutorial then you need to be aware that you might be working with different versions of code (java and midlet) and/or there might be mistakes in the tutorial. Of course if you modified the tutorial code then you could be introducing problems as well. You can look for other sources of documentation which might provide more information as to what a minimal set up looks like.

  • Java.lang.IllegalAccessException while starting MIDlet

    Hi.
    I am quite green to J2ME. I have developed and debbugged a large part of a J2ME application first under J2SE, as it was more comfortable. I used only the core CLDC1.1 and MIDP2.0 classes, but now, when I created a MIDlet that initializes the application and tried starting it from under KToolbar, I get smth like:
    java.lang.IllegalAccessException
    at com.sun.midp.midlet.MIDletState.createMIDlet(+19)
    at com.sun.midp.midlet.Scheduler.schedule(+52)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+116)
    The project contains various packages, but even when I comment out everything and leave only the primary structure of the MIDlet in place, the error still occurs.
    Can anyone help me, please?

    Hello.
    I use de doja libreries for develop c chat in JXME and when I run i have this error:
    I have 2 classes, one extends Panel and another extends IApplication and I don't have Middlet becaise the Panel is the Middlet.
    The two classes are public but i have this error when i run:
    java.lang.IllegalAccessException
    at com.sun.midp.midlet.MIDletState.createMIDlet(MIDletState.java:157)
    at com.sun.midp.midlet.Selector.run(Selector.java:150)
    Thank you

  • Java.lang.IllegalAccessException while instaiating bean

              Hi All,
              I am calling a bean from my JSP and the bean classes are in
              prpoper place i.e
              mywar/WEB-INF/classes/package structure
              in the use bean tag of JSP full class name is given.
              but weblogic ( SP8/Windows 2000) is giving the error
              as below:
              <WebAppServletContext-trial> Generated java fil
              e: C:\weblogic\myserver\trialwar\WEB-INF\_tmp_war_trial\jsp_servlet\_jdomhelper.
              java
              Fri Mar 23 15:20:12 CST 2001:<E> <WebAppServletContext-trial> Servlet
              failed with Exception
              java.lang.ClassNotFoundException: class com.netg.helper.UserInterfaceSetting
              : java.lang.IllegalAccessException: com/netg/helper/UserInterfaceSetting
              at java.beans.Beans.instantiate(Beans.java:215)
              at java.beans.Beans.instantiate(Beans.java:55)
              at jsp_servlet._jdomhelper._jspService(_jdomhelper.java:82)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:106)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:907)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:851)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:252)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:364)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
              Compiled Code)
              --------------- nested within: ------------------
              weblogic.utils.NestedRuntimeException: cannot instantiate 'com.netg.helper.UserI
              nterfaceSetting' - with nested exception:
              [java.lang.ClassNotFoundException: class com.netg.helper.UserInterfaceSetting
              java.lang.IllegalAccessException: com/netg/helper/UserInterfaceSetting]
              at jsp_servlet._jdomhelper._jspService(_jdomhelper.java:84)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:106)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:907)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:851)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:252)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:364)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
              Compiled Code)
              Any idea/suggestions for above will be helpful.
              mesha
              

    Hello.
    I use de doja libreries for develop c chat in JXME and when I run i have this error:
    I have 2 classes, one extends Panel and another extends IApplication and I don't have Middlet becaise the Panel is the Middlet.
    The two classes are public but i have this error when i run:
    java.lang.IllegalAccessException
    at com.sun.midp.midlet.MIDletState.createMIDlet(MIDletState.java:157)
    at com.sun.midp.midlet.Selector.run(Selector.java:150)
    Thank you

  • I have been getting java.lang.ClassNotFoundException: ZeroApplet.class and java.lang.ClassNotFoundException: JavaToJS.class crashes with JRE version 1.6.0_26-b03-384-10M3425 VM executing a Java Applet. Is Apple aware of this problem? No longer supported?

    My web page uses a Java Applet to allow my visitors to replay chess games; the Chess Viewer Deluxe applet was written by Nikolai Pilafov some time ago and has been working properly for some time (until recently). I don't monitor this part of my site regularly so I am not sure when it began to fail. On his web site [http://chesstuff.blogspot.com/2008/11/chess-viewer-deluxe.html] he has a link to check LiveConnect object functionality (which fails for OBJECT tags). His recommendation is to "seek platform specific support which might be available from the JRE developers for your platform".
    I have been getting java.lang.ClassNotFoundException: ZeroApplet.class and java.lang.ClassNotFoundException: JavaToJS.class crashes with JRE version 1.6.0_26-b03-384-10M3425 VM executing a Java Applet. Until I checked the LiveConnect object functionality, I was unable to identify the source of the console error messages. This does seem to be the smoking gun.
    Is Apple aware of this problem? Are these classes no longer supported? Has anyone else had this problem? You can attempt to recreate the problem locally by going to my web page: http://donsmallidge.com/DonSmallidgeChess.html
    Thanks in advance for any help you can provide!
    Abbreviated Java Console output:
    Java Plug-in 1.6.0_26
    Using JRE version 1.6.0_26-b03-384-10M3425 Java HotSpot(TM) 64-Bit Server VM
    load: class ZeroApplet.class not found.
    java.lang.ClassNotFoundException: ZeroApplet.class
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:807)
        at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2389)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
        at sun.applet.AppletPanel.run(AppletPanel.java:368)
        at java.lang.Thread.run(Thread.java:680)
    load: class JavaToJS.class not found.
    java.lang.ClassNotFoundException: JavaToJS.class
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:807)
        at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2389)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
        at sun.applet.AppletPanel.run(AppletPanel.java:368)
        at java.lang.Thread.run(Thread.java:680)

    I just went up to check the LiveConnect object functionality page AND IT WORKED THIS TIME! I must confess, this is very mysterious. I will do some more checking and reply here if I can determine why it is working now (and more importantly, why it didn't work before).

  • Java.lang.IllegalAccessException

    Hi!
              I got the following exception when trying to invoke my First-Try-Servlet
              (HttpServlet derivative).
              the only implemented method is doGet that dumps a micro html-code into the
              result stream.
              compiling and deploymend works without error.
              But when trying to invoke the Servlet the homepage return the following
              error:
              java.lang.IllegalAccessException: de.speech.vsm.SurveyServlet
                   at java.lang.Class.newInstance0(Native Method)
                   at java.lang.Class.newInstance(Unknown Source)
                   at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820)
                   at
              org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
                   at
              org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
              va:214)
                   at
              org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
              66)
                   at
              org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
                   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
                   at
              org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
              va:201)
                   at
              org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
              66)
                   at
              org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
                   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
                   at
              org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
                   at
              org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
                   at
              org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
              66)
                   at
              org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
              java:170)
                   at
              org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
              64)
                   at
              org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
                   at
              org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
              64)
                   at
              org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
                   at
              org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
              64)
                   at
              org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
                   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
                   at
              org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
              :163)
                   at
              org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
              66)
                   at
              org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
                   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
                   at
              org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
              1011)
                   at
              org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
                   at java.lang.Thread.run(Unknown Source)
              Do you have an idea?
              Richie
              

    Post this in Tomcat mailing list not in WLS list.
              Kumar.
              Richard Hafner wrote:
              > Hi!
              >
              > I got the following exception when trying to invoke my First-Try-Servlet
              > (HttpServlet derivative).
              >
              > the only implemented method is doGet that dumps a micro html-code into the
              > result stream.
              >
              > compiling and deploymend works without error.
              > But when trying to invoke the Servlet the homepage return the following
              > error:
              >
              > java.lang.IllegalAccessException: de.speech.vsm.SurveyServlet
              >      at java.lang.Class.newInstance0(Native Method)
              >      at java.lang.Class.newInstance(Unknown Source)
              >      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820)
              >      at
              > org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
              >      at
              > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
              > va:214)
              >      at
              > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
              > 66)
              >      at
              > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
              >      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
              >      at
              > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
              > va:201)
              >      at
              > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
              > 66)
              >      at
              > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
              >      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
              >      at
              > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
              >      at
              > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
              > )
              >      at
              > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
              > 66)
              >      at
              > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
              > java:170)
              >      at
              > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
              > 64)
              >      at
              > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
              > )
              >      at
              > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
              > 64)
              >      at
              > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
              >      at
              > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
              > 64)
              >      at
              > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
              >      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
              >      at
              > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
              > :163)
              >      at
              > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
              > 66)
              >      at
              > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
              >      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
              >      at
              > org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
              > 1011)
              >      at
              > org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
              > )
              >      at java.lang.Thread.run(Unknown Source)
              >
              > Do you have an idea?
              > Richie
              >
              >
              >
              >
              

  • Java.lang.NoSuchMethodException Using Method.invoke(...)

    I try to use Method.invoke() to invoke a method from a class. The method
    has parameters with type JTextArea and JMyFrame, but I got the error
    messages java.lang.NoSuchMethodException . Any ideas???
    If I remove parameter "JFrame mainFrame" in start() method and it is working fine. Not sure why JMyFrame will throw this exception, as JMyFrame is derived from JFrame class
    public class MyFrame extends JFrame
         try
    ClassLoader loader
    = new MyClassLoader(Integer.parseInt("3"));
    Class c = loader.loadClass("NewMenuPackage.NewMenu");
    Class[] params = { JTextArea.class, JMyFrame.class };
         Method m = c.getMethod("start", params);
         Object obj = c.newInstance();
    m.invoke(obj,
         new Object[] {
              textArea,
              JMyFrame.this
    catch (Throwable e)
    JOptionPane.showMessageDialog(this, e);
    package NewMenuPackage;
    import javax.swing.*;
    public class NewMenu
         private static JMenuItem menuItem = new JMenuItem("New Menu");
         public static JMenuItem getJMenuItem()
              return menuItem;
         public static void start(JTextArea textArea, JFrame mainFrame)
              System.out.println("NewMenu->start()...");
    }

    Your "params" Class array has to specify the exact classes of the method, not subclasses. The line that is causing the NoSuchObjectException to be thrown is "c.getMethod("start", params);".
    You have to write your own reflection utility methods to find a method that matches on parameter subclasses.

  • Problem to calling readObject(java.io.ObjectInputStream) using reflection

    Hi,
    I am facing the following problem
    I have an Employee class its overridden the following below methods
    private void readObject(java.io.ObjectInputStream inStream) {
         inStream.defaultReadObject();
    I am trying to call this method using reflection.
    my code is like this
         Class fis= Class.forName("java.io.FileInputStream");
         Constructor fcons = fis.getConstructor(new Class[]{String.class});
         Object fisObj = fcons.newInstance(new Object[]{"C:\\NewEmployee.ser"});
         Class ois= Class.forName("java.io.ObjectInputStream");     
         Constructor ocons = ois.getDeclaredConstructor(new Class[]{InputStream.class});
         Object oisObj = ocons.newInstance(new Object[] {fisObj});
         Method readObj = aClass.getDeclaredMethod("readObject", new Class[]{ois});
         readObj.setAccessible(true);
         Object mapObj = readObj.invoke(employeeObj,new Object[]{oisObj});
    The above code is call the readObject method, but it is failing while executing inStream.defaultReadObject() statement
    I am getting the following exception
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at HackEmployee.reflect(HackEmployee.java:49)
    at HackEmployee.main(HackEmployee.java:131)
    Caused by: java.io.NotActiveException: not in call to readObject
    at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:474)
    at Employee.readObject(Employee.java:77)
    ... 6 more
    can anybody help me?
    ~ murali

    Hi,
    Here is the simple example.
    public class Employee implements Serializable {
    static final long serialVersionUID = 1L;
    static final int _VERSION = 2;
    private int eno;
    private String empName;
         private String paaword;
         private void readObject(java.io.ObjectInputStream inStream)
    throws IOException, ClassNotFoundException {
         int version = 0;
         BufferedInputStream bis = new BufferedInputStream(inStream);
         bis.mark(256);
         DataInputStream dis = new DataInputStream(bis);
         try {
              version = dis.readInt();
              Debug.println(Debug.INFO, _TAG, "Loading version=" + version);
         } catch(Exception e) {
              dis.reset();
         switch(version) {
              case 0:
              case 1:
                   inStream.defaultReadObject();
                   migrateDefaultEmployeeToEncryptionPassword();
                   break;
              case _VERSION:
                   inStream.defaultReadObject();
                   break;
              default:
                   throw new IOException("Unknown Version :" + version);
         private void writeObject(ObjectOutputStream aOutputStream)
    throws IOException {
         aOutputStream.writeInt(_VERSION);
         aOutputStream.defaultWriteObject();
    Now I am writing a tool that need to read data and print all the field and values in a file.
    So I am trying the same with reflecton by calling readObject(ObjectInputStream inStream).
    But here I am facing the problem, it is geving java.lang.reflect.InvocationTargetException while calling migrateDefaultEmployeeToEncryptionPassword(.
    Hope you got my exact scenerio.
    Thanks for your replay
    ~ Murali

  • Java.lang.SecurityException using a simple jar file

    I created my small application using JDev 11.
    Running from JDev it works well.
    I created a simple jar file including all my classes and all libraries I used.
    Whe I try to run that jar file I get :
    java.lang.SecurityException: no manifiest section for signature file entry javax/mail/internet/AsciiOutputStream.classI didn't find any solution.
    I worked hardly with JDev 10g but I never had such problem.
    Tks
    Tullio
    Edited by: tullio0106 on Nov 25, 2008 2:22 PM

    I simply created a project containing some classes whish use java mail.
    Then I modified the project creating, in the deployment wizard, a "Dependency Analysis" filegroup adding all my classes as well as libraries.
    I uncheck the "Include Manifest" chek otherwise I would run into different problems (well documented in the forum).
    The jar file is created but when I run the application I get the Security error.
    If I remove java mail libraries (activation and java mail)from the list of used libraries and I add it to classpath it works fine.
    I suspect the problem could be in Manifes merging.
    Tks
    Tullio

  • "java.lang.NullPointerException" using the calender-iview

    Hi,
    We are using SAP NetWeaver Portal 6.0.14.0.0, KM-Version 6.0.14.2.0 and Microsoft Exchange 2000.
    Our SysAdmin has integrated Exchange into the portal and I integrated two calender-iviews (one-month-overview & one-daay-overview). Until last week everything worked fine and everybody was able to see his appointments within this two iviews. But now we get the error-message "
    java.lang.NullPointerException" in this iviews. 
    We haven´t changed anything, this error-message appeared suddenly. Has anybody an idea what´s wrong?
    Thanks for help.
    Greetings,
    Sven

    Hi Sven,
    (a) You should definitely check the log files (default.X.trc) to get a more specific idea where the error comes from.
    (b) If you don't realise immediately where the problem comes from when watching the traces, consider opening an OSS message, for at least a NPE should never be thrown on the UI.
    Hope it helps
    Detlev

  • Java.lang.NoSuchMethodError using BasicHttpContext

    Hello
    I want to write a simple ChatClient.
    package com.inz.chat.client;
    import java.io.IOException;
    import java.io.InputStream;
    import org.apache.http.HttpEntity;
    import org.apache.http.HttpResponse;
    import org.apache.http.client.ClientProtocolException;
    import org.apache.http.client.HttpClient;
    import org.apache.http.client.methods.HttpGet;
    import org.apache.http.impl.client.DefaultHttpClient;
    public class ChatClient
         private HttpClient httpClient;
         private String servletUrl;
         public ChatClient(String urlPrefix)
              this.servletUrl = urlPrefix + "ChatServlet";
              this.httpClient = new DefaultHttpClient();
              connectWithServer();
         private void connectWithServer()
              System.out.println("connect to " + servletUrl);
              HttpGet httpget = new HttpGet(servletUrl);
              try {
                   HttpResponse response = this.httpClient.execute(httpget);
                   HttpEntity entity = response.getEntity();
                   if (entity != null)
                       InputStream instream = entity.getContent();
              } catch (ClientProtocolException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         public static void main(String[] args)
              String prefix = "http://127.0.0.1:8080/InzChat/";
              new ChatClient(prefix);
    }But when i start the program i always get:
    Exception in thread "main" java.lang.NoSuchMethodError: org.apache.http.protocol.BasicHttpContext: method <init>()V not found
         at org.apache.http.impl.client.AbstractHttpClient.createHttpContext(AbstractHttpClient.java:273)
         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:797)
         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
         at com.inz.chat.client.ChatClient.connectWithServer(ChatClient.java:30)
         at com.inz.chat.client.ChatClient.<init>(ChatClient.java:22)
         at com.inz.chat.client.ChatClient.main(ChatClient.java:48)I tried to use httpcore-4.0.jar and httpcore-4.1.jar, but the error is always the same. In other projects I used httpcore-4.1.jar to establish http connections without any problems, but here is something wrong...
    Next to the jre1.6 classes and the tomcat 6 classes I have appframework-1.03.jar, commons-codec-1.4.jar, commons-logging-1.1.1.jar, httpclient-4.1.1.jar, httpclient-cache-4.1.1.jar, httpmime-4.1.1.jar set to the classpath, but there seems to be a problem
    I' m using Eclipse for develpoment and I hope someone knows what to do here...
    Kind regards,
    Chang
    Edited by: Chang on 02.09.2011 04:58

    Hello EJP thanks for your answer.
    I put the jar files in the Project Properties->Java Build Path dialog to the project like i did it many times before. Now i added httpcore-4.0.jar and httpcore-4.1.jar to the classpath, but no difference the error is still the same. I don't know which jar files get used at runtime.
    Alternatively i put the jar files in a lib folder under the WEB-INF folder, but the error leaves the same.
    Can you please explain me the solution a little more detailed.
    Kind regards,
    Chang

  • Upgrade to 10.1.2.3 now getting java.lang.VerifyError using rwrun.sh

    We recently upgraded our Application Server/Forms and Reports to Oracle 10.1.2.3. We have one application that uses a python script and calls rwrun (or rwrun.sh) from Generic Apache (not Oracle's Apache).
    We are now seeing the following error from the rwrun.sh command:
    ERR REP-0069: Internal error
    java.lang.VerifyError: class org.omg.PortableServer.AdapterActivatorPOA overrides final method .
    This use to work with Oracle 9.0.4 I opened a Service Request with Oracle since I was also having problems running this from the command line. At that point I had to open up the $OH/diagnostics/config/registration directory to world write access.
    Now that I got past that, the command line rwrun works, but the call from the python script using the generic apache doesn't.
    Oracle wouldn't help since this is custom code.
    Any suggestion.
    Thanks,
    Shirley

    We recently upgraded our Application Server/Forms and Reports to Oracle 10.1.2.3. We have one application that uses a python script and calls rwrun (or rwrun.sh) from Generic Apache (not Oracle's Apache).
    We are now seeing the following error from the rwrun.sh command:
    ERR REP-0069: Internal error
    java.lang.VerifyError: class org.omg.PortableServer.AdapterActivatorPOA overrides final method .
    This use to work with Oracle 9.0.4 I opened a Service Request with Oracle since I was also having problems running this from the command line. At that point I had to open up the $OH/diagnostics/config/registration directory to world write access.
    Now that I got past that, the command line rwrun works, but the call from the python script using the generic apache doesn't.
    Oracle wouldn't help since this is custom code.
    Any suggestion.
    Thanks,
    Shirley

  • Error java.lang.OutOfMemoryError using XML DOM parser

    Hi everyone,
    We are using Oracle 8.1.7 on Windows NT and trying to load XML into Oracle using the DOM API through PL/SQL. This is the method provided in the ORACLE_HOME\ora817\xdk\plsql\demo\domsample.sql which uses the XMLPARSER and XMLDOM PL/SQL packages.
    Now this works fine with small files (not sure about the exact file size). But for big files, it gives an error,
    ORA-29554: unhandled Java out of memory condition
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.OutOfMemoryError
    We have increased the JAVA_POOL_SIZE from the default 20MB to 50MB. Not sure whether increasing this value will solve our problem and whether it is advisable to increase it to a higher value. Can anyone help, please ???
    Thanks.

    Steve,
    Thanks for the response. Now we are getting different error. In one of the questions earlier posted, someone (I think Jon) noted that following error (the one we are getting) can be resolved by using JDK 1.1.8, is there any specific JDK pre-req for XML Parser 0.9.8.6?
    Is it possible, to enhance release notes for 0.9.8.6 to include
    a) Tips mentioned in your mail (i.e. putting oracle xml parser 2.0.x before Apache/OJSP xmlparserv2.jar
    b) Dependencies on specific version of JDK
    Once again thanks for the responding to the mail and will appreciate a help to resolve this current error.
    Thanks,
    Shree
    Actual error :
    java.lang.IllegalArgumentException: sun.io.CharToB
    yteUTF-8
    at sun.io.CharToByteConverter.getConverterClass(Compiled Code)
    at sun.io.CharToByteConverter.getConverter(Compiled Code)
    at java.io.OutputStreamWriter.<init>(Compiled Code)
    at org.apache.jserv.JServConnection.getWriter(Compiled Code)
    at oracle.xml.xsql.XSQLServletPageRequest.setupWriter(Compiled Code)
    at oracle.xml.xsql.XSQLServletPageRequest.setContentType(Compiled Code)
    at oracle.xml.xsql.XSQLPageProcessor.process(Compiled Code)
    at oracle.xml.xsql.XSQLServlet.doGet(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at org.apache.jserv.JServConnection.processRequest(Compiled Code)
    at org.apache.jserv.JServConnection.run(Compiled Code)
    at java.lang.Thread.run(Compiled Code)
    null

  • Java.lang.UnsupportedClassVersionError with ADF and Websphere

    I'm trying to get an app running with ADF/Tomahawk/MyFaces/Facelets going on Websphere 6.0. However Websphere is running with a 1.4.2 JVM instead of 1.5 so I get an error when it comes to the ADF NavigationHandlerImpl which has been built with Java 1.5. Is there a Java 1.4 version of ADF faces I should have downloaded somewhere?
    Hints appreciated.
    Regards, Murray
    ==<logs below >=================================
    [5/4/06 13:15:47:816 GMT] 00000011 FacesConfigur I Reading config /WEB-INF/faces-config.xml
    [5/4/06 13:15:48:236 GMT] 00000011 WebApp E LinkageError while defining class: oracle.adfinternal.view.faces.application.NavigationHandlerImpl
    Could not be defined due to: oracle/adfinternal/view/faces/application/NavigationHandlerImpl (Unsupported major.minor version 49.0)
    This is often caused by having a class defined at multiple
    locations within the classloader hierarchy. Other potential causes
    include compiling against an older or newer version of the class
    that has an incompatible method signature.
    Dumping the current context classloader hierarchy:
    ==> indicates defining classloader
    ==>[0]
    com.ibm.ws.classloader.CompoundClassLoader@7d4e3ab9
    Local ClassPath: C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\classes;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\activation-1.0.2.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\adf-facelets.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\adf-faces-api-ea20-SNAPSHOT.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\adf-faces-impl-ea20-SNAPSHOT.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\aui.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\common-annotations.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-beanutils-1.7.0.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-codec-1.3.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-collections-3.1.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-digester-1.6.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-el-1.0.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-fileupload-1.1.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-io-1.2.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-lang-2.1.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-logging-1.0.4.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\el-api.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\el-ri.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\jsf-facelets1014.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\jsp-api.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\jstl-1.1.0.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\log4j-1.2.13.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\mob-impl-files.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\mob-layer-interfaces.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\mob-layer-standalone.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\myfaces-api-1.1.3-SNAPSHOT.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\myfaces-impl-1.1.3-SNAPSHOT.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\portlet.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\serializer.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\tomahawk-1.1.2-SNAPSHOT.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\xalan.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\xercesImpl.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\xml-apis.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\xpp3_min-1.1.3.4.O.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\xstream-1.1.3.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\xstream-with-attributes.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war;
    Delegation Mode: PARENT_FIRST
    [1] com.ibm.ws.classloader.JarClassLoader@630356666 Local Classpath: Delegation mode: PARENT_FIRST
    [2] com.ibm.ws.classloader.ProtectionClassLoader@2333faba
    [3] com.ibm.ws.bootstrap.ExtClassLoader@7f427ab8
    [4] sun.misc.Launcher$AppClassLoader@7f4cbab8
    [5] sun.misc.Launcher$ExtClassLoader@7f30bab8
    ---Original exception---
    java.lang.UnsupportedClassVersionError: oracle/adfinternal/view/faces/application/NavigationHandlerImpl (Unsupported major.minor version 49.0)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code))
         at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:576)
         at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code))
         at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:414)
         at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:260)
         at org.apache.myfaces.shared_impl.util.ClassUtils.classForName(ClassUtils.java:131)
         at org.apache.myfaces.shared_impl.util.ClassUtils.simpleClassForName(ClassUtils.java:157)
         at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:521)
         at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:448)
         at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:131)
         at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:66)
         at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:49)
         at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1355)
         at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:371)
         at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114)
         at com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:127)
         at com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:776)
         at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:729)
         at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:140)
         at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1019)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1028)
         at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:538)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:724)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:683)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:1678)
         at com.ibm.ws.runtime.component.ComponentImpl$_AsynchInitializer.run(ComponentImpl.java:304)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)

    Hi,
    you will have to compile the application with JDK 1.4 in this case. This should work for JSF and ADF Faces.
    Frank

Maybe you are looking for

  • Call transaction in new session not working inside CRM Interaction Center

    Hi Experts, I have developed a report which contains a screen with push button. When user clicks on button a  transaction (FPL9) is being called and opened in new session or window. But when the report is being called in CRM Interaction Center using

  • Field 'record_EMP_ID' doesn't have a default value

    I solved org.hibernate.TransientObjectException by adding "@OneToMany(fetch=FetchType.EAGER, cascade=CascadeType.ALL)" But this time values can't be inserted to DB. OS : Windows 7 JDK : JDK 1.6 JBoss : JBoss 5.1.0.GA DB : MySQL 5.5 Error is "Field 'r

  • Adobe Acrobat 9 supposedly allows you to convert selected areas of a web page to PDF from within Int

    Software: Adobe Acrobat 9 Standard Issue: Using the 'Adobe PDF toolbar' from within Internet Explorer Problem #1: Can't convert selected areas of a web page to PDF When you click 'select' on the adobe pdf toolbar, a red dotted line is supposed to app

  • Apple iCal and BT broadband

    Hi all, Just switched to BT broadband and now when I try to open my calendar I just get a garbled message saying "unable to connect to server". I'm guessing somehow I have to "OK" the iCal connection as I did with various e-mail addresses before I co

  • A router or a switch?

    In my small office I use an Airport Extreme base station to provide our internet connections. Currently we have a cable connection from Comcast. Comcast has supplied a SMC8014 gateway which right now plugs into my airport to provide the wireless conn