Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.NullPointerException

 
sarvan kumar
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Iam using eclipse 3.5 and jboss 5.0.1.GA and running a application
It is working fine in jboss 4.0 and in 5.0.1 it shows
java.lang.NullPointerException error in log file when iam loging in can you give the solution for this problem
Thanks,
K.Saravanan
 
uttam kumar
Ranch Hand
Posts: 128
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please elaborate. What kind of application you are deploying? and post the entire error log.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sarvan,

You have been in the forums long enough to know how to ask for help, haven't you? Do you really expect others to guess what the problem is based on the one liner NullPointerException problem statement? Questions like these usually get neglected because not many will have the patience or time to ask you for more information. While asking questions, make it a point that you provide enough relevant information so that someone can help.

In this case, post the entire exception stacktrace. Tell us where this exception occurs, Eclipse or JBoss AS? Provide more details about your application.
 
sarvan kumar
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Here is the complete log file

18 Dec 2010 11:31:52,002 INFO LoginAction:83 - LoginAction >> UserName 'admin' Password 'admin'
18 Dec 2010 11:31:52,002 INFO BusinessLayer:65 - ManageUser >> LoginBL >> convertDTOToBO starts
18 Dec 2010 11:31:52,002 INFO BusinessLayer:73 - ManageUser >> LoginBL >> convertDTOToBO ends
18 Dec 2010 11:31:52,002 INFO STDOUT:156 - In DAO Layercom.visiontss.accuquote.dao.hb.LoginHBDAO
18 Dec 2010 11:31:52,002 ERROR BusinessLayer:126 - LoginBL Checking User Existnull
18 Dec 2010 11:31:52,002 ERROR STDERR:156 - java.lang.NullPointerException
18 Dec 2010 11:31:52,002 ERROR STDERR:156 - at com.visiontss.accuquote.dao.DataAccessObject.getDAO(DataAccessObject.java:48)
18 Dec 2010 11:31:52,002 ERROR STDERR:156 - at com.visiontss.accuquote.bo.BusinessObject.getDao(BusinessObject.java:36)
18 Dec 2010 11:31:52,002 ERROR STDERR:156 - at com.visiontss.accuquote.bo.BusinessObject.read(BusinessObject.java:47)
18 Dec 2010 11:31:52,002 ERROR STDERR:156 - at com.visiontss.accuquote.bo.Login.isUserExist(Login.java:336)
18 Dec 2010 11:31:52,002 ERROR STDERR:156 - at com.visiontss.accuquote.bl.LoginBL.isUserExist(LoginBL.java:114)
18 Dec 2010 11:31:52,002 ERROR STDERR:156 - at com.visiontss.accuquote.facade.LoginFacadeBean.isUserExist(LoginFacadeBean.java:69)
18 Dec 2010 11:31:52,002 ERROR STDERR:156 - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18 Dec 2010 11:31:52,002 ERROR STDERR:156 - at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
18 Dec 2010 11:31:52,002 ERROR STDERR:156 - at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
18 Dec 2010 11:31:52,002 ERROR STDERR:156 - at java.lang.reflect.Method.invoke(Unknown Source)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:228)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:173)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:228)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:97)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java:81)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.ejb.Container.invoke(Container.java:1029)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at java.lang.reflect.Method.invoke(Unknown Source)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at $Proxy134.isUserExist(Unknown Source)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at com.visiontss.accuquote.action.LoginAction.execute(LoginAction.java:90)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
18 Dec 2010 11:31:52,033 ERROR STDERR:156 - at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
18 Dec 2010 11:31:52,049 ERROR STDERR:156 - at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
18 Dec 2010 11:31:52,049 ERROR STDERR:156 - at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
18 Dec 2010 11:31:52,049 ERROR STDERR:156 - at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
18 Dec 2010 11:31:52,049 ERROR STDERR:156 - at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
18 Dec 2010 11:31:52,049 ERROR STDERR:156 - at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
18 Dec 2010 11:31:52,049 ERROR STDERR:156 - at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
18 Dec 2010 11:31:52,049 ERROR STDERR:156 - at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
18 Dec 2010 11:31:52,049 ERROR STDERR:156 - at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
18 Dec 2010 11:31:52,049 ERROR STDERR:156 - at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
18 Dec 2010 11:31:52,049 ERROR STDERR:156 - at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
18 Dec 2010 11:31:52,049 ERROR STDERR:156 - at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
18 Dec 2010 11:31:52,049 ERROR STDERR:156 - at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
18 Dec 2010 11:31:52,049 ERROR STDERR:156 - at java.lang.Thread.run(Unknown Source)

Thanks,
K.Saravanan
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
18 Dec 2010 11:31:52,002 ERROR STDERR:156 - java.lang.NullPointerException
18 Dec 2010 11:31:52,002 ERROR STDERR:156 - at com.visiontss.accuquote.dao.DataAccessObject.getDAO(DataAccessObject.java:48)


That NullPointerException is coming from some user specific code and not JBoss AS code. You'll have to check what is null and why it is null in that code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic