[Nov 10 12:49:48.540] INFO - Static: Starting FastNIODriver Scheduler:
threads: 2, maxThreads: 1250, workTimeout/spinsOnSelect: 100,
spinsUntilPark: 1000, doSpinSelect: false
Exception in thread "main" com.walleyetrading.base.verify.AssertionFailure:
Assertion failed: asserted java.lang.ClassNotFoundException is never
caught, instead
java.lang.ClassNotFoundException(sun.nio.ch.WindowsSelectorImpl) caught.
at com.walleyetrading.base.verify.Assert.fail(Assert.java:81)
at
com.walleyetrading.base.verify.Assert.exceptionNeverCaught(Assert.java:199)
at
com.walleyetrading.io.NioUtil.reduceSelectorGarbage(NioUtil.java:90)
at
com.fishlib.net.impl.nio.FastNIODriver.createDrivers(FastNIODriver.java:67)
at
com.fishlib.net.impl.nio.FastNIODriver.createDrivers(FastNIODriver.java:55)
at com.fishlib.net.impl.nio.NIODriver.init(NIODriver.java:109)
at com.fishlib.net.impl.nio.NIODriver.init(NIODriver.java:99)
at com.fishlib.net.CommBase.getScheduler(CommBase.java:336)
at
com.walleyetrading.walleyedb.tables.remotequery.QueryDispatcherConnectionImpl.<init>(QueryDispatcherConnectionImpl.java:52)
at
com.walleyetrading.walleyedb.tables.remotequery.QueryDispatcherConnectionImpl.getConnection(QueryDispatcherConnectionImpl.java:382)
at
com.walleyetrading.walleyedb.tables.remotequery.QueryDispatcherConnectionImpl.getConnection(QueryDispatcherConnectionImpl.java:359)
at
com.walleyetrading.walleyedb.tables.remotequery.QueryDispatcherConnectionImpl.getConnection(QueryDispatcherConnectionImpl.java:351)
at
com.walleyetrading.walleyedb.tables.remotequery.RemoteQueryClient.<init>(RemoteQueryClient.java:76)
at
com.walleyetrading.walleyedb.tables.remotequery.RemoteQueryClient.<init>(RemoteQueryClient.java:73)
at
com.illumon.integrations.common.IrisDbGroovySession.<init>(IrisDbGroovySession.java:73)
at irisnet.Solution.main(Solution.java:16)
Caused by: java.lang.ClassNotFoundException: sun.nio.ch.WindowsSelectorImpl
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:440)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:375)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:493)
at IKVM.Internal.ClassLoaderWrapper.LoadClassImpl(Unknown Source)
at IKVM.Internal.ClassLoaderWrapper.LoadClass(Unknown Source)
at Java_java_lang_Class.forName0(Unknown Source)
at java.lang.Class.forName(Class.java:302)
at
com.walleyetrading.io.NioUtil.reduceSelectorGarbage(NioUtil.java:58)
... 13 more
The odd thing is that, shortly before the failing call, we call:
Class<?> selectorImplClass=Class.forName("sun.nio.ch.SelectorImpl");
Require.instanceOf(selector, "selector", selectorImplClass);
and that suceeeds.
On Thu, Nov 10, 2016 at 12:55 PM, Volker Berlin <
Post by Volker BerlinHi Paul,
The class sun.nio.ch.WindowsSelectorImpl is not part of the IKVM. Do you
have a stacktrace?
Volker
By the way, the failure to find the class is being initated by
Class.forName().
I also tried extracting rt.jar and adding the extracted path to -cp. That
didn't help either.
Post by Paul ChambreHi folks,
I'm trying to convert a jar to a dll, but that's failing to
load/initialize. To narrow down the problem, I tried running the jar from
java and from ikvm.
I have to pass a number of -D properties to the jvm to run the jar. I put
these into a batch file and made two copies... one using java and the other
using ikvm. The java version runs correctly, but the ikvm version fails
with class not found exceptions for core runtime items from rt.jar (e.g.
sun.nio.ch.WindowsSelectorImpl).
The ikvm version is 8.1.5717.
The JRE version is 1.8.0_60.
I am running in my C# app's bin\debug directory, with all of the jar
files, and all of the ikvm bin files, copied locally. Copying rt.jar
locally did not make a difference.
Thanks,
Paul
--
Paul Chambre
Senior Solutions Architect
(719) 465-6097
Illumon - Big Value From Big Data
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
------------------------------------------------------------
------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Ikvm-developers mailing list
https://lists.sourceforge.net/lists/listinfo/ikvm-developers
--
Paul Chambre
Senior Solutions Architect
(719) 465-6097
Illumon - Big Value From Big Data