wood burning stoves 2.0*
The moose likes JDBC and the fly likes problem while running application struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "problem while running application struts" Watch "problem while running application struts" New topic
Author

problem while running application struts

Sakshi Bhatnagar
Greenhorn

Joined: Feb 06, 2013
Posts: 2
hi
I have developed a project using struts and evrything worked fine except one exception.I am not understanding the meaning of the exception.Kindly tell me what is the problem with my code.
here is the exception I am getting:

java.lang.NullPointerException: replacement
at java.util.regex.Matcher.replaceFirst(Matcher.java:949)
at java.lang.String.replaceFirst(String.java:2167)
at global.utility.HelperClass.populateQuery(HelperClass.java:24)
at global.utility.listPage.dao.ListPageDAO.getListPageData(ListPageDAO.java:54)
at global.utility.listPage.delegate.ListPageDelegate.getListPageData(ListPageDelegate.java:24)
at global.utility.listPage.util.ListpageUtil.getListPage(ListpageUtil.java:139)
at global.utility.listPage.action.ListPageACTION.LISTPAGE(ListPageACTION.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:403)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:301)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:162)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
objStatus:::null
T Mishra
Ranch Hand

Joined: Apr 04, 2006
Posts: 108

Its a null pointer exception. Please check the reference / object getting passed into the methods as specified in the package below


Thanks,
Tushar (SCJP 1.5)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem while running application struts
 
Similar Threads
NullPointer Exception in struts java class while inserting values into oracle
prevent multiple submission of forms in struts
The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes
SQL Error suring server startup
sesion.flush();