-
Search
-
Search all Forums
-
Search this Forum
-
Search this Thread
-
-
Tools
-
Jump to Forum
-
-
#1
Apr 21, 2019
UPDATE: Removing Optifine worked at first. Now, however, whenever I create a new world, I get the following crash.
FINAL UPDATE: Turns out the culprit was, oddly enough, Animania. Removing it completely stopped the crashes. Thank you for your help and ideas <3
Full report:
—- Minecraft Crash Report —-
WARNING: coremods are present:
llibrary (llibrary-core-1.0.11-1.12.2.jar)
Inventory Tweaks Coremod (InventoryTweaks-1.63.jar)
LoadingPlugin (Quark-r1.5-146.jar)
Do not report to Forge! (If you haven’t disabled the FoamFix coremod, try disabling it in the config! Note that this bit of text will still appear.) (foamfix-0.10.5-1.12.2.jar)
AppleCore (AppleCore-mc1.12.2-3.2.0.jar)
TheBetweenlandsLoadingPlugin (TheBetweenlands-3.4.6-core.jar)
PhosphorFMLLoadingPlugin (phosphor-1.12.2-0.1.6+build31.jar)
SSLoadingPlugin (SereneSeasons-1.12.2-1.2.15-universal.jar)
DynamicSurroundingsCore (DynamicSurroundings-core-1.12.2-3.5.4.3.jar)
Contact their authors BEFORE contacting forge
// There are four lights!
Time: 4/22/19 9:40 PM
Description: Exception in server tick loop
java.lang.IllegalArgumentException
at net.minecraft.util.WeightedRandom.func_76273_a(SourceFile:18)
at net.minecraft.util.WeightedRandom.func_76271_a(SourceFile:37)
at net.minecraft.world.WorldEntitySpawner.func_77191_a(WorldEntitySpawner.java:266)
at biomesoplenty.common.world.ChunkGeneratorOverworldBOP.func_185931_b(ChunkGeneratorOverworldBOP.java:569)
at net.minecraft.world.chunk.Chunk.func_186034_a(Chunk.java:1019)
at net.minecraft.world.chunk.Chunk.func_186030_a(Chunk.java:999)
at net.minecraft.world.gen.ChunkProviderServer.func_186025_d(ChunkProviderServer.java:157)
at net.minecraft.server.MinecraftServer.func_71222_d(MinecraftServer.java:344)
at net.minecraft.server.integrated.IntegratedServer.func_71247_a(IntegratedServer.java:142)
at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:156)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:486)
at java.lang.Thread.run(Thread.java:745)A detailed walkthrough of the error, its code path and all known details is as follows:
—————————————————————————————
— System Details —
Details:
Minecraft Version: 1.12.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 1046397416 bytes (997 MB) / 1778384896 bytes (1696 MB) up to 6442450944 bytes (6144 MB)
JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx6G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
IntCache: cache: 1, tcache: 1, allocated: 3, tallocated: 104
FML: MCP 9.42 Powered by Forge 14.23.5.2814 43 mods loaded, 43 mods active
States: ‘U’ = Unloaded ‘L’ = Loaded ‘C’ = Constructed ‘H’ = Pre-initialized ‘I’ = Initialized ‘J’ = Post-initialized ‘A’ = Available ‘D’ = Disabled ‘E’ = Errored
| State | ID | Version | Source | Signature |
|:—— |:—————— |:———————— |:———————————————————— |:—————————————- |
| LCHIJA | minecraft | 1.12.2 | minecraft.jar | None |
| LCHIJA | mcp | 9.42 | minecraft.jar | None |
| LCHIJA | FML | 8.0.99.99 | forge-1.12.2-14.23.5.2814.jar | e3c3d50c7c986df74c645c0ac54639741c90a557 |
| LCHIJA | forge | 14.23.5.2814 | forge-1.12.2-14.23.5.2814.jar | e3c3d50c7c986df74c645c0ac54639741c90a557 |
| LCHIJA | foamfixcore | 7.7.4 | minecraft.jar | None |
| LCHIJA | dsurroundcore | 3.5.4.3 | minecraft.jar | None |
| LCHIJA | orbis-lib | 0.2.0 | orbis-lib-1.12.2-0.2.0+build42.jar | db341c083b1b8ce9160a769b569ef6737b3f4cdf |
| LCHIJA | aether | 0.2.0 | aether_ii-1.12.2-0.2.0+build42-universal.jar | db341c083b1b8ce9160a769b569ef6737b3f4cdf |
| LCHIJA | biomesoplenty | 7.0.1.2419 | BiomesOPlenty-1.12.2-7.0.1.2419-universal.jar | None |
| LCHIJA | craftstudioapi | 1.0.0 | CraftStudioAPI-universal-1.0.1.95-mc1.12-alpha.jar | None |
| LCHIJA | harvestcraft | 1.12.2zb | Pam’s+HarvestCraft+1.12.2zc+The+7mm+Kidney+Stone+Update.jar | None |
| LCHIJA | twilightforest | 3.8.689 | twilightforest-1.12.2-3.8.689-universal.jar | None |
| LCHIJA | animania | 1.6.2 | animania-1.12.2-1.6.2.jar | None |
| LCHIJA | applecore | 3.2.0 | AppleCore-mc1.12.2-3.2.0.jar | None |
| LCHIJA | jei | 4.15.0.268 | jei_1.12.2-4.15.0.268.jar | None |
| LCHIJA | appleskin | 1.0.9 | AppleSkin-mc1.12-1.0.9.jar | None |
| LCHIJA | quark | r1.5-146 | Quark-r1.5-146.jar | None |
| LCHIJA | autoreglib | 1.3-26 | AutoRegLib-1.3-26.jar | None |
| LCHIJA | carryon | 1.12.1 | CarryOn+MC1.12.2+v1.12.1.jar | 55e88f24d04398481ae6f1ce76f65fd776f14227 |
| LCHIJA | ebwizardry | 4.1.4 | Electroblob’s+Wizardry+-+4.1.4+-+MC+1.12.2.jar | None |
| LCHIJA | erebus | 1.0.29 | Erebus-1.0.29.jar | None |
| LCHIJA | fbp | 2.4.1 | FancyBlockParticles-1.12.x-2.4.1.jar | None |
| LCHIJA | foamfix | 0.10.5-1.12.2 | foamfix-0.10.5-1.12.2.jar | None |
| LCHIJA | gravestone | 1.10.2 | gravestone-1.10.2.jar | None |
| LCHIJA | waila | 1.8.26 | Hwyla-1.8.26-B41_1.12.2.jar | None |
| LCHIJA | llibrary | 1.7.18 | llibrary-1.7.18-1.12.2.jar | b9f30a813bee3b9dd5652c460310cfcd54f6b7ec |
| LCHIJA | iceandfire | 1.7.1 | iceandfire-1.7.1-1.12.2.jar | None |
| LCHIJA | inventorytweaks | 1.63+release.109.220f184 | InventoryTweaks-1.63.jar | 55d2cd4f5f0961410bf7b91ef6c6bf00a766dcbe |
| LCHIJA | lex | 1.0.8 | LibEx-1.12.2-1.0.8.jar | None |
| LCHIJA | radixcore | 1.12.x-2.2.1 | RadixCore-1.12.x-2.2.1-universal.jar | None |
| LCHIJA | mca | 1.12.2-5.3.1 | MCA-1.12.x-5.3.1-universal.jar | None |
| LCHIJA | mowziesmobs | 1.5.4 | mowziesmobs-1.5.4.jar | None |
| LCHIJA | nex | 2.0.8 | NetherEx-1.12.2-2.0.8.jar | None |
| LCHIJA | nutrition | 4.3.0 | Nutrition-1.12.2-4.3.0.jar | None |
| LCHIJA | realdrops | 1.2.14 | RealisticItemDrops-1.2.14.jar | None |
| LCHIJA | sereneseasons | 1.2.15 | SereneSeasons-1.12.2-1.2.15-universal.jar | None |
| LCHIJA | spiceoflife | 1.3.12 | SpiceOfLife-mc1.12-1.3.12.jar | None |
| LCHIJA | treechopper | 1.2.4 | Tree-Chopper-Mod-1.12.2.jar | None |
| LCHIJA | wawla | 2.5.269 | Wawla-1.12.2-2.5.269.jar | d476d1b22b218a10d845928d1665d45fce301b27 |
| LCHIJA | phosphor-lighting | 1.12.2-0.1.6 | phosphor-1.12.2-0.1.6+build31.jar | f0387d288626cc2d937daa504e74af570c52a2f1 |
| LCHIJA | orelib | 3.5.2.2 | OreLib-1.12.2-3.5.2.2.jar | 7a2128d395ad96ceb9d9030fbd41d035b435753a |
| LCHIJA | dsurround | 3.5.4.3 | DynamicSurroundings-1.12.2-3.5.4.3.jar | 7a2128d395ad96ceb9d9030fbd41d035b435753a |
| LCHIJA | thebetweenlands | 3.4.6 | TheBetweenlands-3.4.6-universal.jar | 38067d6878811efb38b6a045521cfd80b9b60b38 |
Loaded coremods (and transformers):
llibrary (llibrary-core-1.0.11-1.12.2.jar)
net.ilexiconn.llibrary.server.core.plugin.LLibraryTransformer
net.ilexiconn.llibrary.server.core.patcher.LLibraryRuntimePatcher
Inventory Tweaks Coremod (InventoryTweaks-1.63.jar)
invtweaks.forge.asm.ContainerTransformer
LoadingPlugin (Quark-r1.5-146.jar)
vazkii.quark.base.asm.ClassTransformer
Do not report to Forge! (If you haven’t disabled the FoamFix coremod, try disabling it in the config! Note that this bit of text will still appear.) (foamfix-0.10.5-1.12.2.jar)
pl.asie.foamfix.coremod.FoamFixTransformer
AppleCore (AppleCore-mc1.12.2-3.2.0.jar)
squeek.applecore.asm.TransformerModuleHandler
TheBetweenlandsLoadingPlugin (TheBetweenlands-3.4.6-core.jar)
thebetweenlands.core.TheBetweenlandsClassTransformer
PhosphorFMLLoadingPlugin (phosphor-1.12.2-0.1.6+build31.jar)SSLoadingPlugin (SereneSeasons-1.12.2-1.2.15-universal.jar)
sereneseasons.asm.transformer.EntityRendererTransformer
sereneseasons.asm.transformer.WorldTransformer
DynamicSurroundingsCore (DynamicSurroundings-core-1.12.2-3.5.4.3.jar)
org.orecruncher.dsurround.asm.Transformer
GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
Profiler Position: N/A (disabled)
Player Count: 0 / 8; []
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to ‘fml,forge’ -
#3
Apr 21, 2019
That seems to have fixed it. Thank you!
-
#4
Apr 22, 2019
Aaand it’s back to crashing. This time whenever I make a new world. I updated the initial post.
-
#5
Apr 22, 2019
Remove mods out one by one to find out which one is causing the issue.
Say something silly, Laugh ’til it hurts, Take a risk, Sing out loud, Rock the boat, Shake things up, Flirt with disaster, Buy something frivolous, Color outside the lines, Cause a scene, Order dessert, Make waves, Get carried away, Have a great day!
- To post a comment, please login.
Posts Quoted:
Reply
Clear All Quotes
Содержание
- Java MemoryClassLoader (IllegalArgumentException)
- 2 Answers 2
- java lang illegalargumentexception как исправить
- Что это за ошибка java.lang.nullpointerexception
- Как исправить ошибку java.lang.nullpointerexception
- Для пользователей
- Для разработчиков
- 12 ответов
Java MemoryClassLoader (IllegalArgumentException)
I have a memory class loader (here) that I am using in a custom Minecraft launcher.
Whenever I load up Minecraft (a Java LWJGL game), I am getting the following error:
I am creating the class loader like this:
As you can see, it manages to load up the first part then suddenly after LWJGL Version it crashes with «input == null».
Edit — Here is the new getResource method.
The error is on «URL()», as shown.
2 Answers 2
A wild guess. it could be this: Warning: URLs for this are not yet implemented! You cannot call getResource() or getResources()!
So your code expects to retrieve an image from the JAR using the unimplemented method. An equivalent of this is probably being executed:
Except that, as we have seen, the Error thrown from getResource is getting ignored and null being used as the value. ImageIO.read goes like this:
Sounds familiar? So, this is roughly what you need to implement:
The MemoryClassLoader is pretty much broken. It does not implement getResource() (as stated in the comment in the source), and also it does not define Packages for the classes it loads (this may or may not break an application).
Most likely that ClassLoader was quickly hacked for testing purposes, leaving the more complicated methods out.
Implementing your own URL protocol to handle getResource() is not too difficult, in getResource() you return an URL that uses a custom protocol name (e.g. «myclassloader://resourcename»), and also a custom implementation of URLStreamHandler that handles that protocol. That may not cover all the loopholes that might cause trouble in locating a resource, if the code loaded through the ClassLoader uses URL.toString() and converts it back it will still break.
Implementing a fully working ClassLoader that does not simple delegation to existing ClassLoaders, is not as simple as most examples make it look.
Источник
java lang illegalargumentexception как исправить
Ряд пользователей (да и разработчиков) программных продуктов на языке Java могут столкнуться с ошибкой java.lang.nullpointerexception (сокращённо NPE), при возникновении которой запущенная программа прекращает свою работу. Обычно это связано с некорректно написанным телом какой-либо программы на Java, требуя от разработчиков соответствующих действий для исправления проблемы. В этом материале я расскажу, что это за ошибка, какова её специфика, а также поясню, как исправить ошибку java.lang.nullpointerexception.
Скриншот ошибки NPE
Что это за ошибка java.lang.nullpointerexception
Появление данной ошибки знаменует собой ситуацию, при которой разработчик программы пытается вызвать метод по нулевой ссылке на объект. В тексте сообщения об ошибке система обычно указывает stack trace и номер строки, в которой возникла ошибка, по которым проблему будет легко отследить.
Номер строки с ошибкой
Что в отношении обычных пользователей, то появление ошибки java.lang.nullpointerexception у вас на ПК сигнализирует, что у вас что-то не так с функционалом пакетом Java на вашем компьютере, или что программа (или онлайн-приложение), работающие на Java, функционируют не совсем корректно. Если у вас возникает проблема, при которой Java апплет не загружен, рекомендую изучить материал по ссылке.
Как исправить ошибку java.lang.nullpointerexception
Как избавиться от ошибки java.lang.nullpointerexception? Способы борьбы с проблемой можно разделить на две основные группы – для пользователей и для разработчиков.
Для пользователей
Если вы встретились с данной ошибкой во время запуска (или работы) какой-либо программы (особенно это касается java.lang.nullpointerexception minecraft), то рекомендую выполнить следующее:
- Переустановите пакет Java на своём компьютере. Скачать пакет можно, к примеру, вот отсюда;
- Переустановите саму проблемную программу (или удалите проблемное обновление, если ошибка начала появляться после такового);
- Напишите письмо в техническую поддержку программы (или ресурса) с подробным описанием проблемы и ждите ответа, возможно, разработчики скоро пофиксят баг.
- Также, в случае проблем в работе игры Майнкрафт, некоторым пользователям помогло создание новой учётной записи с административными правами, и запуск игры от её имени.
Java ошибка в Майнкрафт
Для разработчиков
Разработчикам стоит обратить внимание на следующее:
- Вызывайте методы equals(), а также equalsIgnoreCase() в известной строке литерала, и избегайте вызова данных методов у неизвестного объекта;
- Вместо toString() используйте valueOf() в ситуации, когда результат равнозначен;
- Применяйте null-безопасные библиотеки и методы;
- Старайтесь избегать возвращения null из метода, лучше возвращайте пустую коллекцию;
- Применяйте аннотации @Nullable и @NotNull;
- Не нужно лишней автоупаковки и автораспаковки в создаваемом вами коде, что приводит к созданию ненужных временных объектов;
- Регламентируйте границы на уровне СУБД;
- Правильно объявляйте соглашения о кодировании и выполняйте их.
Есть три страницы наследованные от Fragment
И в одном из них создаются еще 2 фрагмента.
При перемещении по фрагментам быстро вылетает ошибка
Если убрать эти строки , то ошибка пропадает но при переходе на нужный фрагмент он пустой.
Что такое исключения Null Pointer ( java.lang.NullPointerException ) и что их вызывает?
Какие методы / инструменты могут использоваться для определения причины, чтобы исключить исключение из-за преждевременного прекращения работы программы?
12 ответов
Когда вы объявляете ссылочную переменную (т. е. объект), вы действительно создаете указатель на объект. Рассмотрим следующий код, в котором вы объявляете переменную примитивного типа int :
В этом примере переменная x является int , и Java инициализирует ее для 0. Когда вы назначаете его 10 во второй строке, ваше значение 10 записывается в ячейку памяти, на которую указывает x.
Но когда вы пытаетесь объявить ссылочный тип, произойдет что-то другое. Возьмите следующий код:
Первая строка объявляет переменную с именем num , но она не содержит примитивного значения. Вместо этого он содержит указатель (потому что тип Integer является ссылочным типом). Поскольку вы еще не указали, что указать на Java, он устанавливает значение null, что означает «Я ничего не указываю».
Во второй строке ключевое слово new используется для создания экземпляра (или создания ) объекту типа Integer и переменной указателя num присваивается этот объект. Теперь вы можете ссылаться на объект, используя оператор разыменования . (точка).
Exception , о котором вы просили, возникает, когда вы объявляете переменную, но не создавали объект. Если вы попытаетесь разыменовать num . Перед созданием объекта вы получите NullPointerException . В самых тривиальных случаях компилятор поймает проблему и сообщит вам, что «num не может быть инициализирован», но иногда вы пишете код, который непосредственно не создает объект.
Например, вы можете имеют следующий метод:
В этом случае вы не создаете объект obj , скорее предполагая, что он был создан до вызова метода doSomething . К сожалению, этот метод можно вызвать следующим образом:
В этом случае obj имеет значение null. Если метод предназначен для того, чтобы что-то сделать для переданного объекта, целесообразно бросить NullPointerException , потому что это ошибка программиста, и программисту понадобится эта информация для целей отладки.
Альтернативно, там могут быть случаи, когда цель метода заключается не только в том, чтобы работать с переданным в объекте, и поэтому нулевой параметр может быть приемлемым. В этом случае вам нужно будет проверить нулевой параметр и вести себя по-другому. Вы также должны объяснить это в документации. Например, doSomething может быть записано как:
Источник
-
#1
Скомпилировал мод, запускаю клиент и выдает такую ошибку.
2016-06-01 08:49:26 [WARNING] [ForgeModLoader] Zip file minecraft.jar failed to read properly, it will be ignored
java.lang.IllegalArgumentException: MALFORMED
at java.util.zip.ZipCoder.toString(Unknown Source)
at java.util.zip.ZipFile.getZipEntry(Unknown Source)
at java.util.zip.ZipFile.access$900(Unknown Source)
at java.util.zip.ZipFile$ZipEntryIterator.next(Unknown Source)
at java.util.zip.ZipFile$ZipEntryIterator.nextElement(Unknown Source)
at java.util.zip.ZipFile$ZipEntryIterator.nextElement(Unknown Source)
at java.util.jar.JarFile$JarEntryIterator.next(Unknown Source)
at java.util.jar.JarFile$JarEntryIterator.nextElement(Unknown Source)
at java.util.jar.JarFile$JarEntryIterator.nextElement(Unknown Source)
at java.util.Collections.list(Unknown Source)
at cpw.mods.fml.common.discovery.JarDiscoverer.discover(JarDiscoverer.java:60)
at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42)
at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:71)
at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:137)
at cpw.mods.fml.common.Loader.identifyMods(Loader.java:353)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:484)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:473)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:808)
at net.minecraft.client.main.Main.main(SourceFile:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
Не могу понять как это исправлять. Зарание спасибо.
-
#2
Запаковать в нормальный кодек zip (обычно некоторые пользуются 7-Zip и выбирают не подходящий кодек для запаковывания).
-
#3
так дело в том, что в предыдущих версиях мода все работало как надо.
timaxa007 написал(а):
Запаковать в нормальный кодек zip (обычно некоторые пользуются 7-Zip и выбирают не подходящий кодек для запаковывания).
-
#4
А ты уверен, что в архив не попал какой-нибудь файл с кириллицей?
-
#5
Так, сейчас точно проверю.
timaxa007 написал(а):
А ты уверен, что в архив не попал какой-нибудь файл с кириллицей?
-
#6
Да, если попадает файл с кирилицей, то изменять архив нельзя.
-
#7
timaxa007 написал(а):
А ты уверен, что в архив не попал какой-нибудь файл с кириллицей?
Странно, но нет
-
#8
Тогда я не знаю почему у тебя minecraft.jar не хочет запускаться.
-
#9
У меня тоже такая фигня часто была(не помню как исправил), может попробуй minecraft.jar переустановить и в своем моде покопаться.
-
#10
Понял где искать ошибку, поставил старые ассетсы и теперь стало крашить, уже хоть что-то
-
#11
Всем спасибо за помощь, нашел битые текстуры. Закрывайте.
- Thread Status:
-
Not open for further replies.
-
Hi, I’m newer to coding Spigot plugins and I’ve run into this error:
java.lang.IllegalArgumentException: Path cannot be null at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[patched_1.16.5.jar:git-Paper-735] at org.bukkit.configuration.MemorySection.get(MemorySection.java:237) ~[patched_1.16.5.jar:git-Paper-735] at org.bukkit.configuration.MemorySection.getBoolean(MemorySection.java:365) ~[patched_1.16.5.jar:git-Paper-735] at me.lyndensylvester.halloween.listener.EventListener.spawn(EventListener.java:121) ~[?:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor1.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.5.jar:git-Paper-735] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.5.jar:git-Paper-735] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.5.jar:git-Paper-735] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:624) ~[patched_1.16.5.jar:git-Paper-735] at org.bukkit.craftbukkit.v1_16_R3.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:719) ~[patched_1.16.5.jar:git-Paper-735] at org.bukkit.craftbukkit.v1_16_R3.event.CraftEventFactory.doEntityAddEventCalling(CraftEventFactory.java:637) ~[patched_1.16.5.jar:git-Paper-735] at net.minecraft.server.v1_16_R3.WorldServer.addEntity0(WorldServer.java:1302) ~[patched_1.16.5.jar:git-Paper-735] at net.minecraft.server.v1_16_R3.WorldServer.addEntity(WorldServer.java:1203) ~[patched_1.16.5.jar:git-Paper-735] at net.minecraft.server.v1_16_R3.WorldAccess.lambda$addAllEntities$0(WorldAccess.java:16) ~[patched_1.16.5.jar:git-Paper-735] at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:411) ~[?:?] at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734) ~[?:?] at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658) ~[?:?] at net.minecraft.server.v1_16_R3.WorldAccess.addAllEntities(WorldAccess.java:16) ~[patched_1.16.5.jar:git-Paper-735] at net.minecraft.server.v1_16_R3.SpawnerCreature.spawnMobsInternal(SpawnerCreature.java:286) ~[patched_1.16.5.jar:git-Paper-735] at net.minecraft.server.v1_16_R3.SpawnerCreature.spawnMobs(SpawnerCreature.java:212) ~[patched_1.16.5.jar:git-Paper-735] at net.minecraft.server.v1_16_R3.SpawnerCreature.a(SpawnerCreature.java:188) ~[patched_1.16.5.jar:git-Paper-735] at net.minecraft.server.v1_16_R3.ChunkProviderServer.lambda$tickChunks$14(ChunkProviderServer.java:867) ~[patched_1.16.5.jar:git-Paper-735] at net.minecraft.server.v1_16_R3.PlayerChunkMap.forEachVisibleChunk(PlayerChunkMap.java:683) ~[patched_1.16.5.jar:git-Paper-735] at net.minecraft.server.v1_16_R3.ChunkProviderServer.tickChunks(ChunkProviderServer.java:849) ~[patched_1.16.5.jar:git-Paper-735] at net.minecraft.server.v1_16_R3.ChunkProviderServer.tick(ChunkProviderServer.java:767) ~[patched_1.16.5.jar:git-Paper-735] at net.minecraft.server.v1_16_R3.WorldServer.doTick(WorldServer.java:576) ~[patched_1.16.5.jar:git-Paper-735] at net.minecraft.server.v1_16_R3.MinecraftServer.b(MinecraftServer.java:1489) ~[patched_1.16.5.jar:git-Paper-735] at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:436) ~[patched_1.16.5.jar:git-Paper-735] at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1341) ~[patched_1.16.5.jar:git-Paper-735] at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1129) ~[patched_1.16.5.jar:git-Paper-735] at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:290) ~[patched_1.16.5.jar:git-Paper-735] at java.lang.Thread.run(Thread.java:832) [?:?]
Here’s the code I’m trying to run in my EventListener:
package me.lyndensylvester.halloween.listener; import java.util.Random; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.World; import org.bukkit.block.Block; import org.bukkit.entity.Entity; import org.bukkit.entity.EntityType; import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Player; import org.bukkit.entity.Skeleton; import org.bukkit.entity.Zombie; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.block.Action; import org.bukkit.event.block.BlockBreakEvent; import org.bukkit.event.entity.EntityDeathEvent; import org.bukkit.event.entity.EntitySpawnEvent; import org.bukkit.event.player.PlayerInteractEvent; import org.bukkit.inventory.EntityEquipment; import org.bukkit.inventory.ItemStack; import me.lyndensylvester.halloween.utils.Utils; import me.lyndensylvester.halloween.Main; import me.lyndensylvester.halloween.items.ItemManager; public class EventListener implements Listener { private static Main plugin; @SuppressWarnings("static-access") public EventListener(Main plugin) { this.plugin = plugin; Bukkit.getPluginManager().registerEvents(this, plugin); } Player p; Block b; EntityType t; /** * BlockBreak event * * Detect if the player broke a melon block * and send a success or failure spawn message * * @param event */ @EventHandler public void onBlockBreak(BlockBreakEvent event) { p = (Player) event.getPlayer(); b = (Block) event.getBlock(); if (b.getType() == Material.MELON) { Random rand = new Random(); var max = 100; var min = 0; int chance = rand.nextInt(max - min + 1) + min; if (chance > 33) { Location spawnLoc = p.getLocation().add(2,0,0); World world = p.getWorld(); @SuppressWarnings("unused") Skeleton skeleton = (Skeleton) world.spawnEntity(spawnLoc, EntityType.SKELETON); Bukkit.broadcastMessage(Utils.chat(plugin.getConfig().getString("melon_succes").replace("<player>", p.getName()))); } else { Bukkit.broadcastMessage(Utils.chat(plugin.getConfig().getString("melon_fail").replace("<player>", p.getName()))); } } if (b.getType() == Material.PUMPKIN) { Random rand = new Random(); var max = 100; var min = 0; int chance = rand.nextInt(max - min + 1) + min; if (chance > 50) { Location spawnLoc = p.getLocation().add(2,0,0); World world = p.getWorld(); @SuppressWarnings("unused") Zombie zombie =(Zombie) world.spawnEntity(spawnLoc, EntityType.ZOMBIE); Bukkit.broadcastMessage(Utils.chat(plugin.getConfig().getString("pumpkin_succes").replace("<player>", p.getName()))); } else { Bukkit.broadcastMessage(Utils.chat(plugin.getConfig().getString("pumpkin_fail").replace("<player>", p.getName()))); } } } /** * EntitySpawn event * * Spawn a skeleton 2 blocks to the right of the player * * @param event */ @SuppressWarnings({ }) @EventHandler public void spawn(EntitySpawnEvent event) { Entity entity = event.getEntity(); if (plugin.getConfig().getBoolean(null, true) && (entity instanceof Skeleton)) { EntityEquipment ee = ((Skeleton)entity).getEquipment(); ee.setHelmet(new ItemStack(Material.MELON)); ee.setHelmetDropChance(100); } if (plugin.getConfig().getBoolean(null, true) && (entity instanceof Zombie)) { EntityEquipment ee = ((Zombie)entity).getEquipment(); ee.setHelmet(new ItemStack(Material.PUMPKIN)); ee.setHelmetDropChance(100); } if (plugin.getConfig().getBoolean(null, false)) { p.sendMessage("This feature has been disabled! Go to the config to re-enable it!"); } } /** * EntityDeath event * * Add custom Drops to the mob * * @param event */ @EventHandler public void onDeath(EntityDeathEvent event) { LivingEntity e = event.getEntity(); Random rand = new Random(); var max = 100; var min = 0; int chance = rand.nextInt(max - min + 1) + min; if (e instanceof Skeleton) { // 50% if (chance < 50) { e.getLocation().getWorld().dropItem(e.getLocation(), new ItemStack(Material.COAL)); } // 25% else if ((49 < chance) && (chance < 75)) { e.getLocation().getWorld().dropItem(e.getLocation(), new ItemStack(Material.IRON_INGOT)); } // 13% else if ((74 < chance) && (chance < 88)) { e.getLocation().getWorld().dropItem(e.getLocation(), new ItemStack(Material.GOLD_INGOT)); } // 7% else if ((87 < chance) && (chance < 95)) e.getLocation().getWorld().dropItem(e.getLocation(), new ItemStack(Material.REDSTONE_WIRE)); } // 4% else if ((94 < chance) && (chance < 99)) { e.getLocation().getWorld().dropItem(e.getLocation(), new ItemStack(Material.DIAMOND)); } // 2% else { e.getLocation().getWorld().dropItem(e.getLocation(), new ItemStack(Material.EMERALD)); } } @EventHandler public static void onRightClick(PlayerInteractEvent event) { if (event.getAction() == Action.RIGHT_CLICK_BLOCK) { if (event.getItem() != null) { if (event.getItem().getItemMeta().equals(ItemManager.superSword.getItemMeta())) { Player p = event.getPlayer(); p.getWorld().createExplosion(p.getLocation(), 2.0f); p.sendMessage("&7 You Dare use the Super Sword!"); } } } } }
This is what ItemManager does:
package me.lyndensylvester.halloween.items; import java.util.ArrayList; import java.util.List; import org.bukkit.Material; import org.bukkit.enchantments.Enchantment; import org.bukkit.inventory.ItemFlag; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.ItemMeta; publicclassItemManager { publicstaticItemStacksuperSword; publicstaticvoidinit() { createSuperSword(); } privatestaticvoidcreateSuperSword() { ItemStack item = new ItemStack(Material.IRON_SWORD, 1); ItemMetameta = item.getItemMeta(); meta.setDisplayName("Super Sword"); List<String> lore = new ArrayList<>(); lore.add("&7This is the most powerful sword"); lore.add("&7in all of Minecradt's history"); meta.setLore(lore); meta.addEnchant(Enchantment.SWEEPING_EDGE, 3, false); meta.addItemFlags(ItemFlag.HIDE_ENCHANTS); item.setItemMeta(meta); superSword = item; } }
This is how I have my Main file setup:
package me.lyndensylvester.halloween; import org.bukkit.plugin.java.JavaPlugin; import me.lyndensylvester.halloween.commands.HalloweenCommand; import me.lyndensylvester.halloween.items.ItemManager; import me.lyndensylvester.halloween.listener.EventListener; public class Main extends JavaPlugin { @Override public void onEnable() { new EventListener(this); ItemManager.init(); getServer().getPluginManager().registerEvents(new EventListener(this), this); getCommand("superSword").setExecutor(new HalloweenCommand()); } }
And this is how I have HalloweenCommand setup:
package me.lyndensylvester.halloween.commands; import org.bukkit.Location; import org.bukkit.World; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.EntityType; import org.bukkit.entity.Player; import org.bukkit.entity.Skeleton; import me.lyndensylvester.halloween.items.ItemManager; public class HalloweenCommand implements CommandExecutor { @Override public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if(!(sender instanceof Player)) { sender.sendMessage("Only players may execute this command"); return true; } Player p = (Player) sender; if (cmd.getName().equalsIgnoreCase("Halloween")) { p.sendMessage("Happy Halloween >:)"); Location spawnLoc = p.getLocation().add(2,0,0); World world = p.getWorld(); @SuppressWarnings("unused") Skeleton skeleton = (Skeleton) world.spawnEntity(spawnLoc, EntityType.SKELETON); return true; } if (cmd.getName().equalsIgnoreCase("superSword")) { p.getInventory().addItem(ItemManager.superSword); } else { p.sendMessage("You do not have the permission to execute this command"); } return true; } }
What’s causing the error and how do I fix it? everything in the code is logically sound, but only the superSword works and not the EntitySpawning. Help would be greatly appreciated!
-
@Lynden Sylver
Your error says it’s a IllegalArgumentException and path cannot be null.
Then you can look at your stacktrace and it’s saying:
at me.lyndensylvester.halloween.listener.EventListener.spawn(EventListener.java:121) ~[?:?]You can then deduce that there’s a problem in the EventListener.java file, at line 121, in the method spawn().
if (plugin.getConfig().getBoolean(null, false)) { // This line!
p.sendMessage("This feature has been disabled! Go to the config to re-enable it!");
}
The signature of the getBoolean() method is getBoolean(path, defaultValue)
«path cannot be null» is the error message. You get the point.psst @timtower wrong section no?
-
Offline
timtower
Administrator
Administrator
Moderator
Psst, report button no?
Moved to plugin development.
-
Forgot the existence of that button shh tim dont make it obvious
KarimAKL and timtower like this.
-
@Shqep
I know Java, but I haven’t worked with paths before.
Are there any resources available explaining how I can identify the path I need?
That error has been driving crazy the last couple of days.
Also, thanks for pinpointing the source of my error, being newer to the API, I’m still learning about all the nuances of the methods I’m using.
Last edited: Jun 16, 2021
-
@Lynden Sylver
Assuming this is a yaml file:testString: key1: true key2: "Hello" testString2: key3: 1.0 key4: - "List" - "of" - "String"
Consider the yaml file as a very big HashMap, and the path is just the key to point to the value. So if you want to get the list of string above, you need to specify the path as «testString2.key4». Likewise:
- config.getBoolean("testString.key1"); // returns true
- config.getString("testString.key2"); // returns "Hello"
- config.getDouble("testString2.key3"); // returns 1.0
- config.getStringList("testString2.key4"); // returns a list containing "List", "of", and "String"
- config.getKeys(false); // returns a list of the main keys "testString" and "testString2"
You can specify the second argument as the «default value»:
- config.getBoolean("testString.key4", true); // "testString.key4" path returns null, so true is returned instead
-
@Shqep
Just a quick follow-up,
How would I pass a casted Player into my EntitySpawnEvent so that I can use p.sendMessage?
I understand Player is not a child of the EntitySpawnEvent, so what’s a workaround that would let me pass a casted Player so I can send the player a message?
I already have Player p declared in global scope, but how can I instantiate it for use in EntitySpawnEvent? (Refer back to my original post for the EventListener Class where I declare Player as p)
-
@Lynden Sylver
That really didn’t make a lot of sense. EntitySpawnEvents are only called only when an entity is created/spawned. They have absolutely nothing to do with a player.
If you want to detect who used the spawn egg, you might want to refer to the event PlayerInteractEvent or some similar ones.If you want to send a player a message (why?), use the Bukkit.getPlayer(name) or Bukkit.getPlayer(uuid). You don’t create a new instance of Player because the new thing won’t be bound to any actual players. Unless you know exactly what you are doing and how to bind that new instance to an existing player for Bukkit to recognize, it’s better to just stay away.
Defining a Player property for the class is a very bad idea. Just imagine, what if there are many players being assigned to that variable, they keep overriding each other and from your standpoint, you do not know who you are sending the message to.
Show Spoiler
Hide Spoiler
Some more advice since you are new to the api:
1. You have a class named HalloweenCommand, why not make another small class for the supersword command? Cleans up a bit and you don’t have to call checks for cmd.getName().- getCommand("halloween").setExecutor(new HalloweenCommand());
- getCommand("supersword").setExecutor(new SuperswordCommand());
- public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
- // No need to check cmd.getName() anymore since it's always "halloween"
- assert cmd.getName().equalsIgnoreCase("halloween");
- public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
- // No need to check cmd.getName() anymore since it's always "supersword"
- assert cmd.getName().equalsIgnoreCase("supersword");
2. Currently from your codes, the cmd.getName() will never be «halloween» since you never specified its executor.
- getCommand("halloween").setExecutor(...);
3. You’re not checking for permissions in your command class:
- // Reread it and you should see it's pretty weird.
- if (cmd.getName().equalsIgnoreCase("superSword")) {
- p.getInventory().addItem(ItemManager.superSword);
- p.sendMessage("You do not have the permission to execute this command");
- if(p.hasPermission("permission.node")) {
- } else p.sendMessage("no perms L");
- // Proper way 2 "negative checks"
- if(!p.hasPermission("permission.node")) {
- p.sendMessage("no perms lol");
- // Stuff down here to avoid too much indentation.
4. You keep trying to get a key from path null in config in the spawn event. But I assume you already got this fixed by now.
Other random stuff such as instantiating a Random instance every time the event is called, kind of inefficient, you can probably define a global scope variable for this class.
Also why static on an event handler method?
- Thread Status:
-
Not open for further replies.
Share This Page
I host a personal server running mostly the same mods. The exception is a few Just Enough _____ mods for different mod packs. The game loads up and even plays in the server I host but I cannot run a single player world without this error. I tried making sense of the code, but to be honest, I cant read java. I know very very little. So its all gobbly gook to me. Anyone make sense of the crash report?
---- Minecraft Crash Report ----
WARNING: coremods are present:
MicdoodlePlugin (MicdoodleCore-1.12.2.jar)
Plugin (NotEnoughIDs-1.5.4.4.jar)
IELoadingPlugin (ImmersiveEngineering-core-0.12-89.jar)
llibrary (llibrary-core-1.0.10-1.12.2.jar)
PhosphorFMLLoadingPlugin (phosphor-1.12.2-0.2.4+build46.jar)
ForgelinPlugin (Shadowfacts-Forgelin-1.12.2.jar)
TheBetweenlandsLoadingPlugin (TheBetweenlands-3.4.7-core.jar)
HCASM (HammerCore-1.12.2-2.0.4.9.jar)
Contact their authors BEFORE contacting forge
// Uh... Did I do that?
Time: 12/19/19 11:48 PM
Description: Exception preparing structure feature
java.lang.IllegalArgumentException: bound must be positive
at java.util.Random.nextInt(Random.java:388)
at net.minecraft.world.gen.structure.MapGenVillage.func_75047_a(SourceFile:64)
at net.minecraft.world.gen.structure.MapGenStructure.func_180701_a(MapGenStructure.java:38)
at net.minecraft.world.gen.MapGenBase.func_186125_a(SourceFile:34)
at net.minecraft.world.gen.ChunkGeneratorOverworld.func_185932_a(ChunkGeneratorOverworld.java:228)
at net.minecraft.world.gen.ChunkProviderServer.func_186025_d(ChunkProviderServer.java:143)
at net.minecraft.world.World.func_72964_e(World.java:310)
at net.minecraft.world.World.func_175726_f(World.java:305)
at net.minecraft.world.World.func_180495_p(World.java:911)
at net.minecraft.world.World.func_175623_d(World.java:230)
at net.minecraft.world.World.func_184141_c(World.java:210)
at net.minecraft.world.WorldProvider.func_76566_a(WorldProvider.java:76)
at net.minecraft.world.WorldServer.func_73052_b(WorldServer.java:944)
at net.minecraft.world.WorldServer.func_72963_a(WorldServer.java:866)
at net.minecraft.server.integrated.IntegratedServer.func_71247_a(IntegratedServer.java:97)
at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:209)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:486)
at java.lang.Thread.run(Thread.java:745)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Server thread
Stacktrace:
at java.util.Random.nextInt(Random.java:388)
at net.minecraft.world.gen.structure.MapGenVillage.func_75047_a(SourceFile:64)
-- Feature being prepared --
Details:
Is feature chunk: ~~ERROR~~ IllegalArgumentException: bound must be positive
Chunk location: 6,7
Chunk pos hash: 30064771078
Structure type: net.minecraft.world.gen.structure.MapGenVillage
Stacktrace:
at net.minecraft.world.gen.structure.MapGenStructure.func_180701_a(MapGenStructure.java:38)
at net.minecraft.world.gen.MapGenBase.func_186125_a(SourceFile:34)
at net.minecraft.world.gen.ChunkGeneratorOverworld.func_185932_a(ChunkGeneratorOverworld.java:228)
-- Chunk to be generated --
Details:
Location: 14,15
Position hash: 64424509454
Generator: net.minecraft.world.gen.ChunkGeneratorOverworld@57a3d869
Stacktrace:
at net.minecraft.world.gen.ChunkProviderServer.func_186025_d(ChunkProviderServer.java:143)
at net.minecraft.world.World.func_72964_e(World.java:310)
at net.minecraft.world.World.func_175726_f(World.java:305)
at net.minecraft.world.World.func_180495_p(World.java:911)
at net.minecraft.world.World.func_175623_d(World.java:230)
at net.minecraft.world.World.func_184141_c(World.java:210)
at net.minecraft.world.WorldProvider.func_76566_a(WorldProvider.java:76)
at net.minecraft.world.WorldServer.func_73052_b(WorldServer.java:944)
-- Affected level --
Details:
Level name: New World
All players: 0 total; []
Chunk stats: ServerChunkCache: 0 Drop: 0
Level seed: 4524058762939609246
Level generator: ID 00 - default, ver 1. Features enabled: true
Level generator options:
Level spawn location: World: (0,0,0), Chunk: (at 0,0,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 0 game time, 0 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
Stacktrace:
at net.minecraft.world.WorldServer.func_72963_a(WorldServer.java:866)
at net.minecraft.server.integrated.IntegratedServer.func_71247_a(IntegratedServer.java:97)
at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:209)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:486)
at java.lang.Thread.run(Thread.java:745)
-- System Details --
Details:
Minecraft Version: 1.12.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 3261047544 bytes (3109 MB) / 8959033344 bytes (8544 MB) up to 19327352832 bytes (18432 MB)
JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx18G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
IntCache: cache: 0, tcache: 0, allocated: 15, tallocated: 95
FML: MCP 9.42 Powered by Forge 14.23.5.2847 Optifine OptiFine_1.12.2_HD_U_E3 93 mods loaded, 93 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
| State | ID | Version | Source | Signature |
|:------ |:-------------------- |:-------------------- |:---------------------------------------------- |:---------------------------------------- |
| LCHIJA | minecraft | 1.12.2 | minecraft.jar | None |
| LCHIJA | mcp | 9.42 | minecraft.jar | None |
| LCHIJA | FML | 8.0.99.99 | forge-1.12.2-14.23.5.2847.jar | None |
| LCHIJA | forge | 14.23.5.2847 | forge-1.12.2-14.23.5.2847.jar | None |
| LCHIJA | micdoodlecore | | minecraft.jar | None |
| LCHIJA | movillages | 1.5.4 | [1.12]MoVillages-1.5.4.jar | None |
| LCHIJA | advanced-fishing | 1.2.0 | Advanced-Fishing-Mod-1.12.2.jar | None |
| LCHIJA | orbis-lib | 0.2.0 | orbis-lib-1.12.2-0.2.0+build74.jar | db341c083b1b8ce9160a769b569ef6737b3f4cdf |
| LCHIJA | aether | 0.2.1 | Aether-2-Mod-1.12.2.jar | db341c083b1b8ce9160a769b569ef6737b3f4cdf |
| LCHIJA | architecturecraft | @VERSION@ | ArchitectureCraft-Mod-1.12.2.jar | None |
| LCHIJA | baubles | 1.5.2 | Baubles-Mod-1.12.2.jar | None |
| LCHIJA | betterthanllamas | 1.12.1-1.0.0 | Better-Than-Llamas-Mod-1.12.2.jar | None |
| LCHIJA | bibliocraft | 2.4.5 | BiblioCraft-Mod-1.12.2.jar | None |
| LCHIJA | bookshelf | 2.3.577 | Bookshelf-1.12.2-2.3.577.jar | d476d1b22b218a10d845928d1665d45fce301b27 |
| LCHIJA | buildcraftlib | 7.99.24.1 | BuildCraft-Mod-1.12.2.jar | None |
| LCHIJA | buildcraftcore | 7.99.24.1 | BuildCraft-Mod-1.12.2.jar | None |
| LCHIJA | buildcraftbuilders | 7.99.24.1 | BuildCraft-Mod-1.12.2.jar | None |
| LCHIJA | buildcrafttransport | 7.99.24.1 | BuildCraft-Mod-1.12.2.jar | None |
| LCHIJA | buildcraftsilicon | 7.99.24.1 | BuildCraft-Mod-1.12.2.jar | None |
| LCHIJA | buildcraftcompat | 7.99.24.1 | BuildCraft-Mod-1.12.2.jar | None |
| LCHIJA | buildcraftenergy | 7.99.24.1 | BuildCraft-Mod-1.12.2.jar | None |
| LCHIJA | buildcraftfactory | 7.99.24.1 | BuildCraft-Mod-1.12.2.jar | None |
| LCHIJA | buildcraftrobotics | 7.99.24.1 | BuildCraft-Mod-1.12.2.jar | None |
| LCHIJA | casinocraft | v06 | CasinoCraft-Mod-1.12.2.jar | None |
| LCHIJA | chesttransporter | 2.8.8 | Chest-Transporter-Mod-1.12.2.jar | None |
| LCHIJA | coralreef | 2.0 | CoralReef-Mod-1.12.2.jar | None |
| LCHIJA | dmonsters | 1.7 | Deadly-Monsters-Mod-1.12.2.jar | None |
| LCHIJA | ptrmodellib | 1.0.2 | PTRLib-1.12.2.jar | None |
| LCHIJA | props | 2.6.1 | DecoCraft-Mod-1.12.2.jar | None |
| LCHIJA | economy | 1.5 | Economy-Inc-Mod-1.12.2.jar | None |
| LCHIJA | energyconverters | 1.3.0.15 | energyconverters_1.12.2-1.3.0.15.jar | None |
| LCHIJA | equivalentstone | 1.0.0 | Equivalent-Stone-Mod-1.12.2.jar | None |
| LCHIJA | exoticbirds | 1.0 | Exotic-Birds-Mod-1.12.2.jar | None |
| LCHIJA | hammercore | 2.0.4.9 | HammerCore-1.12.2-2.0.4.9.jar | 4d7b29cd19124e986da685107d16ce4b49bc0a97 |
| LCHIJA | jei | 4.14.4.264 | JEI-1.12.jar | None |
| LCHIJA | projecte | 1.12.2-PE1.4.0 | ProjectE-Mod-1.12.2.jar | None |
| LCHIJA | expequiv | 13r | ExpandedEquivalence-1.12.2-13r.jar | 4d7b29cd19124e986da685107d16ce4b49bc0a97 |
| LCHIJA | golems | 7.1.7 | Extra-Golems-Mod-1.12.2.jar | None |
| LCHIJA | extrautils2 | 1.0 | Extra-Utilities-Mod-1.12.2.jar | None |
| LCHIJA | fairylights | 2.1.9 | Fairy-Lights-Mod-1.12.2.jar | None |
| LCHIJA | mod_lavacow | 1.0.3 | Fishs-Undead-Rising-Mod-1.12.2.jar | None |
| LCHIJA | flansmod | 5.5.2 | Flan's Mod-1.12.2-5.5.2.jar | None |
| LCHIJA | flansmodapocalypse | 1.0 | Flan's Mod-1.12.2-5.5.2.jar | None |
| LCHIJA | foamflower | 1.12.2-1.0.0.0-beta1 | foamflower-1.12.2-1.0.0.0-beta1.jar | None |
| LCHIJA | foodexpansion | 1.3 | Food-Expansion-Mod-1.12.2.jar | None |
| LCHIJA | llibrary | 1.7.17 | llibrary-1.7.17-1.12.2.jar | b9f30a813bee3b9dd5652c460310cfcd54f6b7ec |
| LCHIJA | fossil | 8.0.0 | Fossils-and-Archeology-Revival-Mod-1.12.2.jar | None |
| LCHIJA | freetrading | 0.2.2 | Freetrading-Mod-1.12.2.jar | None |
| LCHIJA | furenikusroads | 1.0.3 | Furenikus-Roads-Mod-1.12.2.jar | None |
| LCHIJA | ic2 | 2.8.100-ex112 | Industrial-Craft-2-Mod-Experimental-1.12.2.jar | de041f9f6187debbc77034a344134053277aa3b0 |
| LCHIJA | galacticraftcore | 4.0.2.220 | Galacticraft-Mod-1.12.2.jar | None |
| LCHIJA | galacticraftplanets | 4.0.2.220 | Galacticraft-Planets-Mod-1.12.2.jar | None |
| LCHIJA | gbook | 1.7.2 | Guidebook-1.12.jar | None |
| LCHIJA | iceandfire | 1.7.0 | Ice-and-Fire-Mod-1.12.2.jar | None |
| LCHIJA | immersiveengineering | 0.12-89 | Immersive-Engineering-Mod-1.12.2.jar | 4cb49fcde3b43048c9889e0a3d083225da926334 |
| LCHIJA | immersivepetroleum | 1.1.9 | Immersive-Petroleum-Mod-1.12.2.jar | None |
| LCHIJA | immersivetech | 1.3.10 | Immersive-Tech-Mod-1.12.2.jar | None |
| LCHIJA | industrialrenewal | 0.6.0 | Industrial-Renewal-Mod-1.12.2.jar | None |
| LCHIJA | justenoughpetroleum | 0.1 | Just-Enough-Petroleum-Mod-1.12.2.jar | None |
| LCHIJA | mystic | 0.7.0 | Kether-Mod-1.12.2.jar | None |
| LCHIJA | longerdays | 1.0.4 | Longer-Days-Mod-1.12.2.jar | None |
| LCHIJA | lsc | 0.6.2.2-alpha | Loot-Slash-Conquer-Mod-1.12.2.jar | None |
| LCHIJA | los | 1.0.0 | Lots-of-Stuff-Mod-1.12.2.jar | None |
| LCHIJA | thaumcraft | 6.1.BETA26 | Thaumcraft-Mod-1.12.2.jar | None |
| LCHIJA | lycanitesmobs | 2.0.0.8 - MC 1.12.2 | lycanitesmobs-1.12.2-2.0.0.8.jar | None |
| LCHIJA | millenaire | Millénaire 7.1.2 | millenaire-7.1.2.jar | None |
| LCHIJA | minejurassic | 1.0.1 | MineJurassic-Mod-1.12.2.jar | None |
| LCHIJA | mocreatures | 12.0.5 | Mo-Creatures-Mod-1.12.2.jar | None |
| LCHIJA | cdm | 0.4.1 | MrCrayfishs-Device-Mod-1.12.2.jar | None |
| LCHIJA | cfm | 6.2.0 | MrCrayfishs-Furniture-Mod-1.12.2.jar | None |
| LCHIJA | mutantmobs | 1.0.1 | Mutant-Mobs-Mod-1.12.2.jar | None |
| LCHIJA | neid | 1.5.4.4 | NotEnoughIDs-1.5.4.4.jar | None |
| LCHIJA | openablewindows | 0.0.1 | Openable-Windows-Mod-1.12.2.jar | None |
| LCHIJA | ordinarycoins | 1.3.2 | Ordinary-Coins-Mod-1.12.2.jar | None |
| LCHIJA | pa | 1.12.2 | Passive-Aggression-Mod-1.12.2.jar | None |
| LCHIJA | pixelmon | 6.3.4 | Pixelmon-1.12.2-6.3.4-universal.jar | None |
| LCHIJA | poweradapters | 1.0.9 | PowerAdapters-1.12.2-1.0.9.jar | d476d1b22b218a10d845928d1665d45fce301b27 |
| LCHIJA | df-roads | 1.4-mc1.12.2 | Realistic-Road-Mod-1.12.2.jar | None |
| LCHIJA | srparasites | 1.1 | Scape-and-Run-Parasites-Mod-1.12.2.jar | None |
| LCHIJA | forgelin | 1.8.3 | Shadowfacts-Forgelin-1.12.2.jar | None |
| LCHIJA | parry | 1.0 | Shield-Parry-Mod-1.12.2.jar | None |
| LCHIJA | modname | 1.0.2 | Subnauticraft-Mod-1.12.2.jar | None |
| LCHIJA | swanboat | 1.12.2-1.0.0 | Swan-Boats-Mod-1.12.2.jar | None |
| LCHIJA | thaumicjei | 1.6.0 | Thaumic-JEI-Mod-1.12.2 (1).jar | None |
| LCHIJA | thaumicrestoration | 1.3.1 | Thaumic-Restoration-Mod-1.12.2.jar | None |
| LCHIJA | bspkrscore | at_0.9 | TreeCapitator-Mod-1.12.jar | None |
| LCHIJA | treecapitator | at_0.9 | TreeCapitator-Mod-1.12.jar | None |
| LCHIJA | vending | 1.12.2-3.0.1.2 | Vending-Block-Mod-1.12.2.jar | None |
| LCHIJA | thejungle | 1.1024.1222 | Welcome-to-the-Jungle-Mod-1.12.2.jar | None |
| LCHIJA | zoocraftdiscoveries | 1.0 | Zoocraft-Discoveries-Mod-1.12.2.jar | None |
| LCHIJA | phosphor-lighting | 1.12.2-0.2.4 | phosphor-1.12.2-0.2.4+build46.jar | f0387d288626cc2d937daa504e74af570c52a2f1 |
| LCHIJA | jurassicraft | 2.1.18 | JurassiCraft-1.12.2-2.1.18.jar | None |
| LCHIJA | thebetweenlands | 3.4.7 | TheBetweenlands-3.4.7-universal.jar | 38067d6878811efb38b6a045521cfd80b9b60b38 |
Loaded coremods (and transformers):
MicdoodlePlugin (MicdoodleCore-1.12.2.jar)
micdoodle8.mods.miccore.MicdoodleTransformer
Plugin (NotEnoughIDs-1.5.4.4.jar)
ru.fewizz.neid.asm.Transformer
IELoadingPlugin (ImmersiveEngineering-core-0.12-89.jar)
blusunrize.immersiveengineering.common.asm.IEClassTransformer
llibrary (llibrary-core-1.0.10-1.12.2.jar)
net.ilexiconn.llibrary.server.core.plugin.LLibraryTransformer
net.ilexiconn.llibrary.server.core.patcher.LLibraryRuntimePatcher
PhosphorFMLLoadingPlugin (phosphor-1.12.2-0.2.4+build46.jar)
ForgelinPlugin (Shadowfacts-Forgelin-1.12.2.jar)
TheBetweenlandsLoadingPlugin (TheBetweenlands-3.4.7-core.jar)
thebetweenlands.core.TheBetweenlandsClassTransformer
HCASM (HammerCore-1.12.2-2.0.4.9.jar)
com.zeitheron.hammercore.asm.HammerCoreTransformer
GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
Hammer Core Information: FluidDictionary Info: Registered 2 fluids.
OreDictionary Info: Registered 809 names; 1582 stacks.
Pastebin Connection: Okay.
Dependent Mods:
-Expanded Equivalence (expequiv) @13r
Profiler Position: N/A (disabled)
Player Count: 0 / 8; []
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
asked Dec 20, 2019 at 7:56
From what I’ve read, It has to do with your mods. It is something about random number generation. Try disabling them one by one.
References:
‘bound must be positive’ error.
answered Dec 15, 2020 at 2:59
escrescr
619 bronze badges
-
Search
-
Search all Forums
-
Search this Forum
-
Search this Thread
-
-
Tools
-
Jump to Forum
-
-
#1
Apr 14, 2014
Port320-
View User Profile
-
View Posts
-
Send Message
- Out of the Water
- Join Date:
7/2/2012
- Posts:
6
- Member Details
EDIT!: I fixed it :3 I just updated forge on both my server and client, and it works without a problem now! Thank you for your help,and I bid thee farewell for now
java.lang.IllegalArgumentException: Payload may not be larger than 32767 bytes — This is the error I get every time I or anyone else tries to connect to my server. It would be very lovely if someone could assist me with this. This is far from the first time I’ve done a modded server, But it’s the first time I have done straight forge, instead of mcpc+ or bukkit, and the first time I’ve encountered this problem. I had no trouble in the initial setup process, and only ran into trouble when my friend tried to connect, and got an infinite logging in screen. Because directly after this error, the player is kicked from the server, but they are still on the logging in screen.
full error:
java.lang.IllegalArgumentException: Payload may not be larger than 32767 bytes at net.minecraft.network.play.server.S3FPacketCustomPayload.<init>(SourceFile:35) ~[gi.class:?] at cpw.mods.fml.common.network.internal.FMLProxyPacket.toS3FPacket(FMLProxyPacket.java:108) ~[FMLProxyPacket.class:?] at cpw.mods.fml.common.network.handshake.NetworkDispatcher.write(NetworkDispatcher.java:401) ~[NetworkDispatcher.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.writeAndFlush(DefaultChannelHandlerContext.java:688) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.writeAndFlush(DefaultChannelHandlerContext.java:717) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:893) ~[DefaultChannelPipeline.class:?] at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:239) ~[AbstractChannel.class:?] at net.minecraft.network.NetworkManager.func_150732_b(NetworkManager.java:157) [ef.class:?] at net.minecraft.network.NetworkManager.func_150725_a(NetworkManager.java:130) [ef.class:?] at cpw.mods.fml.common.network.handshake.NetworkDispatcher.sendProxy(NetworkDispatcher.java:340) [NetworkDispatcher.class:?] at cpw.mods.fml.common.network.handshake.HandshakeInjector.write(HandshakeInjector.java:20) [HandshakeInjector.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:637) [DefaultChannelHandlerContext.class:?] at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:115) [MessageToMessageEncoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) [MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.writeAndFlush(DefaultChannelHandlerContext.java:688) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.writeAndFlush(DefaultChannelHandlerContext.java:717) [DefaultChannelHandlerContext.class:?] at cpw.mods.fml.common.network.handshake.FMLHandshakeServerState$3.accept(FMLHandshakeServerState.java:59) [FMLHandshakeServerState$3.class:?] at cpw.mods.fml.common.network.handshake.FMLHandshakeServerState$3.accept(FMLHandshakeServerState.java:52) [FMLHandshakeServerState$3.class:?] at cpw.mods.fml.common.network.handshake.HandshakeMessageHandler.channelRead0(HandshakeMessageHandler.java:27) [HandshakeMessageHandler.class:?] at cpw.mods.fml.common.network.handshake.HandshakeMessageHandler.channelRead0(HandshakeMessageHandler.java:9) [HandshakeMessageHandler.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) [SimpleChannelInboundHandler.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at cpw.mods.fml.common.network.handshake.ChannelRegistrationHandler.channelRead0(ChannelRegistrationHandler.java:32) [ChannelRegistrationHandler.class:?] at cpw.mods.fml.common.network.handshake.ChannelRegistrationHandler.channelRead0(ChannelRegistrationHandler.java:15) [ChannelRegistrationHandler.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) [SimpleChannelInboundHandler.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?] at cpw.mods.fml.common.network.handshake.NetworkDispatcher.handleServerSideCustomPacket(NetworkDispatcher.java:286) [NetworkDispatcher.class:?] at cpw.mods.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:180) [NetworkDispatcher.class:?] at cpw.mods.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:42) [NetworkDispatcher.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) [SimpleChannelInboundHandler.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:173) [ByteToMessageDecoder.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:173) [ByteToMessageDecoder.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.handler.timeout.ReadTimeoutHandler.channelRead(ReadTimeoutHandler.java:149) [ReadTimeoutHandler.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:100) [AbstractNioByteChannel$NioByteUnsafe.class:?] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:480) [NioEventLoop.class:?] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:447) [NioEventLoop.class:?] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:341) [NioEventLoop.class:?] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101) [SingleThreadEventExecutor$2.class:?] at java.lang.Thread.run(Unknown Source) [?:1.7.0_17]
Any assistance in this would be much appreciated, and thank you in advance.
EDIT: I forgot to mention, this is a 1.7.2 server, if that helps!
Last edited by Port320: Apr 16, 2014
-
-
#2
Apr 16, 2014
Port320-
View User Profile
-
View Posts
-
Send Message
- Out of the Water
- Join Date:
7/2/2012
- Posts:
6
- Member Details
Terribly sorry! I forgot to mention that it is a 1.7.2 server running about 28 mods, if that helps! I also apologize for replying to my own post.
-
-
#4
Apr 16, 2014
Port320-
View User Profile
-
View Posts
-
Send Message
- Out of the Water
- Join Date:
7/2/2012
- Posts:
6
- Member Details
I think this may have something to do with the server trying to use more memory than is installed in the system. Make sure that the server has got only existing menory allocated to it, and not 4GB in a system with only 3GB. Also remember that the system itself also uses a bit of memory, so give that some breathing room.
From the error log, it seems the server is allocated 32767 bytes, (about 3GB) so make sure that the system has more than 3GB of memory. If it doesn’t have 3GB installed, try using less memory for the server.
I checked, and it appears that my system has 8GB memory. There also doesn’t seem to be any way to allocate it less memory, since I’m running it from the .jar, and not from a .bat file.
-
-
#5
Apr 16, 2014
Port320-
View User Profile
-
View Posts
-
Send Message
- Out of the Water
- Join Date:
7/2/2012
- Posts:
6
- Member Details
Just tried running it from a .bat file multiple times and got the same error upon connecting, no matter how little of how much RAM I have allocated. I’ve gone up to 4GB, and it’s still not letting me log on, and gives the same error every time I try.
-
-
#6
Apr 17, 2014
Hmmm, it seems like it shouldn’t be a RAM problem if you’re at 6gb. Are you sure this is the only source of the problems you’re experiencing?
- To post a comment, please login.
Posts Quoted:
Reply
Clear All Quotes
-
Search
-
Search all Forums
-
Search this Forum
-
Search this Thread
-
-
Tools
-
Jump to Forum
-
-
#1
Apr 14, 2014
Port320-
View User Profile
-
View Posts
-
Send Message
- Out of the Water
- Join Date:
7/2/2012
- Posts:
6
- Member Details
EDIT!: I fixed it :3 I just updated forge on both my server and client, and it works without a problem now! Thank you for your help,and I bid thee farewell for now
java.lang.IllegalArgumentException: Payload may not be larger than 32767 bytes — This is the error I get every time I or anyone else tries to connect to my server. It would be very lovely if someone could assist me with this. This is far from the first time I’ve done a modded server, But it’s the first time I have done straight forge, instead of mcpc+ or bukkit, and the first time I’ve encountered this problem. I had no trouble in the initial setup process, and only ran into trouble when my friend tried to connect, and got an infinite logging in screen. Because directly after this error, the player is kicked from the server, but they are still on the logging in screen.
full error:
java.lang.IllegalArgumentException: Payload may not be larger than 32767 bytes at net.minecraft.network.play.server.S3FPacketCustomPayload.<init>(SourceFile:35) ~[gi.class:?] at cpw.mods.fml.common.network.internal.FMLProxyPacket.toS3FPacket(FMLProxyPacket.java:108) ~[FMLProxyPacket.class:?] at cpw.mods.fml.common.network.handshake.NetworkDispatcher.write(NetworkDispatcher.java:401) ~[NetworkDispatcher.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.writeAndFlush(DefaultChannelHandlerContext.java:688) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.writeAndFlush(DefaultChannelHandlerContext.java:717) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:893) ~[DefaultChannelPipeline.class:?] at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:239) ~[AbstractChannel.class:?] at net.minecraft.network.NetworkManager.func_150732_b(NetworkManager.java:157) [ef.class:?] at net.minecraft.network.NetworkManager.func_150725_a(NetworkManager.java:130) [ef.class:?] at cpw.mods.fml.common.network.handshake.NetworkDispatcher.sendProxy(NetworkDispatcher.java:340) [NetworkDispatcher.class:?] at cpw.mods.fml.common.network.handshake.HandshakeInjector.write(HandshakeInjector.java:20) [HandshakeInjector.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:637) [DefaultChannelHandlerContext.class:?] at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:115) [MessageToMessageEncoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) [MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.writeAndFlush(DefaultChannelHandlerContext.java:688) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.writeAndFlush(DefaultChannelHandlerContext.java:717) [DefaultChannelHandlerContext.class:?] at cpw.mods.fml.common.network.handshake.FMLHandshakeServerState$3.accept(FMLHandshakeServerState.java:59) [FMLHandshakeServerState$3.class:?] at cpw.mods.fml.common.network.handshake.FMLHandshakeServerState$3.accept(FMLHandshakeServerState.java:52) [FMLHandshakeServerState$3.class:?] at cpw.mods.fml.common.network.handshake.HandshakeMessageHandler.channelRead0(HandshakeMessageHandler.java:27) [HandshakeMessageHandler.class:?] at cpw.mods.fml.common.network.handshake.HandshakeMessageHandler.channelRead0(HandshakeMessageHandler.java:9) [HandshakeMessageHandler.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) [SimpleChannelInboundHandler.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at cpw.mods.fml.common.network.handshake.ChannelRegistrationHandler.channelRead0(ChannelRegistrationHandler.java:32) [ChannelRegistrationHandler.class:?] at cpw.mods.fml.common.network.handshake.ChannelRegistrationHandler.channelRead0(ChannelRegistrationHandler.java:15) [ChannelRegistrationHandler.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) [SimpleChannelInboundHandler.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?] at cpw.mods.fml.common.network.handshake.NetworkDispatcher.handleServerSideCustomPacket(NetworkDispatcher.java:286) [NetworkDispatcher.class:?] at cpw.mods.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:180) [NetworkDispatcher.class:?] at cpw.mods.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:42) [NetworkDispatcher.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) [SimpleChannelInboundHandler.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:173) [ByteToMessageDecoder.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:173) [ByteToMessageDecoder.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.handler.timeout.ReadTimeoutHandler.channelRead(ReadTimeoutHandler.java:149) [ReadTimeoutHandler.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:100) [AbstractNioByteChannel$NioByteUnsafe.class:?] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:480) [NioEventLoop.class:?] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:447) [NioEventLoop.class:?] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:341) [NioEventLoop.class:?] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101) [SingleThreadEventExecutor$2.class:?] at java.lang.Thread.run(Unknown Source) [?:1.7.0_17]
Any assistance in this would be much appreciated, and thank you in advance.
EDIT: I forgot to mention, this is a 1.7.2 server, if that helps!
Last edited by Port320: Apr 16, 2014
-
-
#2
Apr 16, 2014
Port320-
View User Profile
-
View Posts
-
Send Message
- Out of the Water
- Join Date:
7/2/2012
- Posts:
6
- Member Details
Terribly sorry! I forgot to mention that it is a 1.7.2 server running about 28 mods, if that helps! I also apologize for replying to my own post.
-
-
#4
Apr 16, 2014
Port320-
View User Profile
-
View Posts
-
Send Message
- Out of the Water
- Join Date:
7/2/2012
- Posts:
6
- Member Details
I think this may have something to do with the server trying to use more memory than is installed in the system. Make sure that the server has got only existing menory allocated to it, and not 4GB in a system with only 3GB. Also remember that the system itself also uses a bit of memory, so give that some breathing room.
From the error log, it seems the server is allocated 32767 bytes, (about 3GB) so make sure that the system has more than 3GB of memory. If it doesn’t have 3GB installed, try using less memory for the server.
I checked, and it appears that my system has 8GB memory. There also doesn’t seem to be any way to allocate it less memory, since I’m running it from the .jar, and not from a .bat file.
-
-
#5
Apr 16, 2014
Port320-
View User Profile
-
View Posts
-
Send Message
- Out of the Water
- Join Date:
7/2/2012
- Posts:
6
- Member Details
Just tried running it from a .bat file multiple times and got the same error upon connecting, no matter how little of how much RAM I have allocated. I’ve gone up to 4GB, and it’s still not letting me log on, and gives the same error every time I try.
-
-
#6
Apr 17, 2014
Hmmm, it seems like it shouldn’t be a RAM problem if you’re at 6gb. Are you sure this is the only source of the problems you’re experiencing?
- To post a comment, please login.
Posts Quoted:
Reply
Clear All Quotes