private static ChronicleMap<String, ConcurrentHashMap<String,String>> createChronicleMap() throws IOException {
File dnmapfile = new File(dnmapfilename);
ChronicleMapBuilder<String, ConcurrentHashMap<String, String>> builder = ChronicleMapBuilder.of(String.class, (Class<ConcurrentHashMap<String, String>>) (Class) ConcurrentHashMap.class);
return builder.createPersistedTo(dnmapfile);
}
No field 'actualChunksPerSegment' found in class 'net.openhft.chronicle.map.VanillaChronicleMap"
Exception in thread "main" java.lang.AssertionError: java.lang.reflect.InvocationTargetException at net.openhft.chronicle.map.ChronicleMapBuilder.deserializeHeaderViaXStream(ChronicleMapBuilder.java:1356) at net.openhft.chronicle.map.ChronicleMapBuilder.createWithFile(ChronicleMapBuilder.java:1270) at net.openhft.chronicle.map.ChronicleMapBuilder.createPersistedTo(ChronicleMapBuilder.java:1241) at com.corp.group.DTracker.createChronicleMap(DTracker.java:53) at com.corp.group.DTracker.<init>(DTracker.java:40) at com.corp.group.LNotifier.main(LNotifier.java:27)Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.openhft.chronicle.map.ChronicleMapBuilder.deserializeHeaderViaXStream(ChronicleMapBuilder.java:1353) ... 5 moreCaused by: com.thoughtworks.xstream.converters.ConversionException: Could not call net.openhft.chronicle.map.VanillaChronicleMap.readObject() : No field 'actualChunksPerSegment' found in class 'net.openhft.chronicle.map.VanillaChronicleMap'---- Debugging information ----message : Could not call net.openhft.chronicle.map.VanillaChronicleMap.readObject()cause-exception : com.thoughtworks.xstream.converters.reflection.MissingFieldExceptioncause-message : No field 'actualChunksPerSegment' found in class 'net.openhft.chronicle.map.VanillaChronicleMap'class : net.openhft.chronicle.map.VanillaChronicleMaprequired-type : net.openhft.chronicle.map.VanillaChronicleMapconverter-type : com.thoughtworks.xstream.converters.reflection.SerializableConverterpath : /net.openhft.chronicle.map.VanillaChronicleMap/net.openhft.chronicle.map.VanillaChronicleMap/default/actualChunksPerSegmentline number : 5version : 3.1.2-alpha-SNAPSHOT------------------------------- at com.thoughtworks.xstream.core.util.SerializationMembers.callReadObject(SerializationMembers.java:133) at com.thoughtworks.xstream.converters.reflection.SerializableConverter.doUnmarshal(SerializableConverter.java:455) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:263) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1206) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1190) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1070) ... 10 moreCaused by: com.thoughtworks.xstream.converters.reflection.MissingFieldException: No field 'actualChunksPerSegment' found in class 'net.openhft.chronicle.map.VanillaChronicleMap' at com.thoughtworks.xstream.converters.reflection.FieldDictionary.field(FieldDictionary.java:94) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.getFieldType(PureJavaReflectionProvider.java:159) at com.thoughtworks.xstream.converters.reflection.ReflectionProviderWrapper.getFieldType(ReflectionProviderWrapper.java:45) at com.thoughtworks.xstream.converters.reflection.SerializableConverter$2.defaultReadObject(SerializableConverter.java:411) at com.thoughtworks.xstream.core.util.CustomObjectInputStream.defaultReadObject(CustomObjectInputStream.java:116) at net.openhft.chronicle.map.VanillaChronicleMap.readObject(VanillaChronicleMap.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.thoughtworks.xstream.core.util.SerializationMembers.callReadObject(SerializationMembers.java:125) ... 21 more
--
You received this message because you are subscribed to the Google Groups "Chronicle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
interface CompositeKey{
K1 getKey1();
void setKey1(K1 key1);
K2 getKey2();
void setKey2(K2 key2);
}
And then create a ChronicleMap<CompositeKey,V>...