AIP Console - Installation - AIP Console Service is stopping abruptly with open JDK- ERROR - BeanPostProcessor before instantiation of bean failed


Purpose

This page will help you to you resolve the error - 

"Error creating bean with name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': BeanPostProcessor before instantiation of bean failed"

 when trying to run Console service, which is getting stopped abruptly.



Observed in CAST Version

Release

Yes/No

1.23.0(tick)


Observed in RDBMS


RDBMS

Yes/No

CSS4(tick)
CSS3(tick)
CSS2(tick)


Step by Step scenario

1. Install CAST AIP Core
2. Install CAST Storage Service
3. Install open OPEN JDK
4. Install CAST AIP Console
5. Start AIP console and node Services 

Error stack is shown below:


java.lang.reflect.InaccessibleObjectException: Unable to make protected native java.lang.Object java.lang.Object.clone() throws java.lang.CloneNotSupportedException accessible: module java.base does not "opens java.lang" to unnamed module @1134affc
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:511) ~[spring-beans-5.2.13.RELEASE.jar!/:5.2.13.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.13.RELEASE.jar!/:5.2.13.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.13.RELEASE.jar!/:5.2.13.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.13.RELEASE.jar!/:5.2.13.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207) ~[spring-beans-5.2.13.RELEASE.jar!/:5.2.13.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:241) ~[spring-context-5.2.13.RELEASE.jar!/:5.2.13.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:723) ~[spring-context-5.2.13.RELEASE.jar!/:5.2.13.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:536) ~[spring-context-5.2.13.RELEASE.jar!/:5.2.13.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-2.3.9.RELEASE.jar!/:2.3.9.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758) ~[spring-boot-2.3.9.RELEASE.jar!/:2.3.9.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750) [spring-boot-2.3.9.RELEASE.jar!/:2.3.9.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405) [spring-boot-2.3.9.RELEASE.jar!/:2.3.9.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-2.3.9.RELEASE.jar!/:2.3.9.RELEASE]
at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140) [spring-boot-2.3.9.RELEASE.jar!/:2.3.9.RELEASE]
at com.castsoftware.aip.console.AipConsoleApplication.main(AipConsoleApplication.java:21) [classes!/:1.23.0-83]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) [aip-console-app.jar:1.23.0-83]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:107) [aip-console-app.jar:1.23.0-83]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) [aip-console-app.jar:1.23.0-83]
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88) [aip-console-app.jar:1.23.0-83]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metaDataSourceAdvisor': Cannot resolve reference to bean 'methodSecurityMetadataSource' while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'methodSecurityConfig': Unsatisfied dependency expressed through method 'setWebSecurity' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating




Action Plan

The issue may happen when the NODE and the CONSOLE are launched as Windows services. The JDK installed in the platform is not the one from ORACLE, it is an OPEN JDK which is causing the issue.

To solve the issue, perform the below actions 

1. You can download the Jre-8u291 for Windows 64 bit machine from the below website 
https://www.java.com/en/download/manual.jsp

2. Then Un-install the AIP Console and install it again.

3. Now start both the node and console services.

4. If the above steps do not solve your issue contact CAST Technical Support. with the following Relevant Input  for CAST Technical Support to carry out further investigation.        

Relevant input

Notes/comments
Ticket # 29552


Related Pages