java


Why “java.lang.ClassNotFoundException: weka.core.NominalAttributeInfo” error in Java weka Android Studio?


I am creating a machine learning app in Android using weka, but I get an error while creating classifier from pre-trained model.
Following is my Android code snippet:
AssetManager am = this.getAssets();
InputStream stnonstmodel = am.open("stnonstgoodmodel.model");
Classifier cls= (Classifier) weka.core.SerializationHelper.read(stnonstmodel); // I am getting error on this line
Also, it must be noted that the classifier returns null whenever used after this line.
Printing cls.toString() gives "Classifier not built" in Android.
My error log is :
java.lang.ClassNotFoundException: weka.core.NominalAttributeInfo
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:309)
at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:2263)
at java.io.ObjectInputStream.readNewClassDesc(ObjectInputStream.java:1641)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:657)
at java.io.ObjectInputStream.readNewObject(ObjectInputStream.java:1782)
at java.io.ObjectInputStream.readNonPrimitiveContent(ObjectInputStream.java:761)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:1983)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:1940)
.
. //Similar error lines//
.
Any guesses as to why this is happening?

Related Links

Print accentuation (UTF-8) Zebra cpcl Java/Android
How to read elements of arraylist of a class defined in another class in java?
ANDROID [Back Button causes crash]
JavaFX 8 - Bind TableView Selection Model Property
Visible ToolTipText at different positions simultenously?
Embedded Jetty server
Unable to execute multiple SQL queries with Data Source connection
How to do continous deployment for Java web applications with free software
Sort Java Objects Alphabetically to a JSON Object
Convert string representation of coordinate from given CRS using geo tools
Sequential JDBC statement executions not transacting
How do I change ImmutableSet from guava collections?
how to delete specified character in array and copy the elements to another array
Dynamically update SelectionCell in CellTable in GWT
How to solve OutOfMemory Exception when uploading image?
How to extend annotations in Java?

Categories

HOME
compiler-construction
client
keras
relative-path
raspberry-pi
tesseract
relay
gis
google-oauth
malloc
microservices
rubygems
disassembler
row
windows-phone-7
visual-studio-cordova
decimal
worldwind
saxon
fatal-error
normalizr
samoa
textfield
scichart
graphicsmagick
accessor
crosstab
fish
applozic
form-data
mmenu
objectlistview
az-application-insights
ssjs
jna
ansible-playbook
android-mediaprojection
unixodbc
flashair
logfiles
taffy
termination
domain-model
pebble-watch
dropbox-php
mu
jxcore
tactic
libusb-win32
media-player
r-forge
akka-cluster
iso8601
minimization
word-vba-mac
intrusion-detection
measures
mathematica-frontend
disque
prettytensor
spim
execute
intellij-14
wireshark-dissector
pundit
sframe
cakephp-3.1
twirl
graph-drawing
rebol3
yorick
resty-gwt
typo3-neos
gnu-smalltalk
floating-point-precision
farseer
tidy
listings
coverflow
odata4j
flash-builder4.5
cos
lcs
typoscript2
pysimplesoap
getmessage
window-management
vdsp
tomcat-valve
django-tagging
mirah
uimenucontroller
swing-app-framework
boost-smart-ptr
phonon
windows-live-messenger
uiq3

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App