Design -   Engineer to Logical Model:  Nullpointer Exception

Hi
I imported in my physical data model as relation model using Import -> Data Dictionary. Craeted a subview (in relational model) and reverse engineered to logical model. Worked fine.
Now I created more subviews(ard 10) in relational model and when try to reverse engineer, get nothing on screen.
In <datamodeler>\datamodeler\log\datamodeler.log find the following exception:
2011-10-25 12:22:39,588 [main] INFO DataModelerAddin - Oracle SQL Developer Data Modeler 3.0.0.665
2011-10-25 12:25:20,344 [AWT-EventQueue-0] ERROR MDBAction - java.lang.NullPointerException
Any help would be appreciated.
Regards
P.S have approx 90 tables in relational model where I created subviews. Also have 2 more relational model with in same design with just tables import in them.

Philip
Thanks for your answer. I downloaded and installed 3.1 EA1 and for some weird reason I dont see Design menu as it was in DM3.0.
I have uploaded a snapshot (No Design Menu in DM 3.1) with menu and about. I tried uninstalling and reinstalling the 3.1 too with out any success.
Any pointers?
Regards

Similar Messages

  • Engineer to Logical Model in SQL Developer EA4 causes problems

    I'm working with SQL Developer 3.0 EA4 (Build MAIN-03.97)
    Unfortunately I fond out, that it would be impossible to use the function " Engineer to Logical Model" any more after I change the relational model. In datamodeler.log I got the error message line "[AWT-EventQueue-0] ERROR MDBAction - java.lang.NullPointerException" for each time I use the function "Engineer to Logical Model". I try it out with the sample model "sh_cre_all.sql" and with following steps:
    1) Import via DDL File – no problem
    2) Engineer to Logical Model – no problem
    3) Change some attributes in the relational model – no problem
    4) Again Engineer to Logical Model – no problem
    5) Save, Exit an Open the sample – no problem
    6) Again Step 3 and 4 – no problem
    7) Add a table via drag&drop from an oracle schema – no problem
    8) Save, Exit an Open the sample – no problem
    9) Engineer to Logical Model no longer possible!!!
    Bernd

    I have experienced similar problems with 'Engineer to Logical model'.
    The scenario was following:
    Creating Logical model using 'Engineer to Logical model' from existing Relational model.
    Modifying the Relational model and 'Engineer to Logical model' again. No exception occured but the Logical model wasn't updated accordingly.
    Removing all entities from the Logical model.
    Trying to 'Engineer to Logical model' again. No entities were created in the Logical model (even after few tries).
    So I got to situation where I was unable to generate a Logical model, which was quite frustrating.
    The workaround was to create new Data Modeller project and import to it from the original project - the 'Engineer to Logical model' worked again.

  • Engineer to Logical Model ODDM3

    I believe there is a bug in Engineer to Logical Model process. The first time you run that process it works perfect. If there are changes in the Relational model and then you try to use Engineer process again just Entities are added and the relations get lost.
    Have anyone had the same experience?
    Best Regards
    Ivan

    Hi Ivan,
    just Entities are added and the relations get lostWhat do you mean exactly - you have new foreign keys and no new relationships are created or existing relationships are deleted from logical model.
    Philip

  • Engineer to Logical Model is not working!

    Hello
    I have a model that I started by reverse engineering from the database and generated the ER Diagram by reverse engineering to Logical.
    After this I had to add some more tables to the relational model which I realized was already in the database and reverse engineered that into the model as well. Now, I am unable to Engineer to logical. Is this an expected behaviour as designed?
    Next I am going to try to reverse engineer from a relational model to a blank logical in a new data modeler design file. After that I will merge that change into current model. Please let me know if there is an easier way around this.
    Thanks & Regards
    Tiji

    The valid scripts in this post solved my problem.
    Re: Switch from v3EA4 to v3.0.0.4 production - Corrupted models?
    Script #1: Search for invalid mappings.
    Script #2: Clean up by removing invalid mappings.
    Script #3: Call Forward Engineer dialog with exception handling included to share with forum or debug.
    Script #4: Call Reverse Engineer dialog with exception handling included to share with forum or debug.
    After running Script #2, when we run Script #1, the log will be empty which is the expected result. Now my reverse engineering option does work from relational to logical.
    Thank you Phillip and DMBee for guiding me to the solution.
    Thanks & Regards
    Tiji
    Edited by: Tiji on Jun 14, 2011 8:31 AM

  • Engineer between Logical Model and Relational Model

    I am trying to update changes from one model to the other but there are dublicate entries generated instead of updates.
    The Logical Model was imported from Oracle Designer, the Relational Model was imported from data dictionary.
    Our rule is, that the name of Entities/Tables and Attribute/Columns are identical.
    So I changed the Naming Standard of the Logical Model in Preferences
    from Separator = Space to Separator = Character with char = Underline.
    If the entity is not existing, it is created with the correct name.
    If the entity exists, a new entity is created with Namev1.
    The same happens when I try to update changes in the other direction.
    How can I achieve that the existing entity (or table) is updated and not a new one is created?
    Or in other words, is there a way to link entities to corresponding tables?
    Walter

    Hi Walter,
    The Logical Model was imported from Oracle Designer, the Relational Model was imported from data dictionaryit's good to import entities and related tables from Designer repository together. Data Modeler will import the link between them and use that link in synchronization between logical and relational model. After that you can import details for physical model from database.
    If you don't have tables in Designer repository and keep the same names for entities, attributes, tables and columns then you can engineer logical model to relational and import details from database.
    Philip

  • DataModeler: Cannot engineer from logical model to relational model

    Hello,
    I have been trying for a couple of (very frustrating) hours to engineer a very simple logical model to its relational model. The toolbar button (and also menu option) that should do this just does nothing. No errors, no feedback, absolutely nothing!!! However I could engineer a relational model back to its logical model.
    I am using SQL Modeler version 1.5.1 build 525 on Windows Vista. I have closed and restarted the program many times but to no avail. Are there other factors (e.g. anti-virus, JDK etc) that could be responsible? But then why are other parts of the software working but not this one?
    Please kindly send your advice asap so I can proceed. I really like the Modeler and will not want to discard it.
    Thanks,
    Chiedu

    Hi Folks,
    I was able to figure out the likely cause of the problem. The version of Modeler (datamodeling-1.5.1-525-no-jre.zip) I used was downloaded without JRE. The current version of JRE installed on my computer is Java 6 Update 12 (build 1.6.0_12-b04). I suppose the two don't quite work very well together.
    I have now downloaded and installed another version (datamodeling-1.5.1-525.zip) with its own JRE and the problem was resolved.
    My guess is that the problem was due to the incompatibilities that may exist between Data Modeler and the various versions of JRE.
    Thanks.

  • Design Steps for logical modeling of Dimensional DataMart

    Hi
    begin to understand the process off building
    a Data warehouse off of an OLTP database. So thought I would put down the steps
    involved (as I understand them) for clarity. Dose this look right? is there anything im missing?
    Step 1 - Determine the dimensions
    create a
    business matrix that identifies the dimension and there relations with each
    other
    Step 2 - Detarmine the measures
    set out the numeric
    values required for analysis
    Step 3 - Determine the dimensions
    attributes
    identify elements that would be used to filter or group data
    for analysis
    Step 4 - Create a Data map
    map out source and
    destination columns between the OLTP source and each dimension and facts
    table
    Step 5 - Include a Date dimension
    almost every datamart
    has one this can be scripted
    any advice welcome.
    thanks

    Hi Slihp!
    Beside Leo N's answer which is correct, I would modify step 4 a bit to add some general info on how the data will be cleansed, if needed, during the mapping process (usually done with the help of SSIS).
    And since you have received three useful links, I will add another one which will be of help to you: Delivering
    Business Intelligence with Microsoft SQL Server 2012 - a very good beginners book which walks you through all the steps of building a data warehouse.
    Regards and have fun :),
    Razvan
    Per aspera ad astra!
    journeyintobi.com

  • Creating Multiple Logical Models?

    My boss wants me to model how all his APEX webbased applications interact, how they share data, by using Oracle's DataModeler software in SQL Developer environment.
    So, I did a data import of the similarly named tables for each application, and each one is now its own RELATIONAL MODEL. These are just displaying as yellow entities (tables) with their corresponding column and datatypes inside.
    I know to rightclick on the model in the browser to select ENGINEER TO LOGICAL MODEL, but I need to display a logical model for EACH applications related tables, but when I 'engineer to logical model' for each of the apps they all just keep adding a SINGLE logical model, when I want them to have their OWN logical model.
    tl;dr: How do I create simplified logical models for seperate apps

    A logical data model will help you (and other stakeholders) understand the business and data requirements (in other words, the information needs) from a business perspective, irrespective of DBMS technology. An LDM is an analysis artefact. This is great to validate your understanding and confirm with business analysts and business reps, as well as complementing with other analysis artefacts like process models. Also very helpful to see how different systems interact, and where there is commonality and/or redundancy.
    A physical data model (i.e., relational), a.k.a., database design, defines and illustrates the structure of the data as they will be implemented in a database. A PDM is a design artefact, derived or transformed from the logical data model. Developers and DBAs will be your main audience.
    Patrick

  • Sql datamodeler: Engineer to relational model: General Options

    Hello
    When you engineer your logical model to a relational model you get a wizard. In lower part of this wizard byou have several tabs, one of the tabs is called general.
    On this general tab you have check box: Apply Name Translation
    The corresponding help text:
    Apply Name Translation: Controls whether formal names are translated to abbreviated names when the logical model is forward engineered to a relational model, and whether abbreviated names are translated to format names when a relational model is reverse engineered to the logical model. Name translation is applied only for valid names. In addition, translations between the words entity/attribute/key and table/column/index are performed.
    Does anybody have a clue what is meant here?
    Regards Erik

    Erik,
    you have to create glossary (tools>Glossary editor) with words permitted for usage in names in logical model. For each word you can define abbreviation that will be used in transformation process.
    Example:
    Employee - EMP
    Salary - SAL
    Attribute "Employee Salary" will be transformed to column "EMP_SAL".
    You can define preferred abbreviation for entities and attributes and it can be used instead of glossary definitions.
    You also have to set your glossary in "Tools>General Options>Naming standards>Glossary"
    Best regards,
    Philip

  • Unable to generate Logical Model Diagrams through Reverse Engineering

    Hi,
    I am currently using SQL Developer Data Modeler Version-3.0.04.
    I have generated Logical Model Diagrams from Relational Model Diagrams through Reverse Engineering (Done by pressing an" engineer to Logical Model button" on top panel of sql developer) .I saved the DMD file (source file) once i had done generating the logical diagrams.Now if i reopen the DMD and open the logical diagram again I found that most of the tables had lost their relationships.So i tried to regenerate the Logical Model Diagram again from the same Relational Diagram but it is not being generated unless i create a new Relational Diagram.Is there a way to generate multiple Logical Diagrams for the same Relational Diagram rather than creating a new one for each Logical Diagram to be created.
    Regards .
    Thanks in advance.

    Any comments on this issue?. Please let us know.

  • Importing multiple column names to Logical Model

    I have approximately 2,000 column names to import into a new logical model and create my glossary. The names are in currently in .xls format. Is there an easy/efficient way to do this or must I enter each into the logical model attributes? Maybe a way to cut/paste multiple columns into the logical model?
    Thanks...

    Hi,
    it's not clear what are you trying to achieve:
    I have approximately 2,000 column names to import into a new logical model are you trying to create attributes in logical model - you also need entities that will contain these attributes.
    and create my glossary. The names are in currently in .xls format.or you want to create glossary from your file. You need to transform your file in following format and import it in glossary editor using ERwin txt format:
    COUNTRY,CTRY,
    IDENTIFICATION,ID,
    REGION,REG,
    DEPARTMENT,DEPT,
    Maybe a way to cut/paste multiple columns into the logical model?if you have tables with columns in relational model then you can use "Engineer to logical model" functionality to get entities and attributes in logical model.
    Philip

  • Setting to Select Elements on a Logical Model and Have Them Pre-selected on Engineer Page

    Is there a setting somewhere that would allow me to select objects on a logical model or in the tree view and have them pre-selected in the Engineer to Relational Model window?  Coming from the Designer world  I keep selecting entities in my model and am surprised they are not already selected when I click the engineer icon.  If not I will submit this as an enhancement.  Anyone else interested in this?
    Marcus Bacon

    It is also necessary to click on the check box twice to select/de-select an item.

  • Logical model fwd engineer to relational model.  Missing FK relationships

    We are experiencing missing relationships in the relational model when engineering from logical model to the relational model. The logical model objects have properly defined primary keys defined. We are using SQL Data Modeler v3.1.700. Any suggestions on how to engineering these relationships without deleting the objects from the relational model.
    Thanks,
    Ed

    Hi Ed,
    I presume you had some relationships in the Logical Model that you were expecting to be engineered to Foreign Key relationships in the Relational Model.
    Please can you provide more detail to help resolve your problem. For example:
    Was the problem on an initial engineer from the logical model? Or on a re-engineer?
    Are you using Entity subtyping in your Logical Model?
    Are there any relevant error messages in the log file? (This is normally file datamodeler.log in folder datamodeler\datamodeler\log.)
    David

  • How to resolve corruption in logical model?

    Hello
    I have a logical model created in SDDM 3.1.2.704.  I have engineered to a relational model successfully in the past, but recently when I tried to engineer logical -> relational nothing happens.  I get the following entry in the log file:
    [AWT-EventQueue-0] ERROR MDBAction - java.lang.NullPointerException
    Looking at some other discussions, I used the transformation script described here
         3.1.3.709: How to Verify and Fix a Possibly Corrupted Design?
    This didn't fix my problem, but the output file (generated when I press the Engineer to Relational model button) shows the following exception:
    java.lang.NullPointerException
    at oracle.dbtools.crest.model.design.engineering.EngCOPropertiesComparator.decodeDataTypeKindToString(Unknown Source)
    at oracle.dbtools.crest.model.design.engineering.EngCOPropertiesComparator.processDataTypeAndUse(Unknown Source)
    at oracle.dbtools.crest.model.design.engineering.EngCOPropertiesComparator.initPropertiesList(Unknown Source)
    at oracle.dbtools.crest.model.design.engineering.AttributeColumnComparator.initPropertiesList(Unknown Source)
    at oracle.dbtools.crest.model.design.engineering.AttributeColumnComparator.<init>(Unknown Source)
    at oracle.dbtools.crest.model.design.engineering.AttributeColumnComparator.<init>(Unknown Source)
    at oracle.dbtools.crest.model.design.engineering.FE_LogicalToRelational.addAttribute(Unknown Source)
    at oracle.dbtools.crest.model.design.engineering.FE_LogicalToRelational.addEntityDetails(Unknown Source)
    at oracle.dbtools.crest.model.design.engineering.FE_LogicalToRelational.setEditableStatus(Unknown Source)
    at oracle.dbtools.crest.model.design.engineering.FE_LogicalToRelational.addEntity(Unknown Source)
    at oracle.dbtools.crest.model.design.engineering.FE_LogicalToRelational.addFromLogicalModel(Unknown Source)
    at oracle.dbtools.crest.model.design.engineering.FE_LogicalToRelational.<init>(Unknown Source)
    at oracle.dbtools.crest.swingui.engineeringcompare.EngineeringCompareDialog.<init>(Unknown Source)
    at oracle.dbtools.crest.swingui.logical.ControllerLogical$FWDEngineer.doActionPerformed(Unknown Source)
    at oracle.dbtools.crest.swingui.MDBAction$ActionInvoker.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
    at java.awt.EventQueue.access$000(EventQueue.java:85)
    at java.awt.EventQueue$1.run(EventQueue.java:603)
    at java.awt.EventQueue$1.run(EventQueue.java:601)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    I have tried SDDM 3.3.0.747, same result.
    I have tried removing entities from the model, 1 at a time, but the problems continues (even when the model is reduced to no entities at all!)
    I have tried exporting the model and importing it into an empty design.  The import fails "Unable to generate design" and produces the following exception in the datamodeler.log file:
    [Thread-19] ERROR ODExtractionController - Error Generate Design: Untitled_1
    java.lang.NullPointerException
    at oracle.dbtools.crest.model.design.engineering.EngCOPropertiesComparator.decodeDataTypeKindToString(Unknown Source)
    at oracle.dbtools.crest.model.design.engineering.EngCOPropertiesComparator.processDataTypeAndUse(Unknown Source)
    at oracle.dbtools.crest.model.design.compare.COPropertiesComparator.initPropertiesList(Unknown Source)
    at oracle.dbtools.crest.model.design.compare.cwddesign.AttributeComparator.initPropertiesList(Unknown Source)
    at oracle.dbtools.crest.model.design.compare.cwddesign.AttributeComparator.<init>(Unknown Source)
    at oracle.dbtools.crest.model.design.compare.cwddesign.CompareCWDDesigns.addAttribute(Unknown Source)
    at oracle.dbtools.crest.model.design.compare.cwddesign.CompareCWDDesigns.addEntityDetails(Unknown Source)
    at oracle.dbtools.crest.model.design.compare.cwddesign.CompareCWDDesigns.addEntity(Unknown Source)
    at oracle.dbtools.crest.model.design.compare.cwddesign.CompareCWDDesigns.initSourceDesign(Unknown Source)
    at oracle.dbtools.crest.model.design.compare.cwddesign.CompareCWDDesigns.<init>(Unknown Source)
    at oracle.dbtools.crest.swingui.compare.cwddesign.CompareCWDDesignsDialog.<init>(Unknown Source)
    at oracle.dbtools.crest.imports.cwddesigner.CWDExtractionController$Runner2.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:662)
    Any help greatly appreciated.  With over 100 entities and 200 relationships I really don't want to have to recreate this.
    Thanks in advance.

    Hi,
    but the problems continues (even when the model is reduced to no entities at all!)
    The error you reported (in engineering and import) cannot be reached if there are no entities and attributes - it's a specific error probably related to usage of distinct types that are removed from design.
    You can use search functionality in order to find attributes/columns (logical/relational model) with incorrect data type definition based on distinct type.
    And it's better to move to Data Modeler 4.0 (833).
    So what to search (example is on logical model - it's the same for relational model - column):
    1) Activate search window (CTRL-F when logical diagram is active, or Find icon), switch to advanced mode
    2) for "Object type" Attribute:
    - check "Data Type kind" line and put DT as search text
    - check "Distinct type" line, don't put search text - it'll search for attributes without distinct type
    - change the operand for expression from OR to AND
    3) press "Find" button
    If you find some attributes, then you need to decide what to do with them - to set data type or to delete them.
    The same for columns in relational model.
    Philip

  • Engineering from relational model to logical model duplicated views

    Hi all,
    Several times, also in different projects, when I engineer from relational model to the logical model, the comparator tool show me de differences.
    In these differences there are no view differences, but when I finish the process everything goes right except that in the logical model under views, I see all the views duplicated with [view_name]v1.
    I've tried not selecting the view checkbox, in the compare dialog,but I get duplicated views also.
    I don't know fir sue if this happens with table also.
    What can I do to solve this problem? Is this a bug?
    Edited by: morfeo8marc on 04-abr-2012 2:02

    The problem is fixed in DM 3.1.1.703 and it's published. You can run following script and save design in order to get mappings for views recovered.
    Philip
    lmodel = model.getDesign().getLogicalDesign();
    rmodels = model.getDesign().getRelationalDesigns().toArray();
    for (var i = 0; i < rmodels.length; i++) {
    rm = rmodels;
    eviews = lmodel.getEntityViewSet().toArray();
    for (var k = 0; k < eviews.length; k++) {
    ev = eviews[k];
    tv = rm.getTableViewSet().getObjectByID(ev.getGeneratorID());
    if(tv == null){
    tv = rm.getTableViewSet().getObjectGeneratedBy(ev);
    if(tv != null){
    rm.getRMExtendedMap().createMapping(ev,tv);

Maybe you are looking for

  • Creative mp3 reliabili

    do all these issues on this message board not tell you something? i have had 2 creative zen 4gb mp3 players and both have gone wrong in a couple of weeks, very little actual direct support too. i can definitly say that i wont be getting another one!

  • To increase font size in List Output in Report

    Hi, I have to increase the font size of my report's list output. I dont have to print it. So, please dont suggest print control. Only it needs to be displayed as an output..... Thanks.

  • Photoshop interpreting monitor colors incorrectly

    My issue is with my second monitor and the colors of  Photoshop files.  I am using a two monitor setup with my macbook laptop. I process a Raw file using Lightroom 2.  I export a Jpeg and it  looks perfect when I open it in Preview, matching the Ligh

  • Ridiculously long installation time for CS6?

    I'm downloading the CS6 Master Collection through the University of Maryland software center website. I downloaded all the different parts required for installing, and now the installation time remaining says 20 hours and it's still going up. I've cl

  • Cox Mail in Entourage

    I have recently used Entourage to access my cox email account, and I can receive all my mail. However, when I send mail, it doesn't actually send it. It makes weird beeping noises, and never sends?? How can I send my emails?