Problem with custome file types in netbeans plugin.

11 views
Skip to first unread message

Girish Joshi

unread,
Nov 26, 2014, 2:43:26 PM11/26/14
to jugn...@googlegroups.com
Hello
I want to use my own file type in the Netbeans plugin.
I've Followed the steps given here https://platform.netbeans.org/tutorials/nbm-filetype.html
But I'm getting Exception at the third screen of the File type wizard(Name,Icon and Location).

the stack trace is :

java.io.IOException: No annotation org.netbeans.api.templates.TemplateRegistration in ClasspathInfo [boot: /usr/lib/jvm/java-7-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-7-oracle/jre/lib/rt.jar:/usr/lib/jvm/java-7-oracle/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-7-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-7-oracle/jre/classes:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-7-oracle/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-7-oracle/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-7-oracle/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jfxrt.jar, compile: /home/girish/netbeans-dev-201411260001/platform/modules/org-netbeans-api-annotations-common.jar:/home/girish/netbeans-dev-201411260001/platform/modules/org-netbeans-core-multiview.jar:/home/girish/netbeans-dev-201411260001/platform/modules/org-openide-awt.jar:/home/girish/netbeans-dev-201411260001/platform/modules/org-openide-dialogs.jar:/home/girish/netbeans-dev-201411260001/platform/core/org-openide-filesystems.jar:/home/girish/netbeans-dev-201411260001/platform/modules/org-openide-loaders.jar:/home/girish/netbeans-dev-201411260001/platform/modules/org-openide-nodes.jar:/home/girish/netbeans-dev-201411260001/platform/modules/org-openide-text.jar:/home/girish/netbeans-dev-201411260001/platform/lib/org-openide-util.jar:/home/girish/netbeans-dev-201411260001/platform/lib/org-openide-util-lookup.jar:/home/girish/netbeans-dev-201411260001/platform/modules/org-openide-windows.jar, src: /home/girish/NetBeansProjects/PyFile/src:/home/girish/NetBeansProjects/PyFile/build/classes-generated, internal boot: /home/girish/.cache/netbeans/dev/index/s4/java/14/classes:/usr/lib/jvm/java-7-oracle/jre/lib/resources.jar:/home/girish/.cache/netbeans/dev/index/s5/java/14/classes:/usr/lib/jvm/java-7-oracle/jre/lib/rt.jar:/home/girish/.cache/netbeans/dev/index/s11/java/14/classes:/usr/lib/jvm/java-7-oracle/jre/lib/sunrsasign.jar:/home/girish/.cache/netbeans/dev/index/s6/java/14/classes:/usr/lib/jvm/java-7-oracle/jre/lib/jsse.jar:/home/girish/.cache/netbeans/dev/index/s13/java/14/classes:/usr/lib/jvm/java-7-oracle/jre/lib/jce.jar:/home/girish/.cache/netbeans/dev/index/s14/java/14/classes:/usr/lib/jvm/java-7-oracle/jre/lib/charsets.jar:/home/girish/.cache/netbeans/dev/index/s12/java/14/classes:/usr/lib/jvm/java-7-oracle/jre/lib/jfr.jar:/home/girish/.cache/netbeans/dev/index/s8/java/14/classes:/usr/lib/jvm/java-7-oracle/jre/classes:/home/girish/.cache/netbeans/dev/index/s9/java/14/classes:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunpkcs11.jar:/home/girish/.cache/netbeans/dev/index/s15/java/14/classes:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunjce_provider.jar:/home/girish/.cache/netbeans/dev/index/s16/java/14/classes:/usr/lib/jvm/java-7-oracle/jre/lib/ext/dnsns.jar:/home/girish/.cache/netbeans/dev/index/s10/java/14/classes:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunec.jar:/home/girish/.cache/netbeans/dev/index/s19/java/14/classes:/usr/lib/jvm/java-7-oracle/jre/lib/ext/localedata.jar:/home/girish/.cache/netbeans/dev/index/s17/java/14/classes:/usr/lib/jvm/java-7-oracle/jre/lib/ext/zipfs.jar:/home/girish/.cache/netbeans/dev/index/s18/java/14/classes:/usr/lib/jvm/java-7-oracle/jre/lib/jfxrt.jar, internal compile: /home/girish/.cache/netbeans/dev/index/s31/java/14/classes:/home/girish/netbeans-dev-201411260001/platform/modules/org-netbeans-api-annotations-common.jar:/home/girish/.cache/netbeans/dev/index/s36/java/14/classes:/home/girish/netbeans-dev-201411260001/platform/modules/org-netbeans-core-multiview.jar:/home/girish/.cache/netbeans/dev/index/s20/java/14/classes:/home/girish/netbeans-dev-201411260001/platform/modules/org-openide-awt.jar:/home/girish/.cache/netbeans/dev/index/s29/java/14/classes:/home/girish/netbeans-dev-201411260001/platform/modules/org-openide-dialogs.jar:/home/girish/.cache/netbeans/dev/index/s21/java/14/classes:/home/girish/netbeans-dev-201411260001/platform/core/org-openide-filesystems.jar:/home/girish/.cache/netbeans/dev/index/s22/java/14/classes:/home/girish/netbeans-dev-201411260001/platform/modules/org-openide-loaders.jar:/home/girish/.cache/netbeans/dev/index/s23/java/14/classes:/home/girish/netbeans-dev-201411260001/platform/modules/org-openide-nodes.jar:/home/girish/.cache/netbeans/dev/index/s24/java/14/classes:/home/girish/netbeans-dev-201411260001/platform/modules/org-openide-text.jar:/home/girish/.cache/netbeans/dev/index/s25/java/14/classes:/home/girish/netbeans-dev-201411260001/platform/lib/org-openide-util.jar:/home/girish/.cache/netbeans/dev/index/s26/java/14/classes:/home/girish/netbeans-dev-201411260001/platform/lib/org-openide-util-lookup.jar:/home/girish/.cache/netbeans/dev/index/s27/java/14/classes:/home/girish/netbeans-dev-201411260001/platform/modules/org-openide-windows.jar, internal src: /home/girish/NetBeansProjects/PyFile/src, internal out: /home/girish/.cache/netbeans/dev/index/s38/java/14/classes]
    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:603)
    at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:380)
    at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:363)
    at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:203)
    at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:200)
    at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
    at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
    at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:141)
    at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:87)
    at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:200)
    at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:334)
    at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:408)
