Quantcast

org.hibernate.MappingException : Unknown Entity?

classic Classic list List threaded Threaded
6 messages Options
muralidharn muralidharn
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

org.hibernate.MappingException : Unknown Entity?

hey folks, This is weird but, i get this error while trying to insert or access the table through hibernate. Thing is.. i was able to insert properly in the beginning when i developed it. after a while i get this kind of error where i cant insert nor can i access the table rows. I have observed that sometimes it mapps and sometimes it doesnt(random way). Is there some property i need to set? or something like that? PS: when i clean my project in Myeclipse it works sometimes and sometimes it doesnt. I didnt make any syntactical error .. i was able to run it . i can access at random times. another weird thing is that i have three other tables that i am able to access with ease and had no problem what so ever in access or update.

1.
<?xml version="1.0"?> 
   2. &lt;!DOCTYPE hibernate-mapping PUBLIC 
   3.     &quot;-//Hibernate/Hibernate Mapping DTD 3.0//EN&quot; 
   4.     &quot;http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd&quot; &gt;
   5.   
   6. <hibernate-mapping package="org.openmrs.module.smstypes"> 
   7.   
   8. <class name="SmsTypes" table="sms_types"> 
   9.     <id name="id" type="int" column="id"> 
  10.         <generator class="increment" /> 
  11.     </id> 
  12.   
  13.     <property name="smsType" type="java.lang.String" column="smstype"   
  14.         not-null="true"/> 
  15.   
  16.     <property name="sms" type="java.lang.String" column="sms"   
  17.         not-null="true"/> 
  18.   
  19.     <property name="disabled" type="java.lang.Integer" column="disabled" not-null="false" /> 
  20.   
  21.     </class> 
  22. </hibernate-mapping> 

  23.   

24. 25.

  26. package org.openmrs.module.smstypes;
  27.  
  28. public class SmsTypes {  
  29. public int id;  
  30. public String smsType;
  31.  public String sms;  
  32. public int disabled;
  33.  
  34.  public void setId(int id)
  35.  {
  36.      this.id=id;
  37.  }
  38.  public void setSmsType(String smsType)
  39.  {
  40.      this.smsType=smsType;
  41.  
  42.  } public void setSms(String sms)
  43.  {
  44.      this.sms=sms;
  45.  }
  46.  public void setDisabled(int disabled)
  47.  {
  48.      this.disabled = disabled;
  49.  }
  50.  public int getId()
  51.  {
  52.      return id;
  53.  }
  54.  public String getSmsType()
  55.  {
  56.      return smsType;
  57.  }
  58.  public String getSms()
  59.  {
  60.      return sms;
  61.  }
  62.  public int getDisabled()
  63.  {
  64.      return disabled;
  65.  
  66.  }
  67.  
  68. }


and the stack trace :

1. An Internal Error has Occurred  
   2. org.hibernate.MappingException  
   3.  
   4. Unknown entity: org.openmrs.module.smstypes.SmsTypes  
   5.  
   6.  
   7.  
   8. Consult the help document.  
   9. Contact your friendly neighborhood administrator if it cannot be resolved.  
  10.  
  11. Hide stack trace  
  12. org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:550)  
  13. org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1338)  
  14. org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:98)  
  15. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)  
  16. org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)  
  17. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)  
  18. org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)  
  19. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)  
  20. org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535)  
  21. org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)  
  22. org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)  
  23. org.openmrs.module.smstypes.db.hibernate.HibernateSmsTypeDAO.saveRow(HibernateSmsTypeDAO.java:111)  
  24. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
  25. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
  26. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
  27. java.lang.reflect.Method.invoke(Unknown Source)  
  28. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)  
  29. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)  
  30. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)  
  31. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)  
  32. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)  
  33. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)  
  34. $Proxy1828.saveRow(Unknown Source)  
  35. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
  36. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
  37. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
  38. java.lang.reflect.Method.invoke(Unknown Source)  
  39. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)  
  40. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)  
  41. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)  
  42. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)  
  43. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)  
  44. org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)  
  45. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)  
  46. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)  
  47. $Proxy1829.saveRow(Unknown Source)  
  48. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
  49. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
  50. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
  51. java.lang.reflect.Method.invoke(Unknown Source)  
  52. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)  
  53. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)  
  54. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)  
  55. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)  
  56. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)  
  57. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)  
  58. $Proxy1829.saveRow(Unknown Source)  
  59. org.openmrs.module.smstypes.web.controller.SmsTypeModuleFormController.onSubmit(SmsTypeModuleFormController.java:91)  
  60. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
  61. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
  62. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
  63. java.lang.reflect.Method.invoke(Unknown Source)  
  64. org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:174)  
  65. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:421)  
  66. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:409)  
  67. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)  
  68. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)  
  69. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)  
  70. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)  
  71. javax.servlet.http.HttpServlet.service(HttpServlet.java:637)  
  72. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)  
  73. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)  
  74. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
  75. org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:65)  
  76. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)  
  77. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
  78. org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:76)  
  79. org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:58)  
  80. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)  
  81. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
  82. org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:112)  
  83. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)  
  84. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)  
  85. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
  86. org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)  
  87. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)  
  88. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)  
  89. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
  90. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:83)  
  91. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)  
  92. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
  93. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:83)  
  94. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)  
  95. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
  96. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:83)  
  97. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)  
  98. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
  99. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)  
 100. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)  
 101. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)  
 102. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
 103. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)  
 104. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)  
 105. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)  
 106. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)  
 107. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)  
 108. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)  
 109. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)  
 110. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)  
 111. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)  
 112. java.lang.Thread.run(Unknown Source)  
