Skip to content

Can't find method saveLevel on minecraft v1.13 #47

Open

Description

@J0B10

Bug report

AutoSaveWorld version: 4.15

Server version: git-Spigot-5eb3921-30ab12c (MC: 1.13) (API: 1.13-R0.1-SNAPSHOT)

Description

I tried running the plugin on my test server for 1.13 and an exception was thrown whenever the server is saving a world.
I know that the plugin currently isn't compiled against 1.13 so compatibillity issues are totally possible in this state but I just wanted to let you know so that updating will be easier. 😉

Stack trace

[14:46:52] [AutoSaveWorld AutoSaveThread/ERROR]: [AutoSaveWorld] Could not dump RegionFileCache
java.lang.RuntimeException: Can't find method saveLevel with params length 0
	at autosaveworld.utils.ReflectionUtils.getMethod(ReflectionUtils.java:49) ~[AutoSaveWorld-4.15.jar:?]
	at autosaveworld.features.save.AutoSaveThread.dumpRegionCache(AutoSaveThread.java:135) [AutoSaveWorld-4.15.jar:?]
	at autosaveworld.features.save.AutoSaveThread.performSave(AutoSaveThread.java:122) [AutoSaveWorld-4.15.jar:?]
	at autosaveworld.features.save.AutoSaveThread.doTask(AutoSaveThread.java:70) [AutoSaveWorld-4.15.jar:?]
	at autosaveworld.utils.Threads$IntervalTaskThread.run(Threads.java:103) [AutoSaveWorld-4.15.jar:?]

This is the only issue I recognized till now. The plugin manager still works perfectly.

Thanks for the time you put into this plugin! 👍

Activity

  1. j-lorenzo commented on Jul 26, 2018

    @j-lorenzo

    Same here.

    > > [01:05:17 ERROR]: [AutoSaveWorld] Could not dump RegionFileCache
    > java.lang.RuntimeException: Can't find method saveLevel with params length 0
    > at autosaveworld.utils.ReflectionUtils.getMethod(ReflectionUtils.java:49) ~[AutoSaveWorld.jar:?]
    > at autosaveworld.features.save.AutoSaveThread.dumpRegionCache(AutoSaveThread.java:135) [AutoSaveWorld.jar:?]
    > at autosaveworld.features.save.AutoSaveThread.performSave(AutoSaveThread.java:122) [AutoSaveWorld.jar:?]
    > at autosaveworld.features.backup.AutoBackupThread.performBackup(AutoBackupThread.java:70) [AutoSaveWorld.jar:?]
    > at autosaveworld.features.backup.AutoBackupThread.doTask(AutoBackupThread.java:60) [AutoSaveWorld.jar:?]
    > at autosaveworld.utils.Threads$IntervalTaskThread.run(Threads.java:103) [AutoSaveWorld.jar:?]
    > > [01:05:17 ERROR]: [AutoSaveWorld] Could not dump RegionFileCache
    > java.lang.RuntimeException: Can't find method saveLevel with params length 0
    > at autosaveworld.utils.ReflectionUtils.getMethod(ReflectionUtils.java:49) ~[AutoSaveWorld.jar:?]
    > at autosaveworld.features.save.AutoSaveThread.dumpRegionCache(AutoSaveThread.java:135) [AutoSaveWorld.jar:?]
    > at autosaveworld.features.save.AutoSaveThread.performSave(AutoSaveThread.java:122) [AutoSaveWorld.jar:?]
    > at autosaveworld.features.backup.AutoBackupThread.performBackup(AutoBackupThread.java:70) [AutoSaveWorld.jar:?]
    > at autosaveworld.features.backup.AutoBackupThread.doTask(AutoBackupThread.java:60) [AutoSaveWorld.jar:?]
    > at autosaveworld.utils.Threads$IntervalTaskThread.run(Threads.java:103) [AutoSaveWorld.jar:?]
    > > [01:05:17 ERROR]: [AutoSaveWorld] Could not dump RegionFileCache
    > java.lang.RuntimeException: Can't find method saveLevel with params length 0
    > at autosaveworld.utils.ReflectionUtils.getMethod(ReflectionUtils.java:49) ~[AutoSaveWorld.jar:?]
    > at autosaveworld.features.save.AutoSaveThread.dumpRegionCache(AutoSaveThread.java:135) [AutoSaveWorld.jar:?]
    > at autosaveworld.features.save.AutoSaveThread.performSave(AutoSaveThread.java:122) [AutoSaveWorld.jar:?]
    > at autosaveworld.features.backup.AutoBackupThread.performBackup(AutoBackupThread.java:70) [AutoSaveWorld.jar:?]
    > at autosaveworld.features.backup.AutoBackupThread.doTask(AutoBackupThread.java:60) [AutoSaveWorld.jar:?]
    > at autosaveworld.utils.Threads$IntervalTaskThread.run(Threads.java:103) [AutoSaveWorld.jar:?]
    

    Best regards, thank you for the time you put into this plugin!

  2. Shevchik commented on Jul 28, 2018

    @Shevchik
    Owner

    Will fix it when i get time.

  3. mattboy9921 commented on Sep 18, 2018

    @mattboy9921

    Any update on this? I really love this plugin. It's the only thing I need left for 1.13.

  4. ctiger commented on Sep 19, 2018

    @ctiger

    Same problem.
    Spigot-1.13.1-R0.1-SNAPSHOT-b1918
    ASW 4.15

  5. mattboy9921 commented on Sep 19, 2018

    @mattboy9921

    I submitted a PR for this. #51

  6. ctiger commented on Oct 23, 2018

    @ctiger

    We wait update. Pls.

  7. marcsello commented on Dec 10, 2018

    @marcsello

    I've run into the exact same problem.
    When can we expect an update on this?

  8. Bodyash commented on Jan 21, 2019

    @Bodyash

    Need to update NMS to 1.13.2

    Also it can throw exceptions here:
    saveWorldDoNoSaveStructureInfo() - ReflectionUtils.getMethod(chunkProvider.getClass(), NMSNames.getSaveChunksMethodName(), 2).invoke(chunkProvider, true, null);

    And also need to update it to WG, WE 7.0

  9. Shevchik commented on Jul 27, 2019

    @Shevchik
    Owner

    1.13.2+ no longer contains a method that actually drops the cache and flushes it to disk. Making it all work is still possible tho, just way harder now.

  10. ShineSmile commented on Aug 12, 2019

    @ShineSmile

    Hi all,
    I found that use save-off command may help.

    [19:46:13] [Server thread/INFO]: Done (27.279s)! For help, type "help"
    >save
    [19:46:18] [AutoSaveWorld AutoSaveThread/INFO]: AutoSaving
    [19:46:20] [AutoSaveWorld AutoSaveThread/ERROR]: [AutoSaveWorld] Could not dump RegionFileCache
    java.lang.RuntimeException: Can't find method saveLevel with params length 0
    	at autosaveworld.utils.ReflectionUtils.getMethod(ReflectionUtils.java:49) ~[AutoSaveWorld.jar:?]
    	at autosaveworld.features.save.AutoSaveThread.dumpRegionCache(AutoSaveThread.java:135) [AutoSaveWorld.jar:?]
    	at autosaveworld.features.save.AutoSaveThread.performSave(AutoSaveThread.java:122) [AutoSaveWorld.jar:?]
    	at autosaveworld.features.save.AutoSaveThread.doTask(AutoSaveThread.java:70) [AutoSaveWorld.jar:?]
    	at autosaveworld.utils.Threads$IntervalTaskThread.run(Threads.java:103) [AutoSaveWorld.jar:?]
    [19:46:20] [AutoSaveWorld AutoSaveThread/ERROR]: [AutoSaveWorld] Could not dump RegionFileCache
    java.lang.RuntimeException: Can't find method saveLevel with params length 0
    	at autosaveworld.utils.ReflectionUtils.getMethod(ReflectionUtils.java:49) ~[AutoSaveWorld.jar:?]
    	at autosaveworld.features.save.AutoSaveThread.dumpRegionCache(AutoSaveThread.java:135) [AutoSaveWorld.jar:?]
    	at autosaveworld.features.save.AutoSaveThread.performSave(AutoSaveThread.java:122) [AutoSaveWorld.jar:?]
    	at autosaveworld.features.save.AutoSaveThread.doTask(AutoSaveThread.java:70) [AutoSaveWorld.jar:?]
    	at autosaveworld.utils.Threads$IntervalTaskThread.run(Threads.java:103) [AutoSaveWorld.jar:?]
    [19:46:20] [AutoSaveWorld AutoSaveThread/ERROR]: [AutoSaveWorld] Could not dump RegionFileCache
    java.lang.RuntimeException: Can't find method saveLevel with params length 0
    	at autosaveworld.utils.ReflectionUtils.getMethod(ReflectionUtils.java:49) ~[AutoSaveWorld.jar:?]
    	at autosaveworld.features.save.AutoSaveThread.dumpRegionCache(AutoSaveThread.java:135) [AutoSaveWorld.jar:?]
    	at autosaveworld.features.save.AutoSaveThread.performSave(AutoSaveThread.java:122) [AutoSaveWorld.jar:?]
    	at autosaveworld.features.save.AutoSaveThread.doTask(AutoSaveThread.java:70) [AutoSaveWorld.jar:?]
    	at autosaveworld.utils.Threads$IntervalTaskThread.run(Threads.java:103) [AutoSaveWorld.jar:?]
    [19:46:20] [AutoSaveWorld AutoSaveThread/INFO]: AutoSave Complete
    >save-off
    [19:46:25] [Server thread/INFO]: Automatic saving is now disabled
    >save
    [19:52:26] [AutoSaveWorld AutoSaveThread/INFO]: AutoSaving
    [19:52:26] [AutoSaveWorld AutoSaveThread/INFO]: AutoSave Complete
    

    But I have to disable it every time when I restart the server.
    I have tried to set

    advancements:
      disable-saving: true
      disabled:
      - minecraft:story/disabled
    stats:
      disable-saving: true
      forced-stats: {}
    

    in spigot.yml but nothing happened.

    Here is my info:

    [19:56:43] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-ea7e48b-368f4e9 (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)
    [19:56:48] [Server thread/WARN]: Plugin AutoSaveWorld v4.15 does not specify an api-version.
    [19:56:48] [Server thread/INFO]: [AutoSaveWorld] Loading AutoSaveWorld v4.15
    
  11. HauserGrim commented on Aug 12, 2019

    @HauserGrim

    Hi all,
    I found that use save-off command may help.

    [19:46:13] [Server thread/INFO]: Done (27.279s)! For help, type "help"
    >save
    [19:46:18] [AutoSaveWorld AutoSaveThread/INFO]: AutoSaving
    [19:46:20] [AutoSaveWorld AutoSaveThread/ERROR]: [AutoSaveWorld] Could not dump RegionFileCache
    java.lang.RuntimeException: Can't find method saveLevel with params length 0
    	at autosaveworld.utils.ReflectionUtils.getMethod(ReflectionUtils.java:49) ~[AutoSaveWorld.jar:?]
    	at autosaveworld.features.save.AutoSaveThread.dumpRegionCache(AutoSaveThread.java:135) [AutoSaveWorld.jar:?]
    	at autosaveworld.features.save.AutoSaveThread.performSave(AutoSaveThread.java:122) [AutoSaveWorld.jar:?]
    	at autosaveworld.features.save.AutoSaveThread.doTask(AutoSaveThread.java:70) [AutoSaveWorld.jar:?]
    	at autosaveworld.utils.Threads$IntervalTaskThread.run(Threads.java:103) [AutoSaveWorld.jar:?]
    [19:46:20] [AutoSaveWorld AutoSaveThread/ERROR]: [AutoSaveWorld] Could not dump RegionFileCache
    java.lang.RuntimeException: Can't find method saveLevel with params length 0
    	at autosaveworld.utils.ReflectionUtils.getMethod(ReflectionUtils.java:49) ~[AutoSaveWorld.jar:?]
    	at autosaveworld.features.save.AutoSaveThread.dumpRegionCache(AutoSaveThread.java:135) [AutoSaveWorld.jar:?]
    	at autosaveworld.features.save.AutoSaveThread.performSave(AutoSaveThread.java:122) [AutoSaveWorld.jar:?]
    	at autosaveworld.features.save.AutoSaveThread.doTask(AutoSaveThread.java:70) [AutoSaveWorld.jar:?]
    	at autosaveworld.utils.Threads$IntervalTaskThread.run(Threads.java:103) [AutoSaveWorld.jar:?]
    [19:46:20] [AutoSaveWorld AutoSaveThread/ERROR]: [AutoSaveWorld] Could not dump RegionFileCache
    java.lang.RuntimeException: Can't find method saveLevel with params length 0
    	at autosaveworld.utils.ReflectionUtils.getMethod(ReflectionUtils.java:49) ~[AutoSaveWorld.jar:?]
    	at autosaveworld.features.save.AutoSaveThread.dumpRegionCache(AutoSaveThread.java:135) [AutoSaveWorld.jar:?]
    	at autosaveworld.features.save.AutoSaveThread.performSave(AutoSaveThread.java:122) [AutoSaveWorld.jar:?]
    	at autosaveworld.features.save.AutoSaveThread.doTask(AutoSaveThread.java:70) [AutoSaveWorld.jar:?]
    	at autosaveworld.utils.Threads$IntervalTaskThread.run(Threads.java:103) [AutoSaveWorld.jar:?]
    [19:46:20] [AutoSaveWorld AutoSaveThread/INFO]: AutoSave Complete
    >save-off
    [19:46:25] [Server thread/INFO]: Automatic saving is now disabled
    >save
    [19:52:26] [AutoSaveWorld AutoSaveThread/INFO]: AutoSaving
    [19:52:26] [AutoSaveWorld AutoSaveThread/INFO]: AutoSave Complete
    

    But I have to disable it every time when I restart the server.
    I have tried to set

    advancements:
      disable-saving: true
      disabled:
      - minecraft:story/disabled
    stats:
      disable-saving: true
      forced-stats: {}
    

    in spigot.yml but nothing happened.

    Here is my info:

    [19:56:43] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-ea7e48b-368f4e9 (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)
    [19:56:48] [Server thread/WARN]: Plugin AutoSaveWorld v4.15 does not specify an api-version.
    [19:56:48] [Server thread/INFO]: [AutoSaveWorld] Loading AutoSaveWorld v4.15
    

    “save-off” disables vanilla save and is not related to ASW. (automatic saving cannot be disabled in ASW)
    ASW is not intended for 1.13+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions