mpue / blackboard

BlackBoard is a design tool for perfboards and electrical circuits written entirely in Java
188 stars 44 forks source link

Lines with length 0 undeletable #1

Closed maugsburger closed 11 years ago

maugsburger commented 11 years ago

I accidentally created a line with a length of zero (checked in the xml, start and endpoint are the same coordinates) and can't delete.

Selection is possible, but everything further doesn't work. Neither 'del' nor the delete option in the right click menu work.

mpue commented 11 years ago

Seems, that if single objects are selected by drag border they could not be deleted.

IMHO fixed now, Please confirm, that it works now.

maugsburger commented 11 years ago

I'd love to test, but the current beta build from the page fails to start:

4:46:04,474  INFO BlackBoard:69 - Initalizing application
4:46:04,483  INFO AbstractApplication:139 - Working directory /home/mo/bin/blackboard-bin-1.1beta.0/.
4:46:04,511  INFO ClassPathXmlApplicationContext:456 - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@4139eeda: startup date [Tue Jun 04 14:46:04 UTC 2013]; root of context hierarchy
4:46:04,562  INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [applicationContext.xml]
4:46:04,715  INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [commands.xml]
4:46:04,924  INFO PropertyPlaceholderConfigurer:177 - Loading properties file from class path resource [application.properties]
4:46:05,642  INFO DefaultListableBeanFactory:555 - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2b03be0: defining beans [propertyConfigurer,resourceService,splashScreen,logPane,contextApplicationContextProvider,partFactory,applicationWindowAdvisor,applicationWindowConfig,abstractApplicationWindow,applicationWindow,abstractPerspective,boardDesignerPerspective,perspectiveProvider,menuBarProvider,toolBarProvider,logView,abstractController,authenticator,loginController,setSelectModeCommand,setDrawModeCommand,setDrawRectangleModeCommand,setDrawEllipseModeCommand,convertToPartCommand,convertToSymbolCommand,addSymbolToLibraryCommand,breakSymbolCommand,editPartCommand,openBoardCommand,browsePartsCommand,addResistorCommand,addDiodeCommand,exportImageCommand,createBoardCommand,toggleGridCommand,toggleSnapToGridCommand,toggleMirrorCommand,showAboutDialogCommand,deleteCommand,copyCommand,pasteCommand,duplicateCommand,saveCommand,saveAsCommand,printBoardCommand,exitCommand,undoCommand,redoCommand,rotateCWCommand,rotateCCWCommand,chooseColorCommand,setColorCommand,addTextCommand,editPropertiesCommand,createPartListCommand,editPreferencesCommand,showLayersCommand,addLayerCommand,deleteLayerCommand,moveToLayerCommand,moveLayerUpCommand,moveLayerDownCommand,selectAllCommand,selectAllLinesCommand,browseSheetsCommand,addSheetCommand,removeSheetCommand,importDatasheetFolderCommand,startPixelOMatCommand,flipHorizontalCommand,flipVerticalCommand,setLayerColorCommand,deletePartCommand,setConnectionCheckModeCommand,createScaleCommand,createPartCommand,duplicateLayerCommand,exportNetlistCommand,toggleMagneticCommand,editSymbolCommand,openImageCommand,simulateCircuitCommand,manageSimulatorsCommand,addSimulatorCommand,editSimulatorCommand,deleteSimulatorCommand,setSimulatorDefaultCommand,createRatsnestCommand,saveNetlistCommand,addModelCommand,editModelCommand,deleteModelCommand,importLibraryCommand,setDrawMeasureModeCommand,setMoveModeCommand,palette,datasheetProvider,SheetBrowser,SimulatorManager,abstractNiceDialog,PartBrowser,shapesPanel,symbolListPanel,symbolProvider,modelProvider,simulatorProvider,modelListPanel]; root of factory hierarchy
4:46:05,944  INFO PartFactory:131 - Working directory /home/mo/.BlackBoard
4:46:05,945  INFO PartFactory:140 - Found 0 parts.
ava.io.FileNotFoundException: /home/mo/.BlackBoard/appWindowConfig.xml (No such file or directory)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.<init>(FileInputStream.java:137)
   at org.pmedv.core.provider.ApplicationWindowConfigurationProviderImpl.<init>(ApplicationWindowConfigurationProviderImpl.java:65)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
   at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
   at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:263)
   at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1083)
   at org.pmedv.core.gui.ApplicationWindowAdvisorImpl.<init>(ApplicationWindowAdvisorImpl.java:78)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
   at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
   at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
   at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
   at org.pmedv.core.app.AbstractApplication.<init>(AbstractApplication.java:142)
   at org.pmedv.blackboard.app.BlackBoard.<init>(BlackBoard.java:43)
   at org.pmedv.blackboard.app.BlackBoard.main(BlackBoard.java:70)
4:46:05,965 ERROR ApplicationWindowConfigurationProviderImpl:77 - could not load application window configuration, creating new.
4:46:06,003  INFO ApplicationWindowAdvisorImpl:139 - initializing.
4:46:06,006  INFO Preferences:91 - No preferences found, using defaults.
4:46:06,039  INFO ApplicationWindowAdvisorImpl:168 - setting look and feel to: [The JGoodies Plastic 3D Look and Feel - © 2001-2009 JGoodies Karsten Lentzsch - com.jgoodies.looks.plastic.Plastic3DLookAndFeel]
4:46:06,082  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.CreateBoardCommand
4:46:06,093  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.OpenBoardCommand
4:46:06,158  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.OpenImageCommand
4:46:06,167  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.SaveBoardCommand
4:46:06,173  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.SaveAsCommand
4:46:06,177  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.ExportImageCommand
4:46:06,183  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.CreatePartListCommand
4:46:06,187  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.PrintBoardCommand
4:46:06,190  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.ExportNetlistCommand
4:46:06,198  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.BBExitCommand
4:46:06,272  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.UndoCommand
4:46:06,275  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.RedoCommand
4:46:06,277  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.SetSelectModeCommand
4:46:06,280  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.SetDrawModeCommand
4:46:06,283  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.SetColorCommand
4:46:06,285  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.SelectAllCommand
4:46:06,287  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.SelectAllLinesCommand
4:46:06,288  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.CopyCommand
4:46:06,291  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.PasteCommand
4:46:06,294  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.DuplicateCommand
4:46:06,297  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.DeleteCommand
4:46:06,300  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.RotateCCWCommand
4:46:06,303  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.RotateCWCommand
4:46:06,306  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.FlipHorizontalCommand
4:46:06,308  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.FlipVerticalCommand
4:46:06,311  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.MoveToLayerCommand
4:46:06,314  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.ConvertToPartCommand
4:46:06,318  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.ConvertToSymbolCommand
4:46:06,322  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.BreakSymbolCommand
4:46:06,326  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.AddSymbolToLibraryCommand
4:46:06,331  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.EditPropertiesCommand
4:46:06,334  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.core.preferences.commands.EditPreferencesCommand
4:46:06,338  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.ToggleSnapToGridCommand
4:46:06,345  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.ToggleGridCommand
4:46:06,349  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.ToggleMirrorCommand
4:46:06,353  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.ToggleMagneticCommand
4:46:06,357  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.StartPixelOMatCommand
4:46:06,363  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.CreateScaleCommand
4:46:06,368  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.blackboard.commands.ManageSimulatorsCommand
4:46:06,373  INFO ApplicationMenuBarProviderImpl:121 - Mapping action class : org.pmedv.core.commands.ShowAboutDialogCommand
4:46:06,380  INFO ApplicationMenuBarProviderImpl:321 - mapping perspective class org.pmedv.blackboard.BoardDesignerPerspective
4:46:06,383  INFO ApplicationMenuBarProviderImpl:360 - Mapping action class : org.pmedv.blackboard.commands.BrowsePartsCommand
4:46:06,388  INFO ApplicationMenuBarProviderImpl:418 - Creating menu entry for class org.pmedv.blackboard.commands.BrowsePartsCommand
4:46:06,389  INFO ApplicationMenuBarProviderImpl:360 - Mapping action class : org.pmedv.blackboard.commands.AddResistorCommand
4:46:06,396  INFO ApplicationMenuBarProviderImpl:418 - Creating menu entry for class org.pmedv.blackboard.commands.AddResistorCommand
4:46:06,397  INFO ApplicationMenuBarProviderImpl:360 - Mapping action class : org.pmedv.blackboard.commands.AddDiodeCommand
4:46:06,400  INFO ApplicationMenuBarProviderImpl:418 - Creating menu entry for class org.pmedv.blackboard.commands.AddDiodeCommand
4:46:06,402  INFO ApplicationMenuBarProviderImpl:360 - Mapping action class : org.pmedv.blackboard.commands.AddTextCommand
4:46:06,405  INFO ApplicationMenuBarProviderImpl:418 - Creating menu entry for class org.pmedv.blackboard.commands.AddTextCommand
4:46:06,406  INFO ApplicationMenuBarProviderImpl:360 - Mapping action class : org.pmedv.blackboard.commands.SimulateCircuitCommand
4:46:06,428  INFO AbstractElementProvider:85 - Working directory /home/mo/bin/blackboard-bin-1.1beta.0/.
4:46:06,433  INFO DefaultListableBeanFactory:422 - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2b03be0: defining beans [propertyConfigurer,resourceService,splashScreen,logPane,contextApplicationContextProvider,partFactory,applicationWindowAdvisor,applicationWindowConfig,abstractApplicationWindow,applicationWindow,abstractPerspective,boardDesignerPerspective,perspectiveProvider,menuBarProvider,toolBarProvider,logView,abstractController,authenticator,loginController,setSelectModeCommand,setDrawModeCommand,setDrawRectangleModeCommand,setDrawEllipseModeCommand,convertToPartCommand,convertToSymbolCommand,addSymbolToLibraryCommand,breakSymbolCommand,editPartCommand,openBoardCommand,browsePartsCommand,addResistorCommand,addDiodeCommand,exportImageCommand,createBoardCommand,toggleGridCommand,toggleSnapToGridCommand,toggleMirrorCommand,showAboutDialogCommand,deleteCommand,copyCommand,pasteCommand,duplicateCommand,saveCommand,saveAsCommand,printBoardCommand,exitCommand,undoCommand,redoCommand,rotateCWCommand,rotateCCWCommand,chooseColorCommand,setColorCommand,addTextCommand,editPropertiesCommand,createPartListCommand,editPreferencesCommand,showLayersCommand,addLayerCommand,deleteLayerCommand,moveToLayerCommand,moveLayerUpCommand,moveLayerDownCommand,selectAllCommand,selectAllLinesCommand,browseSheetsCommand,addSheetCommand,removeSheetCommand,importDatasheetFolderCommand,startPixelOMatCommand,flipHorizontalCommand,flipVerticalCommand,setLayerColorCommand,deletePartCommand,setConnectionCheckModeCommand,createScaleCommand,createPartCommand,duplicateLayerCommand,exportNetlistCommand,toggleMagneticCommand,editSymbolCommand,openImageCommand,simulateCircuitCommand,manageSimulatorsCommand,addSimulatorCommand,editSimulatorCommand,deleteSimulatorCommand,setSimulatorDefaultCommand,createRatsnestCommand,saveNetlistCommand,addModelCommand,editModelCommand,deleteModelCommand,importLibraryCommand,setDrawMeasureModeCommand,setMoveModeCommand,palette,datasheetProvider,SheetBrowser,SimulatorManager,abstractNiceDialog,PartBrowser,shapesPanel,symbolListPanel,symbolProvider,modelProvider,simulatorProvider,modelListPanel]; root of factory hierarchy
xception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationWindow' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.pmedv.core.gui.ApplicationWindow]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'menuBarProvider' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.pmedv.core.provider.ApplicationMenuBarProviderImpl]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simulateCircuitCommand' defined in class path resource [commands.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.pmedv.blackboard.commands.SimulateCircuitCommand]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simulatorProvider' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
   at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
   at org.pmedv.core.app.AbstractApplication.<init>(AbstractApplication.java:142)
   at org.pmedv.blackboard.app.BlackBoard.<init>(BlackBoard.java:43)
   at org.pmedv.blackboard.app.BlackBoard.main(BlackBoard.java:70)
