11-01-2018 06:30 AM
After running the configuration wizard for ERDAS APOLLO 2018, it is displaying an error: A batch process returned an unexpected exit code.
While studying the config log files, it showed Java related issue. I had installed JDK, registered the same in environment system variable and checked the java version in command prompt it showed
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
I have also attached the logfile. ERDAS APOLLO service is also not formed in services.
Thanks for help in advance.
Solved! Go to Solution.
11-08-2018 11:58 PM
Thanks for your reply. I configured another system with the following details at client end:
OS: Windows 8.1
Microsoft .net Framework : 4.6
Java SDK: 8 Update 191
The problem again resurfaced. Before configuration process, I checked, whether it had formed the ERDAS APOLLO TOMCAT service. It didn't show in the services list. So, I used the following command to create the service manually:
"C:\Program Files\Hexagon\ERDAS APOLLO\tomcat\bin\apolloservice.bat" install APOLLOTOMCAT
It created the service, but noted that JAVA_HOME is not set. Hence, I tried to run and check the following command:
cd C:\Program Files\Hexagon\ERDAS APOLLO\tomcat\bin
and ran startup.bat.
It gave error stating neither JAVA_HOME nor JRE_HOME set. Set environment variable. I tried to set the environment variable JAVA_HOME = c:\Program Files\Java\jdk1.8.0_191
Still error remained same...but it was resolved by setting the environment variable as below:
JAVA_HOME = C:\Program Files\Java\jdk1.8.0_191\
Then ran startup.bat command and JAVA was registered successfully for CATALINA_HOME.
02-15-2019 03:13 AM
Instead of creating environment variable JAVA_HOME = C:\Program Files\Java\jdk1.8.0_191\ . Update the Apollo Version to
Try this solution and it works better..
VIPALW KUMAR P
04-23-2020 11:36 PM
I have faced the problem here; A batch process returned an unexpected exit code; -1 expected 0
I found this issue in log file;
[java] Caused by: Error : 1450, Position : 34, Sql = CREATE INDEX IX_CI_CO_FILE_URI ON CATALOG_ITEM (CO_FILE_URI), OriginalSql = CREATE INDEX IX_CI_CO_FILE_URI ON CATALOG_ITEM (CO_FILE_URI), Error Msg = ORA-01450: maximum key length (6398) exceeded
Then i read the post that Apollo currently doesn't support oracle with Max_string_size.
Do we have other option because i need the database with Max_string_size
04-24-2020 05:35 AM
As far as I know there's no easy workaround as the column CATALOG_ITEM (CO_FILE_URI) is defined as VARCHAR2(4000) which is too large to work-around without seriously affecting Oracle performance. We had other similar case with M.App Enterprise and it helped work in a new tablespace with block size 16k and cache dimension 1GB. (but this settings is not enough for Apollo)
Until the Apollo database schema is changed in the product, you must use different database that doesn't have MAX_STRING_SIZE='EXTENDED'. You can consider installing PostgreSQL on the server, just for the Apollo database.