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

java.lang.ClassCastException -> unnamed module of loader 'app' #96

Open
suerion opened this issue Jul 16, 2020 · 1 comment
Open

java.lang.ClassCastException -> unnamed module of loader 'app' #96

suerion opened this issue Jul 16, 2020 · 1 comment
Labels
Type: bug Something isn't working

Comments

@suerion
Copy link

suerion commented Jul 16, 2020

Affected Version
The exact version number. Do not type latest, please be specific.

3.0.0

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

We tried, after deleting all the problem blocks #95 #93

To Reproduce
Steps to reproduce the behavior:

  1. Start the converter
  2. stopped converter....

Expected behaviors

Should be convert the map

Exception stack trace
If applicable, paste it below to help explain your problem.

converting section 5, version = 0 | target = NUKKIT
converting section 6, version = 0 | target = NUKKIT
converting section 7, version = 0 | target = NUKKIT
converting section 8, version = 0 | target = NUKKIT
converting section 9, version = 0 | target = NUKKIT
converting section 10, version = 0 | target = NUKKIT
converting section 11, version = 0 | target = NUKKIT
converting section 12, version = 0 | target = NUKKIT
An error has occurred while converting the world!
java.lang.ClassCastException: class br.com.gamemods.nbtmanipulator.NbtInt cannot be cast to class br.com.gamemods.nbtmanipulator.NbtShort (br.com.gamemods.nbtmanipulator.NbtInt and br.com.gamemods.nbtmanipulator.NbtShort are in unnamed module of loader 'app')
        at br.com.gamemods.nbtmanipulator.NbtCompound.getNullableShort(nbt.kt:664)
        at br.com.gamemods.j2nwc.internal.Block_converterKt.toNukkit(block-converter.kt:161)
        at br.com.gamemods.j2nwc.internal.Chunk_converterKt.toNukkit(chunk-converter.kt:118)
        at br.com.gamemods.j2nwc.internal.Chunk_converterKt$toNukkit$nukkitSections$2.invoke(chunk-converter.kt:31)
        at br.com.gamemods.j2nwc.internal.Chunk_converterKt$toNukkit$nukkitSections$2.invoke(chunk-converter.kt)
        at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:172)
        at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:132)
        at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:156)
        at kotlin.collections.MapsKt__MapsKt.putAll(Maps.kt:374)
        at kotlin.collections.MapsKt__MapsKt.toMap(Maps.kt:542)
        at kotlin.collections.MapsKt__MapsKt.toMap(Maps.kt:536)
        at br.com.gamemods.j2nwc.internal.Chunk_converterKt.toNukkit(chunk-converter.kt:35)
        at br.com.gamemods.j2nwc.internal.RegionFileConverter.toNukkit(RegionFileConverter.kt:42)
        at br.com.gamemods.j2nwc.internal.RegionFileConverter.convertRegionFile(RegionFileConverter.kt:20)
        at br.com.gamemods.j2nwc.WorldConverter.convert(WorldConverter.kt:108)
        at br.com.gamemods.j2nwc.WorldConverterCLI.main(WorldConverterCLI.kt:107)
The world conversion has failed
@suerion suerion added the Type: bug Something isn't working label Jul 16, 2020
@suerion
Copy link
Author

suerion commented Jul 19, 2020

In this converter file, our dev had added debug for the version 7 with coords -> the int and string type would be resolved -> the "NoSuchElementException" would be resolved and debug with coords and block type

Java2Nukkit-World-Converter-3.2.5-SNAPSHOT-cli.zip
debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant