org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'createTable' defined in class path resource [com/cloudbinfo/jdbc/config/TableCreateConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: zip file closed
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796) ~[spring-beans-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595) ~[spring-beans-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:879) ~[spring-beans-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878) ~[spring-context-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[spring-context-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.2.5.RELEASE.jar!/:2.2.5.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) [spring-boot-2.2.5.RELEASE.jar!/:2.2.5.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.2.5.RELEASE.jar!/:2.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-2.2.5.RELEASE.jar!/:2.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) [spring-boot-2.2.5.RELEASE.jar!/:2.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) [spring-boot-2.2.5.RELEASE.jar!/:2.2.5.RELEASE]
at com.cloudbinfo.trainsctions.TrElectricApplication.main(TrElectricApplication.java:13) [classes!/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_151]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_151]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_151]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_151]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [trainsctions-electric-service-1.0-SNAPSHOT.jar:na]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [trainsctions-electric-service-1.0-SNAPSHOT.jar:na]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:51) [trainsctions-electric-service-1.0-SNAPSHOT.jar:na]
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52) [trainsctions-electric-service-1.0-SNAPSHOT.jar:na]
Caused by: java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:686) ~[na:1.8.0_151]
at java.util.zip.ZipFile.access$200(ZipFile.java:60) ~[na:1.8.0_151]
at java.util.zip.ZipFile$ZipEntryIterator.<init>(ZipFile.java:499) ~[na:1.8.0_151]
at java.util.zip.ZipFile.entries(ZipFile.java:552) ~[na:1.8.0_151]
at java.util.jar.JarFile.access$001(JarFile.java:71) ~[na:1.8.0_151]
at java.util.jar.JarFile$JarEntryIterator.<init>(JarFile.java:250) ~[na:1.8.0_151]
at java.util.jar.JarFile$JarEntryIterator.<init>(JarFile.java:247) ~[na:1.8.0_151]
at java.util.jar.JarFile.stream(JarFile.java:279) ~[na:1.8.0_151]
at org.reflections.vfs.ZipDir.lambda$getFiles$2(ZipDir.java:21) ~[reflections-0.9.12.jar!/:na]
at org.reflections.Reflections.scan(Reflections.java:260) ~[reflections-0.9.12.jar!/:na]
at org.reflections.Reflections.scan(Reflections.java:216) ~[reflections-0.9.12.jar!/:na]
at org.reflections.Reflections.<init>(Reflections.java:137) ~[reflections-0.9.12.jar!/:na]
at org.reflections.Reflections.<init>(Reflections.java:182) ~[reflections-0.9.12.jar!/:na]
at org.reflections.Reflections.<init>(Reflections.java:155) ~[reflections-0.9.12.jar!/:na]
at com.cloudbinfo.jdbc.column.context.GetColumnContext.<init>(GetColumnContext.java:24) ~[frame-jdbc-1.0-SNAPSHOT.jar!/:na]
at com.cloudbinfo.jdbc.factory.TableFieldFactory.<init>(TableFieldFactory.java:18) ~[frame-jdbc-1.0-SNAPSHOT.jar!/:na]
at com.cloudbinfo.jdbc.factory.TableFieldFactory.getInstance(TableFieldFactory.java:25) ~[frame-jdbc-1.0-SNAPSHOT.jar!/:na]
at com.cloudbinfo.jdbc.factory.TableClassFactory.creatTableClassByClass(TableClassFactory.java:32) ~[frame-jdbc-1.0-SNAPSHOT.jar!/:na]
at com.cloudbinfo.jdbc.service.impl.TableServiceImpl.createTable(TableServiceImpl.java:52) ~[frame-jdbc-1.0-SNAPSHOT.jar!/:na]
at com.cloudbinfo.jdbc.service.impl.TableServiceImpl.createTable(TableServiceImpl.java:39) ~[frame-jdbc-1.0-SNAPSHOT.jar!/:na]
at com.cloudbinfo.jdbc.framework.create.TableCreateFactoryBean.create(TableCreateFactoryBean.java:48) ~[frame-jdbc-1.0-SNAPSHOT.jar!/:na]
at com.cloudbinfo.jdbc.framework.create.TableCreateFactoryBean.afterPropertiesSet(TableCreateFactoryBean.java:39) ~[frame-jdbc-1.0-SNAPSHOT.jar!/:na]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1855) ~[spring-beans-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1792) ~[spring-beans-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]
... 24 common frames omitted
springBoot项目jar包本地idea启动正常,在服务器上启动报错zip file closed,报错内容如下,麻烦大佬们帮忙解决一下什么问题
最新推荐文章于 2024-08-28 10:25:15 发布