aused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.pmedv.core.gui.ApplicationWindow]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'menuBarProvider' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.pmedv.core.provider.ApplicationMenuBarProviderImpl]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simulateCircuitCommand' defined in class path resource [commands.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.pmedv.blackboard.commands.SimulateCircuitCommand]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simulatorProvider' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
   at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
   at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
   ... 15 more
aused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'menuBarProvider' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.pmedv.core.provider.ApplicationMenuBarProviderImpl]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simulateCircuitCommand' defined in class path resource [commands.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.pmedv.blackboard.commands.SimulateCircuitCommand]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simulatorProvider' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:263)
   at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1083)
   at org.pmedv.core.gui.ApplicationWindow.createMenuBar(ApplicationWindow.java:183)
   at org.pmedv.core.gui.ApplicationWindow.initializeComponents(ApplicationWindow.java:82)
   at org.pmedv.core.gui.AbstractApplicationWindow.<init>(AbstractApplicationWindow.java:51)
   at org.pmedv.core.gui.ApplicationWindow.<init>(ApplicationWindow.java:62)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
   at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
   ... 17 more
aused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.pmedv.core.provider.ApplicationMenuBarProviderImpl]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simulateCircuitCommand' defined in class path resource [commands.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.pmedv.blackboard.commands.SimulateCircuitCommand]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simulatorProvider' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
   at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
   at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
   ... 35 more
aused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simulateCircuitCommand' defined in class path resource [commands.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.pmedv.blackboard.commands.SimulateCircuitCommand]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simulatorProvider' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:263)
   at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1083)
   at org.pmedv.core.provider.ApplicationMenuBarProviderImpl.<init>(ApplicationMenuBarProviderImpl.java:368)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
   at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
   ... 37 more
aused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.pmedv.blackboard.commands.SimulateCircuitCommand]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simulatorProvider' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
   at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
   at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
   ... 52 more
aused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simulatorProvider' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:263)
   at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1083)
   at org.pmedv.blackboard.commands.SimulateCircuitCommand.<init>(SimulateCircuitCommand.java:32)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
   at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
   ... 54 more
aused by: java.lang.NullPointerException
   at org.pmedv.blackboard.provider.AbstractElementProvider.loadElements(AbstractElementProvider.java:96)
   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:616)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
   ... 68 more
mpue commented 11 years ago

Did you build yourself from the sources?

Please ensure that the appWindowConfig.xml in your $home/.BlackBoard folder exists. If not create one with the following content :

https://docs.google.com/document/d/1lYxFGm685dLbg28JAcZoIm6kWqZ78vgZ_MCOIHQsezg/edit?usp=sharing

and be sure to do the following as mentioned in the readme file:

"All data is now stored and retrieved from users home directory. Users which use nigthly builds or the sources must copy the directories symbols, models, parts, datasheets and simulators to the folder USER_HOME/.BlackBoard"

Let me know if this doesn't work for you.

maugsburger commented 11 years ago

No, I used the downloadable zip http://blackboard.serverpool.org/fileDownload.do?download_id=23 at your web site 'blackboard-bin-1.1.beta'.

I can't open the linked google doc, but the whole error above appeared after I moved my ~/.BlackBoard away to ensure there is no old config lying around.

mpue commented 11 years ago

Google doc should be accessible now.

Please note that the bug is not fixed on the downloadable beta version. I only fixed it on the source. You must build BlackBoard on your own if you want to test.