ME Bridge causes java exception exportItemToPeripheral when item doesn't exist
mrlamb opened this issue ยท 9 comments
Describe
I have a simple setup: controller, terminal, chest, storage bus. Computer sits next to bridge with another chest to it's right.
Request to move an item that's not in the chest and I get the following:
I also tried wrapping the target using a modem in another test and got a different java exception:
A side effect of the first java exception is that my ME terminal no longer shows any items, though I can insert into it with no trouble. Subsequent calls to listItems returns an empty table. So realistically this could be a problem on AE2's side and not AP but I thought I'd start here.
Steps to reproduce
Setup basic ME system as described above
use lua console to wrap the ME bridge and call the exportItemToPeripheral method on an item that doesn't exist in your storage.
For the second test I used wired modems to add an entangled block to a warehouse from minecolonies.
I apologize if this has been fixed as I appear to be on version 1.19.2 0.27.24b because that's what the direwolf20 1.19.2 pack is using atm (at least in their release version). I did try to look through the closed issues, but didn't see anything related to this exactly.
Multiplayer?
Yes
Version
Own compiled build.
Minecraft, Forge and maybe other related mods versions
Forge 43.2.6
Screenshots or Videos
No response
Crashlog/log
The first issue could be my fault. I'll check that next week.
I'll also add some better erro messages to prevent these exceptions
I need to look into your first issue a bit deeper.
But the second thing is an issue on your end. If you want that the bridge can access peripherals in the network, you need to wrap the bridge via an modem so the bridge has a connection to the network where the target chest is also connected to
I forgot to capture the stack trace for the first exception so here it is:
https://pastebin.com/GnJ0EZLu
I need to look into your first issue a bit deeper. But the second thing is an issue on your end. If you want that the bridge can access peripherals in the network, you need to wrap the bridge via an modem so the bridge has a connection to the network where the target chest is also connected to
Got it, think! The peripheral needs network access to the rest of the network, the computer doesn't act as a go between on those. I merely thought to try that setup because of another reported issue regarding the RS bridge and a warehouse block.
I tested the same concept with the RS bridge and a refined storage controller and external storage and everything worked fine so it does seem to be an AE2 only issue.
Have you changed the way how you wrap it?
Should be something like peripheral.wrap("rsBridge_1")
or peripheral.find("rsBridge")