Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Support for Java7

Hi,

I just downloaded the 8.0.x EA (m11) and it fails to start when running on Java7 (64bit jdk, Linux x64)

When I run bin/gs-agent.sh it outputs the following on the console:

2010-12-27 16:51:57,546 GSA INFO \com.gigaspaces.grid.gsa - Starting GSA ...
2010-12-27 16:51:57,634 GSA INFO \com.gigaspaces.grid.gsa - GSA will use discovery groups\ gigaspaces-8.0.0-XAPPremium-m11 and locators \
2010-12-27 16:51:57,761 GSA INFO \com.gigaspaces.grid.gsa - GSA will globally manage 2 of service \gsm
2010-12-27 16:51:57,761 GSA INFO \com.gigaspaces.grid.gsa - GSA will globally manage 2 of service \lus
2010-12-27 16:51:57,790 GSA INFO \com.gigaspaces.grid.gsa - Starting \2 of \gsc
2010-12-27 16:51:57,815 GSA INFO \com.gigaspaces.grid.gsa - \gsc\1/: Starting with command \/mnt/btrfs/gigaspaces-xap-premium-8.0.0-m11//bin/gsc.sh
2010-12-27 16:51:57,834 GSA INFO \com.gigaspaces.grid.gsa - \gsc\2/: Starting with command \/mnt/btrfs/gigaspaces-xap-premium-8.0.0-m11//bin/gsc.sh
2010-12-27 16:51:57,841 GSA INFO \com.gigaspaces.grid.gsa - GSA will use an interval of \1 seconds to monitor processes
2010-12-27 16:51:57,845 GSA INFO \com.gigaspaces.grid.gsa - GSA will check for global managed instances every \10 seconds, with randomized initial delay of \11 seconds out of \30 seconds
2010-12-27 16:51:58,001 INFO \org.jini.rio.jsb - Service-Id: \34bfe4ce-7bca-45dd-a8a9-cc99f5ac5777
2010-12-27 16:51:58,001 INFO \com.gigaspaces.grid.gsa - GSA started successfully with groups \gigaspaces-8.0.0-XAPPremium-m11 and locators \
\gsc\1/ Error: Could not find main class com.gigaspaces.internal.utils.OutputJVMVendorName
\gsc\1/ Exception in thread "main" java.lang.NoClassDefFoundError: com.gigaspaces.internal.utils.OutputJVMVendorName
\gsc\1/ at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:395)
\gsc\1/ Caused by: java.lang.ClassNotFoundException: com.gigaspaces.internal.utils.OutputJVMVendorName
\gsc\1/ at java.net.URLClassLoader$1.run(URLClassLoader.java:299)
\gsc\1/ at java.net.URLClassLoader$1.run(URLClassLoader.java:288)
\gsc\1/ at java.security.AccessController.doPrivileged(Native Method)
\gsc\1/ at java.net.URLClassLoader.findClass(URLClassLoader.java:287)
\gsc\1/ at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
\gsc\1/ at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:327)
\gsc\1/ at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
\gsc\1/ at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:392)

When running bin/gsc.sh directly it seems start properly, so the problem is most likely in the agent or some bootstrap code.

PS. I tried 1 hour ago the latest terracotta and it too failed to run with Java7 (complained about unsupported JVM vendor).. what a coincidence =)

This thread was imported from the previous forum.
For your reference, the original is available here

asked 2010-12-27 09:30:18 -0600

mikko gravatar image

updated 2013-08-08 09:52:00 -0600

jaissefsfex gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

I tried to reproduce it with java 7 b89 on Linux/Windows 64 without any success.
I succeeded to reproduce it with b123 but also when running java -version I got this error:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

answered 2010-12-28 06:25:16 -0600

kobi gravatar image
edit flag offensive delete link more
0

Hi there,

I've got the same problem but I don't think it's related to Java7 as I'm running:

java -version java version "1.6.0_22" Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261) Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)

on Mac OS X.

Part of my output is:

Exception in thread "main" java.lang.NoClassDefFoundError: com/gigaspaces/internal/utils/OutputJVMVersion [gsm][3/] Caused by: java.lang.ClassNotFoundException: com.gigaspaces.internal.utils.OutputJVMVersion [gsm][3/] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [gsm][3/] at java.security.AccessController.doPrivileged(Native Method) [gsm][3/] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [gsm][3/] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) [gsm][3/] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) [gsm][3/] at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [gsm][3/] Cannot locate gs-boot.jar in the expected directory structure, exiting

I guess it's just some kind of classpath propagation error as starting the gsm and gsc directly works fine.

Best regards, Michael

answered 2011-03-04 08:46:16 -0600

tryge gravatar image
edit flag offensive delete link more

Comments

From some reason the gigaspaces root/bin/setenv.sh script cannot call the OutputJVMVendorVersion. What I suggest is to set the JAVA_VERSION manually to "1.6" and JAVA_VENDOR to "Sun" by changing the script. Make sure your JAVA_HOME is set correctly to a valid Sun JVM (not JRE).

Shay

shay hassidim gravatar imageshay hassidim ( 2011-03-04 20:38:56 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2010-12-27 09:30:18 -0600

Seen: 135 times

Last updated: Mar 04 '11