使用石英调度程序的springboot应用程序中的错误

2020-09-18 12:54发布

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


嗨,

我的Java应用程序运行正常,在Windows Server和本地服务器中没有任何错误。 但它不是在Sap neo环境中启动,并且会引发以下错误。

2018 06 19 09:23:08#+ 00#ERROR#org.springframework.boot.SpringApplication ## anonymous#localhost-startStop-1#na#p2000052889trial#asianpaintinternal#web ## na#na#na#na#na #Application启动失败的org.springframework.beans.factory.BeanCreationException:创建在类路径资源[com/neeyamo/asianpaint/quartz/QuartzConfig.class]中定义的名称为'schedulerFactoryBean'的bean时出错:调用init方法失败; 嵌套的异常是org.springframework.beans.BeanInstantiationException:无法实例化[org.quartz.impl.StdSchedulerFactory]:构造函数引发了异常; 嵌套异常是java.lang.LinkageError:违反加载程序约束:'org.apache.catalina.loader.ParallelWebappClassLoader@7d9c505e(网址:['],父母:[]'java.net.URLClassLoader@449b2d27'] )先前开始加载org.slf4j.ILoggerFactory(加载器'System',urls:['file:/usr/lib/jvm/sapjvm_8/sapjvm_8/lib/jvmx.jar','file:/usr/lib/jvm/sapjvm_8/sapjvm_8/lib/tools.jar','文件:/usr/sap/ljs/bin/jul-to-slf4j.jar','文件:/usr/sap/ljs/bin/slf4j-api.jar' ,'file:/usr/sap/ljs/bin/logback-classic.jar','file:/usr/sap/ljs/bin/logback-core.jar','file:/usr/sap/ljs/bin/logback-config/','文件:/usr/sap/ljs/bin/com.sap.core.js.logging.jar','文件:/usr/sap/ljs/bin/bootstrap.jar',' 文件:/usr/sap/ljs/bin/tomcat-juli.jar'],父级:['Extension'])在org.org上的org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628) .springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(Abstrac 在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)在org.springframework.beans.factors.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:306)处的tAutowireCapableBeanFactory.java:555) org.springframework.beans.factors.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)在org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)在org.springframework.beans.factory。 org.springframework.context.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java :)上的support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)在org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742) 866)在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)在或 g.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)在org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737)在org.springframework.boot.SpringApplication.refreshContext(SpringApplication。 org.springframework.boot.SpringApplication.run(SpringApplication.java:314)上的org.springframework.boot.web.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:151)上的org.springframework.boot.web上的java:370) org.springframework.boot.web.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:86)上的.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:131)在org.springframework.web.SpringServletContainerInitializer.onStartup(169) )org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java :)的org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196) 150)在org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)的org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)在org.apache.catalina.java.728 org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:986)的org.apache.catalina.startup.HostConfig $ DeployWar.run(HostConfig.java:1857)的.addChild(StandardHost.java:734) java.util.concurrent.FutureTask.run(FutureTask.java:266)上的java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: 1149)at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)at java.lang.Thread.run(Thread.java:808)原因: org.springframework.beans.BeanInstantiationException: 无法实例化[org.quartz.impl.StdSchedulerFactory]:构造方法抛出异常; 嵌套的异常是java.lang.LinkageError:违反加载程序约束:'org.apache.catalina.loader.ParallelWebappClassLoader@7d9c505e(url:['],父母:[)'java.net.URLClassLoader@449b2d27'])先前启动的加载 org.slf4j.ILoggerFactory的版本(加载程序"系统",网址:['文件:/usr/lib/jvm/sapjvm_8/sapjvm_8/lib/jvmx.jar","文件:/usr/lib/jvm/sapjvm_8/sapjvm_8/lib/tools.jar','文件:/usr/sap/ljs/bin/jul-to-slf4j.jar','文件:/usr/sap/ljs/bin/slf4j-api.jar' ,'file:/usr/sap/ljs/bin/logback-classic.jar','file:/usr/sap/ljs/bin/logback-core.jar','file:/usr/sap/ljs/bin/logback-config/','文件:/usr/sap/ljs/bin/com.sap.core.js.logging.jar','文件:/usr/sap/ljs/bin/bootstrap.jar',' 文件:/usr/sap/ljs/bin/tomcat-juli.jar'],父级:['Extension'])在org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:154)在org.springframework.beans 位于org.springframework.scheduling.quartz.SchedulerFactoryBean.afterPropertiesSet(Schedule的.BeanUtils.instantiateClass(BeanUtils.java:102) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)的org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)的rFactoryBean.java:456)。 。<29>省略了29个常见的框架原因:java.lang.LinkageError:违反加载程序约束:'org.apache.catalina.loader.ParallelWebappClassLoader@7d9c505e(url:['],父母:[)'java.net.URLClassLoader @ 449b2d27'])之前已开始加载org.slf4j.ILoggerFactory (加载器"系统",网址:['file:/usr/lib/jvm/sapjvm_8/sapjvm_8/lib/jvmx.jar","文件 :/usr/lib/jvm/sapjvm_8/sapjvm_8/lib/tools.jar','文件:/usr/sap/ljs/bin/jul-to-slf4j.jar','文件:/usr/sap/ljs/bin/slf4j-api.jar","文件:/usr/sap/ljs/bin/logback-classic.jar","文件:/usr/sap/ljs/bin/logback-core.jar","文件:/usr/sap/ljs/bin/logback-config/','文件:/usr/sap/ljs/bin/com.sap.core.js.logging.jar','文件:/usr /sap/ljs/bin/bootstrap.jar','文件:/usr/sap/ljs/bin/tomcat-juli.jar'],父级:['Extension']),位于java.lang.ClassLoader.defineClass1(Native 方法)在org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2283)上的java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)上的java.lang.ClassLoader.defineClass(ClassLoader.java:863) )的org.apache.catalina.loader.WebappClassLoaderBase.java:811的org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1260)的org.apache.catalina.loader.WebappClassLoaderBase的)。 org.quartz.impl.StdSchedulerFactory上的loadClass(WebappClassLoaderBase.java:1119).sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native方法)上的init。(StdSchedulerFactory.java:303)在sun.reflect.NativeConstructorAccessorImpl.newInstance(Native方法) java:62)在sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAcce org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:142)的java.lang.reflect.Constructor.newInstance(Constructor.java:423)的ssorImpl.java:45)...省略了33个常见的框架

