|Re: [Texo] Errors while generating model code [message #1003996 is a reply to message #1003978]
||Tue, 22 January 2013 11:40
| Martin Taal
Registered: July 2009
Can you remove the line in the source (so the one with .initialize())? Or remove the complete generate ModelPackage
file. Does that help?
If not can you send me your model (you can send it directly)?
It seems to fail somewhere in the dependencies between epackages, so it creates a wrong source line.
On 01/22/2013 11:58 AM, Bastian Wagenfeld wrote:
> I'm trying to generate JPA annotated model code via the texo generator. The generation fails after most of the classes
> are generated. Unfortunately there are no details in the error log. It only says "Error occurred during artifact
> generation". Three classes are missing after this error, one of them is the "ModelPackage" class.
> So I tried to generate an annotationsmodel. That fails too, but throws an interesting error message which contains the
> whole ModelPackage class. The error itself is like that:
> Errors occurred during the build.
> Errors running builder 'Texo Code Generator Builder' on project 'de.test.texo.model'.
> java.lang.IllegalStateException: package de.test.texo.model;
> Then follows the class and another error at the bottom line:
> 884: Syntax error on token ".", delete this token
> This line is contained in the initialize method. All referenced model packages are initialized. The generated code
> around the mentioned line looks like the following:
> So I assume this is the same error that happens during the code generation as well.
> Since I now have the ModelPackage code, I could try and write the two missing classes by myself. However, I'd rather
> know what creates the error and solve it. Maybe anyone got an idea?
With Regards, Martin Taal
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Powered by FUDForum
. Page generated in 0.02075 seconds