.  

been trying to figure this out since past 8 days..
Ben Wolfe (openmrs) Ben Wolfe (openmrs)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: org.hibernate.MappingException : Unknown Entity?

Is the omod getting built properly?  When it is failing, unzip the omod and see if all of the right files are in there.  Does the config.xml list off the *.hbm.xml files that you need?

Are you using a mavenized module with a pom.xml or an old ant-style module with a build.xml?

Ben

On Mon, Mar 14, 2011 at 7:55 AM, muralidharn <[hidden email]> wrote:
hey folks, This is weird but, i get this error while trying to insert or
access the table through hibernate. Thing is.. i was able to insert properly
in the beginning when i developed it. after a while i get this kind of error
where i cant insert nor can i access the table rows. I have observed that
sometimes it mapps and sometimes it doesnt(random way). Is there some
property i need to set? or something like that? PS: when i clean my project
in Myeclipse it works sometimes and sometimes it doesnt. I didnt make any
syntactical error .. i was able to run it . i can access at random times.
another weird thing is that i have three other tables that i am able to
access with ease and had no problem what so ever in access or update.

1.
<?xml version="1.0"?>
  2. &lt;!DOCTYPE hibernate-mapping PUBLIC
  3.     &quot;-//Hibernate/Hibernate Mapping DTD 3.0//EN&quot;
  4.
&quot;http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd&quot; &gt;
  5.
  6.
  7.
  8.
  9.
 10.
 11.
 12.
 13.
 15.
 16.
 18.
 19.
 20.
 21.
 22.

 23.


24. 25.

 26. package org.openmrs.module.smstypes;
 27.
 28. public class SmsTypes {
 29. public int id;
 30. public String smsType;
 31.  public String sms;
 32. public int disabled;
 33.
 34.  public void setId(int id)
 35.  {
 36.      this.id=id;
 37.  }
 38.  public void setSmsType(String smsType)
 39.  {
 40.      this.smsType=smsType;
 41.
 42.  } public void setSms(String sms)
 43.  {
 44.      this.sms=sms;
 45.  }
 46.  public void setDisabled(int disabled)
 47.  {
 48.      this.disabled = disabled;
 49.  }
 50.  public int getId()
 51.  {
 52.      return id;
 53.  }
 54.  public String getSmsType()
 55.  {
 56.      return smsType;
 57.  }
 58.  public String getSms()
 59.  {
 60.      return sms;
 61.  }
 62.  public int getDisabled()
 63.  {
 64.      return disabled;
 65.
 66.  }
 67.
 68. }


and the stack trace :

1. An Internal Error has Occurred
  2. org.hibernate.MappingException
  3.
  4. Unknown entity: org.openmrs.module.smstypes.SmsTypes
  5.
  6.
  7.
  8. Consult the help document.
  9. Contact your friendly neighborhood administrator if it cannot be
resolved.
 10.
 11. Hide stack trace
 12.
org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:550)
 13.
org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1338)
 14.
org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:98)
 15.
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
 16.
org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
 17.
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
 18.
org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
 19.
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
 20. org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535)
 21. org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
 22. org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
 23.
org.openmrs.module.smstypes.db.hibernate.HibernateSmsTypeDAO.saveRow(HibernateSmsTypeDAO.java:111)
 24. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 25. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 26. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 27. java.lang.reflect.Method.invoke(Unknown Source)
 28.
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
 29.
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
 30.
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
 31.
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
 32.
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
 33.
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
 34. $Proxy1828.saveRow(Unknown Source)
 35. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 36. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 37. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 38. java.lang.reflect.Method.invoke(Unknown Source)
 39.
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
 40.
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
 41.
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
 42.
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
 43.
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
 44.
org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
 45.
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
 46.
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
 47. $Proxy1829.saveRow(Unknown Source)
 48. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 49. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 50. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 51. java.lang.reflect.Method.invoke(Unknown Source)
 52.
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
 53.
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
 54.
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
 55.
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
 56.
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
 57.
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
 58. $Proxy1829.saveRow(Unknown Source)
 59.
org.openmrs.module.smstypes.web.controller.SmsTypeModuleFormController.onSubmit(SmsTypeModuleFormController.java:91)
 60. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 61. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 62. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 63. java.lang.reflect.Method.invoke(Unknown Source)
 64.
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:174)
 65.
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:421)
 66.
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:409)
 67.
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)
 68.
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
 69.
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
 70.
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
 71. javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
 72. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 73.
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 74.
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 75.
org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:65)
 76.
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 77.
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 78.
org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:76)
 79.
org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:58)
 80.
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 81.
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 82.
org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:112)
 83.
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
 84.
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 85.
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 86.
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
 87.
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
 88.
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 89.
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 90. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:83)
 91.
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 92.
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 93. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:83)
 94.
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 95.
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 96. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:83)
 97.
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 98.
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 99.
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
 100.
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
 101.
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 102.
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 103.
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 104.
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 105.
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 106.
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 107.
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 108.
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
 109.
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
 110.
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
 111.
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
 112. java.lang.Thread.run(Unknown Source)
.

been trying to figure this out since past 8 days..

--
View this message in context: http://openmrs-mailing-list-archives.1560443.n2.nabble.com/org-hibernate-MappingException-Unknown-Entity-tp6168742p6168742.html
Sent from the Developers mailing list archive at Nabble.com.

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to [hidden email] with "SIGNOFF openmrs-devel-l" in the  body (not the subject) of your e-mail.

[mailto:[hidden email]?body=SIGNOFF%20openmrs-devel-l]


[hidden email] from OpenMRS Developers' mailing list
muralidharn muralidharn
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: org.hibernate.MappingException : Unknown Entity?

Yes sir it is getting built properly. the config.xml is listing all the *.hbm.xml files . i am using old ant-style module with build.xml.
Ben Wolfe (openmrs) Ben Wolfe (openmrs)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: org.hibernate.MappingException : Unknown Entity?

If it was working before, you'll have to compare what you used to have with what you currently do.  Are you using svn or some other version control?  If so, it should be easy to do.

Not sure why it would be failing randomly.  How are you loading the module?  Are you doing anything different as far as building or compiling when it does fail?  How do you get it to work again?

Check the error logs before/after the failure.  Perhaps there is a different error that is actually happening to something else.  If you can, attach the full error log from that startup and we can review it.

Ben

On Tue, Mar 15, 2011 at 1:33 AM, muralidharn <[hidden email]> wrote:
Yes sir it is getting built properly. the config.xml is listing all the
*.hbm.xml files . i am using old ant-style module with build.xml.

--
View this message in context: http://openmrs-mailing-list-archives.1560443.n2.nabble.com/org-hibernate-MappingException-Unknown-Entity-tp6168742p6171696.html
Sent from the Developers mailing list archive at Nabble.com.

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to [hidden email] with "SIGNOFF openmrs-devel-l" in the  body (not the subject) of your e-mail.

[mailto:[hidden email]?body=SIGNOFF%20openmrs-devel-l]


[hidden email] from OpenMRS Developers' mailing list
muralidharn muralidharn
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: org.hibernate.MappingException : Unknown Entity?

Sir,
    The sms_types table is a part of a module with others tables too. usually i compile through ant-style build.xml. then add the omod file to the openmrs.
    i didnt change anything that regards to the sms_types table, i change only some part of code which regards to other table(POJOs).  i dont get any error while compile or adding omod file. sometimes i am able to access this table and sometimes i am not. by access i mean, i am displaying  a column from that table(the combobox shows empty). When i try to add a row through the jsp into it, it shows org.hibernate.MappingException : Unknown Entity(where i am accessing the table to add a new row.)

    i have posted the stack trace in the previous post.
Ben Wolfe (openmrs) Ben Wolfe (openmrs)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: org.hibernate.MappingException : Unknown Entity?

So module startup is never an issue? 

Get the full tomcat/jetty error log and attach it here.  There might be other stacktraces before/after that one that are more helpful or point to the actual cause of the issue.

Ben

On Tue, Mar 15, 2011 at 11:35 AM, muralidharn <[hidden email]> wrote:
Sir,
   The sms_types table is a part of a module with others tables too.
usually i compile through ant-style build.xml. then add the omod file to the
openmrs.
   i didnt change anything that regards to the sms_types table, i change
only some part of code which regards to other table(POJOs).  i dont get any
error while compile or adding omod file. sometimes i am able to access this
table and sometimes i am not. by access i mean, i am displaying  a column
from that table(the combobox shows empty). When i try to add a row through
the jsp into it, it shows org.hibernate.MappingException : Unknown
Entity(where i am accessing the table to add a new row.)

   i have posted the stack trace in the previous post.

--
View this message in context: http://openmrs-mailing-list-archives.1560443.n2.nabble.com/org-hibernate-MappingException-Unknown-Entity-tp6168742p6173216.html
Sent from the Developers mailing list archive at Nabble.com.

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to [hidden email] with "SIGNOFF openmrs-devel-l" in the  body (not the subject) of your e-mail.

[mailto:[hidden email]?body=SIGNOFF%20openmrs-devel-l]


[hidden email] from OpenMRS Developers' mailing list
Loading...