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
Similar Messages
-
Java.lang.AbstractMethodError: oracle.sql.BLOB.setBytes
Hi ,
When I deployed an application ( In Oracle 10g )that uses oracleresultset i am getting an error as follows java.lang.AbstractMethodError: oracle.sql.BLOB.setBytes
anybody has a clue ?
VishnuHi Vishnu,
I got the same error, and also when trying blob.setBinaryStream(1L);
By me the DB is an 8.1.6 and the JDBC Driver I tried are both the new 10.1 and older ones.
Did you solve your problem ? In which case I would be interested in a solution. A work around seems to be the blob.getBinaryOutputStream() method, but this is a problem for me since it is not portable.
Regards
Michele -
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. -
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. -
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
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.jarLook 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. -
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 -
Java.lang.AbstractMethodError on data source verification
Using the easysoft JDBC-ODBC bridge to connect to an Access DB. Has been working great since CF6. Currently no issues on CF9(solaris). We're working to upgrade our servers to CF10 on Redhat and have everything working except when we attemtp to verify our data sources that use this driver we get the following error:
In the CF administrator: Connection verification failed for data source: csd_training_index
java.lang.AbstractMethodError: null
The root cause was that: java.lang.AbstractMethodError
"Error","ajp-bio-8012-exec-1","04/08/14","16:50:43",,""
in the server.log file
Note: EasySoft says "There is nothing in that stack trace to indicate CF is even connecting with Easysoft."
Stack trace:
"Error","ajp-bio-8012-exec-1","03/17/14","11:35:11",,""
java.lang.AbstractMethodError
at coldfusion.server.j2ee.sql.JRunConnection.<init>(JRunConnection.java:133)
at coldfusion.server.j2ee.sql.pool.JDBCPool.create(JDBCPool.java:555)
at coldfusion.server.j2ee.sql.pool.JDBCPool._checkOut(JDBCPool.java:472)
at coldfusion.server.j2ee.sql.pool.JDBCPool.checkOut(JDBCPool.java:378)
at coldfusion.server.j2ee.sql.pool.JDBCPool.requestConnection(JDBCPool.java:785)
at coldfusion.server.j2ee.sql.pool.JDBCManager.requestConnection(JDBCManager.java:123)
at coldfusion.server.j2ee.sql.JRunDataSource.getConnection(JRunDataSource.java:135)
at coldfusion.server.j2ee.sql.JRunDataSource.getConnection(JRunDataSource.java:122)
at coldfusion.sql.CFDataSource.getConnection(CFDataSource.java:45)
at coldfusion.sql.Executive.verifyDatasource(Executive.java:492)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at coldfusion.runtime.StructBean.invoke(StructBean.java:508)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2465)
at cfudflibrary2ecfm1867463752$funcVERIFYDSN.runFunction(E:\cf10_final\cfusion\wwwroot\CFIDE\administrator\datasources\udflibrary.cfm:14)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:518)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2624)
at cfindex2ecfm782328217._factor12(E:\cf10_final\cfusion\wwwroot\CFIDE\administrator\datasources\index.cfm:450)
at cfindex2ecfm782328217._factor17(E:\cf10_final\cfusion\wwwroot\CFIDE\administrator\datasources\index.cfm:396)
at cfindex2ecfm782328217._factor18(E:\cf10_final\cfusion\wwwroot\CFIDE\administrator\datasources\index.cfm:168)
at cfindex2ecfm782328217.runPage(E:\cf10_final\cfusion\wwwroot\CFIDE\administrator\datasources\index.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:244)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:444)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at coldfusion.filter.IpFilter.invoke(IpFilter.java:64)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:449)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:112)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
at coldfusion.CfmServlet.service(CfmServlet.java:219)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at coldfusion.filter.ClickjackingProtectionFilter.doFilter(ClickjackingProtectionFilter.java:75)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknownkeithal wrote:
Using the easysoft JDBC-ODBC bridge to connect to an Access DB. Has been working great since CF6. Currently no issues on CF9(solaris). We're working to upgrade our servers to CF10 on Redhat and have everything working except when we attemtp to verify our data sources that use this driver we get the following error:
In the CF administrator: Connection verification failed for data source: csd_training_index
java.lang.AbstractMethodError: null
The root cause was that: java.lang.AbstractMethodError
"Error","ajp-bio-8012-exec-1","04/08/14","16:50:43",,""
in the server.log file
Note: EasySoft says "There is nothing in that stack trace to indicate CF is even connecting with Easysoft."
Stack trace:
"Error","ajp-bio-8012-exec-1","03/17/14","11:35:11",,""
java.lang.AbstractMethodError
at coldfusion.server.j2ee.sql.JRunConnection.<init>(JRunConnection.java:133)
The error suggests to me that the package coldfusion.server.j2ee.sql may still contain throw-backs to JRun, even after ColdFusion 10's move to Tomcat. Adobe's Coldfusion team may have to review their design to detect remnants of JRun that would break in Tomcat. -
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 -
I am evaluating the sun RI of javax.sql package . I downloaded the jdbc_rowset_tiger-1_0_1-mrel-jwsdp.zip package and installed in my machine.
I tried the JdbcRowSet implmenation and it worked pretty smooth. I wanted to try the disconnected Rowset implementation. I tried CachedRowSet Implementation with thin driver. I get the following error message.
Exception in thread "main" java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.locatorsUpdateCopy()Z
at com.sun.rowset.CachedRowSetImpl.execute(Unknown Source)
at com.sun.rowset.CachedRowSetImpl.execute(Unknown Source)
at CachedRowSetSampl.main(CachedRowSetSampl.java:79)
I am using thin driver with Oracle8i db.
Appreciate any early responsesI had the same problem initially.
I fixed it by downloading an updated ojdbc14.jar (1).
It may be because I downloaded the ocrs12.jar from there a bit earlier and the versions of ojdbc14.jar and ocrs12.jar need to match (that is, come from the Oracle10g suite of jars).
Here is the class I used:
import java.sql.*;
import javax.sql.*;
import com.sun.rowset.WebRowSetImpl;
import com.sun.rowset.providers.RIXMLProvider;
public class test {
public static void main(String[] args) {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
WebRowSetImpl wrs = new WebRowSetImpl();
wrs.setCommand("select table_name from user_tables");
wrs.setUsername("scott");
wrs.setPassword("tiger");
wrs.setUrl("jdbc:oracle:thin:@paramount.com:1521:ORCL");
wrs.execute();
wrs.writeXml(System.out);
} catch (Exception e) {
System.out.println("Exception:"+e);
Dale(1) http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc101020.html (Oracle Database 10g JDBC Drivers) -
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 appreciatedHi,
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. -
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
ChrisI 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.
-
I am using oracle 10.2.0.1.0. I can able to connect the database using sqlplus. I am executing some ant task. While running the ant script I am getting the following exception.
[java] INFO: Locale id is:1
[java] Oct 16, 2006 7:20:24 PM com.cramer.globalisation.resourcebundleloader.DataBaseMgr getLocaleI
d
[java] INFO: Using the default locale ID :1
[java] Oct 16, 2006 7:20:24 PM com.cramer.globalisation.resourcebundleloader.ResourceBundleReader l
oadPropertyFile
[java] INFO: .\html\homepages\thersholdhomepage\config\bundle\thersholdhomepage.properties is Crame
r resource bundle file
[java] java.lang.AbstractMethodError: oracle.jdbc.driver.T4CConnection.setSavepoint(Ljava/lang/Stri
ng;)Ljava/sql/Savepoint;
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[java] at org.apache.tools.ant.Task.perform(Task.java:364)
[java] at org.apache.tools.ant.Target.execute(Target.java:341)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[java] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.ja
va:37)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[java] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
[java] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[java] at org.apache.tools.ant.Task.perform(Task.java:364)
[java] at org.apache.tools.ant.Target.execute(Target.java:341)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[java] at org.apache.tools.ant.Main.runBuild(Main.java:668)
[java] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
[java] Caused by: java.lang.AbstractMethodError: oracle.jdbc.driver.T4CConnection.setSavepoint(Ljav
a/lang/String;)Ljava/sql/Savepoint;
[java] at com.cramer.globalisation.resourcebundleloader.DataBaseMgr.insertBundleRow(DataBaseMgr
.java:118)
[java] at com.cramer.globalisation.resourcebundleloader.ResourceBundleLoader.loadPropertyFiles(
ResourceBundleLoader.java:77)
[java] at com.cramer.globalisation.resourcebundleloader.ResourceBundleLoader.main(ResourceBundl
eLoader.java:47)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:324)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
[java] ... 24 more
[java] --- Nested Exception ---
[java] java.lang.AbstractMethodError: oracle.jdbc.driver.T4CConnection.setSavepoint(Ljava/lang/Stri
ng;)Ljava/sql/Savepoint;
[java] at com.cramer.globalisation.resourcebundleloader.DataBaseMgr.insertBundleRow(DataBaseMgr
.java:118)
Can anyone help me in this issue?.....few of my colligue are using the same database, and
they are not getting these kind of error. Only my
system and 2 more system is giving these problem.
All of us are using the same version of oracle
only.I said driver not database.
>
Only I am and 2 more friends are getting the "
java.lang.AbstractMethodError:
oracle.jdbc.driver.T4CConnection.setSavepoint(Ljava/la
ng/String")
"And are you running the same exact code as everyone else?
Additionally you might want to check your class path to verify that only what is required is in that.
You haven't put anything in the ext directory have you? -
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. Pjava.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.
Maybe you are looking for
-
I have just purchased a MacBook Pro. My wife's MacBook Pro is less than a year old. When I start up my new computer, it thinks I am my wife and gives me the option of logging on as my wife or as a guest user. How do I correct this misidentificatio
-
Free? Setup and Connection in "Get Connected"
Just to see if anyone had the "No connection Fee" experience with the recent BT's promotion in their "Get Connected" package. My BT line was installed on 28th Jan after joining above promotion which was due to expired end of Jan 2010 and was extendin
-
Hi, My scenario is: we are getting different EDI orders from 5 different customers and should post them in ERP as sales orders: we are using AS2 adapter as sender and only one mail box is used to collect the data: For this, 1.Do we need to create 5 s
-
Recording mixer for F756NR notebook
Hi All, I have been using a Presario F756NR notebook for awhile and revisted an old chat client. This chat client uses recording mixer(like in xp). I did some searching on how to get to this in vista. I found a website that suggested enabling hidden
-
Is there a way to recover lost voicemail messages on an iPhone 4S?
Is there a way to recover lost voicemail messages on an iPhone 4S? I listened to a message yesterday but wanted to keep it so I could show it to somebody else. However today when I went to show it to them, it was no longer there. Hopefully somebody c