Startup Bug #180

Open
opened 2024-07-08 20:01:02 +00:00 by Szejkus · 2 comments

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Install plugin
  2. Configure
  3. Restart server

Expected behavior
Plugin just didn't started

Screenshots or Video Recordings
If applicable, add screenshots or video recordings to help explain your problem.

Server and Plugin Information

  • Installed plugins:image
  • VehiclesPlus Version: 3.0.0-PRE6.1
  • Pro or Lite?: PRO
  • Server Platform and Version [eg: PaperSpigot 1.x.x #xxx]: 1.19.4
  • Operating System (if applicable): Ubuntu

Additional context
[17:00:40] [Server thread/ERROR]: Error occurred while enabling VehiclesPlus v3.0.0-SNAPSHOT (Is it up to date?) java.lang.NullPointerException: Cannot invoke "org.bukkit.Location.getDirection()" because "center" is null at nl.sbdeveloper.vehiclesplus.utils.LocationUtil.calculateOffset(LocationUtil.java:28) ~[VehiclesPlus-v3-PRE6.1.jar:?] at nl.sbdeveloper.vehiclesplus.api.stands.ArmorStandBuilder.<init>(ArmorStandBuilder.java:25) ~[VehiclesPlus-v3-PRE6.1.jar:?] at nl.sbdeveloper.vehiclesplus.api.stands.ArmorStandBuilder.<init>(ArmorStandBuilder.java:21) ~[VehiclesPlus-v3-PRE6.1.jar:?] at nl.sbdeveloper.vehiclesplus.api.stands.ArmorStandBuilder.<init>(ArmorStandBuilder.java:17) ~[VehiclesPlus-v3-PRE6.1.jar:?] at nl.sbdeveloper.vehiclesplus.api.vehicles.impl.SpawnedVehicle.<init>(SpawnedVehicle.java:49) ~[VehiclesPlus-v3-PRE6.1.jar:?] at nl.sbdeveloper.vehiclesplus.api.vehicles.impl.PersistentVehicle.<init>(PersistentVehicle.java:11) ~[VehiclesPlus-v3-PRE6.1.jar:?] at nl.sbdeveloper.vehiclesplus.api.vehicles.impl.StorageVehicle.spawnPersistent(StorageVehicle.java:196) ~[VehiclesPlus-v3-PRE6.1.jar:?] at nl.sbdeveloper.vehiclesplus.VehiclesPlus.lambda$onEnable$1(VehiclesPlus.java:121) ~[VehiclesPlus-v3-PRE6.1.jar:?] at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?] at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?] at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?] at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?] at nl.sbdeveloper.vehiclesplus.VehiclesPlus.onEnable(VehiclesPlus.java:121) ~[VehiclesPlus-v3-PRE6.1.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:189) ~[paper-1.19.4.jar:git-Paper-550] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[paper-1.19.4.jar:git-Paper-550] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_19_R3.CraftServer.enablePlugin(CraftServer.java:563) ~[paper-1.19.4.jar:git-Paper-550] at org.bukkit.craftbukkit.v1_19_R3.CraftServer.enablePlugins(CraftServer.java:474) ~[paper-1.19.4.jar:git-Paper-550] at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:638) ~[paper-1.19.4.jar:git-Paper-550] at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:437) ~[paper-1.19.4.jar:git-Paper-550] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:308) ~[paper-1.19.4.jar:git-Paper-550] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1104) ~[paper-1.19.4.jar:git-Paper-550] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[paper-1.19.4.jar:git-Paper-550] at java.lang.Thread.run(Thread.java:840) ~[?:?]

**Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Install plugin 2. Configure 3. Restart server **Expected behavior** Plugin just didn't started **Screenshots or Video Recordings** If applicable, add screenshots or video recordings to help explain your problem. **Server and Plugin Information** - Installed plugins:![image](/attachments/81f54ba3-ad1c-4340-97d9-997d89e6b7e9) - VehiclesPlus Version: 3.0.0-PRE6.1 - Pro or Lite?: PRO - Server Platform and Version [eg: **PaperSpigot** 1.x.x #xxx]: 1.19.4 - Operating System (if applicable): Ubuntu **Additional context** `[17:00:40] [Server thread/ERROR]: Error occurred while enabling VehiclesPlus v3.0.0-SNAPSHOT (Is it up to date?) java.lang.NullPointerException: Cannot invoke "org.bukkit.Location.getDirection()" because "center" is null at nl.sbdeveloper.vehiclesplus.utils.LocationUtil.calculateOffset(LocationUtil.java:28) ~[VehiclesPlus-v3-PRE6.1.jar:?] at nl.sbdeveloper.vehiclesplus.api.stands.ArmorStandBuilder.<init>(ArmorStandBuilder.java:25) ~[VehiclesPlus-v3-PRE6.1.jar:?] at nl.sbdeveloper.vehiclesplus.api.stands.ArmorStandBuilder.<init>(ArmorStandBuilder.java:21) ~[VehiclesPlus-v3-PRE6.1.jar:?] at nl.sbdeveloper.vehiclesplus.api.stands.ArmorStandBuilder.<init>(ArmorStandBuilder.java:17) ~[VehiclesPlus-v3-PRE6.1.jar:?] at nl.sbdeveloper.vehiclesplus.api.vehicles.impl.SpawnedVehicle.<init>(SpawnedVehicle.java:49) ~[VehiclesPlus-v3-PRE6.1.jar:?] at nl.sbdeveloper.vehiclesplus.api.vehicles.impl.PersistentVehicle.<init>(PersistentVehicle.java:11) ~[VehiclesPlus-v3-PRE6.1.jar:?] at nl.sbdeveloper.vehiclesplus.api.vehicles.impl.StorageVehicle.spawnPersistent(StorageVehicle.java:196) ~[VehiclesPlus-v3-PRE6.1.jar:?] at nl.sbdeveloper.vehiclesplus.VehiclesPlus.lambda$onEnable$1(VehiclesPlus.java:121) ~[VehiclesPlus-v3-PRE6.1.jar:?] at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?] at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?] at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?] at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?] at nl.sbdeveloper.vehiclesplus.VehiclesPlus.onEnable(VehiclesPlus.java:121) ~[VehiclesPlus-v3-PRE6.1.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:189) ~[paper-1.19.4.jar:git-Paper-550] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[paper-1.19.4.jar:git-Paper-550] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_19_R3.CraftServer.enablePlugin(CraftServer.java:563) ~[paper-1.19.4.jar:git-Paper-550] at org.bukkit.craftbukkit.v1_19_R3.CraftServer.enablePlugins(CraftServer.java:474) ~[paper-1.19.4.jar:git-Paper-550] at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:638) ~[paper-1.19.4.jar:git-Paper-550] at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:437) ~[paper-1.19.4.jar:git-Paper-550] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:308) ~[paper-1.19.4.jar:git-Paper-550] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1104) ~[paper-1.19.4.jar:git-Paper-550] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[paper-1.19.4.jar:git-Paper-550] at java.lang.Thread.run(Thread.java:840) ~[?:?]`
129 KiB
Szejkus added the
Bug
label 2024-07-08 20:01:02 +00:00
Owner

Do you still have the VehiclesPlus plugin's data folder of this error?

Do you still have the VehiclesPlus plugin's data folder of this error?
Owner

I've resolved the startup issue, but I'm still interested in what caused this issue.

I've resolved the startup issue, but I'm still interested in what caused this issue.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SBDevelopment/VehiclesPlus#180
No description provided.