[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]
Problem with instrumenting java.util.concurrent.ConcurrentHashMap in java 1.5  XML
Forum Index -> Terracotta Platform
Author Message
sachin

neo

Joined: 07/28/2006 04:22:53
Messages: 9
Offline

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.
bchever

journeyman

Joined: 05/24/2006 15:10:55
Messages: 18
Offline

Hi, Sachin.

Thanks for writing.

Yes, you are correct. As per page 25 of the TerracottaSessionsQuickStart.pdf;

"The java.util.concurrent package is not supported in this release of Terracotta. However, support for this package will be available in a future release of Terracotta."

Check back online for new releases. I will also see about getting you automatically notified when a new release is available that specifically addresses that package.

Sincerely,

Bill Chever
Product Support Manager
Terracotta, Inc.
sachin

neo

Joined: 07/28/2006 04:22:53
Messages: 9
Offline

thanks for the reply, and i'll appreciate if you'll keep me updated
bchever

journeyman

Joined: 05/24/2006 15:10:55
Messages: 18
Offline

Sachin,

Our newest release of the Terracotta product suite , version 2.1, is online and available at:
https://www.terracottatech.com/downloads.jsp

These kits add support for additional classes including java.util.concurrent.ConcurrentHashMap.

Thanks for your patience.


Bill Chever
Product Support Manager
Terracotta, Inc.
 
Forum Index -> Terracotta Platform
Go to:   
Powered by JForum 2.1.7 © JForum Team