JDeveloper Locks Up

I'm trying to generate a form in BPM 11g using jDeveloper 11.1.1.4 and it locks up ALL THE TIME!! I've literally had to quit jDev eight times this morning, and I still don't have the form generated. jDev consistently sucks up 99-180% CPU time and over 1GB of RAM. I have removed several extensions. Is anyone else having this problem? jDev is unusable in this condition.

How much RAM do you have in the system?
It does take a while when generating a task form using the wizard but after a few minutes it unfreezes on its own.
Just give it a try with a fresh system directory (Set JDEV_USER_HOME in your env to some temp directory and then run JDev, open your app and try. Remove it from env to restore your old one)

Similar Messages

  • Troubleshooting JDeveloper Locking Up

    This problem happened to me twice last year, but I cannot for the life of me remember how I fixed it!
    I have Jdeveloper 10.1.3.5.0.4306 for windows (xp, sp3, 2Ghz, 2GB).
    I'm developing a Portlet that I'm deploying to an OAS 10.2.1.2 linux box.
    I have been working on a project with a portlet and servlet for the last week or so without problems. Today I deployed and POOF!! Jdeveloper locks up/freezes/hangs. It also locks up when I try to rebuild the entire project. This project is no different than the other 10 portlets I have developed and deployed: just a project made up of a portlet and a servlet.
    It gives no error messages. It just locks up. The Task Manager shows no activity. It must be killed using the Task Manager.
    Any ideas of what I should check next?

    This morning I used JDeveloper's Run menu items "Rebuild .jws", "Rebuild Portlets.jpr", and then "Rebuild Working Set." Now I can deploy again. I'm sure I did that yesterday, too. But today it fixed it.

  • Jdeveloper locks on the Validation tab (edit entity)

    Jdeveloper is locking when I Click on the validation tab in edit entity. I have tessted this in 7.3.4 and 8.1.5.0.2
    Jdeveloper:
    3.1 Build 681
    IDE 3.1.681
    JBO 3.1.681
    DAC 3.1.681
    OJVM 1.3.0
    COMMON 3.1.230
    Below is the entity:
    <?xml version="1.0" encoding='WINDOWS-1252'?>
    <!DOCTYPE Entity SYSTEM "jbo_03_01.dtd">
    <Entity
    Name="cb_run_control_00"
    DBObjectType="table"
    DBObjectName="CANDIDATES.CB_RUN_CONTROL_00"
    AliasName="cb_run_control_00"
    BindingStyle="Oracle"
    CodeGenFlag="4"
    RowClass="jtest.cb_run_control_00Impl" >
    <DesignTime>
    <Attr Name="_isCodegen" Value="true" />
    <AttrArray Name="_publishEvents">
    </AttrArray>
    </DesignTime>
    <Attribute
    Name="RcRnCnt00Run"
    Type="java.lang.String"
    ColumnName="RC_RN_CNT_00_RUN"
    ColumnType="VARCHAR2"
    SQLType="VARCHAR"
    IsNotNull="true"
    Precision="50"
    TableName="CB_RUN_CONTROL_00" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50" />
    </DesignTime>
    </Attribute>
    <Attribute
    Name="RcRnCnt00Runstate"
    Type="java.lang.String"
    ColumnName="RC_RN_CNT_00_RUNSTATE"
    ColumnType="VARCHAR2"
    SQLType="VARCHAR"
    IsNotNull="true"
    Precision="50"
    TableName="CB_RUN_CONTROL_00" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50" />
    </DesignTime>
    </Attribute>
    <Attribute
    Name="RcRnCnt00Errors"
    Type="java.lang.String"
    ColumnName="RC_RN_CNT_00_ERRORS"
    ColumnType="VARCHAR2"
    SQLType="VARCHAR"
    IsNotNull="true"
    Precision="50"
    TableName="CB_RUN_CONTROL_00" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50" />
    </DesignTime>
    </Attribute>
    <Attribute
    Name="RcRnCnt00Systrans"
    Type="oracle.jbo.domain.Number"
    ColumnName="RC_RN_CNT_00_SYSTRANS"
    ColumnType="NUMBER"
    SQLType="NUMERIC"
    IsNotNull="true"
    TableName="CB_RUN_CONTROL_00"
    PrimaryKey="true" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="0" />
    </DesignTime>
    </Attribute>
    <Attribute
    Name="RcRnCnt00Transdate"
    Type="oracle.jbo.domain.Date"
    ColumnName="RC_RN_CNT_00_TRANSDATE"
    ColumnType="DATE"
    SQLType="DATE"
    IsNotNull="true"
    TableName="CB_RUN_CONTROL_00" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="7" />
    </DesignTime>
    </Attribute>
    <Attribute
    Name="RcRnCnt00Source"
    Type="java.lang.String"
    ColumnName="RC_RN_CNT_00_SOURCE"
    ColumnType="VARCHAR2"
    SQLType="VARCHAR"
    IsNotNull="true"
    Precision="50"
    TableName="CB_RUN_CONTROL_00" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50" />
    </DesignTime>
    </Attribute>
    <Attribute
    Name="RcRnCnt00Runpath"
    Type="java.lang.String"
    ColumnName="RC_RN_CNT_00_RUNPATH"
    ColumnType="VARCHAR2"
    SQLType="VARCHAR"
    IsNotNull="true"
    Precision="100"
    TableName="CB_RUN_CONTROL_00" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="100" />
    </DesignTime>
    </Attribute>
    <Attribute
    Name="RcRnCnt00Filename"
    Type="java.lang.String"
    ColumnName="RC_RN_CNT_00_FILENAME"
    ColumnType="VARCHAR2"
    SQLType="VARCHAR"
    IsNotNull="true"
    Precision="50"
    TableName="CB_RUN_CONTROL_00" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50" />
    </DesignTime>
    </Attribute>
    <Attribute
    Name="RcRnCnt00ResumeCount"
    Type="oracle.jbo.domain.Number"
    ColumnName="RC_RN_CNT_00_RESUME_COUNT"
    ColumnType="NUMBER"
    SQLType="NUMERIC"
    IsNotNull="true"
    TableName="CB_RUN_CONTROL_00" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="0" />
    </DesignTime>
    </Attribute>
    <Attribute
    Name="RcRnCnt00SearchString"
    Type="java.lang.String"
    ColumnName="RC_RN_CNT_00_SEARCH_STRING"
    ColumnType="VARCHAR2"
    SQLType="VARCHAR"
    IsNotNull="true"
    Precision="100"
    TableName="CB_RUN_CONTROL_00" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="100" />
    </DesignTime>
    </Attribute>
    <Attribute
    Name="RcRnCnt00Logical"
    Type="java.lang.String"
    ColumnName="RC_RN_CNT_00_LOGICAL"
    Co lumnType="VARCHAR2"
    SQLType="VARCHAR"
    IsNotNull="true"
    Precision="50"
    TableName="CB_RUN_CONTROL_00" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50" />
    </DesignTime>
    </Attribute>
    <Attribute
    Name="RcRnCnt00FocusArea"
    Type="java.lang.String"
    ColumnName="RC_RN_CNT_00_FOCUS_AREA"
    ColumnType="VARCHAR2"
    SQLType="VARCHAR"
    IsNotNull="true"
    Precision="50"
    TableName="CB_RUN_CONTROL_00" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50" />
    </DesignTime>
    </Attribute>
    <Key
    Name="CbiRnCnt00Sst" >
    <DesignTime>
    <Attr Name="_DBObjectName" Value="CBI_RN_CNT_00_SST" />
    <Attr Name="_isPrimary" Value="true" />
    <AttrArray Name="_attributes">
    <Item Value="jtest.cb_run_control_00.RcRnCnt00Systrans" />
    </AttrArray>
    </DesignTime>
    </Key>
    <Key
    Name="SysC001244" >
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C001244" />
    <Attr Name="_checkCondition" Value="&#34;RC_RN_CNT_00_RUN&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    <AttrArray Name="_attributes">
    <Item Value="jtest.cb_run_control_00.RcRnCnt00Run" />
    </AttrArray>
    </DesignTime>
    </Key>
    <Key
    Name="SysC001245" >
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C001245" />
    <Attr Name="_checkCondition" Value="&#34;RC_RN_CNT_00_RUNSTATE&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    <AttrArray Name="_attributes">
    <Item Value="jtest.cb_run_control_00.RcRnCnt00Runstate" />
    </AttrArray>
    </DesignTime>
    </Key>
    <Key
    Name="SysC001246" >
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C001246" />
    <Attr Name="_checkCondition" Value="&#34;RC_RN_CNT_00_ERRORS&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    <AttrArray Name="_attributes">
    <Item Value="jtest.cb_run_control_00.RcRnCnt00Errors" />
    </AttrArray>
    </DesignTime>
    </Key>
    <Key
    Name="SysC001247" >
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C001247" />
    <Attr Name="_checkCondition" Value="&#34;RC_RN_CNT_00_SYSTRANS&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    <AttrArray Name="_attributes">
    <Item Value="jtest.cb_run_control_00.RcRnCnt00Systrans" />
    </AttrArray>
    </DesignTime>
    </Key>
    <Key
    Name="SysC001248" >
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C001248" />
    <Attr Name="_checkCondition" Value="&#34;RC_RN_CNT_00_TRANSDATE&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    <AttrArray Name="_attributes">
    <Item Value="jtest.cb_run_control_00.RcRnCnt00Transdate" />
    </AttrArray>
    </DesignTime>
    </Key>
    <Key
    Name="SysC001249" >
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C001249" />
    <Attr Name="_checkCondition" Value="&#34;RC_RN_CNT_00_SOURCE&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    <AttrArray Name="_attributes">
    <Item Value="jtest.cb_run_control_00.RcRnCnt00Source" />
    </AttrArray>
    </DesignTime>
    </Key>
    <Key
    Name="SysC001250" >
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C001250" />
    <Attr Name="_checkCondition" Value="&#34;RC_RN_CNT_00_RUNPATH&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    <AttrArray Name="_attributes">
    <Item Value="jtest.cb_run_control_00.RcRnCnt00Runpath" />
    </AttrArray>
    </DesignTime>
    </Key>
    <Key
    Name="SysC001251" >
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C001251" />
    <Attr Name="_checkCondition" Value="&#34;RC_RN_CNT_00_FILENAME&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    <AttrArray Name="_attributes">
    <Item Value="jtest.cb_run_co ntrol_00.RcRnCnt00Filename" />
    </AttrArray>
    </DesignTime>
    </Key>
    <Key
    Name="SysC001252" >
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C001252" />
    <Attr Name="_checkCondition" Value="&#34;RC_RN_CNT_00_RESUME_COUNT&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    <AttrArray Name="_attributes">
    <Item Value="jtest.cb_run_control_00.RcRnCnt00ResumeCount" />
    </AttrArray>
    </DesignTime>
    </Key>
    <Key
    Name="SysC001253" >
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C001253" />
    <Attr Name="_checkCondition" Value="&#34;RC_RN_CNT_00_SEARCH_STRING&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    <AttrArray Name="_attributes">
    <Item Value="jtest.cb_run_control_00.RcRnCnt00SearchString" />
    </AttrArray>
    </DesignTime>
    </Key>
    <Key
    Name="SysC001254" >
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C001254" />
    <Attr Name="_checkCondition" Value="&#34;RC_RN_CNT_00_LOGICAL&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    <AttrArray Name="_attributes">
    <Item Value="jtest.cb_run_control_00.RcRnCnt00Logical" />
    </AttrArray>
    </DesignTime>
    </Key>
    <Key
    Name="SysC001255" >
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C001255" />
    <Attr Name="_checkCondition" Value="&#34;RC_RN_CNT_00_FOCUS_AREA&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    <AttrArray Name="_attributes">
    <Item Value="jtest.cb_run_control_00.RcRnCnt00FocusArea" />
    </AttrArray>
    </DesignTime>
    </Key>
    </Entity>
    null

    Hi Frank, thanks for your answer.
    I believe that my problem is more complex.
    What happens if the View Object have certain transient attributes?
    These attributes are not persistent in the Entity Object.
    Can I use the collection from the Data Control Palette to create the Input Form?
    Thanks again.
    JuanFer HP

  • File lock not released

    Hi,
    I am unable to delete certain files as JDeveloper does not release locks on them. One use case is when I run a build file to create a jar, war or ear file. After executing the builld, I open the file (this is when JDeveloper locks these files, I think) to check the structure and contents of the generated file. Trying to run the build again fails because, JDeveloper does not release the locks on existing file that was generated during the previous build. I have to restart JDeveloper to delete the file.
    Thanks

    In the meantime if you are working on the XP platform (I am guessing) then you might want to venture a look at this little program called Unlocker that is a free little utility that shows what process is grabbing the file and preventing deletion or modification and then presents to you suitable options of what to do in that situation. I have used it countless times and it works like a charm.

  • 10g Locks Up when selecting database field for optimistic locking

    As the subject says, when I attempt to select the database field for optimistic locking, JDeveloper locks up and I have to kill it with the task manager.
    Should I post problems with TopLink in 10g in this forum or the TopLink forum?

    I finally hit this StackOverflowError again. This happens sometimes when I select the Locking tab on a class where the locking field has already been selected. Here is the top of the stack trace:
    java.lang.StackOverflowError
         at java.util.TreeMap$KeyIterator.next(TreeMap.java:1047)
         at java.util.TreeMap.buildFromSorted(TreeMap.java:1588)
         at java.util.TreeMap.buildFromSorted(TreeMap.java:1534)
         at java.util.TreeMap.addAllForTreeSet(TreeMap.java:1492)
         at java.util.TreeSet.addAll(TreeSet.java:247)
         at java.util.TreeSet.<init>(TreeSet.java:138)
         at oracle.toplink.workbench.model.desc.MWClassDescriptor.getAssociatedTablesCopy(MWClassDescriptor.java:377)
         at oracle.toplink.workbench.model.desc.MWClassDescriptor.getSecondaryTablesCopy(MWClassDescriptor.java:698)
         at oracle.toplink.workbench.model.desc.MWClassDescriptor.hasMultipleTables(MWClassDescriptor.java:796)
         at oracle.toplink.workbench.ui.labels.DatabaseFieldLabel.isMultiTable(DatabaseFieldLabel.java:120)
         at oracle.toplink.workbench.ui.labels.DatabaseFieldLabel.installUI(DatabaseFieldLabel.java:93)
         at oracle.toplink.uitools.cell.BasicLabel.prepareLabel(BasicLabel.java:953)
         at oracle.toplink.uitools.cell.BasicLabel.getListCellRendererComponent(BasicLabel.java:611)
         at oracle.toplink.uitools.plaf.basic.BasicListChooserUI$RendererWrapper.getListCellRendererComponent(BasicListChooserUI.java:1104)
         at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1147)
         at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1097)
         at javax.swing.plaf.basic.BasicListUI$ListSelectionHandler.valueChanged(BasicListUI.java:1465)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
         at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:402)
         at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:411)
         at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:435)
         at javax.swing.JList.setSelectedIndex(JList.java:1730)
         at javax.swing.plaf.basic.BasicComboPopup.setListSelection(BasicComboPopup.java:998)
         at javax.swing.plaf.basic.BasicComboPopup.access$000(BasicComboPopup.java:43)
         at javax.swing.plaf.basic.BasicComboPopup$ItemHandler.itemStateChanged(BasicComboPopup.java:782)
         at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1161)
         at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1218)
         at oracle.toplink.uitools.ComboBox.selectedItemChanged(ComboBox.java:512)
         at javax.swing.JComboBox.contentsChanged(JComboBox.java:1265)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
         at oracle.toplink.uitools.plaf.basic.BasicListChooserUI$ComboBoxModel.fireContentsChanged(BasicListChooserUI.java:598)
         at oracle.toplink.uitools.plaf.basic.BasicListChooserUI$ListDataHandler.contentsChanged(BasicListChooserUI.java:842)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
         at oracle.toplink.uitools.DefaultListModel.setSelectedItem(DefaultListModel.java:830)
         at oracle.toplink.uitools.DefaultListModel.removeAll(DefaultListModel.java:529)
         at oracle.toplink.uitools.DefaultListModel.replace(DefaultListModel.java:724)
         at oracle.toplink.uitools.ListChooser.setData(ListChooser.java:747)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.populateOptimisticFieldChooser(DescriptorPropertiesLockingPage.java:333)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.propertyChange(DescriptorPropertiesLockingPage.java:342)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:216)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:230)
         at oracle.toplink.workbench.tools.AbstractModel.firePropertyChange(AbstractModel.java:70)
         at oracle.toplink.workbench.model.desc.MWDescriptorLockingPolicy.setLockField(MWDescriptorLockingPolicy.java:117)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage$ActionHandler.actionPerformed(DescriptorPropertiesLockingPage.java:471)
         at oracle.toplink.uitools.Chooser.fireActionEvent(Chooser.java:305)
         at oracle.toplink.uitools.ListChooser$ListDataHandler.contentsChanged(ListChooser.java:1382)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
         at oracle.toplink.uitools.DefaultListModel.setSelectedItem(DefaultListModel.java:830)
         at oracle.toplink.uitools.DefaultListModel.replace(DefaultListModel.java:732)
         at oracle.toplink.uitools.ListChooser.setData(ListChooser.java:747)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.populateOptimisticFieldChooser(DescriptorPropertiesLockingPage.java:333)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.propertyChange(DescriptorPropertiesLockingPage.java:342)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:216)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:230)
         at oracle.toplink.workbench.tools.AbstractModel.firePropertyChange(AbstractModel.java:70)
         at oracle.toplink.workbench.model.desc.MWDescriptorLockingPolicy.setLockField(MWDescriptorLockingPolicy.java:117)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage$ActionHandler.actionPerformed(DescriptorPropertiesLockingPage.java:471)
         at oracle.toplink.uitools.Chooser.fireActionEvent(Chooser.java:305)
         at oracle.toplink.uitools.ListChooser$ListDataHandler.contentsChanged(ListChooser.java:1382)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
         at oracle.toplink.uitools.DefaultListModel.setSelectedItem(DefaultListModel.java:830)
         at oracle.toplink.uitools.DefaultListModel.replace(DefaultListModel.java:732)
         at oracle.toplink.uitools.ListChooser.setData(ListChooser.java:747)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.populateOptimisticFieldChooser(DescriptorPropertiesLockingPage.java:333)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.propertyChange(DescriptorPropertiesLockingPage.java:342)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:216)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:230)
         at oracle.toplink.workbench.tools.AbstractModel.firePropertyChange(AbstractModel.java:70)
         at oracle.toplink.workbench.model.desc.MWDescriptorLockingPolicy.setLockField(MWDescriptorLockingPolicy.java:117)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage$ActionHandler.actionPerformed(DescriptorPropertiesLockingPage.java:471)
         at oracle.toplink.uitools.Chooser.fireActionEvent(Chooser.java:305)
         at oracle.toplink.uitools.ListChooser$ListDataHandler.contentsChanged(ListChooser.java:1382)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
    ...

  • JDevelopper Question

    Hi Guys,
    Hope you can answer this one for me. Does JDeveloper generate pure Java code or
    whether it includes tags that are only interpreted by the Oracle Application
    Server module? That is, does JDeveloper lock the Java code into running on
    an Oracle engine or is the JDeveloper code portable to other Java engines?
    thanks
    Ryan

    Dont Worry Ryan, It is quite protable. You can run the codes developed in Jdeveloper in any of the JVM's.

  • JDeveloper EJB Class Editor lock

    I created an EJB using JDev and used the EJB class editor to build the fields/methods in the bean.
    After working on the EJB for quite a while I reopened the EJB Class editor and found a blue error at the bottom of the window stating :
    Editor locked : file is read only.
    I have tried almost everything to unlock the editor but I have had no success.None of the files in project is read-only.
    If you have experinced this problem please respond!
    Regards
    LeRoux

    Hi,
    Go to se38.
    In the menubar..
    Goto-->attributes.
    In that u can see on the bottom of the popup, a check box with editor lock.
    U check that box.
    Then the program cannot be edited by any other user other than the one who has created.
    In this case the username has to be unique.
    If one user is used by many number of people, then all the people who are using that user can edit the program.
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • Error while Creating a basic portal application using JDeveloper

    Hi,
    I am trying to build a portal application using the following tutorial on JDeveloper 11.1.1.5.0 on Windows XP.
    [http://download.oracle.com/docs/cd/E17904_01/webcenter.1111/e10273/createapp.htm#CCHEGDIC|http://download.oracle.com/docs/cd/E17904_01/webcenter.1111/e10273/createapp.htm#CCHEGDIC]
    I have configured all the prereqs for this tutorial. When i run the application, following message appears on the log file.
    Target Portal.jpr is not runnable, using default target index.html.
    and the webpage contains following error
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    +10.4.5 404 Not Found+
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    Following is the WLS log for the application run.
    +[12:53:24 PM] ---- Deployment started. ----+
    +[12:53:24 PM] Target platform is (Weblogic 10.3).+
    +[12:53:24 PM] Retrieving existing application information+
    +[12:53:24 PM] Running dependency analysis...+
    +[12:53:24 PM] Deploying 3 profiles...+
    +[12:53:28 PM] Wrote MAR file to C:\Documents and Settings\ahmedh\Application Data\JDeveloper\system11.1.1.5.37.60.13\o.j2ee\drs\NTSL_PORTAL\AutoGeneratedMar+
    +[12:53:31 PM] Wrote Web Application Module to C:\Documents and Settings\ahmedh\Application Data\JDeveloper\system11.1.1.5.37.60.13\o.j2ee\drs\NTSL_PORTAL\NTSL_PortalWebApp.war+
    +[12:53:32 PM] Info: Namespace '/oracle/adf/share/prefs' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[12:53:32 PM] Info: Namespace '/oracle/webcenter/lifecycle/importexport' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[12:53:32 PM] Info: Namespace '/oracle/webcenter/lock' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[12:53:32 PM] Info: Namespace '/oracle/webcenter/rc' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[12:53:32 PM] Info: Namespace '/persdef' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[12:53:32 PM] Info: Namespace '/shared/oracle/wcps' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[12:53:32 PM] Info: Namespace '/xliffBundles' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[12:53:32 PM] Info: Namespace '/oracle/webcenter/search/scopedMD' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[12:53:32 PM] Info: Namespace '/oracle/webcenter/framework/scope/scopedMD' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[12:53:32 PM] Info: Namespace '/oracle/webcenter/page/scopedMD' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[12:53:32 PM] Info: Namespace '/pageDefs' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[12:53:32 PM] Info: Namespace '/oracle/adf/portlet' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[12:53:32 PM] Info: Namespace '/oracle/adf/portletappscope' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[12:53:32 PM] Info: Namespace '/oracle/webcenter/doclib/scopedMD' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[12:53:32 PM] Info: Namespace '/oracle/webcenter/portalapp' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[12:53:32 PM] Info: Namespace '/oracle/webcenter/security/scopedMD' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[12:53:32 PM] Info: Namespace '/oracle/webcenter/siteresources/shared' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[12:53:32 PM] Info: Namespace '/oracle/webcenter/quicklinks/scopedMD' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[12:53:32 PM] Info: Any customizations created while running the application will be written to 'C:\Documents and Settings\ahmedh\Application Data\JDeveloper\system11.1.1.5.37.60.13\o.mds.dt\adrs\NTSL_PORTAL\AutoGeneratedMar\mds_adrs_writedir'.+
    +[12:53:35 PM] Wrote Enterprise Application Module to C:\Documents and Settings\ahmedh\Application Data\JDeveloper\system11.1.1.5.37.60.13\o.j2ee\drs\NTSL_PORTAL+
    +[12:53:35 PM] Deploying Application...+
    +<Jul 25, 2011 12:53:44 PM GMT+05:00> <Warning> <J2EE> <BEA-160140> <Unresolved optional package references (in META-INF/MANIFEST.MF): [Extension-Name: oracle.apps.common.resource, referenced from: C:\Documents and Settings\ahmedh\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\tmp\_WL_user\oracle.webcenter.framework\owur7d]. Make sure the referenced optional package has been deployed as a library.>+
    +<Jul 25, 2011 12:53:53 PM GMT+05:00> <Warning> <Munger> <BEA-2156203> <A version attribute was not found in element web-app in the deployment descriptor in C:\Documents and Settings\ahmedh\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\tmp\_WL_user\jaxrs-framework-web-lib\829i9k\WEB-INF\web.xml. A version attribute is required, but this version of the Weblogic Server will assume that the JEE5 is used. Future versions of the Weblogic Server will reject descriptors that do not specify the JEE version.>+
    +<ADFContext> <getCurrent> Automatically initializing a DefaultContext for getCurrent.+
    Caller should ensure that a DefaultContext is proper for this use.
    Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
    This message may be avoided by performing initADFContext before using getCurrent().
    To see the stack trace for thread that is initializing this, set the logging level of oracle.adf.share.ADFContext to FINEST
    +<EclipseLinkLogger> <basicLog> 2011-07-25 12:54:27.409--ServerSession(28900695)--PersistenceUnitInfo ServiceFrameworkPUnit has transactionType RESOURCE_LOCAL and therefore jtaDataSource will be ignored+
    +<ADFContext> <getCurrent> Automatically initializing a DefaultContext for getCurrent.+
    Caller should ensure that a DefaultContext is proper for this use.
    Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
    This message may be avoided by performing initADFContext before using getCurrent().
    To see the stack trace for thread that is initializing this, set the logging level of oracle.adf.share.ADFContext to FINEST
    +<LoggerHelper> <log> Cannot map nonserializable type "interface oracle.adf.mbean.share.config.runtime.resourcebundle.BundleListType" to Open MBean Type for mbean interface oracle.adf.mbean.share.config.runtime.resourcebundle.AdfResourceBundleConfigMXBean, attribute BundleList.+
    +[12:54:48 PM] Application Deployed Successfully.+
    +[12:54:48 PM] Elapsed time for deployment: 1 minute, 24 seconds+
    +[12:54:48 PM] ---- Deployment finished. ----+
    Run startup time: 84155 ms.
    +[Application NTSL_PORTAL deployed to Server Instance IntegratedWebLogicServer]+
    Target URL -- http://127.0.0.1:7101/mytutorial/index.html
    +<JUApplicationDefImpl> <logDefaultDynamicPageMapPattern> The definition at NTSL.portal.portal.DataBindings.cpx, uses a pagemap pattern match that hides other cpx files.+
    +<NavigationCatalogException> <<init>> oracle.adf.rc.exception.DefinitionNotFoundException: cannot find resource catalog using MDS reference /oracle/webcenter/portalapp/navigations/default-navigation-model.xml Root Cause=[MDS-00013: no metadata found for metadata object "/oracle/webcenter/portalapp/navigations/default-navigation-model.xml"] [Root exception is oracle.mds.core.MetadataNotFoundException: MDS-00013: no metadata found for metadata object "/oracle/webcenter/portalapp/navigations/default-navigation-model.xml"]+
    +<SkinFactoryImpl> <getSkin> Cannot find a skin that matches family portal and version v1.1. We will use the skin portal.desktop.+
    +<Logger> <error> ServletContainerAdapter manager not initialized correctly.+
    +[Application termination requested.  Undeploying application NTSL_PORTAL.]+
    +[01:04:42 PM] ---- Deployment started. ----+
    +[01:04:42 PM] Target platform is (Weblogic 10.3).+
    +[01:04:42 PM] Undeploying Application...+
    +<Jul 25, 2011 1:04:42 PM GMT+05:00> <Warning> <Deployer> <BEA-149085> <No application version was specified for application 'NTSL_PORTAL'. The undeploy operation will be performed against the currently active version 'V2.0'.>+
    INFO: Found persistence provider "org.eclipse.persistence.jpa.PersistenceProvider". OpenJPA will not be used.
    INFO: Found persistence provider "org.eclipse.persistence.jpa.PersistenceProvider". OpenJPA will not be used.
    +<BPELConnectionUtil> <getWorklistConnections> The Worklist service does not have a ConnectionName configuration entry in adf-config.xml that maps to a BPELConnection in connections.xml, therefore the Worklist service was not configured for this application.+
    +<NotificationSenderFactory> <getSender> Notification sender is not configured+
    +<ADFContext> <getCurrent> Automatically initializing a DefaultContext for getCurrent.+
    Caller should ensure that a DefaultContext is proper for this use.
    Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
    This message may be avoided by performing initADFContext before using getCurrent().
    To see the stack trace for thread that is initializing this, set the logging level of oracle.adf.share.ADFContext to FINEST
    +[01:04:48 PM] Application Undeployed Successfully.+
    +[01:04:48 PM] Elapsed time for deployment: 6 seconds+
    +[01:04:48 PM] ---- Deployment finished. ----+
    +[Application NTSL_PORTAL stopped and undeployed from Server Instance IntegratedWebLogicServer]+
    +[Running application NTSL_PORTAL on Server Instance IntegratedWebLogicServer...]+
    +[01:05:40 PM] ---- Deployment started. ----+
    +[01:05:40 PM] Target platform is (Weblogic 10.3).+
    +[01:05:40 PM] Retrieving existing application information+
    +[01:05:40 PM] Running dependency analysis...+
    +[01:05:41 PM] Deploying 3 profiles...+
    +[01:05:42 PM] Wrote MAR file to C:\Documents and Settings\ahmedh\Application Data\JDeveloper\system11.1.1.5.37.60.13\o.j2ee\drs\NTSL_PORTAL\AutoGeneratedMar+
    +[01:05:44 PM] Wrote Web Application Module to C:\Documents and Settings\ahmedh\Application Data\JDeveloper\system11.1.1.5.37.60.13\o.j2ee\drs\NTSL_PORTAL\NTSL_PortalWebApp.war+
    +[01:05:45 PM] Info: Namespace '/oracle/adf/share/prefs' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[01:05:45 PM] Info: Namespace '/oracle/webcenter/lifecycle/importexport' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[01:05:45 PM] Info: Namespace '/oracle/webcenter/lock' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[01:05:45 PM] Info: Namespace '/oracle/webcenter/rc' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[01:05:45 PM] Info: Namespace '/persdef' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[01:05:45 PM] Info: Namespace '/shared/oracle/wcps' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[01:05:45 PM] Info: Namespace '/xliffBundles' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[01:05:45 PM] Info: Namespace '/oracle/webcenter/search/scopedMD' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[01:05:45 PM] Info: Namespace '/oracle/webcenter/framework/scope/scopedMD' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[01:05:45 PM] Info: Namespace '/oracle/webcenter/page/scopedMD' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[01:05:45 PM] Info: Namespace '/pageDefs' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[01:05:45 PM] Info: Namespace '/oracle/adf/portlet' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[01:05:45 PM] Info: Namespace '/oracle/adf/portletappscope' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[01:05:45 PM] Info: Namespace '/oracle/webcenter/doclib/scopedMD' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[01:05:45 PM] Info: Namespace '/oracle/webcenter/portalapp' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[01:05:45 PM] Info: Namespace '/oracle/webcenter/security/scopedMD' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[01:05:45 PM] Info: Namespace '/oracle/webcenter/siteresources/shared' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[01:05:45 PM] Info: Namespace '/oracle/webcenter/quicklinks/scopedMD' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.+
    +[01:05:45 PM] Info: Any customizations created while running the application will be written to 'C:\Documents and Settings\ahmedh\Application Data\JDeveloper\system11.1.1.5.37.60.13\o.mds.dt\adrs\NTSL_PORTAL\AutoGeneratedMar\mds_adrs_writedir'.+
    +[01:05:47 PM] Wrote Enterprise Application Module to C:\Documents and Settings\ahmedh\Application Data\JDeveloper\system11.1.1.5.37.60.13\o.j2ee\drs\NTSL_PORTAL+
    +[01:05:47 PM] Deploying Application...+
    +<Jul 25, 2011 1:05:52 PM GMT+05:00> <Warning> <J2EE> <BEA-160140> <Unresolved optional package references (in META-INF/MANIFEST.MF): [Extension-Name: oracle.apps.common.resource, referenced from: C:\Documents and Settings\ahmedh\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\tmp\_WL_user\oracle.webcenter.framework\owur7d]. Make sure the referenced optional package has been deployed as a library.>+
    +<Jul 25, 2011 1:05:54 PM GMT+05:00> <Notice> <LoggingService> <BEA-320400> <The log file C:\Documents and Settings\ahmedh\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>+
    +<Jul 25, 2011 1:05:54 PM GMT+05:00> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Documents and Settings\ahmedh\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log00003. Log messages will continue to be logged in C:\Documents and Settings\ahmedh\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log.>+
    +<Jul 25, 2011 1:06:01 PM GMT+05:00> <Warning> <Munger> <BEA-2156203> <A version attribute was not found in element web-app in the deployment descriptor in C:\Documents and Settings\ahmedh\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\tmp\_WL_user\jaxrs-framework-web-lib\829i9k\WEB-INF\web.xml. A version attribute is required, but this version of the Weblogic Server will assume that the JEE5 is used. Future versions of the Weblogic Server will reject descriptors that do not specify the JEE version.>+
    +<ADFContext> <getCurrent> Automatically initializing a DefaultContext for getCurrent.+
    Caller should ensure that a DefaultContext is proper for this use.
    Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
    This message may be avoided by performing initADFContext before using getCurrent().
    To see the stack trace for thread that is initializing this, set the logging level of oracle.adf.share.ADFContext to FINEST
    INFO: Found persistence provider "org.eclipse.persistence.jpa.PersistenceProvider". OpenJPA will not be used.
    +<EclipseLinkLogger> <basicLog> 2011-07-25 13:06:36.117--ServerSession(28713857)--PersistenceUnitInfo ServiceFrameworkPUnit has transactionType RESOURCE_LOCAL and therefore jtaDataSource will be ignored+
    +<ADFContext> <getCurrent> Automatically initializing a DefaultContext for getCurrent.+
    Caller should ensure that a DefaultContext is proper for this use.
    Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
    This message may be avoided by performing initADFContext before using getCurrent().
    To see the stack trace for thread that is initializing this, set the logging level of oracle.adf.share.ADFContext to FINEST
    +<LoggerHelper> <log> Cannot map nonserializable type "interface oracle.adf.mbean.share.config.runtime.resourcebundle.BundleListType" to Open MBean Type for mbean interface oracle.adf.mbean.share.config.runtime.resourcebundle.AdfResourceBundleConfigMXBean, attribute BundleList.+
    +[01:06:54 PM] Application Deployed Successfully.+
    +[01:06:54 PM] Elapsed time for deployment: 1 minute, 14 seconds+
    +[01:06:54 PM] ---- Deployment finished. ----+
    Run startup time: 73985 ms.
    +[Application NTSL_PORTAL deployed to Server Instance IntegratedWebLogicServer]+
    Target URL -- http://127.0.0.1:7101/mytutorial/index.html
    +<JUApplicationDefImpl> <logDefaultDynamicPageMapPattern> The definition at NTSL.portal.portal.DataBindings.cpx, uses a pagemap pattern match that hides other cpx files.+
    +<NavigationCatalogException> <<init>> oracle.adf.rc.exception.DefinitionNotFoundException: cannot find resource catalog using MDS reference /oracle/webcenter/portalapp/navigations/default-navigation-model.xml Root Cause=[MDS-00013: no metadata found for metadata object "/oracle/webcenter/portalapp/navigations/default-navigation-model.xml"] [Root exception is oracle.mds.core.MetadataNotFoundException: MDS-00013: no metadata found for metadata object "/oracle/webcenter/portalapp/navigations/default-navigation-model.xml"]+
    +<SkinFactoryImpl> <getSkin> Cannot find a skin that matches family portal and version v1.1. We will use the skin portal.desktop.+
    +<Jul 25, 2011 1:11:04 PM GMT+05:00> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=DeploymentTaskSummaryPage&DeploymentTaskSummaryPortlethandle=com.bea.console.handles.JMXHandle%28%22com.bea%3AName%3DADTR-0%2CType%3DDeploymentTaskRuntime%2CDeployerRuntime%3DDeployerRuntime%22%29.>+

    The below message comes when you don't specify any default file for your webcenter portal application and this should not be any problem.
    Target Portal.jpr is not runnable, using default target index.html.
    Can you answer to my questions:
    1. Did you just created a new wcp application in jdev and ran it with out doing any changes? If you have done what are the changes?
    2. How did you ran your application? (right clicking a particular page or right clicking your portal project and selected "run" option?

  • Transaction in TaskFlow and locking

    Hello
    I'm using JDeveloper 11g 11.1.2.1.0
    I came across strange (in my opinion) behaviour of the transaction option inside taskFlow: if taskFlow's transaction option set as something other than "<No Controller Transaction>" (for example, "Use Existing Transaction if Possible"), then taskFlow always use the pessimistic Locking Mode (not depend what is set in adf-config's "Locking Mode").
    I have done simple test.
    There is the table in Oracle database, the entity and the editable view object in the Model project.
    There is one jsf page inside the view project. Inside that jsf page - one bounded taskFlow with one page fragment with simple edit form bounded to View Object from Model project.
    adf-config: "Locking Mode" - "Optimistic"
    Application Module: LocalConfiguration, jbo.locking.mode = 'optimistic'
    TaskFlow: transaction - "Use Existing Transaction if Possible"
    I run the application and after the form SUBMIT (with comandButton or autosubmit="true") I see next log:
    <ADFLogger> <begin> Lock Entity
    <OracleSQLBuilderImpl> <doEntitySelectForAltKey> [600] (125) OracleSQLBuilderImpl.doEntitySelectForAltKey(672) OracleSQLBuilder Executing doEntitySelect on: SAR_TEST.SAR_REPORTS (true)
    <ADFLogger> <begin> Entity read all attributes
    <OracleSQLBuilderImpl> <buildSelectString> [601] (0) OracleSQLBuilderImpl.buildSelectString(2808) Built select: 'SELECT REPORT_ID, PERIOD_DATE, TEMPLATE_ID, SHOP_ID, EDIT_DATE, STATUS, USER_LOGIN, SAVE_COUNTER FROM SAR_TEST.SAR_REPORTS ReportEO'
    <OracleSQLBuilderImpl> <doEntitySelectForAltKey> [602] (0) OracleSQLBuilderImpl.doEntitySelectForAltKey(782) Executing LOCK...SELECT REPORT_ID, PERIOD_DATE, TEMPLATE_ID, SHOP_ID, EDIT_DATE, STATUS, USER_LOGIN, SAVE_COUNTER FROM SAR_TEST.SAR_REPORTS ReportEO WHERE REPORT_ID=:1 FOR UPDATE NOWAIT
    <ADFLogger> <addContextData> Entity read all attributes
    <OracleSQLBuilderImpl> <bindWhereAttrValue> [603] (0) OracleSQLBuilderImpl.bindWhereAttrValue(2296) Where binding param 1: 287
    <ADFLogger> <addContextData> Entity read all attributes
    <ADFLogger> <end> Entity read all attributes
    <ADFLogger> <end> Lock EntitySo, I have "Executing LOCK..." with "FOR UPDATE NOWAIT"
    Record is locked on the database level, and it's impossible to edit it from other session
    If I set taskFlow's transaction to "<No Controller Transaction>" - I do not have any locking.
    So, what is the relations between adf-config: "Locking Mode" and taskFlow's transaction control?
    As I understood I should never use taskFlow's transaction control if I want to have on optimistic locking mode through an application.
    Is this an error?
    Anatolii

    Frank, thank for replay
    I don't understand why the update of the record in database happens. I don't execute commit, I perform the form submit (I want to update the model only, not database records), and during this sumbmit operation the database record's update happens.
    Neither of commit and rollback happen, and record remain locked.
    And I have FOR UPDATE NOWAIT in this situation even with adf-config: "Locking Mode" - "none" or "Optupdate". Why?
    Where did you see that lock released after update?
    Anatolii
    Edited by: Anatolii. on 12.01.2012 7:57
    Edited by: Anatolii. on 12.01.2012 8:00

  • JDeveloper 11g: How to get all the rows of a database table from applicatio

    Hello all!
    I'm developing a application with JDeveloper 11g, like subject show.
    So, I'm suppose to use some data which are in database table.
    So, I had the View Object where I want take data, to the datamodel.
    And after this, I use this next line in my serviceClass.java:
    public String method(){
            String truc = null;
            getViewName().setRangeSize(-1);
            getViewName().setRangeStart(0);
            getViewName().executeQuery();
    //I do my treatment here
    return truc
    }When the application run, it stop just before the line "getViewName().setRangeSize(-1);"
    So, I think it is the locking point.
    Someone can help me.
    Thank's
    Nystan

    Hi,
    1. You work with a application module class and not in a plain old java object? So you create a application module or only a view object?
    2. If you work with a application module class. Can you switch on a bit of logging? To set the system debug output property, open the Run/Debug/Profile page in the Project Properties dialog for your data model project. Click Edit to edit the chosen run configuration, and add following string to the Java Options field in the page.
    -Djbo.debugoutput=console -Djbo.adflogger.level=FINE
    maybe you can see the error.
    Best regards
    Martin

  • Question about BC4J data tags, Oracle sessions and Locking!

    Hi ,
    I have seen numerous examples of JSPs using data tags and in all the examples the data tag for the application module has the "username" and "password" harcoded in it.
    My questions are:
    1) For a stateful application should we be including the username and password in every JSP page. I personally believe that we should not.
    2) If we have a username and password in every JSP page will it not start a new ORACLE user session and if so will it not cause locking problems?
    3) If we don't hard code the username and password in every JSP page, will it reuse the same ORACLE session ?
    4) How do we avoid locking problems when we use data tags?
    5)I can understand the inclusion of username and password in every JSP page if it is a stateless application but again Is there a way we can avoid hardcoding the username and password in every single page?
    I would appreciate if some one can let me know if any of my assumptions are incorrect.
    JDeveloper Team/Juan any advice?

    The username and password are optional. They can be provided via the connections.properties file. The multple entries for username and password don't mean that separate connection are made. The first time the ApplicationModule tag is encountered, your application instance is created. If you are running in reserved mode (look at your releasePageResources tag) the application instance is kept until your Http session times out. If you are running in Stateful or Stateless mode, you application instance is returned to the application pool and retrieved the next time you need an instance. Please refer to the application pool documentation and to the source in oracle\jbo\common\ampool provided in jbohtmlsrc.zip.

  • JVM crashes with jdeveloper 11g and jrockit 6

    When i run my application its al going well, when i call some to show data, then all is going well,
    but when i would like to save some, then the jvm crashes, and i have no idea, i've added arguments in the jvm run configuration, etc nothing seems to work, has anybody any idea, because im getting very desperate.
    [JRockit] ERROR: The JVM has crashed. Writing crash information to C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.52.05\DefaultDomain\jrockit.6136.dump.
    ===== BEGIN DUMP =============================================================
    JRockit dump produced after 0 days, 00:01:35 on Thu Aug 20 16:02:44 2009
    * If you see this dump, please go to *
    * http://edocs.bea.com/jrockit/go2troubleshooting.html *
    * for troubleshooting information. *
    Additional information is available in:
    C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.52.05\DefaultDomain\jrockit.6136.dump
    C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.52.05\DefaultDomain\jrockit.6136.mdmp
    Error Message: Illegal memory access. [54]
    Exception Rec: EXCEPTION_ACCESS_VIOLATION (c0000005) at 0x00000000 - memory at 0x00000000 could not be read.
    Minidump : Wrote mdmp. Size is 527MB
    SafeDllMode : -1
    Version : BEA JRockit(R) R27.6.3-40_o-112056-1.6.0_11-20090318-2104-windows-ia32
    CPU : Intel Core 2 SSE SSE2 SSE3 SSSE3 SSE4.1 Core Intel64
    Number CPUs : 2
    Tot Phys Mem : 3715284992 (3543 MB)
    OS version : Microsoft Windows XP version 5.1 Service Pack 3 (Build 2600) (32-bit)
    Thread System: Windows Threads
    Java locking : Lazy unlocking enabled (class banning) (transfer banning)
    State : JVM is running
    Command Line : -Xms256m -Xmx512m -Djbo.debugoutput=console -Xmx512M -XX:MaxPermSize=512M -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~2\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~2\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~2\WLSERV~1.3\server -Ddomain.home=C:\Oracle\MIDDLE~2\JDEVEL~1\system\SYSTEM~1.05\DEFAUL~1 -Doracle.home=C:\Oracle\Middleware\jdeveloper -Doracle.security.jps.config=C:\Oracle\MIDDLE~2\JDEVEL~1\system\SYSTEM~1.05\DEFAUL~1\config\oracle\jps-config.xml -Doracle.dms.context=OFF -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~2\patch_wls1030\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~2\patch_jdev1111\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~2\patch_cie660\profiles\default\sysext_manifest_classpath -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\MIDDLE~2\WLSERV~1.3\server\lib\weblogic.policy -Dsun.java.launcher=SUN_STANDARD weblogic.Server
    java.home : C:\PROGRA~1\Java\JROCKI~1.0_1
    j.class.path : ;C:\Oracle\MIDDLE~2\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~2\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~2\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\PROGRA~1\Java\JROCKI~1.0_1\lib\tools.jar;C:\Oracle\MIDDLE~2\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~2\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~2\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\Oracle\MIDDLE~2\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~2\modules\ORGAPA~1.5/lib/ant-all.jar;C:\Oracle\MIDDLE~2\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\Middleware\jdeveloper\modules\features\adf.share_11.1.1.jar;;C:\Oracle\MIDDLE~2\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;C:\Oracle\MIDDLE~2\WLSERV~1.3\server\lib\xqrl.jar;;
    j.lib.path : C:\PROGRA~1\Java\JROCKI~1.0_1\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Oracle\MIDDLE~2\patch_wls1030\profiles\default\native;C:\Oracle\MIDDLE~2\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~2\patch_cie660\profiles\default\native;C:\Oracle\MIDDLE~2\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~2\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~2\modules\ORGAPA~1.5\bin;C:\PROGRA~1\Java\JROCKI~1.0_1\jre\bin;C:\PROGRA~1\Java\JROCKI~1.0_1\bin;C:\Oracle\OraClient10g\bin;C:\Oracle\DevSuite10G\bin;C:\Oracle\DevSuite10G\jdk\jre\bin\classic;C:\Oracle\DevSuite10G\jdk\jre\bin;C:\Oracle\DevSuite10G\jdk\jre\bin\client;C:\Oracle\DevSuite10G\jlib;C:\Oracle\DevSuite10G\jre\1.4.2\bin\client;C:\Oracle\DevSuite10G\jre\1.4.2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program Files\TortoiseSVN\bin;C:\Oracle\jdevstudio10133\jdk\bin;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program Files\QuickTime\QTSystem\;Z:.;;C:\Oracle\MIDDLE~2\WLSERV~1.3\server\native\win\32\oci920_8
    JAVA_HOME : C:\PROGRA~1\Java\JROCKI~1.0_1
    JAVAOPTIONS: <not set>
    PATH : C:\PROGRA~1\Java\JROCKI~1.0_1\bin;C:\Oracle\MIDDLE~2\patch_wls1030\profiles\default\native;C:\Oracle\MIDDLE~2\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~2\patch_cie660\profiles\default\native;C:\Oracle\MIDDLE~2\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~2\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~2\modules\ORGAPA~1.5\bin;C:\PROGRA~1\Java\JROCKI~1.0_1\jre\bin;C:\PROGRA~1\Java\JROCKI~1.0_1\bin;C:\Oracle\OraClient10g\bin;C:\Oracle\DevSuite10G\bin;C:\Oracle\DevSuite10G\jdk\jre\bin\classic;C:\Oracle\DevSuite10G\jdk\jre\bin;C:\Oracle\DevSuite10G\jdk\jre\bin\client;C:\Oracle\DevSuite10G\jlib;C:\Oracle\DevSuite10G\jre\1.4.2\bin\client;C:\Oracle\DevSuite10G\jre\1.4.2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program Files\TortoiseSVN\bin;C:\Oracle\jdevstudio10133\jdk\bin;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program Files\QuickTime\QTSystem\;Z:.;;C:\Oracle\MIDDLE~2\WLSERV~1.3\server\native\win\32\oci920_8
    StackOverFlow: 0 StackOverFlowErrors have occured
    OutOfMemory : 0 OutOfMemoryErrors have occured
    C Heap : Good; no memory allocations have failed
    GC Strategy : Mode: throughput. Currently using strategy: genparpar
    GC Status : OC is not running. Last finished OC was OC#9.
    : YC is not running. Last finished YC was YC#15.
    OC History : Strategy genparpar was used for OC#1 to OC#6.
    : Strategy singleparpar was used for OC#7.
    : Strategy genparpar was used for OC#8 to OC#9.
    YC History : Ran 1 YCs before OC#5.
    : Ran 0 YCs before OC#6.
    : Ran 0 YCs before OC#7.
    : Ran 1 YCs before OC#8.
    : Ran 4 YCs before OC#9.
    : Ran 1 YCs since last OC.
    YC Promotion : Last YC successfully promoted all objects
    Heap : 0x00C00000 - 0x10C00000 (Size: 256 MB)
    Compaction : 0x0BC00030 - 0x0CC00038 (Current compaction type: external)
    NurseryList : 0x0289B2D8 - 0x0A5D4488
    KeepArea : 0x085ADA80 - 0x0A5D4488
    NurseryMarker: [ 0x06479790,  0x085ADA80 ]
    CompRefs : References are 32-bit.
    Registers (from ThreadContext: 0x2562E340 / OS context: 0x2562E72C):
    eax = 00000000 ecx = 00000000 edx = 2562e998 ebx = 07ab6220
    esp = 2562e9f8 ebp = 07ab6220 esi = 2562ea18 edi = 242bae4c
    es = 00000023 cs = 0000001b ss = 00000023 ds = 00000023
    fs = 0000003b gs = 00000000
    eip = 00000000 eflags = 00010212
    Loaded modules:
    (* denotes the module causing the exception)
    00400000-00412fff C:\PROGRA~1\Java\JROCKI~1.0_1\bin\java.exe
    7c900000-7c9b4fff C:\WINDOWS\system32\ntdll.dll
    7c800000-7c8fffff C:\WINDOWS\system32\kernel32.dll
    77f40000-77feafff C:\WINDOWS\system32\ADVAPI32.dll
    77da0000-77e31fff C:\WINDOWS\system32\RPCRT4.dll
    77f10000-77f20fff C:\WINDOWS\system32\Secur32.dll
    77be0000-77c37fff C:\WINDOWS\system32\MSVCRT.dll
    7c340000-7c395fff C:\PROGRA~1\Java\JROCKI~1.0_1\bin\msvcr71.dll
    00420000-006c6fff C:\PROGRA~1\Java\JROCKI~1.0_1\bin\jrockit\jvm.dll
    76af0000-76b1dfff C:\WINDOWS\system32\WINMM.dll
    77e40000-77e88fff C:\WINDOWS\system32\GDI32.dll
    7e390000-7e420fff C:\WINDOWS\system32\USER32.dll
    71a30000-71a46fff C:\WINDOWS\system32\WS2_32.dll
    71a20000-71a27fff C:\WINDOWS\system32\WS2HELP.dll
    6d860000-6d86bfff C:\PROGRA~1\Java\JROCKI~1.0_1\bin\verify.dll
    6d3d0000-6d3eefff C:\PROGRA~1\Java\JROCKI~1.0_1\bin\java.dll
    6d330000-6d337fff C:\PROGRA~1\Java\JROCKI~1.0_1\bin\hpi.dll
    6d8a0000-6d8aefff C:\Program Files\Java\jrockit-R27.6.3-jre1.6.0_11\bin\zip.dll
    6d6c0000-6d6d2fff C:\Program Files\Java\jrockit-R27.6.3-jre1.6.0_11\bin\net.dll
    719d0000-71a0ffff C:\WINDOWS\system32\mswsock.dll
    61200000-61258fff C:\WINDOWS\system32\hnetcfg.dll
    71a10000-71a17fff C:\WINDOWS\System32\wshtcpip.dll
    23750000-23776fff C:\WINDOWS\system32\DNSAPI.dll
    23780000-23787fff C:\WINDOWS\System32\winrnr.dll
    23790000-237bcfff C:\WINDOWS\system32\WLDAP32.dll
    66210000-66218fff C:\WINDOWS\system32\netware\NWWS2NDS.DLL
    50d50000-50d84fff C:\WINDOWS\system32\NETWIN32.DLL
    50d00000-50d15fff C:\WINDOWS\system32\CLNWIN32.DLL
    50df0000-50e14fff C:\WINDOWS\system32\LOCWIN32.dll
    50db0000-50de4fff C:\WINDOWS\system32\NCPWIN32.dll
    71a50000-71a59fff C:\WINDOWS\system32\WSOCK32.dll
    66220000-6622bfff C:\WINDOWS\system32\netware\NWWS2SLP.DLL
    66250000-66256fff C:\WINDOWS\system32\NWSRVLOC.dll
    23850000-23855fff C:\WINDOWS\system32\rasadhlp.dll
    6d610000-6d618fff C:\Program Files\Java\jrockit-R27.6.3-jre1.6.0_11\bin\management.dll
    6d6e0000-6d6e8fff C:\Program Files\Java\jrockit-R27.6.3-jre1.6.0_11\bin\nio.dll
    68000000-68035fff C:\WINDOWS\system32\rsaenh.dll
    76970000-76a24fff C:\WINDOWS\system32\USERENV.dll
    6ff20000-6ff74fff C:\WINDOWS\system32\netapi32.dll
    00ba0000-00baafff C:\Program Files\Java\jrockit-R27.6.3-jre1.6.0_11\bin\jmapi.dll
    22490000-2249dfff C:\Oracle\Middleware\wlserver_10.3\server\native\win\32\wlfileio2.dll
    24fe0000-24ff8fff C:\WINDOWS\system32\iphlpapi.dll
    25bc0000-25bd7fff C:\WINDOWS\system32\MPRAPI.dll
    77c90000-77cc1fff C:\WINDOWS\system32\ACTIVEDS.dll
    25be0000-25c04fff C:\WINDOWS\system32\adsldpc.dll
    76ad0000-76ae0fff C:\WINDOWS\system32\ATL.DLL
    774a0000-775dcfff C:\WINDOWS\system32\ole32.dll
    25c10000-25c9afff C:\WINDOWS\system32\OLEAUT32.dll
    25ca0000-25cadfff C:\WINDOWS\system32\rtutils.dll
    71b80000-71b92fff C:\WINDOWS\system32\SAMLIB.dll
    778e0000-779d6fff C:\WINDOWS\system32\SETUPAPI.dll
    25cf0000-25cf4fff C:\Oracle\Middleware\wlserver_10.3\server\native\win\32\wlntio.dll
    6d840000-6d847fff C:\Program Files\Java\jrockit-R27.6.3-jre1.6.0_11\bin\sunmscapi.dll
    77a40000-77ad5fff C:\WINDOWS\system32\CRYPT32.dll
    77ae0000-77af1fff C:\WINDOWS\system32\MSASN1.dll
    76bb0000-76bbafff C:\WINDOWS\system32\psapi.dll
    6d0b0000-6d1e7fff C:\Program Files\Java\jrockit-R27.6.3-jre1.6.0_11\bin\awt.dll
    72f70000-72f95fff C:\WINDOWS\system32\WINSPOOL.DRV
    76330000-7634cfff C:\WINDOWS\system32\IMM32.dll
    5d4e0000-5d579fff C:\WINDOWS\system32\comctl32.dll
    6d7b0000-6d7b5fff C:\Program Files\Java\jrockit-R27.6.3-jre1.6.0_11\bin\rmi.dll
    33230000-33342fff C:\PROGRA~1\Java\JROCKI~1.0_1\bin\dbghelp.dll
    Stack:
    (* marks the word pointed to by the stack pointer)
    2562e9f8: 2562ea34* 00000000 242bace8 0059a501 242bae4c 2562ea34
    2562ea10: 00000000 21941522 242bae4c 2562ea34 0d3829b8 2cfb78c0
    2562ea28: 2194151d 242bb0b4 2562ea18 0d1018b8 242bace8 07ab6220
    2562ea40: 07ab6220 21bfb985 0d1018b8 00000001 07ab6220 051988d8
    Code:
    (* marks the word pointed to by the instruction pointer)
    ffffffd0: Unreadable
    ffffffe8: Unreadable
    00000000: Unreadable
    00000018: Unreadable
    "[ACTIVE] ExecuteThread: '0' for" id=15 idx=0x3c tid=6000 lastJavaFrame=0x2562EA24
    Stack 0: start=0x255F0000, end=0x25630000, guards=0x255F3000 (ok), forbidden=0x255F1000
    Thread Stack Trace:
    at RJNI_jrockit_vm_Locks_monitorEnterUnmatched+17(rnilocks.c:65+17)@0x0059A501
    -- Java stack --
    at jrockit/vm/Locks.monitorEnterUnmatched(Ljava/lang/Object;)V(Native Method)
    at oracle/jbo/server/ViewRowSetIteratorImpl.next(ViewRowSetIteratorImpl.java:1690)
    at oracle/jbo/server/ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1548)
    ^-- Holding lock: oracle/jbo/JboSyncLock@0x0D1018B8[recursive]
    at oracle/jbo/server/ViewRowSetImpl.first(ViewRowSetImpl.java:3202)
    at oracle/jbo/server/ViewObjectImpl.first(ViewObjectImpl.java:8123)
    at oracle/jbo/uicli/binding/JUCtrlListBinding.initFromServerBinding(JUCtrlListBinding.java:524)
    at oracle/jbo/uicli/binding/JUCtrlListBinding.setupListItems(JUCtrlListBinding.java:630)
    at oracle/jbo/uicli/binding/JUCtrlListBinding.findListIndex(JUCtrlListBinding.java:1783)
    at oracle/jbo/uicli/binding/JUCtrlListBinding.setValueAt(JUCtrlListBinding.java:2686)
    at oracle/jbo/uicli/binding/JUCtrlListBinding.updateValuesFromRow(JUCtrlListBinding.java:2118)
    at oracle/jbo/uicli/binding/JUCtrlValueBinding.updateNavigated(JUCtrlValueBinding.java:268)
    at oracle/jbo/uicli/binding/JUIteratorBinding.navigated(JUIteratorBinding.java:302)
    ^-- Holding lock: oracle/jbo/uicli/binding/JUApplication@0x0CECD4F0[biased lock]
    at oracle/jbo/common/RowSetHelper.fireNavigationEvent(RowSetHelper.java:268)
    at oracle/jbo/server/ViewRowSetIteratorImpl.notifyNavigationToRow(ViewRowSetIteratorImpl.java:3624)
    at oracle/jbo/server/ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3595)
    at oracle/jbo/server/ViewRowSetIteratorImpl.next(ViewRowSetIteratorImpl.java:1744)
    at oracle/jbo/server/ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1548)
    ^-- Holding lock: oracle/jbo/JboSyncLock@0x0D1018B8[recursive]
    at oracle/jbo/server/ViewRowSetImpl.first(ViewRowSetImpl.java:3202)
    at oracle/jbo/server/ViewObjectImpl.first(ViewObjectImpl.java:8123)
    at oracle/adf/model/binding/DCIteratorBinding.setupRSIstate(DCIteratorBinding.java:755)
    at oracle/adf/model/binding/DCIteratorBinding.refreshControl(DCIteratorBinding.java:655)
    at oracle/jbo/uicli/binding/JUIteratorBinding.refreshControl(JUIteratorBinding.java:475)
    at oracle/adf/model/binding/DCIteratorBinding.rangeRefreshed(DCIteratorBinding.java:861)
    at oracle/jbo/common/RowSetHelper.fireRangeRefreshed(RowSetHelper.java:179)
    at oracle/jbo/server/ViewRowSetIteratorImpl.notifyRangeRefreshed(ViewRowSetIteratorImpl.java:3559)
    at oracle/jbo/server/ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2776)
    ^-- Holding lock: oracle/jbo/JboSyncLock@0x0D1018B8[recursive]
    at oracle/jbo/server/ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2996)
    at oracle/jbo/server/ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2453)
    at oracle/jbo/server/ViewRowSetImpl.execute(ViewRowSetImpl.java:1047)
    ^-- Holding lock: oracle/jbo/JboSyncLock@0x0D1018B8[recursive]
    at oracle/jbo/server/ViewRowSetImpl.execute(ViewRowSetImpl.java:873)
    at oracle/jbo/server/ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2738)
    ^-- Holding lock: oracle/jbo/JboSyncLock@0x0D1018B8[recursive]
    at oracle/jbo/server/ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2996)
    at oracle/jbo/server/ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2453)
    at oracle/jbo/server/ViewRowSetImpl.refreshRowSet(ViewRowSetImpl.java:6106)
    at oracle/jbo/server/ViewRowSetIteratorImpl.notifyDetailRowSets(ViewRowSetIteratorImpl.java:3493)
    at oracle/jbo/server/ViewRowSetIteratorImpl.notifyNavigationToRow(ViewRowSetIteratorImpl.java:3635)
    at oracle/jbo/server/ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3595)
    at oracle/jbo/server/ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3378)
    at oracle/jbo/server/ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1551)
    ^-- Holding lock: oracle/jbo/JboSyncLock@0x0D1018B8[recursive]
    at oracle/jbo/server/ViewRowSetImpl.first(ViewRowSetImpl.java:3202)
    at oracle/jbo/server/ViewObjectImpl.first(ViewObjectImpl.java:8123)
    at oracle/adf/model/binding/DCIteratorBinding.setupRSIstate(DCIteratorBinding.java:755)
    at oracle/adf/model/binding/DCIteratorBinding.refreshControl(DCIteratorBinding.java:655)
    at oracle/jbo/uicli/binding/JUIteratorBinding.refreshControl(JUIteratorBinding.java:475)
    at oracle/adf/model/binding/DCIteratorBinding.rangeRefreshed(DCIteratorBinding.java:861)
    at oracle/jbo/common/RowSetHelper.fireRangeRefreshed(RowSetHelper.java:179)
    at oracle/jbo/server/ViewRowSetIteratorImpl.notifyRangeRefreshed(ViewRowSetIteratorImpl.java:3559)
    at oracle/jbo/server/ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2776)
    ^-- Holding lock: oracle/jbo/JboSyncLock@0x0D1018B8[recursive]
    at oracle/jbo/server/ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2996)
    at oracle/jbo/server/ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2453)
    at oracle/jbo/server/ViewRowSetImpl.execute(ViewRowSetImpl.java:1047)
    ^-- Holding lock: oracle/jbo/JboSyncLock@0x0D1018B8[recursive]
    at oracle/jbo/server/ViewRowSetImpl.execute(ViewRowSetImpl.java:873)
    at oracle/jbo/server/ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2738)
    ^-- Holding lock: oracle/jbo/JboSyncLock@0x0D1018B8[recursive]
    at oracle/jbo/server/ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2996)
    at oracle/jbo/server/ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2453)
    at oracle/jbo/server/ViewRowSetImpl.refreshRowSet(ViewRowSetImpl.java:6106)
    at oracle/jbo/server/ViewRowSetIteratorImpl.notifyDetailRowSets(ViewRowSetIteratorImpl.java:3493)
    at oracle/jbo/server/ViewRowSetIteratorImpl.notifyNavigationToRow(ViewRowSetIteratorImpl.java:3635)
    at oracle/jbo/server/ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3595)
    at oracle/jbo/server/ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3378)
    at oracle/jbo/server/ViewRowSetIteratorImpl.setCurrentRow(ViewRowSetIteratorImpl.java:1018)
    ^-- Holding lock: oracle/jbo/JboSyncLock@0x0D1018B8[recursive]
    at oracle/jbo/server/ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:3955)
    ^-- Holding lock: oracle/jbo/JboSyncLock@0x0D1018B8[recursive]
    at oracle/jbo/server/ViewRowSetImpl.activateIteratorState(ViewRowSetImpl.java:6228)
    at oracle/jbo/server/ViewObjectImpl.activateIteratorState(ViewObjectImpl.java:16120)
    at oracle/jbo/server/ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:3874)
    ^-- Holding lock: oracle/jbo/JboSyncLock@0x0D1018B8[recursive]
    at oracle/jbo/server/ViewRowSetImpl.activateIteratorState(ViewRowSetImpl.java:6228)
    at oracle/jbo/server/ViewObjectImpl.activateIteratorState(ViewObjectImpl.java:16120)
    at oracle/jbo/server/ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:3874)
    ^-- Holding lock: oracle/jbo/JboSyncLock@0x0D1018B8[recursive]
    at oracle/jbo/server/ViewRowSetImpl.activateIteratorState(ViewRowSetImpl.java:6228)
    at oracle/jbo/server/ViewObjectImpl.activateIteratorState(ViewObjectImpl.java:16120)
    at oracle/jbo/server/ApplicationModuleImpl.activateVOs(ApplicationModuleImpl.java:7675)
    at oracle/jbo/server/ApplicationModuleImpl.doActivateState(ApplicationModuleImpl.java:7421)
    at oracle/jbo/server/ApplicationModuleImpl.doActivateState(ApplicationModuleImpl.java:7453)
    at oracle/jbo/server/ApplicationModuleImpl.doActivateAMState(ApplicationModuleImpl.java:7400)
    at oracle/jbo/server/Serializer.activate(Serializer.java:284)
    at oracle/jbo/server/DBSerializer.activateRootAM(DBSerializer.java:331)
    at oracle/jbo/server/ApplicationModuleImpl.activateFromStack(ApplicationModuleImpl.java:6063)
    at oracle/jbo/server/ApplicationModuleImpl.activateState(ApplicationModuleImpl.java:5923)
    ^-- Holding lock: oracle/jbo/JboSyncLock@0x0D1018B8[recursive]
    at oracle/jbo/server/ApplicationModuleImpl.activateStateForUndo(ApplicationModuleImpl.java:8308)
    ^-- Holding lock: oracle/jbo/JboSyncLock@0x0D1018B8[recursive]
    at nl/nak/iva/RuleFrameTransactionImpl.activateStateForUndo(RuleFrameTransactionImpl.java:262)
    at nl/nak/iva/RuleFrameTransactionImpl.handleSQLError(RuleFrameTransactionImpl.java:130)
    at nl/nak/iva/RuleFrameTransactionImpl.doCommit(RuleFrameTransactionImpl.java:86)
    at oracle/jbo/server/DBTransactionImpl.commitInternal(DBTransactionImpl.java:2244)
    at oracle/jbo/server/DBTransactionImpl.commit(DBTransactionImpl.java:2382)
    ^-- Holding lock: nl/nak/iva/RuleFrameTransactionImpl@0x0E986690[biased lock]
    ^-- Holding lock: oracle/jbo/JboSyncLock@0x0D1018B8[recursive]
    at nl/nak/iva/RuleFrameTransactionImpl.commit(RuleFrameTransactionImpl.java:103)
    at oracle/adf/model/bc4j/DCJboDataControl.commitTransaction(DCJboDataControl.java:1565)
    at oracle/adf/model/binding/DCDataControl.callCommitTransaction(DCDataControl.java:1407)
    at oracle/jbo/uicli/binding/JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1293)
    at oracle/adf/model/binding/DCDataControl.invokeOperation(DCDataControl.java:2126)
    at oracle/jbo/uicli/binding/JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:697)
    at oracle/adf/controller/v2/lifecycle/PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:392)
    at oracle/adfinternal/view/faces/model/binding/FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:159)
    at oracle/adfinternal/view/faces/model/binding/FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:118)
    at jrockit/vm/RNI.c2java(IIIII)V(Native Method)
    at jrockit/vm/Reflect.invokeMethod(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Native Method)
        at sun/reflect/NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;) Ljava/lang/Object;(Native Method)
        at sun/reflect/NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java/lang/reflect/Method.invoke(Method.java:597)
        at com/sun/el/parser/AstValue.invoke(AstValue.java:157)
        at com/sun/el/MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
        at org/apache/myfaces/trinidadinternal/taglib/util/MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
        at org/apache/myfaces/trinidad/component/UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1227)
        at org/apache/myfaces/trinidad/component/UIXCommand.broadcast(UIXCommand.java:183)
        at oracle/adf/view/rich/component/fragment/ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:70)
        at oracle/adf/view/rich/component/fragment/ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:274)
        at oracle/adf/view/rich/component/fragment/ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:74)
        at javax/faces/component/UIViewRoot.broadcastEvents(UIViewRoot.java:458)
        at javax/faces/component/UIViewRoot.processApplication(UIViewRoot.java:763)
        at oracle/adfinternal/view/faces/lifecycle/LifecycleImpl._invokeApplication(LifecycleImpl.java:640)
        at oracle/adfinternal/view/faces/lifecycle/LifecycleImpl._executePhase(LifecycleImpl.java:275)
        at oracle/adfinternal/view/faces/lifecycle/LifecycleImpl.execute(LifecycleImpl.java:175)
        at javax/faces/webapp/FacesServlet.service(FacesServlet.java:265)
        at weblogic/servlet/internal/StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic/servlet/internal/StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic/servlet/internal/ServletStubImpl.execute(ServletStubImpl.java:292)
        at weblogic/servlet/internal/TailFilter.doFilter(TailFilter.java:26)
        at weblogic/servlet/internal/FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at oracle/adf/model/servlet/ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
        at weblogic/servlet/internal/FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at oracle/adfinternal/view/faces/webapp/rich/RegistrationFilter.doFilter(RegistrationFilter.java:85)
        at org/apache/myfaces/trinidadinternal/webapp/TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:279)
        at org/apache/myfaces/trinidadinternal/webapp/TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:239)
        at org/apache/myfaces/trinidadinternal/webapp/TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:196)
        at org/apache/myfaces/trinidadinternal/webapp/TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
        at org/apache/myfaces/trinidad/webapp/TrinidadFilter.doFilter(TrinidadFilter.java:92)
        at weblogic/servlet/internal/FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at oracle/security/jps/wls/JpsWlsFilter.doFilter(JpsWlsFilter.java:102)
        at oracle/security/jps/ee/http/JpsFilter.doFilter(JpsFilter.java:65)
        at weblogic/servlet/internal/FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at weblogic/servlet/internal/RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
        at weblogic/servlet/internal/FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at weblogic/servlet/internal/WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
        at weblogic/security/acl/internal/AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic/security/service/SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Unknown Source)
        at weblogic/servlet/internal/WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
        at weblogic/servlet/internal/WebAppServletContext.execute(WebAppServletContext.java:2086)
        at weblogic/servlet/internal/ServletRequestImpl.run(ServletRequestImpl.java:1406)
        at weblogic/work/ExecuteThread.execute(ExecuteThread.java:201)
        at weblogic/work/ExecuteThread.run(ExecuteThread.java:173)
        at jrockit/vm/RNI.c2java(IIIII)V(Native Method)
        -- end of trace
        *  If you see this dump, please go to                    *
        *  http://edocs.bea.com/jrockit/go2troubleshooting.html  *
        *  for troubleshooting information.                      *
    ===== END DUMP ===============================================================                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    Core dumps are usually a bug, so I suggest filing a Service Request with support.

  • JDeveloper 11.1.2.0.0 Version Application wizard : File Backup Error

    hi
    As shown in the scenario (sc1) screencast at http://screencast.com/t/GA7OcgYZ
    the JDeveloper 11.1.2.0.0 Version Application wizard can fail sometimes, showing a "File Backup Error" dialog, with the message
    "Failed attempting to back up imported resource
    D:\screencast\VersionAppLockedIssueApp-v0.01\VersionAppLockedIssueApp\Model.
    Check that there are no file system explorers viewing files in this location and that none of the files are open in other applications before resuming."
    This even occurs when there are no other processes (like Windows Explorer or an editor) using/locking the file.
    It should be possible to reproduce the behaviour using the example application
    at http://www.consideringred.com/files/oracle/2011/VersionAppLockedIssueApp-v0.01.zip
    which is really nothing special I think, so it might also reproduce using another application.
    First open the application and also open the file "browseEmployees.jsf" in design view.
    After that, as it seems, the Version Application wizard fails.
    Note that it might be relevant that I am using Windows 7, as I can imagine that this could behave differently when using JDeveloper on other operating systems.
    Also note, if I try to ZIP the application folder (instead of using the Version Application wizard) after opening the file "browseEmployees.jsf" in design view, I get a message like "WARNING: The process cannot access the file because it is being used by another process.
    : D:\screencast\VersionAppLockedIssueApp-v0.01\VersionAppLockedIssueApp\.data\00000000\je.lck ",
    as can be seen in the scenario (sc2) screencast at http://screencast.com/t/rFiL47Bil
    As it seems that the Version Application wizard has managed to commit the source files, one workaround could be to checkout the source in another location and continue working there.
    Other suggestions to avoid this issue, or deal with it, are welcome.
    questions:
    - (q1) Can this "File Backup Error" behaviour for the Version Application wizard be reproduced?
    - (q2) How can this "File Backup Error" behaviour for the Version Application wizard be explained?
    many thanks
    Jan Vervecken

    fyi
    Today I noticed that there is a My Oracle Support note about this:
    - note id 1353389.1 , "In JDeveloper11.1.2.0.0 the Version Application Wizard Failed with the Error: File Backup Error "
    Its "Solution" section currently says:
    "The problem is still investigated by development.
    But there is a possible workaround for Bug 12912410 by unchecking the checkbox 'Perform Checkout' in step 5 of 6 in the wizard screen. "
    regards
    Jan

  • WTF ? Where's JDK ? Struggling to Install JDeveloper 11g (11.1.2.4.0)

    Hi Everyone !
    I"m struggling to re-install JDeveloper 11g (11.1.2.4.0) in my Mac OS X Mountain Lion (Version 10.8.4). Can someone please assist me with this issue ? I believe I might have ran into this, with an earlier version; but recently had computer problems and to wipe my system and upgrade my HDD and Memory. So, I'm back to square one and need to install this pursue my independent Java 7 programming self-lessons.
    If this questions seems trivial or beneath you, I apologize in advance. I'm just a newbie wishing to improve myself through the acquisition of new I.T. skills.
    God Bless.
    - Frederick

    Frederick ,
    May I know what is the error that you are encountering ? .  Hope the below info might help you
    nstallation on Mac OS
    Some additional steps are required to install JDeveloper on Mac OS beyond what is documented in the installation guide. Please refer to the installation guide (http://docs.oracle.com/cd/E26098_01/install.1112/e17074/toc.htm) for additional details on installing JDeveloper for Mac OS X.
    1. Make Java 6 the default VM.
    Run Java Preferences (in /Applications/Utilities/Java)
    Move the Java SE 6 (64 Bit) to the top of the Java application versions list (General tab)
    2. Create a symbolic link for classes.jar (requires root access)
    To enable root user:
    For Mac OS versions older than Snow Leopard, simply open the Directory Utility app from Applications - Utility
    For Mac OS versions Snow Leopard and more recent:Go to System Preferences - Users and Groups. Click Login Options, and then the Join button (enable configuration changes if necessary). Then, proceed by clicking Open Directory Utility.
    Ensure the settings are unlocked (click the lock if necessary)
    Choose Edit > Enable Root User and provide the root user password.
    Note, you can return to this same screen to disable root user after creating the symbolic link
    Create the symbolic link from a terminal session:
    Note: You may need to repeat the steps to create the symbolic link after installing a new JDK.An additional step is required to successfully run applications on Mac systems that have Java for Mac OS X 10.5 Update 4 installed (8681385):
    Open the jdev.conf file. The file is located in the MW_HOME/jdeveloper/jdev/bin/ directory.
    Add the following line to the jdev.conf file: AddVMOption -Djava.io.tmpdir=/var/tmp
    Thanks
    Sandeep

  • Toplink Optimistic Locking not working with Session Bean facade.

    I am working on Oracle JDeveloper v 10.1.2 and connecting to an Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit
    The application is based on J2EE architecture and the technology stack uses Struts for presentation/controller framework, Stateless Session EJBs as session facade for custom business services, Simple java classes for the business services, Toplink implementation of DAO layer, Domain objects are mapped to database tables using Toplink Workbench that ships with JDeveloper. The transaction is managed by the session bean and hence the toplink session is configured to use external transaction controller and a named datasource as follows.
    <session xsi:type="server-session">
    <name>DBSession</name>
    <server-platform xsi:type="oc4j-1012-platform"/>
    <event-listener-classes/>
    <logging xsi:type="toplink-log">
    <log-level>fine</log-level>
    <file-name>D:/ToplinkLog.log</file-name>
    </logging>
    <primary-project xsi:type="xml">META-INF/toplink-descriptor.xml</primary-project>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
    <external-connection-pooling>true</external-connection-pooling>
    <external-transaction-controller>true</external-transaction-controller>
    <sequencing>
    <default-sequence xsi:type="native-sequence">
    <name>Native</name>
    <preallocation-size>1</preallocation-size>
    </default-sequence>
    </sequencing>
    <datasource>jdbc/ORADS</datasource>
    </login>
    </session>
    We intend to use Optimistic Locking based on Timestamp-version locking through an audit field "last_modification_date" of type java.sql.Timestamp. The corresponding database field is also of type Timestamp(6). We are not storing the version in cache.
    The problem we are facing is as follows.. we have an edit screen from where user can edit values for a domain object which are then persisted using Toplink...we expect Toplink to check the database record version (modification_date timestamp) before it applies the update. In DAO implementation, we register the object in a unitOfWork, then set the modified values, however we leave the modification_date (version field) unedited. Now when the application is running, on edit, an exception is thrown by the Session bean before ending the transaction.
    com.evermind.server.rmi.OrionRemoteException: Transaction was rolled back: Error in transaction: java.lang.NullPointerException
         at TrackingMediator_StatelessSessionBeanWrapper2.editOverheadExpenditure(TrackingMediator_StatelessSessionBeanWrapper2.java:1597)
         at com.enbridge.dsm.web.action.TrackingPortfolioAction.editOverheadExpenditure(TrackingPortfolioAction.java:264)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:278)
         at com.enbridge.dsm.web.shared.BaseAction.execute(BaseAction.java:90)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:465)
         at com.enbridge.dsm.web.shared.DSMPojoRequestProcessor.process(DSMPojoRequestProcessor.java:182)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1425)
         at com.sourcebeat.strutslive.common.SLActionServlet.process(SLActionServlet.java:44)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at com.enbridge.dsm.web.shared.security.SecurityFilter.doFilter(SecurityFilter.java:142)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:645)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
         Nested exception is:
    java.lang.NullPointerException
         at oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:1190)
         at com.evermind.sql.FilterConnection.commit(FilterConnection.java:209)
         at com.evermind.sql.DriverManagerXAConnection.commit(DriverManagerXAConnection.java:203)
         at com.evermind.server.TransactionEnlistment.commit(TransactionEnlistment.java:251)
         at com.evermind.server.ApplicationServerTransaction.singlePhaseCommit(ApplicationServerTransaction.java:745)
         at com.evermind.server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:690)
         at com.evermind.server.ApplicationServerTransaction.end(ApplicationServerTransaction.java:1035)
         at TrackingMediator_StatelessSessionBeanWrapper2.editOverheadExpenditure(TrackingMediator_StatelessSessionBeanWrapper2.java:1593)
         at com.enbridge.dsm.web.action.TrackingPortfolioAction.editOverheadExpenditure(TrackingPortfolioAction.java:264)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:278)
         at com.enbridge.dsm.web.shared.BaseAction.execute(BaseAction.java:90)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:465)
         at com.enbridge.dsm.web.shared.DSMPojoRequestProcessor.process(DSMPojoRequestProcessor.java:182)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1425)
         at com.sourcebeat.strutslive.common.SLActionServlet.process(SLActionServlet.java:44)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at com.enbridge.dsm.web.shared.security.SecurityFilter.doFilter(SecurityFilter.java:142)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:645)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    Note that the exception is thrown at the time when the session bean is about to commit the transaction. i.e. the DAO code did not throw any exception and was able to check the optimistic locking and submit the update transaction.
    I am not able to understand why is the the EJB throwing this weird error with Optimistic locking implementation. The application is working fine when the optimistic locking is disabled.
    I am facing another problem due to this problem... since the session bean throws this exception after exiting the bean implemented method, when trying to commit the transaction, I am not able to mark the session context to setRollbackOnly. Hence if I continue on to another transaction by navigating to another screen in the application, mysteriously the previous transaction gets committed!!... again... weird...

    I am using JDBC driver version 10.1.2.
    I saw this additional error message in JDeveloper console, which for some reason was not logged to my log4j log file... if it helps...
    06/09/22 18:32:10 Thr[thread 6]-TransactionEnlistment.TransactionEnlistment.Caught forgetandRollback XAException e null
    Here are the logs from my Toplink log file....
    [TopLink Info]: 2006.09.22 06:31:46.546--ServerSession(989)--Thread(Thread[HttpRequestHandler-86,5,main])--TopLink, version: Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)
    [TopLink Info]: 2006.09.22 06:31:46.578--ServerSession(989)--Thread(Thread[HttpRequestHandler-86,5,main])--Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)
    [TopLink Config]: 2006.09.22 06:31:46.593--ServerSession(989)--Connection(991)--Thread(Thread[HttpRequestHandler-86,5,main])--connecting(DatabaseLogin(
         platform=>Oracle10Platform
         user name=> ""
         connector=>JNDIConnector datasource name=>jdbc/ORADS
    [TopLink Config]: 2006.09.22 06:31:47.484--ServerSession(989)--Connection(1432)--Thread(Thread[HttpRequestHandler-86,5,main])--Connected: jdbc:oracle:thin:@10.210.16.37:1521:orabld
         User: APP_USR
         Database: Oracle Version: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
         Driver: Oracle JDBC driver Version: 10.1.0.3.0
    [TopLink Config]: 2006.09.22 06:31:47.500--ServerSession(989)--Connection(1433)--Thread(Thread[HttpRequestHandler-86,5,main])--connecting(DatabaseLogin(
         platform=>Oracle10Platform
         user name=> ""
         connector=>JNDIConnector datasource name=>jdbc/ORADS
    [TopLink Config]: 2006.09.22 06:31:47.500--ServerSession(989)--Connection(1434)--Thread(Thread[HttpRequestHandler-86,5,main])--Connected: jdbc:oracle:thin:@10.210.16.37:1521:orabld
         User: APP_USR
         Database: Oracle Version: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
         Driver: Oracle JDBC driver Version: 10.1.0.3.0
    [TopLink Info]: 2006.09.22 06:31:47.671--ServerSession(989)--Thread(Thread[HttpRequestHandler-86,5,main])--DBSession login successful
    [TopLink Fine]: 2006.09.22 06:31:47.703--ServerSession(989)--Connection(1554)--Thread(Thread[HttpRequestHandler-86,5,main])--select * from user_role ur, app_resource ar, role_resource rr where rr.APP_RESOURCE_ID = ar.APP_RESOURCE_ID and rr.USER_ROLE_ID = ur.USER_ROLE_ID
    [TopLink Fine]: 2006.09.22 06:31:49.937--ServerSession(989)--Connection(10245)--Thread(Thread[HttpRequestHandler-86,5,main])--SELECT * FROM PROGRAM_SUB_CAT
    [TopLink Fine]: 2006.09.22 06:31:50.015--ServerSession(989)--Connection(10332)--Thread(Thread[HttpRequestHandler-86,5,main])--SELECT PROGRAM_ID, CREATED_BY_USERID FROM (SELECT CREATED_BY_USERID, ROWNUM PROGRAM_ID FROM (SELECT DISTINCT(CREATED_BY_USERID) CREATED_BY_USERID, 1 AS PROGRAM_ID FROM PROGRAM))
    (I only see my application specific queries after this... no exceptions or debug logs)... as I said before.. the application gives exception in the session bean at the time of commit, and there's no exception raised from Toplink code in DAO...

Maybe you are looking for

  • IPod Touch no longer responds to being plugged in.

    After working perfectly for months, my iPod Touch (Gen 4, 64 gb) does not do anything when plugged into a USB port. I have already tried restarting the Apple Mobile Device Service, which did nothing. I am almost certain that the problem originates wi

  • Application server to application server

    Hello All, I have a senario to pick the file from ECC 6.0 and send to ECC 5.0. There is no share folder between XI and ECC 6.0/ECC 5.0. Sender File:   1,fileheader   2,recordheader   3,detailrecord,....   3,detailrecord,...   2,rcordheader   3,detail

  • Some problems with servlet.jar and tomcat 4.1.27

    Hello everybody, I used to work with tomcat 3.3.1 and i've decided to use tomcat 4.1.27 now. The manual explains that we have to change de version of servlet.jar, it's done with servlet-2.3.jar but on tomcat starting i have this message: jar not load

  • Multiple TextArea one XML

    What I need to do is to use 1 XML file to feed different content to 2 different TextArea fields. I know how to use an XML file to feed text content to a TextArea field. I figured out how to use 1 XML file to feed the same text to 2 different TextArea

  • Saving Older FCP5 Project Files?

    Hi Gang I finally upgraded to FC6 (FC Studio 2) Is it neccessary to save/copy older FC5 Project Files? I know when I open my older FC5 Project Files they will be Saved as NEW FC6 Project Files, (can't go back). I have two separate systems; one with F