阿里云SDK上传报错:ErrorMessage=org/jdom/input/JDOMParseException

阿里云SDK上传报错

1、问题描述

在使用阿里云视频点播的时候出现下列错误:
【main】 DEBUG com.aliyun.oss - Loading mime types from file in the classpath: mime.types
15:33:49.711 【main】 DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection manager is shutting down
15:33:49.711 【main】 DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection manager shut down
15:33:49.711 【idle_connection_reaper】 DEBUG com.aliyun.oss - Shutting down reaper thread.
VideoId=0df7bed9b658456a80e3654212faa9c2
ErrorCode=null
ErrorMessage=org/jdom/input/JDOMParseException

2、解决方案

最后经过大量的排查,有两种解决方案
第一种:多加个依赖:
我这个版本的aliyun-java-vod-upload.jar是1.4.11版本

 <dependency>
            <groupId>org.jdom</groupId>
            <artifactId>jdom</artifactId>
            <version>1.1</version>
        </dependency>

第二钟:
在阿里云视频点播官方重新下载sdk官方示例,并修改依赖版本为

   <dependency>
        <groupId>com.aliyun</groupId>
        <artifactId>aliyun-java-sdk-core</artifactId>
        <version>4.5.1</version>
    </dependency>
    <dependency>
        <groupId>com.aliyun.oss</groupId>
        <artifactId>aliyun-sdk-oss</artifactId>
        <version>3.10.2</version>
    </dependency>
     <dependency>
        <groupId>com.aliyun</groupId>
        <artifactId>aliyun-java-sdk-vod</artifactId>
        <version>2.15.11</version>
    </dependency>
    <dependency>
        <groupId>com.alibaba</groupId>
        <artifactId>fastjson</artifactId>
        <version>1.2.28</version>
    </dependency>
    <dependency>
        <groupId>org.json</groupId>
        <artifactId>json</artifactId>
        <version>20170516</version>
    </dependency>
    <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>2.8.2</version>
    </dependency>

这还得再多家两个依赖:

  <!-- https://mvnrepository.com/artifact/io.opentracing/opentracing-util -->
       <dependency>
           <groupId>io.opentracing</groupId>
            <artifactId>opentracing-util</artifactId>
            <version>0.33.0</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.jdom/jdom -->
        <dependency>
            <groupId>org.jdom</groupId>
            <artifactId>jdom</artifactId>
           <version>2.0.2</version>
        </dependency>

改完之后视频也上传成功了
在这里插入图片描述
在这里插入图片描述

posted @   别团等shy哥发育  阅读(116)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示