GetTransaction().validate();  - what happens if the Insert fails?

Hi forum members,
I am rookie in terms of development with ADF/Jdeveloper and I've got an error which I've traced to the following piece of code
am.getTransaction().validate();
am.getTransaction().postChanges();
DBSequence newAdId = (DBSequence)newAssociatedDocument.getAttribute("AdId");
int adId = newAdId.getSequenceNumber().intValue();
return adId;
"am" as you'd guess is an ApplicationModule
The return value of "adId" is -1.
The "ADID" in the database is controlled by a Pre-Insert Database trigger which fills it with a Primary Key value.
Now, it sounds like the Insert of the Row fails somewhere and hence the "adID" is -1 as I've read that in Metalink. Like, DBSequence initially populates it with "-1" and then fills it (if the transaction is successful) with the actual ADID value that was inserted into the database (behind the scenes using the RETURNING INTO clause).
But my question is How to Trap the Oracle Database Error that happens behind the scenes? Like it looks like the postChanges() is actually successful (no Exception raised, else it would have been cascaded back) and we actually get a "-1" returned to the Caller.
Would I be able to do an Oracle Trace and detect the Oracle error?
Thanks
Ravi

It is very important to backup your iPad before you prceed with update.
Backup and Restore
http://support.apple.com/kb/ht1766

