Pages: [1]
  Print  
Author Topic: Can't write AverageBuilder result from command line?  (Read 1865 times)
DrGary
Guest
« on: April 28, 2009, 06:26:24 PM »


I can use IOObjectWriter and ResultWriter to write the results of an AverageBuilder to a file when I run the setup from the GUI. But when I run it from the command line, it fails with:

G Apr 28, 2009 10:24:09 AM: [Fatal] NullPointerException occured in 1st application of IOObjectWriter (IOObjectWriter)
G Apr 28, 2009 10:24:09 AM: [Fatal] Process failed: operator cannot be executed. Check the log messages...


The rest of the file works fine; just the IOObjectWriter or ResultWriter fails.

How do you write the results of an AverageBuilder to a file from the command line?

Here's the XML of the operators:
Code:
      <operator name="AverageBuilder" class="AverageBuilder">
      </operator>
      <operator name="IOObjectWriter" class="IOObjectWriter">
          <parameter key="object_file" value="training_perf_%{t}.txt"/>
          <parameter key="io_object" value="AverageVector"/>
          <parameter key="output_type" value="XML"/>
      </operator>

I

Logged
DrGary
Guest
« Reply #1 on: April 28, 2009, 07:23:39 PM »


Looks like a bug in Operator.java, getParameterAsFile():

lines 1123--
Code:
File parent = result.getParentFile();
parent.mkdirs();

What if getParentFile() returns null?

Sure enough, if I change my ResultWriter result_file to 'results/training_res_%{t}.txt', it works.

Where do I file a bug report?
Logged
Ingo Mierswa
Administrator
Hero Member
*****
Posts: 1226



WWW
« Reply #2 on: May 12, 2009, 11:03:21 AM »

Hi,

this issue is fixed in the latest developer edition (as far as I know already delivered via the update server to the Enterprise Edition users) and will also be part of the next community release.

Thanks for pointing this out. Cheers,
Ingo
Logged

Did you try our new Marketplace? Upload or download new Extensions, add comments, and organize your operators. Have a look at  http://marketplace.rapid-i.com
Rasputin
Newbie
*
Posts: 16


« Reply #3 on: July 19, 2009, 05:00:27 PM »

I have the same problem with ResultsWriter and ProcessLog. Am I right to suppose that the bugfixes covers these operators, too?
Is there already a release date for the next version of RapidMiner Community Edition?

-Rasputin
Logged
Sebastian Land
Administrator
Hero Member
*****
Posts: 2426


« Reply #4 on: July 20, 2009, 09:39:21 AM »

Hi Rasputin,
it's already on it's way to the servers...It will be available for downloads within the next days.

Greetings,
  Sebastian
Logged
Rasputin
Newbie
*
Posts: 16


« Reply #5 on: July 20, 2009, 10:17:25 AM »

Thanks, in 4.5 it's working.

-Rasputin
Logged
Pages: [1]
  Print  
 
Jump to: