malformed Java AST on large collection of template vars
I got this error in some template
the minimal that i got for the error is the following : http://pastebin.com/7jik0rHJ
removing some of the vardecls or removing the template part fixes the error.
Submitted by chris melman on 22 October 2013 at 17:24
Issue Log
On 22 October 2013 at 17:26 chris melman commented:
[ Main | info ] stage 1: parsing researchreval.app : [user/system] = [0.86s/0.00s] [ Main | info ] stage 2: importing modules : [user/system] = [6.83s/0.00s] [ Main | info ] stage 3: typechecking : [user/system] = [18.89s/0.00s] [ Main | info ] stage 4: model-to-model : [user/system] = [79.34s/0.00s] [ Main | info ] stage 5: access control : [user/system] = [0.00s/0.00s] [ Main | info ] stage 6: performing analysis : [user/system] = [28.02s/0.00s] [ Main | info ] stage 7: renaming identifiers : [user/system] = [1.34s/0.00s] [ Main | info ] stage 8: generation analysis : [user/system] = [0.09s/0.00s] [ Main | info ] stage 9: code generation[ Main | error ] Internal error: generated Java AST is malformed ["--vis","-i","C:\\Users\\Chris\\AppData\\Local\\Temp\\StrategoXT2285737135015879430.tmp","--rtg","C:\\Users\\Chris\\App Data\\Local\\Temp\\StrategoXT6330490728742261396.tmp"] [ Main | warning ] Main uses xtc to find non-local file format-check [ Main | error ] No XTC registration for format-check found [ Main | info ] Calling external tool format-check --vis -i C:\Users\Chris\AppData\Local\Temp\StrategoXT2285737135015879 430.tmp --rtg-nf C:\Users\Chris\AppData\Local\Temp\StrategoXT6330490728742261396.tmp --verbose 1 [ Main | critical ] Internal error: fatal errors encountered in generated code BUILD FAILED D:\webdslbuild\last\share\webdsl\webdsl-build-command.xml:80: The following error occurred while executing this line: D:\webdslbuild\last\share\webdsl\webdsl-build-command.xml:101: The following error occurred while executing this line: D:\webdslbuild\last\share\webdsl\webdsl-build.xml:608: The following error occurred while executing this line: D:\webdslbuild\last\share\webdsl\webdsl-build.xml:601: The following error occurred while executing this line: D:\webdslbuild\last\share\webdsl\webdsl-build.xml:596: The following error occurred while executing this line: D:\webdslbuild\last\share\webdsl\webdsl-build.xml:252: The following error occurred while executing this line: D:\webdslbuild\last\share\webdsl\webdsl-build.xml:336: Java returned: 1
On 23 July 2014 at 17:07 Elmer van Chastelet commented:
It seems that some string, e.g. the name of some generated class, becomes too long when there is a large collection of {var decls + template args} leading to long strings with type information.
Minimal test:
application test page root(){ placeholder x test(1,2,3,4,5,6,7,8,9,10,11,12,13,14, LongNamedEntityWithALotOfCharactersInIt{}, LongNamedEntityWithALotOfCharactersInIt{}) } entity LongNamedEntityWithALotOfCharactersInIt{ } ajax template test( arg1 : Int,arg2 : Int,arg3 : Int,arg4 : Int,arg5 : Int,arg6 : Int,arg7 : Int,arg8 : Int,arg9 : Int,arg10 : Int,arg11 : Int,arg12 : Int,arg13 : Int,arg14 : Int, e1:LongNamedEntityWithALotOfCharactersInIt, e2:LongNamedEntityWithALotOfCharactersInIt ){ var arg15 := 0; var arg16 := 0; var arg17 := 0; var arg18 := 0; var arg18 := 0; var arg20 := 0; var arg21 := 0; var arg22 := 0; submitlink action{}{} }
On 6 October 2014 at 13:47 Elmer van Chastelet commented:
It turns out that some class has a very long name, too long for the file system to use that as a file name (Mac OSX in my case, which has a limit of 255 chars).
On 6 October 2014 at 15:57 Elmer van Chastelet commented:
Fixed in r5969
On 6 October 2014 at 15:57 Elmer van Chastelet closed this issue.
On 6 October 2014 at 15:57 Elmer van Chastelet tagged 1.3.0
Log in to post comments