Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidArgumentException: "Unable to resolve "" to a valid item" (EXCEPTION) in "src/pocketmine/item/ItemFactory" at line 368 #14

Open
teracube opened this issue Jan 4, 2019 · 3 comments

Comments

@teracube
Copy link

teracube commented Jan 4, 2019

pmmp stable version
https://jenkins.pmmp.io/job/PocketMine-MP/1735/artifact/PocketMine-MP.phar

latest build GrabBag
https://poggit.pmmp.io/r/36216/GrabBag_dev-20.phar


2019-01-03 [16:14:32] [Server thread/CRITICAL]: InvalidArgumentException: "Unable to resolve "" to a valid item" (EXCEPTION) in "src/pocketmine/item/ItemFactory" at line 368
2019-01-03 [16:14:32] [Server thread/DEBUG]: #0 src/pocketmine/item/Item(111): pocketmine\item\ItemFactory::fromString(string , boolean )
2019-01-03 [16:14:32] [Server thread/DEBUG]: #1 GrabBag_dev-20.phar/src/aliuly/grabbag/CmdClearInv(116): pocketmine\item\Item::fromString(string )
2019-01-03 [16:14:32] [Server thread/DEBUG]: #2 GrabBag_dev-20.phar/src/aliuly/grabbag/CmdClearInv(56): aliuly\grabbag\CmdClearInv->rmInvItem(pocketmine\Player object, string )
2019-01-03 [16:14:32] [Server thread/DEBUG]: #3 src/pocketmine/command/PluginCommand(58): aliuly\grabbag\CmdClearInv->onCommand(pocketmine\Player object, pocketmine\command\PluginCommand object, string rminv, array Array())
2019-01-03 [16:14:32] [Server thread/DEBUG]: #4 src/pocketmine/command/SimpleCommandMap(256): pocketmine\command\PluginCommand->execute(pocketmine\Player object, string rminv, array Array())
2019-01-03 [16:14:32] [Server thread/DEBUG]: #5 src/pocketmine/Server(1960): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string rminv )
2019-01-03 [16:14:32] [Server thread/DEBUG]: #6 src/pocketmine/Player(2173): pocketmine\Server->dispatchCommand(pocketmine\Player object, string rminv )
2019-01-03 [16:14:32] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(229): pocketmine\Player->chat(string /rminv )
2019-01-03 [16:14:32] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
2019-01-03 [16:14:32] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(99): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2019-01-03 [16:14:32] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
2019-01-03 [16:14:32] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(99): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2019-01-03 [16:14:32] [Server thread/DEBUG]: #12 src/pocketmine/Player(3061): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2019-01-03 [16:14:32] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(162): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2019-01-03 [16:14:32] [Server thread/DEBUG]: #14 vendor/pocketmine/raklib/src/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 78.XXX.XX.109 47299, raklib\protocol\EncapsulatedPacket object, integer 0)
2019-01-03 [16:14:32] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(102): raklib\server\ServerHandler->handlePacket()
2019-01-03 [16:14:32] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/RakLibInterface(92): pocketmine\network\mcpe\RakLibInterface->process()
2019-01-03 [16:14:32] [Server thread/DEBUG]: #17 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
2019-01-03 [16:14:32] [Server thread/DEBUG]: #18 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
2019-01-03 [16:14:32] [Server thread/DEBUG]: #19 src/pocketmine/Server(2278): pocketmine\snooze\SleeperHandler->sleepUntil(double 1546528471.9074)
2019-01-03 [16:14:32] [Server thread/DEBUG]: #20 src/pocketmine/Server(2139): pocketmine\Server->tickProcessor()
2019-01-03 [16:14:32] [Server thread/DEBUG]: #21 src/pocketmine/Server(1715): pocketmine\Server->start()
2019-01-03 [16:14:32] [Server thread/DEBUG]: #22 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /myserver/, string /myserver/plugins/)
2019-01-03 [16:14:32] [Server thread/DEBUG]: #23 /myserver/PocketMine-MP.phar(1): require(string phar:///myserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2019-01-03 [16:14:32] [Server thread/INFO]: [16:14:32] Player275658574 [-]
2019-01-03 [16:14:32] [Server thread/INFO]: Player275658574[/78.XXX.XX.109:47299] logged out due to Internal server error
@dktapps
Copy link
Member

dktapps commented Jan 4, 2019

Smooth. Looks like the second argument is empty.

@teracube
Copy link
Author

command =) /rminv nameplayer grass 12

