Skip to content

Gson问题 #3752

Closed
Closed

Description

@dengwenb

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [cn.binarywang.wx.miniapp.api.WxMaService]: Factory method 'wxMaService' threw exception with message: Failed making field 'java.io.File#path' accessible; either increase its visibility or write a custom TypeAdapter for its declaring type.
See https://github.com/google/gson/blob/main/Troubleshooting.md#reflection-inaccessible

Activity

  1. dengwenb commented on Nov 3, 2025

    @dengwenb
    Author

    启动参数也加上了 --add-opens java.base/java.io=ALL-UNNAMED
    jdk21

  2. added a commit that references this issue on Nov 28, 2025
  3. added a commit that references this issue on Dec 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions