Skip to content

Instantly share code, notes, and snippets.

@cjritola
Created November 26, 2015 04:10
Show Gist options
  • Save cjritola/9714dcab693c62d39839 to your computer and use it in GitHub Desktop.
Save cjritola/9714dcab693c62d39839 to your computer and use it in GitHub Desktop.
NPE on load
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'controllerConfigTab' defined in URL [jar:file:/D:/_TRCL/terminal-recall/target/RunMe.jar!/org/jtrfp/trcl/gui/ControllerConfigTab.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.jtrfp.trcl.gui.ControllerConfigTab]: Constructor threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:275)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:835)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
at org.springframework.context.annotation.AnnotationConfigApplicationContext.(AnnotationConfigApplicationContext.java:84)
at org.jtrfp.trcl.flow.RunMe.main(RunMe.java:53)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.jtrfp.trcl.gui.ControllerConfigTab]: Constructor threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
Creating GL Texture...
...Done.
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:122)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:267)
... 13 more
Caused by: java.lang.NullPointerException
at org.jtrfp.trcl.gui.ControllerInputDevicePanel.(ControllerInputDevicePanel.java:67)
at org.jtrfp.trcl.gui.ControllerConfigPanel.(ControllerConfigPanel.java:36)
at org.jtrfp.trcl.gui.ControllerConfigTab.(ControllerConfigTab.java:37)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
... 15 more
==== SHOWSTOPPER ====
java.lang.NullPointerException
at org.jtrfp.trcl.gui.MenuSystem$1$1.call(MenuSystem.java:89)
at org.jtrfp.trcl.gui.MenuSystem$1$1.call(MenuSystem.java:86)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.jtrfp.trcl.core.TRFutureTask.run(TRFutureTask.java:40)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
======================
Irrecoverable. Exiting...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment