Added records in DB are not show in page until start a new browser

I am inserting a record in my DB table by writing a code in my App Module Impl class. The code is shown below:
EntityDefImpl productDef = ActivitySubtype_EOImpl.getDefinitionObject();
ActivitySubtype_EOImpl newSubActivityType = (ActivitySubtype_EOImpl)productDef.createInstance2(getDBTransaction(),null);
newSubActivityType.setAttribute("SubActivityName",subActivityType);
getDBTransaction().commit();
getDBTransaction().clearEntityCache(null); // Here I have tried lot of other function like refresh(), setClearCacheOnCommit() but noting works.
For updating the cache I have tried many functions but nothing is working. I mean that I when I go to the same browser and view the rows, the row is added but without any PK (which is being generated by a sequence fired by trigger in my DB), until I start a new browser to see the record. When I start a new browser and view the rows I can see everything in sync with the DB table. Can someone let me know how to update the View Object cache?
Appreciate your kind help.
Thanks,
Sanjay

Hello John,
Many thanks for your reply. I have marked the configuration you have talked about, but still it does not work.
I understand that the problem is that my VO cache is not getting updated on its own. When I open a new browser, for this new session when the SQL query gets fired, the VO cache gets updated from the DB and the changes are visible in the new page.
To overcome this problem I tried adding row using my VO (and not EO, as in my previous case). But I am getting some NullPointerException in that.
Here is the code and exception.
Code:
String amDef = "model.activity.subtype.Second_AMImpl";
String config = "Second_AMLocal";
ApplicationModule secondAM = Configuration.createRootApplicationModule(amDef, config);
ActivitySubType_VOImpl svcReqs = (ActivitySubType_VOImpl) secondAM.findViewObject("ActivitySubType_VOImpl");
if(svcReqs != null)
System.out.println("I am NOT NULL");
else
System.out.println("I am NULL"); // This object is null
Row newSvcReq = svcReqs.createRow();
svcReqs.insertRow(newSvcReq);
Exception:
javax.faces.FacesException: #{backing_addSA.create_action}: javax.faces.el.EvaluationException: java.lang.NullPointerException     at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)     
at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)     
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)     
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)     
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)     
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)     
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
My VO is in the same package, hence for the VO I not mentioned the package. When I mentioned the package it not able to create the VO at all.
Can you help me on creating a new record using a VO?
Thanks,
Sanjay

