• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting MappingException:

 
Priya Joshi
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i am using hibernate configuration
i am getting following exception when i run my application..

here i am giving full stack trace:

org.hibernate.MappingException: Unknown entity: org.hibernate.impl.SessionImpl
org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:550)
org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1338)
org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180)
org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:512)
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:80)
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:495)
com.wissen.blog.backend.service.impl.NewBlogServiceImpl.createBlogByName(NewBlogServiceImpl.java:42)
com.wissen.blog.backend.facade.impl.NewBlogFacadeImpl.authenticateBlogUrl(NewBlogFacadeImpl.java:57)
com.wissen.blog.managedbeans.NewBlogMB.newblog(NewBlogMB.java:33)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
javax.faces.component.UICommand.broadcast(UICommand.java:312)
javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)



Please help me..
urgent...

thanks
 
Onkar Joshi
Ranch Hand
Posts: 116
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your problem is likely to be here. It is probably due to incorrect usage of the Hibernate API in NewBlogServiceImpl.java or NewBlogMB.java.

com.wissen.blog.backend.service.impl.NewBlogServiceImpl.createBlogByName(NewBlogServiceImpl.java:42)
com.wissen.blog.backend.facade.impl.NewBlogFacadeImpl.authenticateBlogUrl(NewBlogFacadeImpl.java:57)
com.wissen.blog.managedbeans.NewBlogMB.newblog(NewBlogMB.java:33)
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What (object) are you passing to the saveorupdate method?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic