SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
GUI Console start up fails with Java launcher error
Goto page 1, 2  Next
 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
GUI Console start up fails with Java launcher error
Author Message
Don Macary



Joined: 13 Aug 2003
Posts: 51

Post GUI Console start up fails with Java launcher error Reply with quote
24x7 multiplatform 5.1 running on windows server 2016.
Was working without problem for a long time .

Clicking the desktop icon to start the GUI gives this error:
Error : Could not create the Java virtual machine.
Error : A fatal exception has occurred . Program will exit.

I've tried these workarounds:
1) change javaw.exe to run as admin.
2) increase the size of the memory allocation in master.bat changed -Xmx1024 to -Xmx2048
3) change javaw.exe to run in windows 7 compatibility mode
4) uninstall and then reinstall 24x7

Two of the 3 servers where 24x7 is installed are failing . One continues to work.

The 24x7 service seems to be running normally and processing jobs on all 3 servers.
Its just the GUI that is having a problem.

Any helpful ideas?
Wed Nov 17, 2021 11:45 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7841

Post Reply with quote
5.1 runs on the very old JVM 6. Which maybe incompatible with latest Windows updates or even get blocked by an antivirus. You can try updating just Java to a more recent version which may or may not work well. There are a few things that are known to be not backward compatible. My recommendation is upgrading the scheduler to the latest version 6.0. It runs internally more recent Java version 8
Wed Nov 17, 2021 9:40 pm View user's profile Send private message
Don Macary



Joined: 13 Aug 2003
Posts: 51

Post Reply with quote
Following up:
I downloaded (and paid for) version 6.0 of 24x7 mp

Trying to install on the same windows 2016 server gives me:

Runtime Error 217 at 053E5FC9

Cannot import dll <with a filename here >

The event log has this :
[b]
Faulting application name: 24x7mp_setup.tmp, version: 51.52.0.0, time stamp: 0x2a425e19
Faulting module name: KERNELBASE.dll, version: 10.0.14393.4770, time stamp: 0x618088d2
Exception code: 0x0eedfade
Fault offset: 0x000dc622
Faulting process id: 0xa44
Faulting application start time: 0x01d7df24f173100a
Faulting application path: C:\Users\DONMAC~1.SU\AppData\Local\Temp\is-TDGQN.tmp\24x7mp_setup.tmp
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: 93f3ebcc-c083-41ac-b1d2-75c594ae40b4
Faulting package full name:
Faulting package-relative application ID: [/b]
Sun Nov 21, 2021 6:26 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7841

Post Reply with quote
Somebody recently reported the same error on Windows 2016 server. We still don't know for sure what's causing it, appears like something fairly recent, but here is a known simple workaround. Install 24x7 on a desktop older windows machine, and then copy c:\24x7 folder to the server running windows 2016. Update permissions for the copied folder and add yourself, not a group, to the list of users with full permissions .
Sun Nov 21, 2021 9:16 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7841

Post Reply with quote
One more thing. If on startup you see an error saying that the encryption key length is incompatible, you will need to change in preferences.xml the settings value from 192 to either 128 or 256 which should make it work with Windows 2016 server.⁴
Mon Nov 22, 2021 8:50 am View user's profile Send private message
Don Macary



Joined: 13 Aug 2003
Posts: 51

Post Reply with quote
[quote="SysOp"]5.1 runs on the very old JVM 6. Which maybe incompatible with latest Windows updates or even get blocked by an antivirus. You can try updating just Java to a more recent version which may or may not work well. There are a few things that are known to be not backward compatible. My recommendation is upgrading the scheduler to the latest version 6.0. It runs internally more recent Java version 8[/quote]

I have confirmed this:
The original problem in this post is caused by Trend Micro Antivirus.

When turning off the AV the 24x7 gui works properly.

I will install the new version using the workaround you provided.

thanks for your help.
Mon Nov 22, 2021 12:42 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7841

Post Reply with quote
Sure. If we can help with anything else, please let us know.

P.S. like in version 5.x, if you're not running it as a service, it's recommended to use Run as Administrator when running it in the desktop mode.
Mon Nov 22, 2021 2:30 pm View user's profile Send private message
Don Macary



Joined: 13 Aug 2003
Posts: 51

Post Reply with quote
version 5.1 is running as a service. I do want version 6 to run that way too.

Since I've run the install on an old PC , how should I install this as a service when I copy the files to the win2016 server?

the documentation mentions srvany and the NT resource kit but that makes me a little nervous...

any recomendations for making my manual install run as a service?
Mon Nov 22, 2021 5:21 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7841

Post Reply with quote
Back up your existing files to a separate folder, say if they are in C:\24x7, copy them to C:\24x7_5 and then copy new version to C:\24x7 replacing the existing files. All your service settings should continue working as before. For the very first run, start 24x7 in desktop mode in run as Administrator mode, and then use File/Upgrade Old Job Database menu to convert your 5.1 job database to the new version. It will prompt you for the file, a copy of which you can select from C:\24x7_5 folder.
Mon Nov 22, 2021 5:45 pm View user's profile Send private message
Don Macary



Joined: 13 Aug 2003
Posts: 51

Post Reply with quote
I did what you suggested.

I converted the jobs database on my "older windows system" before I installed the folder on the server as you suggested.

I cannot access / run the 24x7 gui console . When I run master.bat a window flashes quickly and then closes.
At least I'm not getting the Java Launcher error.

(I was running as admin; I was careful to set the security on the new 24x7 folder exactly as the old one (individual rights now group...))

The good news is that the service does seem to be running and starting jobs.

Ideas on how to fix this?
thanks
Tue Nov 23, 2021 9:23 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7841

Post Reply with quote
Instead of double-clicking master.bat

Open new console cmd.exe in Run ad Administrator mode (this is important, not the same as having admin account)

Change current directory to c:\24x7 or wherever you copied it to.
cd c:\24x7


Execute cmd /C master.bat


If that doesn't print a meaningful error to the console and the GUI still doesn't start, try


cmd /C master.bat nogui


Please let us know what you get.
Tue Nov 23, 2021 11:26 am View user's profile Send private message
Don Macary



Joined: 13 Aug 2003
Posts: 51

Post Reply with quote
see attached image (doesn't look like the image worked...)

the first command just said

please wait...
and then returned to the command prompt

the second one waited several seconds and then returned to the command prompt


[url=https://postimg.cc/m1zYF9zt][img]https://i.postimg.cc/m1zYF9zt/cmd-prompt.gif[/img][/url]
Tue Nov 23, 2021 12:12 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7841

Post Reply with quote
In the same window, can you please try

C:\24x7\jre\bin\java.exe -Xmx1024m -Xverify:none -jar jscheduler.jar

Any errors printed?
Tue Nov 23, 2021 12:31 pm View user's profile Send private message
Don Macary



Joined: 13 Aug 2003
Posts: 51

Post Reply with quote
No Errors !

It started the 24x7 GUI !
Tue Nov 23, 2021 12:45 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7841

Post Reply with quote
I copied that line from master.bat file and substituted %JAVA_HOME% with a hard coded path. Please take a look at master.bat, can you see what may go wrong with that simple file?
Tue Nov 23, 2021 12:58 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.