Caused: java.io.IOException
    at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:420)
    at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:400)
    at org.netbeans.api.java.source.JavaSource.runModificationTask(JavaSource.java:646)
    at org.netbeans.modules.apisupport.project.ui.wizard.common.CreatedModifiedFiles$PackageInfo$1$1.run(CreatedModifiedFiles.java:1432)
    at org.netbeans.modules.apisupport.project.ui.wizard.common.CreatedModifiedFiles$PackageInfo$1$1.run(CreatedModifiedFiles.java:1429)
    at org.netbeans.modules.java.source.parsing.MimeTask.run(MimeTask.java:83)
    at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:603)
    at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:380)
    at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:363)
    at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:203)
    at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:200)
    at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
    at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
    at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:141)
    at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:87)
    at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:200)
Caused: org.netbeans.modules.parsing.spi.ParseException
    at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:208)
[catch] at org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport$1.run(RunWhenScanFinishedSupport.java:86)
    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:295)
    at org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.performDeferredTasks(RunWhenScanFinishedSupport.java:80)
    at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$3.call(RepositoryUpdater.java:6034)
    at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$3.call(RepositoryUpdater.java:6012)
    at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
    at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
    at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:141)
    at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:87)
    at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:6012)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1425)
    at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:59)
    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:294)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2038)

I'm not getting how to fix this.
can anyone please help me?

thank you in advance.
girish.
Reply all
Reply to author
Forward
0 new messages