Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / July 2004

Tip: Looking for answers? Try searching our database.

gotta take a shot

Thread view: 
D. Alvarado - 22 Jul 2004 15:20 GMT
Ok, this error is pretty out there, but here goes.

I want to retrieve an Oracle 8.1.7 CLOB value in a java.lang.String.
I'm running WL 5.1 SP12 on Solaris 8.  The code is

    oracle.sql.CLOB contClob = (oracle.sql.CLOB)
resultset.getClob(headings[k]);   // line 78
    sData = contClob.getSubString(1, (int)contClob.length());  

The type of "headings[k]" is a String.  I have verified that the
"classes12.zip" file is in my Java runtime path.  The error I get is

java.lang.AbstractMethodError
       at com.hrw.xls.GenerateXLSFile.CreateXLSFileWithQuery(GenerateXLSFile.java:78)
       at com.hrw.xls.GenerateXLSFile.CreateXLSFile(GenerateXLSFile.java:41)
       at com.hrw.xls.GenerateXLSFile.createFile(GenerateXLSFile.java:33)
       at jsp_servlet._db_portal.__db_results.getFileLocation(__db_results.java:104)
       at jsp_servlet._db_portal.__db_results._jspService(__db_results.java:213)
       at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
       at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:120)
       at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:945)
       at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:909)
       at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
       at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:392)
       at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:274)
       at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:130)

Any ideas? -
Joe Weinstein - 22 Jul 2004 17:52 GMT
> Ok, this error is pretty out there, but here goes.
>
[quoted text clipped - 10 lines]
> java.lang.AbstractMethodError
>         at com.hrw.xls.GenerateXLSFile.CreateXLSFileWithQuery(GenerateXLSFile.java:78)

Hi. Are you using the oracle driver directly, or are you using Weblogic pools?
Note that Weblogic version 5 is a JDBC 1.0-vintage product... I suspect that
you need to alter your pool URL from "jdbc:..." to "jdbc20:...".

Joe Weinstein at BEA

PS: Your shot was extremely lucky, given the non-technical Subject string. You can also
use the BEA weblogic developer newsgroups for such questions.

>         at com.hrw.xls.GenerateXLSFile.CreateXLSFile(GenerateXLSFile.java:41)
>         at com.hrw.xls.GenerateXLSFile.createFile(GenerateXLSFile.java:33)
[quoted text clipped - 10 lines]
>
> Any ideas? -
D. Alvarado - 23 Jul 2004 16:49 GMT
Damn, Joe, you guys at BEA know what you're doing.  When I changed the
Connection retrieval code from

    return DriverManager.getConnection("jdbc:weblogic:pool:" +
poolName, null);

to

    return DriverManager.getConnection("jdbc20:weblogic:pool:" +
poolName, null);

everything worked great.

Thanks, -

> > Ok, this error is pretty out there, but here goes.
> >
[quoted text clipped - 34 lines]
> >
> > Any ideas? -
Joe Weinstein - 23 Jul 2004 18:48 GMT
> Damn, Joe, you guys at BEA know what you're doing.  When I changed the
> Connection retrieval code from
[quoted text clipped - 10 lines]
>
> Thanks, -

You're very welcome. We want you successful.
Joe Weinstein at BEA

>>>Ok, this error is pretty out there, but here goes.
>>>
[quoted text clipped - 34 lines]
>>>
>>>Any ideas? -
Roedy Green - 22 Jul 2004 18:01 GMT
>java.lang.AbstractMethodError

see http://mindprod.com/jgloss/errormessages.html#ABSTRACTMETHODERROR

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

David Harper - 22 Jul 2004 18:45 GMT
D.Alvarado wrote:
> Ok, this error is pretty out there, but here goes.
[SNIP]
> java.lang.AbstractMethodError
>         at com.hrw.xls.GenerateXLSFile.CreateXLSFileWithQuery(GenerateXLSFile.java:78)
[quoted text clipped - 10 lines]
>         at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:274)
>         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:130)

It appears to me that the com.hrw classes are something that your own
organisation (harcourt.com/hrw.com) has created, so we're not likely to
be able to help you with the fine details unless you post the source
code for com.hrw.xls.GenerateXLSFile

But my guess is that CreateXLSFileWithQuery is calling a function of an
abstract class at line 78 of the source code of GenerateXLSFile.java

The API docs for AbstractMethodError says:

    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.

Either post the source code for us to see, or talk to your colleague who
wrote that class.

David Harper
Cambridge, England


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.