java.lang.RuntimeException: Failed to invoke clarifai2.dto.ClarifaiStatus() with no args


Solutions on the web

Solution icon of stackoverflow
Failed to invoke clarifai2.dto.ClarifaiStatus() with no args

Solution icon of stackoverflow
Failed to invoke protected java.lang.ClassLoader() with no args

Solution icon of stackoverflow
Failed to invoke public com.example.syncapp.MessageBase() with no args

Solution icon of stackoverflow
Failed to invoke public plugin() with no args

Stack trace

java.lang.RuntimeException: Failed to invoke clarifai2.dto.ClarifaiStatus() with no args
	at com.google.gson.internal.ConstructorConstructor$2.construct(ConstructorConstructor.java:94)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:162)
	at com.google.gson.Gson.fromJson(Gson.java:795)
	at com.google.gson.Gson.fromJson(Gson.java:859)
	at com.google.gson.Gson.fromJson(Gson.java:832)
	at clarifai2.api.request.ClarifaiRequest$Impl.executeSync(ClarifaiRequest.java:249)
	at clarifai2.api.request.ClarifaiRequest$Builder.executeSync(ClarifaiRequest.java:170)
	at com.example.amutgeka.visualclarifia.MainActivity.train(MainActivity.java:120)
	at com.example.amutgeka.visualclarifia.MainActivity$1$1.run(MainActivity.java:42)
	at java.lang.Thread.run(Thread.java:761)
Caused by: java.lang.InstantiationException: Can't instantiate abstract class clarifai2.dto.ClarifaiStatus
	at java.lang.reflect.Constructor.newInstance0(Native Method)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:430)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

5 times, 2 months ago
6 times, 9 months ago
2 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 times, 1 year ago
10 more bugmates