• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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)
 
Bartender
Posts: 2075
276
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!