Git Product home page Git Product logo

Comments (5)

wenshao avatar wenshao commented on June 12, 2024
  <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-reflect</artifactId>
            <scope>provided</scope>
        </dependency>

这个依赖加上了么?

from fastjson2.

zfdx123 avatar zfdx123 commented on June 12, 2024

哦并没有,我用的Gradle我一会加入 implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version") 测试一下

from fastjson2.

zfdx123 avatar zfdx123 commented on June 12, 2024

错误似乎依然存在 onResponse: com.alibaba.fastjson2.JSONException: invoke constructor error, public com.hylab.centralcontrol.utils.MessageList(int,java.lang.String,java.lang.String,java.util.List)

from fastjson2.

wenshao avatar wenshao commented on June 12, 2024
data class Message(
        var status: Int,
        var message: String,
        var msgInfo: String?,
        var info: Info
)

msgInfo字段缺失了,修改成这样就好了

from fastjson2.

zfdx123 avatar zfdx123 commented on June 12, 2024

感谢您尊敬的开发者,你这样一说,我注意到我服务端,有时候并不会完整的响应info(就这样设计的)写客户端的时候忘记了,用Google的gson也一种没有报错,导致这个离谱的iss,感谢您的回复,祝您身体健康,我会关掉这个问题

from fastjson2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.