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 253634 - [81cat]java.io.IOException: No annotation org.netbeans.api.templates.TemplateRegistration in ClasspathInfo [boot: /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/resources.jar:
Summary: [81cat]java.io.IOException: No annotation org.netbeans.api.templates.Template...
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-22 05:19 UTC by manikantannaren
Modified: 2015-09-14 05:32 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 213736


Attachments
stacktrace (5.54 KB, text/plain)
2015-07-22 05:19 UTC, manikantannaren
Details
stacktrace (5.54 KB, text/plain)
2015-08-27 03:17 UTC, manikantannaren
Details

Note You need to log in before you can comment on or make changes to this bug.
Description manikantannaren 2015-07-22 05:19:56 UTC
Build: NetBeans IDE Dev (Build 201507190001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b27
OS: Mac OS X

User Comments:
manikantannaren: Created  a Module Suite
Added a Module to the suite
In the module used the New Wizard to create a new FileType
Provided the icon and prefixes in the wizard
Clicked Finish

girish946: I'm Trying to implement my own file type in the netbeans plugin.
I've followed the steps given at 
https://platform.netbeans.org/tutorials/nbm-filetype.html
this exception is occuring at the third screen(Name, Icon and Location) of File Type Wizard.




Stacktrace: 
java.io.IOException: No annotation org.netbeans.api.templates.TemplateRegistration in ClasspathInfo [boot: /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/sunrsasign.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/classes:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/L
   at org.netbeans.modules.apisupport.project.ui.wizard.common.CreatedModifiedFiles$PackageInfo$1$1$1.run(CreatedModifiedFiles.java:1441)
   at org.netbeans.modules.apisupport.project.ui.wizard.common.CreatedModifiedFiles$PackageInfo$1$1$1.run(CreatedModifiedFiles.java:1432)
   at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:635)
   at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:625)
   at org.netbeans.modules.java.source.parsing.MimeTask.run(MimeTask.java:83)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:609)
Comment 1 manikantannaren 2015-07-22 05:19:59 UTC
Created attachment 154783 [details]
stacktrace
Comment 2 manikantannaren 2015-07-22 05:45:54 UTC
Due to the exception, the template file and package-info is not generated
Comment 3 manikantannaren 2015-08-27 03:17:46 UTC
Created attachment 155676 [details]
stacktrace

1. Created a new Netbeans Module Project
2. Brought up the wizard for New FileType
3. Provided the information (mime-type, extension, prefix and icon)
4. Clicked Finish
5. Failed at generating package-info.java
Comment 4 Ondrej Vrabec 2015-08-28 11:31:31 UTC
this fix should help.
Jirko (jkovalsky), Tondo, this is a problem i think. When the IDE services were split into UI/non-UI modules during server-split, it broke a lot of apisupport's wizards (for Wizards, Loaders, Options etc.).
It's not dramatic, usually it's just missing dependencies but practically it does not look good if NB developers go through our wizards and they generate uncompilable code.
Could someone from QE (or from NetCAT) go through all our wizards and try to generate all of the supported ones we have (always into a fresh new module containing no deps so far)? If you find a problem please file a separate issue to apisupport.

fix: http://hg.netbeans.org/core-main/rev/69a8e3b38129
Comment 5 Jiri Kovalsky 2015-08-28 12:26:44 UTC
Thanks Ondro for both the investigation and the fix. Mani, are you willing to do that test or should I turn to the broader NetCAT audience?
Comment 6 manikantannaren 2015-08-28 13:04:59 UTC
The FileType Wizard I can handle, the other wizard, I hope NetCat members can take over?
Comment 7 Jiri Kovalsky 2015-08-28 15:10:26 UTC
OK, I will ask for volunteers in the next NetCAT status report. BTW, Action wizard seems to be clear Ondro.
Comment 8 Quality Engineering 2015-08-30 01:37:47 UTC
Integrated into 'main-silver', will be available in build *201508300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/69a8e3b38129
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #253634 - [81cat]java.io.IOException: No annotation org.netbeans.api.templates.TemplateRegistration in ClasspathInfo [boot: /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/resources.jar:
Add missing dependency.
Comment 9 manikantannaren 2015-08-31 11:11:48 UTC
Verified on Build 201508300002. 
All files properly generated.
Output as expected.
Comment 10 manikantannaren 2015-09-02 16:17:26 UTC
Sorry my mistake.
I tested only the one I reported - FileType wizard and it's output.