错误GXJMake:“索引超出范围。必须是非负数且小于集合的大小”

时间:2016-09-29 15:56:48

标签: java web genexus

Genexus X Evo1, Generating Java for Web.

中发生此错误

当我尝试编译任何对象时,它总是返回以下错误。我注意到对象是在Models文件夹中生成的,而不是在WebApps.中我已经尝试了Rebuild all选项,并且同样的事情发生了。我不知道还能做什么。

========== Build With This Only started ==========
========== Target Environment update started ==========
Target Environment update Success
Building changed objects list
========== Specification started ==========
Generating messages for Spanish ...
Generating messages for English ...
Generators messages generated.
Specifying EnviarCorreoNoReply (1 of 1) ...
Specifying stub EnviarCorreoNoReply ...
Specification Success
========== Generation started ==========
Generating Resources...Success
Generating to DESARROLLO\web\aenviarcorreonoreply.java
Generating to DESARROLLO\web\enviarcorreonoreply.java
Generating to DESARROLLO\web\SdtMessages_Message.java
Generating to DESARROLLO\web\StructSdtMessages_Message.java
Generating to DESARROLLO\web\gxcfg.js
Generating to DESARROLLO\web\GXcfg.java
Generating to DESARROLLO\web\client.cfg
Generating to DESARROLLO\web\bld12.info
Generating to sm12_4.ari
Compressing static files...Success
Generation Success
File 'upload.jar' copied to "C:\Models\abc\DESARROLLO\web\drivers\upload.jar"
========== EnviarCorreoNoReply Compilation started ==========
callmake.bat "C:\Models\abc\DESARROLLO\web\GXJMake.exe" "C:\Program Files\Java\jdk1.6.0_45\bin\javac.exe" aenviarcorreonoreply options: -O
GeneXus Java Make v1.0
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter Name: index
Build failed.
EnviarCorreoNoReply Compilation Failed
Build With This Only Failed

如果我手动运行 GXJMake ,也会发生同样的事情:

C:\Models\abc\DESARROLLO\web>GXJMake -f home.mak
GeneXus Java Make v1.0
Index was out of range. Must be non-negative and less than the size of the collection.
Build failed.

1 个答案:

答案 0 :(得分:1)

在我没有运气的情况下尝试了几件事后,我终于能够解决问题了。

我所做的是从 C:\ Models \ abc \文件夹及其所有子文件夹中删除所有 .ari 存档,而不仅仅是 C:\ Models \ abc \ DESARROLLO \ state 文件夹,因为我已经尝试过没有运气了。

我希望如果其他人遇到同样的问题,这会有所帮助。