Yeah, replying to own mails is lame but it's even more lame to find a stupid
error after finally sending a mail which asks for help. I got this problem
solved: I had renamed the EOModel but forgot to change the name in the .eogen
file :-/
I re-added the model with the right name and now everything works.
cheers,
Lars
Am 21.10.2013 um 18:43 schrieb Lars Sonchocky-Helldorf:
> Hi List,
>
>
> I am trying to generate some Java Sources using EOGenerator. While for one of
> the models it works without problems the generation fails for another model
> with the message "null", nothing else. The stack trace from eclipse is here:
>
> !ENTRY org.objectstyle.wolips.eogenerator.core.ActivatorResources 4 4
> 2013-10-21 18:18:42.785
> !MESSAGE Failed to generate BKReportingDataexportLoginEOModel.eogen.
> !STACK 0
> java.lang.NullPointerException
> at
> org.objectstyle.wolips.eogenerator.core.runner.VelocityEOGeneratorRunner.generate(VelocityEOGeneratorRunner.java:216)
> at
> org.objectstyle.wolips.eogenerator.core.runner.VelocityEOGeneratorRunner.generate(VelocityEOGeneratorRunner.java:65)
> at
> org.objectstyle.wolips.eogenerator.core.model.EOGenerateWorkspaceJob.runInWorkspace(EOGenerateWorkspaceJob.java:140)
> at
> org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>
> For the working model the .eogen file looks like this:
>
> -destination Sources -extension java -java -javaTemplate _WonderEntity.java
> -model Resources/BKReportingModel.eomodeld -packagedirs -subclassDestination
> Sources -subclassJavaTemplate WonderEntity.java -templatedir ../EOFTemplates
> -verbose -loadModelGroup
>
> For the one which doesn't work it looks like this:
>
> -destination Sources -extension java -java -javaTemplate _WonderEntity.java
> -model Resources/BKReportingLoginDBEOModel.eomodeld -packagedirs -refmodel
> Resources -subclassDestination Sources -subclassJavaTemplate
> WonderEntity.java -templatedir ../EOFTemplates -verbose -loadModelGroup
>
> both models reside in Resources of the project and both share a cross model
> relationship. I tried adding Referenced Models as you can see above but I was
> not able to select a Model from the Resources directory, they were all greyed
> out in the file dialog. But not selecting anything (e.g removing " -refmodel
> Resources") did not work either.
>
>
> WOLips is still 3.7.1008145, Eclipse is 3.7.2
>
>
> Any clues? Any hint where to look for mistakes?
>
>
> cheers,
>
> Lars
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/lars.sonchocky-helldorf%40hamburg.de
>
> This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]