Refactor Rename in TopLink project

hi
If I try to use "Refactor > Rename" on a mapped Java class in a TopLink project, I can enter the new class name, but JDeveloper does not rename the class.
It seems like nothing happens and I don't get an error message.
(If I use the "Preview" option, my class is also found in TopLink meta-data, but the "play" button still does not rename my class.)
- my question:
Is this known or intended behaviour?
(using JDeveloper 10.1.3.1.0.3984)
many thanks
Jan Vervecken

Thanks for you reply Shay.
Bug 5683707 is available on Metalink:
"REFACTOR/RENAME TOPLINK CLASSES DOESN'T WORK"
regards
Jan

Similar Messages

  • Refactor rename method stopped working - 10.1.3.1.0

    Selected Refactor -> Rename to rename a method. The preview log shows up, but when i click on the green arrow to "do refactoring", nothing happens. I have been using 10.1.3.1.0 since it was released but I just ran into this problem.
    I re-installed jdeveloper 10.1.3.1.0 but I still have the same problem.

    Frank,
    I thought that my JDev install had become unstable and that is why I re-installed. However that is not the case.
    I tried to isolate the problem a little further. The refactor/rename method works in the other projects in my application. In the project that I have a problem, I tried renaming methods in other classes and this worked.
    What is different about the class that I have a problem with is that:
    1) it is an abstract class (say abstractFoo)
    2) I am renaming a method that is not abstract in abstractFoo
    3) Foo is a subclass of abstractFoo
    4) I have a JUnit test FooTest that contains a few anonymous inner classes (that subclass Foo) and override the method to be renamed.
    The preview window shows the changes to be made in abstractFoo & FooTest but does nothing.
    Have you tested this scenario out?

  • Unexpected severe error in Jdeveloper opening a toplink project

    Folks,
    I'm getting the following errors trying to open a Toplink project on Jdev 11.1.1.2
    Could you please advice ?
    Thanks,
    Gustavo.
    oracle.javatools.db:Jun 25, 2010 11:44:38 AM oracle.javatools.db.marshal.DBObjectSAXHelper logConversionError
    WARNING: couldn't parse XML element: oracle.javatools.db.TemporaryObjectID
    oracle.javatools.db:Jun 25, 2010 11:44:38 AM oracle.javatools.db.marshal.DBObjectSAXHelper logConversionError
    WARNING: couldn't parse XML element: oracle.javatools.db.TemporaryObjectID
    An error was detected while opening a persistence file.
    java.lang.NullPointerException
    o.toplink.workbench.addin.mappings.spi.db.JDeveloperTable.getForeignKeys(JDeveloperTable.java:60)
    o.toplink.workbench.mappingsmodel.db.MWTable.refreshReferences(MWTable.java:219)
    o.toplink.workbench.mappingsmodel.db.MWDatabase.refreshTables(MWDatabase.java:1182)
    o.toplink.workbench.mappingsmodel.db.MWDatabase.refreshRelations(MWDatabase.java:1142)
    o.toplink.workbench.mappingsmodel.db.MWDatabase.refresh(MWDatabase.java:1074)
    o.toplink.workbench.mappingsmodel.sessions.MWSessionsProject.initializeDatabases(MWSessionsProject.java:501)
    o.toplink.workbench.mappingsmodel.sessions.MWSessionsProject.initialize(MWSessionsProject.java:487)
    o.toplink.workbench.mappingsmodel.sessions.MWSessionsProject.<init>(MWSessionsProject.java:153)
    o.toplink.workbench.addin.application.SessionsProjectContext.buildTopLinkSessionsProject(SessionsProjectContext.java:63)
    o.toplink.workbench.addin.application.SessionsProjectContext.initialize(SessionsProjectContext.java:101)
    o.toplink.workbench.addin.application.AbstractTopLinkContext.<init>(AbstractTopLinkContext.java:51)
    o.toplink.workbench.addin.application.SessionsProjectContext.<init>(SessionsProjectContext.java:45)
    o.toplink.workbench.addin.application.ContextManager.openTopLinkSessions(ContextManager.java:1378)
    o.toplink.workbench.addin.application.ContextManager.openTopLinkContexts(ContextManager.java:1327)
    o.toplink.workbench.addin.TopLinkProjectChangeListener$TopLinkContextWorker.run(TopLinkProjectChangeListener.java:370)
    j.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    j.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    j.util.concurrent.FutureTask.run(FutureTask.java:138)
    j.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    j.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    j.lang.Thread.run(Thread.java:619)
    An error was detected while opening a persistence file.
    java.lang.NullPointerException
    o.toplink.workbench.addin.mappings.spi.db.JDeveloperTable.getForeignKeys(JDeveloperTable.java:60)
    o.toplink.workbench.mappingsmodel.db.MWTable.refreshReferences(MWTable.java:219)
    o.toplink.workbench.mappingsmodel.db.MWDatabase.refreshTables(MWDatabase.java:1182)
    o.toplink.workbench.mappingsmodel.db.MWDatabase.refreshRelations(MWDatabase.java:1142)
    o.toplink.workbench.mappingsmodel.db.MWDatabase.refresh(MWDatabase.java:1074)
    o.toplink.workbench.mappingsmodel.jpa.MWPersistenceProject.initializeDatabases(MWPersistenceProject.java:97)
    o.toplink.workbench.mappingsmodel.jpa.MWPersistenceProject.<init>(MWPersistenceProject.java:70)
    o.toplink.workbench.addin.application.PersistenceProjectContext.initialize(PersistenceProjectContext.java:75)
    o.toplink.workbench.addin.application.AbstractTopLinkContext.<init>(AbstractTopLinkContext.java:51)
    o.toplink.workbench.addin.application.PersistenceProjectContext.<init>(PersistenceProjectContext.java:43)
    o.toplink.workbench.addin.application.ContextManager.openPersistence(ContextManager.java:1188)
    o.toplink.workbench.addin.application.ContextManager.openTopLinkContexts(ContextManager.java:1331)
    o.toplink.workbench.addin.TopLinkProjectChangeListener$TopLinkContextWorker.run(TopLinkProjectChangeListener.java:370)
    j.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    j.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    j.util.concurrent.FutureTask.run(FutureTask.java:138)
    j.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    j.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    j.lang.Thread.run(Thread.java:619)
    An error was detected while opening a persistence file.
    java.lang.NullPointerException
    o.toplink.workbench.addin.mappings.spi.db.JDeveloperTable.getForeignKeys(JDeveloperTable.java:60)
    o.toplink.workbench.mappingsmodel.db.MWTable.refreshReferences(MWTable.java:219)
    o.toplink.workbench.mappingsmodel.db.MWDatabase.refreshTables(MWDatabase.java:1182)
    o.toplink.workbench.mappingsmodel.db.MWDatabase.refreshRelations(MWDatabase.java:1142)
    o.toplink.workbench.mappingsmodel.db.MWDatabase.refresh(MWDatabase.java:1074)
    o.toplink.workbench.mappingsmodel.sessions.MWSessionsProject.initializeDatabases(MWSessionsProject.java:501)
    o.toplink.workbench.mappingsmodel.sessions.MWSessionsProject.initialize(MWSessionsProject.java:487)
    o.toplink.workbench.mappingsmodel.sessions.MWSessionsProject.<init>(MWSessionsProject.java:153)
    o.toplink.workbench.addin.application.SessionsProjectContext.buildTopLinkSessionsProject(SessionsProjectContext.java:63)
    o.toplink.workbench.addin.application.SessionsProjectContext.initialize(SessionsProjectContext.java:101)
    o.toplink.workbench.addin.application.AbstractTopLinkContext.<init>(AbstractTopLinkContext.java:51)
    o.toplink.workbench.addin.application.SessionsProjectContext.<init>(SessionsProjectContext.java:45)
    o.toplink.workbench.addin.application.ContextManager.openTopLinkSessions(ContextManager.java:1378)
    o.toplink.workbench.addin.application.ContextManager.openTopLinkContexts(ContextManager.java:1327)
    o.toplink.workbench.addin.TopLinkProjectChangeListener$TopLinkContextWorker.run(TopLinkProjectChangeListener.java:370)
    j.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    j.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    j.util.concurrent.FutureTask.run(FutureTask.java:138)
    j.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    j.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    j.lang.Thread.run(Thread.java:619)
    oracle.jps.credstore:Jun 25, 2010 11:44:41 AM oracle.security.jps.internal.credstore.ssp.CsfWalletManager openWallet
    WARNING: Opening of wallet based credential store failed. Reason java.io.IOException: PKI-02002: Unable to open the wallet. Check password.
    oracle.adf.share.jndi.ReferenceStoreHelper:Jun 25, 2010 11:44:48 AM oracle.adf.share.jndi.ReferenceStoreHelper getReferencesMapEx
    WARNING: Incomplete connection reference object for connection:dnd

    Stantonc
    There is an Adobe document that deals with this specific error message.
    Have you seen it and tried it?
    http://helpx.adobe.com/premiere-elements/kb/keyframe-h-142-error-opening.html
    Please check it out and then let us know if that worked for you.
    Thanks.
    ATR

  • How to rename the existing project in NetWeaver

    Hi All,
    Please let me know the process of how to rename the existing project in NetWeaver.

    Hi,
        If you want to rename Development Component (DC) project, here is the procedure..
    How to rename local Development Component Projects in Netweaver Developer Studio
    Regards,
    Uday.

  • [svn:fx-trunk] 8057: Some errant renames in the project properties files.

    Revision: 8057
    Author:   [email protected]
    Date:     2009-06-22 12:27:26 -0700 (Mon, 22 Jun 2009)
    Log Message:
    Some errant renames in the project properties files.
    Modified Paths:
        flex/sdk/trunk/development/eclipse/flex/airframework/.actionScriptProperties
        flex/sdk/trunk/development/eclipse/flex/flash-integration/.project
        flex/sdk/trunk/development/eclipse/flex/sparkTest/.actionScriptProperties

    Thats good news.

  • Import old TOPLink project

    Hi
    Can you please tell me how do I import or migrate my old TOPLink project (TOPLink 2.0) to 9.0.3? I don't see any documentaion anywhere nor any options in 9.0.3 work bench.
    Thanks
    V Prakash

    Please email me directly [email protected]
    - Don

  • Refactor rename issues  -- bug?

    Using refactor rename to change the name of a protected class variable from foo to bar.
    After making the change, my pending changes tab shows I have 18 updates classes. Every reference to a variable named foo has been changed to bar. I expected the change to only be in this class and any sub-classes. Not every class that has a variable with the same name!!!!!! When the name is a commonly used name, this can wreck HAVOC. I don;t have the time nor the patience to undo this change to 17 unrelated files to the ONE I was editing.

    Sorry, I got distracted and forgot to say that search in comments was NOT selected. My bad. So I still believe this is an issue. --Keith                                                                                                                                                                                                                                                                               

  • Renaming/updating iMovie projects

    Now that my iMovie collection is expanding, I'm trying to rename them.
    With projects created in iMovie 6 (packaged), when I change the project name, only the package name changes. Is there an advantage to changing the names of the components inside the package?
    With projects created in older versions (in folder), I have a number of files in the folder (varies depending on which version of iMovie was first used). Which ones are safe to rename/delete?
    movieName
    movieName.iMovie2Project
    movieName.mov
    movieName~.
    Shared Movies > GarageBand > movieName.mov
    Shared Movies > iDVD > movieName.mov
    Thanks,
    Eric

    I have renamed the iMovie project package contents occasionally with no ill effects.
    But this has the potential to ruin the project so be careful and make good backups and run some tests before going that route!!
    http://www.sjoki.uta.fi/~shmhav/iMovieHD_6bugs.html#package
    I'd advice to keep your fingers away from the /Media folder although iMovie 5-6 seem to be quite tolerant when messing in there, too. I usually let iMovie delete stuff (=media clips) but I very often add .dv files there as a shortcut:
    http://www.sjoki.uta.fi/~shmhav/iMovieHD_6_bugs.html#quick_DVimport
    I have sometimes renamed the project package, the *.iMovieProj, *~.iMovieProj and the /Shared Movies/iDVD/*.mov in the same way. iMovie automatically re-creates another renamed *.mov reference so the old one can optionally be left there or be completely deleted -- a brand new .mov is created when iMovie saves the project.
    But be careful and have good backups!

  • Cool refactoring going on in Project Siena

    This is just a shout out to the Project Siena team - Refactoring a Screen Name change is awesome! :)
    This is one of those things that can break a project quickly - an object (like a screen) is renamed.  Typically when one changes a name of an object it means lot of time looking through code to make the change.  Easy to miss one here or there when
    you have a lot of code.
    In Project Siena, however, when you change your screen name, *every* time it's referenced in code it's changed.
    Wow!  What a time saver and a way of reducing "why isn't this working?!?"
    It's another "fun" addition that makes working with Siena even more enjoyable.
    Thor

    Thanks for the feedback, Thor :-)
    Robin

  • Multiple Toplink project modules

    Hi
    We have been using Toplink for more than 4 years and have developed a single, extensive domain model. However, this domain model is used in multiple application projects which is increasingly hindering development speed. We would like, no need to cut up this single domain model into smaller separate projects and, in the same time, still have a single runtime model so that class associations keep working across these different projects.
    I have seen the post by Allessandro Rizzi (Importing projects on the topic of importing projects, and from that post I gather that it is doable, but a lot of hassle.
    Since JPA seems to support exactly the scenario I have in mind, I could consider moving to JPA but you will understand that this is an enormous undertaking on a domain model that is 4 years old and contains over 500 classes.
    So I would like to be able to keep using the Toplink API (instead of the JPA) *but* with some of the features that are in the JPA like the very nice packaging options and the runtime merging of different 'persistence units'.
    Is this possible, now or in the future?

    So I would like to be able to keep using the Toplink
    API (instead of the JPA) *but* with some of
    the features that are in the JPA like the very nice
    packaging options and the runtime merging of
    different 'persistence units'.JPA does help your situation in that you can either place mappings on Entities directly as annotations or 'chunk' the mappings for subsets of Entities into mapping XML files. You wouldn't be merging persistence units but the persistence unit would be 'merging' the annotations and the mapping files.
    Is this possible, now or in the future?Yes, you can use the TopLink API with JPA defined Entities. I'd blogged about doing this in TopLink Essentials but the same is true for TopLink 11 and EclipseLink.
    --Shaun                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Rebuilding  TopLink project

    I just started working for a company that uses the TopLink workbench. I should also note that I am fairly new using TopLink but have a little experience with other O/R mapping tools.
    The person that I replaced took it upon himself to modify the files that TopLink creates by hand. We can no longer use the workbench to do future edits, which is the problem I’m trying to solve. I was wondering if anyone knew of a way to re-build the TopLink MWP file with out having to do the mappings again.
    In other words, is there a way to reverse engineer (in a matter of speaking) the MWP file using the other files that I have?

    If you have an old version of the MWP file and its associated XML files (for the descriptors, classes, and tables) [possibly in your SCM repository?], you could regenerate the deployment artifact (whether it's the Project source code or the deployment XML file), use something like BeyondCompare to see what was changed by hand, and make the necessary modifications via the Workbench. If you do not an old version of the MWP, you will need to rebuild the project manually, since there is no support for building an MWP from a deployment artifact. This is because the deployment artifacts hold only a subset of the design information contained in the MWP and related files.

  • Receiving CS0246 error after renaming solution and project.

    I am receiving this error...
    Server Error in '/RCIS.Mapping.WebApplications' Application.
    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 
    Compiler Error Message: CS0246: The type or namespace name 'MappingServicesWebApplications' could not be found (are you missing a using directive or an assembly reference?)
    Source Error:
    Line 26: using System.Web.Optimization;
    Line 27: using System.Web.Routing;
    Line 28: using MappingServicesWebApplications;
    Line 29:
    Line 30:
    Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rcis.mapping.webapplications\4e36dc23\d07c1fd0\App_Web_index.cshtml.a8d08dba.0ryezucn.0.cs    Line: 28 
    Show Detailed Compiler Output:
    Show Complete Compilation Source:
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34237
     after renaming the Solution and project from "MappingServicesWebApplications" to "RCIS.Mapping.WebApplications"
    I've searched the entire solution and can not find the text "MappingServicesWebApplications"
    anywhere...the solution builds fine, this is only happening at runtime...I'm not sure where to look for what is generating this text?

    Hi T junky,
    Glad to see this issue has been resolved and thank you for sharing your solutions here.It will be very beneficial for other community members who
    have similar questions.
    Have a nice day,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I rename my DVD project?

    I have a project in the works and did not realize I would only get one chance to name it. How do I go back and rename it? Is it too late?

    Click on the icon in outline view then change the name
    The silver section in the blue section upper left and then purple section lower right in the link below
    Outline

  • Toplink project using sessions.xml

    Hi All
    Can i avoid using the Toplink sessions.xml. i.e. can i some how run my application with out using the sessions.xml, passing the login information and toplink java project class as runtime parameters.
    I use Toplink 10.0.3 with Oracle database.
    Thanks in advance,

    You do not have to use sessions.xml. It is provided as a convenience mechanism for configuring the session through the SessionManager. It includes configuration beyond what is in the project definition for some of the runtime/deployment details:
    - different login (if required)
    - external transaction controller
    - logging
    - session event listeners
    - cache synchronization
    All of these can alternatively be configured in you application code and the project can be generated from the Mapping Workbench (XML or Java Class) or hand written.
    Project project = XMLProjectReader.read("TS_ExampleProject.xml", Thread.currentThread().getContextClassLoader());
    Server server = project.createServerSession();
    server.logMessages();
    // configure connection pool usage
    // configure external tx controller
    server.login();
    Doug

  • Refactor - Renaming Problem Auto Code Generation

    After renaming the java source files (backing beans) to upper case letters (ex. from console.java to Console.java),
    JSC is not able to instantiate this class anymore, because the managed-bean.xml is altered automatically.
    The next problem is the jsp-file. JSC produces some useless code which points to the new (by JSC) created managed beans (old ones still exist)
    example (jsp):
    </ui:body>
    </ui:html>
    </ui:page>
    </f:view>
    <ui:body binding="#{request$console.body1}" id="body1"/>
    (managed-beans.xml)
    <managed-bean>
    <managed-bean-name>request$console</managed-bean-name>
    I�m not able to delete this generated code, because after saving and reloading the jsp-file the inserted code is still there.
    In the projects view my java source files are shown in small letters, even if the files are in upper case on the file system (explorer).
    I�m using Studio Creator 2 Update 1 (Build 060915)
    The project can only be deployed (exporting *.war in JSC) and executed when i change the file attributes to read-only after editing them with a standard text editor.
    Any suggestions?

    Hi Naveen,
    I found these two fms's which would enable automatic item code generation. See if it helps you.
    declare @temp as char(20)
    IF $[OITM.ItmsGrpCod] = 101
    BEGIN
    set @temp=(select isnull(max(right(ItemCode,4)),0) + 1 from OITM where (ItmsGrpCod= 101) and (len(ItemCode)=7))
    set @temp='DRM'+isnull(replicate(0,4-len(@temp)),'')+@temp
    select cast(@temp as char(20))
    END
    ELSE IF $[OITM.ItmsGrpCod] = 102
    BEGIN
    set @temp=(select isnull(max(right(ItemCode,4)),0) + 1 from OITM where (ItmsGrpCod= 102) and (len(ItemCode)=7))
    set @temp='PKG'+isnull(replicate(0,4-len(@temp)),'')+@temp
    select cast(@temp as char(20))
    END
    And:
    DECLARE
    @NUM AS CHAR(7)
    SET @NUM =
    (SELECT RIGHT(MAX(CardCode), 7) FROM OITM)
    SET @NUM = @NUM + 1
    BEGIN
    IF @NUM IS NULL OR @NUM = 0
    BEGIN
    SELECT 'I0000001'
    END
    IF @NUM < 10
    BEGIN
    SELECT 'I000000' + @NUM
    END
    IF @NUM > 9 AND @NUM < 100
    BEGIN
    SELECT 'I00000' + @NUM
    END
    ----COMPLETE THE CODE
    END
    Thanks,
    Joseph

Maybe you are looking for

  • How can I create better menu?

    This part of my website been having some breakon frames after working in dreamweaver http://bit.ly/10vFYx4

  • PR Doc?

    While creating a PR, the end user wants to send one attachment(for e.g a 3d diagram) as attachment? How can i attach it in PR(ME51N)? Thanks & Regards Vineeth

  • Print PDF without embedded fonts (for USPTO)

    I need to print PDFs that can be uploaded to the US PTO, and for them to be compatible they must not have any embedded fonts. I am using the Acrobat XI Distiller with the configuration file downloaded directly from the PTO website http://www.uspto.go

  • App disappeared; store says installed

    Hello, I purchased an app about a month ago, and recently the icon has magically disappeared from my phone. When I go to the app store to download it again, the button is grayed out with "installed". I tried to sync my phone with the computer again,

  • Wrong mobile number not in my profile

    My Husband has advised me that his mobile number is showing up against my contact in his Skype.  It is showing up as 'call mobile 2'.  I have gone over my profile and cannot find it.  I removed my correct mobile number from my Skype profile but that