Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Failed to enable plugin: GCAuth_OAuth java.lang.NullPointerException: Cannot read field "rateLimit" because the return value of "me.exzork.gcauth.GCAuth.getConfig()" is null #7

Closed
ghost opened this issue Jun 28, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 28, 2022

  • StackTrace:
<ERROR:PluginManager> Failed to enable plugin: GCAuth_OAuth
java.lang.NullPointerException: Cannot read field "rateLimit" because the return value of "me.exzork.gcauth.GCAuth.getConfig()" is null
        at me.exzork.gcauth.handler.GCAuthExternalAuthenticator.<init>(GCAuthExternalAuthenticator.java:24)
        at com.xtaolabs.gcauth_oauth.handler.GCAuthAuthenticationHandler.<init>(GCAuthAuthenticationHandler.java:16)
        at com.xtaolabs.gcauth_oauth.GCAuth_OAuth.loadTwitterLogin(GCAuth_OAuth.java:41)
        at com.xtaolabs.gcauth_oauth.GCAuth_OAuth.onEnable(GCAuth_OAuth.java:28)
        at emu.grasscutter.plugin.PluginManager.lambda$enablePlugins$2(PluginManager.java:200)
        at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:721)
        at emu.grasscutter.plugin.PluginManager.enablePlugins(PluginManager.java:197)
        at emu.grasscutter.Grasscutter.main(Grasscutter.java:164)
  • My Files in plugin folder:
root@instance-3q7c18wo:~/Server/27/plugins# tree
.
├── GCAuth
│   ├── config.json
│   └── OAuth
│       ├── css
│       │   ├── app.11404339.css
│       │   └── regeister.css
│       ├── imgs
│       │   ├── close.svg
│       │   └── logo.png
│       ├── js
│       │   ├── about.6b74533b.js
│       │   ├── ...
│       │   └── chunk-vendors-legacy.dccdb30c.js.map
│       ├── login.html
│       └── Twitter_Authorize_Res
│           ├── js_inst
│           ├── tfw-base.3baf723b92aa68729f921c77ca3e3c1315116392.css
│           └── yXprk4Zb
├── gcauth-2.4.0.jar
├── GCAuth_OAuth
├── gcauth_oauth-1.2.0.jar
├── mojoconfig.json
├── mojoconsole
├── mojoconsole.jar
└── mojoconsole-plus

9 directories, 25 files
  • Plugin infos:
root@instance-3q7c18wo:~/Server/27# ./gpm list
[Info] Found config.json
┌──────────────────┬───────────────────┬─────────────────────────────────────────────────────────────────────────────────┐
│       name       │      version      │                                   description                                   │
├──────────────────┼───────────────────┼─────────────────────────────────────────────────────────────────────────────────┤
│   GCAuth_OAuth   │       1.1.3       │     The in-game login system for Grasscutter is based on oauth and GCAuth.      │
│      GCAuth      │       2.2.0       │ GCAuth is a plugin that allows you to implement authentication for your server. │
│ mojoconsole-plus │ dev-1.2.0-f5dc9f3 │                      Grasscutter In Game Web Based Console                      │
└──────────────────┴───────────────────┴─────────────────────────────────────────────────────────────────────────────────┘
@omg-xtao
Copy link
Member

GCAuth OAuth is now at version 1.2.0, and gpm does not appear to have been upgraded.

@ghost
Copy link
Author

ghost commented Jul 11, 2022

image

image

确定是 1.2.0 版本的,但是问题仍然存在。
我不知道为什么

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant