Got AbstractMethodError with PreparedStatement.setCharacterStream

Hi,
I'm running WLS510SP12 NT with Oracle 5.0.6 and JDBC-Thin-Drivers, and
i'm getting this exception when writing a character stream into a
prepared sql-statement:
java.rmi.RemoteException: Exception in non-transactional EJB invoke:
java.lang.AbstractMethodError:
weblogic/jdbc/pool/PreparedStatement.setCharacterStream
     at weblogic.jdbc20.rmi.internal.PreparedStatementImpl.setCharacterStream(PreparedStatementImpl.java:330)
     at weblogic.jdbc20.rmi.SerialPreparedStatement.setCharacterStream(SerialPreparedStatement.java:421)
     at com.mybean.add(BOFaxBean.java:970)
Note that the Exception is not thrown in the oracle jdbc-driver, but
in a weblogic class.
Sourcecode:
pstm = con.prepareStatement("INSERT INTO FAX VALUES(?,?,?,?,?,?,?)");
pstm.setCharacterStream(3, new StringReader(sFAX.toString()),
sFAX.length() );
Can anybody help?
Regards,
Andy

Andreas Lange wrote:
Hi,
I'm running WLS510SP12 NT with Oracle 5.0.6 and JDBC-Thin-Drivers, and
i'm getting this exception when writing a character stream into a
prepared sql-statement:
java.rmi.RemoteException: Exception in non-transactional EJB invoke:
java.lang.AbstractMethodError:
weblogic/jdbc/pool/PreparedStatement.setCharacterStream
at weblogic.jdbc20.rmi.internal.PreparedStatementImpl.setCharacterStream(PreparedStatementImpl.java:330)
at weblogic.jdbc20.rmi.SerialPreparedStatement.setCharacterStream(SerialPreparedStatement.java:421)
at com.mybean.add(BOFaxBean.java:970)
Note that the Exception is not thrown in the oracle jdbc-driver, but
in a weblogic class.That class is just catching all exceptions from the DBMS driver, and casting them to a SQLException.
It's the Oracle driver you're using. It doesn't even know about that JDBC 2.0 call. It must be a
JDBC 1.0 driver.
Joe
>
>
Sourcecode:
pstm = con.prepareStatement("INSERT INTO FAX VALUES(?,?,?,?,?,?,?)");
pstm.setCharacterStream(3, new StringReader(sFAX.toString()),
sFAX.length() );
Can anybody help?
Regards,
Andy

Similar Messages

  • PreparedStatement.setCharacterStream()  length

    It seems perverse that PreparedStatement.setCharacterStream() requires the length of the character stream as a parameter. Is there a value you can feed it so it will simply read to EOF?
    public void setCharacterStream(int�parameterIndex,
    Reader�reader,
    int�length)
    throws SQLException
    Sets the designated parameter to the given Reader object, which is the given number of characters long. When a very large UNICODE value is input to a LONGVARCHAR parameter, it may be more practical to send it via a java.io.Reader object. The data will be read from the stream as needed until end-of-file is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format. Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
    Parameters:parameterIndex - the first parameter is 1, the second is 2, ...reader - the java.io.Reader object that contains the Unicode datalength - the number of characters in the stream Throws: SQLException - if a database access error occurs

    user_7000002 wrote:
    We seem to be having problems inserting and retrieving the data back into UTF-8.
    I am trying to insert a text with a smart quote i.e. '’' character but it doesn't seem to get written correctly and comes back as if it gets re-encoded twice to UTF-8 and comes back as the charcter ''
    My oracle database encoding is WE8ISO8859P1.You have the issue right there.
    If by smart quotes you are referring to the Microsoft specific curvy quotes of e.g. 125x in the "C1 control code range", then it simply won't work.
    You can not store such characters in a database with a character set based on standard ISO 8859-1, because the character repertoire does not define "smart quotes". Put differently, your database needs to be "at least" WE8MSWIN1252 (or other superset).
    On a side note; NLS questions and discussions have a separate forum: [Globalization Support|http://forums.oracle.com/forums/forum.jspa?forumID=50].
    Edited by: orafad on Feb 13, 2009 10:00 AM

  • The HP C4480 all in one series PRINTER that I got free with my i-Mac is printing TINY print despite that my computer is set at 13 font Helvetica. How to reset the printer to normal print?

    The HP C4480 all in one series PRINTER that I got free with my i-Mac is printing TINY print despite that my computer is set at 13 font Helvetica. How to reset the printer to normal print?

    Is the Paper Size: set to US Letter and Scale: set to 100%
    Dennis

  • TS3274 its almost 10 months,i purchased ipad2 32 3g wifi.itinially i got problem with applications shut off frequently now since last 4 months my ipad starts with a message (connect iTunes)like first time start and going to restore mode and it occurs freq

    its almost 10 months,i purchased ipad2 32 3G wifi.itinially i got problem with applications and safari shut off frequently now since last 4 months my ipad starts with a message (connect iTunes)like first time start and going to restore mode and it occurs frequently.plz advise.

    If you have followed the standard Apple troubleshooting processes (see user guide )
    probably a trip to the local Apple Store Genius bar is called for before warranty runs out
    Assuming the iPad has been released in your Country if not you may have to take it to a
    neighbouring Country where it is available
    This page will tell you ,via the drop down menu Countries that can support iPad
    http://support.apple.com/kb/index?page=servicefaq&geo=United_Kingdom&product=ipa d

  • Just got home with my ipad and its asking for a passcode which i haven't set.....any ideas please???

    just got home with my new ipad and its asking for a passcode to let me in - haven't set one up, wasn't told about this in store, any ideas please???? Have tried my apple password & my passcode i use with my i-phone but none works.

    Was this a used iPad? Try going to Settings > General > Reset > Erase All Content and Settings. This will completely restore the iPad to brand new. It will erase all content, but since the iPad is brand new and you haven't made any changes to it, there is no content that will be erased. Except the passcode, of course

  • I ve updated my i pod touch to version 6.0.1. Installation got failed with some error msg, and now my i pod is not getting detedted in my system.Help me to fix it up.

    i ve updated my i pod touch to version 6.0.1. Installation got failed with some error msg, and now my i pod is not getting detedted in my system.Help me to fix it up.

    What's the error mesage?

  • After I've upgraded my iPhone iOS to 5.0.1, I got problems with connectivity. If my iPhone lose network, then it gets frozzen and I cannot make calls. After restart the telephone still does not work.

    After I've upgraded my iPhone iOS to 5.0.1, I got problems with connectivity. If my iPhone lose network, then it gets frozzen and I cannot make calls. After restart the telephone still does not work.

    1. Download the iOS 5.0.1: http://www.tobias-hartmann.net/2011/11/download-ios-5-0-1-veroffentlicht-direkte -downloadlinks/
    2. open itunes,Click in iTunes while holding down the Shift key (on Windows) or Alt key (Mac) to restore and firmware

  • PO got created with item blank

    Hi,
    The Purchase Order got created with item blank.
    first user created PR, by taking the reference of that PR they created PO. after saving only header details are there in PO and line items are missing.
    This issue in Production so we cant create PO.
    any way to check this issue ? since no background job is involved only foreground (manullay) they created.
    Last week i raised another thread for PR creation item blank.
    [ The Purchase requisitions got created without document type and first item blank this is the problem am facing .
    If we try to create a PR in the foreground, SAP doesnu2019t allow any blank line. it will adjusted automatically.and document type also mandatory.
    we dont know how this PR got created ]
    I didnt get any solution for this two issue.
    Help me on this.
    Regards,
    Priya.

    Hi ,
    You can goto change mode which is the item blank PO then give to the item no after save this time is solved na..
    if not solved na. some condition process ... so you can refer to document or note.
    Thanks
    Regards
    I.Muthukumar.

  • I installed Mavericks yesterday and have now got problems with QuarkXpress 9. Every time I click on an image and try to move it the application crashes. Anyone had similar problems or got any suggestions?

    I installed Mavericks yesterday and have now got problems with QuarkXpress 9. Every time I click on an image and try to move it the application crashes. Anyone had similar problems or got any suggestions?

    Hi Guys
    Updated my 2 imacs to Maverick yesterday. Schoolboy error on my part not checking if there were problems with any programmes before I did.
    Quark is now a nightmare with no short term answer on the way. As a Quark user for over 20 years this is just another reason to hold your hands up and say OK Indesign you win I will have to learn how to use you and Quark will be a distant memory.
    I am told there will probably be no solution to getting quak 9 running on Maverick and that you will need to update to 10 in about 2-3 weeks to get back to normal. Having spent a few bob on 2 versions of 9.5 only in Feb this year i didn't really want to upgrade yet.
    So its cough up to carry on using Quark or learn Indesign.
    I have lost faith in Quark as they are quick to send me e-mails asking me to upgrade to this and that version, why didn't they send one out saying do not upgrade to Maverick. Perhaps they know there loyal follwing will uograde to 10 and will generate a nice little bonus before Xmas.
    Lots to do today and will now take 10 times longer to do it. Is this 2013 or 1974!!!!!
    If anyone hears of a solution please post ASAP

  • Hey there, I have an iPhone 3g that was synced to my computer. My computer got stolen with all my music on it. I have a new computer but I can't sync my computer to my iPhone. How can I recover everything that's on my iPhone 3g to my computer?

    Hey there, I have an iPhone 3g that was synced to my computer. My computer got stolen with all my music on it. I have a new computer but I can't sync my computer to my iPhone. How can I recover everything that's on my iPhone 3g to my computer?

    If your backup copy of your computer was not stolen, then use it to put everything back.
    Otherwise, authorize your computer for your itunes account, connect iphone, do not sync, Click:  File>Transfer Purchases
    This will transfer itunes purchases from the iphone to the computer.
    Enter at least one unique contact and calendar entry on the new computer.  When you first sync, then you should get the option to merge the data.

  • After upgraded ios6 i got problem with whatapp. "last seen" function is not working

    HI eveyone
    after upgraded ios6 i got problem with whatapp. "last seen" function is not working .. it's doest show last seen who enter the chat . is anyone have the same problem .. i even restore and reinstall to my ph but it's  not work .. if someone know how to fix it, plz tell me how to do .. thanks

    Also, when I check this post several times a day, I always see warning 'Connection is untrust'. If I close browser and reopen immediately everything is ok.

  • I bought i pad 3 in canada 4 months ago but i think it's got problem with battery .i live in germany i don't know where to send it

    i bought i pad 3 in canada 4 months ago but i think it's got problem with battery .i live in germany i don't know where to send it

    Not quite what I heard when I went into the Apple Store in Hong Kong yesterday.
    I have just bought an iPad in Hong Kong but will eventually be travelling back to the UK.
    Louis in the Apple Store told me that iPads without cellular have international warranty but those with cellular do not (as there are slightly different models for different carriers).
    But he was pretty cagey and essentially couldn't give a clear, straightforward answer. Which most Apple employees can't.
    It is now a grey area, at the discrection of each local Apple Store & is subject, it seems, to you paying the import duty as a possible get out clause.
    Look carefully but do tell us if you got this iPad reapired. Thanks.

  • I got problem with volume of calls...its on max and i still can hear person on other side really bad...i got 4s

    i got problem with volume of calls...its on max and i still can hear person on other side really bad...i got 4s

    Did you fix the problem? I have the same problem and it has been pain in the neck.

  • Again got stuck with sqlldr.

    Hi All,
    I am again got stuck with sqlldr. Please find below my ctl and log file.
    ----------- CTL FILE--------------
    load data
    discardfile 'c:\dis.log'
    infile 'c:\csv\home1.txt'
    into table home_expenses
    fields terminated by ","
    trailing nullcols
    (PURCHASE_DATE date "mm/dd/yy",PAYEE,RUPEE_SPENT,CATEGORY,SUB_CATEGORY,DESCRIPTION)
    ---------------- SAMPLE DATA-----------
    05/05/09,Gas,Withdrawal,620,Automobile,Gas,,2 cylinders,
    05/05/09,clothing,Withdrawal,900,Homeneeds,Clothing,,suits for usha,meenu,sheetu,mummy,mousi & me
    01/05/09,Vegitables,Withdrawal,250,Food,Vegitables,,Potota 5 kg tomoto 2kg& others ,
    05/05/09,Petorl,Withdrawal,500,Petrol,,,Petrol for CAR,
    05/08/09,Vegitables,Withdrawal,250,Food,Vegitables,,Vegitables for home.,
    01/09/09,Maintainance,Withdrawal,100,Maintainance,,,Curtain Maintainence,
    ------------------ PART OF LOG FILE--------------------
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array: 64 rows, maximum of 256000 bytes
    Continuation: none specified
    Path used: Conventional
    Table HOME_EXPENSES, loaded from every logical record.
    Insert option in effect for this table: INSERT
    TRAILING NULLCOLS option in effect
    Column Name Position Len Term Encl Datatype
    PURCHASE_DATE FIRST * , DATE mm/dd/yy
    PAYEE NEXT * , CHARACTER
    RUPEE_SPENT NEXT * , CHARACTER
    CATEGORY NEXT * , CHARACTER
    SUB_CATEGORY NEXT * , CHARACTER
    DESCRIPTION NEXT * , CHARACTER
    Data File home.ctl -
    Record 1: Discarded - all columns null.
    Record 3: Discarded - all columns null.
    Record 5: Discarded - all columns null.
    Record 7: Discarded - all columns null.
    Record 18: Discarded - all columns null.
    Record 25: Discarded - all columns null.
    Record 29: Discarded - all columns null.
    Record 38: Discarded - all columns null.
    Record 39: Discarded - all columns null.
    Record 41: Discarded - all columns null.
    Record 44: Discarded - all columns null.
    Record 47: Discarded - all columns null.
    Record 50: Discarded - all columns null.
    Record 53: Discarded - all columns null.
    Record 56: Discarded - all columns null.
    Record 59: Discarded - all columns null.
    Record 62: Discarded - all columns null.
    Record 65: Discarded - all columns null.
    Record 68: Discarded - all columns null.
    Record 71: Discarded - all columns null.
    Record 74: Discarded - all columns null.
    Record 77: Discarded - all columns null.
    Record 80: Discarded - all columns null.
    Record 83: Discarded - all columns null.
    Record 86: Discarded - all columns null.
    Record 89: Discarded - all columns null.
    Record 2: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Record 4: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Record 6: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Record 8: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Record 9: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Record 10: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Record 11: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    hare krishna

    Thanks Blu for your responce. I also tried to modify very first records, according to you, it should be loaded, because it does not contain many ",". It sill failed to laod.
    --------- sample data---------------------
    05/05/09,Gas,Withdrawal,620,Automobile,Gas
    ------------------part my log file---------------
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array: 64 rows, maximum of 256000 bytes
    Continuation: none specified
    Path used: Conventional
    Table HOME_EXPENSES, loaded from every logical record.
    Insert option in effect for this table: INSERT
    TRAILING NULLCOLS option in effect
    Column Name Position Len Term Encl Datatype
    PURCHASE_DATE FIRST * , DATE mm/dd/yy
    PAYEE NEXT * , CHARACTER
    RUPEE_SPENT NEXT * , CHARACTER
    CATEGORY NEXT * , CHARACTER
    SUB_CATEGORY NEXT * , CHARACTER
    DESCRIPTION NEXT * , CHARACTER
    Data File home.ctl -
    Record 1: Discarded - all columns null.
    Record 3: Discarded - all columns null.
    Record 5: Discarded - all columns null.
    Record 7: Discarded - all columns null.
    Record 18: Discarded - all columns null.
    Record 25: Discarded - all columns null.
    Record 29: Discarded - all columns null.
    Record 38: Discarded - all columns null.
    Record 39: Discarded - all columns null.
    Record 41: Discarded - all columns null.
    Record 44: Discarded - all columns null.
    Record 47: Discarded - all columns null.
    Record 50: Discarded - all columns null.
    Record 53: Discarded - all columns null.
    Record 56: Discarded - all columns null.
    Record 59: Discarded - all columns null.
    Record 62: Discarded - all columns null.
    Record 65: Discarded - all columns null.
    Record 68: Discarded - all columns null.
    Record 71: Discarded - all columns null.
    Record 74: Discarded - all columns null.
    Record 77: Discarded - all columns null.
    Record 80: Discarded - all columns null.
    Record 83: Discarded - all columns null.
    Record 86: Discarded - all columns null.
    Record 89: Discarded - all columns null.
    Record 2: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Record 4: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Record 6: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Record 8: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Record 9: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Record 10: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Record 11: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Record 12: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    hare krishna

  • I have got problem with my pc-cam 950 slim

    I have got problem with my pc-cam 950 slim. When I press the power button, the busy light goes on for seconds then it is shut down again so the camera doesn't work. Please help me with this problem. I tried to connect it to my PC put it didn't work either.
    Thank you for taking the time to help me.

    Originally Posted by Colin-CL
    Hi,
    Have you checked that you have put in brand new 2 x AAA batteries?
    Connecting it to your PC will allow you to use it as a mass storage device after installing the relevant operating system (Microsoft
    hi,
    Yes, I put two new batteries
    When connected to the computer nothing happens
    What can be done to reset it?
    By replaced capacitor problem can be solved?

Maybe you are looking for