Problem with the version of ojdbc

Hello
I have an application in struts 2, that connects with the database via ojdbc14.jar (Implementation-Version: "Oracle JDBC Driver version - 9.0.2.0.0"). With this version of the driver, the application works fine.
But I need to use ojdbc5.jar, and whith this driver, doesn't work.
When I do this:
callableStatement=conexion.prepareCall(consulta.toString());
and my "consulta" (query) have more than 10 parameters, throws an exception (Array index out of range). But if my query have less than 9 parameters, it's work!!!
For example:
Begin Insert into DIRECCION (TIPO_VIA, NOME_VIA, NUMERO_VIA, BLOQUE, ESCALEIRA, LOCALIDADE, MUNICIPIO, PISO, PORTA, PROVINCIA, PAIS) Values(?,?,?,?,?,?,?,?,?,?,?) returning ID_DIRECCION into :i; end;
How I can fix this error?.
Thanks

Hello
In the consultas.properties I have this:
DireccionDAO.altaDireccion=Begin Insert into DIRECCION (TIPO_VIA, NOME_VIA, NUMERO_VIA, BLOQUE, ESCALEIRA, LOCALIDADE, MUNICIPIO, PISO, PORTA, PROVINCIA, PAIS) Values(?,?,?,?,?,?,?,?,?,?,?) returning ID_DIRECCION into :i; end;
And in the queryDao.java I have this:
//In this line, throws an exception (Array index out of range)
callableStatement=conexion.prepareCall(consulta.toString());
callableStatement.setString(1, direccion.getNumeroVia());
callableStatement.setString(2, direccion.getNomeVia());
callableStatement.setInt(10, direccion.getProvincia());
callableStatement.registerOutParameter(12, java.sql.Types.INTEGER);
callableStatement.executeUpdate();
idDireccion=callableStatement.getInt(12);
return idDireccion;
I have all the queries like that, but in this query, the parameters are more than 10, and with the driver ojdbc5.jar, don't work, but with ojdbc14.jar it is working.
Thanks.

