springBoot项目jar包本地idea启动正常,在服务器上启动报错zip file closed,报错内容如下,麻烦大佬们帮忙解决一下什么问题

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

评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值