Similar Messages

  • What happened to the Insert Date menu item?

    In the Numbers 3.0 upgrade the Insert Date menu item is gone.  Where can I now find it?  Or is there now  shortcut?
    David

    David,
    Wait a minute... I'm adding that one to my list.
    My workaround:
    Type =Today() Return, Return, Up-Arrow,  Command-C, Shift-Command-V
    This enters the date from a function then copies the cell and pastes the value back into the cell.
    Some shortcut, eh?
    Jerry

  • What happens to the vm failed in HA

    Hello,
    If an ESXi server fails, the VMs hosted on it will go down or at least become unreachable but VMware HA responds by restarting the VMs on other hosts in the cluster that survived the failure.
    My question is when only a single VM fails instead of whole ESXi server then how HA is going to handle.
    Regards,
    CEH

    If Enable Host Monitoring is selected, each host in the cluster is checked to ensure it is running. If a host failure occurs, virtual machines are restarted on another host. Host Monitoring is also required for the vSphere Fault Tolerance recovery process to work properly.
    After you create a cluster, enable Host Monitoring so that VMware HA can monitor heartbeats sent by the VMware HA agent on each host in the cluster.
    If you need to perform network maintenance that might trigger host isolation responses, VMware recommends that you first suspend VMware HA by disabling Host Monitoring. After the maintenance is complete, reenable Host Monitoring.
    The Host Monitoring Status section is new to vSphere and is used to enable the exchange of heartbeats among hosts in the cluster. In VI3, hosts always exchanged heartbeats if HA was enabled, and if any network or host maintenance was being performed, HA could be triggered unnecessarily. The Enable Host Monitoring setting allows you to turn this on or off when needed. For HA to work, Host Monitoring must be enabled. If you are doing maintenance, you can temporarily disable it.
    Refer:vSphere Documentation Center
    http://searchitchannel.techtarget.com/feature/Enabling-VMware-HA-DRS-Advanced-vSphere-features
    As per me, if HA monitoring is disabled & when VM monitoring is enabled, if GuesOS is not working, VM should be restarted on the same host. However, I will confirm this and come back here.

  • VDI3: what happens when the Primary VDI core fails?

    A potential customer asked me this and I did not really know how to answer the question ... sorry if this was asked before. So here we go:
    What happens when and if the Primary VDI core fails? Will the entire VDI3 setup go down? Will running sessions be lost? And how do you fix that?
    I found this page:
    http://wikis.sun.com/display/VDI3/MySQL+Cluster+Reconfiguration+Scenarios
    So I assume the "Non-VDI host ==> Primary Management Host" scenario is what would need to be done?
    http://wikis.sun.com/display/VDI3/MySQL+Cluster+Reconfiguration+Scenarios#MySQLClusterReconfigurationScenarios-NonVdiToPrimary
    If this is correct then this would answer the "how do you fix that?" part. OK then.
    But still I'd welcome if anyone could explain what exactly would happen when and if a Primary VDI core fails. The customer's opinion on this is that they are a "single point of failure" because the Primary VDI host is not redundant (as opposed to the 2 x Secondary VDI cores) ... So, is this assumption correct or not?
    Thanks in advance.

    Hi,
    Assuming you have 3 VDI core hosts. One of them is the primary. And the primary goes down. So what happens then:
    * The underlying database is still running on the remaining hosts
    * All desktop sessions are still running on the remaining hosts
    * New session requests will be handled by the remaining hosts.
    * All desktops are still running on the virtualization hosts.
    So in essence, your VDI cluster is still healthy. The operation is just impacted in this way:
    * You can't add new VDI core hosts
    * You can't change the configuration of the Sun Ray server failover group
    * A failure of another VDI core host (data node) will result into a complete outage of the underlying database
    You should bring up the primary again as soon as possible in order to gain failover capabilities again.
    -Dirk

  • ISE - What happens when the on-boarded certificate expires?

    I'm trying to design a good BYOD deployment model but have a few questions that need direct answers.  I have down how to go about on-boarding and getting a certificate on a device, the ISE provides great flow for this to happen in many ways.  My questions come from a design perspective before and after the BYOD deployment is completed.
    1. Figuring out a method to validate the device is a Corporate asset or a BYOD asset.
         (I don't want to install a certificate on just any device, or perhaps I do but I need to give permissions to all resources if its a Corporate Device, and more resitrictions if it's BYOD, so how do I figure this out during the provisioning phase?)
         a. Use MDM (May not have one, or if you do we are still waiting on ISE 1.2 for that integration)
         b. Build a Group for provisioning admins, if user PEAP-MSCHAPv2 account is from this group install a certificate. (issue here is that the end user looses administration of the device in the my device portal as the device is now registered to the provisioning admin)
         c. Pre-populate MAC into ISE as all Corporate devices should be provisioned by I.T. before they go to the end user (I think this is good but can see push back from customers as they don't want to add more time to the process)
         d. Certs on any IOS or Android device, provide access based on user group and do not worry if device is Company asset or not (I believe that this is the easiest solution and seems to be what I find in the guides)
         e. Other options I have not thought about, would love input from the crowd
    2. What happens to the device once the Certificate expires?
         (I don't know the answer to this, my thought would be the user or device will fail during the authentication policy and this creates a mess)
         a. Tell the user to delete the profile so they can start all over again (creates help desk calls and frustrated users)
         b. Use MDM for Cert management (may not have one)
         c. Perhaps the client uses SCEP to renew based on the cert template renew policy and there are no issues (this is me wishing)
    Would appreciate some feed back and would like to know if anyone has run into these issues.                   

    Neno,
    Sorry but I don't have any other info on using a public CA, Cisco says to use internal CA's for PKI.  I think the best practice in 1.2 comes out will be to use one interface for Web Management and a different interface for Radius, profiling, posture, and on boarding.  This way you can use your private CA for EAP and a public CA for web traffic.  Have you tried a public CA bound to management and a private CA for EAP yet?
    I did do a session on EAP-TEAP, they explained how it will work and also discussed EAP-FASTv2.  EAP-FASTv2 is available now but you must use anyconnect as your supplicant.  Microsoft and all other vendors will have EAP-TEAP native once it is fully released and comissioned as it will be the new gold standard for EAP.  It will support TLS, MD5, and CHAPv2.  If you are interested I have the PDF of the presentation I attended that shows the flow of how EAP-TEAP will work.  This is much better than wasMachineAuthenticated and machine auth caching, which has many down falls.
    I currently do machine and user auth I just don't require them.  If Machine auth then allow machine on vlan-x with access to AD, DNS, and blah blah.  Then a seperate rule to say user auth gets more access, although I require EAP-TLS for both and if you think about it you are accomplishing the same thing if your PKI is setup correctly.  Make it so users and machines can only auto enroll, that way you know the only way they got their cert was from GPO policy.  I won't go into anymore detail, but there is lots you can do.

  • What happens when the light goes off on an express airport router?

    I was on the internet using a wireless connection with an express airport and suddenly I heard a sound and the light on the router went competelly off.  I would like to know what happened.  I unplugged the airport and plugged in again on another outlet but nothing happens.  The airport has about 3 or 3.5 years.

    It's not possible to know exactly what happened within the AirPort Express unless you carefully saw the case open along the seams to examine the internal components.
    It's likely that something in the power supply section has failed since the device will not power up. Repairs...if possible.....would likely cost more than the cost of a replacment Express, but if you are handy with small electronics repairs, you could poke around a bit to take a look for something obvious.

  • What happens when the multiply effect is applied to both the object and the graphic within?

    Hi everyone,
    I could really use some help with this...
    I'm getting a booklet ready to be printed. Originally, half of the pages were to be printed on paper with a (physical) colour. For budget reasons however, I've now decided to print the paper colour, and have the content of the pages overprinted on the tint in the background, which I've applied to the pages in the background of an additional master page.
    When I set the objects to multiply, they blend with the background colour, which is the effect I'm looking for, as there would be no 'paper white' on the pages that I want to appear as though printed on coloured paper.
    There's something confusing me though; you can also set the graphic within the object frame to multiply. This makes the graphic appear darker, which I don't really understand, since there is no extra colour within the graphic that accounts for this. I've looked at the output in the resulting pdf, and it looks like it's not just an on-screen effect, but the extra amount of (in this case) yellow would also be visible in the printed result.
    Does anyone have an explanation for this? Please see the graphic for a visual example.
    Thanks in advance, kind regards
    Robbin

    Hi.
              Yes. There is a heartbeat mechanism between all cluster members so they detect when a
              member has left the cluster. The primary server recognizes when it's secondary server
              has failed, and then proceeds to search for another member of the cluster to make as
              it's new secondary.
              Regards,
              Michael
              David Whitehouse wrote:
              > I'm trying to figure out what happens when the server holding the replicated state
              > for an object fails.
              > Does the server with the primary object (or the replica-aware stub) recognize
              > the failure and select a new
              > server to hold the replicated state?
              >
              > For instance, Assume I have a cluster defined with three servers - 1,2,3 - with
              > an instance of object A on server 1
              > and the replicated state ino on server 2. What happens if server 2 fails? Is the
              > state now replicated to server 3?
              >
              > Thanks, David
              Michael Young
              Developer Relations Engineer
              BEA Support
              

  • What happened to the Leopard on Powerbooks so far thread ???

    What happened to the Leopard on Powerbooks so far thread ???
    Where did it go ? Even my post is missing.

    Well, I can tell you what happened with my neighbors - a complete and utter disaster. It just won't install. I went so far as to reinstall Panther for her (so she can have a working computer) and then try to archive and install. Failed. There's a post about it in the 10.5 forum/installation and set up. It really *****. I don't know what else to do. She's supposed to pay for a license and now, if she doesn't, I'm left holding one with nowhere to put it. Maybe I can just sell it.
    This is not cool for Apple. I don't know what they didn't do right, but it ***** and is very disappointing. It's worse because I'm up and running with it on my MacBook so I feel bad for her.

  • What happened to the standalone A.pack prog?

    what happened to the stand alone A.pack for creating AC3 files, it seems to have gone when I upgraded to FInal Cut Studio yesterday???

    Hello Allister,
    I too was dismayed to find A.pack gone. I like the stand-alone version. There was nothing wrong with it. If you prefer not to use the integrated AC3 processor, install A.pack by inserting your old DSP disk and choosing custom install, selecting only A.pack from the options.
    Good Luck,
    Mike.

  • RI - What if Parent is refreshed - What happens to the constraints

    Hello
    I have a parent-child scenario. What happens if the parent table is completely refreshed? What happens to the child table (that has cascade delete)?
    If RI exists, will a complete refresh of parent be possible?
    What is the best way to handle this scenario?
    Thx!

    One of the quickest ways of identifying duplicate records in a table is to enable a unique (or primary key) constraint knowing ahead of time that it will choke on the duplicates, but using the EXCEPTIONS INTO EXCEPTIONS clause which will cause the rowids of the duplicates to be written into an EXCEPTIONS table (created ahead of time with the rdbms\admin\utlexcpt.sql script, for example).
    Therefore, imagine a million row table into which a fresh bulk load of another million rows from some external source is to be performed.
    You declare the constraint, you disable it, you perform the load, you enable it exceptions into exceptions. You now can clear out the duplicate data quite easily, and then enable the constraint normally. Next load, you disable the constraint all over again and repeat the process.
    That's one reason you might want to repeatedly disable/enable a constraint.
    Consider another: a unique or primary key constraint, by default, when created, will cause a unique index to be created on the table. Doing any sort of bulk load into a table, even of data you know to be 'clean' of duplicates, will be a lot slower as a result of each insert having to update the index. Therefore, one of the things you commonly do to speed up bulk loads is to disable constraints, therefore removing any associated unique indexes, and therefore saving the time that would normally be spent validating data and updating indexes.
    In the old days before they invented deferrable constraints, too, you might well be engaged in a complex data loading process that involves quite a few steps before finishing. If looked at during those steps, you'd say the data violated constraints... but if you just let me get to the end, you'll find that the data all comes good. So you had to be able to disable constraint checking at the start of the process, and re-enable it at the end. A good example of that is Scott's EMP table: it has a manager column and the data in that column refers to the EMPNO column. A manager has to be an employee, after all! So there's a self-referencing foreign key on that MGR column, which means you can't load a record containing a manager number that isn't already an employee. But if you were doing a bulk load of data into that table, starting with it completely empty, that would mean you'd never be able to load any data into it at all: no employees exist to begin with, so there are no managers, so the first employee record that mentions a manager gets rejected. But if only you'd let me do the initial load of data, you'd see that every manager mentioned DOES turn out to be an employee! At the end of the load, it all comes good, and everything is properly related to everything else.
    Short of being very careful about the order in which you load such data (presumably, you'd have to start with Mr King, who runs the company, then deal with the first lot of managers, and then you could load the clerks and salesmen), the simplest way of resolving that sort of Catch-22 is to disable the constraint, do the load, and then enable the constraint when all the data is in place and therefore all the relationships between records have come good.
    (As I say, since version 8.0 of Oracle, you can also defer the constraint so that it only gets checked at the point you commit all the data, but leaving that subtlety aside, it's still a classic example of where switching constraint checking on and off proves very useful).

  • I wish to recycle a number of macs.  What happens to the hard drive when sent to Simms?  Do I need to dismount them?

    I wish to recycle a number of macs.  What happens to the hard drive when sent to Simms?  Do I need to dismount them?

    Hard drives don't die then come back to life. Your drive never died. You just thought it did.
    Obviously, if a hard drive isn't on and spinning its life is longer than when it is always on and spinning. If a hard drive in a laptop is idle it goes to sleep. That's normal because it prolongs battery life. Of course it hardly matters if the computer is running on AC power. The drive may still go to sleep but there's no impact on the battery.
    If the computer is in use 24/7 then its useful life will be less than if it's in use only 12/7 or 8/7. This is both logical and obvious. But in the long run all computers or their hard drives fail. There is little you can do to prevent that. They are meant to be used. If your life is dependent on the computer being usable, then buy another one as a spare. Or at the very least buy a backup drive, keep the computer backed up, then you can worry less about drive failure.

  • What happen when sy-subrc fails

    Hi,
    I want to know that what happens when sy-subrc fails . is there any example for it.

    Hi,
    Its a system variable which is used to check whether a particular stmt was successful or not.
    The purpose of this field to indicate success/failure of any action in SAP. After each statement in SAP is executed, the SY-SUBRC is set depending on the result of the statement. the SY-SUBRC can contain the following values.
    0 - This value is set when the statement is executed successfully.
    2 - This value is set when the statement is executed unsuccessfully.
    4 - This value is set when the statement is executed unsuccessfully.
    8 - This value is set when the statement is executed unsuccessfully.
    12 - Specified object not maintained in the user master record.
    16 - No profile entered in the user master record.
    24 - The field names of the check call do not match those of an authorization. Either the authorization or the call is incorrect.
    28 -Incorrect structure for user master record.
    32 - Incorrect structure for user master record.
    36 - Incorrect structure for user master record.
    For more deatils please go through the link [http://help.sap.com/saphelp_47x200/helpdata/en/7b/fb96c8882811d295a90000e8353423/content.htm]

  • What happens under the EXP

    Hi to all.
    First I wish you happy New Year, and wish you a lot of a health.
    I have a question about exp process. I am wonder what happens when I start export of my database.
    Recently I started an exp on the database over which I performed stress tests (a lot of transaction, insert, update..). A table(T1) in which are enroll are exported until some time, then started export other tables, but the table T1 are continue to enroll.
    What happen in the concurrent inserts and exports of one table?
    Thanks

    Export will dump the data for a single table as of the point in time it starts exporting that table. Other inserts/updates/deletes after the start of the export will not appear in the export file, due to normal read consistency rules.
    If you are exporting multiple tables, they will each be as of the point in time when export starts processing a given table, unless you specify the CONSISTENT=Y option, in which case all tables are exported as they appeared at the start of the export. This is the only way to get a relationally consistent export.

  • What happens to the open item in bsid table when it is cleared

    hi experts,
                   i have a doubt about open and cleared items of accounting documents. as we know open items of customers are stored in bsid and cleared ones in bsad. For suupose, an open item is closed ina particular period then what happened to the entry in bsid and bsad table. an entry regarding is stored in bsad (cleared),and what happens to the entry in bsid, still it will be there or removed from it.

    Hi,
    When ever we clear the document(Complete payment) that document will be moved to BSAD table. Other wise it will remain in BSID.
    If u are making partial payment then all the partial payment documents along with original document will be stored in BSID till u made the complete payment for that invoice.
    Assumption is u have to give all partial payment documents made for particular invoice item while u are making complete payment in F-28 transaction. So that these partail payment documents will also be cleared while making complete payment and moved to BSAD table.
    This trasaction can be used for both partial and complete payments.
    Irrespective of complete or partial payments made all the documents will remain stored in BKPF and BSEG tables.
    BSID and BSAD are index tables to address performance issues with BKPF and BSEG tables.
    So all open and cleared documents will be there in BKPF and BSEG tables.
    All cleared documents will be there in BSAD table.
    Alll open documents will be there in BSID table.
    Hope it is clear.
    Thanks,
    Vinod.

  • What happens to the mail in my iMac after I delete it from my iPhone? Will it be deleted from my computer as well?

    What happens to the mail in my iMac after I delete it from my iPhone? Will it be deleted from my computer as well?

    If they are both using the same iCloud ID (assuming you are running your mail from iCloud), then yes, the email will disappear from your Mac after you delete it from your phone and after your phone sycs with iCloud and your Mac syncs with iCloud.
    I use a windows phone, but it works the same.

Maybe you are looking for

  • File Error - Unknown file when trying to import from HDD camera

    I recently purchased a Panasonic SDR-H80 and am trying to get my widescreen footage into FCP. I converted the .MOD files to .m4v files in Handbrake, and they play and look fine in the Finder. However, when I try to move them into FCP, I get a dialog

  • Cannot delete playlist from Walkman

    Hi - Just got a Z1 compact and went to put my micro sd card from my old phone into the sony. Everything is fine except i cannot delete playlists from the My Playlists section of Walkman. The playlists have no content in them, i can't add content to t

  • Clarification on Btrfs Subvolumes

    Howdy-ha, folks.  So, I just got myself a new Western Digital Advance Format HDD for my laptop.  While I first considered cloning my current drive, I decided instead to just reinstall by backing up/restoring the pacman cache, first formatting the dri

  • RAC 11GR2 + ora-00206 after disable FRA

    Hi all, I had a diskgroup FRA_DATA with a size of 600Go and i want to reduce this diskgroup to 300Go. I put the database RAC in noarchivelog mode and i have deactivate the FRA. I reduce the size of this diskgroup to 300Go. Then, when i restart the da

  • Visited link colors shows on navigational buttons and icon despite not visited

    Hello!  I (newbie) have problems in my very first website.  Some of my navigational buttons at my footer section and the icon on the lower left shows the visited link color green despite I haven't visited any of the link.  There are times these color