• Post Reply Bookmark Topic Watch Topic
  • New Topic

JEE CRUD Application  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to save a record to the database, no success.

My Entity Class


My Auto generated model classes: StudentFacade


Interface: StudentFacadeLocal


AbstractFacade


On Save, i get this error:

Warning:   StandardWrapperValve[StudentServlet]: Servlet.service() for servlet StudentServlet threw exception
javax.ejb.EJBException
at com.sun.ejb.containers.EJBContainerTransactionManager.processSystemException(EJBContainerTransactionManager.java:752)
at com.sun.ejb.containers.EJBContainerTransactionManager.completeNewTx(EJBContainerTransactionManager.java:702)
.......
t com.sun.proxy.$Proxy461.create(Unknown Source)
at controller.StudentServlet.processRequest(StudentServlet.java:63)
at controller.StudentServlet.doPost(StudentServlet.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:706)
.........
Caused by: java.lang.annotation.AnnotationFormatError: Duplicate annotation for class: interface javax.validation.constraints.NotNull: @javax.validation.constraints.NotNull(message={javax.validation.constraints.NotNull.message}, groups=[], payload=[])
at sun.reflect.annotation.TypeAnnotationParser.mapTypeAnnotations(TypeAnnotationParser.java:360)
 
Saloon Keeper
Posts: 1929
239
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does StudentServlet look like, and what data is being pass to it?
 
Fridah Kamau
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Ron McLeod,
Thanks for offering your help. I have managed to correct the problem by creating a GlassFish object and having the correct configurations.
 
money grubbing section goes here:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!