What exactly does it do when it gets instantiated?
-----Original Message-----
From: Bill Winspur [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 9: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 ?


Disclaimer

This communication together with any attachments transmitted with it ('this E-mail') is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are notified that any use of this E-mail is prohibited. Addressees should check this E-mail for viruses. The Carphone Warehouse Group PLC makes no representations as regards the absence of viruses in this E-mail. If you have received this E-mail in error please notify our ISe Response Team immediately by telephone on + 44 (0)20 8896 5828 or via E-mail at [EMAIL PROTECTED] Please then immediately destroy this E-mail and any copies of it.

Please feel free to visit our website: http://www.phonehouse.com

Reply via email to