web登录后,出现500内部服务器错误原创
金蝶云社区-张氏永隆
张氏永隆
9人赞赏了该文章 228次浏览 未经作者许可,禁止转载编辑于2023年09月28日 16:22:45

日志中显示如下

执行Servlet时发生错误。

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/config/spring/applicationContext-basic.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 'name' must not be null

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)

at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1105)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:915)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472)

at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:388)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:293)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)

at org.apache.pluto.driver.PortalStartupListener.contextInitialized(PortalStartupListener.java:108)

at com.apusic.web.container.EventBroadcaster.fireContextInitializedEvent(EventBroadcaster.java:222)


解决办法:

重新反部署/部署下数据中心即可


非上述报错也出现500错误、可以重新部署下实例/群集也可解决

赞 9