You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.TypeInitializationException: Der Typeninitialisierer für "org.apache.sshd.server.ServerBuilder" hat eine Ausnahme verursacht..
Stack Trace:
at java.lang.invoke.MethodHandleImpl.BindCaller.checkCallerClass(Class expected, Class expected2, CallerID )
at PairwiseConvert(Object[] , Object , Object , Object )
at java.lang.invoke.MethodHandleImpl.BindCaller.makeInjectedInvoker(Class hostClass)
--- Ende der internen Ausnahmestapelüberwachung ---
at java.lang.invoke.MethodHandleImpl.BindCaller.makeInjectedInvoker(Class hostClass)
at java.lang.invoke.MethodHandleImpl.BindCaller.access$300(Class x0)
at java.lang.invoke.MethodHandleImpl.BindCaller.1.computeValue(Class hostClass)
at java.lang.invoke.MethodHandleImpl.BindCaller.1.computeValue(Class hostClass)
at java.lang.ClassValue.getFromHashMap(Class type)
at java.lang.ClassValue.getFromBackup(Entry[] cache, Class type)
at java.lang.ClassValue.get(Class type)
at java.lang.invoke.MethodHandleImpl.BindCaller.bindCaller(MethodHandle mh, Class hostClass)
at java.lang.invoke.MethodHandleImpl.bindCaller(MethodHandle mh, Class hostClass)
at java.lang.invoke.MethodHandles.Lookup.maybeBindCaller(MemberName method, MethodHandle mh, Class callerClass)
at java.lang.invoke.MethodHandles.Lookup.getDirectMethodCommon(Byte refKind, Class refc, MemberName method, Boolean checkSecurity, Boolean doRestrict, Class callerClass)
at java.lang.invoke.MethodHandles.Lookup.getDirectMethodNoSecurityManager(Byte refKind, Class refc, MemberName method, Class callerClass)
at java.lang.invoke.MethodHandles.Lookup.getDirectMethodForConstant(Byte refKind, Class defc, MemberName member)
at java.lang.invoke.MethodHandles.Lookup.linkMethodHandleConstant(Byte refKind, Class defc, String name, Object type)
at java.lang.invoke.MethodHandleNatives.linkMethodHandleConstant(Class callerClass, Int32 refKind, Class defc, String name, Object type)
at IKVM.Runtime.ByteCodeHelper.DynamicLoadMethodHandleImpl(Int32 kind, String clazz, String name, String sig, CallerID callerID)
at IKVM.Runtime.ByteCodeHelper.DynamicLoadMethodHandle(MethodHandle& cache, Int32 kind, String clazz, String name, String sig, CallerID callerID)
at org.apache.sshd.common.util.threads.ThreadUtils.1.__<>IndyCS1.BootstrapStub(Class )
at org.apache.sshd.common.util.threads.ThreadUtils.1..ctor(Class c) in ThreadUtils.java:Zeile 241.
at org.apache.sshd.common.util.threads.ThreadUtils.iterateDefaultClassLoaders(Class anchor) in ThreadUtils.java:Zeile 234.
at org.apache.sshd.common.util.threads.ThreadUtils.lambda$resolveDefaultClassLoaders$0(Class anchor) in ThreadUtils.java:Zeile 140.
at org.apache.sshd.common.util.threads.ThreadUtils.__<>Anon0.iterator()
at org.apache.sshd.common.util.threads.ThreadUtils.createDefaultInstance(Iterable cls, Class targetType, String className) in ThreadUtils.java:Zeile 174.
at org.apache.sshd.common.util.threads.ThreadUtils.createDefaultInstance(Class anchor, Class targetType, String className) in ThreadUtils.java:Zeile 161.
at org.apache.sshd.common.util.security.SecurityUtils.register() in SecurityUtils.java:Zeile 431.
at org.apache.sshd.common.util.security.SecurityUtils.createSecurityEntityFactory(Class entityType, Predicate entitySelector) in SecurityUtils.java:Zeile 726.
at org.apache.sshd.common.util.security.SecurityUtils.lambda$resolveSecurityEntityFactory$1(Class entityType, Predicate entitySelector, String k) in SecurityUtils.java:Zeile 715.
at org.apache.sshd.common.util.security.SecurityUtils.__<>Anon1.apply(Object )
at java.util.Map.<default>computeIfAbsent(Map , Object , Function )
at java.util.TreeMap.computeIfAbsent(Object , Function )
at org.apache.sshd.common.util.security.SecurityUtils.resolveSecurityEntityFactory(Class entityType, String algorithm, Predicate entitySelector) in SecurityUtils.java:Zeile 714.
at org.apache.sshd.common.util.security.SecurityUtils.getMessageDigest(String algorithm) in SecurityUtils.java:Zeile 759.
at org.apache.sshd.common.digest.DigestUtils.checkSupported(String algorithm) in DigestUtils.java:Zeile 54.
at org.apache.sshd.common.digest.BuiltinDigests..ctor(String str, Int32 i, String factoryName, String algorithm, Int32 blockSize) in BuiltinDigests.java:Zeile 59.
at org.apache.sshd.common.digest.BuiltinDigests..cctor() in BuiltinDigests.java:Zeile 36.
--- Ende der internen Ausnahmestapelüberwachung ---
at org.apache.sshd.common.cipher.ECCurves..cctor() in ECCurves.java:Zeile 62.
--- Ende der internen Ausnahmestapelüberwachung ---
at org.apache.sshd.common.keyprovider.KeyPairProvider..cctor() in KeyPairProvider.java:Zeile 63.
--- Ende der internen Ausnahmestapelüberwachung ---
at org.apache.sshd.common.signature.BuiltinSignatures..cctor() in BuiltinSignatures.java:Zeile 155.
--- Ende der internen Ausnahmestapelüberwachung ---
at org.apache.sshd.common.BaseBuilder..cctor() in BaseBuilder.java:Zeile 123.
--- Ende der internen Ausnahmestapelüberwachung ---
at org.apache.sshd.common.BaseBuilder.__<clinit>()
at org.apache.sshd.server.ServerBuilder..cctor() in ServerBuilder.java:Zeile 60.
--- Ende der internen Ausnahmestapelüberwachung ---
at org.apache.sshd.server.ServerBuilder.builder()
at org.apache.sshd.server.SshServer.setUpDefaultServer() in SshServer.java:Zeile 441.
at test.EmbeddedSftpServer.start(Local directory)
at test.EmbeddedSftpServer.start()
at Test.StartEmbeddedSftpServer()
at Test.StartEmbeddedServers()
at Test.ClassSetup(TestContext testContext)
Stack Trace (Repro, .NET 6)
Unhandled exception. System.TypeInitializationException: The type initializer for 'org.apache.sshd.server.ServerBuilder' threw an exception.
---> System.TypeInitializationException: The type initializer for 'org.apache.sshd.common.BaseBuilder' threw an exception.
---> System.TypeInitializationException: The type initializer for 'org.apache.sshd.common.signature.BuiltinSignatures' threw an exception.
---> System.TypeInitializationException: The type initializer for 'org.apache.sshd.common.keyprovider.KeyPairProvider' threw an exception.
---> System.TypeInitializationException: The type initializer for 'org.apache.sshd.common.cipher.ECCurves' threw an exception.
---> System.TypeInitializationException: The type initializer for 'org.apache.sshd.common.digest.BuiltinDigests' threw an exception.
---> java.lang.InternalError: java.lang.InternalError: found java.lang.invoke.MethodHandleImpl$BindCaller, expected org.apache.sshd.common.util.threads.ThreadUtils$1, or else java.lang.invoke.MethodHandleImpl$BindCaller$T/54875957
--- End of inner exception stack trace ---
at org.apache.sshd.common.cipher.ECCurves..cctor()
--- End of inner exception stack trace ---
at org.apache.sshd.common.keyprovider.KeyPairProvider..cctor()
--- End of inner exception stack trace ---
at org.apache.sshd.common.signature.BuiltinSignatures..cctor()
--- End of inner exception stack trace ---
at org.apache.sshd.common.signature.BuiltinSignatures.get_nistp256_cert()
at org.apache.sshd.common.BaseBuilder..cctor()
--- End of inner exception stack trace ---
at org.apache.sshd.common.BaseBuilder.__<clinit>()
at org.apache.sshd.server.ServerBuilder..cctor()
--- End of inner exception stack trace ---
at org.apache.sshd.server.ServerBuilder.builder()
at org.apache.sshd.server.SshServer.setUpDefaultServer()
at Program.<Main>$(String[] args) in c:\Users\user\Desktop\ikvm-test\Program.cs:line 4
On a fresh Windows 11 22631.3447, with .NET 6 runtime installed from Visual Studio Installer, using an en-US image, I still encounter the type initialization error.
Stack Trace
Stack Trace (Repro, .NET 6)
Related Java code: apache mina-sshd/SecurityUtils.java
Repro: ikvm-test.zip
dotnet --info
The text was updated successfully, but these errors were encountered: