WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Null Pointer Exception in Websphere 8.5.5 using struts2, JPA2.0 with Hibernate as persistence provid

  • 1.  Null Pointer Exception in Websphere 8.5.5 using struts2, JPA2.0 with Hibernate as persistence provid

    Posted Sun July 28, 2013 04:57 AM

    Please help me to solve this issue


    My web application using struts2 and JPA 2.0 with hibernate as persistence provider deployed in websphere application server 8.5.5, it is giving Null Pointer Exception.


    The following are the errors given by the server:


    org.hibernate.engine.transaction.internal.jta.JtaStatusHelper.getStatus(JtaStatusHelper.java:73)null
    org
    .hibernate.engine.transaction.internal.jta.JtaStatusHelper.isActive(JtaStatusHelper.java:115)null
    org
    .hibernate.engine.transaction.internal.jta.CMTTransaction.join(CMTTransaction.java:149)null
    org
    .hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1220)null
    org
    .hibernate.ejb.AbstractEntityManagerImpl.postInit(AbstractEntityManagerImpl.java:178)null
    org
    .hibernate.ejb.EntityManagerImpl.(EntityManagerImpl.java:89)null
    org
    .hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:179)null
    com
    .ibm.ws.jpa.management.JPAEMPool.getEntityManager(JPAEMPool.java:170)null
    com
    .ibm.ws.jpa.management.JPATxEntityManager.getEMInvocationInfo(JPATxEntityManager.java:259)null
    com
    .ibm.ws.jpa.management.JPATxEntityManager.getEMInvocationInfo(JPATxEntityManager.java:191)null
    com
    .ibm.ws.jpa.management.JPAEntityManager.createQuery(JPAEntityManager.java:299)null
    com
    .kisl.miki.dao.LoginDAOImpl.checkLogin(LoginDAOImpl.java:70)null
    com
    .kisl.miki.action.LoginAction.execute(LoginAction.java:48)null
    sun
    .reflect.NativeMethodAccessorImpl.invoke0(Native Method)null
    sun
    .reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)null
    sun
    .reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)null java.lang.reflect.Method.invoke(Method.java:611)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:453)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:292)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:255)null
    org
    .apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)null
    com
    .opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)null
    com
    .opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)null
    com
    .opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)null
    org
    .apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)null
    com
    .opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)null
    com
    .opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)null
    com
    .opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:236)null
    com
    .opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)null
    com
    .opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:236)null
    com
    .opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)null
    com
    .opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)null
    org
    .apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)null
    org
    .apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:90)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)null
    org
    .apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)null
    com
    .opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)null
    com
    .opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)null
    com
    .opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)null
    com
    .opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)null
    com
    .opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)null
    com
    .opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)null
    org
    .apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)null
    com
    .opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:192)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)null
    com
    .opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)null
    com
    .opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)null
    org
    .apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)null
    org
    .apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:511)null
    org
    .apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)null
    org
    .apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)null
    com
    .ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)null 
    com
    .ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)null
    com
    .ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:928)null
    com
    .ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1025)null
    com
    .ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3761)null
    com
    .ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)null
    com
    .ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:976)null
    com
    .ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)null
    com
    .ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)null
    com
    .ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:459)null
    com
    .ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:526)null
    com
    .ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:312)null
    com
    .ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)null
    com
    .ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)null
    com
    .ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)null
    com
    .ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)null
    com
    .ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)null
    com
    .ibm.io.async.ResultHandler.complete(ResultHandler.java:204)null
    com
    .ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)null
    com
    .ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)null
    com
    .ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1862)null


    the following is the persistence.xml





    org.hibernate.ejb.HibernatePersistence









     

    Please help to solve the issue... Thanks in advance.



    "


  • 2.  Null Pointer Exception in Websphere 8.5.5 using struts2, JPA2.0 with Hibernate as persistence provid

    Posted Sun July 28, 2013 07:22 AM
    Hi Shaik,

      any ffdc log? can you put complet null pointer expection log with error codes?

      Thanks.

    regards