{"action":"closed","issue":{"url":"https://api.github.com/repos/Drombler/drombler-fx/issues/126","repository_url":"https://api.github.com/repos/Drombler/drombler-fx","labels_url":"https://api.github.com/repos/Drombler/drombler-fx/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/Drombler/drombler-fx/issues/126/comments","events_url":"https://api.github.com/repos/Drombler/drombler-fx/issues/126/events","html_url":"https://github.com/Drombler/drombler-fx/issues/126","id":140993306,"number":126,"title":"Error when using own layout","user":{"login":"SirWindfield","id":5113257,"avatar_url":"https://avatars.githubusercontent.com/u/5113257?v=3","gravatar_id":"","url":"https://api.github.com/users/SirWindfield","html_url":"https://github.com/SirWindfield","followers_url":"https://api.github.com/users/SirWindfield/followers","following_url":"https://api.github.com/users/SirWindfield/following{/other_user}","gists_url":"https://api.github.com/users/SirWindfield/gists{/gist_id}","starred_url":"https://api.github.com/users/SirWindfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirWindfield/subscriptions","organizations_url":"https://api.github.com/users/SirWindfield/orgs","repos_url":"https://api.github.com/users/SirWindfield/repos","events_url":"https://api.github.com/users/SirWindfield/events{/privacy}","received_events_url":"https://api.github.com/users/SirWindfield/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Drombler/drombler-fx/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"puce77","id":9258186,"avatar_url":"https://avatars.githubusercontent.com/u/9258186?v=3","gravatar_id":"","url":"https://api.github.com/users/puce77","html_url":"https://github.com/puce77","followers_url":"https://api.github.com/users/puce77/followers","following_url":"https://api.github.com/users/puce77/following{/other_user}","gists_url":"https://api.github.com/users/puce77/gists{/gist_id}","starred_url":"https://api.github.com/users/puce77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puce77/subscriptions","organizations_url":"https://api.github.com/users/puce77/orgs","repos_url":"https://api.github.com/users/puce77/repos","events_url":"https://api.github.com/users/puce77/events{/privacy}","received_events_url":"https://api.github.com/users/puce77/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Drombler/drombler-fx/milestones/9","html_url":"https://github.com/Drombler/drombler-fx/milestones/0.8","labels_url":"https://api.github.com/repos/Drombler/drombler-fx/milestones/9/labels","id":1167560,"number":9,"title":"0.8","description":null,"creator":{"login":"puce77","id":9258186,"avatar_url":"https://avatars.githubusercontent.com/u/9258186?v=3","gravatar_id":"","url":"https://api.github.com/users/puce77","html_url":"https://github.com/puce77","followers_url":"https://api.github.com/users/puce77/followers","following_url":"https://api.github.com/users/puce77/following{/other_user}","gists_url":"https://api.github.com/users/puce77/gists{/gist_id}","starred_url":"https://api.github.com/users/puce77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puce77/subscriptions","organizations_url":"https://api.github.com/users/puce77/orgs","repos_url":"https://api.github.com/users/puce77/repos","events_url":"https://api.github.com/users/puce77/events{/privacy}","received_events_url":"https://api.github.com/users/puce77/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":4,"state":"open","created_at":"2015-06-16T21:11:33Z","updated_at":"2016-03-19T10:48:55Z","due_on":null,"closed_at":null},"comments":16,"created_at":"2016-03-15T14:45:28Z","updated_at":"2016-03-19T10:48:55Z","closed_at":"2016-03-19T10:48:55Z","body":"I wanted to customize the application layout by adding a status bar and using a NotificationPane from the controls-fx library as the content pane. I used the classic desktop layout as a base and only modified the parts that I wanted to change. The problem is that every time when I start my application, I get a NPE:\r\n```\r\ncd /Users/Sven/NetBeansProjects/voices/voices-application; JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home \"/Applications/NetBeans/NetBeans 8.1.app/Contents/Resources/NetBeans/java/maven/bin/mvn\" org.codehaus.mojo:exec-maven-plugin:1.4.0:exec\r\nRunning NetBeans Compile On Save execution. Phase execution is skipped and output directories of dependency projects (with Compile on Save turned on) will be used instead of their jar artifacts.\r\nScanning for projects...\r\n                                                                        \r\n------------------------------------------------------------------------\r\nBuilding voices-application 0.1-SNAPSHOT\r\n------------------------------------------------------------------------\r\n\r\n--- exec-maven-plugin:1.4.0:exec (default-cli) @ voices-application ---\r\nLoaded /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/ext/../libprism_es2.dylib from relative path\r\nJavaFX: using com.sun.javafx.tk.quantum.QuantumToolkit\r\nLoaded /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/ext/../libglass.dylib from relative path\r\nCalling main(String[]) method\r\nUser dir: /Users/Sven/NetBeansProjects/voices/voices-application/target/userdir\r\nInitializing JavaFX Application \"Voices 0.1-SNAPSHOT\" (800x600)...\r\nAuto-deploy install: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.apache.felix.framework:4.6.0\r\nInitialized JavaFX Application \"Voices 0.1-SNAPSHOT\"\r\nStarting JavaFX Application \"Voices 0.1-SNAPSHOT\"...\r\nLoaded /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/ext/../libjavafx_font.dylib from relative path\r\nStarted JavaFX Application \"Voices 0.1-SNAPSHOT\"\r\nStarting OSGi Framework...\r\nLoaded /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/ext/../libprism_common.dylib from relative path\r\ncontentpane is BorderPane@474f4555\r\n2016-03-15 15:39:21 INFO org.drombler.acp.core.docking.spi.impl.DockingAreaHandler resolveDockingArea - Adding docking area: 'center'\r\n2016-03-15 15:39:21 INFO org.drombler.acp.core.docking.spi.impl.DockingAreaHandler resolveDockingArea - Adding docking area: 'top'\r\n2016-03-15 15:39:21 INFO org.drombler.acp.core.docking.spi.impl.DockingAreaHandler resolveDockingArea - Adding docking area: 'bottom'\r\n2016-03-15 15:39:21 INFO org.drombler.acp.core.docking.spi.impl.DockingAreaHandler resolveDockingArea - Adding docking area: 'left'\r\n2016-03-15 15:39:21 INFO org.drombler.acp.core.docking.spi.impl.DockingAreaHandler resolveDockingArea - Adding docking area: 'right'\r\nERROR: org.drombler.acp.drombler-acp-core-docking-spi (23): [org.drombler.acp.core.docking.spi.impl.ViewDockingHandler(14)] The activate method has thrown an exception\r\njava.lang.NullPointerException\r\n\tat org.drombler.acp.core.docking.spi.impl.ViewDockingManager.<init>(ViewDockingManager.java:71)\r\n\tat org.drombler.acp.core.docking.spi.impl.ViewDockingHandler.activate(ViewDockingHandler.java:126)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:231)\r\n\tat org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:39)\r\n\tat org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:624)\r\n\tat org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:508)\r\n\tat org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:149)\r\n\tat org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:315)\r\n\tat org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:127)\r\n\tat org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:871)\r\n\tat org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:838)\r\n\tat org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:850)\r\n\tat org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:931)\r\n\tat org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:895)\r\n\tat org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1480)\r\n\tat org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1401)\r\n\tat org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:1210)\r\n\tat org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:1148)\r\n\tat org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1432)\r\n\tat org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:987)\r\n\tat org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:838)\r\n\tat org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:545)\r\n\tat org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4547)\r\n\tat org.apache.felix.framework.Felix.registerService(Felix.java:3521)\r\n\tat org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:350)\r\n\tat org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:1003)\r\n\tat org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:992)\r\n\tat org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:134)\r\n\tat org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:1044)\r\n\tat org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:841)\r\n\tat org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:419)\r\n\tat org.apache.felix.scr.impl.config.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:376)\r\n\tat org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:172)\r\n\tat org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:120)\r\n\tat org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:258)\r\n\tat org.apache.felix.scr.impl.Activator.access$000(Activator.java:45)\r\n\tat org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:185)\r\n\tat org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)\r\n\tat org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)\r\n\tat org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:479)\r\n\tat org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:414)\r\n\tat org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)\r\n\tat org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:443)\r\n\tat org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:913)\r\n\tat org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)\r\n\tat org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)\r\n\tat org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4531)\r\n\tat org.apache.felix.framework.Felix.startBundle(Felix.java:2169)\r\n\tat org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1368)\r\n\tat org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nERROR: org.drombler.acp.drombler-acp-core-docking-spi (23): [org.drombler.acp.core.docking.spi.impl.ViewDockingHandler(14)] Failed creating the component instance; see log for reason\r\n```\r\nI would not ask if I had no clue what is going wrong. I just changed the BorderPane that gets returned by the ContentPaneProvider to my own. I didn't even start to implement the status bar. I attached the maven project that is responsible for setting the layout. Maybe I missed something or I misunderstood it wrong. I thought that I could change the layout independently from other components, meaning that I can use my own layout but still be able to use the default docking implementation and the five pre-configured locations (top, left, right, bottom, center).\r\n[voices-ui-layout.zip](https://github.com/Drombler/drombler-fx/files/174117/voices-ui-layout.zip)"}}