Guest User

Untitled

a guest
Jan 18th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.33 KB | None | 0 0
  1. ERROR - LazyInitializationException.<init>(42) |2017-01-19 08:41:34,900| failed to lazily initialize a collection of role: org.openmrs.Concept.names, no session or session was closed
  2. org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.openmrs.Concept.names, no session or session was closed
  3. at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:383)
  4. at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:375)
  5. at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:368)
  6. at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:111)
  7. at org.hibernate.collection.PersistentSet.iterator(PersistentSet.java:186)
  8. at org.openmrs.Concept.getNames(Concept.java:1090)
  9. at org.openmrs.Concept.getNames(Concept.java:1074)
  10. at org.openmrs.Concept.getName(Concept.java:529)
  11. at org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs1_8.ConceptResource1_8.getDisplayName(ConceptResource1_8.java:393)
  12. at sun.reflect.GeneratedMethodAccessor1062.invoke(Unknown Source)
  13. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  14. at java.lang.reflect.Method.invoke(Method.java:606)
  15. at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.getProperty(BaseDelegatingResource.java:688)
  16. at org.openmrs.module.webservices.rest.web.resource.impl.DelegatingResourceDescription$Property.evaluate(DelegatingResourceDescription.java:245)
  17. at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingConverter.convertDelegateToRepresentation(BaseDelegatingConverter.java:143)
  18. at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.asRepresentation(BaseDelegatingResource.java:316)
  19. at org.openmrs.module.webservices.rest.web.ConversionUtil.convertToRepresentation(ConversionUtil.java:400)
  20. at org.openmrs.module.webservices.rest.web.ConversionUtil.convertToRepresentation(ConversionUtil.java:373)
  21. at org.openmrs.module.webservices.rest.web.resource.impl.DelegatingResourceDescription$Property.evaluate(DelegatingResourceDescription.java:252)
  22. at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingConverter.convertDelegateToRepresentation(BaseDelegatingConverter.java:143)
  23. at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.asRepresentation(BaseDelegatingResource.java:316)
  24. at org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs1_9.ObsResource1_9Test.asRepresentation_shouldReturnProperlyEncodedValues(ObsResource1_9Test.java:133)
  25. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  26. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  27. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  28. at java.lang.reflect.Method.invoke(Method.java:606)
  29. at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
  30. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  31. at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
  32. at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
  33. at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
  34. at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
  35. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  36. at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
  37. at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
  38. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
  39. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  40. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
  41. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
  42. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
  43. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
  44. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
  45. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  46. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  47. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  48. at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
  49. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
  50. at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
  51. at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
  52. at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
  53. at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
  54. at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
  55. at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
  56. Tests run: 13, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.496 sec <<< FAILURE! - in org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs1_9.ObsResource1_9Test
  57. asRepresentation_shouldReturnProperlyEncodedValues(org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs1_9.ObsResource1_9Test) Time elapsed: 0.249 sec <<< ERROR!
  58. org.openmrs.module.webservices.rest.web.response.ConversionException: converting class org.openmrs.Concept to org.openmrs.module.webservices.rest.web.representation.DefaultRepresentation@31f83015
  59. at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:383)
  60. at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:375)
  61. at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:368)
  62. at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:111)
  63. at org.hibernate.collection.PersistentSet.iterator(PersistentSet.java:186)
  64. at org.openmrs.Concept.getNames(Concept.java:1090)
  65. at org.openmrs.Concept.getNames(Concept.java:1074)
  66. at org.openmrs.Concept.getName(Concept.java:529)
  67. at org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs1_8.ConceptResource1_8.getDisplayName(ConceptResource1_8.java:393)
  68. at sun.reflect.GeneratedMethodAccessor1062.invoke(Unknown Source)
  69. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  70. at java.lang.reflect.Method.invoke(Method.java:606)
  71. at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.getProperty(BaseDelegatingResource.java:688)
  72. at org.openmrs.module.webservices.rest.web.resource.impl.DelegatingResourceDescription$Property.evaluate(DelegatingResourceDescription.java:245)
  73. at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingConverter.convertDelegateToRepresentation(BaseDelegatingConverter.java:143)
  74. at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.asRepresentation(BaseDelegatingResource.java:316)
  75. at org.openmrs.module.webservices.rest.web.ConversionUtil.convertToRepresentation(ConversionUtil.java:400)
  76. at org.openmrs.module.webservices.rest.web.ConversionUtil.convertToRepresentation(ConversionUtil.java:373)
  77. at org.openmrs.module.webservices.rest.web.resource.impl.DelegatingResourceDescription$Property.evaluate(DelegatingResourceDescription.java:252)
  78. at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingConverter.convertDelegateToRepresentation(BaseDelegatingConverter.java:143)
  79. at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.asRepresentation(BaseDelegatingResource.java:316)
  80. at org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs1_9.ObsResource1_9Test.asRepresentation_shouldReturnProperlyEncodedValues(ObsResource1_9Test.java:133)
Add Comment
Please, Sign In to add comment