You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Chatree Srichart (Jira)" <ji...@apache.org> on 2022/11/09 17:44:00 UTC
[jira] [Commented] (OFBIZ-12681) itext is conflicting with org.apache.sshd
[ https://issues.apache.org/jira/browse/OFBIZ-12681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17631182#comment-17631182 ]
Chatree Srichart commented on OFBIZ-12681:
------------------------------------------
How about excluding the bouncycastle modules in the itext dependency?
See patch: [^exclude_bouncycastle.patch]
> itext is conflicting with org.apache.sshd
> -----------------------------------------
>
> Key: OFBIZ-12681
> URL: https://issues.apache.org/jira/browse/OFBIZ-12681
> Project: OFBiz
> Issue Type: Bug
> Components: start
> Affects Versions: 18.12.05
> Reporter: Stephen Davidson
> Priority: Major
> Attachments: exclude_bouncycastle.patch
>
>
> The recent update to org.apache.sshd 2.8.0 is causing conflicts with the bouncycastle version imported by itext 2.1.7. This conflict is causing the following failure when trying to start OFBiz from the command line:
> {code:java}
> $ java.exe -jar build/libs/ofbiz.jar --start
> Config.java using configuration file start.properties
> Set OFBIZ_HOME to - D:\Martin\git\ofbiz-framework-asf
> Exception in thread "main" java.util.ServiceConfigurationError: java.nio.file.spi.FileSystemProvider: Provider org.apache.sshd.client.subsystem.sftp.SftpFileSystemProvider could not be instantiated
> at java.util.ServiceLoader.fail(ServiceLoader.java:232)
> at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
> at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
> at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
> at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
> at java.nio.file.spi.FileSystemProvider.loadInstalledProviders(FileSystemProvider.java:119)
> at java.nio.file.spi.FileSystemProvider.access$000(FileSystemProvider.java:77)
> at java.nio.file.spi.FileSystemProvider$1.run(FileSystemProvider.java:169)
> at java.nio.file.spi.FileSystemProvider$1.run(FileSystemProvider.java:166)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.nio.file.spi.FileSystemProvider.installedProviders(FileSystemProvider.java:166)
> at java.nio.file.Paths.get(Paths.java:141)
> at org.apache.logging.log4j.core.util.Source.toFile(Source.java:55)
> at org.apache.logging.log4j.core.util.Source.<init>(Source.java:142)
> at org.apache.logging.log4j.core.config.ConfigurationSource.<init>(ConfigurationSource.java:139)
> at org.apache.logging.log4j.core.config.ConfigurationSource.getConfigurationSource(ConfigurationSource.java:388)
> at org.apache.logging.log4j.core.config.ConfigurationSource.fromResource(ConfigurationSource.java:366)
> at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:554)
> at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:483)
> at org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:325)
> at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:690)
> at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:711)
> at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:253)
> at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:245)
> at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47)
> at org.apache.logging.log4j.LogManager.getContext(LogManager.java:176)
> at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:666)
> at org.apache.logging.log4j.LogManager.getRootLogger(LogManager.java:700)
> at org.apache.ofbiz.base.util.Debug.<clinit>(Debug.java:57)
> at org.apache.ofbiz.base.util.UtilXml$LocalResolver.resolveEntity(UtilXml.java:1109)
> at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown Source)
> at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source)
> at org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument(Unknown Source)
> at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown Source)
> at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
> at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
> at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
> at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
> at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
> at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
> at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
> at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
> at org.apache.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:452)
> at org.apache.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:392)
> at org.apache.ofbiz.base.component.ComponentLoaderConfig.parseDocumentFromUrl(ComponentLoaderConfig.java:166)
> at org.apache.ofbiz.base.component.ComponentLoaderConfig.getComponentsFromConfig(ComponentLoaderConfig.java:80)
> at org.apache.ofbiz.base.component.ComponentLoaderConfig.getRootComponents(ComponentLoaderConfig.java:70)
> at org.apache.ofbiz.base.container.ComponentContainer.init(ComponentContainer.java:74)
> at org.apache.ofbiz.base.container.ComponentContainer.init(ComponentContainer.java:57)
> at org.apache.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
> at org.apache.ofbiz.base.start.StartupControlPanel.loadContainers(StartupControlPanel.java:146)
> at org.apache.ofbiz.base.start.StartupControlPanel.start(StartupControlPanel.java:70)
> at org.apache.ofbiz.base.start.Start.main(Start.java:89)
> Caused by: java.lang.SecurityException: class "org.bouncycastle.crypto.prng.VMPCRandomGenerator"'s signer information does not match signer information of other classes in the same package
> at java.lang.ClassLoader.checkCerts(ClassLoader.java:891)
> at java.lang.ClassLoader.preDefineClass(ClassLoader.java:661)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:754)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
> at org.apache.sshd.common.util.security.bouncycastle.BouncyCastleRandom.<init>(BouncyCastleRandom.java:43)
> at org.apache.sshd.common.util.security.bouncycastle.BouncyCastleRandomFactory.create(BouncyCastleRandomFactory.java:43)
> at org.apache.sshd.common.util.security.bouncycastle.BouncyCastleRandomFactory.create(BouncyCastleRandomFactory.java:28)
> at org.apache.sshd.common.random.SingletonRandomFactory.<init>(SingletonRandomFactory.java:39)
> at org.apache.sshd.common.BaseBuilder.fillWithDefaultValues(BaseBuilder.java:163)
> at org.apache.sshd.client.ClientBuilder.fillWithDefaultValues(ClientBuilder.java:103)
> at org.apache.sshd.client.ClientBuilder.fillWithDefaultValues(ClientBuilder.java:49)
> at org.apache.sshd.common.BaseBuilder.build(BaseBuilder.java:265)
> at org.apache.sshd.client.ClientBuilder.build(ClientBuilder.java:146)
> at org.apache.sshd.client.ClientBuilder.build(ClientBuilder.java:49)
> at org.apache.sshd.common.BaseBuilder.build(BaseBuilder.java:288)
> at org.apache.sshd.client.SshClient.setUpDefaultClient(SshClient.java:790)
> at org.apache.sshd.client.subsystem.sftp.SftpFileSystemProvider.<init>(SftpFileSystemProvider.java:157)
> at org.apache.sshd.client.subsystem.sftp.SftpFileSystemProvider.<init>(SftpFileSystemProvider.java:149)
> at org.apache.sshd.client.subsystem.sftp.SftpFileSystemProvider.<init>(SftpFileSystemProvider.java:135)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> at java.lang.Class.newInstance(Class.java:442)
> at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
> ... 54 more
> Exception in thread "Thread-0" java.lang.NoClassDefFoundError: Could not initialize class org.apache.ofbiz.base.util.Debug
> at org.apache.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:165)
> at org.apache.ofbiz.base.start.StartupControlPanel.shutdownServer(StartupControlPanel.java:112)
> at org.apache.ofbiz.base.start.StartupControlPanel.lambda$start$0(StartupControlPanel.java:65)
> at java.lang.Thread.run(Thread.java:750) {code}
> The following command:
> {code:java}
> bin/ofbiz
> {code}
> gives the same result.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)