The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

"showSplashInfos error Initializing RM 4.1 CVS"

fjcuberosfjcuberos Member Posts: 18 Maven
edited May 2019 in Help
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

  • IngoRMIngoRM Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, Community Manager, RMResearcher, Member, University Professor Posts: 1,751 RM Founder
    Hello,

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

    Cheers,
    Ingo
  • fjcuberosfjcuberos Member Posts: 18 Maven
    Quick and effective answer as usual.
    It is a pleasure for me to contribute, so little.

    F.J. Cuberos
Sign In or Register to comment.