"SEVERE: java.lang.ArrayIndexOutOfBoundsException"

jtanjtan MemberPosts:9Contributor II
edited May 2019 inHelp
I choose 4 classiers in RM5. Attached the XML as well as the error log. All three learners generated/run perfectly except one which is based on Naive Bayes. The error is array out of bounds exception.

Is this a known issue or something I missed in the flow?

Thanks.

Process XML -



























<参数键= " add_as_label" value="true"/>












































Log file -

Oct 9, 2009 3:57:54 PM CONFIG: Loading perspectives.
Oct 9, 2009 3:59:08 PM INFO: Process file version is 50
Oct 9, 2009 4:11:13 PM INFO: Decoupling process from location //NewLocalRepository//stakeholder_weighted. Process is now associated with file //NewLocalRepository//stakeholder_weighted.
Oct 9, 2009 4:11:13 PM INFO: Saved process definition at '//NewLocalRepository//stakeholder_weighted'.
Oct 9, 2009 4:11:16 PM INFO: Saved process definition at '//NewLocalRepository//stakeholder_weighted'.
Oct 9, 2009 4:11:17 PM INFO: ImprovedNeuralNet: No hidden layers defined. Using default hidden layer.
Oct 9, 2009 4:12:40 PM INFO: Process file version is 50
Oct 9, 2009 4:12:57 PM INFO: Process file version is 50
Oct 9, 2009 4:13:45 PM INFO: Saved process definition at '//NewLocalRepository//stakeholder_test2'.
Oct 9, 2009 4:13:46 PM INFO: No filename given for result file, using stdout for logging results!
Oct 9, 2009 4:13:46 PM INFO: Process starts
Oct 9, 2009 4:13:46 PM WARNING: Process not attached to a file. Trying abolute filename 'C:\RapidMiner\model\KMeans.mod'.
Oct 9, 2009 4:13:46 PM WARNING: Process not attached to a file. Trying abolute filename 'C:\RapidMiner\model\KMeans.mod'.
Oct 9, 2009 4:13:47 PM WARNING: Process not attached to a file. Trying abolute filename 'C:\RapidMiner\model\NeuralNet.mod'.
Oct 9, 2009 4:13:47 PM WARNING: Process not attached to a file. Trying abolute filename 'C:\RapidMiner\model\NeuralNet.mod'.
Oct 9, 2009 4:13:47 PM WARNING: ImprovedNeuralNet: The number of regular attributes of the given example set does not fit the number of attributes of the training example set, training: 12, application: 13
Oct 9, 2009 4:13:47 PM WARNING: ImprovedNeuralNet: The value types between training and application differ for attribute 'NATURE_OF_COUNTRY', training: numeric, application: nominal
Oct 9, 2009 4:13:47 PM WARNING: ImprovedNeuralNet: The value types between training and application differ for attribute 'DESIRED_OUTCOME', training: numeric, application: nominal
Oct 9, 2009 4:13:47 PM WARNING: ImprovedNeuralNet: The value types between training and application differ for attribute 'METHOD', training: numeric, application: nominal
Oct 9, 2009 4:13:47 PM WARNING: ImprovedNeuralNet: The value types between training and application differ for attribute 'STAKEHOLDER_MAPPING', training: numeric, application: nominal
Oct 9, 2009 4:13:47 PM WARNING: Process not attached to a file. Trying abolute filename 'C:\RapidMiner\model\DecisionTree.mod'.
Oct 9, 2009 4:13:47 PM WARNING: Process not attached to a file. Trying abolute filename 'C:\RapidMiner\model\DecisionTree.mod'.
Oct 9, 2009 4:13:47 PM WARNING: Tree: The number of regular attributes of the given example set does not fit the number of attributes of the training example set, training: 12, application: 13
Oct 9, 2009 4:13:47 PM WARNING: Tree: The number of nominal values is not the same for training and application for attribute 'STAKEHOLDER_MAPPING', training: 3, application: 2
Oct 9, 2009 4:13:47 PM WARNING: Process not attached to a file. Trying abolute filename 'C:\RapidMiner\model\NaiveBayes.mod'.
Oct 9, 2009 4:13:48 PM WARNING: Process not attached to a file. Trying abolute filename 'C:\RapidMiner\model\NaiveBayes.mod'.
Oct 9, 2009 4:13:48 PM SEVERE: Process failed: operator cannot be executed (Exception at Apply Model (4).unlabelled data: No data.). Check the log messages...
Oct 9, 2009 4:13:48 PM SEVERE: Here: Process[1] (Process)

subprocess 'Main Process'

+- Read Model[1] (Read Model)

+- Retrieve[1] (Retrieve)

+- Multiply[1] (Multiply)

+- Apply Model[1] (Apply Model)

+- Read Model (2)[1] (Read Model)

+- Apply Model (2)[1] (Apply Model)

+- Read Model (3)[1] (Read Model)

+- Apply Model (3)[1] (Apply Model)

+- Read Model (4)[1] (Read Model)

==> +- Apply Model (4)[1] (Apply Model)
Oct 9, 2009 4:14:27 PM INFO: Saved process definition at '//NewLocalRepository//stakeholder_test2'.
Oct 9, 2009 4:14:28 PM INFO: No filename given for result file, using stdout for logging results!
Oct 9, 2009 4:14:28 PM INFO: Process starts
Oct 9, 2009 4:14:28 PM WARNING: Process not attached to a file. Trying abolute filename 'C:\RapidMiner\model\KMeans.mod'.
Oct 9, 2009 4:14:28 PM WARNING: Process not attached to a file. Trying abolute filename 'C:\RapidMiner\model\KMeans.mod'.
Oct 9, 2009 4:14:28 PM WARNING: Process not attached to a file. Trying abolute filename 'C:\RapidMiner\model\NeuralNet.mod'.
Oct 9, 2009 4:14:28 PM WARNING: Process not attached to a file. Trying abolute filename 'C:\RapidMiner\model\NeuralNet.mod'.
Oct 9, 2009 4:14:29 PM WARNING: ImprovedNeuralNet: The number of regular attributes of the given example set does not fit the number of attributes of the training example set, training: 12, application: 13
Oct 9, 2009 4:14:29 PM WARNING: ImprovedNeuralNet: The value types between training and application differ for attribute 'NATURE_OF_COUNTRY', training: numeric, application: nominal
Oct 9, 2009 4:14:29 PM WARNING: ImprovedNeuralNet: The value types between training and application differ for attribute 'DESIRED_OUTCOME', training: numeric, application: nominal
Oct 9, 2009 4:14:29 PM WARNING: ImprovedNeuralNet: The value types between training and application differ for attribute 'METHOD', training: numeric, application: nominal
Oct 9, 2009 4:14:29 PM WARNING: ImprovedNeuralNet: The value types between training and application differ for attribute 'STAKEHOLDER_MAPPING', training: numeric, application: nominal
Oct 9, 2009 4:14:29 PM WARNING: Process not attached to a file. Trying abolute filename 'C:\RapidMiner\model\DecisionTree.mod'.
Oct 9, 2009 4:14:29 PM WARNING: Process not attached to a file. Trying abolute filename 'C:\RapidMiner\model\DecisionTree.mod'.
2009年10月9日下午4:14:29警告:树:of regular attributes of the given example set does not fit the number of attributes of the training example set, training: 12, application: 13
2009年10月9日下午4:14:29警告:树:of nominal values is not the same for training and application for attribute 'STAKEHOLDER_MAPPING', training: 3, application: 2
Oct 9, 2009 4:14:29 PM WARNING: Process not attached to a file. Trying abolute filename 'C:\RapidMiner\model\NaiveBayes.mod'.
Oct 9, 2009 4:14:29 PM WARNING: Process not attached to a file. Trying abolute filename 'C:\RapidMiner\model\NaiveBayes.mod'.
Oct 9, 2009 4:14:29 PM WARNING: SimpleDistribution: The number of regular attributes of the given example set does not fit the number of attributes of the training example set, training: 12, application: 13
Oct 9, 2009 4:14:29 PM WARNING: SimpleDistribution: The number of nominal values is not the same for training and application for attribute 'STAKEHOLDER_MAPPING', training: 3, application: 2
Oct 9, 2009 4:14:29 PM SEVERE: Process failed: operator cannot be executed (12). Check the log messages...
Oct 9, 2009 4:14:29 PM SEVERE: Here: Process[1] (Process)

subprocess 'Main Process'

+- Read Model[1] (Read Model)

+- Retrieve[1] (Retrieve)

+- Multiply[1] (Multiply)

+- Apply Model[1] (Apply Model)

+- Read Model (2)[1] (Read Model)

+- Apply Model (2)[1] (Apply Model)

+- Read Model (3)[1] (Read Model)

+- Apply Model (3)[1] (Apply Model)

+- Read Model (4)[1] (Read Model)

==> +- Apply Model (4)[1] (Apply Model)
Oct 9, 2009 4:14:29 PM SEVERE: java.lang.ArrayIndexOutOfBoundsException: 12
Oct 9, 2009 4:15:21 PM INFO: Process file version is 50
Tagged:

Answers

  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, MemberPosts:2531年Unicorn
    Hi,
    对不起,没有数据或至少堆栈trace I can't say anything about this error. Perhaps you could reproduce this error with an generated example set using the generate data operator?

    Greetings,
    Sebastian
Sign InorRegisterto comment.