Insert into viewobject in app module does not show entity validation errors

Hi everybody,
I am using JDeveloper 10.1.3 and ADF BC/ADF Faces. I want to have a button on one of page and I want that whenever user clicks on this button a records is inserted in a table. so I created an application module service method and exposed it on the client interface and the put it on my page using Data Controls Tab.
Here is some part of my code in application module :
public void setMember() {
HrMembershipsViewImpl membershipView = (HrMembershipsViewImpl)am.findViewObject("HrMembershipsView1");
HrMembershipsViewRowImpl newRow =(HrMembershipsViewRowImpl) membershipView.createRow();
newRow.setAttribute("MemberId",memberID); //this.getCode());
newRow.setAttribute("MembState","1");
newRow.setAttribute("CardState","1");
membershipView.insertRow(newRow);
trans.commit();
When this method tries to insert a record which violates a validation rule in the Base Entity Object, the screen does not show any error regarding to violating the business rule but nothing is inserted. I changed my code and captured the exception around the commit and I found that a JBO-27023 Exception happened after commit ( which was very surprise since the page does not show any error).
Now I can change my code to to the following to show that error happened.
public void setMember() {
try {
trans.commit();
catch (JboException ex) {
     getDBTransaction().rollback();
     throw new JboException ("There is an error during commit");
throw ex;
But I believe it shouldn't be like this. Normally, we should be able to insert programmatically in a view and if the business rules are violated we should get the violation error messages. If I use the above mentioned method we can not understand what business rules are violated.
Does anybody know what is wrong with my solution? I have seen a lot of times that using application module is the best way for adding functionality to the application pages but I really feel that something should be wrong if we can not get business rule violation messages.
Any help or references would be highly appreciated.
Thanks in advance,
Navid

Hello Navid,
it should work without try-catch.
1. When you add try-catch, does your error message appear on the page?
2. Does your page contains af:messages component?
3. Does your button have any navigation to another page?
Rado

Similar Messages

  • How to upgrade to aperture 3.5 when the app store does not show the update. I did buy aperture 3 on DVD not thru the app store. what to do?

    I can not open aperture databases anymore as osx10.9 keeps telling me i have opened it with a newer version, which i have not but i understand from other discussions that thru the upgrade of iphoto osx automatically thinks that you have opened with aperture 3.5. the app store does not show me the update as i have not purchased the program thru the app store but on dvd. what to do?

    If you are running MacOS X 10.9 and Aperture is installed in your Applications folder and simply called Aperture, not Apertre 3 or something, the AppStore should be showing you the update.
    Have you already updated to Aperture 3.4.5 from the Support page  Aperture 3.4.5?
    Try to update manually to 3.4.5 and then reboot and sign again into the AppStore with your AppleID and look at the Update page.
    For some forum members it helped to set the main system language to English U.S. to make the update finally show.
    Léonie

  • I have an app that does not show up on the left under iTunes.  How do I delete it?

    I have an app that does not show up on the left under iTunes.  How do I delete it from my Iphone 5?

    If the icon exists on your screen, just do a long press on that icon and when the small X appears on top of the app, press it and it will delete it.  As long as this is not an Apple app, since those cannot be deleted.

  • HT1338 Tried upgrading to 10.8.2. It failed the upgrade. Currently the Software version shows "  System Version:     OS X 10.8.1 (12B19)" . But App store does not show 10.8.2 as an update

    Tried upgrading to 10.8.2. It failed the upgrade. Currently the Software version shows "  System Version:
    OS X 10.8.1 (12B19)" . But App store does not show 10.8.2 as an update

    You can Contact MAS here.

  • Oracle apps Data does not show in Discoverer

    When running my query in sql developer, I have to execute the command apps.fnd_global.apps_initialize(user_id, resp_id, resp_appl_id) in order to show the result of my query. Without this, the query returns nothing. The problem is I am using this query as a custom query for my Discoverer report and my report does not show any record. Anyone knows how to handle this?

    Hi,
    There can be many reasons why a Discoverer report does not return data, but I don't think it will be because the session is not apps initialized. Check that the language has been set correctly, using the calculation userenv('lang').
    As I don't know anything about your environment, it is a bit hard to guess what else might be causing this issue. Is there anything different about this report? What is the custom query that you are running?
    Rod West

  • Just purchased a ipad2, could not us it on my MacBook 10.4.1 - Purchased and installed OSX Snow Leopard 10.6.3 - downloaded and installed latest itunes, set up a itunes accounts and tested by purchasing an album and app, ipad does not show in devises?

    I just purchased a ipad2, it would not work on my MacBook 10.4.1 I purchased and installed OSX snow leopard 10.6.3 downloaded and installed the latest itunes, set up an itunes account, purchased some music and apps.  When i plug in my ipod it shows up and works, but when i plug in my new ipad the ipad screen comes up with a display of a cable and itunes but does not show in devises, i have tried all the resets and different USB ports with no success.  Any ideas short of selling it on ebay or buying a new computer?

    If you've already tried the usual rebooting of the computer and ports and stuff, there is only a few things left I can think of. It's possible that when you updated iTunes it didn't fully replace all the files, so I suggest just manually removing iTunes and then reinstalling it.
    Try removing iTunes manually first http://support.apple.com/kb/HT1224 then download a fresh copy, make sure it is 10.3.1
    It is essential that you go through Finder to remove those files it mentions. Otherwise they won't be reinstalled when you run the installer again.

  • I have one app that does not show up in Launchpad

    I have one app, the game Diablo II, that still shows up in my Applications folder as it always has but does not show up in Launchpad when I pull that up in Lion.  All of my other apps are there in Launchpad... but not this one.  Any idea how I make an app that I can see in my Applications folder show up in launchpad also?

    If the icon exists on your screen, just do a long press on that icon and when the small X appears on top of the app, press it and it will delete it.  As long as this is not an Apple app, since those cannot be deleted.

  • Preview module does not show ajustments

    Hi everyone
    This is a problem that has arisen very recently.
    When carrying out adjustments in the develop module the preview image does not show the changes however the thumb nail in the filmstrip at the bottom of the screen does.
    Can anybody help please as it is rendering the programme unusable.
    Many thanks

    Sorry Keith details as follows
    What version of Lightroom? 5.4
    Have you installed the recent updates? Yes
    What operating system? Win 7 x64
    Tell us about your computer hardware. How much RAM is installed?  How much free space is on your system (C:) drive? Intel I7, 16GB ram, runs from 1TB D drive with 580GB of space
    Has this ever worked before?  If so, do you recall any changes you made to Lightroom, such as adding Plug-ins, presets, etc.? Recently added the following Dr Brown services, Adobe paper textures pro, Adobe watermark, Adobe emailer
    Thanks

  • HT201401 iPhone app (green)does not show on my phone. why?

    Green pnone app does not display on my phone....why and how do I get it back?

    where do i look for folder?  my App store App is still not showing om any of my screens?!   please help

  • When filling a Digital Signature field from a mobile app, signature does not show  Reader or Acrobat

    Scenario :
    1. Receiving a pdf form with digital siganture field.
    2. Signing form using various pdf apps. " PDF EXPERT for iPad/iPhone"
    3. After signing and emailing the document, opening in reader or Acrobat, the signature does not display but the field is gone, as if it was signed.
    * Is reader /acrobat requiring a validation that it is not receiving to show the signature?
    Did verify that the signature shows in Chrome, using chromes default pdf viewer.

    New Feature came in the last update.
    Here is the reference material to disable it:
    Signing with EchoSign
    These preferences allow IT to remove signing options from the product's user interface.
    http://www.adobe.com/devnet-docs/acrobatetk/tools/PrefRef/Windows/FeatureLockdown.html?zoo m_highlight=echosign#idkeyname_1_6294
    Summary table
    bEnableEchoSignDetection
    Displays the Document Message Bar when a blank signature field is detected.
    bEnableFillSig
    Specifies whether to remove the Sign Now panel from the Sign Pane.
    bEnableSignPane
    Specifies whether to remove the Sign task pane button from the toolbar.
    bEnableEchoSignDetection 
    Top>FeatureLockdown>Signing with EchoSign>bEnableEchoSignDetection
    Data type
    boolean: DWORD value > REG_DWORD
    Default
    1
    Version #
    11.0.03
    Lock Path
    HKLM\SOFTWARE\Policies\Adobe\(product name)\(version)\FeatureLockdown\cServices
    Summary
    Displays the Document Message Bar when a blank signature field is detected.
    Details
    When enabled, the product tries to detect if a document may need to be signed. If the words "Sign" or "Signature" are detected next to any line, a document message bar appears with an "Open Sign Pane" button. Possible values include:
    0: Don't detect signature fields.
    1: Do detect signature fields.

  • App Store does not show download status.

    Hi There,
    in need a bit of help.. apparently, the App store on my macbook pro does not sure any download status for the apps i download. However, i do see a growing bar on my dock for the app i am downloading.
    Is there any way i can get it to show?

    If you are currently downloading any app and you just lost the status bar from the launchpad which shows apps on your mac with a large overlaying icon app, just try to download any free app (games or utility etc) from the app store and install it, it will bring you back to the window of the launchpad where you can see the status of your downloads....you will notice that I was downloading the Mavericks OS but the download status wont show up on the app store..you will see the status instead on the launchpad, I am using Lion 10.7.5 so I do not have the launchpad icon on my DOCK, maybe I am also just missing the shortcut to launch it. I just discovered that when you install another app from the app store it will bring you this window back, by clicking on the currently downloading app, it will pause the download and will proceed with the other app to finish its process....
    I hope this would help.....by the way, with my macbook pro 10.8.5, download status is present on the app store when I was downloading the Mavericks a while ago....

  • Aperture purchased in app store does not show in purchased list.

      It shows as INSTALLED if looking at the app on it's individual page, but can't redownload it when it is not in the purchased list.  How do I fix this?
    It crashes on launch and I can't reinstall it.  If I move the app to the trash, the indivual page shows the purchase price instead of INSTALLED.  The other apps I have purchased show on the purchased page.

    Well this is getting very intriguing now. Unfortunately I can't see your computer's screen to verify it's not something simple... ie just not seeing the item.
    If what you say is true, then this may be something engineering may want to look at. Whatever the case, let's contact iTS and start some correspondance with an advior for now.
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • 4.2 Book module does not show photos, only pages and captions

    Windows 7. I created a new master catalogue Imported one book catalogue and it worked fine. Next book catalogue, problem,  no photos shown in book module. The cataloque I imported I had earlier exported and when I open that exported cataloque all photos are showing but not when imported into the new master catalogue. I did it twice first cataloque fine next one not. Thanks for any suggestions. Curt

    There are some errors thrown into log when this happens.
    Level
    Source
    Message
    SEVERE
    oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$1
    node has no children at javax.swing.tree.DefaultMutableTreeNode.getChildAt(DefaultMutableTreeNode.java:243)
    WARNING
    org.openide.windows.WindowManager
    [Winsys] TopComponent com.oracle.jdeveloper.nbwindowsystem.NbEditorContainer throws runtime exception from its componentActivated() method.
    Please repair it!

  • Photos app years does not show countries

    After updating to iOS 7 I noticed that under the "Years" section, pictures from 2010 to 2012 all displayed the names and number of countries I have visited. However, no countries are listed in the year 2013, beside the heading even though this was the year I travelled to the most number of countries.
    Anybody happen to know how to fix this? The locations of the places I have been to, are shown in the collections and moments sections though. Just not in the years section.

    The App description works for me in the App Store.
    What are you doing?
    Have you tried restarting or resetting your iPad?
    Restart iPad: Press and hold the Sleep/Wake button until the red slider appears. Slide your finger across the slider to turn off iPad. To turn iPad back on, press and hold the Sleep/Wake until the Apple logo appears.
    Reset iPad: Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears.

  • When I upload audio from itunes into my imovie project, it does not show all of the track?

    Hi, I have opened a new project in imovie - I have uploaded 200 photos into the project to make a Comic Book movie!
    this project is 7 mins and 8 seconds long - the exact length of the audio track that I want to play during the movie!
    I have selected the music by clicking the musical note button in imovie, which open up my itunes library and displays the track I want to use that is 7 mins and 8 seconds long.
    When I click and drag my MP3 audio from itunes into my imovie project, i only plays the first 5 mins & 33 seconds; leaving my project in silence for the final 1 min & 3 seconds????
    I have not added markers, there are no fade ins or fade outs - only the first 5 min & 33 seconds or a 7 min & 8 seconds MP3 Audio track???
    I have spent 10 hours trying to rectify this problem.......
    can anyone help me with this problem
    Peace, Love & Happiness
    Jayondrums

    Sounds like your talking about iMovie for Mac?
    This is the iOS version, repost here:
                                                      iMovie

Maybe you are looking for

  • Invoking EJB3 from BPEL 11g

    Hi, I need to call EJB from my BPEL process. I am using Jdev 11.1.1.4. I am able to call the EJB from my BPEL if both are deployed in the same container. Ideally I would be having the EJB deployed in a different machine. But when I try to invoke EJB

  • Problems with Backup restore after HD replacement

    Hi All, I recently had my HD replaced on my Powerbook through Apple and I am having some significant problems trying to get everything running properly again. Prior to sending my computer out, I did have everything backed up on an external HD using B

  • Marquee efect in tray object

    Hi I´m trying to make a marquee efect in title of com.sapportals.htmlb.Tray object is it possible?? how can i do that? Thanks

  • Oracle Startup/Shutdown

    Having trouble with EM in a windows server environment running 10G When i startup/shutdown my server do i need to stop the listener, dbconsole and agent? Everytime i reboot my TEST server EM stops working. I have checked the windows services start ok

  • How to Change date and time on my printer

    I want to know how to change the date and time on my printer.