"showSplashInfos error Initializing RM 4.1 CVS"

fjcuberos
fjcuberos New Altair Community Member
edited November 5 in Community Q&A
I´m trying to create a test suite following the structure used in RapidMIner (loading a process from a file, running it and cheching the output).
The test is included in a RM plugin project that has the RM cvs project in the classpath.

When running the test as JUnit Test the exception NullPointerException is generated.

package qbts.preprocessing.discretization.test;

import java.io.File;
import java.util.HashMap;
import java.util.SortedSet;

import srctest.HelperOperatorConstructor;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

import com.rapidminer.Process;
import com.rapidminer.RapidMiner;
import com.rapidminer.example.ExampleSet;
import com.rapidminer.operator.IOContainer;
import com.rapidminer.operator.MissingIOObjectException;
import com.rapidminer.operator.Model;
import com.rapidminer.operator.performance.PerformanceVector;
import com.rapidminer.operator.preprocessing.discretization.DiscretizationModel;
import com.rapidminer.test.ExampleSetDataSampleTest;
import com.rapidminer.test.OperatorDataSampleTest;
import com.rapidminer.tools.LogService;
import com.rapidminer.tools.ParameterService;
import com.rapidminer.tools.Tupel;

public class DiscretizationExtensionTests extends TestCase {

public DiscretizationExtensionTests(String arg0) {
super(arg0);
}

public IOContainer runSampleTest(String file) throws Exception {
String caminoact = System.getProperty("user.dir");
File processFile = new File(caminoact, "test" + File.separator + file);
//File processFile = new File(ParameterService.getRapidMinerHome(), "srctest" + File.separator + file);

if (!processFile.exists())
throw new Exception("File '" + processFile.getAbsolutePath() + "' does not exist!");
LogService.getGlobal().setVerbosityLevel(LogService.OFF);
Process process = RapidMiner.readProcessFile(processFile);
IOContainer output = process.run(new IOContainer(), LogService.OFF);
return output;
}

public void testBinDiscretization(){
IOContainer sal1;
try{
  sal1 = runSampleTest("Discretization"+File.separator+"bin1.xml");
... //  CHECKOUT CODE //////  
}
catch (Exception e){
e.printStackTrace();
assertFalse(true);

}

I´ve readed the previous topic http://rapid-i.com/rapidforum/index.php/topic,26.0.html but the solution of a new project is not valid because this are internal tests of the plugin.

Moreover when I create a new project, include the rapidminer.jar (from cvs build), add the rapdminer.home variable and paste the code (the first code) included in that topic I get the next message

Exception in thread "main" java.lang.NullPointerException
at com.rapidminer.RapidMiner.showSplashInfos(RapidMiner.java:294)
at com.rapidminer.RapidMiner.init(RapidMiner.java:235)
at com.rapidminer.RapidMiner.init(RapidMiner.java:201)
at com.rapidminer.RapidMiner.init(RapidMiner.java:311)
at com.rapidminer.RapidMiner.init(RapidMiner.java:323)
at test1.main(test1.java:25)


Thanks in advanced.

F.J. Cuberos
Tagged:

Answers

  • IngoRM
    IngoRM New Altair Community Member
    Hello,

    thanks for pointing this out. The error is fixed now and should be available via CVS in a few hours.

    Cheers,
    Ingo
  • fjcuberos
    fjcuberos New Altair Community Member
    Quick and effective answer as usual.
    It is a pleasure for me to contribute, so little.

    F.J. Cuberos