gpt4 book ai didi

java - 错误 GXJMake : "Index was out of range. Must be non-negative and less than the size of the collection"

转载 作者:行者123 更新时间:2023-12-01 09:26:42 25 4
gpt4 key购买 nike

我在 Genexus X Evo1,为 Web 生成 Java 时发生了此错误。

当我尝试编译任何对象时,最终它总是返回以下错误。我注意到该对象是在 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.

最佳答案

在我尝试了一些方法但没有运气之后,我终于能够解决这个问题。

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

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

关于java - 错误 GXJMake : "Index was out of range. Must be non-negative and less than the size of the collection",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39774959/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com