List:Cluster« Previous MessageNext Message »
From:Mariano Vallés Date:October 1 2011 6:57am
Subject:Error when running clusterj
View as plain text  
Hi,
I am trying to run clusterj against a localhost severalnines sandbox
MySQL cluster using Mac OS. I am able to set:
		p.setProperty("com.mysql.clusterj.connectstring", "localhost:1186");
		p.setProperty("com.mysql.clusterj.database", "test");
But  when I execute the following :
		SessionFactory sf=ClusterJHelper.getSessionFactory(p);
I keep on getting the following exception:

INFO: Found 0 DomainTypeHandlerFactories
Exception in thread "main" java.lang.ExceptionInInitializerError
	at
com.mysql.clusterj.tie.ClusterConnectionImpl.<clinit>(ClusterConnectionImpl.java:52)
	at
com.mysql.clusterj.tie.ClusterConnectionServiceImpl.create(ClusterConnectionServiceImpl.java:45)
	at
com.mysql.clusterj.core.SessionFactoryImpl.createClusterConnection(SessionFactoryImpl.java:238)
	at
com.mysql.clusterj.core.SessionFactoryImpl.createClusterConnectionPool(SessionFactoryImpl.java:225)
	at com.mysql.clusterj.core.SessionFactoryImpl.<init>(SessionFactoryImpl.java:173)
	at
com.mysql.clusterj.core.SessionFactoryImpl.getSessionFactory(SessionFactoryImpl.java:128)
	at
com.mysql.clusterj.core.SessionFactoryServiceImpl.getSessionFactory(SessionFactoryServiceImpl.java:36)
	at
com.mysql.clusterj.core.SessionFactoryServiceImpl.getSessionFactory(SessionFactoryServiceImpl.java:27)
	at com.mysql.clusterj.ClusterJHelper.getSessionFactory(ClusterJHelper.java:61)
	at com.mysql.clusterj.ClusterJHelper.getSessionFactory(ClusterJHelper.java:46)
	at se.sics.clusterj.Main.main(Main.java:50)
Caused by: com.mysql.clusterj.ClusterJFatalInternalException: Error
decoding characters, bad charset: character set number 5.
	at com.mysql.clusterj.tie.Utility.decode(Utility.java:1362)
	at
com.mysql.clusterj.tie.Utility$SingleByteCharsetConverter.<init>(Utility.java:1671)
	at com.mysql.clusterj.tie.Utility.addCollation(Utility.java:1499)
	at com.mysql.clusterj.tie.Utility.<clinit>(Utility.java:175)
	... 11 more

Any hints ?
Thanks
Thread
Error when running clusterjMariano Vallés1 Oct
  • Re: Error when running clusterjMicah27 Sep
    • Re: Error when running clusterjCraig L Russell27 Sep
Re: Error when running clusterjCraig L Russell27 Sep