サポート様
早速ですが以下の環境でクラスのロード時にcom.groupdocs.viewer.ViewerのNoClassDefFoundErrorが発生します。解決策のご教授をお願いいたします。
OS: Redhat Linux
Java: JRE17
フレームワーク: spring batch
実行ログを以下に掲載します。
2024-11-21 15:11:06.839 ,INFO ,jp.AppMain ,Starting AppMain v1.0.0 using Java 17.0.1 with PID 23208 (C:\development\WORKSPACE4\ossei_xxxxxxxxx_mbupload_batch\target\ossei_xxxxxxxxx_mbupload_batch-1.0.0.jar started by matsubara.sumika in C:\development\Eclipse3\pleiades\java\17\bin)
2024-11-21 15:11:06.841 ,INFO ,jp.AppMain ,No active profile set, falling back to 1 default profile: “default”
2024-11-21 15:11:07.361 ,WARN ,org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker,Bean ‘org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari’ of type [org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [jobRegistryBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-11-21 15:11:07.387 ,WARN ,org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker,Bean ‘spring.datasource-org.springframework.boot.autoconfigure.jdbc.DataSourceProperties’ of type [org.springframework.boot.autoconfigure.jdbc.DataSourceProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [jobRegistryBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-11-21 15:11:07.389 ,WARN ,org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker,Bean ‘org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$PooledDataSourceConfiguration’ of type [org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$PooledDataSourceConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [jobRegistryBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-11-21 15:11:07.390 ,WARN ,org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker,Bean ‘jdbcConnectionDetails’ of type [org.springframework.boot.autoconfigure.jdbc.PropertiesJdbcConnectionDetails] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [jobRegistryBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-11-21 15:11:07.415 ,WARN ,org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker,Bean ‘dataSource’ of type [com.zaxxer.hikari.HikariDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [jobRegistryBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-11-21 15:11:07.419 ,WARN ,org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker,Bean ‘org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration$JdbcTransactionManagerConfiguration’ of type [org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration$JdbcTransactionManagerConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [jobRegistryBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-11-21 15:11:07.423 ,WARN ,org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker,Bean ‘org.springframework.boot.autoconfigure.transaction.TransactionManagerCustomizationAutoConfiguration’ of type [org.springframework.boot.autoconfigure.transaction.TransactionManagerCustomizationAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [jobRegistryBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-11-21 15:11:07.428 ,WARN ,org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker,Bean ‘transactionExecutionListeners’ of type [org.springframework.boot.autoconfigure.transaction.ExecutionListenersTransactionManagerCustomizer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [jobRegistryBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-11-21 15:11:07.432 ,WARN ,org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker,Bean ‘spring.transaction-org.springframework.boot.autoconfigure.transaction.TransactionProperties’ of type [org.springframework.boot.autoconfigure.transaction.TransactionProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [jobRegistryBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-11-21 15:11:07.432 ,WARN ,org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker,Bean ‘platformTransactionManagerCustomizers’ of type [org.springframework.boot.autoconfigure.transaction.TransactionManagerCustomizers] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [jobRegistryBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-11-21 15:11:07.437 ,WARN ,org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker,Bean ‘transactionManager’ of type [org.springframework.jdbc.support.JdbcTransactionManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [jobRegistryBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-11-21 15:11:07.440 ,WARN ,org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker,Bean ‘spring.batch-org.springframework.boot.autoconfigure.batch.BatchProperties’ of type [org.springframework.boot.autoconfigure.batch.BatchProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [jobRegistryBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-11-21 15:11:07.445 ,WARN ,org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker,Bean ‘org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration$SpringBootBatchConfiguration’ of type [org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration$SpringBootBatchConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). The currently created BeanPostProcessor [jobRegistryBeanPostProcessor] is declared through a non-static factory method on that class; consider declaring it as static instead.
2024-11-21 15:11:07.470 ,WARN ,org.springframework.context.annotation.AnnotationConfigApplicationContext,Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘BM2D001_MakeDisclosurexxxxxxxxx’: Lookup method resolution failed
2024-11-21 15:11:07.492 ,ERROR,org.springframework.boot.SpringApplication ,Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘BM2D001_MakeDisclosurexxxxxxxxx’: Lookup method resolution failed
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.checkLookupMethods(AutowiredAnnotationBeanPostProcessor.java:497)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:367)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1294)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1189)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:975)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:962)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:334)
at jp.AppMain.main(AppMain.java:52)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:91)
at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:53)
at org.springframework.boot.loader.launch.JarLauncher.main(JarLauncher.java:58)
Caused by: java.lang.IllegalStateException: Failed to introspect Class [jp.co.xxxxx.xxxxx.xxxxxxxxx.millboxupload.batch.service.BM2D001_MakeDisclosurexxxxxxxxx] from ClassLoader [org.springframework.boot.loader.launch.LaunchedClassLoader@7c3df479]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:483)
at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:320)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.checkLookupMethods(AutowiredAnnotationBeanPostProcessor.java:475)
… 23 common frames omitted
Caused by: java.lang.NoClassDefFoundError: com/groupdocs/viewer/options/ViewOptions <==========クラスが読めていない
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3402)
at java.base/java.lang.Class.getDeclaredMethods(Class.java:2504)
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:465)
… 25 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.groupdocs.viewer.options.ViewOptions <==========クラスが読めていない
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
at org.springframework.boot.loader.net.protocol.jar.JarUrlClassLoader.loadClass(JarUrlClassLoader.java:104)
at org.springframework.boot.loader.launch.LaunchedClassLoader.loadClass(LaunchedClassLoader.java:91)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
… 29 common frames omitted