Java Exception that is thrown when an application tries to create an instance of a class using the newInstance method in class Class, but the specified class object cannot be instantiated.
Questions tagged [instantiationexception]
65 questions
0
votes
0 answers
Empty constructors and non-static fields
I understand that my code most likely does not follow best practices. I am a self confessed "copy and paste" coder and am still learning the proper ways to code for Android so please feel free to rip the code to bits (if you have the time and…

Jonny Wright
- 1,119
- 4
- 20
- 38
0
votes
2 answers
java.lang.InstantiationException using jGraphT when trying to display the Weight of a lable
Hi everyone I'm tring to display a graph using jGraphT. Instead of labling an edge with the name of the source and target notes I want to display the weight of the edge. For that, I created an aditional class to overwrite the toString method of…

an3sarmiento
- 323
- 4
- 13
0
votes
2 answers
Java - Instantiation
I'm trying to create a new class of something I'm not entirely sure of the class type. This could be better explained with my code:
private static Class[] Packets = new Class[]
{
KeepAlivePacket.class, // 0x00
…

VoidWhisperer
- 75
- 1
- 3
- 14
0
votes
1 answer
Android instantiationexception in app when using device admin
I am getting there!
Logcat:
07-29 19:15:05.509: D/libEGL(31021): loaded /system/lib/egl/libEGL_mali.so
07-29 19:15:05.544: D/libEGL(31021): loaded /system/lib/egl/libGLESv1_CM_mali.so
07-29 19:15:05.549: D/libEGL(31021): loaded…

Liam W
- 1,193
- 1
- 26
- 46
0
votes
1 answer
unable to instantiate activity: android
can anyone tell me what is going on, i keep getting this error.
returns
(349): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{uk.ac.surrey.ms00367/uk.ac.surrey.ms00367.Panel}: java.lang.InstantiationException:…

mani
- 1
- 1