• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
VelocityEOGenerator troubles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

VelocityEOGenerator troubles


  • Subject: VelocityEOGenerator troubles
  • From: Lars Sonchocky-Helldorf <email@hidden>
  • Date: Mon, 21 Oct 2013 18:43:16 +0200

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: VelocityEOGenerator troubles
      • From: Lars Sonchocky-Helldorf <email@hidden>
  • Prev by Date: Re: AjaxModalDialog not going away
  • Next by Date: Re: VelocityEOGenerator troubles
  • Previous by thread: Re: Problem with wocommunity yum repo
  • Next by thread: Re: VelocityEOGenerator troubles
  • Index(es):
    • Date
    • Thread