🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How to solve a java null pointer exception?

User: "batstache611"
New Altair Community Member
Updated by Jocelyn

There are times when a process throws a very vague unclear error message and the logs aren't helpful either. For ex:

 

"The setup does not seem to contain any obvious errors, but you should check the log messages or activate the debug mode in settings dialog in order to get more information about this problem."

 

First of all, where is the settings dialog? I cannot find a debug mode in the settings menu atleast. Next, the log simply points to the operator where the error occurred and says SEVERE: java.lang.NullPointerException

 

This could be because 'n' number of things. What would be a general guideline to diagnose these kind of errors?

 

Thank you.

 

 

From searching the forums it seems this error can be thrown for a number of reasons. What is a generic set of practices to go about resolving this issue?

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Thomas_Ott"
    New Altair Community Member
    Accepted Answer

    Ah yes, the "obvious errors" message. I usually get this when I want to do clustering and there is something wrong with how I transformed the data. We should probably provide better guidance on that error message.

     

    For now, I would check that meet all the data type and formats pre-conditions for the algorithm you are using. You can right click on each Operator and click "Show Operator Info." In there it should tell you if the algo can do binominal, numerical, etc.