• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Bear Bibeault
  • paul wheaton
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Mikalai Zaikin
  • Piet Souris
Bartenders:

JEE CRUD Application

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Marshal
Posts: 4351
559
VSCode Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Fridah Kamau wrote:@Ron McLeod,
Thanks for offering your help. I have managed to correct the problem by creating a GlassFish object and having the correct configurations.




good morning, how could you solve the problem? ... could you share the solution? ... I have the same problem, and still can't find the request.
thanks for your answer.
 
These are the worst of times and these are the best of times. And this is the best tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic