Bug: unable to rename entity attribute (jdev903)

Hi,
I have an entity and a view on it.
One of the entity attributes has the wrong name, so I tried to rename it, but jdev gave me a warning that it couldn't rename the attribute because the view is dependent on it. Sounds fair (although I wish it would rename the attribute in the view along with it, (refactoring)).
Then I removed the attribute from the view, and try to rename the entity attribute again. It still can't rename it! I've verified twice to see if the attribute was actually removed from the view, which it was, so this is definitely a bug.
Greetings,
Ivo

Ivo want's to rename the attribute in the entity object without first removing the attribute from the view object. That this isn't possible right now probably isn't a bug, because in your scenario you keep that in mind, so you manually first remove the attribute from the view object. But it would be nice if JDeveloper automatically renames the attribute in the view object too (instead of "complaining" about the dependency). And if you for example remove an attribute from an entity and a view object depends on it, it will ask you to remove the attribute from the view object(s) too etc.

Similar Messages

  • 10g Preview: BUG: Infinite loop renaming entity attribute

    9.0.5.0.0, Build 1375, Win2k SP3.
    BACKGROUND:
    After attempting to rename an EO on which a VO was based I received an error that indicated the VO was dependent on the attribute to be renamed. I removed the VO attribute from the VO's attribute list and saved the changes. I then brought up the Entity Object wizard where I attempted to rename the attribute.
    When jdevw.exe is used to launch the IDE, the renaming action results in the IDE hanging. When jdev.exe is used, the console prints the following stack trace and the IDE gives a StackOverflowError.
    java.lang.StackOverflowError
         at java.lang.System.arraycopy(Native Method)
         at java.lang.StringBuffer.expandCapacity(StringBuffer.java:203)
         at java.lang.StringBuffer.append(StringBuffer.java:393)
         at oracle.jbo.dt.objects.JboBaseObject.getFullName(JboBaseObject.java:188)
         at oracle.jbo.dt.objects.JboEntity.attributeChangeQuery(JboEntity.java)
         at oracle.jbo.dt.objects.JboChangeMulticaster.dispatchAttributeRemoveQuery(JboBaseObject.java)
         at oracle.jbo.dt.objects.JboEntity.attributeChangeQuery(JboEntity.java)
    [...a few hundred thousand more of these...]
         at oracle.jbo.dt.objects.JboChangeMulticaster.dispatchAttributeRemoveQuery(JboBaseObject.java)
         at oracle.jbo.dt.objects.JboEntity.attributeChangeQuery(JboEntity.java)
         at oracle.jbo.dt.objects.JboChangeMulticaster.dispatchAttributeRemoveQuery(JboBaseObject.java)
         at oracle.jbo.dt.objects.JboEntity.attributeChangeQuery(JboEntity.java:388)
         at oracle.jbo.dt.objects.JboChangeMulticaster.dispatchAttributeRemoveQuery(JboBaseObject.java:3394)
         at oracle.jbo.dt.objects.JboEntity.attributeChangeQuery(JboEntity.java:388)
    [...and a bunch of these...]
         at oracle.jbo.dt.objects.JboChangeMulticaster.dispatchAttributeRemoveQuery(JboBaseObject.java:3394)
         at oracle.jbo.dt.objects.JboEntity.attributeChangeQuery(JboEntity.java:388)
         at oracle.jbo.dt.objects.JboChangeMulticaster.dispatchAttributeChangeQuery(JboBaseObject.java:3427)
         at oracle.jbo.dt.objects.JboObject.changeAttributeQuery(JboObject.java:107)
         at oracle.jbo.dt.ui.entity.AttributeSettingsPanel.attributeNameCheck(AttributeSettingsPanel.java:453)
         at oracle.jbo.dt.ui.entity.EOAttributePanel.leave(EOAttributePanel.java:279)
         at oracle.jbo.dt.ui.entity.EOAttributeTabPanel.leave(EOAttributeTabPanel.java:108)
         at oracle.jbo.dt.ui.entity.EOEditAttributeTabPanel.updateCurrentAttr(EOEditAttributeTabPanel.java:330)
         at oracle.jbo.dt.ui.entity.EOEditAttributeTabPanel.leave(EOEditAttributeTabPanel.java:113)
         at oracle.jbo.dt.ui.main.dlg.DtjMddTraversable.onExit(DtuMddNavigable.java:278)
         at oracle.ide.panels.MDDPanel.exitTraversable(MDDPanel.java:761)
         at oracle.ide.panels.MDDPanel.onExit(MDDPanel.java:286)
         at oracle.jbo.dt.ui.main.dlg.DtjMddWizardDialog.okAction(DtuWizard.java:1899)
         at oracle.jbo.dt.ui.main.dlg.DtjDialog.dismissDialog(DtjDialog.java:219)
         at oracle.bali.ewt.dialog.JEWTDialog$UIListener.actionPerformed(Unknown Source)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
         at java.awt.Component.processMouseEvent(Component.java:5134)
         at java.awt.Component.processEvent(Component.java:4931)
         at java.awt.Container.processEvent(Container.java:1566)
         at java.awt.Component.dispatchEventImpl(Component.java:3639)
         at java.awt.Container.dispatchEventImpl(Container.java:1623)
         at java.awt.Component.dispatchEvent(Component.java)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
         at java.awt.Container.dispatchEventImpl(Container.java:1609)
         at java.awt.Window.dispatchEventImpl(Window.java)
         at java.awt.Component.dispatchEvent(Component.java)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:452)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
         at java.awt.Dialog.show(Dialog.java:538)
         at java.awt.Component.show(Component.java:1134)
         at java.awt.Component.setVisible(Component.java:1089)
         at oracle.jbo.dt.ui.main.dlg.DtjDialog.setVisible(DtjDialog.java:137)
         at oracle.jbo.dt.ui.main.dlg.DtjMddWizardDialog.setVisible(DtuWizard.java:1926)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.jbo.dt.ui.main.dlg.DtjDialog.showDialog(DtjDialog.java:114)
         at oracle.jbo.dt.ui.main.dlg.DtjMddWizardDialog.showDialog(DtuWizard.java:1885)
         at oracle.jbo.dt.ui.main.dlg.DtuWizard.createMddWizard(DtuWizard.java:422)
         at oracle.jbo.dt.ui.main.dlg.DtuWizard.setVisible(DtuWizard.java:276)
         at oracle.jbo.dt.ui.entity.EOWizard.setVisible(EOWizard.java:204)
         at oracle.jbo.dt.ui.main.dlg.DtuWizard.showDialog(DtuWizard.java:254)
         at oracle.jbo.dt.jdevx.ui.JdxMenuManager.invokeEOWizard(JdxMenuManager.java:762)
         at oracle.jbo.dt.jdevx.ui.JdxMenuManager.invokeEntityWizard(JdxMenuManager.java:741)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doEditMenuAction(DtuMenuManager.java:1341)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doMenuAction(DtuMenuManager.java:1218)
         at oracle.jbo.dt.jdevx.ui.JdxMenuManager.doMenuAction(JdxMenuManager.java:701)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doAction(DtuMenuManager.java:1058)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doAction(DtuMenuManager.java:1041)
         at oracle.jbo.dt.jdevx.ui.JdxMenuManager.doActionPerformed(JdxMenuManager.java:532)
         at oracle.jbo.dt.jdevx.ui.JdxMenuInvoker.run(JdxMenuManager.java:1285)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:449)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

    Thanks for the post, I've been able to reproduce this in the current builds and I've logged this as bug #3159091 to be fixed for 9.0.5 production.
    Ray

  • DBSequence type no longer available for entity attributes?

    I'm puzzled by this, if not scared.
    Every version of JDev till 11.1.1.2.0 has had out-of-the-box support for DBSequence as an entity attribute type.
    When you set it for your PK, JDev disables a few options, automatically sets "refresh after insert" (and maybe other stuff) and handles everything about it.
    Now, I see that in new applications created with 11.1.1.2.0 that option is no longer present...!
    It's available only for apps migrated from previous versions.
    If you create a new application, you no longer have DBSequence in the Type dropdown.
    Here's what the documentation (Oct 2009 DevGuide, par 4.10.10) says:
    In the Edit Attribute dialog, you can set the value of the Type field to the built-in data
    type named DBSequence and the primary key will be assigned automatically by the
    database sequence. Setting this data type automatically selects the refresh after Insert
    checkbox.Where on Earth is this built-in data type named DBSequence in Jdev 11.1.1.2.0?

    Thanks Paul.
    It seems JDev broke my application.
    It only shows the native Java types in the dropdown, and does not show any of the Oracle types including Number, DBSequence and all the rest.
    (Note that all the connections I work with use the Oracle type map, of course - it's automatic.)
    I tried a new quick test with a new application and again, no Oracle types, just the java types.
    Then closed and reopened my applications as well as JDev and I can now see all the types in my quick test.
    However, my original application still "sees" no Oracle types, it's stuck with the Java types.
    I'll try to see if I can repair it in some way... I'll eventually put it down as one of the gazillion one-time bugs that JDev shows daily.

  • DBSequence entity attribute type not available

    Hi OTN,
    I want to set an entity attribute type to DBSequence. But there's no such type in a drop-down list, only Java types.
    I tried to set the type in source manually but at runtime framework doesn't assign a negative integer to the attribute at Create operation.
    In simple test application DBSequence type is available and negative integers get assigned.
    I have found a proper thread (Re: DBSequence type no longer available for entity attributes? but the solution there is to recreate the whole datamodel. That isn't suitable for me.
    Maybe there is a better solution now?
    Jdeveloper 11.1.1.2, ADF BC
    Thanks.

    I logged Bug 9380578 - "SQL FLAVOUR" AND "TYPE MAP" CAN BE CHANGED IN "PROJECT PROPERTIES"
    (published in My Oracle Support).
    NB: in JDeveloper 9.x, it was possible to change the "SQL Dialect" (as it was called at that time), but the ADF BC objects and the custom code weren't changed;
    hence it was decided to gray out that choice after the Project creation.
    Regards,
    Didier.

  • Unable to rename objects

    In the OMWB, I am unable to rename objects. For example, in the Source Model under the Views folder, I have a view whose name is 100 characters long. I want to rename it to a 30 character name (something meaningful and not system generated.) The on-line help says to use the menu to click on Object > Rename, but that is grayed-out. The only available options are delete and parse. Both of those work, by the way.
    I just downloaded and installed OMWB last Thursday, so this is latest version of software. I also got the SQL Server 2000 plug-in, and it's installed correctly because I have been successful at migrating SQL Server 2000 to Oracle 10g.

    Hi Mark,
    You are quiet correct. The OMWB does not allow you to rename schema objects in the Source Model. The only objects which can be renamed manually are tablespaces and users in the Oracle Model.
    The workaround is to rename the view inside the Oracle Model PL/SQL editor. Then your view with get generated with the choosen name.
    I have found the following in the OMWB help
    "You can customize the Oracle Model by: Creating, deleting, and renaming objects "
    This will be logged as a bug as not all objects can be renamed. Could you provide a link to the on-line help document which states "click on Object > Rename" as I am having difficulty finding it, and I will add this to the bug report.
    Regards,
    Dermot.

  • [JDev 9.0.3/JClient] ViewObject/Entity attribute: Display Hint ignored?

    I have a small problem with the ability to hide ViewObject/Entity attributes in generated JClient Forms. Hope somebody might know a bit more of this issue.
    When setting the "Display Hint" to "Hide" on an attribute (of either the Entity or ViewObject), the appropriate JLabel and JTextField (or whatever Swing control is used to edit the value) will not be hidden, neither at designtime nor runtime.
    I'm not (yet ;)) an expert when it comes to JClient, but it seems to me that when I tell an attribute of a ViewObject to be hidden, I would expect that the visible property of the appropriate Swing controls be set to false. [ setVisible(false); ]
    In some other thread [ http://forums.oracle.com/forums/message.jsp?id=1342592 ] I read that the problem might be related to setting the control hint AFTER the JClient Form was generated. However, in that same thread someone else suggested that the control hint is processed at runtime. So, I've tried both approaches: first setting the control hint, then generating the JClient Form and first generating the JClient form, then setting the control hint. Neither approach worked.
    However, I did notice that after I set the control hints, the JClient Form wizard allowed me to hide 'hidden' attributes (which indeed were the attributes which I had specified to be hidden). So that worked ok. But even though I unchecked the hidden attributes box, the end result was still the same: a Form with all attributes on it. Running the project revealed that the controls were not hidden at runtime either.
    Am I pherhaps missing something? Or else could this be a bug?
    (As the subject indicates, I'm using JDeveloper 9.0.3 Production Release.)

    Alright, consider this scenario:
    I have a ViewObject with some attributes and in particular the attribute 'X'. In the database table column X is NOT NULL and so attribute X automatically is Mandatory. (This is correctly generated by the BC4J wizard.)
    Next, I manually specify that attribute X is invisible (Display Hint). This should cause any bound Swing controls to become invisible when simply browsing the database. However, when inserting a new record, all controls associated with attribute X should become visible (since X is a Mandatory attribute). After the new record has been committed, the appropriate Swing controls become invisible again.
    I suppose that this behavior could be the same for non Mandatory attributes, but that's (somewhat) less important.
    In case you want a 2nd form in which existing records can be edited (including column X), attribute X should nolonger be invisible. Then the Swing controls bound to attribute X should be removed from the browse form and the 'insert capabilities' of that particular form should be removed as well. The new 2nd should be used for editing/inserting, while the 1st one is for browsing only.
    I realise that this scenario may contain a couple of flaws, but it's to give you an indication of what I'd like to be able to do with the existing wizards and attribute editors.
    Enjoy :)

  • UIX  validation entity attribute on page multiple times via different views

    We have a situation where an ADF entity attribute appears in multiple views which appear on the same page. Each view selects a different entity row.
    When validation fails on one of these attributes, we register an AttrSetValException, as we want to take advantage of attribute level error messages.
    The problem is that the validation error message appears for all messageTextFields (for the same entity attribute) when only one of the fields failed validation. Also, the invalid value replaces all input fields even if the other ones were not changed by the user.
    I have tried using ex.setNeedsEntityToVOMapping(true) on the exception to no avail. It is as if the entity validation is unable to discriminate between view usages of an entity attribute.
    Steve Muench, I have read much of what you have written, but have not seen this particular scenerio. Any advice would be welcome.

    The issue is fixed. The reason of the problem that I missed overwriting of the validateParameters() in the custom controller class and the custom parameter was missed from the parameter list and it effected parameter validation error.

  • Transient Entity Attribute as an Assoc

    Can I use a transient Entity attribute as an Assoc?
    I created an Attribute at the Entity level that is not mapped to a table. The entity is called FirstEndEntity.
    Then I created an Association between FirstEndEntity and OtherEndEntity. I used the attribute that i just created at FirstEndEntity, (so its transient) and the OtherEndEntity attribute is mapped to DB table.
    When I tested the assoc, the wizard complains, saying he cannot resolve the attribute that i just created?
    Is there a way around this?

    yes, you're right, I've tested it in 12.1.3 and error message was displayed.
    it seems it's a bug(bad bug ) in both 11.1.1.7 and 12.1.2. and now what can I do? is there any way to display the the error message?
    Regards
    Habib

  • Entity Attribute Creation

    Can someone tell me how a table name entity attribute is created (a EO attribute reference to another entity). On some project this attribute is created automatically but some other project it is not created. Is there a flag I have to check when creating the entity.
    I am having problem on maintaning a system generated line number (works just like a PO line number example in the tutorial) but whenever I call the create method on the Line table it failed on referencing the master table (I get an IndexOutOfBound exception). When I check my entityImpl class, I do not have a reference to the mater table and if I create a reference manually it does not work. Please help..
    public PurchaseOrderHeaderEOImpl getPurchaseOrderHeaderEO()
    return (PurchaseOrderHeaderEOImpl)getAttributeInternal(PURCHASEORDERHEADEREO);
    protected static final int TABLENAMEEO

    Never mind. This is stupid. I had rename the entity name thus the entity atrribute name was incorrect...

  • Unable to rename the application

    hi all,
    i am trying to rename the application using application manager 6.5 and unable to do so popping out an error unable to rename the application since its being locked out an user. I had tried to find the locks by that user on the application and unable to find any thing locked by that user. how can i rename it??

    This used to happen a lot when there were linked objects on a database, but normally stopping and restarting the application was enough to at least see what was locked and be able to unlock them. I don't know if 6.5 is affected by this same issue or if you are hitting some other problem.
    Another issue I used to run in to occasionally: look for Read Only files in the application/database folder on the server, this could also "mimic" a locked object with no specific means of unlocking it through AppMan. Changing the file's attribute (preferrably while the application is stopped) should take care of this issue. How they end up like that is anybody's guess, I thought I had a clue but could not replicate it -- I tried to copy the file using Windows while it was locked...

  • Download Helper, even with paid converter upgrade, gives "Invalid Capture File" errors and will not record audio, with "File Creation Error - Unable to rename/copy audio file" Error.

    Download Helper Screen Capture worked to capture video if the default "no audio" option is active. But, no audio. The "speakers" or "microphone" audio options are confusing....the audio to be captured is from the video, so what do you choose? With either "speakers" or "microphone" selected, the captured file has poor audio and no video. Re-capture efforts (speakers) get "Invalid capture file error" and "File Creation error- Unable to rename/copy audio file"
    The paid upgrade of "Converter" doesn't work.
    Instructive documentation - not very good.
    Suggestions - Need time delay between initiation of "Record" and starting the video to be recorded.
    Could use timer tracking of the record process.
    Are there operating system limitations? (Have Windows XP Pro)

    That is an issue for the developer of that Download Helper.

  • In Mail on macbook pro. unable to rename the mailboxes because the "rename mailbox" option is not highlighted

    in Mail on macbook pro. unable to rename the mailboxes because the "rename mailbox" option is not highlighted.
    Thanks Jim...........

    Thank you SO much. Everything I had tried just expanded the size of each columns. Finding that slender area to the right of the message columns was tricky, but it worked. Wish that was more intuitive.
    Thanks again.

  • Display entity-attributes and global-attributes in the same screen

    Hi,
    I have a question about entity.
    Is it possible to display in the same screen, entity-attributes and global-attributes?
    thanks
    Rosalia

    Hi Rosalia,
    You can only display attributes from the current entity and the entity or entities that it is contained by (the parent entities).
    So if you had the following data model
    Global
    ..the person
    ...the income
    the person is contained by global.
    the income is contained by the person (which is contained by global).
    If you want to create a person-level question screen, you can display global attributes on that screen by using subsitution like %global_field_1%. You cannot, however, input global attributes on that screen (ONLY attributes belonging to the person)
    If you want to create an income-level question screen, you can display attributes from the person such as "tell us about %person_name%'s income..." as well as global attributes. Again, you cannot input person or global attributes on that screen (ONLY attributes belonging to the income)
    However it only works from child-to-parent containment relationships! You cannot have a global question screen which loops through the person instances and displays attributes from the person, or from the income out-of-the-box.
    We have managed to implement this using custom controls.
    You can map individual attributes back up to the parent level, and then display them,
    such as
    the first person's name = InstanceValueIf(the people, the person's name, the person's id = 1)
    the first person's name is now a global attribute and can be displayed on global question screens.
    Hope this helps!
    Ben

  • Unable to set volume attribute "min-autosize" for volume

    We have a TDP volume(destination), that is in snapmirrored state from 7Mode to cDOT.While trying to resize/increment the volume size by say 100g we get the following error. clusterName> volume size volumneName -vserver vserverName +100gWarning: Volume "vserver:volumeName" is a SnapMirror destination volume. The Filesystem Size for this volume is derived from its source and cannot be changed. The specified size will be used as the Volume Size.
    Do you want to continue? {y|n}: y Error setting size of volume "vserver:volumeName". Unable to set volume attribute "min-autosize" for volume
    "volumeName" on Vserver "vserverName". Reason: Volume 'volumenName' is a snapmirrored volume.
    vol size: Flexible volume 'volumeName' size limit set to 8022664413184.  Any idea ?  Volumes autosize mode is false.

    Hi    I am not trying to change any setting. I am trying to increase the size of the volume. I understand in case of a Snapmirrored volume the fs_fixed options is ON.But one can always increase the actual volume size using vol size command. Even if I increase the size on ONTAP on the file system side it will show as the size same as source. I understand that. So my question is why is it prevenitng me from increasing the size. RegardsAdai

  • Unable to create entity object in JDev 10.1.3(R12)

    Hi,
    I am Unable to create entity object in JDev 10.1.3(R12).Everything else works fine but not the EO creation.THe option for selecting table,synonym are disabled when I try to create new entity object.
    Please let me know if you any of you had the same problem and resolved it.
    Regards
    Sudhakar

    Sudhakar,
    The (R12) in the thread subject line leads me to believe that you are asking this question in the wrong forum. OA Framework has its own [url http://forums.oracle.com/forums/forum.jspa?forumID=210]forum that you should use.
    Best,
    John

Maybe you are looking for

  • Quiz Variable Not Tracking Text Box Responses

    Hello Everyone,      I am having a problem getting the Captivate Quiz variable to track correct responses from a text box. I am using Captivate 5 and trying to make a quiz where someone will enter in data that will be validated and branch off of thei

  • How to resolve variable at runtime in java

    I have problem in resolving variable at runtime. The value of hdstr is getting added into the v1 vector element whereas it should get resolve at runtime and value should get added into the vector. 0===>(String)vector[0].get(i),(String)vector[1].get(i

  • AR Aging report output format to excel

    Hi, Could any one please tell me that how to generate excel report based on standard AR aging report "Aging - 7 Buckets Report". Requirement is output of the Aging - 7 Buckets Report report should be able to upload into excel and should be able to fi

  • How to transfer user accounts from Active Directory to Open Directory

    Please help me , want to tranfer user accounts from Active Directory (Windows server 2012 ) to Open Directory (OS X server 10..2.9)

  • How to make div id properties drop down wider?

    When working with div's you can assign/create a div ID name to them. These are all remembered throught Dreamweaver so you could apply the same div ID to another div having the CSS properties already created quickly applied to this new div. My issue i