2019-01-22 [09:48:52] [Server thread/INFO]: [Commandlook] GoProXD2> /rminv petito82 grass 12
2019-01-22 [09:48:52] [Server thread/CRITICAL]: InvalidArgumentException: "Unable to resolve "petito82_grass" to a valid item" (EXCEPTION) in "src/pocketmine/item/ItemFactory" at line 379
2019-01-22 [09:48:52] [Server thread/DEBUG]: #0 src/pocketmine/item/Item(120): pocketmine\item\ItemFactory::fromString(string petito82_grass, boolean )
2019-01-22 [09:48:52] [Server thread/DEBUG]: #1 plugins/GrabBag_dev-20.phar/src/aliuly/grabbag/CmdClearInv(116): pocketmine\item\Item::fromString(string petito82_grass)
2019-01-22 [09:48:52] [Server thread/DEBUG]: #2 plugins/GrabBag_dev-20.phar/src/aliuly/grabbag/CmdClearInv(56): aliuly\grabbag\CmdClearInv->rmInvItem(pocketmine\Player object, string petito82_grass)
2019-01-22 [09:48:52] [Server thread/DEBUG]: #3 src/pocketmine/command/PluginCommand(58): aliuly\grabbag\CmdClearInv->onCommand(pocketmine\Player object, pocketmine\command\PluginCommand object, string rminv, array Array())
2019-01-22 [09:48:52] [Server thread/DEBUG]: #4 src/pocketmine/command/SimpleCommandMap(261): pocketmine\command\PluginCommand->execute(pocketmine\Player object, string rminv, array Array())
2019-01-22 [09:48:52] [Server thread/DEBUG]: #5 src/pocketmine/Server(2030): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string rminv petito82 grass 12)
2019-01-22 [09:48:52] [Server thread/DEBUG]: #6 src/pocketmine/Player(2209): pocketmine\Server->dispatchCommand(pocketmine\Player object, string rminv petito82 grass 12)
2019-01-22 [09:48:52] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(238): pocketmine\Player->chat(string /rminv petito82 grass 12)
2019-01-22 [09:48:52] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
2019-01-22 [09:48:52] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(108): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2019-01-22 [09:48:52] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/protocol/BatchPacket(119): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
2019-01-22 [09:48:52] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(108): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2019-01-22 [09:48:52] [Server thread/DEBUG]: #12 src/pocketmine/Player(3097): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2019-01-22 [09:48:52] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(170): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2019-01-22 [09:48:52] [Server thread/DEBUG]: #14 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 203.XXX.XX.244 37728, raklib\protocol\EncapsulatedPacket object, integer 0)
2019-01-22 [09:48:52] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(110): raklib\server\ServerHandler->handlePacket()
2019-01-22 [09:48:52] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/RakLibInterface(100): pocketmine\network\mcpe\RakLibInterface->process()
2019-01-22 [09:48:52] [Server thread/DEBUG]: #17 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
2019-01-22 [09:48:52] [Server thread/DEBUG]: #18 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
2019-01-22 [09:48:52] [Server thread/DEBUG]: #19 src/pocketmine/Server(2349): pocketmine\snooze\SleeperHandler->sleepUntil(double 1548146932.7718)
2019-01-22 [09:48:52] [Server thread/DEBUG]: #20 src/pocketmine/Server(2209): pocketmine\Server->tickProcessor()
2019-01-22 [09:48:52] [Server thread/DEBUG]: #21 src/pocketmine/Server(1785): pocketmine\Server->start()
2019-01-22 [09:48:52] [Server thread/DEBUG]: #22 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myserver/, string /home/myserver/plugins/)
2019-01-22 [09:48:52] [Server thread/DEBUG]: #23 (1): require(string phar:///home/myserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2019-01-22 [09:48:52] [Server thread/INFO]: GoProXD2 [-]
2019-01-22 [09:48:52] [Server thread/INFO]: GoProXD2[/203.XXX.XX.244:37728] logged out due to Internal server error
2019-01-22 [09:48:52] [RakLibServer thread/NOTICE]: Blocked 203.XXX.XX.244 for 5 seconds

@AlLiberali
Copy link

AlLiberali commented Jan 6, 2020

@dktapps At aliuly/grabbag/CmdClearInv(116) the variable $item is equal to Item::fromString($args) but variable $args were imploded by underline character at aliuly/grabbag/CmdClearInv(108) so Item::fromString gets "playername_itemname" as entry

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

No branches or pull requests

3 participants