Similar Messages

  • FLVPlayback controls are not showing in other people computer on there browser...

    Hi,
    In my project I have to play a flv vedio in swf file so in place a FLVPlayback component in one movieclip and when I hv to show I make that movie clip visible and play the vedio from starting.
    Its working fine on my computer but FLVPlayback controls (play pause button, seek bar volume controls) are not showing in other people computer on there browser...

    Then set "base" attribute to "swf" or "./swf" (relative path - can't remember which ), or absolute path to the "swf" directory.
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • Images are not showing when page load

    Hello All
    I am having lot of webparts on my page.
    In two of them webpart i applied xslt and showing image of created by person in this
    1)Announcement webpart(Wall updates)
    2)Showing blog using content by query webpart(Blogs)
    While page loading not able to load images in both webpart view.
    But when i decreases webparts on page images rendered properly.
    I think it is taking time to fetch images so timeout and showing default images.
    Kindly suggest me some way to tackle and images will displayed properly
    Thanks in advance
    Varsha Patil

    Hi,
    According to this documentation from MSDN about
    SharePoint Server 2010 capacity management: Software boundaries and limits:
    “In SharePoint Server 2010, there are certain limits that are by design and cannot be exceeded”, “The default values for these limits were defined by testing, and represent the known
    limitations of the product. Exceeding supported limits may cause unexpected results, significant decrease in performance, or other harmful effects”, “in most cases, operating at or near an established limit is not a best practice, as acceptable performance
    and reliability targets are best achieved when a farm’s design provides for a reasonable balance of limits values”.
    So it is not recommended to add many web parts into one page.
    If there is a special need to display many web parts in one page, it is recommended to reorganize the content to minimize the number of web parts in use and customization will
    be needed sometimes if the built-in web parts can’t meet the requirement.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Changes made in iphoto library are not showing up in aperture

    I currently have Aperture referencing my photos off of my iphoto library. I have made changes (consolidated a couple of events) and imported more photos from my camera and both are not showing up in Aperture.
    The new photos I imported were placed into an existing event (in both iphoto and aperture).
    How do I get aperture to recognize the changes I made in organizing my library?
    Thanks
    Michael

    Aperture won't know that you've made changes to your iPhoto library, and therefore won't redraw the thumbnail or update the main image. The way iPhoto works that if you make a change, it'll create another JPG and store it within the iPhoto Library folder or package (depending on which version you're on). If Aperture is still referencing the original image (quite likely), its not going to know iPhoto has created another one, and even more so, where that file is. You can do it the other way around and up date the to, for example, have images in your Aperture library, referenced to your iPhoto library. If you change the image in Aperture, it will update in iPhoto using the JPEG previews. The only thing that might not change is the iPhoto thumbnail, but the image itself will bring through the changes from Aperture as technically, its the same file is looking at.

  • HT1391 how do I find free downloads that I have added to my library that are not showing up in the library on in icloud?

    How do I find free downloads that I hve added to my library that are not in my library or in icloud?

    Hi revsteph,
    If you have songs that you know you have purchased, but are not showing up in your iTunes Libarary, you may want to see if you can redownload them. You may find the following article helpful:
    Apple Support: Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/ht2519
    Cheers,
    - Brenden

  • HT4191 I have iphone 5 and the latest iO7.1. Since upgrading to IOS7.1 birthdays added to a contact are not shown in calendar anymore. It use to show automatically before.

    I have iphone 5 and the latest iO7.1. Since upgrading to IOS7.1 birthdays added to a contact are not shown in calendar anymore. It use to show automatically before. Can anyone help?

    Click on calendars at the bottom of the screen. Make sure that birthdays are checked.
    We may think we have 1 calendar, but iPhone puts things in different calendars. Sometimes we can somehow lose one. Well not really lost, but somehow it just gets de-selected. So just make sure that all that you want to see are checked.
    One cool thing I like about this is that they have added US Holidays which didn't used to be there like on most paper calendars. Nice to have them available now!

  • Condition records are not showing in Invoice

    Hi Experts,
    My List price for XXXX material is amount $$$$$. Condition records having required validity.
    But the values are not showing in invoice though the pricing analysis shows green for this condition type.
    Condition values shown perfectly in preceeding documents.
    Analysis message says " Condition record exists but has not been set "
    Can you please suggest me, why this condition values are not shown in net value and suggest me the fis.
    Thank you in advance.
    Edited by: Ganesh B on Feb 4, 2010 4:45 AM

    Hi,
    Goto the T. Code "VF03".
    Enter your billing document number.Enter.Check what is the pricing procedure determined here.Goto the T.Code "V/08".Check whether that condition type present in that procedure.
    If so check the validity of the condition records.Ensure it falls under your billing document date.Also ensure that it is not marked for deletion.For this goto the last column in the condition record screen "VK12 T.Code".Ensure that this check box is not ticked.
    And you are telling that you are able get this one in previous documents.
    Goto the T.Code "VTFA(if your scenario is order related billing)" else goto the T.Code "VTFL(If your scenario is delivery-related billing)".
    Select your valid combination.Double click on item.Select your item category.Details.
    Make the Pricing type as "D" and pricing source as "blank".
    Regards,
    Krishna.

  • Some Devices are not showing up at all in the Discovery reports

    Hi all,
    The first time I ran the CS device discovery I got 50 reachable devices. I scheduled the Device Discovery to be run every week. I added more subnets to the discovery but unfortunately the last discovery shows only 31 devices from the first discovered devices (50). I checked the DCR and there is only 44 devices out of the 50!
    My question is:
    Should not the scheduled Device Discovery discovers all devices -the previously discovered ones and the new ones-?
    Why the rest of the devices are not showing up at all in the discovery reports (neither reachable nor unreachable) although all of them are pingable and responding to the snmpwalk tool from the CWLMS server.
    Your kindly respond is highly appreciated.
    Thanks in advance.

    I ran the discovery again with the same settings after enabling debugging and I checked the following log files:
    1. in the ngdiscovery.log I found a lot of errors all about Duplicate IpAddress example:
    ERROR  [DeviceManager : EvalTask-DiscoveryThreadPool-06 addNewDevice]  : Duplicate IpAddress (127.0.0.51) found in addNewDevice().Device 1 ip = 10.8.113.29 , id1 = 127.0.0.51*F1COR.xyz.com*.1.3.6.1.4.1.9.1.283, Device 2 ip = 10.8.113.106 , id2 = 127.0.0.51*LCD.xyz.com*.1.3.6.1.4.1.9.1.283
    ERROR  [DeviceManager : EvalTask-DiscoveryThreadPool-08 updateDevice]  : Duplicate IpAddress (127.0.0.51) found in updateDevice().Device 1 ip = 10.8.113.93 , id1 = 127.0.0.51*UDS.xyz.com*.1.3.6.1.4.1.9.1.283, Device 2 ip = 10.8.113.73 , id2 = 127.0.0.51*F2COR.xyz.com*.1.3.6.1.4.1.9.1.283
    ERROR  [DeviceManager : EvalTask-DiscoveryThreadPool-09 addNewDevice]  : Duplicate IpAddress (10.8.113.42) found in addNewDevice().Device 1 ip = 10.8.113.42 , id1 = null, Device 2 ip = 10.8.113.86 , id2 = 10.8.118.251*OPS.xyz.sa*.1.3.6.1.4.1.9.1.501
    2. in the CSDiscovery.log:
    Error while changing the permission of the file C:\PROGRA~1\CSCOpx\objects\csdiscovery\1348\DiscoveryStatusObj
    I checked the file and the casusers has a Modify permission
    My Question is:
    1. what is the meaning of those output exactly?
    2. If CWLMS found duplicatedd IP address how it works in terms of (ignoring, updating existing devices, Adding the new devices, ... etc)
    Many thanks for your help.

  • All of my contacts are not showing up

    Once I updated my phone to to iCloud, now all of my contacts are not showing up in my contact list but if I type in the number, they show up.  How do I fix this?

    I also have this problem, just from the iPhone 5s which makes my life crazy, too.
    The problem of having multiple devices doesn't seem to help, but the odd part is when everything I am doing is correct, it still doesn't sync like it used to do before iCloud, and when we had to USB wire connect the iPhone to the Laptop to make contacts sync.
    Might I add that I am not using MAIL on my LAPTOP?
    but ?Britty sounds like her issue is easier as gmail sometimes can create duplicates so you are in good if you are not having that problem or nightmare...
    IF ANYONE ELSE can PLEASE ADD to this THREAD? I would be thankful
    as there seems to be a TRENDING on iPhone 5s not syncing with other devices or backwards.....(I have added contacts to the iPhone 5s and they never get added to the iCloud or the iPad or the Addressbook or CONTACTS on the LAPTOP....
    This should be working and I have checked the CONTACTS on the laptop GROUPS , iCloud, vs ALL ON MY MAC
    it just isn't syncing and in some cases I am getting a WEB DAV error or CAL error...-1
    what is that? iCloud will not sync all contacts?
    something is crazy
    but I want to remain at 10.8 MOUNTAIN LION and not upgrade to MAVERICKS......or use MAIL on my LAPTOP...just CONTACTS ONLY......

  • Parameter values are not showing in in the Organization Parameter form

    We have done a setup for an Inventory Organization.
    Everything was working fine.
    Values were showing everywhere.
    We have lot of transactions done in the org also.
    But suddenly yesterday when I was trying to open the Organization Parameter form for that specific organization, the form came up as blank and in the bottom the error is Query caused no records.
    I have checked data is there in the base table mtl_parameters.
    Value is coming for other organizations. Only one specific organization is having this issue.
    Even in Examine, I have taken the last query run on that form and ran the same in back end database, I can see all values are there in the database.
    But in frontend screen the values are not showing. even organization code also not showing.
    Navigation is: Inv Super user --> Setup --> Organization --> Parameter

    Have you checked Organization Access to ensure that no one restricted that org?
    Or shipping grants and roles?
    I think there are quite a few places that you can restrict access.

  • The lines I create with the pen tool are not showing up in After Effects.

    I'm working on a project where I need straight lines. I've added the lines using the pen tool on solid layers, but they are not showing up before or after rendering. I can see where they are supposed to be when I isolate the layer they are on. I have the lines at one pixel, solid white and the layers are on top of everything else. I took a screen shot. Can anyone help me?

    Well, I am still not 100% sure why the pen tool lines/masks are not showing up but I was able to work around it. I already had the stroke effect applied and set to all masks. Looking into this though, it seemed that they were only not showing up on the new solid layers I had created. I duplicated the layers the masks were  working on instead and it seems to resolve the problem for now. Thanks for your help!

  • TS3989 my photos that i took on my ipad are not showing up in iphoto or aperture

    I have photos that I took on my Ipad that are in photos. They are not showing up in Iphoto or aperure on my Mac? All software is up to date,photostream turned on on mac and ipad....is there something else I need to do?

    OK, you'll have to upgrade to iPhoto '11, available in the Mac App Store, in order to get photo stream and shared photo stream on your Mac.  After doing so, you'll be able to go to System Preferences>iCloud and check Photo Stream.  Then your photo stream photos will appear in iPhoto on your Mac.
    As mentioned earlier, photos added to photo stream more than 30 days ago can be added to a shared photo stream (as discussed here: http://help.apple.com/icloud/#mmc0cd7e99), then invite yourself as a subscriber and they will appear in iPhoto as well.
    Be sure to check Automatic Import in iPhoto>Preferences>Photo Stream if you want your photo stream photos to automatically be added to your iPhoto library as well.

  • New purchases are not showing up in smart playlists

    New purchases are not showing up in smart playlists. About a week ago the smart playlists stop add newly purchase music.The smart playlists  will add items that are added the the library. Any ideas?

    Everythig is turned on as well.

  • Employee tax details are not showing up in Payslip...

    Hi Experts,
    in my project when we are  generating payslip Tax details are not showing up in that.I have checked with RT , the amount is correctly showing in RT.How can i resolve the problem.Please advice me.
    Regards,
    Sai.

    Hi Manoj,
    Thanks for the reply.How can check weather the wagetypes are added or not addeded in PE51.If not added what should i do?
    Thanks in advance.
    SAI

  • The apps are not showing

    iphone is just newly and ios 5.0.1
    i jailbroek and got cydia
    then added the link to install INSTALLOUS
    suddenly, the apps are not showing :S what should i do!! we did not download any apps!!!!!!!!!
    pls help meeeeeeee t
    thank for advancing

    i got them r back phew lol
    oh really? i dunno that :/ anyways its fine now :)
    thank you

Maybe you are looking for