Cannot be parsed if LocalDate or LocalDateTime exists when read
momosetkn opened this issue · 1 comments
momosetkn commented
Describe the bug
Cannot be parsed if LocalDate or LocalDateTime exists when read
how can read LocalDate and LocalDateTime parse?
To Reproduce
Steps to reproduce the behavior.
Attach code snippet which reproduce the bug.
https://github.com/momosetkn/csv_performance_test
Run below main function
src/main/kotlin/com/github/momosetkn/csv/confirmbug/ForConfirmBug.kt
Expected behavior
Can parsed LocalDate and LocalDateTime
Environment
- kotlin-csv version [e.g. 0.10.0]
- com.github.doyaaaaaken:kotlin-csv: 1.9.2
- io.github.blackmo18:kotlin-grass-core-jvm: 1.0.0
- io.github.blackmo18:kotlin-grass-parser-jvm: 0.8.0
- java version 21.0.1-tem
- OS: Linux
Screenshots
execute log
/home/momose/.sdkman/candidates/java/21-tem/bin/java -javaagent:/home/momose/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate-4/lib/idea_rt.jar=33193:/home/momose/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate-4/bin -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath /home/momose/IdeaProjects/csv_performance_test/build/classes/kotlin/main:/home/momose/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.9.21/5570877dec93532519eda165abb3674ea1e07cbc/kotlin-reflect-1.9.21.jar:/home/momose/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.9.21/17ee3e873d439566c7d8354403b5f3d9744c4c9c/kotlin-stdlib-1.9.21.jar:/home/momose/.gradle/caches/modules-2/files-2.1/com.orangesignal/orangesignal-csv/2.2.1/feaf95f21b32cb9d01a20bfc37146bd5543a9fda/orangesignal-csv-2.2.1.jar:/home/momose/.gradle/caches/modules-2/files-2.1/com.github.mygreen/super-csv-annotation/2.3/63fe1a156c0dde4847dcaddb234ec00cf254da27/super-csv-annotation-2.3.jar:/home/momose/.gradle/caches/modules-2/files-2.1/com.univocity/univocity-parsers/2.9.1/81827d186e42129f23c3f1e002b757ad4b4e769/univocity-parsers-2.9.1.jar:/home/momose/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.dataformat/jackson-dataformat-csv/2.15.3/5f83ba44f2fd4b1cccf82a48c8fb75c7212b6a9b/jackson-dataformat-csv-2.15.3.jar:/home/momose/.gradle/caches/modules-2/files-2.1/io.github.blackmo18/kotlin-grass-core-jvm/1.0.0/eca0f3559497902e6aa357b8642ebc514823e945/kotlin-grass-core-jvm-1.0.0.jar:/home/momose/.gradle/caches/modules-2/files-2.1/io.github.blackmo18/kotlin-grass-parser-jvm/0.8.0/96f8e0887e20d2dc64085b36ac1bc76516698bdd/kotlin-grass-parser-jvm-0.8.0.jar:/home/momose/.gradle/caches/modules-2/files-2.1/com.opencsv/opencsv/5.9/284ea0b60a24b71a530100783185e7d547ab5339/opencsv-5.9.jar:/home/momose/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-csv/1.10.0/8669bee353424c3223c93723291b5c3753260c1c/commons-csv-1.10.0.jar:/home/momose/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core-jvm/1.8.0-RC2/7bb4e7056dbe2bab0e5584928cde6b0a4e03f264/kotlinx-coroutines-core-jvm-1.8.0-RC2.jar:/home/momose/.gradle/caches/modules-2/files-2.1/com.github.doyaaaaaken/kotlin-csv-jvm/1.9.2/afb1e3abef98fe4cf020aa17dc30fe8aa7ec6aa9/kotlin-csv-jvm-1.9.2.jar:/home/momose/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/23.0.0/8cc20c07506ec18e0834947b84a864bfc094484e/annotations-23.0.0.jar:/home/momose/.gradle/caches/modules-2/files-2.1/net.sf.supercsv/super-csv/2.4.0/17f8708c929029dde48bc298deaf3c7ae2452d3/super-csv-2.4.0.jar:/home/momose/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-jexl/2.1.1/6ecc181debade00230aa1e17666c4ea0371beaaa/commons-jexl-2.1.1.jar:/home/momose/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-api/1.7.36/6c62681a2f655b49963a5983b8b0950a6120ae14/slf4j-api-1.7.36.jar:/home/momose/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-databind/2.15.3/a734bc2c47a9453c4efa772461a3aeb273c010d9/jackson-databind-2.15.3.jar:/home/momose/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-annotations/2.15.3/79baf4e605eb3bbb60b1c475d44a7aecceea1d60/jackson-annotations-2.15.3.jar:/home/momose/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-core/2.15.3/60d600567c1862840397bf9ff5a92398edc5797b/jackson-core-2.15.3.jar:/home/momose/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-text/1.11.0/2bb044b7717ec2eccaf9ea7769c1509054b50e9a/commons-text-1.11.0.jar:/home/momose/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-lang3/3.13.0/b7263237aa89c1f99b327197c41d0669707a462e/commons-lang3-3.13.0.jar:/home/momose/.gradle/caches/modules-2/files-2.1/commons-beanutils/commons-beanutils/1.9.4/d52b9abcd97f38c81342bb7e7ae1eee9b73cba51/commons-beanutils-1.9.4.jar:/home/momose/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-collections4/4.4/62ebe7544cb7164d87e0637a2a6a2bdc981395e8/commons-collections4-4.4.jar:/home/momose/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.8.0/ed04f49e186a116753ad70d34f0ac2925d1d8020/kotlin-stdlib-jdk8-1.8.0.jar:/home/momose/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.2/4bfc12adfe4842bf07b657f0369c4cb522955686/commons-logging-1.2.jar:/home/momose/.gradle/caches/modules-2/files-2.1/commons-collections/commons-collections/3.2.2/8ad72fe39fa8c91eaaf12aadb21e0c3661fe26d5/commons-collections-3.2.2.jar:/home/momose/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.8.0/3c91271347f678c239607abb676d4032a7898427/kotlin-stdlib-jdk7-1.8.0.jar:/home/momose/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-debug/1.8.0-RC2/acee451a516103251dc507fde1a66f440df24dde/kotlinx-coroutines-debug-1.8.0-RC2.jar:/home/momose/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-test/1.5.21/c07c15adca227480638197afb4e3b1dda7e8dfef/kotlin-test-1.5.21.jar:/home/momose/.gradle/caches/modules-2/files-2.1/net.java.dev.jna/jna-platform/5.9.0/c535a5bda553d7d7690356c825010da74b2671b5/jna-platform-5.9.0.jar:/home/momose/.gradle/caches/modules-2/files-2.1/net.java.dev.jna/jna/5.9.0/8f503e6d9b500ceff299052d6be75b38c7257758/jna-5.9.0.jar:/home/momose/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy/1.10.9/2c03f15cd1131692feca93f190ed81412a3de961/byte-buddy-1.10.9.jar:/home/momose/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy-agent/1.10.9/cbbeffa557e6b1b4cbb181b0782436921c523699/byte-buddy-agent-1.10.9.jar com.github.momosetkn.com.github.momosetkn.csv.confirmbug.ForConfirmBugKt
Exception in thread "main" java.lang.NullPointerException
at io.blackmo18.kotlin.grass.pot.Root.createObject(Root.kt:58)
at io.blackmo18.kotlin.grass.pot.Stem.harvestData(Stem.kt:48)
at io.blackmo18.kotlin.grass.pot.Plant.harvest(Plant.kt:42)
at com.github.momosetkn.csv.individual.KotlinCsvExample.readEach(KotlinCsvTypedCsvData.kt:21)
at com.github.momosetkn.com.github.momosetkn.csv.confirmbug.ForConfirmBugKt.read(ForConfirmBug.kt:24)
at com.github.momosetkn.com.github.momosetkn.csv.confirmbug.ForConfirmBugKt.main(ForConfirmBug.kt:15)
Process finished with exit code 1
momosetkn commented
sorry, my bad.
missed below...
implementation("io.github.blackmo18:kotlin-grass-date-time-jvm:0.8.0")