"Catching" a java.lang.NoSuchMethodError

Hi all,
Currently developing a number of different versions of the same system at the same time and I have a problem with NoSuchMethodError.
Background:
The system consist of a number of jar files:
- a.jar
- b.jar
- c.jar
Each jar-file is version handled by itself, and it should be possible to upgrade only parts of the jar-files (e.g. only add bugfixes introduced in a.jar and b.jar) to a running system.
My problem is that I have developed a new version of the b.jar using a method introduced in v1.3 of the a.jar. Since other bugfixes also are introduced in the new version of b.jar, I need to be able to use the new b.jar release in both new systems (using v2.0 of a.jar) and old systems (using v1.0 of a.jar)
What I want to be able to do is something like below in a method defined in the b.jar:
try {
  temp.newMethod(...);  // <-- newMethod(...) @since a.jar v2.0
catch (java.lang.NoSuchMethodError nsme) {
  // Do nothing since the old version of a.jar
  // doesn't need the special handling introduced
  // in newMethod(...)
}I don't get it through the compiler this way though, any one of you guys who could help me out???
Thanks!
/Jonas

Thanks for your respond Juan, but it's not true that you can use try/catch only for Exceptions, works great with Errors as well...
Only a simple compile configuration error on my side that caused my problem, but I got great help from another direction that made me realize my mistake. Thank God for knowing the right people, once again cheers Heinz!!!
Anyway, there are 2 options to handle this problem:
1. Call the method using reflection
2. Compile the new code (b.jar) using the new a.jar. This way the compiler lets the code pass, and the NoSuchMethodError is easily caught by using a standard try/catch expression as the one included in my example above.
Needless to say I went with option number two since this was exactly what I wanted to do in the first place, but I failed in having the new version of a.jar in the classpath at compile time...
/Jonas (whos app is running like a dream at the moment)

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

  • Javax.naming.NamingException.  Root exception is java.lang.NoSuchMethodError

    I am using WLS5.1 inside visualage environment. I am trying to run
    a Simple EJB which connects to the database and executes two simple
    queries. The client code is as shown below:
    try{
    Context ic = getInitialContext();
    System.out.println("Initial Context created......"); java.lang.Object
    objref = ic.lookup("simpleBean.AtmHome"); System.out.println("objref
    created......");
    AtmHome home = (AtmHome) PortableRemoteObject.narrow(objref, AtmHome.class);
    System.out.println("home created......");
    Atm atm = home.create();
    System.out.println("atm created......");
    atm.transfer(8, 9, 100000);
    catch (NamingException ne)
    ne.printStackTrace(System.out);
    finally {
         try {
              ic.close();
              System.out.println("Closed the connection");
         catch (Exception e) {
              System.out.println("Exception while closing context....." );
    The above code executes fine for the first time but second time
    it throws an exception "javax.naming.NamingException.
    Root exception is java.lang.NoSuchMethodError"
    javax.naming.NamingException. Root exception is java.lang.NoSuchMethodError
         java.lang.Throwable()
         java.lang.Error()
         java.lang.LinkageError()
         java.lang.IncompatibleClassChangeError()
         java.lang.NoSuchMethodError()
         void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
         void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
         javax.naming.NameImpl(java.util.Properties)
         javax.naming.CompositeName()
         weblogic.jndi.toolkit.NormalName(java.lang.String, javax.naming.NameParser)
         weblogic.jndi.toolkit.NormalName weblogic.jndi.toolkit.BasicWLContext.normalizeName(java.lang.String)
         java.lang.Object weblogic.jndi.toolkit.BasicWLContext.lookup(java.lang.String)
         weblogic.rmi.extensions.OutgoingResponse weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(weblogic.rmi.extensions.ServerObjectReference,
    int, weblogic.rmi.extensions.IncomingRequest, weblogic.rmi.extensions.OutgoingResponse)
         java.lang.Throwable weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(int,
    weblogic.rmi.extensions.IncomingRequest)
         void weblogic.rmi.extensions.BasicRequestHandler.handleRequest(weblogic.rmi.extensions.IncomingRequest)
         void weblogic.rmi.internal.BasicExecuteRequest.execute(weblogic.kernel.ExecuteThread)
         void weblogic.kernel.ExecuteThread.run()
    --------------- nested within: ------------------
    weblogic.rmi.ServerError: A RemoteException occurred in the server
    method
    - with nested exception:
    [java.lang.NoSuchMethodError:
    Start server side stack trace:
    java.lang.NoSuchMethodError
         java.lang.Throwable()
         java.lang.Error()
         java.lang.LinkageError()
         java.lang.IncompatibleClassChangeError()
         java.lang.NoSuchMethodError()
         void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
         void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
         javax.naming.NameImpl(java.util.Properties)
         javax.naming.CompositeName()
         weblogic.jndi.toolkit.NormalName(java.lang.String, javax.naming.NameParser)
         weblogic.jndi.toolkit.NormalName weblogic.jndi.toolkit.BasicWLContext.normalizeName(java.lang.String)
         java.lang.Object weblogic.jndi.toolkit.BasicWLContext.lookup(java.lang.String)
         weblogic.rmi.extensions.OutgoingResponse weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(weblogic.rmi.extensions.ServerObjectReference,
    int, weblogic.rmi.extensions.IncomingRequest, weblogic.rmi.extensions.OutgoingResponse)
         java.lang.Throwable weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(int,
    weblogic.rmi.extensions.IncomingRequest)
         void weblogic.rmi.extensions.BasicRequestHandler.handleRequest(weblogic.rmi.extensions.IncomingRequest)
         void weblogic.rmi.internal.BasicExecuteRequest.execute(weblogic.kernel.ExecuteThread)
         void weblogic.kernel.ExecuteThread.run()
    End  server side stack trace
         weblogic.rmi.extensions.WRMIInputStream weblogic.rmi.extensions.AbstractRequest.sendReceive()
         java.lang.Object weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(java.lang.String)
         java.lang.Object weblogic.jndi.toolkit.WLContextStub.lookup(java.lang.String)
         java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
         void simpleBean.AtmClient.main(java.lang.String [])
    NamingException is caught....
    I found out that it hangs at lookup function in the above code.
    Please let me know if I am missing any environment settings.
    Thanks
    Shailaja

    This problem is solved after installing service pack 8 for weblogic
    5.1
    -shailaja
    "shailaja" <[email protected]> wrote:
    >
    I am using WLS5.1 inside visualage environment. I am trying
    to run
    a Simple EJB which connects to the database and executes
    two simple
    queries. The client code is as shown below:
    try{
    Context ic = getInitialContext();
    System.out.println("Initial Context created......"); java.lang.Object
    objref = ic.lookup("simpleBean.AtmHome"); System.out.println("objref
    created......");
    AtmHome home = (AtmHome) PortableRemoteObject.narrow(objref,
    AtmHome.class);
    System.out.println("home created......");
    Atm atm = home.create();
    System.out.println("atm created......");
    atm.transfer(8, 9, 100000);
    catch (NamingException ne)
    ne.printStackTrace(System.out);
    finally {
         try {
              ic.close();
              System.out.println("Closed the connection");
         catch (Exception e) {
              System.out.println("Exception while closing context....."
    The above code executes fine for the first time but second
    time
    it throws an exception "javax.naming.NamingException.
    Root exception is java.lang.NoSuchMethodError"
    javax.naming.NamingException. Root exception is java.lang.NoSuchMethodError
         java.lang.Throwable()
         java.lang.Error()
         java.lang.LinkageError()
         java.lang.IncompatibleClassChangeError()
         java.lang.NoSuchMethodError()
         void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
         void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
         javax.naming.NameImpl(java.util.Properties)
         javax.naming.CompositeName()
         weblogic.jndi.toolkit.NormalName(java.lang.String, javax.naming.NameParser)
         weblogic.jndi.toolkit.NormalName weblogic.jndi.toolkit.BasicWLContext.normalizeName(java.lang.String)
         java.lang.Object weblogic.jndi.toolkit.BasicWLContext.lookup(java.lang.String)
         weblogic.rmi.extensions.OutgoingResponse weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(weblogic.rmi.extensions.ServerObjectReference,
    int, weblogic.rmi.extensions.IncomingRequest, weblogic.rmi.extensions.OutgoingResponse)
         java.lang.Throwable weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(int,
    weblogic.rmi.extensions.IncomingRequest)
         void weblogic.rmi.extensions.BasicRequestHandler.handleRequest(weblogic.rmi.extensions.IncomingRequest)
         void weblogic.rmi.internal.BasicExecuteRequest.execute(weblogic.kernel.ExecuteThread)
         void weblogic.kernel.ExecuteThread.run()
    --------------- nested within: ------------------
    weblogic.rmi.ServerError: A RemoteException occurred in
    the server
    method
    - with nested exception:
    [java.lang.NoSuchMethodError:
    Start server side stack trace:
    java.lang.NoSuchMethodError
         java.lang.Throwable()
         java.lang.Error()
         java.lang.LinkageError()
         java.lang.IncompatibleClassChangeError()
         java.lang.NoSuchMethodError()
         void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
         void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
         javax.naming.NameImpl(java.util.Properties)
         javax.naming.CompositeName()
         weblogic.jndi.toolkit.NormalName(java.lang.String, javax.naming.NameParser)
         weblogic.jndi.toolkit.NormalName weblogic.jndi.toolkit.BasicWLContext.normalizeName(java.lang.String)
         java.lang.Object weblogic.jndi.toolkit.BasicWLContext.lookup(java.lang.String)
         weblogic.rmi.extensions.OutgoingResponse weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(weblogic.rmi.extensions.ServerObjectReference,
    int, weblogic.rmi.extensions.IncomingRequest, weblogic.rmi.extensions.OutgoingResponse)
         java.lang.Throwable weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(int,
    weblogic.rmi.extensions.IncomingRequest)
         void weblogic.rmi.extensions.BasicRequestHandler.handleRequest(weblogic.rmi.extensions.IncomingRequest)
         void weblogic.rmi.internal.BasicExecuteRequest.execute(weblogic.kernel.ExecuteThread)
         void weblogic.kernel.ExecuteThread.run()
    End  server side stack trace
         weblogic.rmi.extensions.WRMIInputStream weblogic.rmi.extensions.AbstractRequest.sendReceive()
         java.lang.Object weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(java.lang.String)
         java.lang.Object weblogic.jndi.toolkit.WLContextStub.lookup(java.lang.String)
         java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
         void simpleBean.AtmClient.main(java.lang.String [])
    NamingException is caught....
    I found out that it hangs at lookup function in the above
    code.
    Please let me know if I am missing any environment settings.
    Thanks
    Shailaja

  • Java.lang.NoSuchMethodError: com.sun.mail.util.SocketFetcher.getSocket

    I am recieving the above error in a FileNet Content Manager environment. The full stack trace is:
    Exception in thread "main" java.lang.NoSuchMethodError: com.sun.mail.util.SocketFetcher.getSocket(Ljava/lang/String;ILjava/util/Properties;Ljava/lang/String;Z)Ljava/net/Socket;
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1195)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322)
    at javax.mail.Service.connect(Service.java:233)
    at javax.mail.Service.connect(Service.java:134)
    at javax.mail.Service.connect(Service.java:86)
    at javax.mail.Transport.send0(Transport.java:162)
    at javax.mail.Transport.send(Transport.java:80)
    at com.bearingpoint.utilities.EMail.send(EMail.java:171)
    at com.bearingpoint.utilities.EMail.send(EMail.java:31)
    at email.main(email.java:11)
    I have spent many hours, fiddling with classpaths, ensuring that the mail.jar, mailapi.jar, smtp.jar, activation.jar are all from the same generation of JavaMail. With my classpath set correctly I can run a simple program constructed to just test whether the box can send out email from the command line.
    The code for the program is:
    public class email {
         public email() {
         public static void main (String args[]) {
              try {
              EMail.send("10.132.147.62", "[email protected]", "[email protected]", "test", "test");
              catch (Exception e) {
                   System.err.println(e.toString());
    Where EMail.send() is:
    public static void send(
    String mail_server_host,
    String email_from,
    String email_to,
    String subject,
    String message) throws AddressException, MessagingException, IOException {
    send(mail_server_host,
    (Authenticator)null,
    new InternetAddress[] {new InternetAddress(email_from)},
    new InternetAddress[] {new InternetAddress(email_to)},
    (InternetAddress[])null,
    (InternetAddress[])null,
    subject,
    message,
    null,
    null);
    which calls:
    public static void send(
    String mail_server_host,
    Authenticator authenticator,
    InternetAddress[] addresses_from,
    InternetAddress[] addresses_to,
    InternetAddress[] addresses_cc,
    InternetAddress[] addresses_bcc,
    String subject,
    String message,
    InputStream[] attachments,
    MimeType[] attachmentTypes) throws MessagingException,IOException {
    Properties properties = new Properties();
    properties.put("mail.smtp.host", mail_server_host);
    MimeMessage msg = new MimeMessage(
    Session.getInstance(properties, authenticator));
    msg.addFrom(addresses_from);
    msg.setRecipients(Message.RecipientType.TO, addresses_to);
    msg.setRecipients(Message.RecipientType.CC, addresses_cc);
    msg.setRecipients(Message.RecipientType.BCC, addresses_bcc);
    msg.setSubject(subject);
    BodyPart bpBody = new MimeBodyPart();
    bpBody.setText(message);
    Multipart mpMessageBody = new MimeMultipart();
    if (attachments == null && attachmentTypes == null) {
    mpMessageBody.addBodyPart(bpBody);
    msg.setContent(mpMessageBody);
    else if (attachments == null) {
    bpBody.setContent(message, attachmentTypes[0].toString());
    mpMessageBody.addBodyPart(bpBody);
    msg.setContent(mpMessageBody);
    else {
    mpMessageBody.addBodyPart(bpBody);
    for (int i=0; i<attachments.length;i++) {
    bpBody = new MimeBodyPart();
    DataSource dsAttachment = new ByteArrayDataSource(attachments, attachmentTypes[i].toString());
    bpBody.setDataHandler(new DataHandler(dsAttachment));
    bpBody.setFileName("attachment." + new MimeFileExtensions(attachmentTypes[i].getValue()).toString());
    mpMessageBody.addBodyPart(bpBody);
    msg.setContent(mpMessageBody);
    Transport.send(msg);
    As said before all .jar files are of the same generation, yet when I run FileNet and the underlying content engine, and try to send an email, I recieve this exception. I have run out of ideas, and any help would be appreciated.
    Things I've tried (multiple times):
    - Removing any old versions of the jar files and replace them with JavaMail 1.3.3_01
    - Have the content engine specifically import the JavaMail jar files.
    While I realize some of you may not know what FileNet is, perhaps you have come across this exception before. Any new ideas would be more then appreciated.
    Thank you for your time.

    I haven't seen this error before so I need more detail to reproduce it.
    It looks like you daisy chained calls to various static send() methods from various classes. Could you write a static main() for the class with the send() method actually doing the work? In the main() write the test case and compile it, test it and if it still doesnt work post it. Please include the import statements as it is germain to the solution.
    Its much easier for me to help you if I don't have to recreate "FileNet" to reproduce your error.
    As an alternative....
    The following code I got from: http://javaalmanac.com/egs/javax.mail/SendApp.html?l=new
    its simpler than you're code but gets the job done (without attachments).
    I've tested it and it works with:
    javac -classpath .;c:\sun\appserver\lib\j2ee.jar;c:\sun\appserver\lib\mail.jar SendApp.java
    java -classpath .;c:\sun\appserver\lib\j2ee.jar;c:\sun\appserver\lib\mail.jar SendApp
    Ran on Windows XP, Sun J2EE 1.4/Appserver Bundle
        import java.io.*;
        import javax.mail.*;
        import javax.mail.internet.*;
        import javax.activation.*;
        public class SendApp {
            public static void send(String smtpHost, int smtpPort,
                                    String from, String to,
                                    String subject, String content)
                    throws AddressException, MessagingException {
                // Create a mail session
                java.util.Properties props = new java.util.Properties();
                props.put("mail.smtp.host", smtpHost);
                props.put("mail.smtp.port", ""+smtpPort);
                Session session = Session.getDefaultInstance(props, null);
                // Construct the message
                Message msg = new MimeMessage(session);
                msg.setFrom(new InternetAddress(from));
                msg.setRecipient(Message.RecipientType.TO, new InternetAddress(to));
                msg.setSubject(subject);
                msg.setText(content);
                // Send the message
                Transport.send(msg);
            public static void main(String[] args) throws Exception {
                // Send a test message
                send("10.1.4.105", 25, "[email protected]", "[email protected]",
                     "test", "test message.");
        }

  • Java.lang.NoSuchMethodError: java.lang.Float: method parseFloat(Ljava/lang/

    java.lang.NoSuchMethodError: java.lang.Float: method parseFloat(Ljava/lang/String;)F not found
    WHAT WOULD MAKE THIS HAPPEN. THIS SEEMS TO WORK IN JDK1.3.1 BUT NOT IN BLACKDOWN 1.1.3_V3
    THIS IS MY CODE:
    try{
    DecimalFormat dfp = new DecimalFormat( "0.00" );
    if(!Price.equals("")) {
    float MyFloat = Float.parseFloat(Price);
    Price = dfp.format(MyFloat);
    }catch(NumberFormatException nfe){
    PriceValid = 1;

    This error says:
    - There is no method called "parseFloat" that receives a String as parameter in class java.lang.Float.
    Look the method "parseFloat" at the class java.lang.Float!!

  • Java.lang.NoSuchMethodError with JDeveloepr 10g

    HI,
    I have a problem with java.lang.NoSuchMethodError in Jdeveloper 10g. The code works fine in Jdeveloper 9iAS. I just migrated them to 10g.
    Here is the error:
    java.lang.NoSuchMethodError: java.util.ArrayList com.ncilp.intranet.CourseHelperBean.getAllCoursesByPosition(int, int)     at com.ncilp.intranet.SelectCourseForm.getCourseSelection(SelectCourseForm.java:72)     at com.ncilp.intranet.SelectCourseForm.reset(SelectCourseForm.java:55)     at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:640)     at selectcourse.jspService(_selectcourse.java:74)     [selectcourse.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)
    This is source code for SelectCourseForm.java
    package com.ncilp.intranet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionError;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import java.util.*;
    public class SelectCourseForm extends ActionForm {
    private String _courseName = new String();
    public String getCourseName() {
    return _courseName;
    public void setCourseName(String courseName) {
    _courseName = courseName;
    private int _courseId = 0;
    public int getCourseId() {
    return _courseId;
    public void setCourseId(int courseId){
    _courseId = courseId;
    private Hashtable pageMap = new Hashtable();
    public Hashtable getPageMap() {
    return this.pageMap;
    public void setPageMap(Hashtable pgMap) { this.pageMap = pgMap; }
    private ArrayList courseLists;
    public ArrayList getCourseLists()
    return this.courseLists;
    public void setCourseLists(ArrayList courses)
    this.courseLists = courses;
    public void reset(ActionMapping mapping, HttpServletRequest request) {
    UserEntityBean userDB = (UserEntityBean)request.getSession().getAttribute("userDB");
    getCourseSelection(request, userDB.getPositionid());
    super.reset(mapping, request);
    public ActionErrors validate(ActionMapping mapping,
    HttpServletRequest request) {
    return super.validate(mapping, request);
    private void getCourseSelection(HttpServletRequest request,int positionId)
    try{
    CourseHelperBean courseBean = new CourseHelperBean();
    Integer userId = (Integer)request.getSession().getAttribute("UserId");
    ArrayList courseList;
    courseList = courseBean.getAllCoursesByPosition(positionId, userId.intValue()); this.courseLists = courseList;
    request.getSession().setAttribute("courseOptions", courseList);
    catch(Exception ex)
    ex.printStackTrace();
    This is part of source code of CourseHelperBean.java
    package com.ncilp.intranet;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    import java.io.*;
    import java.util.*;
    import java.text.*;
    import java.sql.*;
    import javax.sql.*;
    import javax.naming.*;
    public class CourseHelperBean
    public CourseHelperBean()
    * get course info by courseid
    public CourseEntityBean getCourse(int courseid)
    throws IOException, SQLException, NamingException {
    CourseEntityBean object = null;
    // Get a connection.
    Connection conn = DBUtil.getConnection(jdbcEntry);
    StringBuffer st = new StringBuffer( "select title, course_order, description, language from intra_course where courseid = :1 ");
    // Create the prepared statement.
    PreparedStatement stmt = conn.prepareStatement( st.toString(), ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY );
    //Bind variable
    stmt.setInt(1, courseid);
    // Execute the query.
    ResultSet rs = stmt.executeQuery();
    String title = null;
    String number = null;
    String description = null;
    String language = null;
    if( rs != null && rs.first() )
    title = rs.getString( 1 );
    title = rs.getString( 2 );
    description = rs.getString( 3 );
    language = rs.getString( 4 );
    object = new CourseEntityBean( courseid,
    title,
    number,
    description,
    language,
    null
    rs.close();
    stmt.close();
    conn.close();
    return object;
    * get all courses needed to be taken for positionid
    public ArrayList getAllCoursesByPosition(int positionid, int userid)
    throws IOException, SQLException, NamingException {
    ArrayList beans = null;
    SectionHelperBean sectionBean = new SectionHelperBean();
    // Get the connection
    Connection conn = DBUtil.getConnection(jdbcEntry);
    StringBuffer st = new StringBuffer( "select a.courseid, a.title, a.course_order, a.description, a.language ");
    st.append( " from intra_course a, intra_position_course b ");
    st.append( " where b.course_id = a.courseid and b.position_id = :1 ");
    st.append( " order by course_order ");
    // Create the prepared statement.
    PreparedStatement stmt = conn.prepareStatement( st.toString() );
    // Bind the params.
    stmt.setInt( 1, positionid );
    // Execute the query.
    ResultSet rs = stmt.executeQuery();
    int courseid = 0;
    String title = null;
    String number = null;
    String description = null;
    String language = null;
    String status = null;
    ArrayList sections = null;
    beans = new ArrayList( rs.getFetchSize() );
    if( rs != null )
    while( rs.next() ) {
    courseid = rs.getInt( 1 );
    title = rs.getString( 2 );
    number = rs.getString( 3 );
    description = rs.getString( 4 );
    language = rs.getString( 5 );
    sections = sectionBean.getAllSectionByCourse(courseid, userid);
    if( sections.size() == 0 )
    status = "Done";
    else
    status = "Not Done";
    beans.add(new CourseEntityBean( courseid,
    title,
    number,
    description,
    language,
    status
    rs.close();
    stmt.close();
    conn.close();
    return beans;
    These two classes are in the same directory, same package. Can anyone tell me what's wrong? How to fix it?
    Thank you very much.
    Juan

    Hi,
    did you recompile the application ?
    Frank

  • 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

  • Java.lang.NoSuchMethodError: oracle.forms.handler.IHandler.getApplet()Ljava

    Hello to all
    I hope it is right forum for my question
    I have found for error I get in Directprint this following:
    When you migrate to the latest Forms version (10.1.2.3 or 11) and try using a JavaBean created with an older Forms version, you can get the following error, at runtime, in the Java Console:
    Exception in thread "thread applet-oracle.forms.engine.Main-1" java.lang.NoSuchMethodError: oracle.forms.handler.IHandler.getApplet()Ljava/applet/Applet
    The reason is you try to use a Java Bean compiled with an older Forms JAR file, like f90all.jar.
    So, to correct the issue, you have to change the Java code then re-create the JAR file:
    private Main formsMain = null;
    Replace:
    formsMain = (Main) handler.getApplet();
    by:
    // getting the Forms Main class
    try{
    Method method = handler.getClass()
    .getMethod("getApplet", new Class[0]);
    Object applet = method.invoke(handler, new Object[0]);
    if (applet instanceof Main) {
    formsMain = (Main)applet;
    }catch(Exception ex) {;}
    Then create and deploy the new JAR file to your /forms/Java folder.
    My problem is
    But I am very poor in java code, could you guide me to do what that article said, or pointing me where find instruction how do this following
    So, to correct the issue, you have to change the Java code then re-create the JAR file:Can I create Jar Directprint.jar, with command
    jar cf jar-file input-file(s)
    C:\DevSuiteHome_1\jdk\bin\jar cvf DirectPrint.jar DirectPrint.java
    Because when I open jdeveloper to associate (Creating JAR deployments using JDeveloper ) it got error (jdeveloper with debug
    Thanks for any help

    I hope it is right forum for my questionIt's not {noformat}:){noformat}
    Try {forum:id=82}
    Best,
    john

  • Exception in thread "main" java.lang.NoSuchMethodError?

    This is the exact same error I recieved from running ListGames:
    Exception in thread "main" java.lang.NoSuchMethodError: ListGames.getConnection(Ljava/lang/String;)Ljava/sql/Connection;
    at ListGames.getGames(ListGames.java:21)
    at ListGames.main(ListGames.java:7)
    What's wrong?
    ListGames.java:
    import java.sql.*;
    import java.text.NumberFormat;
    import ...util.MysqlConnection; // purposely incomplete
    public class ListGames {
         static Connection conn = MysqlConnection.openMysqlConnection("ds_games");
         public static void main(String args[]) {
              NumberFormat cf = NumberFormat.getCurrencyInstance();
              ResultSet games = getGames();
              try {
                   while (games.next()) {
                        Game g = getGame(games);
                        String msg = Integer.toString(g.year) + ": " + g.title + " (" + cf.format(g.price) + ")";
                        System.out.println(msg);
              } catch (SQLException e) {
                   e.printStackTrace();
                   conn = MysqlConnection.closeMysqlConnection(conn);
         private static ResultSet getGames() {          
              try {
                   Statement s = conn.createStatement();
                   ResultSet rows = s.executeQuery("select title, year, price from my_ds_games order by year, price, title");
                   return rows;
              } catch (SQLException e) {
                   e.printStackTrace();
                   conn = MysqlConnection.closeMysqlConnection(conn);
              return null;
         private static Game getGame(ResultSet games) {
              try {
                   String title = games.getString("Title");
                   int year = games.getInt("Year");
                   double price = games.getDouble("Price");
                   return new Game(title, year, price);
              } catch (SQLException e) {
                   e.printStackTrace();
                   conn = MysqlConnection.closeMysqlConnection(conn);
              return null;
         private static class Game {
              public String title;
              public int year;
              public double price;
              public Game(String title, int year, double price) {
                   this.title = title;
                   this.year = year;
                   this.price = price;
    MysqlConnection.java:
    package ...util; // purposely incomplete
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public final class MysqlConnection {     
         public static final Connection openMysqlConnection(String database) {
              Connection conn = null;
              try {
                   Class.forName("com.mysql.jdbc.Driver");
                   conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/" + database, user, password); // username and password purposely uninitialized
              } catch(SQLException e) {
                   System.out.println("SQLException: " + e.getMessage());
                   System.out.println("SQLState: " + e.getSQLState());
                   System.out.println("VendorError: " + e.getErrorCode());
              } catch(Exception e) {
                   e.printStackTrace();
              } finally {
                   return conn;
         public static final Connection closeMysqlConnection(Connection conn) {
              try {
                   if (conn != null) {
                        conn.close();
                        if (conn == null) {
                             System.out.println("Conection Closed");
              } catch (SQLException e) {
                   e.printStackTrace();
              } finally {
                   return null;
    }

    Darkstar444 wrote:
    I deleted ListGames.class, ListGames$Games.class, and MysqlConnection.class but still the same thing.Then you didn't delete the version of ListGames.class which is actually being used when you run your application. This suggests that your classpath is pointing to an old version as well as to the version produced currently by the compiler. Or that there's an old version which you put into the Java extensions directory.

  • Java.lang.NoSuchMethodError:  solution?

    please !!!
    error message:
    "java.lang.NoSuchMethodError: com.sap.engine.services.webservices.jaxrpc.wsdl2java.BaseGeneratedStub._initParameter(Lcom/sap/engine/services/webservices/jaxrpc/wsdl2java/ServiceParam;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)V
    i came accross this error when i deploy and test a web dynpro project.
    in this project, i add a web services model depreciated into the WD project.
    the web serives is tested ok before i import it to my WD. the function of this WS is to gather a input and return it in upper case.
    can anyone came accross similar problem and found the solution?
    thanks.
    This line cause the problem:
    wdContext.currentxxxxxElement().modelObject().execute();
    More information on the implementation:
    try {
              wdContext.currentRequest_CalNganViDocument_changeCaseElement().modelObject().execute();
              wdContext.nodeResponse().invalidate();
                        String result = wdContext.currentResponseElement().getResult();
              wdComponentAPI.getMessageManager().reportSuccess(result);
    catch(Exception ex) {
              wdComponentAPI.getMessageManager().reportException(ex.getLocalizedMessage(),true);

    Hi
    thannks Poojith. 
    I did add the code in WdDoInit method. 
    please guide me further...
    the webservices print screen:
    http://i95.photobucket.com/albums/l147/leeeb/method.jpg
    here is the code in ini method:
    //@@begin wdDoInit()
         Request_CalNganViDocument_changeCase req = new Request_CalNganViDocument_changeCase();
         wdContext.nodeRequest_CalNganViDocument_changeCase().bind(req);//   nodeWebServiceEmail().bind(req);
        //@@end
    and the action of button:
    //@@begin onActionsend(ServerEvent)
         try {
              wdContext.currentRequest_CalNganViDocument_changeCaseElement().modelObject().execute();
              wdContext.nodeResponse().invalidate();
         //     String result = wdContext.currentResponseElement().getResult();
         //     wdComponentAPI.getMessageManager().reportSuccess(result);
         wdComponentAPI.getMessageManager().reportSuccess("dala");
         catch(Exception ex) {
              wdComponentAPI.getMessageManager().reportException(ex.getLocalizedMessage()+"no method",true);
        //@@end
    Edited by: ENg beng LEe on Mar 7, 2008 4:00 AM
    Edited by: ENg beng LEe on Mar 7, 2008 4:01 AM

  • Java.lang.NoSuchMethodError: oracle.xml.parser.schema.XSDBuilder.build

    The following code works fine with JDeveloper 10.1.2 with the xmlparserv2.jar file provided with JDeveloper.
    =====
    XSDBuilder schemaBuilder = new XSDBuilder();
    URL xsdURL = new URL(schemaUrl);
    XMLSchema xmlschema = (XMLSchema) schemaBuilder.build(xsdURL);
    ========
    However when I try to put this in Oracle Application Server 10.1.2.0.2, I get the following error:
    ====
    java.lang.NoSuchMethodError: oracle.xml.parser.schema.XSDBuilder.build
    ====
    It seems like the oracle version is different in app server 10.1.2.0.2 that that of JDeveloper 10.1.2.
    When we rename the parser, the application works BUT the Oracle Enterprise Manager does not work properly as it depends on the latest version of the parser.
    Please help.
    Thanks,
    Madhav

    I am able to reproduce this problem. I have a jar file MyLib.jar which contains a class MyXmlUtils with a method called validate. This JAR file was created in JDeveloper 9.0.5.2.
    Now I create a Test class in JDeveloper 10.1.2 and use the method in the JAR file and it crashes in build method. The error says "NoSuchMethod".
    However if I import MyXmlUtils class in to the Test project, everything works fine.
    What is going on here?
    // MyLib.jar (Created in JDeveloper 9.0.5.2)
    public class MyXmlUtils
    public static void validate(String xml, String schemaUrl) throws Exception
    XSDBuilder schemaBuilder = new XSDBuilder();
    URL xsdURL = new URL(schemaUrl);
    XMLSchema xmlschema = (XMLSchema) schemaBuilder.build(xsdURL);
    dp.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    dp.setXMLSchema(xmlschema);
    ====
    // Test project created in JDeveloper 10.1.2
    import MyXmlUtils;
    public class Test
    public static void main(String[] args)
    Test t = new Test();
    try
    String xml = "<Person><Name>John</Name></Person>";
    String xsd = "file:\\c:\\Person.xsd";
    MyXmlUtils.validate(xml, xsd);
    catch (Exception e)
    System.out.println(e.getMessage());
    System.exit(1);
    Thanks,
    Madhav

  • Why do I get a "java.lang.NoSuchMethodError"?

    Hello!
    I going to send a mail with a socketconnection, the program worked when I not was using GUI. Now I'm trying to make a GUI-version BUT it's not working. There is no problem to compile the program but when I am running the program I get a "java.lang.NoSuchMethodError"...why?
    I'v not been programming to much so I would really appreciate some tips!
    Some namings are in swedish! Sorry for that!
    Thank you for helping me// MM
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.swing.*;
    public class Lab3 {
    Window frame;
    public void main(String args[]) throws Exception{
         frame=new Window();
         Maila mail     =new Maila(args);
         String file=mail.hittaFil(args);
         mail.maila(file);
    class Window extends JFrame implements ActionListener{
         public JFrame mailFrame;
         public JPanel mailPanel;
         public JTextArea mailMedd;
         public JTextField adressField, filNamnField, mailAdressField, meddelandeField;
         public JLabel webbAdressLabel, filNamnLabel, mailAdressLabel, meddelandeLabel, blankLabel, svarLabel;
         public JButton searchButton, sendButton;
    public Window() {
         mailFrame = new JFrame("Finn och skicka fil");
         mailFrame.setSize(80, 150);
         mailPanel = new JPanel();
         // Add the widgets.
         addWidgets();
         // Add the panel to the frame.
         // Exit when the window is closed.
    mailFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         // Show the frame
         mailFrame.pack();
         mailFrame.setVisible(true);
    // Create and add the widgets for frame
    private void addWidgets() {
         // Create widgets.
         mailMedd = new JTextArea(6,3);
         adressField = new JTextField(30);
         filNamnField = new JTextField(30);
         mailAdressField = new JTextField(30);
         meddelandeField = new JTextField(30);
         webbAdressLabel = new JLabel("Webb-Adress: ", SwingConstants.RIGHT);
         filNamnLabel = new JLabel(" Filnamn: ", SwingConstants.RIGHT);
         blankLabel = new JLabel("", SwingConstants.RIGHT);
         meddelandeLabel = new JLabel(" Meddelande:", SwingConstants.RIGHT);
         svarLabel = new JLabel(" ");
         mailAdressLabel = new JLabel(" Skicka till: ", SwingConstants.RIGHT);
         searchButton = new JButton("Search for file");
         sendButton = new JButton("Send mail");
         // Listen to events from buttons.
         searchButton.addActionListener(this);
         sendButton.addActionListener(this);
         // Add widgets to container.
         Box b1h1 = Box.createHorizontalBox();
         Box b1h2 = Box.createHorizontalBox();
         Box b1h3 = Box.createHorizontalBox();
         Box b1h4 = Box.createHorizontalBox();
         Box b1h5 = Box.createHorizontalBox();
         Box b1h6 = Box.createHorizontalBox();
         Box b1h7 = Box.createHorizontalBox();
         Box bv = Box.createVerticalBox();
         b1h1.add(webbAdressLabel);
         b1h1.add(adressField);
         b1h2.add(filNamnLabel);
         b1h2.add(filNamnField);
         b1h3.add(blankLabel);
         b1h3.add(searchButton);
         b1h6.add(mailAdressLabel);
         b1h6.add(mailAdressField);
         b1h7.add(blankLabel);
         b1h7.add(sendButton);
         b1h4.add(meddelandeLabel);
         b1h4.add(blankLabel);
         b1h5.add(blankLabel);
         b1h5.add(svarLabel);
         bv.add(Box.createVerticalStrut(15));     
         bv.add(b1h1);
         bv.add(Box.createVerticalStrut(3));
         bv.add(b1h2);
         bv.add(Box.createVerticalStrut(15));
         bv.add(b1h3);
         bv.add(Box.createVerticalStrut(25));
         bv.add(b1h4);
         bv.add(Box.createVerticalStrut(15));
         bv.add(mailMedd);
         bv.add(Box.createVerticalStrut(3));
         bv.add(b1h5);
         bv.add(Box.createVerticalStrut(30));
         bv.add(b1h6);
         bv.add(Box.createVerticalStrut(15));
         bv.add(b1h7);
         bv.add(Box.createVerticalStrut(3));
         mailFrame.getContentPane().add(bv, BorderLayout.CENTER);
    // Implementation of ActionListener interface.
    public void actionPerformed(ActionEvent event) {
    class Maila{
    String[] args;
    public Maila(String[] args){
         this.args=args;
         public void maila(String file) throws IOException{
         Socket mailSocket;
         int j=0;
         String from,till,kopia,avsandare,mottagare;
         Vector to = new Vector();
         String subject;
         String data;
         BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
         PrintWriter out;
         BufferedReader mailIn;
         System.out.print("Fr?n: ");
         from=in.readLine();
         System.out.print("Till: ");
         till = in.readLine();
         //System.out.print("Skickakopia till: ");
         //kopia=in.readLine();
         //System.out.print("Avs?ndare: ");
         //avsandare=in.readLine();
         //System.out.print("Mottagare:: ");
         //mottagare=in.readLine();
         StringTokenizer st = new StringTokenizer(till);
         int nr = st.countTokens();
         while(st.hasMoreTokens()){
         nr = st.countTokens();
         to.add(st.nextToken());
         nr = st.countTokens();
         System.out.print("?mne: ");
         subject = in.readLine();
         System.out.println();
         System.out.println("Skriv ditt meddelande. Avsluta med 'Enter'");
         data = in.readLine();
         for(int k=0; k<to.size(); k++){
         String tillfadress = (String)to.elementAt(k);
         Object localhost = InetAddress.getLocalHost();
         mailSocket=new Socket("localhost",25);
         out=new PrintWriter(mailSocket.getOutputStream(), true);     
         mailIn=new BufferedReader(new InputStreamReader(mailSocket.getInputStream()));
         out.println("HELO "+"localhost");
         out.println("MAIL FROM: " + from);
         out.println("RCPT TO: " + tillfadress);
         out.println("DATA");
    out.println("Subject:" + subject);
         out.println("From: " + from);
         out.println("To: " + tillfadress);
         out.println("CC: " + tillfadress);
         out.println(data+file);
         out.println(".");
    //     System.out.println(mailIn.readLine() + "8");
         //out.flush();
         //printer.println("Subject: " + subject);
         //printer.println("From: " + sender);
         //printer.println("To: " + recipient);
         //printer.println("CC: " + cc);
         //printer.println(data);
    public String hittaFil(String[] args){
         int i;
         InputStream in = null;
         OutputStream out = null;
         String text=null;
         try{
         URL url = new URL("http://"+args[0]);
         for(i=2;i<args.length;i++){
              try{
              URL urlx = new URL(url,"~"+args);
              in = urlx.openStream();
              BufferedReader indata = new BufferedReader(new InputStreamReader(in));
              text = indata.readLine();
              catch(FileNotFoundException e){
              System.out.println("Ingen fil med givet namn hittad!");
         catch(Exception e){
         System.err.println(e);
         System.err.println("Usage: java GetURL <URL> <filename>");
         finally{
         try{
              in.close();
              out.close();
         catch(Exception e){}
         return(text);

    I don't see a main method in your code. The one declared in your Lab3.java is not static.

  • Jdeveloper 10.1.3.2 with Oracle AS 10.1.3 : java.lang.NoSuchMethodError: or

    Hi,
    I develop application on Jdeveloper 10.1.3.2 and it's working when I run on OC4J in Jdeveloper. But when I deploy on Oracle Application Server 10.1.3, I got error message like this
    java.lang.NoSuchMethodError: oracle.adf.share.perf.StateTracker.isActive()Z
    at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:94)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Thanks in advance.

    I already install. The others application can run on this AS but it's develop on other version of Jdeveloper such as 10.1.3.1.
    Actually, I used JAZN on my project but when I deploy on AS I got problem that user cannot log-in to the application (look like login is invalid but I already generate janzn-data.xml and orion-application.xml). I think the reason is AS will authen through OID. So, I remove JAZN from my project. After that when I deploy on AS, I got this error.

  • Java.lang.NoSuchMethodError while invoking web service method

    Hi, I have a web service which has two methods exposed as
    A and B.
    I deployed it on weblogic server (7.0 SP4) and fired teh request when I got this error:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <env:Header/>
    <env:Body>
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring/>
    <detail>
    <bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">java.lang.NoSuchMethodError
    I tried deploying the web service on another instance and there the method A was invoked but I got the same error when I tried invoking B.
    I tried it on third instance and there both the methods were successfully invoked.
    The methods A and B name start with capital letter (someone told me that method name should not start with capital letter but that does not hold good here)
    Any idea why this starnge behavior of web service?

    Hi Guys,
    I have solved the above issue by applying the PATCH 1 & PATCH 2 of the
    BPEL 10.1.2 version .
    Thanks
    Kalyan

  • Java.lang.NoSuchMethodError while running the Application on MI client

    Hi Experts
    During development I run my application through NWDS and worked perfect. But when I  run my application only through MI client. It through error on my programmed methods: java.lang.NoSuchMethodError:
    Any advice is highly appreciated!
    Michal

    Thanks for your reply!
    I use MI 2.5 SP20 and that trace is:
    Internal Servlet Error:
    java.lang.NoSuchMethodError: com.sap.myApp.bean.TableViewBean.setAll(Ljava/lang/String;)V
    Thanks for any advice

Maybe you are looking for

  • Updates aren't appearing in my Creative Cloud desktop app

    Hello! All my apps in the desktop app appear to be up to date even though a new version of Photoshop, Muse and Illustrator are available! I updated Photoshop from within Photoshop itself but haven't yet done so with the other two! Thankyou! Louisa

  • Incomplete DataMarts in non-cumulative InfoCubes during extraction proccess

    We want to transfer the stock's information from one infocube to other, we followed the OSS 375098 but we are still having some problems, we have 2 registries by plant,date,material as the result of the reference point in the source cube, now we're t

  • Index Problem in Infocube

    Hi BW lovers I am having problem with the index in one of our cubes. This is the story: 1. I did a lot of compress on a cube with 41 000 000 records in. After that run DB statistics (ended up green). 2. After that I checked index in the performance t

  • Trees and regions

    Hi, i have a strange problem with trees. I create a tree on page 0 using the wizard. by doing this, the tree gets into a region i cant modify during the creation process. After the wizard is done i can see and use my tree... all is fine. Then i want

  • More Ipod Video Problems

    Greetings, After reading these threads all night I guess that the ipod update 1.1 doesn't seem to user friendly. Several solutions involve rolling the update back to 1.0 using the disk that came with the ipod. In the event that the disk gets lost, wh