Refresh Problem with manyToOne OneToMany relations in EJB3/0

Hi all,
I have three tables defined.
Table A, B and C. B is an association table between A and C.
I have made a simple web application in which I can insert entries in the association table B.
The problem is now that when I insert a new entry in B the changes are not reflected to the defined @OneToMany relations in A and C, untill I restart the OC4J DP4 10.1.3.0 server.
I think the problem lies in the fact that the EJB relations are not refreshed properly.
Does anyone regconize this problem?
Thanks in advance

Sorry, no solution.
Would just like to add my weight to this post as Im having the same trouble unless of course you managed to resolve it in which case Id be grateful for your wsidom.
Two entites (created with CMP from tables wizard) Location contains Stock. Cascade of PERSIST defined.
Facade method to add stock to a location works (Correct values are insserted into the database) but subsequent finds return Stock entities that are unpopulated (i.e. all proeprties are null).
Im using latest JDeveloper 10.1.3 build 3673 downloaded a couple of days ago. Am running within JDeveloper also.
Facade method :-
public void writeOnStock(String loc, String prod, int qty, String container)
throws InvalidProductCode, InvalidLocationCode {
Location l = (Location) em.find("Location",loc);
if (l==null) throw new InvalidLocationCode(loc);
Product p = (Product) em.find("Product",prod);
if (p==null) throw new InvalidProductCode(prod);
Stock s = new Stock();
s.setProduct(p);
s.setQty(new Long(qty));
s.setContainer(container);
s.setStatus("-");
l.addStock(s);
My tester code...
stockFacade.writeOnStock("BAY1","LP1",1,"PAL1");
System.out.println( stockFacade.findAllStock( ) );
Output of...
[Stock:[null]null on null]
but stock table contains a row with all the correct data (Id of 45)
Stop and start the embedded OC4J server and run again I get...
[Stock:[45]1 on PAL1, Stock:[null]null on null]
As you can see record 45 from previous run is fine now, but latest is all null.
Any help appreciated. Gonna raise a TAR and upload my code. Ill post back if I get a solution.

Similar Messages

  • Problem with cross-database relation in EJB3 entities with Sybase DB

    Hi,
    while experimenting with EJB3 as a beginner, I noticed that generated queries sent to the Sybase DB never use the catalog name prepending the table name (like in: select * from user_db..Account where Id = 'myname'). Instead only table name is used, which schema-name prepended in case it's not blank.
    This is inconvinient, since it forces me to use several persistence units, one for each catalog.
    What is even more a problem, is that an entitiy that has a relation to another entity mapped to a table in a different catalog, doesn't work, at runtime I get a error '...sql error...table <table_in_other_catalog> not found...'
    Is there a fix/work around for this problem?
    Any suggestion would be greatly appreciated.
    Mark

    Was it that there was an entity generation bug, or was it that your classes were out of sync, and that by changing the table names that you regenerated the entity classes to be in sync?
    If you have a simple reproducable test case of the problem then it would be great if you could enter a bug in Bugzilla:
    https://bugs.eclipse.org/bugs/enter_bug.cgi?product=EPS%28EclipseLink%29
    Thanks.

  • Severe problem with 'Drill to Related' using drill icon

    Hi
    I have a severe problem with 'Drill to Related' in Discoverer Plus (10.1.2.54.25) using the drill icon of a worksheet:
    1. Though existing no items to drill to are shown in the context menu (or pop-up list), instead it says just 'Drill to Related...'
    2. Clicking on menue item 'Drill to Related...' results in 50% processor load (permanent) and no further update of the browser window (IE 7.0.5730.11) containig Discoverer Plus. There is no recovery of that state within about 20 minutes.
    This behaviour is both highly reproducible and annoying.
    When using the drill dialog instead of the icon the expected items are shown and 'Drill to Related' works fine. Although that is a workaround I don't think it acceptable to tell the end-users to use it.
    I searched metalink for a hint but couldn't find anything.
    Can anyone help?
    Franziska

    Hi S
    This seems to be a bug that was fixed earlier since we didn't experience it having applied cumulative patch 3 earlier.
    Something might be said about your problem in Metalink
    Doc ID: Note:422575.1
    Subject: Drilling With Discoverer Viewer 10g (10.1.2) Using Internet Explorer 7 (IE7) Fails With Javascript Error
    We still had to apply the patch for the bug I mentioned earlier in this thread in order to be able to see and select an item to drill to. Unfortunately the problem with the processor load up to 50% and nothing happening is still there.
    By the way IE 7 is certified now according to the Oracle certification information.
    Hope this helps
    Franziska

  • Refresh problem with dreamweaver cs5.5

    Hello,  I hope someone can help out soon with my problem. We currently have a great running site that is hosted OFFSITE. Our programmer built a new site which is the one having the refresh problems with.  It's hosted on an ON-SIGHT server . thank you
    Problem:
    Sometimes randomly, but almost always when opening other pages, DW freezes for about 5-10 seconds, sometimes crashing (presumably when it takes longer).
    It occurs whether changes are made to files or not. I'm using split view it happens mostly whien trying to click something in code view at top.
    Test Results:
    I was able to consistently reproduce the problem when opening files in the directory.
    I was unable to reproduce the problem when opening multiple Include files (that do not use templates).
    Thoughts:
    Is there something in the template causing the refresh problem?
    Something in the new website page source, or in their shared template, may be loading from a (slow) external resource.
    Something in the DW settings?
    HELP THANK YOU

    Could you post a screen capture of your File > New dialogue window when you choose it from the menu?
    Page From Template should be an option on the far left if I recall correctly (it has been changed in newer versions, but I think 5.5 still used this method). You won't see it in the Welcome Screen or if you hit Ctrl +N. You have to use the menu option to select New...
    You should then be presented with a list of sites, when the site is chosen, the templates should show in the middle column.
    Or are you saying your template isn't showing when you choose the Page From Template option and select the site?

  • Problem with include and relative path in jsp

    Precompile jsp with wlappc in 9.2, I got the error "The include file was not found" when the jsp use <%@ include file="../includes/dataEntry/code_error.html" %>
              This code used to work with 8.1. I notice that someone has report the same problem with 9.0 and you have patch for it. Is it fix in 9.2 or do I require a patch as well?
              Thanks,
              Khuemy

    When you precompile, can you say "Keepgenerated=TRUE". It might help you track
              down the difference with the URL. You should only get a 404 error when the
              resource is not found at runtime, which is independant of when you compile. The
              difference should be in how the URL is compiled.
              Chris
              ali wrote:
              > I am using WLS 6.0 SP1, when I use relative path in <jsp:forward> in my JSPs
              > it forwards ok if I am using directly JSPs but if I am using pre-compiled
              > JSPs (and have proper servlet-mappings
              > in my web.xml), I get 404 error with the relative-path, if I change it to
              > absolute path with pre-compiled JSPs it forwards ok , then.
              > any ideas why this is so?
              > thanks,
              

  • Problem with jsessionid and relative paths

    I'm having an issue with jsessionid in a J2EE application running on an all Oracle platform (Oracle DB, 9ias, etc.). Most of the time sessions are tracked with cookies, but occasionally the jsessionid appears on the URL (on first login with a new browser window I think?).
    Anyway, sometimes the session id is very large (100 chars +) and includes special characters, specifically a backslash. This is causing problems with relative paths in the page.
    Is this normal behavior or is there a problem with my app server/JVM setup? Has anyone else seen this? Thanks for any advice.

    Hi Stefan,
              The issue was logged as CR238704. You can either contact [email protected] or
              just pass me your email Id and I'll send the patch to you.
              -- Nagesh
              <Stefan Krause> wrote in message news:[email protected]..
              > The problem I have is that the application is very old and at the same
              > time very big (so we're doing the transition step by step) and there are
              > lots of variables (and even methods in JSP pages - no comment) shared
              > between the JSP pages!
              > So for us jsp:include isn't an option...
              >
              > Is there a way to report bugs when you've got only the free development
              > license?

  • Strange refresh problem with two heavily used forums...

    Hi,
    For last two weeks, I have observed a strange problem with Database-General and SQL-PL/SQL forums, which are used heavily (comparatively more number of users than other forums).
    If I navigate from Forum Home (http://forums.oracle.com/forums/index.jspa?categoryID=84) to Database-General (General Database Discussions or PL/SQL forum (PL/SQL these forum pages open within 2-3 seconds but they open.
    But if I hit refresh (F5) from within these forums, 9 out of 10 times, I get a timeout or a page not found error.
    I can navigate back one page, click on link to go to Forum home and from there to Database-General or PL/SQL forum and everything works fine.
    I have tried clearing all caches, cookies and other settings on my Firefox (3.0.1) but it has not helped so far.
    Is this a known issue?

    Satish,
    I have to use the back button when after writing a reply, I am welcomed by 500_internal Service error. If I would refresh there, I lose what ever I have written. So I go back and again submit.
    For the refresh,at times ( and very often) , I find forums being slow like dead. Ironically with the reply button,thread(s) work but otherwise not. So I do a logout , refresh the page and if have to reply,click on reply. After that again, logout and refresh.
    if things are fine than refresh works fine,sadly not quite often as it should be.
    Cheers
    Aman....
    PS: Are you on Oraclecommunity.net?

  • Screen refresh problem with Windows 7

    Hello all,
    I've recently begun testing Oracle with Windows 7 on a new HP 2540p notebook computer. I've encountered a very strange issue so far. After logging into Oracle, and Windows switches to Windows Basic theme, I should be taken to the main Navigator screen. But instead, the screen is simply white. If I drag (or nudge) the title bar just a bit, the screen refreshes and I can see the menu items. Then if I click on something (or even use hotkeys - ALT+F to get the file menu, for example), I don't see anything happen. But if I move the window just a bit, the screen refreshes and I can see that it did actually take my input, it just didn't re-draw the screen. I'm wondering if this may be a graphics driver issue (I do have the latest driver for the Intel Graphics Media Accelerator HD adapter), or if someone could point me toward a resolution to this problem. Any help is much appreciated.

    Dear All,
    Same problem of REFRESH PROBLEM also faced by but only a single and specific Windows 7 client.
    if you have resolved the issue , so please share with us.
    Thanks
    Eidy

  • Automatic cache refresh problem with SXI_CACHE in PI70 Sp09

    Dear Friends,
    We are facing problems with SXI_CACHE
    ISSUE: Automatic refreshing is not done, evey time we had to manaully refresh it going to sxi_cache.
    DETAILS
    SERVER : PI70 SP09, running on Netweaver 2004S
    RFC: Destination INTEGRATIOn_SERVER_HMI
    TYPE : H
    USER : PIISUSER-service user
    Role : SAP_XI_IS_SERV_USER
    prefix path: /dir/CacheRefresh
    Service No : Http port No (configured one )
    License : Valid license not temporary one.
    we have configured as mentioned in Configuration guide, still we are facing problems
    I searched the SDn got few tips , but that really didnt help to resolve the issue.
    Finally we thought of raising this issue to SAP, before doing it i thought i could get some help from SDN.
    Any pointers that could resolve this issue will be appreciated.
    Regards
    [email protected]

    Hi Chandra,
    Plz compare the below mentioned settings with you current settings in XI.
    Go to SM59 and create
    RFC Destination as "INTEGRATION_DIRECTORY_HMI"
    Connection Type: H
    Under Technical Setting TAB
    Target Host: write the host name
    Path Prefix: /dir/CacheRefresh
    Service No: enter J2ee port no (e.g. 50000)
    Under Logon/Security TAB
    select Basic Authontication radio button
    SSL select inactive
    Under Logon:
    Lang: EN
    Client: enter client
    User: XIISUSER
    Password: *******
    Under Special Option TAB
    HTTP Setting:
    HTTP Ver: HTTP 1.0
    Compression: inactive
    Compressed response: NO
    HTTP Cookies: Yes (All)
    After doing abobe, press the Test Connection button and accept all cookies and see what is the result. After this refresh the cacahe by sxi_cache.
    Regards,
    Sarvesh

  • Automatic cache refresh problem with SXI_CACHE

    Dear Friends,
    We are facing problems with SXI_CACHE
    ISSUE: Automatic refreshing is not done, evey time we had to manaully refresh it going to sxi_cache.
    DETAILS
    SERVER : PI70 SP09, running on Netweaver 2004S
    RFC: Destination INTEGRATIOn_SERVER_HMI
    TYPE : H
    USER : PIISUSER-service user
    Role : SAP_XI_IS_SERV_USER
    prefix path: /dir/CacheRefresh
    Service No : Http port No (configured one )
    License : Valid license not temporary one.
    we have configured as mentioned in Configuration guide, still we are facing problems
    I searched the SDn got few tips , but that really didnt help to resolve the issue.
    Finally we thought of raising this issue to SAP, before doing it i thought i could get some help from SDN.
    Any pointers that could resolve this issue will be appreciated.
    Regards
    [email protected]

    Hi Chandra,
    Plz compare the below mentioned settings with you current settings in XI.
    Go to SM59 and create
    RFC Destination as "INTEGRATION_DIRECTORY_HMI"
    Connection Type: H
    Under Technical Setting TAB
    Target Host: write the host name
    Path Prefix: /dir/CacheRefresh
    Service No: enter J2ee port no (e.g. 50000)
    Under Logon/Security TAB
    select Basic Authontication radio button
    SSL select inactive
    Under Logon:
    Lang: EN
    Client: enter client
    User: XIISUSER
    Password: *******
    Under Special Option TAB
    HTTP Setting:
    HTTP Ver: HTTP 1.0
    Compression: inactive
    Compressed response: NO
    HTTP Cookies: Yes (All)
    After doing abobe, press the Test Connection button and accept all cookies and see what is the result. After this refresh the cacahe by sxi_cache.
    Regards,
    Sarvesh

  • Refresh problem with collection

    Hello, apologize my English, I have got problem with refresh collections. Follow:
    1) I have got two classes which have got dependency together.
    2) First class has got collection of objects from second class.
    3) I call query "findXXX" which fill collection first class.
    4) I create new object second class and again call query "findXXX" to get actual collection. But collection contain old values a I have to close and open web browser to get actual data.
    I think It is problem with TopLink cache, but I do not know how solve this.
    Can you help me, please?

    The cached data is probably stale.
    There are many ways to solve this. (see the caching section of the docs)
    - there is a refresh option on the query
    - you can set a descriptor to be isolated (Cache.shared=false)
    - you can set a descriptor to always refresh
    - there is a cache invalidation option on descriptor
    - there is a cache synchronization option on session
    If the cache is stale, but the database was not accessed outside the application, it may be that your application is not maintaining relationships correctly. You must ensure you set both sides of a bi-directional relationship.
    -- James : http://www.eclipselink.org

  • Serious Problems with anything IPOD related

    I've recently had trouble with my IPOD. I connect it to the computer and see the charging splash screen for a few seconds and then it stops. My computer doesent detect it at all (like it used to) and my IPOD wont even turn on. I read some troubleshooting on here and went ahead and uninstalled everything. I uninstalled quicktime, IPOD, IPOD updater, and ITUNES. I then downloaded both ITUNES and IPOD updated and in each instance I get this very very weird command line parameter:
    Command line parameters:
    /L language ID
    /S Hide intialization dialog. For silent mode use: /S /v/qn.
    /V parameters to MsiExec.exe
    /UA<url to InstMsiA.exe>
    /UW<url to InstMsiW.exe>
    /UM<url to msi package>
    After I receive that message I click "Ok" and absolutely nothing happens. It never did this before, I never had problems with my ipod or itunes before, nothing. I have no idea what the catalyst for all of this is. Any help is greatly appreciated.

    BUMP!!
    Now when I plug my IPOD in it actually has a splash screen. It shows a folder icon with an exclamation point. I imagine it shows that because I uninstalled ALL IPOD related software. The problem is, I STILL cant install any IPOD material, I get the same error code I posted earlier over and over again.

  • Problem with sendRedirect using relative URL in WebLogic 5.1 with SP7 & 8

    I patched to SP 7 (and also 8), and the request.sendRedirect() with relative
              URL failed. The browser simply displayed "404 - Page not found".
              This problem only happens in a cluster environment attached to a web server.
              SP6 or earlier does not have such problem.
              I noticed that the latest SP always formats the URL and returns it as a full
              absolute URL to the browser. The problem is it uses the Weblogic Server host
              URL where the request is processed (not the Web Server host URL) which is
              not visible to the internet.
              Is it possibly a bug in SP?
              

    I patched to SP 7 (and also 8), and the request.sendRedirect() with relative
              URL failed. The browser simply displayed "404 - Page not found".
              This problem only happens in a cluster environment attached to a web server.
              SP6 or earlier does not have such problem.
              I noticed that the latest SP always formats the URL and returns it as a full
              absolute URL to the browser. The problem is it uses the Weblogic Server host
              URL where the request is processed (not the Web Server host URL) which is
              not visible to the internet.
              Is it possibly a bug in SP?
              

  • Fundamental User Interface Refreshing Problem with Acrobat X

    After installing Acrobat X (both
    Reader and Standard) I got the problem that over time the refreshing of user interface elements stops,
    which means that Acrobat gets into a state, where you can't see parts of the toolbar (and search button) any longer.
    I'd assume that this might have to do something with my combination of operating systems, grafic chip and or the
    new user interface framwork Acrobat uses now (I guess at least it changed, but don't know details).
    Updating to the newest grafics driver didn't help.
    This problem only occurs in Acrobat X applications on my machine.
    Does anybody have the same problem?
    Does anybody have an idea what might go wrong?
    Here is my data:
    - Windows 7 Pro
    - NVIDIA Quadro NVS 135M
    BTW, it seems I can't switch back to Acrobat Std 9 because after installing Acrobat X with a new
    serial number, the old number is reported as invalid if I remove Acrobat X and try to install Acrobat 9 again.
    So, if somebody has a solution there...

    Anyone have any ideas?James

  • Refreshing Problem with Excel

    Hello
    Scenario:
    I have some servers with mysql 2012 with the same db.
    I created the reports with the connection the server and function worked fine.
    after i copied the excel file to another server, i tried to change the connection.
    First i changed the "PowerPivot Data Connection" and he sayed that connecntion is fine but on klick "refresh" the message "We couldn’t refresh the connection. Please go to existing connections and verify they connect to the file
    or server." was shown.
    Then i tried to refresh with the "Tabe proberties". On klick "Refresh Preview" he shows me the data but after klicking save the error Message "OLE DB or ODBC error: Multiple-step OLE DB operation generated errors. Check each OLE
    DB status value, if available. No work was done...    The current operation was cancelled because another operation in the transaction failed." wa comming.
    also went throgh the blogs but it did not help
    Can someone please help or have some advise for me?
    Regards

    I suggest you should check on your SQL server to see if a connection is made. If yes, the server may provide more information on your issues.
    You may also check whether this KB is related to your issue:
    http://support2.microsoft.com/kb/269495/en-us

Maybe you are looking for

  • Improve battery life on 10.8.2

    After showing much patience with Mountain Lion I've had enough of waiting for a fix for the poor battery life issue.  Yesterday I decided to take matters into my own hands and investiate the issue myself.  I installed the 250Gb hard drive (Hitachi 54

  • FB60 - Two line items for tax amount (Posting Key - 50)

    Hi, I am facing some issue in FB60 invoice posting. For the same vendor(say V1) I am posting 2 different invoices for 100 USD - the <u>company code, G/L, CostCenter & Tax Jursdiction code are different</u> in both the cases. Once I do FB60 and got to

  • Save as-- in Safari

    Hi, I'm new to the world of macs and am loving it! I'm a convert. Anyway, I'm looking to save a financial statement from my bank on to my hard disk. When I view the page at their site, the extension at the end of the URL is .asp. I have tried "Save A

  • XML transform using XSL

    Hi, I am new to the javax technology. I have a xml that has data in this format <?xml version="1.0" encoding="UTF-8"?> <emps> <emp> <empName>Me</empName> <empAge>23</empAge> </emp> <emp> <empName>You</empName> <empAge>23</empAge> </emp> </emps>Can i

  • Envelope index deleted - Rebuild fails....

    Hi, I have a a complete crash, and successfully restored thanks to Time Machine. As you know, TM does not backup the envelope index file, so i have to go through the import process. However, the process constantly hangs, right from the start, without