[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]
Messages posted by: sachin  XML
Profile for sachin -> Messages posted by sachin [9]
Author Message
Hi Arvind,

Thanks for you prompt reply.

We have an application for which we are planning to add Terracotta support. The application build, packaging and deployment are automated using Maven. The reason I asked this question was because the Terracotta jars need to defined as dependencies in the application's pom.xml.

Since there are so many jars, I was wondering if there's a "good-practice" for the same.

The option that we have currently is to rename each jar so it conforms to the maven naming convention and deploy it in our internal repository. Needless to say, this would become pretty tedious.

We also have to think of something for the platform-specific jars.

Regards,
Sachin.
Hi,

I have following queries regarding using the Terracotta DSO

1) Is there any defined way to use Terracotta with maven 2.

2) Which are the .jar files which are required by the Terracotta client or do we need to add the whole lib folder which we get in Terracotta Installation.

3) Whether the dso_boot_jar and other jar files in the lib for running terracotta client in Linux and Windows are different or we can use the same in both environment.

kindly reply asap.

Regards,
Sachin
hi,

Thanks for the information. We'll try to run our application on Ubuntu 6.06 LTS (Dapper Drake) and still if the problem persists i'll send you the details.

Regards,
Sachin
Hi,

We have an application that works well with Terracotta DSO on Windows XP. but when we try to run the application on Linux(Ubuntu) its not working.

When we look in the console, we find that the roots objects are not properly stored.

Is it to do anything with the operating system, because i have read on ur site that Terracotta is only tested on Redhat.

Kindly respond as soon as possible.

Regards,
Sachin.
Hi,

We trying to make a dso-boot-jar file for JDK 1.6.0 beta 2 and we got the following error.

Exception in thread "main" com.tc.config.schema.setup.ConfigurationSetupException:
*********************************************************************
Cannot determine version based on 'java.version' value of 1.6.0-beta2
*********************************************************************

at com.tc.object.config.StandardDSOClientConfigHelper.<init>(StandardDSOClientConfigHelper.java:346)
at com.tc.object.config.StandardDSOClientConfigHelper.<init>(StandardDSOClientConfigHelper.java:163)
at com.tc.object.tools.BootJarTool.main(BootJarTool.java:1392)
Caused by: java.lang.RuntimeException: Cannot determine version based on 'java.version' value of 1.6.0-beta2
at com.tc.util.runtime.Vm.getMajorVersion(Vm.java:31)
at com.tc.object.config.StandardDSOClientConfigHelper.addJDK15PreInstrumentedSpec(StandardDSOClientConfigHelper.java:1042)
at com.tc.object.config.StandardDSOClientConfigHelper.doAutoconfig(StandardDSOClientConfigHelper.java:842)
at com.tc.object.config.StandardDSOClientConfigHelper.<init>(StandardDSOClientConfigHelper.java:344)
... 2 more


If its not possible to make the dso-boot.jar for jdk-1.6 then, is it possible to use dso-boot-jar for JDK 1.5 in JDK 1.6 environment, as we are not using any of the JDK 1.6 classes.

Kindly revert back as soon as possible...

regards,
Sachin
Hi,

While using Terracotta DSO i'm getting the following error :

com.tc.exception.TCRuntimeException: java.lang.IllegalArgumentException: Cannot reflectively create enum objects
at com.tc.object.ClientObjectManagerImpl.createNewPeer(ClientObjectManagerImpl.java:660)
at com.tc.object.ClientObjectManagerImpl.createNewPeer(ClientObjectManagerImpl.java:645)
at com.tc.object.TCObjectImpl.createPeerObjectIfNecessary(TCObjectImpl.java:148)
at com.tc.object.TCObjectImpl.hydrate(TCObjectImpl.java:89)
at com.tc.object.ClientObjectManagerImpl.lookup(ClientObjectManagerImpl.java:321)
at com.tc.object.ClientObjectManagerImpl.lookupObject(ClientObjectManagerImpl.java:251)
at com.tc.object.TCObjectPhysical.resolveReference(TCObjectPhysical.java:101)
at com.geodesiconline.xmpp.Resource.__tc_getresourceState(Resource.java)
at com.geodesiconline.xmpp.Resource.__tc_wrapped_getResourceState(Resource.java:82)
at com.geodesiconline.xmpp.Resource.getResourceState(Resource.java)
at com.geodesiconline.xmpp.handler.AbstractHandler.getResources(AbstractHandler.java:238)
at com.geodesiconline.xmpp.handler.AsynchronousStanzaHandler.writeToAvailableResources(AsynchronousStanzaHandler.java:520)
at com.geodesiconline.xmpp.handler.Subscribe.processInboundStanza(Subscribe.java:163)
at com.geodesiconline.xmpp.handler.AsynchronousStanzaHandler.processStanza(AsynchronousStanzaHandler.java:217)
at com.geodesiconline.xmpp.handler.StanzaHandler.processElement(StanzaHandler.java:124)
at com.geodesiconline.xmpp.handler.AbstractHandler.handleStanza(AbstractHandler.java:134)
at com.geodesiconline.xmpp.XMPPController.routeStanzas(XMPPController.java:1969)
at com.geodesiconline.xmpp.XMPPController.process(XMPPController.java:900)
at com.geodesiconline.xmpp.XMPPController.processData(XMPPController.java:717)
at com.geodesiconline.xmpp.XMPPController.messageReceived(XMPPController.java:295)
at com.geodesiconline.xmpp.XMPPController.onMessage(XMPPController.java:1061)
at com.geodesiconline.mjms.MJmsMessageConsumer.onMessage(MJmsMessageConsumer.java:40)
at com.geodesiconline.mjms.MJmsTopicSubscriber.onMessage(MJmsTopicSubscriber.java:63)
at com.geodesiconline.mjms.MJmsTopic.notifySubscribers(MJmsTopic.java:283)
at com.geodesiconline.mjms.MJmsTopic$Notifier.run(MJmsTopic.java:79)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalArgumentException: Cannot reflectively create enum objects
at java.lang.reflect.Constructor.newInstance(Constructor.java:492)
at com.tc.object.TCObjectFactoryImpl.getNewPeerObject(TCObjectFactoryImpl.java:81)
at com.tc.object.TCObjectFactoryImpl.getNewPeerObject(TCObjectFactoryImpl.java:72)
at com.tc.object.TCObjectFactoryImpl.getNewPeerObject(TCObjectFactoryImpl.java:65)
at com.tc.object.ClientObjectManagerImpl.createNewPeer(ClientObjectManagerImpl.java:655)
... 27 more


We are using the java.lang.Enum class, which we've pre-instrumentated.
We are getting the error in situation when one terracotta client inserts the shared data and other client is trying to access it.

kindly revert back as soon as possible...

regards,
Sachin
Hi,

When i'm trying to run the terracota client with our application it is running fine from one client but giving error from another .

Error :
--------
TCMessageType: ourIsSQL must be final if public

because of this error that clinet is unable to start.
Please help me to overcome the problem..
I'm giving the complete stacktrace below

regards

Sachin

Stack Trace :
---------------
2006-08-02 15:57:54,093 INFO - Configuration successfully found and loaded from the URL 'http://sahin.dev.mundu.com:9515/config'.
java.lang.RuntimeException: TCMessageType: ourIsSQL must be final if public
at com.tc.net.protocol.tcm.TCMessageType.init(TCMessageType.java:146)
at com.tc.net.protocol.tcm.TCMessageType.<clinit>(TCMessageType.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.tc.net.protocol.tcm.TCMessageFactoryImpl.class$(TCMessageFactoryImpl.java:20)
at com.tc.net.protocol.tcm.TCMessageFactoryImpl.<clinit>(TCMessageFactoryImpl.java:20)
at com.tc.net.protocol.tcm.CommunicationsManagerImpl.createClientChannel(CommunicationsManageImpl.java:122)
at com.tc.object.DistributedObjectClient.start(DistributedObjectClient.java:168)
at com.tc.object.bytecode.ManagerImpl.startClient(ManagerImpl.java:90)
at com.tc.object.bytecode.ManagerImpl.init(ManagerImpl.java:82)
at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.createGlobalContext(ClassProcessorHeper.java:260)
at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.init(ClassProcessorHelper.java:187)
at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.defineClass0Pre(ClassProcessorHelperjava:275)
at java.lang.ClassLoader.defineClass(Unknown Source)
at javax.management.remote.rmi.NoCallStackClassLoader.findClass(NoCallStackClassLoader.java:18)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at javax.management.remote.rmi.RMIConnector$1.run(RMIConnector.java:1983)
at java.security.AccessController.doPrivileged(Native Method)
at javax.management.remote.rmi.RMIConnector.<clinit>(RMIConnector.java:1992)
at javax.management.remote.rmi.RMIConnectorServer.objectToBind(RMIConnectorServer.java:738)
at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:394)
at sun.management.jmxremote.ConnectorBootstrap.startLocalConnectorServer(ConnectorBootstrap.jva:390)
at sun.management.Agent.premain(Agent.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sun.management.Agent.startAgent(Agent.java:197)
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.tc.net.protocol.tcm.TCMessageFactoryImpl.class$(TCMessageFactoryImpl.java:20)
at com.tc.net.protocol.tcm.TCMessageFactoryImpl.<clinit>(TCMessageFactoryImpl.java:20)
at com.tc.net.protocol.tcm.CommunicationsManagerImpl.createClientChannel(CommunicationsManageImpl.java:122)
at com.tc.object.DistributedObjectClient.start(DistributedObjectClient.java:168)
at com.tc.object.bytecode.ManagerImpl.startClient(ManagerImpl.java:90)
at com.tc.object.bytecode.ManagerImpl.init(ManagerImpl.java:82)
at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.createGlobalContext(ClassProcessorHeper.java:260)
at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.init(ClassProcessorHelper.java:187)
at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.defineClass0Pre(ClassProcessorHelperjava:275)
at java.lang.ClassLoader.defineClass(Unknown Source)
at javax.management.remote.rmi.NoCallStackClassLoader.findClass(NoCallStackClassLoader.java:18)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at javax.management.remote.rmi.RMIConnector$1.run(RMIConnector.java:1983)
at java.security.AccessController.doPrivileged(Native Method)
at javax.management.remote.rmi.RMIConnector.<clinit>(RMIConnector.java:1992)
at javax.management.remote.rmi.RMIConnectorServer.objectToBind(RMIConnectorServer.java:738)
at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:394)
at sun.management.jmxremote.ConnectorBootstrap.startLocalConnectorServer(ConnectorBootstrap.jva:390)
at sun.management.Agent.premain(Agent.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sun.management.Agent.startAgent(Agent.java:197)
Caused by: com.tc.exception.TCRuntimeException: java.lang.RuntimeException: TCMessageType: ourIsSQ must be final if public
at com.tc.net.protocol.tcm.TCMessageType.<clinit>(TCMessageType.java:251)
... 27 more
Caused by: java.lang.RuntimeException: TCMessageType: ourIsSQL must be final if public
at com.tc.net.protocol.tcm.TCMessageType.init(TCMessageType.java:146)
at com.tc.net.protocol.tcm.TCMessageType.<clinit>(TCMessageType.java:248)
... 27 more
thanks for the reply, and i'll appreciate if you'll keep me updated
Hi,

In our application we want a ConcurrentHashMap to be shared across cluster. When we shared this object in tc-config.xml , then it has given the error :

**********************************************************
Attempt to share an instance of a non-portable class referenced by a portable class. This
unshareable class is a JVM- or host machine-specific resource. Please ensure that instances
of this class don't enter the shared object graph.

Referring class : com.geodesiconline.xmpp.Resource
Referring field : com.geodesiconline.xmpp.Resource.directedUsers
Thread : pool-2-thread-9
JVM ID : VM(3)
Unshareable class: java.util.concurrent.ConcurrentHashMap
***********************************************************

To overcome this we added this class to <additional-boot-jar-classes> for pre-instrumentation.
But it leads with giving the warning

********************* WARNING ******************************
* The following set of classes are non-adaptable types and have not been
* included in the boot jar. Please remove them in the
* <additional-boot-jar-classes> section of the terracotta config:
* [java.util.concurrent.ConcurrentHashMap]
****************************************************************************

Does the warning mean that we cannot use ConcurrentHashMap with Terracotta ?

Kindly, revert back regarding this.

Regards,
Sachin.
 
Profile for sachin -> Messages posted by sachin [9]
Go to:   
Powered by JForum 2.1.7 © JForum Team