org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myUserDAO' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'sessionFactory' of bean class [com.tutorial.dao.UserDAOImpl]: Bean property 'sessionFactory' is not writable or has an invalid setter method. Did you mean 'sessionFactoy'?

coderanch.com | 5 months 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

    Unable to connect to database (Spring forum at Coderanch)

    coderanch.com | 9 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myUserDAO' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'sessionFactory' of bean class [com.tutorial.dao.UserDAOImpl]: Bean property 'sessionFactory' is not writable or has an invalid setter method. Did you mean 'sessionFactoy'?
  2. 0

    Unable to connect to database (Spring forum at Coderanch)

    coderanch.com | 5 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myUserDAO' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'sessionFactory' of bean class [com.tutorial.dao.UserDAOImpl]: Bean property 'sessionFactory' is not writable or has an invalid setter method. Did you mean 'sessionFactoy'?
  3. 0

    Unable to connect to database

    Coderanch | 7 years ago | Sree Potluri
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myUserDAO' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'sessionFactory' of bean class [com.tutorial.dao.UserDAOImpl]: Bean property 'sessionFactory' is not writable or has an invalid setter method. Did you mean 'sessionFactoy'?
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Getting Error creating bean with name 'jsonView' defined in ServletContext resource

    Stack Overflow | 4 years ago | Sanjeev K. Singh
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xmlFileViewResolver' defined in ServletContext resource [/WEB-INF/gridmapping-servlet.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jsonView' defined in ServletContext resource [/WEB-INF/views.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.dashboard.web.JsonView]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ListOrderedMap
  6. 0

    org.springframework.beans.factory.BeanCreationException | Jot Down

    wordpress.com | 2 years ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/hello.htm' defined in ServletContext resource [/WEB-INF/springapp-servlet.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'productManager' of bean class [springapp.web.InventoryController]: Bean property 'productManager' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

    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.NotWritablePropertyException

      Invalid property 'sessionFactory' of bean class [com.tutorial.dao.UserDAOImpl]: Bean property 'sessionFactory' is not writable or has an invalid setter method. Did you mean 'sessionFactoy'?

      at org.springframework.beans.BeanWrapperImpl.setPropertyValue()
    2. Spring Beans
      AbstractAutowireCapableBeanFactory$1.run
      1. org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:787)
      2. org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:643)
      3. org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:76)
      4. org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58)
      5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1275)
      6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1011)
      7. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:475)
      8. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:412)
      8 frames
    3. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    4. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:383)
      2. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:276)
      3. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
      4. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:273)
      5. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:175)
      6. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:485)
      6 frames
    5. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:716)
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:377)
      2 frames
    6. Spring MVC
      HttpServletBean.init
      1. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:427)
      2. org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:341)
      3. org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:307)
      4. org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
      4 frames
    7. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:212)
      1 frame
    8. Glassfish Core
      Catalina.start
      1. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
      2. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
      3. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4350)
      4. org.apache.catalina.core.StandardContext.start(StandardContext.java:4659)
      5. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      6. org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
      7. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      8. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
      9. org.apache.catalina.core.StandardService.start(StandardService.java:519)
      10. org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
      11. org.apache.catalina.startup.Catalina.start(Catalina.java:581)
      11 frames
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    10. Glassfish Core
      Bootstrap.main
      1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      2 frames