安装报错ArrayIndexOutOfBoundsException
人大金仓部署时报错ArrayIndexOutOfBoundsException,完整报错如下:
[kingbase@kdb tmp\]$ ./setup.sh -i
Now launch installer...
正在准备进行安装
正在从安装程序档案中提取 JRE...
正在解包 JRE...
正在从安装程序档案中提取安装资源...
配置该系统环境的安装程序...
正在启动安装程序...
Invocation of this Java Application has caused an ExceptionInInitializerError. This application will now exit. (LAX)
Stack Trace:
java.lang.ArrayIndexOutOfBoundsException: 3
at com.zerog.ia.installer.LifeCycleManager.ai(Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.setUIModeForInstallationAndUninstallation(Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.<clinit>(Unknown Source)
at com.zerog.ia.installer.Main.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.zerog.lax.LAX.launch(Unknown Source)
at com.zerog.lax.LAX.main(Unknown Source)
This Application has Unexpectedly Quit: Invocation of this Java Application has caused an ExceptionInInitializerError. This application will now exit. (LAX)
Complete.
\[kingbase@kdb tmp\]$ java -version
java version "1.8.0\_321"
Java(TM) SE Runtime Environment (build 1.8.0\_321-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.321-b07, mixed mode)
解决办法
查看帮助信息,查看使用语法
解决办法1:不使用-i参数【 ./setup.sh 】
解决办法1:或者使用-i还要加上参数,例如【 ./setup.sh -i swing 】
-i参数中 swing 是图形化安装; console是控制台安装; silent是静默安装,默认不加-i是静默安装
[kingbase@node2 r6c5b23]$ ./setup.sh -h
cNow launch installer...
正在准备进行安装
正在从安装程序档案中提取 JRE...
正在解包 JRE...
正在从安装程序档案中提取安装资源...
配置该系统环境的安装程序...
正在启动安装程序...
Usage: install [-f <path_to_installer_properties_file> | -options]
(to execute the installer)
where options include:
-? show this help text
-h show this help text
-help show this help text
--help show this help text
-i [swing | console | silent]
specify the user interface mode for the installer
-D<name>=<value>
specify installer properties
-r <path_to_generate_response_file>
Generates response file.
JVM heap size options are only applicable to Installers
-jvmxms <size>
Specify JVM initial heap size.
-jvmxmx <size>
Specify JVM maximum heap size.
The options field may also include the following in case of uninstaller
if it is enabled for Maintenance Mode
-add <feature_name_1> [<feature_name_2 ...]
Add Specified Features
-remove <feature_name_1> [<feature_name_2 ...]
Remove Specified Features
-repair
Repair Installation
-uninstall
Uninstall
验证 【 ./setup.sh 】
[kingbase@node2 r6c5b23]$ ./setup.sh
Now launch installer...
正在准备进行安装
正在从安装程序档案中提取 JRE...
正在解包 JRE...
正在从安装程序档案中提取安装资源...
配置该系统环境的安装程序...
正在启动安装程序...
Graphical installers are not supported by the VM. The console mode will be used instead...
===============================================================================
KingbaseES V8 (使用 InstallAnywhere 创建)
-------------------------------------------------------------------------------
正在准备控制台模式安装...
===============================================================================
简介
--
本安装程序将指导您完成 KingbaseES V8 的安装。
建议您在继续本次安装前,退出所有程序。
如果要回到前一屏幕进行更改,可输入“back”。
如果要取消本次安装,可随时输入“quit”。
KingbaseES Version: V8
Installer Version: PRODUCT_FULLVERSION Build
Kingbase Inc.
http://www.kingbase.com.cn
请按 <ENTER> 键继续:
验证 【./setup.sh -i swing】
[kingbase@kdb tmp]$ ./setup.sh -i swing
Now launch installer...
正在准备进行安装
正在从安装程序档案中提取 JRE...
正在解包 JRE...
正在从安装程序档案中提取安装资源...
配置该系统环境的安装程序...
正在启动安装程序...
Graphical installers are not supported by the VM. The console mode will be used instead...
===============================================================================
KingbaseES V8 (使用 InstallAnywhere 创建)
-------------------------------------------------------------------------------
正在准备控制台模式安装...
===============================================================================
简介
--
本安装程序将指导您完成 KingbaseES V8 的安装。
建议您在继续本次安装前,退出所有程序。
如果要回到前一屏幕进行更改,可输入“back”。
如果要取消本次安装,可随时输入“quit”。
KingbaseES Version: V8
Installer Version: PRODUCT_FULLVERSION Build
Kingbase Inc.
http://www.kingbase.com.cn
请按 <ENTER> 键继续:
最后修改时间:2025-02-07 22:11:14
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




