开发者社区> 问答> 正文

JAVA中引入JDK后创建Bucket和上传文件报错

错误信息 Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException at com.aliyun.oss.common.parser.JAXBResponseParser.getObject(JAXBResponseParser.java:74) ~[aliyun-sdk-oss-3.8.0.jar:na] at com.aliyun.oss.common.parser.JAXBResponseParser.parse(JAXBResponseParser.java:68) ~[aliyun-sdk-oss-3.8.0.jar:na] at com.aliyun.oss.internal.OSSErrorResponseHandler.handle(OSSErrorResponseHandler.java:69) ~[aliyun-sdk-oss-3.8.0.jar:na] at com.aliyun.oss.common.comm.ServiceClient.handleResponse(ServiceClient.java:257) ~[aliyun-sdk-oss-3.8.0.jar:na] at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:140) ~[aliyun-sdk-oss-3.8.0.jar:na] at com.aliyun.oss.common.comm.ServiceClient.sendRequest(ServiceClient.java:70) ~[aliyun-sdk-oss-3.8.0.jar:na] at com.aliyun.oss.internal.OSSOperation.send(OSSOperation.java:83) ~[aliyun-sdk-oss-3.8.0.jar:na] at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:145) ~[aliyun-sdk-oss-3.8.0.jar:na] at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:102) ~[aliyun-sdk-oss-3.8.0.jar:na] at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:97) ~[aliyun-sdk-oss-3.8.0.jar:na] at com.aliyun.oss.internal.OSSBucketOperation.createBucket(OSSBucketOperation.java:186) ~[aliyun-sdk-oss-3.8.0.jar:na] at com.aliyun.oss.OSSClient.createBucket(OSSClient.java:321) ~[aliyun-sdk-oss-3.8.0.jar:na] at com.aliyun.oss.OSSClient.createBucket(OSSClient.java:316) ~[aliyun-sdk-oss-3.8.0.jar:na] at com.chen.systemmonitor.alioss.AliOssConfig.createBucket(AliOssConfig.java:47) ~[classes/:na] at com.chen.systemmonitor.updown.StartupService.afterPropertiesSet(StartupService.java:73) ~[classes/:na] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1862) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1799) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE] ... 16 common frames omitted Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) ~[na:na] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[na:na] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[na:na] ... 33 common frames omitted

展开
收起
忆莫凉娄 2019-11-28 23:53:03 2066 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
Spring Cloud Alibaba - 重新定义 Java Cloud-Native 立即下载
The Reactive Cloud Native Arch 立即下载
JAVA开发手册1.5.0 立即下载