You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Freeman Yue Fang (Jira)" <ji...@apache.org> on 2021/07/14 00:04:00 UTC

[jira] [Commented] (KARAF-7221) Karaf throws error when appliation uses the org.bouncycastle:bcpkix-fips:1.0.2'

    [ https://issues.apache.org/jira/browse/KARAF-7221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17380224#comment-17380224 ] 

Freeman Yue Fang commented on KARAF-7221:
-----------------------------------------

Hi [~shirapur],

A quick question, does bundle 45(which contains package com.intuit.platform.gateway) import package javax.security.auth?

Freeman

> Karaf throws error when appliation uses the org.bouncycastle:bcpkix-fips:1.0.2'
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-7221
>                 URL: https://issues.apache.org/jira/browse/KARAF-7221
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.2.8
>            Reporter: siddalinga hirapur
>            Priority: Blocker
>
> The application works fine without the karaf(by just starting the jetty server) but same thing fails when using karaf.
>  
> This issue is happening when the application updated the bouncyCastle library to "*org.bouncycastle:bcpkix-fips:1.0.2*" from  {color:#172b4d}"bcprov-jdk15on"
>  
>  java version : 
>  OpenJDK Runtime Environment Corretto-11.0.8.10.1 (build 11.0.8+10-LTS)
>  OpenJDK 64-Bit Server VM Corretto-11.0.8.10.1 (build 11.0.8+10-LTS, mixed mode)
>  
>  karaf version :
>  apache-karaf-4.2.8
>  
>  Below is the stack trace :{color}
> {color:#172b4d}
>  org.apache.karaf.features.internal.util.MultiException: Error restarting bundles:
>  Activator start error in bundle com.intuit.platform.gateway [45].
>  at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1044)
>  at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
>  at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
>  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>  at java.base/java.lang.Thread.run(Thread.java:834)
>  Suppressed: org.osgi.framework.BundleException: Activator start error in bundle com.intuit.platform.gateway [45].
>  at org.apache.felix.framework.Felix.activateBundle(Felix.java:2290)
>  at org.apache.felix.framework.Felix.startBundle(Felix.java:2146)
>  at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
>  at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
>  at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:165)
>  at org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1153)
>  at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1036)
>  ... 6 more
>  Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'PropertyPlaceholderConfigurer' defined in class path resource [beans/osgiApplicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.intuit.platform.gateway.core.spring.EnvironmentAwareIDPSBasedPropertyPlaceholderConfigurer]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: javax/security/auth/Destroyable
>  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1318)
>  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1216)
>  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:571)
>  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
>  at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
>  at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
>  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
>  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213)
>  at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:158)
>  at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:751)
>  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:569)
>  at com.intuit.platform.gateway.runtime.MainOSGi.start(MainOSGi.java:77)
>  at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
>  at org.apache.felix.framework.Felix.activateBundle(Felix.java:2240)
>  ... 12 more
>  Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.intuit.platform.gateway.core.spring.EnvironmentAwareIDPSBasedPropertyPlaceholderConfigurer]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: javax/security/auth/Destroyable
>  at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:225)
>  at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
>  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1310)
>  ... 25 more
>  Caused by: java.lang.NoClassDefFoundError: javax/security/auth/Destroyable
>  at java.base/java.lang.ClassLoader.defineClass1(Native Method)
>  at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
>  at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.defineClass(BundleWiringImpl.java:2410)
>  at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2194)
>  at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1607)
>  at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
>  at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
>  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
>  at java.base/java.lang.Class.forName0(Native Method)
>  at java.base/java.lang.Class.forName(Class.java:315)
>  at org.bouncycastle.crypto.fips.FipsStatus.loadClass(Unknown Source)
>  at org.bouncycastle.crypto.fips.FipsStatus.access$200(Unknown Source)
>  at org.bouncycastle.crypto.fips.FipsStatus$Loader.<init>(Unknown Source)
>  at org.bouncycastle.crypto.fips.FipsStatus.isReady(Unknown Source)
>  at org.bouncycastle.crypto.CryptoServicesRegistrar.getDefaultMode(Unknown Source)
>  at org.bouncycastle.crypto.CryptoServicesRegistrar.<clinit>(Unknown Source)
>  at org.bouncycastle.jcajce.provider.ProvSecureHash$MD5.configure(Unknown Source)
>  at org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider.<init>(Unknown Source)
>  at org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider.<init>(Unknown Source)
>  at org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider.<init>(Unknown Source)
>  at com.intuit.idps.core.utils.BcUtils.init(BcUtils.java:16)
>  at com.intuit.idps.domain.crypto.LocalCryptoService.<clinit>(LocalCryptoService.java:56)
>  at com.intuit.idps.service.rest.IdpsProperties$PropertiesNames.<clinit>(IdpsProperties.java:110)
>  at com.intuit.idps.service.rest.IdpsPropertiesImpl.init(IdpsPropertiesImpl.java:73)
>  at com.intuit.idps.service.rest.IdpsPropertiesImpl.<init>(IdpsPropertiesImpl.java:37)
>  at com.intuit.idps.service.IdpsClientImpl.getInstance(IdpsClientImpl.java:165)
>  at com.intuit.idps.IdpsClient$Factory.newInstance(IdpsClient.java:104)
>  at com.intuit.platform.sp.funcache.FlowIDPS.flowIDPS(FlowIDPS.java:37)
>  at com.intuit.platform.gateway.core.spring.EnvironmentAwareIDPSBasedPropertyPlaceholderConfigurer.init(EnvironmentAwareIDPSBasedPropertyPlaceholderConfigurer.java:75)
>  at com.intuit.platform.gateway.core.spring.EnvironmentAwareIDPSBasedPropertyPlaceholderConfigurer.<init>(EnvironmentAwareIDPSBasedPropertyPlaceholderConfigurer.java:62)
>  at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>  at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>  at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
>  at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:212)
>  ... 27 more
>  Caused by: java.lang.ClassNotFoundException: javax.security.auth.Destroyable not found by com.intuit.platform.gateway [45]
>  at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639)
>  at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
>  at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
>  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
>  ... 62 more
>  {color}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)