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

Where to place a writable properties file in a java webapp?
Implementations and Collections
Factory Pattern Method Problem
shrinking surfaceview to be in a box
Viewing Deployed Apps in Weblogic Server
How do you transition from using Eclipse for your builds to using Ant
Java Web Service - Secure web methods by user
How to make sure a user is still logged in using Java Web
Extract double from a string
Text color doesnot change in Maps Info window
MediaPlayer.create() always returns null
Android Server Pc Client
Redirect slf4j to string
Dynamic layout with expandable cells
generating code from XSD
Compilation error of simple java files with Google Protocol Buffer

Categories

HOME
ibm-bluemix
vbscript
amazon-ec2
zeromq
openstack
google-play
react-redux
survey
android-youtube-api
google-translate
izpack
imacros
fortumo
serverless-framework
serilog
normalizr
google-pagespeed
reverse-proxy
mps
captiveportal
restful-authentication
tdd
windows-error-reporting
maxmind
fifo
procdump
instant-messaging
socialengine
pdb
catch-all
xmlreader
dartium
jquery-bootgrid
preconditions
optix
gulp-sourcemaps
core-plot
texmaker
modelmapper
errordocument
jquery-validate
jlink
gabor-filter
yii2-extension
namecoin
titanium-android
orthogonal
cubes
word-vba-mac
httplistener
azure-virtual-network
etsy
gstreamer-0.10
markojs
actionbardrawertoggle
hover-over
fadeout
uid
natvis
intel-fortran
teamcity-8.0
quicklisp
ibaction
microbenchmark
service-accounts
php-ci
notify
geonetwork
gulp-less
html-helper
openexr
has-many-through
rtmfp
industrial
blending
padarn
comaddin
lcs
frameset
regsvr32
bubble-chart
custom-backend
spyware
deobfuscation
django-tagging
krl
digest-authentication
firefox4
nintendo-ds
mtj
pascal-fc
procedural-music
gacutil
windows-live-messenger
paul-graham
misv

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