RapidMiner 9.8 Beta is now available

Be one of the first to get your hands on the new features. More details and downloads here:

GET RAPIDMINER 9.8 BETA

"Problem with Rapid Miner Installation Ubuntu: Cannot initialize XML serializatio"

Legacy UserLegacy User Member Posts: 0 Newbie
edited May 2019 in Help
Hi, I'm trying to run rapid miner on Ubuntu but anytime I try either the scripts or simply
java -jar lib/rapidminer.jar the program quits with the following message.

Header Chunk. Image width:270 height:67 depth:8 color type:6 compression type:0 filter type:0 interlace:0
Header Chunk. Image width:432 height:350 depth:8 color type:2 compression type:0 filter type:0 interlace:0
Header Chunk. Image width:16 height:16 depth:8 color type:6 compression type:0 filter type:0 interlace:0
Header Chunk. Image width:24 height:24 depth:8 color type:6 compression type:0 filter type:0 interlace:0
Header Chunk. Image width:32 height:32 depth:8 color type:6 compression type:0 filter type:0 interlace:0
Header Chunk. Image width:48 height:48 depth:8 color type:6 compression type:0 filter type:0 interlace:0
Header Chunk. Image width:64 height:64 depth:8 color type:6 compression type:0 filter type:0 interlace:0
Header Chunk. Image width:128 height:128 depth:8 color type:6 compression type:0 filter type:0 interlace:0
G 28-Nov-08 10:17:36 AM: Property rapidminer.home is not set. Guessing.
G 28-Nov-08 10:17:36 AM: Trying parent directory of '/home/colin/rapidminer-4.3/lib/rapidminer.jar'...gotcha!
G 28-Nov-08 10:17:36 AM: Trying base directory of classes (build) 'failed
G 28-Nov-08 10:17:36 AM: ----------------------------------------------------
G 28-Nov-08 10:17:36 AM: Initialization Settings
G 28-Nov-08 10:17:36 AM: ----------------------------------------------------
G 28-Nov-08 10:17:36 AM: Default system encoding for IO: UTF-8
G 28-Nov-08 10:17:36 AM: Load core operators...
G 28-Nov-08 10:17:36 AM: Load Weka operators: true
G 28-Nov-08 10:17:36 AM: Load JDBC drivers from lib directory: true
G 28-Nov-08 10:17:36 AM: Load JDBC drivers from classpath: false
G 28-Nov-08 10:17:36 AM: Load plugins: true
G 28-Nov-08 10:17:36 AM: Load plugins from '/home/colin/rapidminer-4.3/lib/plugins'
G 28-Nov-08 10:17:36 AM: ----------------------------------------------------
G 28-Nov-08 10:17:36 AM: Read rcfile '/home/colin/rapidminer-4.3/etc/rapidminerrc'.
G 28-Nov-08 10:17:36 AM: Trying rcfile '/home/colin/rapidminer-4.3/etc/rapidminerrc.Linux'...skipped
G 28-Nov-08 10:17:36 AM: Trying rcfile '/home/colin/.rapidminer/4_3_0_rapidminerrc'...skipped
G 28-Nov-08 10:17:36 AM: Trying rcfile '/home/colin/.rapidminer/4_3_0_rapidminerrc.Linux'...skipped
G 28-Nov-08 10:17:36 AM: Trying rcfile '/home/colin/rapidminer-4.3/rapidminerrc'...skipped
G 28-Nov-08 10:17:36 AM: Trying rcfile '/home/colin/rapidminer-4.3/rapidminerrc.Linux'...skipped
G 28-Nov-08 10:17:36 AM: Trying rapidminer.rcfile. Property not specified...skipped
G 28-Nov-08 10:17:39 AM: Loading operators from 'operators.xml'.
G 28-Nov-08 10:17:52 AM: Loading JDBC driver information from 'etc:jdbc_properties.xml'.
G 28-Nov-08 10:17:52 AM: [Error] Cannot initialize XML serialization. Probably the libraries 'xstream.jar' and 'xpp.jar' were not provided. XML serialization will not work!
Exception in thread "main" java.security.InvalidParameterException: unsupported key size: 21
  at gnu.javax.crypto.jce.key.SecretKeyGeneratorImpl.engineInit(libgcj.so.81)
  at javax.crypto.KeyGenerator.init(libgcj.so.81)
  at com.rapidminer.tools.cipher.KeyGeneratorTool.createAndStoreKey(KeyGeneratorTool.java:66)
  at com.rapidminer.RapidMiner.init(RapidMiner.java:311)
  at com.rapidminer.RapidMiner.init(RapidMiner.java:228)
  at com.rapidminer.RapidMiner.init(RapidMiner.java:404)
  at com.rapidminer.gui.RapidMinerGUI.run(RapidMinerGUI.java:159)
  at com.rapidminer.gui.RapidMinerGUI.main(RapidMinerGUI.java:608)

xstream.jar and xpp3.jar are in the lib file.

any help on this would be appreciated,

Colin

Answers

  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531   Unicorn
    Hi Colin,
    which JRE do you use?
    Greetings,
      Sebastian
  • Legacy UserLegacy User Member Posts: 0 Newbie
    Hi Sebastian,
      I'm using sun-java6-jre,
    regards,

    Colin
  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531   Unicorn
    Hi Colin,
    I'm very sorry, but I've never heard of this error. I know some Ubuntu installations running without problem.
    Hmm, the line of code tries to initialise the Cryptography engine. Perhabs your installation uses a different Cryptography Implementation, not supporting the, admittedly strange size of the key.
    I will ask the developer, why the keysize was chosen on 168 bit...

    Greetings,
      Sebastian
  • LehmannLehmann Member Posts: 1 Contributor I
    I had the same problem,

    it looks like the RapidMinerGUI script is doing evil things:

    it always runs a `which java` even if a JAVA_HOME has been specified on the begin of the script.
    so it tries to run RapidMinerGUI with gcj on my Ubuntu.
    You can try the code below and replace the first lines of your RapidMinerGUI script.
    It worked well on my Ubuntu 8.10 x86-64 with either the java 1.5 or the java 6 line
    make sure to uncomment exactly one of the JAVA_HOME lines
    and adjust RAPIDMINER_HOME

    #!/bin/sh

    ## set the path to your RapidMiner installation here or in an environment variable
    #RAPIDMINER_HOME=${HOME}
    RAPIDMINER_HOME=${HOME}/Programme/rapidminer-4.3
    JAVA_HOME=/usr/lib/jvm/java-6-sun/jre
    #JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/jre
    ## set the maximum amount of memory Java uses here or in an environment variable
    MAX_JAVA_MEMORY=1024

    ## set the path to the files with additional operators here or in an environment variable
    #RAPIDMINER_OPERATORS_ADDITIONAL=

    if [ -z "${RAPIDMINER_HOME}" ] ; then
        BIN_DIR=`dirname "$0"`
        RAPIDMINER_HOME=`dirname "${BIN_DIR}"`
        echo "RAPIDMINER_HOME is not set. Trying the directory '${RAPIDMINER_HOME}'..."
    fi

    if [ -z "${JAVA_HOME}" ] ; then
        echo "JAVA_HOME is not set. Edit $0 and/or your local startup files."
        exit 1
    else
    #    _jfnd="`which java`"
    #    if [ -x "${_jfnd}" ]; then
    #      JAVA="${_jfnd}"
    #    elif [ -x  "${JAVA_HOME}/bin/java" ]; then
        if [ -x  "${JAVA_HOME}/bin/java" ]; then
          JAVA="${JAVA_HOME}/bin/java"
        else
          echo 'could not found the `java? executable in default path or ${JAVA_HOME}/bin/java.'
          echo "Edit $0 and/or your local startup files."
          exit 1
        fi
        unset _jfnd
    fi

    if [ -z "${MAX_JAVA_MEMORY}" ] ; then
        MAX_JAVA_MEMORY=512
        echo "No maximum Java memory defined, using 512 Mb..."
    fi

    ...snip

    good luck
  • Legacy UserLegacy User Member Posts: 0 Newbie
    same problem here on debian lenny and RapidMiner 4.4
    It happens with both java versions and with both 32-bit and 64-bit.

    I already adjusted the JAVA_HOME and RAPIDMINER_HOME

    plz help, thx

    greetz
    drz
  • Legacy UserLegacy User Member Posts: 0 Newbie
Sign In or Register to comment.