日期:2014-05-18  浏览次数:20690 次

各位高手大家好!帮小妹解决一个的奇怪问题!
我在myeclipse用hibernate和struts开发网站,在别人的机器上可以调试通过,能够写入数据库,但在我这上却不能,错误码如下:
java.lang.NullPointerException
at   com.gjs.hibernate.dao.impl.PartymemberDaoImpl.save(PartymemberDaoImpl.java:25)
at   com.gjs.service.impl.PartymemberServiceImpl.savePartymember(PartymemberServiceImpl.java:13)
at   com.gjs.struts.action.PartymemberAction.add(PartymemberAction.java:57)
at   sun.reflect.NativeMethodAccessorImpl.invoke0(Native   Method)
at   sun.reflect.NativeMethodAccessorImpl.invoke(Unknown   Source)
at   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown   Source)
at   java.lang.reflect.Method.invoke(Unknown   Source)
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.doPost(ActionServlet.java:525)
at   javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at   javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
at   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
at   org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at   org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at   org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at   org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at   org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
at   org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at   org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at   org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at   org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at   org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at   org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at   org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
at   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
at   org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
at   org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
at   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
at   java.lang.Thread.run(Unknown   Source)
请各位好心人帮帮小妹