TheProjecter / ivy-nb-shared-libraries

Automatically exported from code.google.com/p/ivy-nb-shared-libraries
0 stars 0 forks source link

Cannot open ivy project settings panel. #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Thanks for replying to me on plugin page on netbeans plugin portal. It is nice 
to hear that you use this on a daily basis. 

I brought the project from work to home so I can get some work done over the 
weekend. I opened the projects in Netbeans and all the library references were 
broken and this is understandable. So I removed those references. But when I 
click on the Ivy settings button inside Project settings, the panel won't even 
show. I am not exactly sure how you'd reproduce such a thing, but thought I 
should let you know about the issue in general. I am seeing an exception and 
this is listed below. 

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

Should be able to see the Ivy panel on project settings dialog. 

What version of the product are you using? On what operating system?

com-munian-ivy-module-1.3.nbm   
com-munian-ivy-lib-1.0.nbm 

Netbeans-8.0

Please provide any additional information below.

java.lang.NullPointerException
    at com.munian.ivy.module.preferences.ProjectPreferencesImpl.getIvyPropertiesFilesString(ProjectPreferencesImpl.java:382)
    at com.munian.ivy.module.ui.customizer.CustomizerPanel.loadPanel(CustomizerPanel.java:524)
    at com.munian.ivy.module.ui.customizer.CustomizerPanel.<init>(CustomizerPanel.java:52)
    at com.munian.ivy.module.ui.customizer.IvyCustomizerTab.createComponent(IvyCustomizerTab.java:37)
    at org.netbeans.spi.project.ui.support.ProjectCustomizer$DelegateCategoryProvider.create(ProjectCustomizer.java:629)
    at org.netbeans.modules.project.uiapi.CustomizerPane.setCategory(CustomizerPane.java:259)
    at org.netbeans.modules.project.uiapi.CustomizerPane.access$200(CustomizerPane.java:72)
    at org.netbeans.modules.project.uiapi.CustomizerPane$CategoryChangeListener.propertyChange(CustomizerPane.java:345)
    at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
    at org.netbeans.modules.project.uiapi.CategoryModel.firePropertyChange(CategoryModel.java:118)
    at org.netbeans.modules.project.uiapi.CategoryModel.setCurrentCategory(CategoryModel.java:92)
    at org.netbeans.modules.project.uiapi.CategoryView.propertyChange(CategoryView.java:183)
    at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
    at org.openide.explorer.ExplorerManager$2.run(ExplorerManager.java:886)
    at org.openide.util.Mutex.doEvent(Mutex.java:1356)
    at org.openide.util.Mutex.readAccess(Mutex.java:355)
    at org.openide.explorer.ExplorerManager.fireInAWT(ExplorerManager.java:883)
    at org.openide.explorer.ExplorerManager$1AtomicSetSelectedNodes.fire(ExplorerManager.java:292)
    at org.openide.explorer.ExplorerManager.setSelectedNodes(ExplorerManager.java:303)
    at org.openide.explorer.ExplorerManager$1SetExploredContextAndSelection.run(ExplorerManager.java:391)
    at org.openide.util.Mutex.readAccess(Mutex.java:372)
    at org.openide.util.Mutex$1R.run(Mutex.java:1322)
    at org.openide.util.Mutex.doWrapperAccess(Mutex.java:1339)
    at org.openide.util.Mutex.readAccess(Mutex.java:361)
    at org.openide.explorer.ExplorerManager.setExploredContextAndSelection(ExplorerManager.java:418)
    at org.openide.explorer.view.BeanTreeView.selectionChanged(BeanTreeView.java:149)
    at org.openide.explorer.view.TreeView.callSelectionChanged(TreeView.java:849)
    at org.openide.explorer.view.TreeView$TreePropertyListener.run(TreeView.java:1491)
    at org.openide.util.Mutex$1Exec.run(Mutex.java:1259)
    at org.openide.nodes.Children$ProjectManagerDeadlockDetector.execute(Children.java:1921)
    at org.openide.util.Mutex.postRequest(Mutex.java:1265)
    at org.openide.util.Mutex.postRequest(Mutex.java:1228)
    at org.openide.util.Mutex.postReadRequest(Mutex.java:575)
    at org.openide.explorer.view.TreeView$TreePropertyListener.valueChanged(TreeView.java:1460)
    at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:634)
    at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1092)
    at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:293)
    at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:187)
    at javax.swing.JTree.setSelectionPath(JTree.java:1631)
    at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2396)
    at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:3612)
    at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressedDND(BasicTreeUI.java:3589)
    at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:3548)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:280)
    at java.awt.Component.processMouseEvent(Component.java:6502)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
    at java.awt.Component.processEvent(Component.java:6270)
    at java.awt.Container.processEvent(Container.java:2229)
    at java.awt.Component.dispatchEventImpl(Component.java:4861)
    at java.awt.Container.dispatchEventImpl(Container.java:2287)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4489)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
    at java.awt.Container.dispatchEventImpl(Container.java:2273)
    at java.awt.Window.dispatchEventImpl(Window.java:2719)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.awt.EventQueue$4.run(EventQueue.java:708)
    at java.awt.EventQueue$4.run(EventQueue.java:706)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242
)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Original issue reported on code.google.com by venkatra...@gmail.com on 27 Jul 2014 at 8:44

Attachments:

GoogleCodeExporter commented 9 years ago
My guess is you didnt copy the same path to the ivysettings and or properties 
files
The NPE is on propertyFile.getPath() so i assume that is null.
        for (FileObject propertyFile : ivyPropertiesFiles) {
            retval.add(propertyFile.getPath());
        }

Original comment by Raymond....@gmail.com on 1 Nov 2014 at 5:09