Problems to work with RM 4.6 legacy code at RM 5

ftgoftgo Member Posts: 9 Contributor II
edited November 2018 in Help
Hi all,

My code in RM 4.6 looks like this:

ExampleSet result = null;
ExampleSet exampleSet = dataset.getMemoryExampleTable()

IOContainer container = new IOContainer();
container = container.append(exampleSet);

container =;
result = container.get(ExampleSet.class);

However in RM 5.0, the following exception occurs:

Caused by: java.util.concurrent.ExecutionException: com.rapidminer.operator.ports.PortException: Exception at Clustering.example set: No data.
at java.util.concurrent.FutureTask$Sync.innerGet( [na:1.7.0-ea-fastdebug]
at java.util.concurrent.FutureTask.get( [na:1.7.0-ea-fastdebug]
at [bin/:na]
... 10 common frames omitted
Caused by: com.rapidminer.operator.ports.PortException: Exception at Clustering.example set: No data.
at com.rapidminer.operator.ports.impl.AbstractPort.getData( [rapidminer.jar:5.0.000beta]
at com.rapidminer.operator.ports.impl.AbstractPort.getData( [rapidminer.jar:5.0.000beta]
at com.rapidminer.operator.clustering.clusterer.AbstractClusterer.doWork( [rapidminer.jar:5.0.000beta]
at com.rapidminer.operator.Operator.execute( [rapidminer.jar:5.0.000beta]
at com.rapidminer.operator.ExecutionUnit.execute( [rapidminer.jar:5.0.000beta]
at com.rapidminer.operator.OperatorChain.doWork( [rapidminer.jar:5.0.000beta]
at com.rapidminer.operator.ProcessRootOperator.doWork( [rapidminer.jar:5.0.000beta]
at com.rapidminer.operator.Operator.execute( [rapidminer.jar:5.0.000beta]
at [rapidminer.jar:5.0.000beta]
at [rapidminer.jar:5.0.000beta]
at br.upe.msc.engine.entities.engine.rapidminer.RMEngine.executeClusterer( [bin/:na]
at br.upe.msc.engine.entities.engine.rapidminer.RMEngine.doExecute( [bin/:na]
at br.upe.msc.engine.entities.engine.rapidminer.RMEngine.execute( [bin/:na]
at [bin/:na]
at [bin/:na]
at java.util.concurrent.FutureTask$Sync.innerRun( [na:1.7.0-ea-fastdebug]
at [na:1.7.0-ea-fastdebug]
at java.util.concurrent.ThreadPoolExecutor.runWorker( [na:1.7.0-ea-fastdebug]
at java.util.concurrent.ThreadPoolExecutor$ [na:1.7.0-ea-fastdebug]
at [na:1.7.0-ea-fastdebug]

How can I fix this issue?



  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    RapidMiner 5.0 provides many new features and improves the usability drastically. But we had to change the process files as well as the API to accomplish this. So your RapidMiner 4.x code in almost all cases will not run directly on RapidMiner 5.0. We are currently working on a whitepaper how to port your code to the new version. It will be available together with the final release, when the API is finally fixed.

  • ftgoftgo Member Posts: 9 Contributor II
    I understand that a major refactoring was made.

    You can help me on this minor code porting on this post?
Sign In or Register to comment.