jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (Jira)" <j...@apache.org>
Subject [jira] [Updated] (OAK-9579) standalone: upgrade spring fwk to 2.5.5
Date Fri, 24 Sep 2021 10:39:00 GMT

     [ https://issues.apache.org/jira/browse/OAK-9579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Julian Reschke updated OAK-9579:
--------------------------------
    Labels: candidate_oak_1_22  (was: )

> standalone: upgrade spring fwk to 2.5.5
> ---------------------------------------
>
>                 Key: OAK-9579
>                 URL: https://issues.apache.org/jira/browse/OAK-9579
>             Project: Jackrabbit Oak
>          Issue Type: Technical task
>          Components: examples
>    Affects Versions: 1.40.0
>            Reporter: Julian Reschke
>            Assignee: Julian Reschke
>            Priority: Major
>              Labels: candidate_oak_1_22
>             Fix For: 1.42.0
>
>
> {noformat}
> [INFO] Running org.apache.jackrabbit.oak.standalone.RepositoryBootIT
>   .   ____          _            __ _ _
>  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
> ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
>  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
>   '  |____| .__|_| |_|_| |_\__, | / / / /
>  =========|_|==============|___/=/_/_/_/
>  :: Spring Boot ::       (v1.5.21.RELEASE)
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.236 s <<<
FAILURE! - in org.apache.jackrabbit.oak.standalone.RepositoryBootIT
> [ERROR] repositoryLogin(org.apache.jackrabbit.oak.standalone.RepositoryBootIT)  Time
elapsed: 0.008 s  <<< ERROR!
> java.lang.IllegalStateException: Failed to load ApplicationContext
>         at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124)
>         at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83)
>         at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:189)
>         at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:131)
>         at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:230)
>         at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:228)
>         at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:287)
>         at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>         at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:289)
>         at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:247)
>         at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94)
>         at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
>         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
>         at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
>         at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
>         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
>         at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
>         at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
>         at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
>         at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
>         at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
>         at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
>         at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
>         at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
>         at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
>         at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
>         at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
>         at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
>         at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
> Caused by: java.lang.IllegalStateException: Cannot load configuration class: org.apache.jackrabbit.oak.standalone.OakServer
>         at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:404)
>         at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:249)
>         at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:283)
>         at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:127)
>         at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687)
>         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:524)
>         at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
>         at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
>         at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
>         at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:121)
>         at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98)
>         at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116)
>         ... 28 more
> Caused by: java.lang.ExceptionInInitializerError
>         at org.springframework.context.annotation.ConfigurationClassEnhancer.newEnhancer(ConfigurationClassEnhancer.java:122)
>         at org.springframework.context.annotation.ConfigurationClassEnhancer.enhance(ConfigurationClassEnhancer.java:110)
>         at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:394)
>         ... 39 more
> Caused by: org.springframework.cglib.core.CodeGenerationException: java.lang.reflect.InaccessibleObjectException-->Unable
to make protected final java.lang.Class java.lang.ClassLoa
> der.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws
java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed
>  module @3d99d22e
>         at org.springframework.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:464)
>         at org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:336)
>         at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:93)
>         at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:91)
>         at org.springframework.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54)
>         at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>         at org.springframework.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61)
>         at org.springframework.cglib.core.internal.LoadingCache.get(LoadingCache.java:34)
>         at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:116)
>         at org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:291)
>         at org.springframework.cglib.core.KeyFactory$Generator.create(KeyFactory.java:221)
>         at org.springframework.cglib.core.KeyFactory.create(KeyFactory.java:174)
>         at org.springframework.cglib.core.KeyFactory.create(KeyFactory.java:153)
>         at org.springframework.cglib.proxy.Enhancer.<clinit>(Enhancer.java:73)
>         ... 42 more
> Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final
java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.secu
> rity.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base
does not "opens java.lang" to unnamed module @3d99d22e
>         at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
>         at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
>         at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
>         at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
>         at org.springframework.cglib.core.ReflectUtils$1.run(ReflectUtils.java:61)
>         at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
>         at org.springframework.cglib.core.ReflectUtils.<clinit>(ReflectUtils.java:52)
>         at org.springframework.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:243)
>         at org.springframework.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
>         at org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:329)
>         ... 54 more
> [INFO]
> [INFO] Results:
> [INFO]
> [ERROR] Errors:
> [ERROR]   RepositoryBootIT.repositoryLogin ยป IllegalState Failed to load ApplicationCont...
> [INFO]
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
> {noformat}



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

Mime
View raw message