[OS-JIRA] Created: (WOL-850) Validate all Model resources for references (key paths) to Entities/Attributes/Relationships that are no longer in the model.

From: David Avendasora (JIRA) ("David)
Date: Thu Jul 03 2008 - 10:37:09 EDT

  • Next message: David Avendasora: "Tracking down EOModel Problems"

    Validate all Model resources for references (key paths) to Entities/Attributes/Relationships that are no longer in the model.
    -----------------------------------------------------------------------------------------------------------------------------

                     Key: WOL-850
                     URL: http://issues.objectstyle.org/jira/browse/WOL-850
                 Project: WOProject/WOLips
              Issue Type: New Feature
              Components: wolips
        Affects Versions: WOLips 3.3.* Next Stable Build
             Environment: WOLips 3.3.5297
                Reporter: David Avendasora

    I am in the process of refactoring some Entities in my project. If I change an entities name or change a relationship, any fetch specifications defined in the model that reference that entity or relationship are left as-is with no validation warning.

    When you try to generate classes, you get a NPE, but it doesn't tell you what Entity it is failing to getJavaClassName on, or where in the model the call is to that Entity.

    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse 2008-07-03 10:30:20.305
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse !MESSAGE Failed to generate server.eogen.
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse !STACK 0
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getJavaClassName' in class org.objectstyle.wolips.eomodeler.core.model.qualifier.EOQualifierBinding threw exception class java.lang.NullPointerException : null
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:193)
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220)
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse at org.apache.velocity.Template.merge(Template.java:256)
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse at org.objectstyle.wolips.thirdparty.velocity.WOLipsVelocityUtils.writeTemplateToString(WOLipsVelocityUtils.java:98)
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse at org.objectstyle.wolips.thirdparty.velocity.WOLipsVelocityUtils.writeTemplate(WOLipsVelocityUtils.java:119)
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse at org.objectstyle.wolips.eogenerator.core.runner.VelocityEOGeneratorRunner.generate(VelocityEOGeneratorRunner.java:230)
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse at org.objectstyle.wolips.eogenerator.core.runner.VelocityEOGeneratorRunner.generate(VelocityEOGeneratorRunner.java:59)
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse at org.objectstyle.wolips.eogenerator.core.model.EOGenerateWorkspaceJob.runInWorkspace(EOGenerateWorkspaceJob.java:103)
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
    7/3/08 10:30:20 AM [0x0-0x3b43b4].org.eclipse.eclipse at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    7/3/08 10:30:50 AM [0x0-0x3b43b4].org.eclipse.eclipse !ENTRY org.objectstyle.wolips.eogenerator.core.ActivatorResources 4

    -- 
    This message is automatically generated by JIRA.
    -
    If you think it was sent incorrectly contact one of the administrators: http://issues.objectstyle.org/jira/secure/Administrators.jspa
    -
    For more information on JIRA, see: http://www.atlassian.com/software/jira
    



    This archive was generated by hypermail 2.0.0 : Thu Jul 03 2008 - 10:39:50 EDT