[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Terracotta client can't startup  XML
Forum Index -> Terracotta Platform
Author Message
hahayjb

journeyman

Joined: 11/05/2013 20:18:00
Messages: 12
Offline

[code]Dear all

my terracotta's version is 3.7.5 which the newest one. when i use this command:
%TC_HOME%\bin\satrt-tc-server.bat -f %TC_HOME%\tc-config.xml
to startup the tc server. it is ok.

but i can't start up the tc client when use this command:
%TC_HOME%\platform\bin\dso-java.bat -cp %TC_HOME%\TerracottaDemo.jar yale.terracotta.demo.TerracottaDemo

the error is:
Error occurred during initialization of VM
java.lang.NullPointerException
at java.util.Hashtable.hash<Hashtable.java:262> at.java.util.Hashtable._tc_remove<Hashtable.java:585>
......
at java.lang.System.initiallizeSystemClass<System.java:1118>


how i do? thanks
teck

seraphim
[Avatar]
Joined: 05/24/2006 15:03:25
Messages: 1128
Offline

Is this jdk 7 per chance? Terracotta 3.7.x does not work with jdk7 and higher

Tim Eck (terracotta engineer)
hahayjb

journeyman

Joined: 11/05/2013 20:18:00
Messages: 12
Offline

teck wrote:
Is this jdk 7 per chance? Terracotta 3.7.x does not work with jdk7 and higher
 


You are right. Thank you.

But i have a question that when use this command:

%TC_HOME%\platform\bin\dso-java.bat -cp %TC_HOME%\TerracottaDemo.jar yale.terracotta.demo.TerracottaDemo

to start up the tc client. The tc client use the default-config.xml which in the tc.jar.

The same result as the above way even use this command:

%TC_HOME%\platform\bin\dso-java.bat
-Dtc.config=%TC_HOME%\tc-config.xml
-cp %TC_HOME%\TerracottaDemo.jar yale.terracotta.demo.TerracottaDemo


why?

But i add this command

set TC_CONFIG_PATH="%TC_HOME%\tc-config.xml"

in the dso-env.bat.

The tc client load the configurtion tc-config.xml, Then ,it's OK.

why? Is it a bug for Terracotta-3.7.5?

 
Forum Index -> Terracotta Platform
Go to:   
Powered by JForum 2.1.7 © JForum Team