Guest User

Untitled

a guest
Nov 14th, 2014
164
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:102)
  2. org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
  3. org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:64)
  4. org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2345)
  5. org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2852)
  6. org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:71)
  7. org.hibernate.engine.ActionQueue.execute(ActionQueue.java:273)
  8. org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:320)
  9. org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:203)
  10. org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:129)
  11. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210)
  12. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195)
  13. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:117)
  14. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
  15. org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:685)
  16. org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:677)
  17. org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:673)
  18. org.openmrs.api.db.hibernate.HibernateEncounterDAO.saveEncounterType(HibernateEncounterDAO.java:165)
  19. org.openmrs.api.impl.EncounterServiceImpl.saveEncounterType(EncounterServiceImpl.java:463)
  20. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  21. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  22. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  23. java.lang.reflect.Method.invoke(Method.java:606)
  24. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  25. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  26. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  27. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
  28. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
  29. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
  30. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  31. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
  32. com.sun.proxy.$Proxy137.saveEncounterType(Unknown Source)
  33. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  34. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  35. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  36. java.lang.reflect.Method.invoke(Method.java:606)
  37. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  38. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  39. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  40. org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:125)
  41. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  42. org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
  43. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  44. org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
  45. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  46. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
  47. com.sun.proxy.$Proxy138.saveEncounterType(Unknown Source)
  48. org.openmrs.web.controller.encounter.EncounterTypeFormController.onSubmit(EncounterTypeFormController.java:86)
  49. org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:272)
  50. org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:268)
  51. org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
  52. org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
  53. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
  54. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
  55. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
  56. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:855)
  57. javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
  58. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
  59. javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
  60. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
  61. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  62. org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:65)
  63. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  64. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  65. org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:76)
  66. org.openmrs.module.xforms.web.XformsFilter.doFilter(XformsFilter.java:60)
  67. org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:74)
  68. org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:58)
  69. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  70. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  71. org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:113)
  72. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  73. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  74. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  75. org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:230)
  76. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  77. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  78. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  79. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:109)
  80. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  81. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  82. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:109)
  83. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  84. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  85. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:109)
  86. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  87. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  88. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  89. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  90. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  91. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  92. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
  93. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
  94. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
  95. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
  96. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
  97. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
  98. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
  99. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
  100. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
  101. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
  102. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
  103. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  104. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  105. java.lang.Thread.run(Thread.java:745)
  106. org.openmrs.api.APIException: A user context must first be passed to setUserContext()...use Context.openSession() (and closeSession() to prevent memory leaks!) before using the API at org.openmrs.api.context.Context.getUserContext(Context.java:249) at org.openmrs.api.context.Context.getAuthenticatedUser(Context.java:648) at org.openmrs.aop.AuthorizationAdvice.before(AuthorizationAdvice.java:55) at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy146.getGlobalProperty(Unknown Source) at org.apache.jsp.WEB_002dINF.view.uncaughtException_jsp._jspService(uncaughtException_jsp.java:527) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:473) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329) at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238) at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:263) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1208) at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:992) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:939) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:855) at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:230) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:473) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:453) at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:399) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:191) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)
RAW Paste Data