I have a servlet that would instantiate
an object, if everything worked. Unfortunately, it fails with the following
exception from the Class.newInstance() method:
java.lang.InstantiationException:
com.wynnon.appletChannel.test.EchoingPort
where EchoingPort is the class I would
instantiate from.
The api says this about the Exception
thrown by newInstance():
InstantiationException
- Thrown if this Class represents an abstract class, an interface, an array
class, a primitive type, or void; or if the instantiation fails for some other
reason .
I printed all the modifiers for the the
class, and it is not an interface, not abstract, etc.
The odd thing is, if I run the
instantiation code outside orion, EchoingPort instantiates
properly.
Questions
--------
Does orion intervene somehow in the
instantiation process ?
Does anybody have a clue what I'm doing
wrong ?
|