Re: Tracking down EOModel Problems

From: Mike Schrag (mschra..dimension.com)
Date: Thu Jul 03 2008 - 11:04:48 EDT

  • Next message: Mike Schrag: "Re: Tracking down EOModel Problems"

    I committed a fix to make it throw a real exception instead of just
    NPEing ...

    On Jul 3, 2008, at 10:45 AM, David Avendasora wrote:

    > Doh. Forgot the Stack Trace. See below (for real this time).
    >
    > On Jul 3, 2008, at 10:42 AM, David Avendasora wrote:
    >
    >> Hi all,
    >>
    >> I'm in the process of doing some refactoring of Entity names and
    >> relationships in my project. The problem I'm running into is that
    >> apparently _something_ (a fetch spec most likely?) was referring to
    >> the old Entity or relationship and now when I try to build I
    >> Veogenerator is throwing a NPE (below) stating that it can't find
    >> class name for an Entity.
    >>
    >> The problem is that it doesn't tell me what the Entity is that it's
    >> looking for or where it was referenced at.
    >>
    >> I've tried searching for the old Entity name and old relationship
    >> name in the .plist and .fspec files using Eclipse, but it comes up
    >> finding nothing.
    >>
    >> I've created a new feature request for better validation and/or
    >> error messages, but for now, does anyone have any suggestions of
    >> how to best track down the problem?
    >>
    >> Thanks,
    >>
    >> Dave
    >
    > 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 archive was generated by hypermail 2.0.0 : Thu Jul 03 2008 - 11:07:15 EDT