Jdbc2Odbc, Prepared Stmts and Batches... just don't work together.

Hi.
this throws a NegativeArraySizeException on executeBatch:
con.setAutoCommit(false);
PreparedStatement p=con.prepareStatement("insert test_date(txt) values(?)");
p.setString(1, "das");
p.addBatch();
p.setString(1, "sss");
p.addBatch();
p.executeBatch();
con.commit();
p.close();
con.close();
this does too:
con.setAutoCommit(false);
PreparedStatement p=con.prepareStatement("insert test_date(txt) values(?)");
p.setString(1, "das");
p.addBatch();
p.executeBatch();
con.commit();
p.close();
con.close();
this works fine:
con.setAutoCommit(false);
PreparedStatement p=con.prepareStatement("insert test_date(txt) values(?)");
p.setString(1, "das");
p.addBatch();
p.executeUpdate();
con.commit();
p.close();
con.close();
to make things worse, this does not throw any Exception, but instead of a 5, I get 144595456 in the table!!!:
con.setAutoCommit(false);
PreparedStatement p=con.prepareStatement("insert test_date(l) values(?)");
p.setInt(1, 5);
p.addBatch();
p.executeBatch();
con.commit();
p.close();
con.close();
could someone recode Jdbc2Odbc?? :))
nikolas/

Hi,
As far as I know, this is a bug in the JDBC-ODBC bridge. I used to get the same error and I used a native driver to get around this problem. My database was DB2, and I used a native driver for DB2. One more thing, the JDBC-ODBC bridge is very slow and you will notice the difference once you use the native driver.
There is a batch file usejdbc2.bat which directs the driver to use the jdbc 2.0 specs explicitly. I ran that before actually using the native driver. In the case of a DB2 driver it should be in the directory Sqllib\java12. But I am not sure about the other drivers.
Hope this helps and best wishes,
Nish