请帮助我。

预先感谢

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


嗨,

我的Java应用程序运行正常,在Windows Server和本地服务器中没有任何错误。 但它不是在Sap neo环境中启动,并且会引发以下错误。

2018 06 19 09:23:08#+ 00#ERROR#org.springframework.boot.SpringApplication ## anonymous#localhost-startStop-1#na#p2000052889trial#asianpaintinternal#web ## na#na#na#na#na #Application启动失败的org.springframework.beans.factory.BeanCreationException:创建在类路径资源[com/neeyamo/asianpaint/quartz/QuartzConfig.class]中定义的名称为'schedulerFactoryBean'的bean时出错:调用init方法失败; 嵌套的异常是org.springframework.beans.BeanInstantiationException:无法实例化[org.quartz.impl.StdSchedulerFactory]:构造函数引发了异常; 嵌套异常是java.lang.LinkageError:违反加载程序约束:'org.apache.catalina.loader.ParallelWebappClassLoader@7d9c505e(网址:['],父母:[]'java.net.URLClassLoader@449b2d27'] )先前开始加载org.slf4j.ILoggerFactory(加载器'System',urls:['file:/usr/lib/jvm/sapjvm_8/sapjvm_8/lib/jvmx.jar','file:/usr/lib/jvm/sapjvm_8/sapjvm_8/lib/tools.jar','文件:/usr/sap/ljs/bin/jul-to-slf4j.jar','文件:/usr/sap/ljs/bin/slf4j-api.jar' ,'file:/usr/sap/ljs/bin/logback-classic.jar','file:/usr/sap/ljs/bin/logback-core.jar','file:/usr/sap/ljs/bin/logback-config/','文件:/usr/sap/ljs/bin/com.sap.core.js.logging.jar','文件:/usr/sap/ljs/bin/bootstrap.jar',' 文件:/usr/sap/ljs/bin/tomcat-juli.jar'],父级:['Extension'])在org.org上的org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628) .springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(Abstrac 在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)在org.springframework.beans.factors.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:306)处的tAutowireCapableBeanFactory.java:555) org.springframework.beans.factors.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)在org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)在org.springframework.beans.factory。 org.springframework.context.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java :)上的support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)在org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742) 866)在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)在或 g.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)在org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737)在org.springframework.boot.SpringApplication.refreshContext(SpringApplication。 org.springframework.boot.SpringApplication.run(SpringApplication.java:314)上的org.springframework.boot.web.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:151)上的org.springframework.boot.web上的java:370) org.springframework.boot.web.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:86)上的.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:131)在org.springframework.web.SpringServletContainerInitializer.onStartup(169) )org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java :)的org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196) 150)在org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)的org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)在org.apache.catalina.java.728 org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:986)的org.apache.catalina.startup.HostConfig $ DeployWar.run(HostConfig.java:1857)的.addChild(StandardHost.java:734) java.util.concurrent.FutureTask.run(FutureTask.java:266)上的java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: 1149)at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)at java.lang.Thread.run(Thread.java:808)原因: org.springframework.beans.BeanInstantiationException: 无法实例化[org.quartz.impl.StdSchedulerFactory]:构造方法抛出异常; 嵌套的异常是java.lang.LinkageError:违反加载程序约束:'org.apache.catalina.loader.ParallelWebappClassLoader@7d9c505e(url:['],父母:[)'java.net.URLClassLoader@449b2d27'])先前启动的加载 org.slf4j.ILoggerFactory的版本(加载程序"系统",网址:['文件:/usr/lib/jvm/sapjvm_8/sapjvm_8/lib/jvmx.jar","文件:/usr/lib/jvm/sapjvm_8/sapjvm_8/lib/tools.jar','文件:/usr/sap/ljs/bin/jul-to-slf4j.jar','文件:/usr/sap/ljs/bin/slf4j-api.jar' ,'file:/usr/sap/ljs/bin/logback-classic.jar','file:/usr/sap/ljs/bin/logback-core.jar','file:/usr/sap/ljs/bin/logback-config/','文件:/usr/sap/ljs/bin/com.sap.core.js.logging.jar','文件:/usr/sap/ljs/bin/bootstrap.jar',' 文件:/usr/sap/ljs/bin/tomcat-juli.jar'],父级:['Extension'])在org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:154)在org.springframework.beans 位于org.springframework.scheduling.quartz.SchedulerFactoryBean.afterPropertiesSet(Schedule的.BeanUtils.instantiateClass(BeanUtils.java:102) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)的org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)的rFactoryBean.java:456)。 。<29>省略了29个常见的框架原因:java.lang.LinkageError:违反加载程序约束:'org.apache.catalina.loader.ParallelWebappClassLoader@7d9c505e(url:['],父母:[)'java.net.URLClassLoader @ 449b2d27'])之前已开始加载org.slf4j.ILoggerFactory (加载器"系统",网址:['file:/usr/lib/jvm/sapjvm_8/sapjvm_8/lib/jvmx.jar","文件 :/usr/lib/jvm/sapjvm_8/sapjvm_8/lib/tools.jar','文件:/usr/sap/ljs/bin/jul-to-slf4j.jar','文件:/usr/sap/ljs/bin/slf4j-api.jar","文件:/usr/sap/ljs/bin/logback-classic.jar","文件:/usr/sap/ljs/bin/logback-core.jar","文件:/usr/sap/ljs/bin/logback-config/','文件:/usr/sap/ljs/bin/com.sap.core.js.logging.jar','文件:/usr /sap/ljs/bin/bootstrap.jar','文件:/usr/sap/ljs/bin/tomcat-juli.jar'],父级:['Extension']),位于java.lang.ClassLoader.defineClass1(Native 方法)在org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2283)上的java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)上的java.lang.ClassLoader.defineClass(ClassLoader.java:863) )的org.apache.catalina.loader.WebappClassLoaderBase.java:811的org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1260)的org.apache.catalina.loader.WebappClassLoaderBase的)。 org.quartz.impl.StdSchedulerFactory上的loadClass(WebappClassLoaderBase.java:1119).sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native方法)上的init。(StdSchedulerFactory.java:303)在sun.reflect.NativeConstructorAccessorImpl.newInstance(Native方法) java:62)在sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAcce org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:142)的java.lang.reflect.Constructor.newInstance(Constructor.java:423)的ssorImpl.java:45)...省略了33个常见的框架

请帮助我。

预先感谢

付费偷看设置
发送
1条回答
My梦
1楼 · 2020-09-18 13:24.采纳回答

您好,库希克,

Neo SDK已经包含slf4j的实现,而Spring Boot则执行相同的操作。 您必须在其他的POM.XML文件中创建排除项,才能从依赖项中删除一个或另一个。 请阅读我以前对同一问题的答复中的说明

关于,
伊凡

一周热门 更多>