EJB3 CMP serializable, avoid phantom problem

Hi everyone,
does anyone have a clue how to avoid the phantom problem in container managed persistence in ejb3? All I really need is a "LOCK TABLE" statement.
How do I tell the entity manager to do such a thing?
thanks
basti

by the way:
I am trying to use ejb3 out of container - as described in the article http://www.oracle.com/technology/tech/java/oc4j/ejb3/howtos-ejb3/howtooutofcontainer/doc/how-to-ejb30-out-of-container.html

Similar Messages

  • What are the best coding technics which will avoid performance problems

    Hi Experts
    What are the best coding technics which are avoiding memory problems and performance problems
    Some times one of few reports are taking too much time to executing while handling large data.
    1.What are the best way to declare a internal table to avoid performance problems.
    2.what is the best way to process data.
    3.what is the best way to clear memory.
    Can you guys help me give some good suggestions for  writing better programs  to avoid performance problems.
    Thanks
    Sailu

    Hi,
    Check this link..[Please Read before Posting in the Performance and Tuning Forum Updated |Please Read before Posting in the Performance and Tuning Forum;
    Which will be the first thread in the Performance and Tuning Forum.
    Search the SCN first.

  • How to avoid performance problems in PL/SQL?

    How to avoid performance problems in PL/SQL?
    As per my knowledge, below some points to avoid performance proble in PL/SQL.
    Is there other point to avoid performance problems?
    1. Use FORALL instead of FOR, and use BULK COLLECT to avoid looping many times.
    2. EXECUTE IMMEDIATE is faster than DBMS_SQL
    3. Use NOCOPY for OUT and IN OUT if the original value need not be retained. Overhead of keeping a copy of OUT is avoided.

    Susil Kumar Nagarajan wrote:
    1. Group no of functions or procedures into a PACKAGEPutting related functions and procedures into packages is useful from a code organization standpoint. It has nothing whatsoever to do with performance.
    2. Good to use collections in place of cursors that do DML operations on large set of recordsBut using SQL is more efficient than using PL/SQL with bulk collects.
    4. Optimize SQL statements if they need to
    -> Avoid using IN, NOT IN conditions or those cause full table scans in queriesThat is not true.
    -> See to queries they use Indexes properly , sometimes Leading index column is missed out that cause performance overheadAssuming "properly" implies that it is entirely possible that a table scan is more efficient than using an index.
    5. use Oracle HINTS if query can't be further tuned and hints can considerably help youHints should be used only as a last resort. It is almost certainly the case that if you can use a hint that forces a particular plan to improve performance that there is some problem in the underlying statistics that should be fixed in order to resolve issues with many queries rather than just the one you're looking at.
    Justin

  • Can I avoid this problem?

    Hi all,
    I made a game by flash and projected it into .exe file. It
    runs correctly excepte one thing.
    In this game, I used onEnterFrame and setInterval to make
    counters to coundown and do something.
    But when player holds down the movie's title bar by pressing
    down the right mouse button, the movie stops redrawing.
    So onEnterFrame and setInterval stop doing their jobs.
    Does anyone know how to avoid this problem?

    HI ,
    can anyone help me?
    I am confused whit this problem for a long time.

  • Help to avoid mutating problem of my trigger

    Hi, Guys:
    I have a question maybe silly. I need to maintain a table named as "SOR_Email_Config" with a trigger. Whenever there is an event to update a column named as "Current_Setting" from 'N' to 'Y' with a row, this trigger needs to check other rows in the same table to make sure other rows' Current_Setting is 'N', if other rows has 'Y' on "current_setting" column, the trigger needs to update it to 'N'. the code is as follows:
    CREATE OR REPLACE TRIGGER SOR_NOTI_CONFIG_UPDATE_TRG
    BEFORE INSERT OR UPDATE OF CURRENT_SETTING ON SOR_EMAIL_CONFIG
    FOR EACH ROW
    WHEN (new.current_setting='Y')
    BEGIN
      update SOR_EMAIL_CONFIG
      set current_setting='N';
    END;Obviously, I got a mutating problem, so how can I implement this trigger to avoid mutating problem?
    Thanks in advance
    Sam

    Hello Sam,
    you are posting in the wrong forum, because this one is for the SQL Develper tool and not for general SQL questions.
    Having said that, you could try autonomous transactions but this could lead to deadlocks and other bad things.
    Hope that helps,
    dhalek

  • How can avoid the  problem of Parameter Prompting when I submitting ?

    I am developing web application in visual studio 2008 in csharp.How can avoid the issue or problem of  Parameter Prompting when I send parameters programaticaly or dyanmicaly?  I am sending the values from .net web form to crystal report but it is still asking for parameters. so when i submit second time that is when the reports is being genereated. How can i solve this problem. Please help. The code Iam using is below.
       1. using System; 
       2. using System.Collections; 
       3. using System.Configuration; 
       4. using System.Data; 
       5. using System.Linq; 
       6. using System.Web; 
       7. using System.Web.Security; 
       8. using System.Web.UI; 
       9. using System.Web.UI.HtmlControls; 
      10. using System.Web.UI.WebControls; 
      11. using System.Web.UI.WebControls.WebParts; 
      12. using System.Xml.Linq; 
      13. using System.Data.OleDb; 
      14. using System.Data.OracleClient; 
      15. using CrystalDecisions.Shared; 
      16. using CrystalDecisions.CrystalReports.Engine; 
      17. using CrystalDecisions.Web; 
      18.  
      19.  
      20. public partial class OracleReport : System.Web.UI.Page 
      21. { 
      22.     CrystalReportViewer crViewer = new CrystalReportViewer(); 
      23.     //CrystalReportSource crsource = new CrystalReportSource(); 
      24.     int nItemId; 
      25.  
      26.     protected void Page_Load(object sender, EventArgs e) 
      27.     { 
      28.         //Database Connection 
      29.         ConnectionInfo ConnInfo = new ConnectionInfo(); 
      30.         { 
      31.             ConnInfo.ServerName = "127.0.0.1"; 
      32.             ConnInfo.DatabaseName = "Xcodf"; 
      33.             ConnInfo.UserID = "HR777"; 
      34.             ConnInfo.Password = "zghshshs"; 
      35.         } 
      36.         // For Each  Logon  parameters 
      37.         foreach (TableLogOnInfo cnInfo in this.CrystalReportViewer1.LogOnInfo) 
      38.         { 
      39.             cnInfo.ConnectionInfo = ConnInfo; 
      40.  
      41.         } 
      42.  
      43.  
      44.  
      45.  
      46.  
      47.  
      48.         //Declaring varibles 
      49.          nItemId = int.Parse(Request.QueryString.Get("ItemId")); 
      50.         //string strStartDate = Request.QueryString.Get("StartDate"); 
      51.         //int nItemId = 20; 
      52.         string strStartDate = "23-JUL-2010"; 
      53.  
      54.         // object declration 
      55.         CrystalDecisions.CrystalReports.Engine.Database crDatabase; 
      56.         CrystalDecisions.CrystalReports.Engine.Table crTable; 
      57.  
      58.  
      59.         TableLogOnInfo dbConn = new TableLogOnInfo(); 
      60.  
      61.         // new report document object 
      62.         ReportDocument oRpt = new ReportDocument(); 
      63.  
      64.         // loading the ItemReport in report document 
      65.         oRpt.Load("C:
    Inetpub
    wwwroot
    cryreport
    CrystalReport1.rpt"); 
      66.  
      67.         // getting the database, the table and the LogOnInfo object which holds login onformation 
      68.         crDatabase = oRpt.Database; 
      69.  
      70.         // getting the table in an object array of one item 
      71.         object[] arrTables = new object[1]; 
      72.         crDatabase.Tables.CopyTo(arrTables, 0); 
      73.  
      74.         // assigning the first item of array to crTable by downcasting the object to Table 
      75.         crTable = (CrystalDecisions.CrystalReports.Engine.Table)arrTables[0]; 
      76.  
      77.         dbConn = crTable.LogOnInfo; 
      78.  
      79.         // setting values 
      80.         dbConn.ConnectionInfo.DatabaseName = "Xcodf"; 
      81.         dbConn.ConnectionInfo.ServerName = "127.0.0.1"; 
      82.         dbConn.ConnectionInfo.UserID = "HR777"; 
      83.         dbConn.ConnectionInfo.Password = "zghshshs"; 
      84.  
      85.         // applying login info to the table object 
      86.         crTable.ApplyLogOnInfo(dbConn); 
      87.  
      88.  
      89.  
      90.  
      91.  
      92.  
      93.         crViewer.RefreshReport(); 
      94.          
      95.                 // defining report source 
      96.         crViewer.ReportSource = oRpt; 
      97.         //CrystalReportSource1.Report = oRpt; 
      98.          
      99.         // so uptill now we have created everything 
    100.         // what remains is to pass parameters to our report, so it 
    101.         // shows only selected records. so calling a method to set 
    102.         // those parameters. 
    103.      setReportParameters();  
    104.     } 
    105.  
    106.     private void setReportParameters() 
    107.     { 
    108.       
    109.         // all the parameter fields will be added to this collection 
    110.         ParameterFields paramFields = new ParameterFields(); 
    111.          //ParameterFieldDefinitions ParaLocationContainer = new ParameterFieldDefinitions(); 
    112.        //ParameterFieldDefinition ParaLocation = new ParameterFieldDefinition(); 
    113.         
    114.         // the parameter fields to be sent to the report 
    115.         ParameterField pfItemId = new ParameterField(); 
    116.         //ParameterField pfStartDate = new ParameterField(); 
    117.         //ParameterField pfEndDate = new ParameterField(); 
    118.  
    119.         // setting the name of parameter fields with wich they will be recieved in report 
    120.        
    121.         pfItemId.ParameterFieldName = "RegionID"; 
    122.  
    123.         //pfStartDate.ParameterFieldName = "StartDate"; 
    124.         //pfEndDate.ParameterFieldName = "EndDate"; 
    125.  
    126.         // the above declared parameter fields accept values as discrete objects 
    127.         // so declaring discrete objects 
    128.         ParameterDiscreteValue dcItemId = new ParameterDiscreteValue(); 
    129.         //ParameterDiscreteValue dcStartDate = new ParameterDiscreteValue(); 
    130.         //ParameterDiscreteValue dcEndDate = new ParameterDiscreteValue(); 
    131.  
    132.         // setting the values of discrete objects 
    133.          
    134.  
    135.           dcItemId.Value = nItemId; 
    136.          
    137.         //dcStartDate.Value = DateTime.Parse(strStartDate); 
    138.         //dcEndDate.Value = DateTime.Parse(strEndDate); 
    139.          
    140.         // now adding these discrete values to parameters 
    141.           //paramField.HasCurrentValue = true; 
    142.  
    143.        
    144.  
    145.           //pfItemId.CurrentValues.Clear(); 
    146.          int valueIDD = int.Parse(Request.QueryString.Get("ItemId").ToString()); 
    147.           pfItemId.Name = valueIDD.ToString();  
    148.            
    149.         pfItemId.CurrentValues.Add(dcItemId); 
    150.         //ParaLocation.ApplyCurrentValues; 
    151.         pfItemId.HasCurrentValue = true; 
    152.         
    153.         //pfStartDate.CurrentValues.Add(dcStartDate); 
    154.         //pfEndDate.CurrentValues.Add(dcEndDate); 
    155.  
    156.         // now adding all these parameter fields to the parameter collection 
    157.         paramFields.Add(pfItemId); 
    158.          
    159.         //paramFields.Add(pfStartDate); 
    160.         //paramFields.Add(pfEndDate); 
    161.         ///////////////////// 
    162.         //Formula from Crystal 
    163.        //crViewer.SelectionFormula = "{COUNTRIES.REGION_ID} = " + int.Parse(Request.QueryString.Get("ItemId")) + ""; 
    164.         crViewer.RefreshReport(); 
    165.         // finally add the parameter collection to the crystal report viewer 
    166.         crViewer.ParameterFieldInfo = paramFields; 
    167.         
    168.          
    169.      
    170.     } 
    171. }

    Keep your post to under 1200 characters, else you loose the formatting. (you can do two posts if need be).
    Re. parameters. First, make sure yo have SP 1 for CR 10.5:
    https://smpdl.sap-ag.de/~sapidp/012002523100009351512008E/crbasic2008sp1.exe
    Next, see the following:
    [Crystal Reports for Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23]
    CR Dev help file:
    http://msdn2.microsoft.com/en-us/library/bb126227.aspx
    Samples:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • How to avoid synchronization problem in a  JSP webpage

    HI,
    In my web page im facing a problem like if two user are workin, by that time one's page is getting reflected in other's page.
    Can anyone tell me how to avoid this synchronization problem?
    Thanx a lot

    Hi Rajesh,
    we Have Configured LDAP tree Successfully....the Problem is the Role Assignment iview under Portal Admin is not appearing....if we check the Test Connection with the  users Configured with LDAP in Authentication server TAB under user configuration,it is showing success message...but at the same time we are unable to login with the same user in to the Portal..we are working with EP 5.0....any help can be appreciated
    Regards
    Sudhir

  • Can I avoid Iphoto problems in upgrading from Snow Leopard 10.6.8 to Mavericks?

    I've read that upgrading to Mavericks involves problems with Iphoto. I have an older version of Iphoto (7.1.5). Should I upgrade to a newer version of Iphoto BEFORE I upgrade to Mavericks? If so, do I have a choice and to what version? Is there any reasonable way to avoid IPhoto difficulties in moving to Mavericks?

    This screenshot shows which previous versions of iPhoto are compatible with Mavericks.  It also indicates which versions qualify for a free upgrade to iPhoto 9.5.1 and which require a purchase:
    Note 1:  every day more users are reporting problems with iPhoto 8.1.2 so I've included it in the non compatible category.
    Note 2:  If your previous version of iPhoto was iPhoto 7 (08) or earlier you'll need to download and run the iPhoto Library Upgrader 1.1 application on the library before opening it with iPhoto 9.5.1.
    OT

  • CMP Entity Bean's problem with MS-SQL Server 2000

    Hi everyone!
    I have a problem regarding CMP Entity Bean on OC4J.
    I made one CMP Entity Bean and deployed it to OC4J.
    It was successful.
    I used MS-SQL Server 2000 as Datasource.
    So, I installed MS-SQL Server's JDBC Driver and add some jar files to classpath.
    And I updated 'data-sources.xml' in OC4J's config directory.
    Then, I updated also 'orion-ejb-jar.xml' in my application's directory.
    I changed data-source's name to my data-source's name which use MS-SQL Server 2000.
    Finally, I started OC4J and EJB Client program which called Enitiy Bean's create method.
    But, The error occured which was 'Database error: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]LINE 1: '.' Wrong sentence'.
    What's wrong? I need any helps.
    Here is stack overflow message. Thank you. Best regards.
    com.evermind.server.rmi.OrionRemoteException: Transaction was rolled back: Database error: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]LINE 1: '.' Wrong sentence.
         at UserHome_EntityHomeWrapper2.create(UserHome_EntityHomeWrapper2.java:1114)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:80)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    at connection to localhost/127.0.0.1 as admin
         at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1530)
         at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1453)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:53)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
         at __Proxy0.create(Unknown Source)
         at com.emc.ksc.ejb.user.UserBeanTestClient1.create(UserBeanTestClient1.java:73)
         at com.emc.ksc.ejb.user.UserBeanTestClient1.<init>(UserBeanTestClient1.java:49)
         at com.emc.ksc.ejb.user.UserBeanTestClient1.main(UserBeanTestClient1.java:1077)

    Hi Young,
    From the information you have supplied, my guess is that the SQL
    string that OC4J is sending to SQL-Server is incorrect. So it may
    help if you could see the exact SQL string. In order to see the
    SQL string, I suggest you either run OC4J in "debug" mode, or try
    using "P6 Spy".
    The following web page has details on running OC4J in "debug" mode:
    http://kb.atlassian.com/content/atlassian/howto/orionproperties.jsp
    And here is the web page for "P6 Spy"
    http://www.provision6.com/
    And these other web sites may also be of help (in general):
    http://www.orionserver.com
    http://www.orionsupport.com
    http://www.atlassian.com
    http://www.elephantwalker.com
    Good Luck,
    Avi.

  • CMP Custom Finder Method Problem

    Hi everybody,
    I have a problem about CMP Custom Finder Method.
    I made CMP Entity Bean and deployed.
    Then, I updated finder section in orion-ejb-jar.xml to add my custom finder query.
    Here is updating finder section in my orion-ejb-jar.xml.
    <finder-method query="(($schStartDate &lt;= TO_DATE($1,'MM-DD-YYYY a HH:MI') and $schEndDate &gt;= TO_DATE($1,'MM-DD-YYYY a HH:MI')) or ($schStartDate &lt;= TO_DATE($2,'MM-DD-YYYY a HH:MI') and $schEndDate &gt;= TO_DATE($2,'MM-DD-YYYY a HH:MI'))) and ($schRoom = $3)">
    <!-- Generated SQL: "......" -->
    <method>
    <ejb-name>RoomSchedule</ejb-name>
    <method-name>findBySchDateAndRoom</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    </finder-method>
    <resource-ref-mapping name="jdbc/OracleDS" />
    And, i restarted oc4j. so, oc4j redepoyed CMP bean.
    But, when my client program called CMP Bean, lookup() was ok, but calling findBySchDateAndRoom() was bad.
    I couldn't get any result collection.
    Here is my client code.
    Context ctx = new InitialContext();
    Object ref = ctx.lookup("RoomSchedule");
    roomScheduleHome = (RoomScheduleHome) PortableRemoteObject.narrow(ref, RoomScheduleHome.class);
    String startDT = new String("07-30-2002 am 10:30");
    String endDT = new String("07-30-2002 pm 05:20);
    String roomID = "TEST";
    Collection roomAllSch = roomScheduleHome.findBySchDateAndRoom(startDT, endDT, roomID1);
    Iterator roomSchItr = roomAllSch.iterator();
    int schQty = 0;
    while (roomSchItr.hasNext()) {
    roomSchedule = (RoomSchedule) roomSchItr.next();
    if(roomSchedule.getStatus().equals("A"))
    schQty++;
    After excuting above code, schQty was still zero!!
    Because Collection roomAllSch had not any items.
    But, table ROOMSCHEDULE had 30 records which were same query condition in my database.
    I traced SQL statement using P6Spy Class.
    Here is spy.log.
    1028006337814|10|0|statement|select * from RoomSchedule where ((RoomSchedule.schStartDate <= TO_DATE(?,'MM-DD-YYYY A.M. HH:MI') and RoomSchedule.schEndDate >= TO_DATE(?,'MM-DD-YYYY A.M. HH:MI')) or (RoomSchedule.schStartDate <= TO_DATE(?,'MM-DD-YYYY A.M. HH:MI') and RoomSchedule.schEndDate >= TO_DATE(?,'MM-DD-YYYY A.M. HH:MI'))) and (RoomSchedule.schRoom = ?)|select * from RoomSchedule where ((RoomSchedule.schStartDate <= TO_DATE('7-30-2002 ?@@| 01:00','MM-DD-YYYY A.M. HH:MI') and RoomSchedule.schEndDate >= TO_DATE('7-30-2002 ?@@| 01:00','MM-DD-YYYY A.M. HH:MI')) or (RoomSchedule.schStartDate <= TO_DATE('7-30-2002 ?@HD 12:00','MM-DD-YYYY A.M. HH:MI') and RoomSchedule.schEndDate >= TO_DATE('7-30-2002 ?@HD 12:00','MM-DD-YYYY A.M. HH:MI'))) and (RoomSchedule.schRoom = 'Earth')
    1028006337824|10|0|statement|select RoomSchedule.schTitle, RoomSchedule.schStartDate, RoomSchedule.schEndDate, RoomSchedule.schDayAll, RoomSchedule.status, RoomSchedule.schRoom, RoomSchedule.reqUser, RoomSchedule.apprUser, RoomSchedule.purpose, RoomSchedule.relatoinID, RoomSchedule.schDesc, RoomSchedule.reqDate, RoomSchedule.apprDate from RoomSchedule where (RoomSchedule.schID = ?)|select RoomSchedule.schTitle, RoomSchedule.schStartDate, RoomSchedule.schEndDate, RoomSchedule.schDayAll, RoomSchedule.status, RoomSchedule.schRoom, RoomSchedule.reqUser, RoomSchedule.apprUser, RoomSchedule.purpose, RoomSchedule.relatoinID, RoomSchedule.schDesc, RoomSchedule.reqDate, RoomSchedule.apprDate from RoomSchedule where (RoomSchedule.schID = 0)
    As you see it, two query statement were executed.
    First query statement was ok and got some result records.
    But, second query statement was bad so didn't get any result records.
    I didn't understand why second query statement was executed.
    When roomAllSch.iterator() was being excuted in my client program, second query statment was executed.
    I couldn't believe....
    What's wrong? Please help me....
    OC4J : Version 9 Release 2
    Database : Oracle 8i
    OS : Windows 2000 Professional

    I created CMP of EJB 1.1, I wanted to add a finder
    there, but it didn't work.
    the error message is:
    "AccountEJB_vkbo0d_HomeImpl.java":
    AccountEJB_vkbo0d_HomeImpl should be declared
    abstract; it does not define findBySalary(float) in
    AccountEJB_vkbo0d_HomeImpl at line 11, column 1I think I don't remember CMPs having finder methods anything other than abstract. The code goes in the deployment descriptor. I hope you atleast got that right.
    Richard.

  • Avoiding keyframe problems in premiere

    Hi everyone
    Recently I made my first video with premiere. I had a problem when I tried to open a saved project related with the keyframes. I searched a bit and found out that it was related with the language of the saved project so instead of using the correct form between the numbers of the keyframe (z.,z.,z.,), the project was saved using only dots (z.z.z.).
    As my project had few keyframes and was an easy one, I decided that remaking it and processing the video was easier, so that's what I did.
    Nontheless, I'm worried about my next projects, as I pretend them to be more complicated and intricated than this one. So my question is, is there any way to avoid that format-saving problem? Can I configure the program so I don't have to worry about it any more?
    I'm using Windows 7 (x64) and Premiere Pro CS6.
    Thank you very much in advance.

    Hi Yo1980,
    Sorry. iCloud is what is causing the issue, as all was fine until a recent update from Apple. We know about this issue, but are still working on a fix. For now, you may need to uninstall it or run it on a separate computer or device.
    Thanks,
    Kevin

  • E-mu 1616M MICRODOCK.....PHANTOM PROBLEM!

    When I connect a condenser microphone NEUMANN KMS 105 and I turn ON the PHANTOM, the level of the input raise and drop casually (reach sometimes the clip!). There is a high noise in the input also when I look the PatchMix Panel: the level is moving up and down when there is no rumors in the room.
    The noise is audible in the OUTPUT also!
    The problem start only when I connect the condenser microphone. With others dinamic microphones no problems.
    NEUMANN work very well with my mixer Soundcraft, so I suppose that the problem is MICRODOCK.
    CAN YOU HELP ME?
    [email protected]

    Originally Posted by micorona
    When I connect a condenser microphone NEUMANN KMS 105 and I turn ON the PHANTOM, the level of the input raise and drop casually (reach sometimes the clip!). There is a high noise in the input also when I look the PatchMix Panel: the level is moving up and down when there is no rumors in the room.
    The noise is audible in the OUTPUT also!
    The problem start only when I connect the condenser microphone. With others dinamic microphones no problems.
    NEUMANN work very well with my mixer Soundcraft, so I suppose that the problem is MICRODOCK.
    CAN YOU HELP ME?
    [email protected]
    Is someone going to answer this question, or have we all been bumped by creative support???

  • Using Delayed Locking Mode along with Serializable Isolation Mode - problem

    hi all,
    I have a form that includes 2 blocks (master-detail) and I've set locking mode to delayed cause I don't want records to be locked while user is changing them but only when a COMMIT is issued.. Along with that I set Isolation Mode to Serializable as online help dictates.
    Problem is that since I've done this, record seems to be saved correctly but it actually does not when i issue a COMMIT (tried it with commit_form and do_key('commit_form') and with post and then commit). I get no error message and transaction seems to be completed but nothing happens on the db.
    What I've noticed is that when I issue a COMMIT with delayed locking mode on, the ON-LOCK trigger does not fire at all while it should (cause that's what delayed locking mode is supposed to do lock the record only while commiting). Does it have anything to do with my problem?
    please send any ideas you might have on this
    thanks in advance,
    teo

    Why you use Isolation Mode = Serializable?
    Forms help says:
    "Use delayed locking if the form's Isolation Mode property has the value Serializable."
    not
    "Set Isolation Mode to Serializable if Locking Mode property has the value Delayed".
    Regards,
    Zlatko Sirotic

  • CMP and capture-schema problems

    I am trying to deploy a CMP on Sun App Server 8, and I'm having a few problems. I am quite new to both CMP and Sun App Server 8.
    I've created a simple table Room in mySQL DB, containing only id (varchar) and description (varchar). I'm running this command to capture the table schema
    capture-schema -username username -password pwd -dburl jdbc:mysql://localhost/test -driver com.mysql.jdbc.Driver -out test.dbschema
    Do I need to enter the -schemaname and -table parameters as well? I'm assuming that since the url is pointing directly to the test schema in mySQL and it only contains the room table, I don't need these 2 parameters.
    test.dbschema gets generated, but when I use the deployment tool and create the database mappings to the entity bean using this schema file, no mappings are created.
    Any help?

    Hello,
    I have similar problem and I'm really confused about it.
    Working with:
    Java System Application Server Platform Edition 8.1 2005Q1 UR1
    mysql DataSource and Container Managed Persistence
    mysql-connector-java-3.0.8-stable-bin.jar
    I have problem with deploy:
    Fatal Error from EJB Compiler -- JDO74025: JDOCodeGenerator: Caught an Exception validating CMP bean 'Sets' in application 'isvl' module 'isvl-EJBModule': JDO72335: If the table sets for the bean corresponding to the generated class isvl.model.set.SetBean470758938_JDOState is mapped as the primary table, it must have a primary key.Choose a different primary table or verify that the contents of the schema file are correct.
    Choose a different primary table or verify that the contents of the schema file are correct. at com.sun.ejb.codegen.CmpCompiler.compile(CmpCompiler.java:274) at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:615) at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:563) at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployApp(EJBCompiler.java :340) at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:209) at com.sun.enterprise.deployment.backend.AppDeployer.runEJBC(AppDeployer.java:284) at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:176) at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.j ava:107) at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:146) at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPh ase.java:71) at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeplo ymentService.java:633) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentSe rvice.java:188) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentSe rvice.java:520) at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:143) at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:172)
    Have you seen this problem?
    Thanks.

  • Serialization (Class Reference) Problem.

    I have developed a class which only job is to save my serializable objects and load them. This class works very simple. In the constructor you pass the instance of the class you wish to save or load data in, and you call the method save(..) or load (..) accordingly!
    Now the serialiazation works more then fine :) The problem is in the reference of classes. That is my object instance in the class responsable for serialization is initialized ok when the data is loaded. However the same object (that means passed as a paramter to the Serialiaztion class) is not being initialized.
    Now as much as I know all parameters that are objects are always transfered as Reference types. That mean pointing to the same memory address. So how can my instance be initalize in one point and not in the other?
    Following is my Serialization class:
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    public class DataSerializer {
        private Object serializableObject;
        public DataSerializer(Object o){
            this.serializableObject = o;
        public void Save(String filePath) throws IOException{
            ObjectOutputStream objectOutputStream = null;
            try {
                objectOutputStream =
                    new ObjectOutputStream(new FileOutputStream(filePath));
                objectOutputStream.writeObject(this.serializableObject);
            finally{
                try{
                    objectOutputStream.flush();
                    objectOutputStream.close();
                catch(Exception e){}
                objectOutputStream = null;
        public void Load(String filePath) throws ClassNotFoundException,
                ClassCastException, IOException{
            ObjectInputStream objectInputStream = null;
            try {
                objectInputStream =
                        new ObjectInputStream(new FileInputStream(filePath));
                this.serializableObject  = (AllData)objectInputStream.readObject();
                // TESTING: HERE IT RETURNS CORRECT VALUE (1)
                System.out.println("c:"+((AllMyData)this.serializableObject).count());
            finally{
                try{
                    objectInputStream.close();
                catch(Exception e){}
                objectInputStream = null;
        public Object getSerializableObject(){
            return this.serializableObject;
        public void setSerializableObject(Object o){
            this.serializableObject=o;
    }And this is how I call the class:
    AllMyData d = new AllMyData();
    d.add(new MyData("Hello"));
    new DataSerializer(d).save("C:\\Test1.txt");
    // Problem here:
    AllMyData d2 = new AllMyData();
    new DataSerializer(d2).load("C:\\Test1.txt");
    System.out.println(""+d2.count);  // returns 0 instead 1!!Thanks in advance for any help!

    BTW: By using the get and set method it works fine :)
    But just a question I wanted to ask, Since from what I know about referencing it should be working like it is above!! I know it most probably is silly!? but can't explain it to myself!
    here is the way I code it to work:
    AllMyData d = new AllMyData();
    d.add(new MyData("Hello"));
    new DataSerializer(d).save("C:\\Test1.txt");
    // Problem here:
    AllMyData d2 = new AllMyData();
    // NEW CODE BELOW
    DataSerializer loader = new DataSerializer(d2);
    loader .load("C:\\Test1.txt");
    d2.getSerializableObject();
    // NOW IT RETURNS CORRECT RESULT!
    System.out.println(""+d2.count); 

Maybe you are looking for

  • Album art not in sync with music played on my iPhone

    I have re-synced, deleted my playlist and rebuilt them, still haven't found a solution. On my computer in iTune, all is good, you play Mika, you'll see Mika as the album art. On my iPhone, I hear Mika, I read Mika but I see the album art of Kate Voeg

  • Upgrading OS

    I have an older MacBook Pro, running OS X  10.5.8. My local support shop tells me they can't help me upgrade any further and I need some basic info about how to proceed. Can my MAC be upgraded or is it too old? If it can be ugraded, where do I obtain

  • CR 2008 - Chart legend label issues when run on CR Server 2008

    Hello all, I have built a report in CR 2008 SP4. When I run the report locally everything is okay. In this report I have a chart which performs a count on {Command.Incident_ID}. The label for this count comes out as "Count of Incident_ID" in the lege

  • Drop frame errors?

    I'm using Final Cut Pro 6.0.2. When I bring up the log and capture window it controls whatever device or tape format I'm using (mini DV or DVC Pro). When I set in and out points the counter shows the time code info and it agrees with what the VTR is

  • The iPhone "iPhone" cannot be used because it requires iTunes version 10.5 or later. I've downloaded 10.5 already! Help!

    I've downloaded the latest iTunes so many times now, and tried uninstalling all all Apple software and deleted all the iTunes files on my computer and then redownloading it and it continues to give me that message. I am at a loss of what to do now. T