java.lang.NullPointerException

viralpatel.net | 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

    JBoss and Oracle 12c : datasource bound successfully but cannot connect

    Stack Overflow | 3 years ago
    com.liferay.portal.spring.context.PortalContextLoaderListener: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.spring.aop.ServiceBeanAutoProxyCreator#0' defined in class path resource [META-INF/base-spring.xml]: Cannot resolve reference to bean 'counterTransactionAdvice' while setting bean property 'methodInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'counterTransactionAdvice' defined in class path resource [META-INF/base-spring.xml]: Cannot resolve reference to bean 'counterTransactionManager' while setting bean property 'platformTransactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'counterTransactionManager' defined in class path resource [META-INF/hibernate-spring.xml]: Cannot resolve reference to bean 'counterHibernateSessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'counterHibernateSessionFactory' defined in class path resource [META-INF/hibernate-spring.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
  2. 0

    Hibernate error : Could not turn on auto-commit in an active global transaction

    Stack Overflow | 3 years ago | spk
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Hibernate throwing NullPointerException

    Stack Overflow | 4 years ago | Robert H
    java.lang.NullPointerException

  1. Kawada 54 times, last 10 months ago
15 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. java.lang.NullPointerException

    No message provided

    at org.hibernate.cfg.OneToOneSecondPass.doSecondPass()
  2. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.cfg.OneToOneSecondPass.doSecondPass(OneToOneSecondPass.java:135)
    2. org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1163)
    3. org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:296)
    4. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1319)
    4 frames
  3. net.viralpatel.contact
    ContactAction.<init>
    1. net.viralpatel.contact.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:14)
    2. net.viralpatel.contact.util.HibernateUtil.<init>(HibernateUtil.java:8)
    3. net.viralpatel.contact.view.ContactAction.<init>(ContactAction.java:22)
    3 frames
  4. Java RT
    Class.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    5. java.lang.Class.newInstance0(Unknown Source)
    6. java.lang.Class.newInstance(Unknown Source)
    6 frames
  5. XWork
    DefaultActionProxy.prepare
    1. com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:119)
    2. com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:150)
    3. com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:139)
    4. com.opensymphony.xwork2.ObjectFactory.buildAction(ObjectFactory.java:109)
    5. com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:288)
    6. com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:388)
    7. com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:187)
    7 frames
  6. Struts2
    StrutsActionProxyFactory.createActionProxy
    1. org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)
    2. org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
    2 frames
  7. XWork
    DefaultActionProxyFactory.createActionProxy
    1. com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47)
    1 frame
  8. Struts2
    FilterDispatcher.doFilter
    1. org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:478)
    2. org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
    2 frames
  9. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    8 frames
  10. Grizzly HTTP
    JIoEndpoint$Worker.run
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    3 frames
  11. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame