at net.openhft.affinity.impl.NullAffinity.getThreadId(NullAffinity.java:56)
Delving a bit deeper I inspect the WindowsJNA and get the following error:
java.lang.NoClassDefFoundError: Could not initialize class net.openhft.affinity.impl.WindowsJNAAffinity$CLibrary at net.openhft.affinity.impl.WindowsJNAAffinity.getAffinity(WindowsJNAAffinity.java:48) at net.openhft.affinity.Affinity.getThreadId(Affinity.java:170)
Am I doing something wrong? I'm not sure why it wouldnt load so any ideas or suggestion are very much appreciated.
Best regards,
Neil.
chronicle-affinity-3.0.jarchronicle-core-1.1.5.jarchronicle-lang-6.7.3.jarchronicle-map-2.3.9.jarchronicle-q-3.5.3.jar
Write:queue = ChronicleQueueBuilder.vanilla(basePath).cleanupOnClose(true).build();
public void handle(Event event) {
try {
ExcerptAppender appender = queue.createAppender();
appender.startExcerpt(event.getRawData().length() + 1 * 1024);appender.writeObject(event);appender.finish();} catch (IOException e) {
e.printStackTrace();}}
Exception:
java.lang.UnsupportedOperationExceptionat net.openhft.affinity.impl.NullAffinity.getThreadId(NullAffinity.java:56)at net.openhft.affinity.Affinity.getThreadId(Affinity.java:170)at net.openhft.affinity.AffinitySupport.getThreadId(AffinitySupport.java:28)at net.openhft.chronicle.VanillaChronicle$VanillaAppenderImpl.startExcerpt(VanillaChronicle.java:613)at net.openhft.chronicle.VanillaChronicle$VanillaAppenderImpl.startExcerpt(VanillaChronicle.java:605)at com.liquidlabs.log.space.agg.ChronicleQReplayAggregator.handle(ChronicleQReplayAggregator.java:73)
Source location: VanillaChronicle:
public void startExcerpt(long capacity, int cycle) {VanillaChronicle.this.checkNotClosed();
try {
this.appenderCycle = cycle;
>>>>> int e = AffinitySupport.getThreadId();
assert ((long)e & VanillaChronicle.THREAD_ID_MASK) == (long)e : "appenderThreadId: " + e;
--
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.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicle+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
lb