This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 203067 - java.lang.annotation.IncompleteAnnotationException: org.openide.windows.TopComponent$Registration missing element role
Summary: java.lang.annotation.IncompleteAnnotationException: org.openide.windows.TopCo...
Status: RESOLVED INCOMPLETE
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-04 15:17 UTC by javydreamercsw
Modified: 2011-10-27 23:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2011-10-04 15:17:28 UTC
Product Version = NetBeans IDE 7.1 Beta (Build 201109252201)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0
Runtime = Java HotSpot(TM) Client VM 21.0-b17

Trying to move my application to 7.1 Beta platform I got this error. It works fine on 7.0.1 platform.

Steps to reproduce:

1) Checkout this source: https://hg.java.net/hg/simple-marauroa~source-code-repository
2) Run the update-env target in the preparation.xml file (root of the suite). This will update the platform to the current IDE's.
3) Build the Marauroa Application Manager (will take some time the first time because it'll checkout two other projects.

java.lang.annotation.IncompleteAnnotationException: org.openide.windows.TopComponent$Registration missing element role
	at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:71)
	at $Proxy105.role(Unknown Source)
	at org.netbeans.modules.openide.windows.TopComponentProcessor.handleProcess(TopComponentProcessor.java:90)
	at org.openide.filesystems.annotations.LayerGeneratingProcessor.process(LayerGeneratingProcessor.java:124)
	at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:793)
	at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:722)
	at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1700(JavacProcessingEnvironment.java:97)
	at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1029)
	at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1163)
	at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1106)
	at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:824)
	at com.sun.tools.javac.main.Main.compile(Main.java:417)
	at com.sun.tools.javac.main.Main.compile(Main.java:331)
	at com.sun.tools.javac.main.Main.compile(Main.java:322)
	at com.sun.tools.javac.Main.compile(Main.java:76)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:56)
	at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1134)
	at org.netbeans.nbbuild.CustomJavac.compile(CustomJavac.java:106)
	at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:912)
	at org.netbeans.nbbuild.CustomJavac.execute(CustomJavac.java:87)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
	at sun.reflect.GeneratedMethodAccessor457.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:390)
	at org.apache.tools.ant.Target.performTasks(Target.java:411)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
	at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:285)
	at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
	at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
Z:\Netbeans\Simple Marauroa\netbeans\harness\common.xml:206: Compile failed; see the compiler error output for details.
Comment 1 Stanislav Aubrecht 2011-10-06 13:14:14 UTC
cannot reproduce the issue.
the ant task fails with the following error message:

D:\temp\xxx\simple-marauroa~source-code-repository\Marauroa Application Manager>ant -f preparation.xml update-env > log.
txt

BUILD FAILED
D:\temp\xxx\simple-marauroa~source-code-repository\Marauroa Application Manager\preparation.xml:59: The following error
occurred while executing this line:
D:\temp\xxx\simple-marauroa~source-code-repository\Marauroa Application Manager\preparation.xml:16: The following error
occurred while executing this line:
D:\temp\xxx\simple-marauroa~source-code-repository\Marauroa Application Manager\preparation.xml:18: The following error
occurred while executing this line:
D:\temp\xxx\simple-marauroa~source-code-repository\Marauroa Application Manager\preparation.xml:123: D:\temp\xxx\simple-
marauroa~source-code-repository\Marauroa Application Manager\extra does not exist.
Comment 2 javydreamercsw 2011-10-06 13:38:14 UTC
Is due to a missing step. I forgot that after checkout the platform is still zipped. Run unzip-compilation-env target before step 2.
Comment 3 Jesse Glick 2011-10-27 23:25:33 UTC
That target does not work:

unzip-compilation-env:
/tmp/test203067/Marauroa Application Manager/preparation.xml:25: The following error occurred while executing this line:
/tmp/test203067/Marauroa Application Manager/preparation.xml:27: The following error occurred while executing this line:
/tmp/test203067/Marauroa Application Manager/preparation.xml:72: src '/tmp/test203067/Marauroa Application Manager/${nbplatform.active.dir}/extra.zip' doesn't exist.
BUILD FAILED (total time: 0 seconds)

Before filing a bug report please narrow down the problem to a minimal test case, during which you may find the problem in your own code.