Java.lang.AbstractMethodError: SOAPConnection.call(msg,end)

Hi,
I am trying to get a simple SOAP client running but am encountering the following error when I try to make the SOAP call:
java.lang.AbstractMethodError: javax.xml.soap.SOAPConnection.call(Ljavax/xml/soap/SOAPMessage;Ljavax/xml/messaging/Endpoint;)Ljavax/xml/soap/SOAPMessage;
I have checked the connection and it is an instance of com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection - how is the call method an abstract one?
I thought that the com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory would create a connection with valid implementation of this method.
Any ideas/help would be greatly appreciated
Cheers

FYI: here is the code that I am having the problems with:
System.setProperty("javax.xml.soap.SOAPConnectionFactory",
"com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory");
// Obtain a connection factory and use it to create a connecion
SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
SOAPConnection connection = scf.createConnection();
// Obtain a message factory and use it to create a SOAP envelope with header
// and body elements already in it
MessageFactory mf = MessageFactory.newInstance();
SOAPMessage message = mf.createMessage();
// Get the SOAPPart of the SOAP message which contains the SOAPHeader and
// the SOAPBody
SOAPPart soapPart = message.getSOAPPart();
SOAPEnvelope envelope = soapPart.getEnvelope();
SOAPBody body = envelope.getBody();
// Add content to the SOAPBody
Name name = envelope.createName("Text");
SOAPBodyElement bodyElement = body.addBodyElement(name);
bodyElement.addTextNode("This is the text in the new text node!");
URLEndpoint endpoint = new URLEndpoint "http://localhost:7001/SOAPReceiver/sr");
SOAPMessage reply = connection.call(message, endpoint);

