"Process failed: Exception: java.lang.NullPointerException in Aggregate"

MelaMela Member Posts: 3 Contributor I
edited June 2019 in Help
Hi everyone! I'm new to RapidMiner (and data mining) so I hope you could help me.

I'm trying to get "Aggregate" to work but I get an error whenever I try to group by attributes. I get this error:

[tt]Exception: java.lang.NullPointerException
Message: null
Stack trace:


But when I remove all entries in "group by attributes" it works fine. Anyone know what I'm doing wrong?  :o Thanks! :)


  • Options
    awchisholmawchisholm RapidMiner Certified Expert, Member Posts: 458 Unicorn

    What is the type of the attribute you are grouping by? If it's a real, change it to a nominal.

  • Options
    wesselwessel Member Posts: 537 Maven

    This can be rather confusing indeed.
    Lets say you have a real valued attribute with values: 0, 1, 2.
    Surely you should be able to use this attribute to create groups, but you can't!

    You need to first use the "Numerical to Polynominal" operator.
    Then you can use the "Aggregate: operator.
    And possibly you may have to use "Parse Numbers" to convert the attribute back to real.

    This is rather cumbersome, but I think it is the only way.

    Best regards,

  • Options
    MelaMela Member Posts: 3 Contributor I
    Thank you! They were integers. Changing them to polynominals worked.  :)
Sign In or Register to comment.