Re: No Class Def found and other issues I get with my own plugin in 8.2

Volodymyr <[email protected]> Mon, 17 Jul 2017 10:06:33 +0300
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
Thanks Neil,

Yes I tried to install / reload and that is when it stops working. Only works correctly in the Netbeans instance which has being created on Run/Debug.

If I had a File object, and I would need to determine which projects it is related to, how would I use lookups for this? FileOwnerQuery.getOwner returns the Project object. 

Thanks.

--
Volodymyr

--- Оригінальне повідомлення ---
Від кого: "Neil C Smith" <[email protected]>
Дата: 4 липня 2017, 18:45:28


Hi,

On Tue, Jul 4, 2017 at 3:54 PM Volodymyr <[email protected]> wrote:


Anyone, please help, when install the plugin in NetBeans, I get the strange error below. But when run/debug it from my dev environment, so it starts another NetBeans instance, it works just fine in the instance. Maybe someone ran into such issue, or maybe has at least an idea why it might be happening and what are the possible ways to fix it?



Long shot, but have you ever used Install / reload in development IDE?  It sounds like you have that class coming from two different classloaders?


Also, although not sure it's your problem, the Javadoc from Project says never to cast to a subclass as the project infrastructure is free to wrap in a proxy.  Use lookup instead.


Best wishes,


Neil




-- 

Neil C SmithArtist & Technologist
www.neilcsmith.net


Praxis LIVE - hybrid visual IDE for creative coding - www.praxislive.org