Similar Messages

  • ADDT Datepicker and spry validation don't work together

    Datepicker and spry validation don't work together
    the problem is in: /includes/wdg/classes/MXWidgets.js
    (necessary to datepicker)
    Does anyone have a solution??
    Thanks

    Hi Gabriele,
    technically speaking, ADDT and the Spry framework have about nothing in common, and you´re going to stumble across many compatibility-related issues when trying to use them together.
    Does anyone have a solution??
    any regular user who´d like to provide a solution to this, would have to be a pretty skilled programmer and would have to know the "technical details" of both ADDT and SPRY very well to be of help -- I don´t think that you´ll find many folks here who are capable to do that.
    However, why not making the date field required in ADDT ?
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Named View Criteria and Range paging don't work together

    Hi,
    I am using a named view criteria for a view whose access mode is set to range paging.
    When I use the named view criteria on my page to do a search I am getting the below error. If I don't use range paging as access mode for the view I don't get this error. Looks like when I use the search it doesn't pass the row numbers properly and they are not set in the query.
    Is this a known issue or am I missing something?
    Thanks
    SQL error during statement preparation.  Statement: Select *
      From (Select /*+ FIRST_ROWS */
             IQ.*, ROWNUM As Z_R_N
              From (Select Persons.PRINCIPAL_NAME,
                           Persons.PERSON_ID,
                           Persons.TITLE,
                           Persons.FIRST_NAME,
                           Persons.LAST_NAME,
                           Persons.PHONE_NUMBER
                      From PERSONS Persons
                     Where ((((UPPER(Persons.FIRST_NAME) Like UPPER('%' || :p_name || '%')) Or (:p_name Is Null))))) IQ
             Where ROWNUM < :1)
    Where Z_R_N > :2
    Missing IN or OUT parameter at index:: 4 Message was edited by:
    Muhammed Soyer

    Hi Frank,
    I didn't test it in 10g. It was something that I came across and thought that it might be a known issue..
    The query is not something that I built manually. My entity is created from a table and my view is using the entity. I added a Named Criteria to the view and used Range Paging as access mode for the view.
    The actual query is this
    SELECT Persons.PRINCIPAL_NAME,
           Persons.PERSON_ID,
           Persons.TITLE,
           Persons.FIRST_NAME,
           Persons.LAST_NAME,
           Persons.PHONE_NUMBER
    FROM PERSONS Persons

  • G5 Quad (Geforce 6600) and Dell 2405fpw don't work together

    I purchased both (G5 Quad (Geforce 6600) and Dell 2405fpw) brand-new a few days ago.
    When I connect the display using the supplied DVI->VGA cable, the display works. When I connect them using (about any type of) DVI-D cable, I get no picture. The dell screen just stays in stand-by mode. BUT it gets detected (I can see this when I connect a second screen). And the screen show a test image when I disconnect it from the mac, so there's at least SOMETHING happening...
    What is wrong here?
    I am first-time Mac user and on edge to go to the PC/Unix world again, without ever looking back to apple-land, because of this, as it is SERIOUSLY SCREWING UP christmas for us this year.
    Thanks for your help.

    Actually ``detect displays'' found the screen, that was what I meant in my first post.
    The issue is kinda solved now, the DVI-Port of the ``brand-new'' display, which was delivered directly from the Dell factory in Limerick, is non-functional.
    I tried it with a different setup (PC) and see the same symptoms, which lead me to this conclusion. I will get a full refund and possibly buy a 3007WFP if the price is decent.
    It should work with a Geforce 6600 - even at 2560x1600.
    Thanks,
    Robert
    PowerMac G5 Quad Mac OS X (10.4.3)

  • TP4 - PPR and af:subform don't work together

    Hello,
    I have a form (enclosed in a af:subform) that is refreshed by PPR from a table. If I don't use af:subform PPR works correctly, but if I use af:subform only af:inputText that have readOnly="true" gets refreshed.
    I need subform because I have required fields and I need validation to happen only when save on that subform occurs.
    This behaviour was in TP3 too.
    Is there a workaround for this?
    Thanks,
    Dan.
    Message was edited by:
    Dan Rece

    Here is a sample of code:
    A simple bean (I don't add getters and setters):
    package test;
    public class Person
      private Integer id;
      private String name;
    }Managed bean class:
    package test;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import oracle.adf.view.rich.component.rich.data.RichTable;
    import org.apache.myfaces.trinidad.event.SelectionEvent;
    public class ManagedBean
      private List<Person> rows;
      private Person selectedPerson = new Person();
      public ManagedBean()
        rows = new ArrayList<Person>();
        rows.add( new Person( 1, "Mike" ) );
        rows.add( new Person( 2, "Luke" ) );
        rows.add( new Person( 3, "John" ) );
      public List<Person> getRows()
        return rows;
      public void setSelectedPerson(Person selectedPerson)
        this.selectedPerson = selectedPerson;
      public Person getSelectedPerson()
        return selectedPerson;
    }jspx file:
        <af:document maximized="false">
          <af:form>
            <af:panelGroupLayout layout="vertical">
              <af:panelBox text="Persons">
                <af:table id="persons"
                          value="#{managedBean.rows}"
                          contentDelivery="immediate"
                          columnSelection="none"
                          rowSelection="none"
                          var="row">
                  <af:column sortable="false" headerText="Id" align="start">
                    <af:outputText value="#{row.id}"/>
                  </af:column>
                  <af:column sortable="false" headerText="Name" align="start">
                    <af:outputText value="#{row.name}"/>
                  </af:column>
                  <af:column sortable="false" headerText="Edit">
                    <af:commandLink partialSubmit="true"
                                    id="edit_link"
                                    shortDesc="Edit item '#{row.id}'">
                      <af:setActionListener from="#{row}" to="#{managedBean.selectedPerson}" />
                      <af:image source="/common/images/edit.gif" />
                    </af:commandLink>             
                  </af:column>
                </af:table>
              </af:panelBox>
              <af:spacer height="5" />
              <af:panelBox text="Edit 1" partialTriggers="persons:edit_link">
                <af:subform id="edit_subform_1">
                  <af:panelFormLayout>
                    <af:inputText value="#{managedBean.selectedPerson.id}" readOnly="true"/>
                    <af:inputText value="#{managedBean.selectedPerson.name}" />
                  </af:panelFormLayout>
                </af:subform>
              </af:panelBox>
              <af:spacer height="5" />
              <af:panelBox text="Edit 2">
                <af:subform id="edit_subform_2">
                  <af:panelFormLayout partialTriggers="::persons:edit_link">
                    <af:inputText value="#{managedBean.selectedPerson.id}" readOnly="true"/>
                    <af:inputText value="#{managedBean.selectedPerson.name}" />
                  </af:panelFormLayout>
                </af:subform>
              </af:panelBox>
              <af:spacer height="5" />
              <af:panelBox text="Edit 3">
                  <af:panelFormLayout partialTriggers="persons:edit_link">
                    <af:inputText value="#{managedBean.selectedPerson.id}" readOnly="true"/>
                    <af:inputText value="#{managedBean.selectedPerson.name}" />
                  </af:panelFormLayout>
              </af:panelBox>
            </af:panelGroupLayout>
          </af:form>
        </af:document><managed-bean>
    <managed-bean-name>managedBean</managed-bean-name>
    <managed-bean-class>test.ManagedBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    There are 3 ways of refreshing edit form in this jspx file. If you run it you will notice that only latest panel box (the one without af:subform works correctly).
    In the first two... only the first field is refreshed correctly.
    Thanks,
    Dan
    Message was edited by:
    Dan Rece
    Message was edited by:
    Dan Rece
    Message was edited by:
    Dan Rece

  • Lightroom 3 and Photoshop CS5 don't work together

    Hello,
    I recently updated from PS CS4 to PS CS5 and Lightroom 2.7 to Lightroom 3.
    Everything went smoothly and i'm very happy with performance overall.
    The only problem that i'm having is that now in Lightroom the "Edit in Photoshop" is greyed out. I can still edit the preferences for this option but i cannot choose the option when i want a photo to go to PS.
    I can still edit in Photoshop if i use it as an "another external edit program", but my question is how do i get the two programs aware again of each other?? So i can edit in photoshop as a smart object again. I updated ACR to the latest version.
    My computer runs a copy of Win7 64-bit Ultimate.
    Thanks
    Jan

    JanGeloen wrote:I guess these forums aren't so bad after all
    As long as you have protective body armour on, you're quite safe! 

  • IPhoto and Mountain Lion don't work together

    I consistently have problems with iPhoto and my entire computer locks up and runs at less than a snail's pace. I paid $15 to install iPhoto after upgrading to Mountain Lion and now wish I had stayed with Snow Leopard and the old iPhoto. Having to type this on my iPad while I wait for something to unlock on my computer. I am merely trying to export one image to my desktop and it's taken about 10 minutes. Apple - PLEASE fix this!

    There is no problem with iPhoto and Mountain Lion. You're not talking to Apple here, and as it's not happening to everybody else they're not going to fix it because you have a local problem.
    If you want help try give us a full description of the problem.
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For instance: 'iPhoto won't export' is best explained by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • Bluetooth and Z10 speaker don't work together

    Phone works great when connected to Bluetooth in car and I can talk hands free.  When I use the Map app that came with the phone, I can't hear the verbal directions. My old Blackberry worked great with Bluetooth and I could hear verbal directions and also answer the phone when it rang. Verbal directions would be silent until I hung up the phone call.

    jrcatfan wrote:
    Phone works great when connected to Bluetooth in car and I can talk hands free.  When I use the Map app that came with the phone, I can't hear the verbal directions. My old Blackberry worked great with Bluetooth and I could hear verbal directions and also answer the phone when it rang. Verbal directions would be silent until I hung up the phone call.
    My car radio has 2 separate Bluetooth input source's. Phone and Music A2DP, verbal directions can only be heard when Music source is selected.

  • Spry and custom Javascript don't work together

    I'm using Spry form field validation, but also need to do some more specialized input checking. I've tried to add some custom Javascript to do this, but now my Spry stuff doesn't work!  Is there a way to combine the two -- Spry + custom Javascript? (testing in Safari) 
    Here's a very simplified example:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Test Doc</title>
    <script src="../SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript">
    <!-- Hide script from old browsers
    function procform(f) {
    if (f.name.value =="test") {
    alert("You entered the word 'test' ")
    return false
    // End hiding script -->
    </script>
    </head>
    <body>
    <form id="form1" name="passForm" method="post" action="#" onsubmit="return procform(this)">
    <span id="sprytextfield1"><span class="textfieldRequiredMsg">A value is required.</span></span>
    <input type="text" name="name" id="name" />
    <input type="submit" name="submit" id="submit" value="Submit" />
    </form>
    <script type="text/javascript">
    <!--
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
    //-->
    </script>
    </body>
    </html>

    jrcatfan wrote:
    Phone works great when connected to Bluetooth in car and I can talk hands free.  When I use the Map app that came with the phone, I can't hear the verbal directions. My old Blackberry worked great with Bluetooth and I could hear verbal directions and also answer the phone when it rang. Verbal directions would be silent until I hung up the phone call.
    My car radio has 2 separate Bluetooth input source's. Phone and Music A2DP, verbal directions can only be heard when Music source is selected.

  • Transition script and button script don't work together

    Hi
    I've been experiementing with actionscripting transitions
    between sections... this is the first site I have tried this with
    (last 3 had swf loaded in one after another rather than
    transitioned between). I used some code from kirupa.com which works
    for loading movies in and out, but I also have some code for my
    movie buttons. I can get one or the other working, but not
    together, so I guess I'm clashing code somewhere, I could do with
    some help please to find what I'm doing wrong...
    The transistion code and calling-up buttons is;
    Code:
    Menubar.b1.onRelease = function() {
    if (_root.section != "about.swf") {
    _root.section = "about.swf";
    _root.transition.gotoAndPlay("closing");
    Menubar.b2.onRelease = function() {
    if (_root.section != "portfolio.swf") {
    _root.section = "portfolio.swf";
    _root.transition.gotoAndPlay("closing");
    Menubar.b3.onRelease = function() {
    if (_root.section != "contact.swf") {
    _root.section = "contact.swf";
    _root.transition.gotoAndPlay("closing");
    and the code I have on my movie buttons is;
    Code:
    on (rollOver) {
    gotoAndPlay("rollover");
    on (releaseOutside, rollOut) {
    gotoAndPlay("rollout");
    Is there a way to combine them???
    Thanks. Wayne.

    your on(rollover) handlers are applied to buttons that are
    children of a movieclip that has handlers defined. the parent
    movieclip (Menubar.b1 etc) is going to intercept those mouse
    events.
    to remedy move you on(rollover) etc handlers to your
    movieclip buttons b1, b2 and b3 on MovMenu's timeline.

  • HT3529 I just upgraded to iphone 5 and now imessage don't work. it sends as sms. i've checked imessages is on in settings.

    I just upgraded to iphone 5 and now imessage don't work. it sends as sms. i've checked imessages is on in settings.

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.
    It might also be a good idea to contact Square for assistance.

  • Why am I facing so many problem after upgrading to ios7, my phone hangs/stuck many times, applications just stop working and close themselves, battery drainage,Facebook and all applications don't work properly. What should I do? They punished me for upgra

    I'm using iPhone 5
    Why am I facing so many problem after upgrading to ios7, my phone hangs/stuck many times, applications just stop working and close themselves, battery drainage,Facebook and all applications don't work properly. What should I do? They punished me for upgrading to ios7. I now hate apple and I'm thing of getting samsung.

    Basic troubleshooting
    Reset
    Restore with backup
    Restore as new ( better )

  • I've just downloaded itunes11 and my films don't work anymore!!!

    Please help me!!! i've just downloaded version 11 of itunes and my video don't work anymore!

    can't open mail after installing yosemite

  • My Microsoft Intellimouse back and forward buttons don't work in Firefox, but they do in IE and in Windows Explorer. It used to work, now it just stopped. Why and how can I fix this?

    Forward and back buttons don't work in Firefox but do everywhere else.

    Make sure that you set those buttons to the default action in your mouse driver software (Control Panel > Mouse or specific Intellimouse driver software).

  • Desktop SMS and Windows Mail don't work properly together

    Hi
    thought I would post there here as been having some issues with my Windows Mail but my desktop computer doesn't suffer same issues and on a Vista forum where I posted my problem a couple of very helpful told me who to try solving the issues.
    One of them suddenly realised I'd said my laptop was a Toshiba and apparently the Desktop SMS and Windows Mail just don't work properly together so the person suggested unless I use it to uninstall it apparently amongst the technically trained its known that these two programs don't like each other and would explain why my desktop doesn't have the issue but laptop does.
    After resetting the Windows Mail (tutorial on a vista site http://www.vistax64.com/tutorials/) Touch wood don't be put off by vistax64 as site does both 32 and 64 and followed Brink's excellent resetting Windows Mail (didn't restore any mail) and then uninstalled Desktop SMS and touch wood no more mail issues as has been giving me problems virtually daily with marking draft emails as read/sent.
    So had to click on forward then delete those bits and finish email to send it and touch wood since doing these two things as soon as send an email to draft or outbox get the number of emails in the brackets whereas before this wouldn't happen unless I closed the program then reopened it.
    Hoping these solutions have fixed my problem and wanted to share it with anybody else who wants to read this thread and would recommend the Vista 64 site as they're all really helpful over there and speak in non technical terms for those of us not technically trained.
    Debbie

    I have marked this as answered as it was more a post to help others who may have experienced the same problem I did and didn't get a reply or just didn't know that this program could be the reason their Windows Mail has issues that can't seem to be resolved any other way apart from ignore them and hope they don't get worse.

Maybe you are looking for

  • Account assignment error even without controlling integration

    We have set up a service order without controlling integration nor billing. After releasing the service order and saving, CRM throws out an error as if it is trying to create an internal order in ECC. See error log below. We do not intend to replicat

  • TV shows are not syncing with iCloud

    Two questions. The first is really bugging me: 1. Several years ago I purchased a series of TV shows through iTunes. When I got an iPad about a year ago, and configured all my settings, I was able to play those episdoes on that device (I presume that

  • Question about "top-down" web services development

    I tried to follow the Oracle "RPC literal top-down web services how-to" to develop a web service with a top-down approach but I have error when I try to compile with Ant the provided example. This howto is located at: http://www.oracle.com/technology

  • Graphic frames in a document...

    hi to all, I need all and only graphic frames  of a document? what is the right interface? like InterfacePtr<IStoryList> for story of text frames... thanks in advance!

  • There are times 5s lagging very bad after I update the IOS 7.03, need help

    Before I update to  my IOS 7.03, I don't have this problem before.  But now, once in a while my phone is lagging very bad, not sure of why.  But it will goes away after a while. Anybody else having the same problem?  It happens most of time during lo