错误信息如下:
严重: Servlet.service() for servlet action threw exception
javax.servlet.ServletException: not-null property references a null or transient value: com.jyx.pojo.Merchant.codeTableByGroupP; nested exception is org.hibernate.PropertyValueException: not-null property references a null or transient value: com.jyx.pojo.Merchant.codeTableByGroupP
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Merchant类如下:
public class Merchant implements java.io.Serializable {
private String merchantId;
private CodeTable codeTableByGroupP;
private CodeTable codeTableByCodeC;
private MerchantMain merchantMain;
private CodeTable codeTableByGroupC;
private String merchantName;
private String logoPath;
private String address;
private String discription;
private String phone;
private Integer consumption;
private Integer sale;
private String saleExplain;
private Date saleStartDate;
private Date saleEndDate;
private String characteristic;
private String busRoutes;
public Merchant() {
}
public Merchant(CodeTable codeTableByGroupP, CodeTable codeTableByCodeC,
MerchantMain merchantMain, CodeTable codeTableByGroupC) {
this.codeTableByGroupP = codeTableByGroupP;
this.codeTableByCodeC = codeTableByCodeC;
this.merchantMain = merchantMain;
this.codeTableByGroupC = codeTableByGroupC;
}
public Merchant(CodeTable codeTableByGroupP, CodeTable codeTableByCodeC,
MerchantMain merchantMain, CodeTable codeTableByGroupC,
String merchantName, String logoPath, String address,
String discription, String phone, Integer consumption,
Integer sale, String saleExplain, Date saleStartDate,
Date saleEndDate, String characteristic, String busRoutes) {