Skip to content

Task Two New Line error #10

@WA64

Description

@WA64

I am receiving the following error in the TaskTwoTests file even before I try implementing a listener specifically with "kafkaProducer.send(transactionLine);":

"java.lang.NumberFormatException: For input string: "122.86
5"
at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString([FloatingDecimal.java:2054](..."

The data file this is using has 122.86 and 5 separated by a new line character. It had no issues processing the numbers beforehand separated by a comma. The yaml file was actually blank when I downloaded the zip so a used the solution provided in the other post (Thank you for that). Am I meant to fix this somehow in my listener class, or could there be an error in my configuration files? I am running VS Code on Windows 11.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions