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

[SOLVED] Error executing background job 'Creating Display'

nennatnennat Member Posts: 9 Contributor II
edited September 2019 in Help
Hi all,

I've looked around the forum a bit , but I couldn't figure out a definitve solution to this problem.
Everytime I try to load in an Excel or a CSV file I get the following error. This error does not occur when I use tutorial data provided with RapidMiner.
An additional note, I have been working with the data set all day, but for some reason it quit on me 2 hours ago. Reinstalling did not solve anything (I guess because the uninstaller does not clear everything, since I did not have to reinstall any extensions)

Error:

Exception: java.util.EmptyStackException
Message: null
Stack trace:
 java.util.Stack.peek(Unknown Source)
 javax.swing.text.DefaultStyledDocument$ElementBuffer.insertElement(Unknown Source)
 javax.swing.text.DefaultStyledDocument$ElementBuffer.insertUpdate(Unknown Source)
 javax.swing.text.DefaultStyledDocument$ElementBuffer.insert(Unknown Source)
 javax.swing.text.DefaultStyledDocument.insert(Unknown Source)
 javax.swing.text.html.HTMLDocument.insert(Unknown Source)
 javax.swing.text.html.HTMLDocument$HTMLReader.flushBuffer(Unknown Source)
 javax.swing.text.html.HTMLDocument$HTMLReader.flush(Unknown Source)
 javax.swing.text.html.HTMLEditorKit.read(Unknown Source)
 javax.swing.JEditorPane.setText(Unknown Source)
 javax.swing.JEditorPane.<init>(Unknown Source)
 com.rapidminer.gui.tools.ExtendedHTMLJEditorPane.<init>(ExtendedHTMLJEditorPane.java:53)
 com.rapidminer.gui.processeditor.results.SingleResultOverview.makeMainLabel(SingleResultOverview.java:262)
 com.rapidminer.gui.processeditor.results.SingleResultOverview.<init>(SingleResultOverview.java:152)
 com.rapidminer.gui.processeditor.results.ProcessExecutionResultOverview.<init>(ProcessExecutionResultOverview.java:167)
 com.rapidminer.gui.processeditor.results.ResultOverview.addResults(ResultOverview.java:117)
 com.rapidminer.gui.processeditor.results.DockableResultDisplay$4.run(DockableResultDisplay.java:191)
 com.rapidminer.gui.tools.ProgressThread$2.run(ProgressThread.java:189)
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
 java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 java.lang.Thread.run(Unknown Source)
And the project:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.2.008">
 <context>
   <input/>
   <output/>
   <macros/>
 </context>
 <operator activated="true" class="process" compatibility="5.2.008" expanded="true" name="Process">
   <process expanded="true" height="235" width="145">
     <operator activated="true" class="read_csv" compatibility="5.2.008" expanded="true" height="60" name="Read CSV" width="90" x="80" y="145">
       <parameter key="csv_file" value="D:\Downloads\aai Pharma.csv"/>
       <parameter key="column_separators" value=","/>
       <parameter key="use_quotes" value="false"/>
       <parameter key="first_row_as_names" value="false"/>
       <list key="annotations"/>
       <parameter key="encoding" value="windows-1252"/>
       <list key="data_set_meta_data_information">
         <parameter key="0" value="att1.true.binominal.attribute"/>
         <parameter key="1" value="att2.true.polynominal.attribute"/>
         <parameter key="2" value="att3.true.polynominal.attribute"/>
         <parameter key="3" value="att4.false.polynominal.attribute"/>
         <parameter key="4" value="att5.false.polynominal.attribute"/>
         <parameter key="5" value="att6.true.polynominal.attribute"/>
         <parameter key="6" value="att7.true.polynominal.attribute"/>
       </list>
     </operator>
     <connect from_op="Read CSV" from_port="output" to_port="result 1"/>
     <portSpacing port="source_input 1" spacing="0"/>
     <portSpacing port="sink_result 1" spacing="0"/>
     <portSpacing port="sink_result 2" spacing="0"/>
   </process>
 </operator>
</process>
Thanks in advance for any help offered!
Tagged:

Answers

  • SkirzynskiSkirzynski Member Posts: 164 Maven
    Could you provide an example of your CSV with just a few lines and anonymised (in case your have sensitve data) which fails with the given error? I have tried to reproduce your error with some dummy data which fit to your operator, but i was not "successful" at all.
  • nennatnennat Member Posts: 9 Contributor II
    This is one of the exact data sets I have used, it is from a web crawl of an anonymous message board.
    It is with 14 MB the smallest I currently have. It has about 20.000 lines of data in it, another crawl that I will also want to use has 200.000 lines.
    https://www.dropbox.com/s/y2kbruoz5btjbu9/daiichi.csv
  • SkirzynskiSkirzynski Member Posts: 164 Maven
    Congratulations! You have found a bug!  ;)

    It seems that nobody before you tried to read and display HTML-tags in the result overview. I have fixed the bug in our trunk.

    So there are a few possible quick fixes for you:
    • Wait for the next release
    • Wait for the sourceforge-synchronization (tomorrow, but if you are in a hurry i could trigger this today by hand) and use this source code
    • Do not display the result and process it directly
    • Insert a "Generate Attribute" operator to escape the HTML (see the process below)

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <process version="5.3.000">
      <context>
        <input/>
        <output/>
        <macros/>
      </context>
      <operator activated="true" class="process" compatibility="5.3.000" expanded="true" name="Process">
        <process expanded="true" height="235" width="480">
          <operator activated="true" class="read_csv" compatibility="5.3.000" expanded="true" height="60" name="Read CSV" width="90" x="45" y="30">
            <parameter key="csv_file" value="/home/marcin/Desktop/daiichi.short.csv"/>
            <parameter key="column_separators" value=","/>
            <parameter key="use_quotes" value="false"/>
            <parameter key="first_row_as_names" value="false"/>
            <list key="annotations"/>
            <parameter key="encoding" value="windows-1252"/>
            <list key="data_set_meta_data_information">
              <parameter key="0" value="att1.true.binominal.attribute"/>
              <parameter key="1" value="att2.true.polynominal.attribute"/>
              <parameter key="2" value="att3.true.polynominal.attribute"/>
              <parameter key="3" value="att4.false.polynominal.attribute"/>
              <parameter key="4" value="att5.false.polynominal.attribute"/>
              <parameter key="5" value="att6.true.polynominal.attribute"/>
              <parameter key="6" value="att7.true.polynominal.attribute"/>
            </list>
          </operator>
          <operator activated="true" class="generate_attributes" compatibility="5.3.000" expanded="true" height="76" name="Generate Attributes" width="90" x="246" y="30">
            <list key="function_descriptions">
              <parameter key="att7" value="escape_html(att7)"/>
            </list>
          </operator>
          <connect from_op="Read CSV" from_port="output" to_op="Generate Attributes" to_port="example set input"/>
          <connect from_op="Generate Attributes" from_port="example set output" to_port="result 1"/>
          <portSpacing port="source_input 1" spacing="0"/>
          <portSpacing port="sink_result 1" spacing="0"/>
          <portSpacing port="sink_result 2" spacing="0"/>
        </process>
      </operator>
    </process>

  • nennatnennat Member Posts: 9 Contributor II
    Well that explains a lot!
    Thanks for your quick response and help!
  • saurabh_jhaverisaurabh_jhaveri Member Posts: 4 Contributor I

    Hi,

     

    This is Saurabh, I'm also getting a similar error

     

     

    • Exception: java.lang.NullPointerException
    • Message: null
    • Stack trace:
    • com.rapidminer.operator.ports.metadata.MetaDataFactory.createMetaDataforIOObject(MetaDataFactory.java:86)
    • com.rapidminer.operator.ports.metadata.MetaData.forIOObject(MetaData.java:228)
    • com.rapidminer.gui.processeditor.results.SingleResultOverview.(SingleResultOverview.java:154)
    • com.rapidminer.gui.processeditor.results.ProcessExecutionResultOverview.(ProcessExecutionResultOverview.java:210)
    • com.rapidminer.gui.processeditor.results.ResultOverview.addResults(ResultOverview.java:128)
    • com.rapidminer.gui.processeditor.results.DockableResultDisplay$5.run(DockableResultDisplay.java:226)
    • com.rapidminer.gui.tools.ProgressThread$3.run(ProgressThread.java:550)
    • java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    • java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    • java.lang.Thread.run(Thread.java:745)
Sign In or Register to comment.