Similar Messages

  • I would like to upgrade to the next step, but because I have many problems with the version 10.4.11, I'm worried that upgrading would create more problems.

    Due to a misunderstanding with [email protected] in September of 2010, many of my applications and important files were put into the trash during a cleaning.  The trash hadn't been deleted, so a CleanApp rep told me to drag my important files to a folder on my desktop.  They were unable to help me with anymore advice with the exception that if I followed the pathway of the application, I could manually restore it to its proper location. 
    This was asking a lot of me because I didn't have the experience or knowledge of undertaking such a massive restoration.  However, I did the best I could.  What had been put in the trash was not just a few files -- there were hundreds of files or apps that I discovered in the trash.  As I said, this was a misunderstanding.  I was left feeling devastated at what had happened. 
    Since then, my iMac Intel Core Duo has been running on its last legs.  I'm surprised I can even get to my email.  As far as using the software that I bought with my iMac, I can't.  I just do the basics.
    What I have been wanting to do is to upgrade to the next level.  However, I worry that if I upgrade a crippled OS X 10.4.11 Tiger, I would be creating more problems than what I already have.  Do you agree that an upgrade would make matters worse? 

    It won't necessarily make it worse, but may not make it better.  I am not familiar with the utility you usedm though anything that cleans or maintains your Mac should be avoided unless you know what you are doing and what it does.  Probably re-installing software from the official sources (download or CDs) is the best way to ensure missing parts are all replaced.
    If this is a core duo and not a core 2 duo then the highest you can go is Snow Leopard 10.6 Get more information about your computer. Go to the Apple in the upper left corner of any window, then "About This Mac", then "More Info..."  Copy and paste the information here, but omit the serial number and Hardware UUID (if present).

  • I have upgraded Apple Aperture from version 2 to version 3 and I'm having a problem with the "Highlights and Shadows" adjustment. According to the user's manual, I should have access to an advanced disclosure triangle which would allow me to adjust mid co

    I have upgraded Apple Aperture from version 2 to version 3 and I'm having a problem with the "Highlights and Shadows" adjustment. According to the user's manual, I should have access to an advanced disclosure triangle which would allow me to adjust mid contrast, colour, radius, high tonal width and low tonal width.
    If anyone has any suggestions as to how to access this advanced section, I'd be most grateful.

    Hi David-
    The advanced adjustments in the Highlights & Shadows tool were combined into the "Mid Contrast" slider in Aperture 3.3 and later. If you have any images in your library that were processed in a version of Aperture before 3.3, there will be an Upgrade button in the Highlights & Shadows tool in the upper right, and the controls you asked about under the Advanced section. Clicking the Upgrade button will re-render the photo using the new version of Highlights & Shadows, and the Advanced section will be replaced with the new Mid Contrast slider. With the new version from 3.3 you probably don't need the Advanced slider, but if you want to use the older version you can download it from this page:
    http://www.apertureexpert.com/tips/2012/6/12/reclaim-the-legacy-highlights-shado ws-adjustment-in-aperture.html

  • I just upgraded my iMac to Lion, and a few seconds ago, I upgraded the iWork package and now I'm having some problems with the new version of Pages (4.1) When I try to change something in a document, a message says "the program is not responding"

    I just upgraded my iMac to Lion, and a few seconds ago, I upgraded the iWork package and now I'm having some problems with the new version of Pages (4.1) When I try to change something in a document, a message says "the program is not responding", so I have to force it to close. By the way, the SAVE botton stays the same even I change erverything in my document. Please, a have a work to finish, **** me. What I can do abou it?

    I just upgraded my iMac to Lion, and a few seconds ago, I upgraded the iWork package and now I'm having some problems with the new version of Pages (4.1) When I try to change something in a document, a message says "the program is not responding", so I have to force it to close. By the way, the SAVE botton stays the same even I change erverything in my document. Please, a have a work to finish, **** me. What I can do abou it?

  • Problem with new version 4.3.2 apps not working " after update to the new version "

    Problem with new version 4.3.2 apps not working " after update to the new version "
    i was in 4.3.1 then i do the update , but now after update i face this problem , so what i Supposed to do ?!!

    Hi There
    Had the same problem as you. App would terminate when launched.
    Solution to working You Tube app:
    -Go to playstore
    - Uninstall app (it doesn't remove the app, only removes the update)
    - "Et Voila", working again.
    This doesn't correct the problem, it's just a workaround for you to be able to use youtube app again.
    Hope it helped.
    Best Regards

  • Since Firefox 32.0 was downloaded on 3/9/14 I am experiencing brief hanging when clicking onto websites or links. Is this a problem with the new version of Fire

    If I click onto any link or webpage I am quite often getting a briefing 'hanging' before Mozilla responds. I also get a message at the top of my screen stating that Firefox is not responding and the loading symbol justs spins in circles until it eventually frees up and opens the page. Prior to Firefox 32.0 being downloaded on 3/9/14 I had no problems with this 'hanging' at all. I can only assume it is a Firefox issue as I do not have the same issues if I use Internet Explorer or any other programs installed on my computer.

    You can check for problems with the history that is stored in the <b>places.sqlite</b> database file in the Firefox profile folder.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    *Places Maintenance: https://addons.mozilla.org/firefox/addon/places-maintenance/
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    There are other things that need your attention.
    Note that your System Details List shows multiple Flash plugins.
    *Shockwave Flash 15.0 r0
    *Shockwave Flash 14.0 r0
    *Shockwave Flash 13.0 r0
    You can find the installation path of all plugins on the <b>about:plugins</b> page.
    *http://kb.mozillazine.org/Issues_related_to_plugins#Identifying_installed_plugins
    You can check the Flash player installation folder for multiple Flash player plugins and remove older version(s) of the plugin (NPSWF32) and possibly (re)install the latest Flash player.
    *(32 bit Windows) C:\Windows\System32\Macromed\Flash\
    *(64 bit Windows) C:\Windows\SysWOW64\Macromed\Flash\

  • Is Anyone Having Problems with the newer version of Firefox?

    I still have my older Mac OsXv10.4 Tiger software. I wasn't exactly happy with Safari browser as it would block many sites and were considered incompatible so I downloaded the free Firefox browser (the 2.0 version) of which I STILL have. I'm aware that there is a much newer version and would like to download that, but I've heard a lot of people saying they have been having severe problems with it, but then they have PCs and not Macs.
    So my question is for you Mac users that use Firefox, have you had major problems with the newer version? I'm real hesitant to download if I'm going to have the same problem PC users are having...like constantly crashing. Also would my old Tiger software be compatible? I don't want to upgrade to Leopard.

    Yes. I had problems with Firefox 3.5. The primary problem was very slow or never-ending loading of certain websites (particularly secure sites and sites with many features). I also have had similar, but not as bad, problems with Safari 4. I never had these problems with Safari 2 or Firefox 2. It just seems that with each update, the problems increased for me. I have read the Safari and Firefox forums and tried many fixes with little improvement. I have come to the conclusion that there is some kind of compatibility problem between the latest versions of Safari and Firefox and Shockwave Flash and/or Javascript and OS 10.4, particularly on PPC Macs. I expect there are many who will disagree and I cannot argue or prove the point. This is just my opinion. And I recognize that my problems could be caused by my setup and not by the browsers. By the way, I do not use any add-ons with any of my browsers. Anyway, I got tired of dealing with it and installed the latest version of Camino about 2 weeks ago. I also did a clean install of Firefox 3.0.13. Camino is working out great for me. It is simple and it works. No problems at all. So currently I am using Camino as my primary browser and Firefox 3.0.13 as my backup. I hope this helps.

  • HT4972 I have an iphone 4 , but it still has the ios 4 , and i want to upgrade it to a newer version , but when I try to do it via  Itunes it says there's a problem with the internet (and the internet it's working fine) and it won't work ,how can i upgrad

    I have an iphone 4 , but it still has the ios 4 , and i want to upgrade it to a newer version , but when I try to do it via  Itunes it says there's a problem with the internet (and the internet it's working fine) and it won't work ,how can i upgrade?

    try rebooting your computer.

  • URGENT!!! Problems with the last version  14.2.1

    Hello, I have a problem with the latest update of PS CC two iMac in the company where I work, is that updated to the latest version and have recurring problems, for example, when using the Transform an object tool, the object changes, shown with noise or change the opacity and you can not edit, or also adding some other effect is the result: a distorted image. I think that's the latest update of PS because I have no such problems, because even I do not upgrade to version 14.2.1. Please I need your help, as our work at the agency is compromised with the delays that this causes us. Greetings and thanks! I'll be waiting for an answer.

    Lo siento mucho, aquí va el problema en español:
    Buenos días, tengo un problema con la última actualización de PS CC en dos iMac en la empresa donde trabajo, resulta que actualizaron a la última versión y tienen problemas recurrentes, por ejemplo: al utilizar la herramienta Transformar en un objeto, éste objeto cambia, se muestra con ruido o cambia la opacidad y no es posible editarlo, o también agregando algún efecto el resultado es otro: una imagen distorsionada. Creo que es por la última actualización de PS ya que yo no tengo esos problemas, porque aún no actualizo a la versión 14.2.1. Por favor necesito su ayuda, ya que nuestro trabajo en la agencia se ve comprometido con los retrasos que esto nos ocasiona. Saludos y gracias! Estaré a la espera de una respuesta.
    Muchas gracias!!!

  • Problems with the iOS 5.1 version, HELP!

    I just upgraded to the latest version - iOS 5.1 on my iPhone 4, but now the screen is freezing all the time, and the phone shuts down. Is this a problem with the new 5.1 version? What can I do to fix it?

    Try to restore it... I'm hating this iOS 5.1, everything was working much better before it was released. I shouldn't have upgraded...

  • There is a problem with the photo with the filename "null". The full resolution version of this photo either cannot be located or is corrupt. Please replace this photo or delete it from your book.

    Absolutely INFURIATING.
    I have spent absolute hours building a photo album for the first year or my sons life. Sorting through quite literally thousands and thousands of images. Got a brilliant looking album using 177 of them.
    Now everytime I try to check out it won't get past page 1 of building the book.
    It says the following "There is a problem with the photo with the filename "null". The full resolution version of this photo either cannot be located or is corrupt. Please replace this photo or delete it from your book.".
    The images all look perfect. I have even tried taking them out and re adding the first page images from the library.
    Same problem.
    This is so annoying. So far I have NOT been happy with this iphoto application having nothing but problems with missing thumbnails. Corrupted images. Things that have never happened to me using a windows machine.

    Do the filenames contain special characters, like "ä,ü,..." or white space or are the vry long? Is there anything special about the image format? Try to export the edited versions in that case and reimport it with a different, shorter filename.
    For testing, create a new book with only the images you want to check.
    If this does not fix it, try rebuilding. Depress the option and command keys, launch iPhoto and rebuild the library.

  • Problem with the Arabic vowelization in V 4.0 although we didn't face this problem with the previous versions ,so please fix it up quickly

    There is a problem with the arabic vowelization in the browser version 4.0 although we didn't face this problem with the previous versions ,so please fix it up quickly because it affects on our work

    Do you have an Arabic version of Firefox installed which isn't displaying the vowelization correctly, or are you trying to read it using an English language version?
    There are a few add-ons for Arabic which might possibly help here: [https://addons.mozilla.org/en-US/firefox/search/?q=arabic&cat=all&x=0&y=0 Arabic add-ons]

  • Problem with the active version of the transfer rule ABAP program with sour

    Hi,
    I have a problem with the active version of the transfer rule ABAP program with source system EXCEL. 
    The system does not react to changes done in the transfer rule coding. For FISCPER I have hardcoded the result 'BABABA' and still the results delivered are those from the CSV.
    Resetting the system buffers does not help. The problem is systematic in combination with source system EXCEL (i.e. not only 1 InfoSource).  Checking the active program Extras->Display Program shows the coding (result='BABABA') being there, but
    as stated, the system does not produce the result BABABA, but instead the result of the CSV.
    It seems as if the original version from the very first activation of the transfer rule program remains somewhere and continues to be used.  Does anybody know how to flush it out and get the system to actually use the coding appearing as the active program.
    I have posted an OSS note, but SAP takes it time to answer and I am under time pressure so I figured that maybe one of you know who to solve it before SAP does.
    Greetings and thanks,
    Martin

    Hi martin,
    just try to go out the RSA1 and then return to your infopac. ...
    sometimes there some "cache" trouble

  • Problems with the last version of iuines

    I have problem with the two last versions, I Can't clouse the program and the computer fail. I must restart the computer

    Try the steps given in the link below....Remember....,install the old version,if this problem persists
    http://forums.adobe.com/message/4041846#4041846

  • TS5249 Problems with the Korg Legacy Collection in the new version of Garageband in Mavericks.

    Hello!
    I'm having problems with the Korg Legacy Collection in the new version of Garageband in Mavericks. When I try to load the AU, I get this error message:
    "Failed to load Audio Unit, please contact the manufacturer for an updated version or further assistance. (-10110)"
    They seem to work fine in Ableton Live 8 Lite, also running in Mavericks. So, I think it is something with Garageband. In addition, Korg updated to 64bit early last year.
    Anyone know how to fix the problem? Or is Korg or Apple's problem?
    Thanks.

    They seem to work fine in Ableton Live 8 Lite, also running in Mavericks. So, I think it is something with Garageband. In addition, Korg updated to 64bit early last year.
    Have you checked, if you have the newest 64-bit version installed? There may still be an older version sitting around - check both plug-in folders, the one in your Home folder and the one in the system library:
    ~/Library/Audio/Plug-Ins/
    /Library/Audio/Plug-Ins/
    Some programs may still be able to use 64-bit plug-ins, but GarageBand will not use them:  http://support.apple.com/kb/TS5249

Maybe you are looking for