Click library is null

  9 posts   Feedicon  
Replies: 8 - Last Post: October 27, 2009 05:03
by: hantsy
showing 1 - 9 of 9
 
Posted: October 23, 2009 02:43 by sabob
Hi all,

I'm using Netbeans 6.7.1 on JDK6 and trying out the Click netbeans plugin but receive the exception listed below when trying to create a web project with Click framework.

I've noticed that no Click specific libraries were added to the Netbeans library list. In other words if I navigate to "Tools -> Libraries" I don't see any registered Click libraries. Not sure if this is the problem though?

kind regards

bob


WARNING [org.openide.WizardDescriptor]
java.lang.IllegalArgumentException: library must not be null
at org.netbeans.modules.java.api.common.classpath.ClassPathSupport$Item.create(ClassPathSupport.java:403)
at org.netbeans.modules.java.api.common.classpath.ClassPathModifierSupport.handleLibraries(ClassPathModifierSupport.java:219)
at org.netbeans.modules.java.api.common.classpath.ClassPathModifier.handleLibraries(ClassPathModifier.java:183)
at org.netbeans.modules.java.api.common.classpath.ClassPathModifier.addLibraries(ClassPathModifier.java:179)
at org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation$Accessor.addLibraries(ProjectClassPathModifierImplementation.java:422)
at org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addLibraries(ProjectClassPathModifier.java:92)
at org.netbeans.modules.web.common.util.WebModuleUtilities.addLibrariesToWebModule(WebModuleUtilities.java:162)
at org.netbeans.modules.web.click.ClickWebModuleExtender.extend(ClickWebModuleExtender.java:98)
at org.netbeans.modules.web.project.ui.wizards.NewWebProjectWizardIterator.instantiate(NewWebProjectWizardIterator.java:184)
at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1016)
at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:588)
at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:409)
at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:253)
at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:165)
at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1524)
at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1481)
at org.openide.WizardDescriptor.access$1700(WizardDescriptor.java:127)
[catch] at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:2052)




 
Posted: October 23, 2009 05:18 by hantsy
There is no problem here.
Did you restart your NetBeans IDE after installation.
I am sorry I'd forgot set it into module.
 
Posted: October 23, 2009 05:39 by sabob
Hi Hantsy,

Yep, I've restarted the IDE but the Click library still is not registered and I receive the same exception when creating a new project. I'll try and look at the source to see why this happens.

Thanks for your help.

bob
 
Posted: October 23, 2009 08:01 by sabob
Got it working now. The problem was that I had my own Click libraries registered in Netbeans and they were clashing with the Click plugin libraries. So I removed my libraries and voila, it worked.

For future releases of the plugin maybe consider adding the specific Click version to the library? Otherwise it might be difficult to upgrade the plugin to new Click releases.

Other than that the plugin works great. I notice its even possible to specify shortcuts for "Go to Page Class" and "Go to Page Template". Smile

Well done.
 
Posted: October 23, 2009 08:48 by hantsy
Thank you for your suggestion.
I will consider them in future release.
Would you like file issues about them in the bugzilla separately?
Thanks.
 
Posted: October 23, 2009 09:23 by sabob
Done:

https://kenai.com/bugzilla/show_bug.cgi?id=1321
https://kenai.com/bugzilla/show_bug.cgi?id=1322

Have you considered JIRA instead of bugzilla as the bug tracker for NBX?
 
Posted: October 26, 2009 03:48 by hantsy
OK , I added JIRA support and copied the issues from Bugzilla to JIRA.
I will delete the bugzilla from this project ...
 
Posted: October 27, 2009 04:32 by sabob
Thanks Hantsy.

Btw I've published a blog entry of the plugin as well: http://click-framework.blogspot.com/2009/10/netbeans-plugin-released-for-apache.html

kind regards

bob
 
Posted: October 27, 2009 05:03 by hantsy
Oh, thank you for advertising this plugin.
I think it is good for many Click developers to know this plugin.
showing 1 - 9 of 9
Replies: 8 - Last Post: October 27, 2009 05:03
by: hantsy
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close