org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.jirafisheyeplugin.web.admin.ViewFishEyeConfiguration': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.jirafisheyeplugin.web.admin.ViewFishEyeConfiguration]: Constructor threw exception; nested exception is java.lang.NullPointerException

Atlassian JIRA | Daniel Leng | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Attempting to add a repository path in JIRA throws the following exceptions: {noformat} Cause Referer URL: http://localhost:8070/jira/secure/admin/AssociateProjectRepPath!default.jspa?projectId=10101&fromScreen=prj java.lang.NullPointerException java.lang.NullPointerException at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl.getProjectId(RepositoryPathStoreImpl.java:63) at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl.access$400(RepositoryPathStoreImpl.java:32) at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl$3.with(RepositoryPathStoreImpl.java:131) at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl.forEachApplicationLink(RepositoryPathStoreImpl.java:144) at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl.reloadRepositoryPaths(RepositoryPathStoreImpl.java:118) at com.atlassian.jirafisheyeplugin.web.admin.AssociateProjectRepositoryPath.doExecute(AssociateProjectRepositoryPath.java:152) at webwork.action.ActionSupport.execute(ActionSupport.java:165) {noformat} Attempting to refresh the Fisheye Global configuration also throw this error: {noformat} 2015-01-20 18:45:21,568 http-bio-8070-exec-8 ERROR admin 1125x798x1 an41kg 127.0.0.1 /secure/admin/ViewFishEyeConfig.jspa [jira.web.dispatcher.JiraWebworkActionDispatcher] Exception thrown from action 'ViewFishEyeConfig', returning 404 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.jirafisheyeplugin.web.admin.ViewFishEyeConfiguration': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.jirafisheyeplugin.web.admin.ViewFishEyeConfiguration]: Constructor threw exception; nested exception is java.lang.NullPointerException at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) ... Caused by: java.lang.NullPointerException at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl.access$400(RepositoryPathStoreImpl.java:32) at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl$3.with(RepositoryPathStoreImpl.java:131) at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl.forEachApplicationLink(RepositoryPathStoreImpl.java:144) at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl.reloadRepositoryPaths(RepositoryPathStoreImpl.java:118) at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl.refresh(RepositoryPathStoreImpl.java:149) at com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl.refreshRefreshables(RefreshManagerImpl.java:162) at com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl.refreshAll(RefreshManagerImpl.java:80) {noformat} *Steps to reproduce:* # Create a project. # Associate this project with a *Repository Path* by going to the project's Administration page, scroll down to the Repository Paths section and add one there. # Delete this project after that. # Create a second project, but *ensure that the project key is different* from the deleted project earlier. # Try to add a Repository Path to this project. It will fail with the 500-page error. *Root Cause:* # The NPE is caused by the fact that JIRA does not *update* the list of projects with repository paths in the database. # Running the following SQL: {noformat} SELECT * FROM propertyentry LEFT JOIN propertystring ON propertyentry.ID = propertystring.ID WHERE PROPERTY_KEY LIKE '%fisheye.projects.with.repository.paths%'; {noformat} # This will populate a list of JIRA project keys that have repository paths configured. # You will notice that this list still contains project keys of previously deleted JIRA projects. # The NPE occurs when the Fisheye plugin tries to retrieve the ID of a non-existent JIRA project key. *Workaround Steps*: # Update the *propertystring* table row (the fisheye.projects.with.repository.paths property entry) to remove the project keys that do not exist in JIRA or has been deleted. # *Restart* JIRA for the database changes to take effect. (!) ALWAYS have a database backup handy before attempting to modify production data, or test it in a staging instance first. (!) *Tested Versions:* # Fisheye 3.5.1 with JIRA 6.3.9 # Fisheye 3.6.2 with JIRA 6.3.9 # Fisheye 3.6.2 with JIRA 6.3.12 # Fisheye 3.7 with JIRA 6.3.14

    Atlassian JIRA | 2 years ago | Daniel Leng [Atlassian]
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.jirafisheyeplugin.web.admin.ViewFishEyeConfiguration': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.jirafisheyeplugin.web.admin.ViewFishEyeConfiguration]: Constructor threw exception; nested exception is java.lang.NullPointerException
  2. 0

    Attempting to add a repository path in JIRA throws the following exceptions: {noformat} Cause Referer URL: http://localhost:8070/jira/secure/admin/AssociateProjectRepPath!default.jspa?projectId=10101&fromScreen=prj java.lang.NullPointerException java.lang.NullPointerException at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl.getProjectId(RepositoryPathStoreImpl.java:63) at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl.access$400(RepositoryPathStoreImpl.java:32) at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl$3.with(RepositoryPathStoreImpl.java:131) at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl.forEachApplicationLink(RepositoryPathStoreImpl.java:144) at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl.reloadRepositoryPaths(RepositoryPathStoreImpl.java:118) at com.atlassian.jirafisheyeplugin.web.admin.AssociateProjectRepositoryPath.doExecute(AssociateProjectRepositoryPath.java:152) at webwork.action.ActionSupport.execute(ActionSupport.java:165) {noformat} Attempting to refresh the Fisheye Global configuration also throw this error: {noformat} 2015-01-20 18:45:21,568 http-bio-8070-exec-8 ERROR admin 1125x798x1 an41kg 127.0.0.1 /secure/admin/ViewFishEyeConfig.jspa [jira.web.dispatcher.JiraWebworkActionDispatcher] Exception thrown from action 'ViewFishEyeConfig', returning 404 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.jirafisheyeplugin.web.admin.ViewFishEyeConfiguration': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.jirafisheyeplugin.web.admin.ViewFishEyeConfiguration]: Constructor threw exception; nested exception is java.lang.NullPointerException at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) ... Caused by: java.lang.NullPointerException at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl.access$400(RepositoryPathStoreImpl.java:32) at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl$3.with(RepositoryPathStoreImpl.java:131) at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl.forEachApplicationLink(RepositoryPathStoreImpl.java:144) at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl.reloadRepositoryPaths(RepositoryPathStoreImpl.java:118) at com.atlassian.jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl.refresh(RepositoryPathStoreImpl.java:149) at com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl.refreshRefreshables(RefreshManagerImpl.java:162) at com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl.refreshAll(RefreshManagerImpl.java:80) {noformat} *Steps to reproduce:* # Create a project. # Associate this project with a *Repository Path* by going to the project's Administration page, scroll down to the Repository Paths section and add one there. # Delete this project after that. # Create a second project, but *ensure that the project key is different* from the deleted project earlier. # Try to add a Repository Path to this project. It will fail with the 500-page error. *Root Cause:* # The NPE is caused by the fact that JIRA does not *update* the list of projects with repository paths in the database. # Running the following SQL: {noformat} SELECT * FROM propertyentry LEFT JOIN propertystring ON propertyentry.ID = propertystring.ID WHERE PROPERTY_KEY LIKE '%fisheye.projects.with.repository.paths%'; {noformat} # This will populate a list of JIRA project keys that have repository paths configured. # You will notice that this list still contains project keys of previously deleted JIRA projects. # The NPE occurs when the Fisheye plugin tries to retrieve the ID of a non-existent JIRA project key. *Workaround Steps*: # Update the *propertystring* table row (the fisheye.projects.with.repository.paths property entry) to remove the project keys that do not exist in JIRA or has been deleted. # *Restart* JIRA for the database changes to take effect. (!) ALWAYS have a database backup handy before attempting to modify production data, or test it in a staging instance first. (!) *Tested Versions:* # Fisheye 3.5.1 with JIRA 6.3.9 # Fisheye 3.6.2 with JIRA 6.3.9 # Fisheye 3.6.2 with JIRA 6.3.12 # Fisheye 3.7 with JIRA 6.3.14

    Atlassian JIRA | 2 years ago | Daniel Leng
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.jirafisheyeplugin.web.admin.ViewFishEyeConfiguration': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.jirafisheyeplugin.web.admin.ViewFishEyeConfiguration]: Constructor threw exception; nested exception is java.lang.NullPointerException
  3. 0

    Failing creation of bean in spring

    Stack Overflow | 4 years ago | vinod
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.ws.server.endpoint.adapter.GenericMarshallingMethodEndpointAdapter#0' defined in ServletContext resource [/WEB-INF/spring-ws-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.ws.server.endpoint.adapter.GenericMarshallingMethodEndpointAdapter]: Constructor threw exception; nested exception is java.lang.LinkageError: loader constraint violation: when resolving method "org.springframework.ws.server.endpoint.adapter.MarshallingMethodEndpointAdapter.<init>(Lorg/springframework/oxm/Marshaller;Lorg/springframework/oxm/Unmarshaller;)V" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class, org/springframework/ws/server/endpoint/adapter/GenericMarshallingMethodEndpointAdapter, and the class loader (instance of java/net/URLClassLoader) for resolved class, org/springframework/ws/server/endpoint/adapter/MarshallingMethodEndpointAdapter, have different Class objects for the type org/springframework/oxm/Marshaller used in the signature
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    how do i solve this error caused due to problem in spring initiation on tomcat (Spring forum at Coderanch)

    coderanch.com | 8 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ear.context' defined in ServletContext resource [/WEB-INF/bean.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.beans.factory.config.MethodInvokingFactoryBean#0' defined in class path resource [definition.xml]: Invocation of init method failed; nested exception is java.lang.Error: Unresolved compilation problem: The method login(loginValue) in the type loginDAO is not applicable for the arguments (String, String, String)
  6. 0

    HyperSQL Database Engine (HSQLDB) / Discussion / Help:Problem converting Server to In Process

    sourceforge.net | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'salesInvoicePanelApi' defined in class path resource : Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class : Constructor threw exception; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection

    25 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.beans.factory.BeanCreationException

      Error creating bean with name 'com.atlassian.jirafisheyeplugin.web.admin.ViewFishEyeConfiguration': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.jirafisheyeplugin.web.admin.ViewFishEyeConfiguration]: Constructor threw exception; nested exception is java.lang.NullPointerException

      at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor()
    2. Spring Beans
      AbstractAutowireCapableBeanFactory$1.run
      1. org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
      5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      5 frames