abdouffff
Messages postés23Date d'inscriptionsamedi 21 janvier 2012StatutMembreDernière intervention 4 mars 2012
-
11 févr. 2012 à 01:07
sisouf007 -
13 mai 2013 à 02:53
Salut,
je suis debutant avec hibernate ma projet pfe avec structs 2 hibernat ma probleme en hibernate la proget et comme suite
.. test
.web page
.source depackage
.....pachagedefaut
.........hibernate.cfg
.........struts.xml
.........hibernate.reveng
.........exemple.xml
.....controlle
.........produitMnager.java
.....modelle
.........Produit.hbm.xml
.........Produit.java
.....view
.........INFORMATIQUECON.java
.....util
.........hibernateUtil.java
.....................................voila le page produitManager
package controller;
public void setIdP(Integer idP) {
this.idP = idP;
}
public String getNom() {
return this.nom;
}
public void setNom(String nom) {
this.nom = nom;
}
public String getDesig() {
return this.desig;
}
public void setDesig(String desig) {
this.desig = desig;
}
public float getPrix() {
return this.prix;
}
public void setPrix(float prix) {
this.prix = prix;
}
public String getImg() {
return this.img;
}
public void setImg(String img) {
this.img = img;
}
public boolean isAff() {
return this.aff;
}
public void setAff(boolean aff) {
this.aff = aff;
}
public String getType() {
return this.type;
}
public void setType(String type) {
this.type = type;
}
public Set getPaniers() {
return this.paniers;
}
public void setPaniers(Set paniers) {
this.paniers = paniers;
}
}
................le page struts exemle.xml et cava et le resule passe a la page suivant mais l'erreure .........................
java.lang.NullPointerException
veiw.INFORMATIQUECON.execute(INFORMATIQUECON.java:58)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:601)
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)..................................................................................quelqu'un qui m'aide s'il vous plait