Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.openmrs.Concept.names, no session or session was closed
- at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:383)
- at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:375)
- at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:368)
- at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:111)
- at org.hibernate.collection.PersistentSet.iterator(PersistentSet.java:186)
- at org.openmrs.Concept.getNames(Concept.java:1090)
- at org.openmrs.Concept.getNames(Concept.java:1074)
- at org.openmrs.Concept.getName(Concept.java:529)
- at org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs1_8.ConceptResource1_8.getDisplayName(ConceptResource1_8.java:393)
- at sun.reflect.GeneratedMethodAccessor1062.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:606)
- at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.getProperty(BaseDelegatingResource.java:688)
- at org.openmrs.module.webservices.rest.web.resource.impl.DelegatingResourceDescription$Property.evaluate(DelegatingResourceDescription.java:245)
- at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingConverter.convertDelegateToRepresentation(BaseDelegatingConverter.java:143)
- at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.asRepresentation(BaseDelegatingResource.java:316)
- at org.openmrs.module.webservices.rest.web.ConversionUtil.convertToRepresentation(ConversionUtil.java:400)
- at org.openmrs.module.webservices.rest.web.ConversionUtil.convertToRepresentation(ConversionUtil.java:373)
- at org.openmrs.module.webservices.rest.web.resource.impl.DelegatingResourceDescription$Property.evaluate(DelegatingResourceDescription.java:252)
- at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingConverter.convertDelegateToRepresentation(BaseDelegatingConverter.java:143)
- at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.asRepresentation(BaseDelegatingResource.java:316)
- at org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs1_9.ObsResource1_9Test.asRepresentation_shouldReturnProperlyEncodedValues(ObsResource1_9Test.java:133)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:606)
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
- at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
- at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
- at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
- at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
- at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
- at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
- at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
- at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
- at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
- at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
- at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
- at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
- at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
- 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
- asRepresentation_shouldReturnProperlyEncodedValues(org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs1_9.ObsResource1_9Test) Time elapsed: 0.249 sec <<< ERROR!
- org.openmrs.module.webservices.rest.web.response.ConversionException: converting class org.openmrs.Concept to org.openmrs.module.webservices.rest.web.representation.DefaultRepresentation@31f83015
- at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:383)
- at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:375)
- at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:368)
- at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:111)
- at org.hibernate.collection.PersistentSet.iterator(PersistentSet.java:186)
- at org.openmrs.Concept.getNames(Concept.java:1090)
- at org.openmrs.Concept.getNames(Concept.java:1074)
- at org.openmrs.Concept.getName(Concept.java:529)
- at org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs1_8.ConceptResource1_8.getDisplayName(ConceptResource1_8.java:393)
- at sun.reflect.GeneratedMethodAccessor1062.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:606)
- at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.getProperty(BaseDelegatingResource.java:688)
- at org.openmrs.module.webservices.rest.web.resource.impl.DelegatingResourceDescription$Property.evaluate(DelegatingResourceDescription.java:245)
- at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingConverter.convertDelegateToRepresentation(BaseDelegatingConverter.java:143)
- at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.asRepresentation(BaseDelegatingResource.java:316)
- at org.openmrs.module.webservices.rest.web.ConversionUtil.convertToRepresentation(ConversionUtil.java:400)
- at org.openmrs.module.webservices.rest.web.ConversionUtil.convertToRepresentation(ConversionUtil.java:373)
- at org.openmrs.module.webservices.rest.web.resource.impl.DelegatingResourceDescription$Property.evaluate(DelegatingResourceDescription.java:252)
- at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingConverter.convertDelegateToRepresentation(BaseDelegatingConverter.java:143)
- at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.asRepresentation(BaseDelegatingResource.java:316)
- 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