Similar Messages

  • Exception data: java.lang.AbstractMethodError - Calling Remote Method.

    We recently changed some of our CMP fields from primative int's to integer's and now we are receiving Abstract Method Errors at runtime. We have fixed all the methods that use this CMP fields, well at least we think we got them all. Since this are remote methods the sever is setup to pull JAR files from a lib directory on the server. This JAR files have also been updated. Can anyone give me more information about this error or something I might be missing.
    ------------------------------------------------------------------------------------- Errors -------------------------------------------------------------------------------------
    [11/7/07 15:40:23:141 CST] 00000022 ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "getPositionInfo" on bean "BeanId(hr-ear#hr-ejb.jar#PositionService, null)". Exception data: java.lang.AbstractMethodError: com/tgt/supply/pdd/ejb/entity/AmcOffice.getOfcI()Ljava/lang/Integer;
         at com.theamc.hr.ejb.session.PositionServiceBean.getPositionCollections(PositionServiceBean.java:1383)
         at com.theamc.hr.ejb.session.PositionServiceBean.getPositionInfo(PositionServiceBean.java:46)
         at com.theamc.hr.ejb.session.EJSRemoteStatelessPositionService_fae72574.getPositionInfo(EJSRemoteStatelessPositionService_fae72574.java:262)
         at com.theamc.hr.ejb.session._PositionService_Stub.getPositionInfo(_PositionService_Stub.java:272)
         at com.theamc.hr.web.servlet.PositionServlet.createPageObject(PositionServlet.java:153)
         at com.theamc.framework.servlet.ControllerServlet.doGet(ControllerServlet.java:221)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
         at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
    [11/7/07 15:34:10:043 CST] 00000020 ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "getUserOrgInfo" on bean "BeanId(userprofile-ear#userprofile-ejb.jar#UserOrgInfo, null)". Exception data: java.lang.AbstractMethodError: com/tgt/supply/pdd/ejb/entity/AmcOffice.getOfcI()Ljava/lang/Integer;
         at com.theamc.userprofile.ejb.session.UserOrgInfoBean.getUserOfficeValue(UserOrgInfoBean.java:536)
         at com.theamc.userprofile.ejb.session.UserOrgInfoBean.getUserOrgInfo(UserOrgInfoBean.java:84)
         at com.theamc.userprofile.ejb.session.EJSRemoteStatelessUserOrgInfo_13c2e095.getUserOrgInfo(EJSRemoteStatelessUserOrgInfo_13c2e095.java:194)
         at com.theamc.userprofile.ejb.session._UserOrgInfo_Stub.getUserOrgInfo(_UserOrgInfo_Stub.java:273)
         at com.theamc.userprofile.servlet.UserOrgInfoServlet.createPageObject(UserOrgInfoServlet.java:243)
         at com.theamc.framework.servlet.ControllerServlet.doGet(ControllerServlet.java:221)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
         at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
    ------------------------------------------------------------------------------------- Usage -------------------------------------------------------------------------------------
    HashMap ofcRegn = new HashMap();
    AmcOffice off = null;
    AmcOfficeHome offHome = com.tgt.supply.pdd.ejb.entity.EntityHomeFactory.getAmcOfficeHome();
    ArrayList ofcColl = new ArrayList();
    Iterator iter = offHome.findAll().iterator();
    while (iter.hasNext()) {
    off = (AmcOffice) PortableRemoteObject.narrow(iter.next(), AmcOffice.class);
    ofcColl.add(new GenericCode(""+off.getOfcI(),off.getOfcN())); line 1383
    ofcRegn.put(""+off.getOfcI(),""+off.getRegnI());
    The abstract method error is thrown when off.getOfcI() is called. OfcI is the field that was changed from a primative int to an integer.
    Any help is appreciated
    Chris

    I am pretty sure. I am using RAD locally so I have deleted all the generated AccessBean and Deployment code and rerun the deploy. My concern is that these remote methods are using an external JAR file which is loaded when the server is started. I have updated this JAR files, but I am not sure if maybe they are being cached some where.

  • Java Get Clob field error, message "java.lang.AbstractMethodError" in "getClob(2)"

    oracle is 8.1.6, my jdbc is /home/oracle/OraHome1/jdbc/lib/classes111.zip
    my table test_clob's struction
    id int
    content clob
    While I run my class, it report:
    Exception in thread "main" java.lang.AbstractMethodError
    at ...(Oracle_clob.java:72)
    the error line is:
    Clob clob = result.getClob(2);
    the code is :
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    public class Oracle_clob
    public static void main(String[] args)
    Connection con = null;
    int iRowCount = 0;
    Statement stmt = null;
    ResultSet result = null;
    String sDriver = "oracle.jdbc.driver.OracleDriver";
    String sURL = "jdbc:oracle:oci8:@orcl";
    String sUsername = "sj";
    String sPassword = "sj";
    try // Attempt to load the JDBC driver
    { // with newInstance
    Class.forName( sDriver ).newInstance();
    catch( Exception e ) // error
    System.err.println(
    "Failed to load current driver.");
    return;
    } // end catch
    try
    con = DriverManager.getConnection ( sURL,
    sUsername,
    sPassword);
    stmt = con.createStatement();
    catch ( Exception e)
    System.err.println( "problems connecting to " +
    sURL + ":" );
    System.err.println( e.getMessage() );
    if( con != null)
    try { con.close(); }
    catch( Exception e2 ) {}
    return;
    } // end catch
    try {
    String ls_sql;
    ls_sql = "select id, content from test_clob";
    result = stmt.executeQuery(ls_sql);
    String ls_field=null;
    if (result == null) {
    System.out.print("result is null");
    return ;
    if(result.next()){
    Clob clob = result.getClob(2);
    Reader char_stream = clob.getCharacterStream();
    char[] buffer = new char[1024];
    int length = 0;
    ls_field = "";
    String ls_newString;
    try{
    while((length=char_stream.read(buffer))!=-1){
    //for(int i=0; i<length; i++){
    ls_newString = String.valueOf(buffer);
    ls_field = ls_field + ls_newString;
    char_stream.close();
    catch( Exception e3 ) {
    System.out.print("error: "+ e3.getMessage());
    else
    System.out.print("next is false");
    if (ls_field== null ) ls_field = "";
    System.out.print(" field: "+ ls_field);
    result.close();
    catch(SQLException ex) {
    System.out.print("aq.executeQuery: " + ex.getMessage());
    finally
    try { stmt.close(); }
    catch( Exception e ) {}
    try { con.close(); }
    catch( Exception e ) {}
    } // end finally clause
    } // end main
    } // end class Create4JData
    What's wrong with it? Thank you advance.

    getClob is supported by JDBC2.0 which is not supported by classes111.zip. Get the classes12.zip and the corresponding OCI driver by installing oracle client update.

  • Java.lang.AbstractMethodError (rs.getBigDecimal)

    Hello,
    I consistently get a java.lang.AbstractMethodError when I call getBigDecimal() on a ResultSet, as in the example below. I recently downloaded and installed the latest classes12.zip, but this did not help.
    I am connecting to an 8.1.6 server.
    Thanks in advance for you help.
    try
         conn = DriverManager.getConnection(jdbcUrl);
         conn.setAutoCommit(false);
         stmt = conn.createStatement();
         // get the first set of profiles
         log.debug("Executing statement: " + sqlText);
         rs = stmt.executeQuery(sqlText);
         log.debug("Statement executed ok. Now parsing rows...");
         while (rs.next())
         ProfileKeys keys = new ProfileKeys();
         keys.emailAdr = rs.getString("EMAIL_ADR");
    /* code fails on this statement */
         testBD = rs.getBigDecimal("CUST_ID");
         keys.custId = testBD.longValue();
         keys.custId = rs.getBigDecimal("CUST_PRFL_NUM").longValue();
         profiles.add(keys);
         count++;
         if (conn != null) { conn.close(); }
         log.debug("Found " + count + " rows.");
    catch (SQLException e)
         e.printStackTrace();
         while(e != null)
         log.error("NewsletterProfileImporter.getRecords(): ");
         log.error("\nSQL Exception:");
         log.error(e.getMessage());
         log.error("ANSI-92 SQL State: " + e.getSQLState());
         log.error("Vendor Error Code: " + e.getErrorCode());
         e = e.getNextException();
         log.error("Terminating Connection to database.");
         conn.close();

    Hi Stewart,
    You can try these following options.
    1. Try casting your rs.getBigDecimal(columnName) with java.math.BigDecimal and then assign to testBD which hopefully would be of type java.math.BigDecimal. see if this helps.
    or 2. instead of jdbc's resultset, use the result set of Oracle's. This is available in oracle.jdbc.driver package. and the class Name is OracleResultSet
    i.e create ur resultset as following.
    import oracle.jdbc.driver.*;
    OracleResultSet rs = null;
    rs = stmt.executeQuery(sqlstmt);
    now
    java.math.BigDecimal testBD = rs.getBigDecimal(columnName);/cast to big decimal if necessary.
    Reason, this might work because, Oracle's OracleResulSet class has this getBigDecimal(java.lang.String) method already implements, JDBC 2.0's getBigDecimal function.
    you may be aware that getBigDecimal(int) is an abstract method and cannot be used directly. so getBigDecimal(String) is the viable option.
    Hope this helps.
    Thanks
    Hari

  • Java.lang.AbstractMethodError: oracle.jdbc.driver.OracleResultSet.isLast()Z

    Hello.
    I'm trying to detect if a row is the last one of a ResultSet (from a
    executeQuery):
    ResultSet results = sql.executeQuery();
    if (results.isLast())
         out.println("EMPTY");
    But I get this error message:
    Error 500
    Servlet internal error:
    java.lang.AbstractMethodError: oracle.jdbc.driver.OracleResultSet.isLast()Z
         at estructura_10._jspService(mycode_10.java:93)
         at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
    What am I doing wrong?
    Thank you very much.

    What do you want to do with a RS instead at least 1 next() ?
    Only 1 next() - then you know, if it is empty.
    If it's not empty, I assume you will do any retrieval, so you will have needed at least this first next(), don't you?
    Even if you would like to skip the first row (though you have retrieved it), it would not be too much costs.
    If you don't want to retrieve but only count your rows, do a query "SELECT COUNT(*) FROM table WHERE <your condition ...>".
    However, to get the count you would have to do one - only one - next() call.

  • Java.lang.AbstractMethodError if we move to JSDK2.1 in apache jserv

    hi,
    i have currently installed apache http server, apache jserv and jsdk2.0 in a winNt environment. However whenever i try to run my serlvets i get the following exception java.lang.AbstractMethodError.
    Understand this is "Thrown when an application tries to call an abstract method. Normally, this error is caught by the compiler; this error can only occur at run time if the definition of some class has incompatibly changed since the currently executing method was last compiled."
    Tried to compile all the following java files under the specified packages when i installed Apache jserv, such as org.apache.java.io etc but get a lot of compile errors complaining that this and that cannot be found. What should i do? Thanks and deeply appreciated

    Hi,
    Print the stack trace of the exception using printStackTrace() method on exception object. So you can get which is exactly abstract method & in which class that is present.
    Try this out.
    Ajay.

  • SEVERE: caught throwable java.lang.AbstractMethodError: weblogic.webservice

    Hi,
    I am getting the following error while calling the webservice deployed in Weblogic 8.1sp5 version: Please help:
    SEVERE: caught throwable
    java.lang.AbstractMethodError: weblogic.webservice.core.soap.SOAPEnvelopeImpl.normalize()V
    at com.sun.xml.rpc.streaming.XmlTreeReader.parse(XmlTreeReader.java:133)
    at com.sun.xml.rpc.streaming.XmlTreeReader.next(XmlTreeReader.java:103)
    at com.sun.xml.rpc.streaming.XMLReaderBase.nextContent(XMLReaderBase.java:23)
    at com.sun.xml.rpc.streaming.XMLReaderBase.nextElementContent(XMLReaderBase.java:41)
    at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:154)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:443)
    at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:86)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6981)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

    Where you ever able to get this working on WLS? I am dealing with the same problem on WLS 8.1 sp2

  • Java.lang.AbstractMethodError: oracle/jdbc/driver/OracleResultSet.getBlob

    Hi,
    I am using WSAD 4.0.3. While I am running application I am getting this error.
    [10/5/02 13:26:17:984 GMT+08:00] 7a483a9b ExceptionUtil X CNTR0020E: Non-application exception occurred while processing method lodge on bean BeanId(CePAC#CePACEJB.jar#CfsControllerBean, f0b300abe8): java.lang.AbstractMethodError: oracle/jdbc/driver/OracleResultSet.getBlob
    I have set the classpath i.e classes111.zip. This function is to insert record to a database having blob field.
    Waiting for a quick response.

    java.lang.AbstractMethodErrorIn jdbc that often occurs because you are using a newer version of JDBC (the jvm) and an older driver. It occurs because you called a method which exists in the newer JDBC but does not exist in the older driver.
    getBlob() was introduced in java 1.2, so it was not in JDBC 1.0.

  • Java.lang.AbstractMethodError: getUsername

    Hello,
    I am getting the following Error when I call the method,
    logout (true);
    in my JPF method. Any suggestions would be helpful.
    <Warning> <HTTP> <BEA-101162> <User defined listener com.bea.p13n.tracking.listeners.SessionEventListener failed: java.lang.AbstractMethodError: getUsername.
    java.lang.AbstractMethodError: getUsername
    at com.bea.p13n.tracking.events.SessionEndEvent.setUserInfo(SessionEndEvent.java:105)
    at com.bea.p13n.tracking.listeners.SessionEventListener.sessionDestroyed(SessionEventListener.java:83)
    at weblogic.servlet.internal.EventsManager.notifySessionLifetimeEvent(EventsManager.java:163)
    at weblogic.servlet.internal.session.SessionData.remove(SessionData.java:829)
    at weblogic.servlet.internal.session.MemorySessionContext.invalidateSession(MemorySessionContext.java:69)
    Truncated. see log file for complete stacktrace
    >
    Thanks and regards,
    Pazhanikanthan. P

    java.lang.AbstractMethodError: definition:
    http://java.sun.com/j2se/1.4/docs/api/java/lang/AbstractMethodError.html
    (suggestion, bookmark this link - it will help ALOT whenever you see a new class in Java. And Exceptions are simply classes
    http://java.sun.com/j2se/1.4/docs/api/index.html
    An Abstract Method is a method that is not given an implementation in the class where it is declared. This means you can't instantiate that class since all of it's methods are not declared. An example of this is OutputStream. OutputStream has (I believe) an abstract modifier for its void write (int i); method.
    You can't create an instance of OutputStream, and if you did you wouldn't be able to call void write(int i); The other methods are usually defined concretely, but with references to the abstract method, so void write(byte [])
    might be defined as
    void write(byte b[])
    for(int i=0;i<b.length;i++)
    write((int)b);
    Then, subclasses merely have to define write(int i) and all the other methods get their definitions as well:
    public class SubOutputStream extends OutputStream {
    public void write(int i) {
    System.out.write(i);
    Since you normally can't instantiate objects with abstract methods, you usually only get an AbstractMethodError when you have an old version of an object that had a concrete definition, and a new version that has an abstract version.
    In regards to your problem: I don't see where you call the get method. Is that back in the java code? What does your java method expect as a return value? In your jni code, you return the class object of ConnUnitAttributes, rather than the object instance itself that you've created.

  • Postgres BLOB java.lang.AbstractMethodError

    I get this error everytime I try to call ps.setBinaryStream(...); I am using Postgres version 8.3.
            java.lang.AbstractMethodError: org.postgresql.jdbc3.Jdbc3PreparedStatement.setBinaryStream(ILjava/io/InputStream;)V         at com.cpsoft.mynotes.database.notes.NotesManager.addNote(NotesManager.java:72)         at com.cpsoft.mynotes.FileUploadProcessor.doPost(FileUploadProcessor.java:80)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)         at com.cpsoft.mynotes.filter.SignedOnFilter.doFilter(SignedOnFilter.java:25)         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)         at com.cpsoft.mynotes.filter.Logger.doFilter(Logger.java:32)         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)         at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)         at java.lang.Thread.run(Thread.java:619)
                StringBuilder insertQuery = new StringBuilder("INSERT INTO Notes(note_id, note_owner, note_title, note_description, note_keywords,      note_category, school, school_abbreviation, teatcher, class, file_name, file_ready)VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?);");             PreparedStatement ps = conn.prepareStatement(insertQuery.toString());             ps.setInt(1, id);             ps.setString(2, inf.getOwner());             ps.setString(3, inf.getTitle());             ps.setString(4, inf.getDescription());             ps.setString(5, inf.getKeywords());             ps.setString(6, inf.getType());             ps.setString(7, inf.getSchool());             ps.setString(8, inf.getAbbreviation());             ps.setString(9, inf.getTeatcher());             ps.setString(10, inf.getClassName());             ps.setString(11, inf.getFileLocation());             ps.setBoolean(12, true);             ps.setBinaryStream(13, data);             ps.executeUpdate();

    Stevejavadba wrote:
    What is the workaround for this?? I have been googling and trying different things for a number of hours. We have a remote api and can not use the LargeObjectAPI: seems that the bytea is the way to go on the backend. 1GB is ok.
    But how do we get binary data to be stored in a remote postgres database using jdbc lob/blob api??So you know that a particular API works? And you are asking for a workaround for another API that does the same thing? Obviously the work around would be to use the one that works.

  • Exception in thread main java.lang.NoClassDefFoundError: com/object/msg/Sms

    Exception in thread main java.lang.NoClassDefFoundError: com/object/msg/SmsService
    caused by: java.lang.NotFoundException: com.object.msg.SmsService
    at java.net........................
    at java.security.......
    I'm trying to send SMS using this code and it gives above Exception during Runtime.
    import java.io.File;
    import com.objectxp.msg.*;
    public class SendSMS
    public static void main(String[] args)
    SmsService service = null;
    try {
    // Configuration
    File config = new File("jsms.conf");
    // create service object.
    service = new GsmSmsService();
    service.init(config);
    // create a new Message.
    Message msg = new Message();
    msg.setRecipient("7894561");
    msg.setMessage("jSMS is cool!");
    // Connect to the device
    service.connect();
    // send the Message
    service.sendMessage(msg);
    System.out.println("Message sent successfully, ID is ");
    } catch (Exception ex) {
    System.err.println("Message could not be sent: "+ex.getMessage());
    ex.printStackTrace();
    } finally {
    if (service != null) {
    try {
    service.disconnect();
    } catch( Exception unknown ) {}
    service.destroy();
    }

    run this one in command prompt and then convert the applet using converter tool
    JC_HOME = C:\java_card_kit-2_2_2\bin\
    set CLASSES=%JCHOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;
    D:\NareshPalle\jcardRE\Smart\src>java -classpath %_CLASSES% com.sun.javacard.con
    verter.Converter -out EXP JCA CAP -exportpath .\exp -applet 0x0a:0x00:0x00:0x00:0x0e:0x01:0x02:
    0x03:0x04:0x05:0x06 PackageName appletName 0x01:0x02:0x03:0x04:0x05:0x0
    6:0x07:0x08 1.0
    or
    go to following directory and run the converter tool in command prompt
    step 1: cd C:\java_card_kit-2_2_2\bin\
    then run this command under the above directory
    step 2:converter -classdir E:\Pathof Your applet class file -out EXP JCA CAP -exportpath E:\path of exp files folder -applet AID PackageName AppletName PackAID major.minor no
    For more doubts mail me....
    *[removed by moderator]*
    Thanks and Regards
    NareshPalle
    Edited by: EJP on 31/03/2012 20:09: removed your email address. Unless you like spam and unless you think these forums are provided for your personal benefit only, posting an email address here serves no useful purpose whatsoever.

  • Blob and java.lang.AbstractMethodError

    I can't make this code (below) to work. I get an java.lang.AbstractMethodError trying. Does anyone have a clue about what might cause this error?
    My setup:
    jsdk 1.4
    Oracle 8.1.7
    Forte4J 4.0
    Thanks in advance
    Roland
    ---------- the code --------------
    conn = cp.getConnection(_database, user, password);
    conn.setAutoCommit(true);
    PreparedStatement stat = conn.prepareStatement(sql.toString());
    stat = conn.prepareStatement(sql.toString());
    stat.setLong(1, id);
    ResultSet res = stat.executeQuery();
    if(res.next()){
    setId(res.getLong("id"));
    Blob b = res.getBlob("data");
    stat.close();

    PreparedStatement stat =
    conn.prepareStatement(sql.toString());
    stat = conn.prepareStatement(sql.toString());yes there is something wrong there but if your problem is
    occurring with
    Blob b = res.getBlob("data");then the problem is that the ResultSet you are using does not implement this method. getBlob is a method that was introduced in JDBC 2.0. in fact the Blob interface itself was introduced in JDBC 2.0.
    you can try on of the following...
    get a new driver that implements getBlob. for oracle i think you will be fine. you can get a new driver here http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html
    the other option if you cannot get a new driver is to use the getBinaryStream() method of ResultSet to retrieve your data

  • Java.lang.AbstractMethodError

    In my application when i try to use resultSet.getClob() method i get an exception under tomcat. Could any body help me retrieveing Clob object from database in java Clob. Thanks.

    Here is the Stacktrace, but it will hardly help, since it doesn't tell bout the jdbc or connection probs. And Let me tell you I used jdbc extensively in my app there is not a single problem for other data type such as String numbers So only prob is Clob. I following stack ClauseServlet is the Servlet in which the method makeDocLink is the method which i previously posted.
    (Just for ur info). Should u need any detail pls let me know. Thanx for ur interest.
    java.lang.AbstractMethodError
         at items.ClauseServlet.makeDocLink(ClauseServlet.java:38)
         at items.ClauseServlet.doPost(ClauseServlet.java:26)
         at items.ClauseServlet.doGet(ClauseServlet.java:16)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)

  • Java.lang.AbstractMethodError: getTextContent

    Hi,
    I've an application that has been build using hibernate, spring and icefaces and when I update my application using UPDATE button the application could not restart (or if it's stopped doesn't restart)
    I always need to restart the whole server to get it running. (I'm been using Weblogic 9.2) here is the stack trace
    deployment request with ID '1246006508862' for task '97'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:891)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:566)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:136)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:104)
         at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:139)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:320)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:815)
         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1222)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:433)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:161)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    java.lang.AbstractMethodError: getTextContent
         at com.sun.faces.config.processor.AbstractConfigProcessor.getNodeText(AbstractConfigProcessor.java:140)
         at com.sun.faces.config.processor.FactoryConfigProcessor.processFactories(FactoryConfigProcessor.java:148)
         at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:125)
         at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:203)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)
         at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:376)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:82)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1610)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2751)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:889)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:334)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:205)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:118)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:205)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:566)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:136)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:104)
         at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:139)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:320)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:815)
         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1222)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:433)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:162)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    It's look like the dom xml implementation is not well found
    java.lang.AbstractMethodError: getTextContent
         at com.sun.faces.config.processor.AbstractConfigProcessor.getNodeText(AbstractConfigProcessor.java:140)
         at com.sun.faces.config.processor.FactoryConfigProcessor.processFactories(FactoryConfigProcessor.java:148)
         at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:125)
         at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:203)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)
         at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:376)
    Here'is the full list of jar I've
    aopalliance-1.0.jar
    asm-1.5.3.jar
    axis.jar
    backport-util-concurrent-2.2.jar
    cglib-2.1_3.jar
    commons-beanutils-1.8.0.jar
    commons-codec-1.3.jar
    commons-collections-3.2.jar
    commons-dbcp-1.3.0.jar
    commons-digester-1.8.jar
    commons-discovery-0.2.jar
    commons-el-1.0.jar
    commons-fileupload-1.2.jar
    commons-lang-2.3.jar
    commons-logging-1.1.1.jar
    commons-logging-api-1.1.jar
    commons-pool-1.3.jar
    dom4j-1.6.1.jar
    el-ri.jar
    hibernate-3.2.6.ga.jar
    hibernate-annotations-3.3.1.GA.jar
    hibernate-commons-annotations-3.0.0.ga.jar
    icefaces-comps.jar
    icefaces-facelets.jar
    icefaces.jar
    jaas.config
    jaxrpc.jar
    jsf-api-1.2.jar
    jsf-impl-1.2.jar
    jsp-api-2.1-6.0.2.jar
    jstl.jar
    jta-1.0.1B.jar
    junit-4.6.jar
    log4j-1.2.15.jar
    merlina-7.1.0.jar
    out.txt
    persistence-api-1.0.jar
    saaj.jar
    spring-aop-2.5.5.jar
    spring-aspects-2.5.5.jar
    spring-beans-2.5.5.jar
    spring-context-2.5.5.jar
    spring-core-2.5.5.jar
    spring-jdbc-2.5.5.jar
    spring-orm-2.5.5.jar
    spring-tx-2.5.5.jar
    spring-web-2.5.5.jar
    wsdl4j.jar
    xercesImpl.jar
    xml-apis.jar

    Look at the documentation for AbstractMethodError.
    http://java.sun.com/j2se/1.5.0/docs/api/index.html
    Anyway, you're apparantly running with some unexpected outdated classes in the classpath.

  • Java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicati

    Hi,
    I have an application which is executing properly in jboss 3.2.5 but as we are trying to upgrade the jboss version i am getting above mentioned error.
    The application is deployed in jboss as an ear file and the ear contains one jar file that has been removed from the ear and still i am getting this error.
    I am posting the full stack trace over here.
    ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;
            at org.apache.jsp.Jsp.Common.logout_jsp._jspInit(logout_jsp.java:22)
            at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
            at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:158)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at clime.messadmin.filter.MessAdminFilter.doFilter(MessAdminFilter.java:104)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
            at java.lang.Thread.run(Thread.java:595)It is happening in logout.jsp, but all other main jsp's are working properly ( login.jsp etc ).
    I am posting the jsp code over here.
    <html>
    <head>
           <script language="JavaScript">
         function init()  {
           window.history.forward(1);
       </script>
      </head>
    <body  onLoad="init();" >
      <%@ page language="java" %>
      <%@ page isThreadSafe="true" %>
        <%
         session.invalidate();
         response.sendRedirect("../../logout.html");
    %>
    </body>
    </html>Please guide me to solve the issue.

    evnafets wrote:
    My guess would be that you have some of the servlet classes deployed with your application.
    Yes.
    Any jar files that contain the javax.servlet.* packages should NOT be part of a web application, but are intended to be on the server.
    First up all there is no such jar files.
    Common candidates:
    servlet.jar
    servlet-api.jar
    j2ee.jar
    All those jars are in lib directory of my app server. I have jsp-api and servlet-api.jar as i am using embedded tomcat 6 in jboss appsever.
    Check the WEB-INF/lib directory of your web application to see that there are none of those there.
    Nothing similar deployed in your ear file?I have extracted my application ear , jar and war then when i checked i found one jar file inside the war but in that no servlet*.jarr files. It is my application oriented files only. I have deleted this ar files and then i executedi am getting same error. Is there any way to find out the exact issue ????.
    Regards
    Rasa

Maybe you are looking for