Toplink doenst save and doesnt give an error :(

Hey :)
Sorry for bad english..
I have a method that i user UnitOfWork to save my objects but it doesnt work and doenst give me an exception.
I run on debug mode and i execute all lines without error...i dont know what to do....
Well, this is my methods:
     public void saveOrUpdate(CargaRemarcacaoVO cargaRemarcacaoVO){
          try {
               TbTpCargaRemarcacao tipoCarga = this.findTipoCarga(new Long(1));
               unitOfWork.registerObject(tipoCarga);     
               this.saveRegistroCarga(cargaRemarcacaoVO, tipoCarga);
               unitOfWork.commit();
          } catch (Exception ex){
               ex.printStackTrace();
     private TbTpCargaRemarcacao findTipoCarga(Long cdTpCarga){
          TpCargaDAO dao = new TpCargaDAO();
          TbTpCargaRemarcacao pojo = null;
          TipoCargaRemarcacaoVO tipo = new TipoCargaRemarcacaoVO();
          tipo.setCdTpOferta(cdTpCarga);
          tipo.setNovoTipo(false);
          pojo = dao.getTpCargaRemarcacao(tipo.getCdTpOferta());
          return pojo;
     private void saveRegistroCarga(CargaRemarcacaoVO cargaRemarcacaoVO, TbTpCargaRemarcacao tipo){
          TbCargaRemarcacao pojo = new TbCargaRemarcacao();
          pojo.setCdTpCargaRemarcacao(tipo);
          pojo.setDtCarga(cargaRemarcacaoVO.getDtCarga());
          pojo.setDtEtiqueta(cargaRemarcacaoVO.getDtEtiqueta());
          pojo.setDtFaturamento(cargaRemarcacaoVO.getDtFaturamento());
          pojo.setDtFimVigencia(cargaRemarcacaoVO.getDtFimVigencia());
          pojo.setDtInicioVigencia(cargaRemarcacaoVO.getDtInicioVigencia());
          unitOfWork.registerObject(pojo);
The method find works and return me an object but i dont know how to save it...what im doing wrong?
Thanks

Hi,
Most likely you have to adjust WHENEVER SQLERROR and (or) WHENEVER OSERROR settings.
Consider an example below:
C:\> sqlplus /NOLOG
SQL*Plus: Release 9.2.0.6.0 - Production on Wed Nov 1 02:55:29 2006
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
SQL> conn max
Enter password:
Connected.
SQL>
SQL> whenever sqlerror continue
SQL>
SQL> exec raise_application_error(-20000, 'Error')
BEGIN raise_application_error(-20000, 'Error'); END;
ERROR at line 1:
ORA-20000: Error
ORA-06512: at line 1
SQL> whenever sqlerror exit
SQL>
SQL> exec raise_application_error(-20000, 'Error')
BEGIN raise_application_error(-20000, 'Error'); END;
ERROR at line 1:
ORA-20000: Error
ORA-06512: at line 1
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
JServer Release 9.2.0.6.0 - Production
C:\>As you can see, with WHENEVER SQLERROR set to EXIT, SQL*Plus session terminates as it encounters any program error.
Similarly, for OSERROR setting:
C:\> sqlplus /NOLOG
SQL*Plus: Release 9.2.0.6.0 - Production on Wed Nov 1 02:57:08 2006
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
SQL> conn max
Enter password:
Connected.
SQL>
SQL> start C:\non_existent_file
SP2-0310: unable to open file "C:\non_existent_file.sql"
SQL>
SQL> whenever oserror exit
SQL>
SQL> start C:\non_existent_file
O/S Message: No such file or directory
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
JServer Release 9.2.0.6.0 - Production
C:\>Hope this helps.

Similar Messages

  • I am using an Equi-Ripple BandPass VI and it gives the error 20023???

    I am using a Equi-Ripple BandPass VI and it gives the error  20023. when I change the values of sampling frequency and other required ones and save. it wont save. when I run the program again, it goes back to the previous values, so it displays the error again, so it doresnt display my waveform ???? I am using sampling frequency of 100. High pass 40. low pass 0.5. high stop 45 and low stop 0,25. 
    Attachments:
    half (2).vi ‏144 KB

    OK I see you fixed this with While.vi.  However you left the filter parameters unwired in that vi.
    Let's speak of the operation: the while loop executes exactly once since both cases of the case structure pass F to the condition terminal.  This means that your U8 array will have 0 or 16 elements.  So, the build array outputs will either be a 1D arry of 2 elements or a 1D array of 0 elements (the reshape arrays do nothing) and the inputs to the filter have fewer elements that taps (default is 32).  Taps less than or equal to 2 is an error and so is samples less than taps.  You've created an error generator.
    Jeff

  • HT1212 my itunes says it can not sync my ipod touch key in password on the device but my ipod touch says ipod disabled connect to itunes and doesnt give a option for my password how do I unlock my ipod

    my itunes says it can not sync my ipod touch key in password on the device but my ipod touch says ipod disabled connect to itunes and doesnt give a option for my password how do I unlock my ipod

    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Take your time... Pay particular attention to Steps 3 and 4.
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • Iphone has a new battery and front camera flex cable. Wont turn on and Itunes gives me error 4014 when i try to restore

    So my iphone 5 was having very bad battery problems and apple said they charged $80 to which i was astonished by because my warrenty ended 2 weeks eailer. I thought maybe they would be generous and help me out but no so i took it upon myself to get a new battery and install it myself. I did that and it turns out i need a new front camera flex ribbon so i also bought that and installed it myself. Whe i was donre installing it my phone flashed the apple logo and went black front there. I tried connecting to itunes and it gives me error 4014. Will apple still fix my phone even though i opened it?(Im not under the warrenty anymore).

    It is unfortunate that you chose to open the device.  Apple will not touch it now.  Out of Warranty replacement is no longer an option.
    Buy a new device.

  • When I switch from ios 6 to ios 7 my iphone 4s asking to I tunes to update an taking 10 hours and than give me error 3194 what can I do?

    When I switch from ios 6 to ios 7 my iphone 4s asking to I tunes to update an taking 10 hours and than give me error 3194 what can I do?

    Unable to contact the iOS software update server gs.apple.com
    Error 1004, 1013, 1638, 3014, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors:
    Install the latest version of iTunes.
    Check security software and ensure that communication to gs.apple.com is allowed. Follow these stepsfor assistance with security software.
    Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. Follow theadvanced iTunes Store troubleshooting steps to edit the hosts file or revert to a default hosts file. See "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information."
    Try to restore from another known-good computer and network.
    If the errors persist on another computer, the device may need service.

  • My iPod touch is not responding and doesnt give any options says it's disabled for 22,134,252 minutes and not moving

    my iPod touch is not responding and doesnt give any options says it's disabled for 22,134,252 minutes and not moving, any ideas?

    iOS: Unable to update or restore

  • I am trying to save a large file on Illustrator CS6 and it does not save and instead says "Unknown Error Occurred." What do I do?

    I am trying to save a large file on Illustrator CS6 and it does not save and instead says "Unknown Error Occurred." What do I do?
    The file has 4 artboards with webpage designs. I tried to take two of the artboards, create a separate doc with those two, and save, but the result was the same.
    However, I am able to save simpler, smaller files.
    I need to not lose these files and I am afraid to quit and restart and lose my unfinished work.
    Any advice?

    What happens if you choose this option?

  • I keep trying to update my ipad 2 to ios5 and it gives me error code 3194

    i keep trying to update my ipad 2 and it gives me error 3194 . who can help

    Straight from Apple:
    Error 3194: Resolve error 3194 by updating to the latest version of iTunes. "This device is not eligible for the requested build" in the updater logs confirms this is the root of the issue. For more Error 3194 steps see: This device is not eligible for the requested build above.
    http://support.apple.com/kb/TS3694#error3194

  • Trying to sign into my account, it cannot sign me in and it gives me error message 5002

    HELP. when trying to sign into my account, it tells me it cannot sign me in and it gives me error message 5002

    go to
    https://iforgot.apple.com/password/verify/appleid?language=US-EN&returnURL=https ://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa&app_id=93&app_type=ext
    and anter your apple is and then go to your main id and reset

  • Cannnot connect iphone 5s after uninstalling itunes and reinstalling, gives me error message

    cannnot connect iphone 5s after uninstalling itunes and reinstalling, gives me error message

    Hey spenjor,
    Thanks for the question. I understand that you are experiencing issues connecting your iPhone 5s to iTunes. The following resource may assist you:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    If your issue persists, can you elaborate on the error message you are receiving?
    Thanks,
    Matt M.

  • I can not restore my ipod and it gives me error code 9.

    i can not resatore my ipod and it gives me error code 9.  HELP!

    Mine kept doing this, the only way I was able to get it to restore was to try on another computer, it doesn't like my custom PC, works great on my fiance's gateway though.

  • My PC sporadically recognizes my iPhone.  occasionally it synchs on first try.  More often it recognizes the iPhone and then gives an error message that it can't recognize it.  Help!

    My PC sporadically recognizes my iPhone.  occasionally it synchs on first try.  More often it recognizes the iPhone and then gives an error message that it can't recognize it.  Help!

    Thank you both. I suppose I should have prefaced my question with the concern that I've read a number of other posts from people who have had a similar issue and when they tried to follow the directions, they ran into a multitude of other problems. As you might imagine, I'm hoping to avoid the creation of new problems as I try to solve this one. Thanks again.

  • IOS 7 will not load on ipad 2.  It starts and then gives an error message.  I'm in Florida.

    iOS 7 will not load on ipad 2.  It starts and then gives an error message.  I'm in Florida.

    the servers are overloaded at the minute. keep t it and it will download eventually!

  • SQL*PLUS WINDOW DOESNT GIVE AN ERROR MESSAGE.

    HI,
    i FOUND OUT THAT IF I HAD AN ERROR IN MY SQL SCRIPT, THE WINDOW WILL DISAPPEAR AND LOST EVERYTHING THAT I HAVE DONE. IT DOESNT GIVE ME AN ERROR MESSAGE. IM HERE IN CHAP05, BUILDING A RELATIONAL SCHEMA OF ORACLE DATABASE 10G EXPRESS EDITION FOR LINUX. WHAT PARAMETER AM I MISSING IN MY SYSTEM? PLS. HELP ME. THANKS.
    LEN

    Hi,
    Most likely you have to adjust WHENEVER SQLERROR and (or) WHENEVER OSERROR settings.
    Consider an example below:
    C:\> sqlplus /NOLOG
    SQL*Plus: Release 9.2.0.6.0 - Production on Wed Nov 1 02:55:29 2006
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    SQL> conn max
    Enter password:
    Connected.
    SQL>
    SQL> whenever sqlerror continue
    SQL>
    SQL> exec raise_application_error(-20000, 'Error')
    BEGIN raise_application_error(-20000, 'Error'); END;
    ERROR at line 1:
    ORA-20000: Error
    ORA-06512: at line 1
    SQL> whenever sqlerror exit
    SQL>
    SQL> exec raise_application_error(-20000, 'Error')
    BEGIN raise_application_error(-20000, 'Error'); END;
    ERROR at line 1:
    ORA-20000: Error
    ORA-06512: at line 1
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    C:\>As you can see, with WHENEVER SQLERROR set to EXIT, SQL*Plus session terminates as it encounters any program error.
    Similarly, for OSERROR setting:
    C:\> sqlplus /NOLOG
    SQL*Plus: Release 9.2.0.6.0 - Production on Wed Nov 1 02:57:08 2006
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    SQL> conn max
    Enter password:
    Connected.
    SQL>
    SQL> start C:\non_existent_file
    SP2-0310: unable to open file "C:\non_existent_file.sql"
    SQL>
    SQL> whenever oserror exit
    SQL>
    SQL> start C:\non_existent_file
    O/S Message: No such file or directory
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    C:\>Hope this helps.

  • Save and Send to Sharepoint error

    I'm using Microsoft Word 2010 and a sharepoint 2010 site.
    And I'm having troubles with file locations when saving files back to sharepoint library.
    First, when I open a file from sharepoint site, edit and try to save, the default location is not the location of the library the file was at.
    If I try to do 'File>Save and Send> Save to Sharepoint' and select a recent location,
    or if I click onfind location, I get the following error message:
    Could not Find http://xxxxx.xxx/DocumentLibraryA/FolderA
    The only way I'm able to save is via 'File>Save as' and input the url on
    the file name field.
    This issue is not happening with every computer I try to open files from sharepoint. On some other computers, I am able to open the file from the library and it comes with the default location, and if I do 'File>Save
    and Send> Save to Sharepoint', it opens normaly.
    Does anyone knows how to fix this?

    Hi,
    Please try to add the "Desktop Experience" feature in your computer.
    Go to All Programs –> Administrative Tools –> Server Manager. Choose Features –> Add Features
    Next, check the "Desktop Experience" feature. On the popup, choose "Add Required Features".
    More informaiton is here:
    http://petervdberg.blogspot.com/2011/01/how-to-enable-save-and-send-option-in.html
    Best Regards
    Dennis Guo
    TechNet Community Support

Maybe you are looking for

  • Design View - Can't believe it's gone!

    I have been using Flash Builder since it was Flex Builder. Actually, since flex was introduced. Once of the best features of Flash Builder over other IDE's was the ability to use a GUI to layout elements on the page. I just downloaded the trial versi

  • HT204368 I have an IPhone 5 & Bluetooth just keeps searching & doesn't connect to devices I'm trying to pair with. Says "not supported"

    Sorry, if I've posted in the incorrect place. First post, please bare with me. I've been trying to transfer photos from my old Samsung Galaxy Ace & Toshiba laptop via Bluetooth to my iPhone 5. iPhone but message of "not supported" comes up when pairi

  • JPA and Entity manager.

    Hi all, I have a "simple" question: Should I create a class to manage entity manager and entity manager factory on JPA2? Why do I ask that? Because I read on J2EE tutorial: With a container-managed entity manager, an EntityManager instance's persiste

  • PROBLEMS : ODBC(POLITE) FROM FORMS9i ON XP

    We had an application running on Polite (Oracle Lite 5.0.1), on a windows2000 client, executing from Forms6i. This worked fine. Now (corporative requirements), it has to run on a client WindowsXp Profesional. We have installed Forms9i but we can't fi

  • Lost iphoto images

    All my images from iphotos have gone. I am not sure why.  The Mac may have been switched off at the plug by mistake, I don't know if this is the reason. I regularly make back ups but can't seem to find the files on passport.  Can anyone help?