Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Struts and Hibernate: Error retrieving records from the DB

records hibernate

  • Please log in to reply
3 replies to this topic

#1 :-[yc]-:

:-[yc]-:

    CC Newcomer

  • Just Joined
  • PipPip
  • 18 posts

Posted 15 May 2007 - 06:08 PM

Hi everyone, currently I'm doing a project on Netbeans using Struts and Hibernate. I have a page displaying a table from which the records are retrieve from the DB. I do not know what is wrong with my codes but i keep having this error that i can't solve. Below is the error that i encounter:

ERROR - Servlet.service() for servlet action threw exception
java.lang.NullPointerException
at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:286)
at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:350)
at org.apache.struts.chain.commands.CreateActionForm.execute(CreateActionForm.java:89)
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:48)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:280)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:446)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)


  • 0

#2 :-[yc]-:

:-[yc]-:

    CC Newcomer

  • Just Joined
  • PipPip
  • 18 posts

Posted 16 May 2007 - 01:11 AM

I found out the error and it's solved. Thank you.
  • 0

#3 Guest_artabro_*

Guest_artabro_*
  • Guest

Posted 17 May 2007 - 02:04 AM

And what's was your error? I have the same error and I can't resolved it
  • 0

#4 :-[yc]-:

:-[yc]-:

    CC Newcomer

  • Just Joined
  • PipPip
  • 18 posts

Posted 17 May 2007 - 09:45 AM

I realised in my struts.config.xml I type the wrong path for my form bean. After I changed to the correct path, I solved that error. :)
  • 0





Also tagged with one or more of these keywords: records, hibernate

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download