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

Confusing error message on deprecated input data #1112

Closed
sebastian-peter opened this issue Jul 1, 2024 · 0 comments · Fixed by #1113
Closed

Confusing error message on deprecated input data #1112

sebastian-peter opened this issue Jul 1, 2024 · 0 comments · Fixed by #1113
Assignees
Labels
bug Something isn't working

Comments

@sebastian-peter
Copy link
Member

sebastian-peter commented Jul 1, 2024

I can provide exemplary input data on request.

←[1;31m←[0;39m11:37:47.748 ERROR e.i.d.io.source.csv.CsvDataSource - Cannot build fields to attributes map for row 'ca425259-fab4-4dc1-99c9-c19031121645,"{""type"":""LineString"",""coordinates"":[[7.4116482,51.4843281],[20.157108,41.138349]],""crs"":{""type"":""name"",""properties"":{""name"":""EPSG:4326""}}}",LTG_NS_01-NS_02, 0.03,6a4547a8-630b-46e4-8144-9cd649e67c07,b7a5be0d-2662-41b2-99c6-3b8121a75e9e,olm:{(0.00,1.00)},,,,1,d3293c00-7bc8-434f-bfc8-b90cc2ff85be' with headline 'uuid,geo_position,id,length,node_a,node_b,olm_characteristic,operates_from,operates_until,operator,parallel_devices,type'.
Exception: {}
java.lang.ArrayIndexOutOfBoundsException: Index 12 out of bounds for length 12
        at edu.ie3.datamodel.io.source.csv.CsvDataSource.lambda$buildFieldsToAttributes$4(CsvDataSource.java:176)
        at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:179)
        at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
        at java.base/java.util.stream.IntPipeline$1$1.accept(IntPipeline.java:180)
        at java.base/java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:104)
        at java.base/java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:711)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
        at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
        at edu.ie3.datamodel.io.source.csv.CsvDataSource.buildFieldsToAttributes(CsvDataSource.java:174)
        at edu.ie3.datamodel.io.source.csv.CsvDataSource.lambda$csvRowFieldValueMapping$10(CsvDataSource.java:290)
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
        at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
        at java.base/java.util.stream.Nodes$CollectorTask.doLeaf(Nodes.java:2183)
        at java.base/java.util.stream.Nodes$CollectorTask.doLeaf(Nodes.java:2149)
        at java.base/java.util.stream.AbstractTask.compute(AbstractTask.java:327)
        at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
@sebastian-peter sebastian-peter added the bug Something isn't working label Jul 1, 2024
@staudtMarius staudtMarius self-assigned this Jul 1, 2024
staudtMarius added a commit that referenced this issue Nov 14, 2024
sebastian-peter added a commit that referenced this issue Nov 26, 2024
…message-on-deprecated-input-data

Improving error message when using the outdated csv format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants