I don't really know squat about them, but this sounds like it may be a classloader issue (bug?).  What do you use when you're not on Orion?
-----Original Message-----
From: Bill Winspur [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 4:47 PM
To: Orion-Interest
Subject: Class.newInstance() Fails with InstantiationException.

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 ?

Reply via email to