MOA problem with InterlliJ

83 views
Skip to first unread message

Rowanda Ahmed

unread,
Jul 25, 2019, 6:35:39 AM7/25/19
to MOA development
Hello Everyone here, I hope that you are are doing great

I tried the IntelliJ as you told me and that what comes with me 🙁🙁 I tried the data
set KDDCup99, I attached it. and choose the clustering tab the ClusTree
algorithm. and by the way, whatever I chose from the clustering
algorithm with any dataset.arff .. it came with these errors


"C:\Program Files\Java\jdk-12.0.2\bin\java.exe" "-javaagent:C:\Program
Files\JetBrains\IntelliJ IDEA 2019.2\lib\idea_rt.jar=53634:C:\Program
Files\JetBrains\IntelliJ IDEA 2019.2\bin" -Dfile.encoding=UTF-8
-classpath "D:\0 My PHD Thesissssssssssss\java and
programming\MOA_sourceCode\moa-aster\moa\target\classes;C:\Users\LENOVO\.m2\repository\nz\ac\waikato\cms\weka\weka-dev\3.9.2\weka-dev-3.9.2.jar;C:\Users\LENOVO\.m2\repository\nz\ac\waikato\cms\weka\thirdparty\java-cup-11b\2015.03.26\java-cup-11b-2015.03.26.jar;C:\Users\LENOVO\.m2\repository\nz\ac\waikato\cms\weka\thirdparty\java-cup-11b-runtime\2015.03.26\java-cup-11b-runtime-2015.03.26.jar;C:\Users\LENOVO\.m2\repository\nz\ac\waikato\cms\weka\thirdparty\bounce\0.18\bounce-0.18.jar;C:\Users\LENOVO\.m2\repository\com\googlecode\matrix-toolkits-java\mtj\1.0.4\mtj-1.0.4.jar;C:\Users\LENOVO\.m2\repository\com\github\fommil\netlib\netlib-native_ref-osx-x86_64\1.1\netlib-native_ref-osx-x86_64-1.1-natives.jar;C:\Users\LENOVO\.m2\repository\com\github\fommil\netlib\native_ref-java\1.1\native_ref-java-1.1.jar;C:\Users\LENOVO\.m2\repository\com\github\fommil\jniloader\1.1\jniloader-1.1.jar;C:\Users\LENOVO\.m2\repository\com\github\fommil\netlib\netlib-native_ref-linux-x86_64\1.1\netlib-native_ref-linux-x86_64-1.1-natives.jar;C:\Users\LENOVO\.m2\repository\com\github\fommil\netlib\netlib-native_ref-linux-i686\1.1\netlib-native_ref-linux-i686-1.1-natives.jar;C:\Users\LENOVO\.m2\repository\com\github\fommil\netlib\netlib-native_ref-win-x86_64\1.1\netlib-native_ref-win-x86_64-1.1-natives.jar;C:\Users\LENOVO\.m2\repository\com\github\fommil\netlib\netlib-native_ref-win-i686\1.1\netlib-native_ref-win-i686-1.1-natives.jar;C:\Users\LENOVO\.m2\repository\com\github\fommil\netlib\netlib-native_ref-linux-armhf\1.1\netlib-native_ref-linux-armhf-1.1-natives.jar;C:\Users\LENOVO\.m2\repository\com\github\fommil\netlib\netlib-native_system-osx-x86_64\1.1\netlib-native_system-osx-x86_64-1.1-natives.jar;C:\Users\LENOVO\.m2\repository\com\github\fommil\netlib\native_system-java\1.1\native_system-java-1.1.jar;C:\Users\LENOVO\.m2\repository\com\github\fommil\netlib\netlib-native_system-linux-x86_64\1.1\netlib-native_system-linux-x86_64-1.1-natives.jar;C:\Users\LENOVO\.m2\repository\com\github\fommil\netlib\netlib-native_system-linux-i686\1.1\netlib-native_system-linux-i686-1.1-natives.jar;C:\Users\LENOVO\.m2\repository\com\github\fommil\netlib\netlib-native_system-linux-armhf\1.1\netlib-native_system-linux-armhf-1.1-natives.jar;C:\Users\LENOVO\.m2\repository\com\github\fommil\netlib\netlib-native_system-win-x86_64\1.1\netlib-native_system-win-x86_64-1.1-natives.jar;C:\Users\LENOVO\.m2\repository\com\github\fommil\netlib\netlib-native_system-win-i686\1.1\netlib-native_system-win-i686-1.1-natives.jar;C:\Users\LENOVO\.m2\repository\net\sourceforge\f2j\arpack_combined_all\0.1\arpack_combined_all-0.1.jar;C:\Users\LENOVO\.m2\repository\com\googlecode\netlib-java\netlib-java\1.1\netlib-java-1.1.jar;C:\Users\LENOVO\.m2\repository\com\github\fommil\netlib\core\1.1\core-1.1.jar;C:\Users\LENOVO\.m2\repository\com\github\fracpete\sizeofag\1.0.4\sizeofag-1.0.4.jar;C:\Users\LENOVO\.m2\repository\com\github\waikato\jclasslocator\0.0.12\jclasslocator-0.0.12.jar;C:\Users\LENOVO\.m2\repository\com\github\fracpete\jshell-scripting\0.0.1\jshell-scripting-0.0.1.jar;C:\Users\LENOVO\.m2\repository\com\github\waikato\fcms-widgets\0.0.14\fcms-widgets-0.0.14.jar;C:\Users\LENOVO\.m2\repository\com\github\fracpete\jfilechooser-bookmarks\0.1.6\jfilechooser-bookmarks-0.1.6.jar;C:\Users\LENOVO\.m2\repository\com\github\fracpete\processoutput4j\0.0.7\processoutput4j-0.0.7.jar;C:\Users\LENOVO\.m2\repository\com\fifesoft\rsyntaxtextarea\2.6.1\rsyntaxtextarea-2.6.1.jar;C:\Users\LENOVO\.m2\repository\org\apache\commons\commons-lang3\3.7\commons-lang3-3.7.jar;C:\Users\LENOVO\.m2\repository\net\sf\meka\meka\1.9.2\meka-1.9.2.jar;C:\Users\LENOVO\.m2\repository\com\jidesoft\jide-oss\3.6.18\jide-oss-3.6.18.jar;C:\Users\LENOVO\.m2\repository\com\github\fracpete\jclipboardhelper\0.1.1\jclipboardhelper-0.1.1.jar;C:\Users\LENOVO\.m2\repository\gov\nist\math\jama\1.0.3\jama-1.0.3.jar;C:\Users\LENOVO\.m2\repository\net\sf\trove4j\trove4j\3.0.3\trove4j-3.0.3.jar;C:\Users\LENOVO\.m2\repository\org\kramerlab\bmad\2.4\bmad-2.4.jar;C:\Users\LENOVO\.m2\repository\org\kramerlab\autoencoder\0.1\autoencoder-0.1.jar;C:\Users\LENOVO\.m2\repository\org\scala-lang\scala-library\2.10.2\scala-library-2.10.2.jar;C:\Users\LENOVO\.m2\repository\org\scala-lang\scala-swing\2.10.2\scala-swing-2.10.2.jar;C:\Users\LENOVO\.m2\repository\org\scalatest\scalatest-maven-plugin\1.0-M2\scalatest-maven-plugin-1.0-M2.jar;C:\Users\LENOVO\.m2\repository\org\apache\maven\maven-plugin-api\2.0.9\maven-plugin-api-2.0.9.jar;C:\Users\LENOVO\.m2\repository\org\apache\maven\maven-project\2.0.9\maven-project-2.0.9.jar;C:\Users\LENOVO\.m2\repository\org\apache\maven\maven-settings\2.0.9\maven-settings-2.0.9.jar;C:\Users\LENOVO\.m2\repository\org\apache\maven\maven-profile\2.0.9\maven-profile-2.0.9.jar;C:\Users\LENOVO\.m2\repository\org\apache\maven\maven-model\2.0.9\maven-model-2.0.9.jar;C:\Users\LENOVO\.m2\repository\org\apache\maven\maven-artifact-manager\2.0.9\maven-artifact-manager-2.0.9.jar;C:\Users\LENOVO\.m2\repository\org\apache\maven\maven-repository-metadata\2.0.9\maven-repository-metadata-2.0.9.jar;C:\Users\LENOVO\.m2\repository\org\apache\maven\wagon\wagon-provider-api\1.0-beta-2\wagon-provider-api-1.0-beta-2.jar;C:\Users\LENOVO\.m2\repository\org\apache\maven\maven-plugin-registry\2.0.9\maven-plugin-registry-2.0.9.jar;C:\Users\LENOVO\.m2\repository\org\apache\maven\maven-artifact\2.0.9\maven-artifact-2.0.9.jar;C:\Users\LENOVO\.m2\repository\org\codehaus\plexus\plexus-container-default\1.0-alpha-9-stable-1\plexus-container-default-1.0-alpha-9-stable-1.jar;C:\Users\LENOVO\.m2\repository\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar;C:\Users\LENOVO\.m2\repository\org\apache\maven\reporting\maven-reporting-api\2.0.9\maven-reporting-api-2.0.9.jar;C:\Users\LENOVO\.m2\repository\org\apache\maven\doxia\doxia-sink-api\1.0\doxia-sink-api-1.0.jar;C:\Users\LENOVO\.m2\repository\org\codehaus\plexus\plexus-utils\3.0\plexus-utils-3.0.jar;C:\Users\LENOVO\.m2\repository\com\googlecode\efficient-java-matrix-library\ejml\0.22\ejml-0.22.jar;C:\Users\LENOVO\.m2\repository\org\markdownj\markdownj-core\0.4\markdownj-core-0.4.jar;C:\Users\LENOVO\.m2\repository\com\github\fracpete\multisearch-weka-package\2017.10.1\multisearch-weka-package-2017.10.1.jar;C:\Users\LENOVO\.m2\repository\org\apache\commons\commons-math3\3.6.1\commons-math3-3.6.1.jar;C:\Users\LENOVO\.m2\repository\com\opencsv\opencsv\4.0\opencsv-4.0.jar;C:\Users\LENOVO\.m2\repository\org\apache\commons\commons-text\1.1\commons-text-1.1.jar;C:\Users\LENOVO\.m2\repository\commons-beanutils\commons-beanutils\1.9.3\commons-beanutils-1.9.3.jar;C:\Users\LENOVO\.m2\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;C:\Users\LENOVO\.m2\repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;C:\Users\LENOVO\.m2\repository\commons-cli\commons-cli\1.4\commons-cli-1.4.jar;C:\Users\LENOVO\.m2\repository\commons-io\commons-io\2.4\commons-io-2.4.jar;C:\Users\LENOVO\.m2\repository\org\jfree\jfreechart\1.0.19\jfreechart-1.0.19.jar;C:\Users\LENOVO\.m2\repository\org\jfree\jcommon\1.0.23\jcommon-1.0.23.jar"
moa.gui.GUI
Exception in thread "Thread-0" java.lang.NullPointerException
at com.yahoo.labs.samoa.instances.Attribute.value(Attribute.java:167)
at moa.cluster.Clustering.<init>(Clustering.java:61)
at
moa.gui.visualization.RunVisualizer.processClusterings(RunVisualizer.java:305)
at
moa.gui.visualization.RunVisualizer.runVisual(RunVisualizer.java:270)
at moa.gui.visualization.RunVisualizer.run(RunVisualizer.java:188)
at java.base/java.lang.Thread.run(Thread.java:835)


Cheers, Rowanda
KDD_0_1_Norm_First_20000.arff

Peter Reutemann

unread,
Jul 25, 2019, 5:08:37 PM7/25/19
to MOA-dev List
> I tried the IntelliJ as you told me and that what comes with me I tried the data
> set KDDCup99, I attached it. and choose the clustering tab the ClusTree
> algorithm. and by the way, whatever I chose from the clustering
> algorithm with any dataset.arff .. it came with these errors

[...]

> moa.gui.GUI
> Exception in thread "Thread-0" java.lang.NullPointerException
> at com.yahoo.labs.samoa.instances.Attribute.value(Attribute.java:167)
> at moa.cluster.Clustering.<init>(Clustering.java:61)
> at
> moa.gui.visualization.RunVisualizer.processClusterings(RunVisualizer.java:305)
> at
> moa.gui.visualization.RunVisualizer.runVisual(RunVisualizer.java:270)
> at moa.gui.visualization.RunVisualizer.run(RunVisualizer.java:188)
> at java.base/java.lang.Thread.run(Thread.java:835)

I've already answered that before:
https://groups.google.com/d/msg/moa-development/7CPwo5cRx7M/HcQNmEVzDgAJ

Cheers, Peter
--
Peter Reutemann
Dept. of Computer Science
University of Waikato, NZ
+64 (7) 858-5174
http://www.cms.waikato.ac.nz/~fracpete/
http://www.data-mining.co.nz/

Rowanda Ahmed

unread,
Jul 29, 2019, 4:17:21 AM7/29/19
to MOA development
Hello Mr. Peter
but the MOA not only for nominal class
my dataset has only numeric data. is that wrong or difficult for MOA to visulize? and I was working properly with this dataset before four months and it was no problem. I don't know what happened to the moa now to work with this datasets!! You told me that you are submitting a fix to improve the error message. I don't know what's up regarding this issue. thanks so much.

Peter Reutemann

unread,
Jul 29, 2019, 4:56:47 PM7/29/19
to MOA-dev List
> but the MOA not only for nominal class
> my dataset has only numeric data. is that wrong or difficult for MOA to visulize? and I was working properly with this dataset before four months and it was no problem. I don't know what happened to the moa now to work with this datasets!! You told me that you are submitting a fix to improve the error message. I don't know what's up regarding this issue. thanks so much.

I just downloaded the 2018.6.0 release of MOA and tried to cluster
your dataset. I get the same error message that you initially got
(NullPointerException).

Based on this, I'm not so sure whether you tried to visualize the
clusters using this particular dataset. Maybe you used another
dataset, one with an actual nominal class attribute?

The clustering tab was a contribution and (to be honest) is a bit of a
mess. All we changed was making the error message more informative:
"NullPointerException" -> "IllegalStateException: Class attribute X is
not nominal!"

Please note, I'm not a MOA user.
Reply all
Reply to author
Forward
0 new messages