I don't think the message is clear, it does not even mention the file name 
where problem occured...

And I had checked the doc, the enabledOn parameter is only for context aware 
actions, here my action is a simple always-enabled action.


    Le jeudi 18 juillet 2019 à 21:06:05 UTC+2, Geertjan Wielenga 
<geert...@apache.org> a écrit :  
 
 The message is clear:

java.lang.annotation.IncompleteAnnotationException: 
org.openide.awt.ActionRegistration missing element enabledOn

See:
http://bits.netbeans.org/dev/javadoc/org-openide-awt/org/openide/awt/ActionRegistration.html#enabledOn--

It sounds like you need to add that attribute to the ActionRegistration 
annotation, everywhere where you're using it.
Gj



On Thu, Jul 18, 2019 at 8:27 PM Jerome Lelasseux <lelass...@yahoo.com.invalid> 
wrote:

So I tried recompiling my RCP application with Netbeans 11 (Win10, Oracle JDK 
8).

I get these annotation exceptions for all registered actions:

An annotation processor threw an uncaught exception.Consult the following stack 
trace for details.java.lang.annotation.IncompleteAnnotationException: 
org.openide.awt.ActionRegistration missing element enabledOn
    at 
sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:81)
    at com.sun.proxy.$Proxy371.enabledOn(Unknown Source)
    at 
org.netbeans.modules.openide.awt.ActionProcessor.handleProcess(ActionProcessor.java:302)

Here is an example of source code which fails :

@ActionID(category = "Help", id = "org.jjazzlab.base.actions.AboutAction")
@ActionRegistration(displayName = "#CTL_About", lazy=true)
@ActionReference(path = "Menu/Help", position = 2000)
@Messages("CTL_About=About")
public final class AboutAction implements ActionListener
{                
    @Override
    public void actionPerformed(ActionEvent e)
    {
        AboutDialog dialog = new AboutDialog();
        dialog.setVisible(true);
    }
}

I removed all module dependencies and readded them in Netbeans 11 to make sure 
I have the appropriate versions but it did not solve the problem... 

Any idea ? 




    Le jeudi 18 juillet 2019 à 15:45:12 UTC+2, Geertjan Wielenga 
<geert...@apache.org> a écrit :  
 
 Stop using 8.2 and use the latest Apache NetBeans instead, see 
netbeans.apache.org.
Gj
On Thu, Jul 18, 2019 at 3:37 PM Jerome Lelasseux <lelass...@yahoo.com.invalid> 
wrote:

Hello,
Sometimes Netbeans takes forever at startup (more than 5 min of splash screen, 
usually it's about 10-20sec) and I don't understand why. During general use 
(compilation etc) it also became much slower than it used to be. I have not 
done changes to my PC which could explain this, other apps run fine. I tried 
reinstall, cleaning Netbeans cache, disabling antivirus, ...
What should I try to identify the source of the problem ? 

Thank you.


  
 Product Version: NetBeans IDE 8.2 (Build 201610071157) 
 
 Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2 
 
 Java: 1.8.0_221; Java HotSpot(TM) 64-Bit Server VM 25.221-b11 
 
 Runtime: Java(TM) SE Runtime Environment 1.8.0_221-b11 
 
 System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) 
 
 User directory: C:\Users\Administrateur.000\AppData\Roaming\NetBeans\8.2 
 
 Cache directory: C:\Users\Administrateur.000\AppData\Local\NetBeans\Cache\8.2 
  

Jerome

  
  

Reply via email to