Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.11 KB | None | 0 0
  1. -------------------------------------------------------
  2. T E S T S
  3. -------------------------------------------------------
  4. Running org.motechproject.vxml.it.IntegrationTests
  5. [INFO] Started jetty 6.1.x at port(s) HTTP:8383
  6. 2014-08-23 15:21:13,547 main ERROR [org.ops4j.pax.exam.nat.internal.NativeTestContainer] Bundle [org.motechproject.vxml [13]] is not resolved
  7. 2014-08-23 15:21:13,548 main ERROR [org.ops4j.pax.exam.nat.internal.NativeTestContainer] Bundle [com.springsource.org.hamcrest [24]] is not resolved
  8. 2014-08-23 15:21:13,548 main ERROR [org.ops4j.pax.exam.nat.internal.NativeTestContainer] Bundle [org.motechproject.motech-platform-event [31]] is not resolved
  9. 2014-08-23 15:21:13,557 main ERROR [org.ops4j.pax.exam.nat.internal.NativeTestContainer] Bundle [org.motechproject.motech-admin [45]] is not resolved
  10. 2014-08-23 15:21:13,558 main ERROR [org.ops4j.pax.exam.nat.internal.NativeTestContainer] Bundle [org.motechproject.motech-scheduler [58]] is not resolved
  11. 2014-08-23 15:21:13,558 main ERROR [org.ops4j.pax.exam.nat.internal.NativeTestContainer] Bundle [org.motechproject.motech-platform-email [75]] is not resolved
  12. 2014-08-23 15:21:13,558 main ERROR [org.ops4j.pax.exam.nat.internal.NativeTestContainer] Bundle [org.motechproject.motech-platform-server-config [84]] is not resolved
  13. 2014-08-23 15:21:13,559 main ERROR [org.ops4j.pax.exam.nat.internal.NativeTestContainer] Bundle [org.motechproject.motech-platform-web-security [122]] is not resolved
  14. 2014-08-23 15:21:13,559 main ERROR [org.ops4j.pax.exam.nat.internal.NativeTestContainer] Bundle [org.motechproject.motech-platform-server-bundle [158]] is not resolved
  15. [INFO] Initializing Spring FrameworkServlet 'servlet_1'
  16. [INFO] Initialized servlet for org.motechproject.motech-platform-osgi-web-util [77]
  17. Aug 23, 2014 3:21:19 PM com.googlecode.flyway.core.metadatatable.MetaDataTableImpl createIfNotExists
  18. INFO: Creating Metadata table: `motech_data_services`.`schema_version`
  19. Aug 23, 2014 3:21:20 PM com.googlecode.flyway.core.command.DbMigrate migrate
  20. INFO: Current version of schema `motech_data_services`: << Empty Schema >>
  21. Aug 23, 2014 3:21:20 PM com.googlecode.flyway.core.command.DbMigrate applyMigration
  22. INFO: Migrating schema `motech_data_services` to version 1
  23. Aug 23, 2014 3:21:20 PM com.googlecode.flyway.core.command.DbMigrate applyMigration
  24. INFO: Migrating schema `motech_data_services` to version 2
  25. Aug 23, 2014 3:21:20 PM com.googlecode.flyway.core.command.DbMigrate applyMigration
  26. INFO: Migrating schema `motech_data_services` to version 3
  27. Aug 23, 2014 3:21:20 PM com.googlecode.flyway.core.command.DbMigrate applyMigration
  28. INFO: Migrating schema `motech_data_services` to version 4
  29. Aug 23, 2014 3:21:20 PM com.googlecode.flyway.core.command.DbMigrate applyMigration
  30. INFO: Migrating schema `motech_data_services` to version 5
  31. Aug 23, 2014 3:21:20 PM com.googlecode.flyway.core.command.DbMigrate applyMigration
  32. INFO: Migrating schema `motech_data_services` to version 6
  33. Aug 23, 2014 3:21:20 PM com.googlecode.flyway.core.command.DbMigrate applyMigration
  34. INFO: Migrating schema `motech_data_services` to version 7
  35. Aug 23, 2014 3:21:20 PM com.googlecode.flyway.core.command.DbMigrate applyMigration
  36. INFO: Migrating schema `motech_data_services` to version 8
  37. Aug 23, 2014 3:21:20 PM com.googlecode.flyway.core.command.DbMigrate applyMigration
  38. INFO: Migrating schema `motech_data_services` to version 9
  39. Aug 23, 2014 3:21:20 PM com.googlecode.flyway.core.command.DbMigrate applyMigration
  40. INFO: Migrating schema `motech_data_services` to version 10
  41. Aug 23, 2014 3:21:20 PM com.googlecode.flyway.core.command.DbMigrate applyMigration
  42. INFO: Migrating schema `motech_data_services` to version 11
  43. Aug 23, 2014 3:21:20 PM com.googlecode.flyway.core.command.DbMigrate applyMigration
  44. INFO: Migrating schema `motech_data_services` to version 12
  45. Aug 23, 2014 3:21:20 PM com.googlecode.flyway.core.command.DbMigrate applyMigration
  46. INFO: Migrating schema `motech_data_services` to version 13
  47. Aug 23, 2014 3:21:20 PM com.googlecode.flyway.core.command.DbMigrate applyMigration
  48. INFO: Migrating schema `motech_data_services` to version 14
  49. Aug 23, 2014 3:21:21 PM com.googlecode.flyway.core.command.DbMigrate applyMigration
  50. INFO: Migrating schema `motech_data_services` to version 15
  51. Aug 23, 2014 3:21:21 PM com.googlecode.flyway.core.command.DbMigrate applyMigration
  52. INFO: Migrating schema `motech_data_services` to version 16
  53. Aug 23, 2014 3:21:21 PM com.googlecode.flyway.core.command.DbMigrate logSummary
  54. INFO: Successfully applied 16 migrations to schema `motech_data_services` (execution time 00:01.221s).
  55. [INFO] Initializing Spring FrameworkServlet 'servlet_3'
  56. [INFO] Initializing Spring FrameworkServlet 'servlet_4'
  57. [INFO] Initialized servlet for org.motechproject.motech-platform-dataservices [130]
  58. [INFO] Initializing Spring FrameworkServlet 'servlet_7'
  59. [INFO] Initialized servlet for org.motechproject.motech-platform-server-bundle [158]
  60. [INFO] Initializing Spring FrameworkServlet 'servlet_9'
  61. [INFO] Initialized servlet for org.motechproject.motech-platform-email [75]
  62. [INFO] Initializing Spring FrameworkServlet 'servlet_10'
  63. 2014-08-23 15:22:11,285 main INFO [org.motechproject.vxml.it.StatusControllerIT] setup
  64. 2014-08-23 15:22:11,305 main INFO [org.motechproject.vxml.it.StatusControllerIT] verifyControllerFunctional
  65. 2014-08-23 15:22:13,595 main INFO [org.motechproject.vxml.it.StatusControllerIT] setup
  66. 2014-08-23 15:22:13,609 main INFO [org.motechproject.vxml.it.StatusControllerIT] shouldNotLogWhenPassedIvalidConfig
  67. 2014-08-23 15:22:13,707 main INFO [org.motechproject.vxml.it.ConfigDataServiceIT] shouldNotCreateDuplicateConfigs
  68. 2014-08-23 15:22:14,164 main INFO [org.motechproject.vxml.it.ConfigDataServiceIT] shouldStoreLongOutgoingCallUriTemplates
  69. 2014-08-23 15:22:14,566 main INFO [org.motechproject.vxml.it.ConfigDataServiceIT] verifyServiceFunctional
  70. 2014-08-23 15:22:15,097 main INFO [org.motechproject.vxml.it.OutboundCallServiceIT] setup()
  71. 2014-08-23 15:22:15,124 main INFO [org.motechproject.vxml.it.OutboundCallServiceIT] shouldHandleInvalidServerResponse()
  72. 2014-08-23 15:22:15,153 main DEBUG [org.motechproject.vxml.it.OutboundCallServiceIT] shouldHandleInvalidServerResponse - We have a server listening at http://localhost:8081/bar
  73. 2014-08-23 15:22:15,162 main DEBUG [org.motechproject.vxml.it.OutboundCallServiceIT] shouldHandleInvalidServerResponse - We create a config Config{name='conf456', ignoredStatusFields='null', outgoingCallUriTemplate='http://localhost:8081/bar', outgoingCallMethod='GET', statusFieldMap='null'}
  74. 2014-08-23 15:22:15,571 main INFO [org.motechproject.vxml.service.impl.OutboundCallServiceImpl] initiateCall(configName = conf456, params = {})
  75. 2014-08-23 15:22:15,584 main INFO [org.motechproject.vxml.service.impl.OutboundCallServiceImpl] generateHttpRequest(config = Config{name='conf456', ignoredStatusFields='[]', outgoingCallUriTemplate='http://localhost:8081/bar', outgoingCallMethod='GET', statusFieldMap='{}'}, params = {motechCallId=4de6aa6f-6040-4661-a506-93c767c7109a})
  76. 2014-08-23 15:22:15,586 main INFO [org.motechproject.vxml.service.impl.OutboundCallServiceImpl] Generated GET http://localhost:8081/bar HTTP/1.1
  77. 2014-08-23 15:22:15,648 main INFO [org.motechproject.vxml.service.impl.OutboundCallServiceImpl] Could not initiate call: HTTP/1.1 400 Bad Request
  78. 2014-08-23 15:22:16,400 main INFO [org.motechproject.vxml.it.OutboundCallServiceIT] setup()
  79. 2014-08-23 15:22:16,425 main INFO [org.motechproject.vxml.it.OutboundCallServiceIT] verifyServiceFunctional()
  80. 2014-08-23 15:22:16,437 main DEBUG [org.motechproject.vxml.it.OutboundCallServiceIT] verifyServiceFunctional - We have a server listening at http://localhost:8082/foo
  81. 2014-08-23 15:22:16,437 main DEBUG [org.motechproject.vxml.it.OutboundCallServiceIT] verifyServiceFunctional - We create a config Config{name='conf123', ignoredStatusFields='null', outgoingCallUriTemplate='http://localhost:8082/foo', outgoingCallMethod='GET', statusFieldMap='null'}
  82. 2014-08-23 15:22:16,816 main INFO [org.motechproject.vxml.service.impl.OutboundCallServiceImpl] initiateCall(configName = conf123, params = {})
  83. 2014-08-23 15:22:16,829 main INFO [org.motechproject.vxml.service.impl.OutboundCallServiceImpl] generateHttpRequest(config = Config{name='conf123', ignoredStatusFields='[]', outgoingCallUriTemplate='http://localhost:8082/foo', outgoingCallMethod='GET', statusFieldMap='{}'}, params = {motechCallId=5e268dfd-f30f-4813-abe1-4f7038fbd68d})
  84. 2014-08-23 15:22:16,830 main INFO [org.motechproject.vxml.service.impl.OutboundCallServiceImpl] Generated GET http://localhost:8082/foo HTTP/1.1
  85. 2014-08-23 15:22:17,646 main DEBUG [org.motechproject.vxml.service.impl.OutboundCallServiceImpl] Sending MotechEvent MotechEvent{id=null, subject='vxml_call_initiated', parameters={to=, timestamp=2014-08-23 15:22:17.6450, provider_extra_data={}, config=conf123}, endTime=null, isLastEvent=false}
  86. 2014-08-23 15:22:17,670 main INFO [org.motechproject.vxml.it.CallDetailRecordServiceIT] cleanupDatabase
  87. 2014-08-23 15:22:17,692 main INFO [org.motechproject.vxml.it.CallDetailRecordServiceIT] verifyServiceFunctional
  88. 2014-08-23 15:22:18,188 main INFO [org.motechproject.vxml.it.CallDetailRecordServiceIT] created call record with motechCallId f7d5e0a6-d030-4803-bcbe-98b8ec15f1e4
  89. 2014-08-23 15:22:18,204 main INFO [org.motechproject.vxml.it.CallDetailRecordServiceIT] found call record with motechCallId f7d5e0a6-d030-4803-bcbe-98b8ec15f1e4
  90. 2014-08-23 15:22:18,685 main INFO [org.motechproject.vxml.it.CallDetailRecordServiceIT] created call record with motechCallId 21fc5fc3-39f8-4a60-a923-ed203553e34c
  91. 2014-08-23 15:22:19,235 main INFO [org.motechproject.vxml.it.CallDetailRecordServiceIT] created call record with motechCallId 21fc5fc3-39f8-4a60-a923-ed203553e34c & providerCallId SOMEPROVIDER-96bb1394-8963-434a-9aff-92def03f54e3
  92. 2014-08-23 15:22:19,754 main INFO [org.motechproject.vxml.it.CallDetailRecordServiceIT] created call record with providerCallId SOMEPROVIDER-96bb1394-8963-434a-9aff-92def03f54e3
  93. 2014-08-23 15:22:19,761 main INFO [org.motechproject.vxml.it.CallDetailRecordServiceIT] found call details record(s) with providerCallId SOMEPROVIDER-96bb1394-8963-434a-9aff-92def03f54e3: [CallDetailRecord{timestamp=2014-08-23 15:22:18.7040, configName='config-b', from='from', to='to', callDirection=INBOUND, callStatus=BUSY, motechCallId='21fc5fc3-39f8-4a60-a923-ed203553e34c', providerCallId='SOMEPROVIDER-96bb1394-8963-434a-9aff-92def03f54e3', providerExtraData={baz=bat, foo=bar}}, CallDetailRecord{timestamp=2014-08-23 15:22:19.2460, configName='config-b', from='from', to='to', callDirection=INBOUND, callStatus=ANSWERED, motechCallId='21fc5fc3-39f8-4a60-a923-ed203553e34c', providerCallId='SOMEPROVIDER-96bb1394-8963-434a-9aff-92def03f54e3', providerExtraData={zaz=zat, goo=zar}}]
  94. ERROR: Bundle org.motechproject.motech-platform-web-security [122] EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext)
  95. java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  96. at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)
  97. at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1101)
  98. at org.motechproject.security.annotations.SecurityAnnotationBeanPostProcessor.getBundleName(SecurityAnnotationBeanPostProcessor.java:132)
  99. at org.motechproject.security.annotations.SecurityAnnotationBeanPostProcessor.processAnnotations(SecurityAnnotationBeanPostProcessor.java:51)
  100. at org.motechproject.security.osgi.SecurityContextTracker.addingService(SecurityContextTracker.java:58)
  101. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
  102. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)
  103. at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
  104. at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
  105. at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894)
  106. at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
  107. at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
  108. at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
  109. at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
  110. at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
  111. at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
  112. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.publishContextAsOsgiServiceIfNecessary(AbstractOsgiBundleApplicationContext.java:361)
  113. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:223)
  114. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:328)
  115. at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
  116. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
  117. at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
  118. at java.lang.Thread.run(Thread.java:745)
  119. [INFO] Initialized servlet for org.motechproject.motech-scheduler [58]
  120. ERROR: Bundle org.motechproject.motech-platform-osgi-web-util [77] EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext)
  121. ERROR: Bundle org.motechproject.motech-platform-osgi-web-util [77] EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext)
  122. java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  123. at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)
  124. [INFO] Initializing Spring FrameworkServlet 'servlet_13'
  125. at org.springframework.context.support.AbstractApplicationContext.containsBean(AbstractApplicationContext.java:1109)
  126. at org.motechproject.osgi.web.UIServiceTrackers.addTrackerFor(UIServiceTrackers.java:24)
  127. at org.motechproject.osgi.web.BlueprintApplicationContextTracker.addingService(BlueprintApplicationContextTracker.java:56)
  128. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
  129. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)
  130. at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
  131. at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
  132. at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894)
  133. at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
  134. at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
  135. at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
  136. at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
  137. at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
  138. at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
  139. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.publishContextAsOsgiServiceIfNecessary(AbstractOsgiBundleApplicationContext.java:361)
  140. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:223)
  141. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:328)
  142. at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
  143. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
  144. at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
  145. at java.lang.Thread.run(Thread.java:745)
  146. java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  147. at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)
  148. at org.springframework.context.support.AbstractApplicationContext.containsBean(AbstractApplicationContext.java:1109)
  149. at org.motechproject.osgi.web.UIServiceTrackers.addTrackerFor(UIServiceTrackers.java:24)
  150. at org.motechproject.osgi.web.BlueprintApplicationContextTracker.addingService(BlueprintApplicationContextTracker.java:56)
  151. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
  152. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)
  153. at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
  154. at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
  155. at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894)
  156. at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
  157. at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
  158. at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
  159. at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
  160. at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
  161. at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
  162. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.publishContextAsOsgiServiceIfNecessary(AbstractOsgiBundleApplicationContext.java:361)
  163. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:223)
  164. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:328)
  165. at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
  166. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
  167. at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
  168. at java.lang.Thread.run(Thread.java:745)
  169. ERROR: Bundle org.motechproject.motech-platform-event [31] EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext)
  170. java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  171. at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)
  172. at org.springframework.context.support.AbstractApplicationContext.getBeanDefinitionNames(AbstractApplicationContext.java:1146)
  173. at org.motechproject.event.listener.proxy.EventAnnotationBeanPostProcessor.processAnnotations(EventAnnotationBeanPostProcessor.java:59)
  174. at org.motechproject.event.osgi.BlueprintApplicationContextTracker.addingService(BlueprintApplicationContextTracker.java:36)
  175. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
  176. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)
  177. at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
  178. at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
  179. at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894)
  180. at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
  181. at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
  182. at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)ERROR: Bundle org.motechproject.motech-platform-event [31] EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext)
  183.  
  184. at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
  185. at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
  186. at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
  187. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.publishContextAsOsgiServiceIfNecessary(AbstractOsgiBundleApplicationContext.java:361)
  188. 2014-08-23 15:22:21,540 EclipseGeminiBlueprintExtenderThread-24 ERROR [org.motechproject.osgi.web.OsgiDispatcherServlet] Context initialization failed
  189. java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  190. at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)
  191. at org.springframework.context.support.AbstractApplicationContext.getInternalParentBeanFactory(AbstractApplicationContext.java:1197)
  192. at org.springframework.context.support.AbstractRefreshableApplicationContext.createBeanFactory(AbstractRefreshableApplicationContext.java:195)
  193. at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:128)
  194. at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)
  195. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)
  196. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:60)
  197. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:168)
  198. at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
  199. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:164)
  200. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExecutionApplicationContext.java:78)
  201. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:157)
  202. at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)
  203. at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)
  204. at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)
  205. at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)
  206. at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)
  207. at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
  208. at javax.servlet.GenericServlet.init(GenericServlet.java:212)
  209. at org.apache.felix.http.base.internal.handler.ServletHandler.init(ServletHandler.java:55)
  210. at org.apache.felix.http.base.internal.handler.HandlerRegistry.addServlet(HandlerRegistry.java:65)
  211. at org.apache.felix.http.base.internal.service.HttpServiceImpl.registerServlet(HttpServiceImpl.java:95)
  212. at org.motechproject.osgi.web.HttpServiceTracker.register(HttpServiceTracker.java:68)
  213. at org.motechproject.osgi.web.HttpServiceTracker.start(HttpServiceTracker.java:47)
  214. at org.motechproject.osgi.web.HttpServiceTrackers.addTrackerFor(HttpServiceTrackers.java:25)
  215. at org.motechproject.osgi.web.BlueprintApplicationContextTracker.addingService(BlueprintApplicationContextTracker.java:55)
  216. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
  217. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)
  218. at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
  219. at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
  220. at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894)
  221. at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
  222. at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
  223. at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
  224. at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
  225. at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
  226. at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
  227. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.publishContextAsOsgiServiceIfNecessary(AbstractOsgiBundleApplicationContext.java:361)
  228. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:223)
  229. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:328)
  230. at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
  231. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
  232. at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
  233. at java.lang.Thread.run(Thread.java:745)
  234. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:223)
  235. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:328)[INFO] Initializing Spring FrameworkServlet 'servlet_14'
  236.  
  237. at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
  238. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
  239. at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
  240. at java.lang.Thread.run(Thread.java:745)
  241. java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  242. at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)
  243. at org.springframework.context.support.AbstractApplicationContext.getBeanDefinitionNames(AbstractApplicationContext.java:1146)
  244. at org.motechproject.event.listener.proxy.EventAnnotationBeanPostProcessor.processAnnotations(EventAnnotationBeanPostProcessor.java:59)
  245. at org.motechproject.event.osgi.BlueprintApplicationContextTracker.addingService(BlueprintApplicationContextTracker.java:36)
  246. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
  247. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)
  248. at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
  249. at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
  250. at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894)
  251. at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
  252. at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
  253. at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
  254. at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
  255. at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
  256. at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
  257. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.publishContextAsOsgiServiceIfNecessary(AbstractOsgiBundleApplicationContext.java:361)
  258. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:223)
  259. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:328)
  260. at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
  261. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
  262. at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
  263. at java.lang.Thread.run(Thread.java:745)
  264. 2014-08-23 15:22:21,564 EclipseGeminiBlueprintExtenderThread-23 ERROR [org.motechproject.osgi.web.OsgiDispatcherServlet] Context initialization failed
  265. java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  266. at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)
  267. at org.springframework.context.support.AbstractApplicationContext.getInternalParentBeanFactory(AbstractApplicationContext.java:1197)
  268. at org.springframework.context.support.AbstractRefreshableApplicationContext.createBeanFactory(AbstractRefreshableApplicationContext.java:195)
  269. at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:128)
  270. at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)
  271. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)
  272. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:60)
  273. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:168)
  274. at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
  275. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:164)
  276. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExecutionApplicationContext.java:78)
  277. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:157)
  278. at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)
  279. at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)
  280. at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)
  281. at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)
  282. at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)
  283. at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
  284. at javax.servlet.GenericServlet.init(GenericServlet.java:212)
  285. at org.apache.felix.http.base.internal.handler.ServletHandler.init(ServletHandler.java:55)
  286. at org.apache.felix.http.base.internal.handler.HandlerRegistry.addServlet(HandlerRegistry.java:65)
  287. at org.apache.felix.http.base.internal.service.HttpServiceImpl.registerServlet(HttpServiceImpl.java:95)
  288. at org.motechproject.osgi.web.HttpServiceTracker.register(HttpServiceTracker.java:68)
  289. at org.motechproject.osgi.web.HttpServiceTracker.start(HttpServiceTracker.java:47)
  290. at org.motechproject.osgi.web.HttpServiceTrackers.addTrackerFor(HttpServiceTrackers.java:25)
  291. at org.motechproject.osgi.web.BlueprintApplicationContextTracker.addingService(BlueprintApplicationContextTracker.java:55)
  292. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
  293. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)
  294. at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
  295. at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
  296. at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894)
  297. at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
  298. at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
  299. at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
  300. at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
  301. at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
  302. at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
  303. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.publishContextAsOsgiServiceIfNecessary(AbstractOsgiBundleApplicationContext.java:361)
  304. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:223)
  305. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:328)
  306. at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
  307. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
  308. at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
  309. at java.lang.Thread.run(Thread.java:745)
  310. 2014-08-23 15:22:21,567 EclipseGeminiBlueprintExtenderThread-24 ERROR [org.osgi.util.tracker.ServiceTracker] BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  311. java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  312. at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)
  313. at org.springframework.context.support.AbstractApplicationContext.getInternalParentBeanFactory(AbstractApplicationContext.java:1197)
  314. at org.springframework.context.support.AbstractRefreshableApplicationContext.createBeanFactory(AbstractRefreshableApplicationContext.java:195)
  315. at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:128)
  316. at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)
  317. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)
  318. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:60)
  319. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:168)
  320. at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
  321. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:164)
  322. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExecutionApplicationContext.java:78)
  323. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:157)
  324. at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)
  325. at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)
  326. at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)
  327. at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)
  328. at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)
  329. at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
  330. at javax.servlet.GenericServlet.init(GenericServlet.java:212)
  331. at org.apache.felix.http.base.internal.handler.ServletHandler.init(ServletHandler.java:55)
  332. at org.apache.felix.http.base.internal.handler.HandlerRegistry.addServlet(HandlerRegistry.java:65)
  333. at org.apache.felix.http.base.internal.service.HttpServiceImpl.registerServlet(HttpServiceImpl.java:95)
  334. at org.motechproject.osgi.web.HttpServiceTracker.register(HttpServiceTracker.java:68)
  335. at org.motechproject.osgi.web.HttpServiceTracker.start(HttpServiceTracker.java:47)
  336. at org.motechproject.osgi.web.HttpServiceTrackers.addTrackerFor(HttpServiceTrackers.java:25)
  337. at org.motechproject.osgi.web.BlueprintApplicationContextTracker.addingService(BlueprintApplicationContextTracker.java:55)
  338. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
  339. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)
  340. at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
  341. at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
  342. at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894)
  343. at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
  344. at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
  345. at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
  346. at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
  347. at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
  348. at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
  349. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.publishContextAsOsgiServiceIfNecessary(AbstractOsgiBundleApplicationContext.java:361)
  350. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:223)
  351. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:328)
  352. at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
  353. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
  354. at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
  355. at java.lang.Thread.run(Thread.java:745)
  356. ERROR: Bundle org.motechproject.motech-platform-osgi-web-util [77] EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext)
  357. java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  358. at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)
  359. at org.springframework.context.support.AbstractApplicationContext.containsBean(AbstractApplicationContext.java:1109)
  360. at org.motechproject.osgi.web.UIServiceTrackers.addTrackerFor(UIServiceTrackers.java:24)
  361. at org.motechproject.osgi.web.BlueprintApplicationContextTracker.addingService(BlueprintApplicationContextTracker.java:56)
  362. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
  363. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)
  364. at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
  365. at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
  366. at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894)
  367. at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
  368. at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
  369. at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
  370. 2014-08-23 15:22:21,579 EclipseGeminiBlueprintExtenderThread-23 ERROR [org.osgi.util.tracker.ServiceTracker] BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  371. java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  372. at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)
  373. at org.springframework.context.support.AbstractApplicationContext.getInternalParentBeanFactory(AbstractApplicationContext.java:1197)
  374. at org.springframework.context.support.AbstractRefreshableApplicationContext.createBeanFactory(AbstractRefreshableApplicationContext.java:195)
  375. at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:128)
  376. at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)
  377. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)
  378. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:60)
  379. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:168)
  380. at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
  381. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:164)
  382. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExecutionApplicationContext.java:78)
  383. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:157)
  384. at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)
  385. at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)
  386. at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)
  387. at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)
  388. at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)
  389. at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
  390. at javax.servlet.GenericServlet.init(GenericServlet.java:212)
  391. at org.apache.felix.http.base.internal.handler.ServletHandler.init(ServletHandler.java:55)
  392. at org.apache.felix.http.base.internal.handler.HandlerRegistry.addServlet(HandlerRegistry.java:65)
  393. at org.apache.felix.http.base.internal.service.HttpServiceImpl.registerServlet(HttpServiceImpl.java:95)
  394. at org.motechproject.osgi.web.HttpServiceTracker.register(HttpServiceTracker.java:68)
  395. at org.motechproject.osgi.web.HttpServiceTracker.start(HttpServiceTracker.java:47)
  396. at org.motechproject.osgi.web.HttpServiceTrackers.addTrackerFor(HttpServiceTrackers.java:25)
  397. at org.motechproject.osgi.web.BlueprintApplicationContextTracker.addingService(BlueprintApplicationContextTracker.java:55)
  398. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
  399. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)
  400. at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
  401. at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
  402. at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894)
  403. at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
  404. at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
  405. at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
  406. at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
  407. at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
  408. at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
  409. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.publishContextAsOsgiServiceIfNecessary(AbstractOsgiBundleApplicationContext.java:361)
  410. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:223)
  411. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:328)
  412. at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
  413. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
  414. at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
  415. at java.lang.Thread.run(Thread.java:745)
  416. ERROR: Bundle org.motechproject.motech-platform-osgi-web-util [77] EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext)
  417. at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
  418. at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
  419. at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
  420. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.publishContextAsOsgiServiceIfNecessary(AbstractOsgiBundleApplicationContext.java:361)
  421. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:223)
  422. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:328)
  423. at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
  424. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
  425. at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
  426. at java.lang.Thread.run(Thread.java:745)
  427. java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  428. at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)
  429. at org.springframework.context.support.AbstractApplicationContext.containsBean(AbstractApplicationContext.java:1109)
  430. at org.motechproject.osgi.web.UIServiceTrackers.addTrackerFor(UIServiceTrackers.java:24)
  431. at org.motechproject.osgi.web.BlueprintApplicationContextTracker.addingService(BlueprintApplicationContextTracker.java:56)
  432. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
  433. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)
  434. at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
  435. at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
  436. at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894)
  437. at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
  438. at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
  439. at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
  440. at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
  441. at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
  442. at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
  443. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.publishContextAsOsgiServiceIfNecessary(AbstractOsgiBundleApplicationContext.java:361)
  444. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:223)
  445. ERROR: Bundle org.motechproject.motech-platform-event [31] EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext)
  446. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:328)
  447. at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
  448. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
  449. at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
  450. at java.lang.Thread.run(Thread.java:745)
  451. java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  452. at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)
  453. at org.springframework.context.support.AbstractApplicationContext.getBeanDefinitionNames(AbstractApplicationContext.java:1146)
  454. at org.motechproject.event.listener.proxy.EventAnnotationBeanPostProcessor.processAnnotations(EventAnnotationBeanPostProcessor.java:59)
  455. at org.motechproject.event.osgi.BlueprintApplicationContextTracker.addingService(BlueprintApplicationContextTracker.java:36)
  456. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
  457. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)
  458. at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
  459. at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
  460. at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894)
  461. at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
  462. at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
  463. at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
  464. at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
  465. at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
  466. at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
  467. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.publishContextAsOsgiServiceIfNecessary(AbstractOsgiBundleApplicationContext.java:361)
  468. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:223)
  469. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:328)
  470. at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
  471. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)ERROR: Bundle org.motechproject.motech-platform-event [31] EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext)
  472.  
  473. at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
  474. at java.lang.Thread.run(Thread.java:745)
  475. java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  476. at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)
  477. at org.springframework.context.support.AbstractApplicationContext.getBeanDefinitionNames(AbstractApplicationContext.java:1146)
  478. at org.motechproject.event.listener.proxy.EventAnnotationBeanPostProcessor.processAnnotations(EventAnnotationBeanPostProcessor.java:59)
  479. at org.motechproject.event.osgi.BlueprintApplicationContextTracker.addingService(BlueprintApplicationContextTracker.java:36)
  480. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
  481. at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)
  482. at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
  483. at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
  484. at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894)
  485. at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
  486. at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
  487. at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
  488. at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
  489. at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
  490. at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
  491. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.publishContextAsOsgiServiceIfNecessary(AbstractOsgiBundleApplicationContext.java:361)
  492. at org.eclipse.gemini.blueprint.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:223)
  493. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:328)
  494. at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
  495. at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
  496. at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
  497. at java.lang.Thread.run(Thread.java:745)
  498. [INFO] Destroying Spring FrameworkServlet 'servlet_3'
  499. Tests run: 8, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 79.362 sec <<< FAILURE! - in org.motechproject.vxml.it.IntegrationTests
  500. verifyControllerFunctional(org.motechproject.vxml.it.StatusControllerIT) Time elapsed: 59.693 sec <<< FAILURE!
  501. java.lang.AssertionError: expected:<200> but was:<404>
  502. at org.junit.Assert.fail(Assert.java:88)
  503. at org.junit.Assert.failNotEquals(Assert.java:743)
  504. at org.junit.Assert.assertEquals(Assert.java:118)
  505. at org.junit.Assert.assertEquals(Assert.java:555)
  506. at org.junit.Assert.assertEquals(Assert.java:542)
  507. at org.motechproject.vxml.it.StatusControllerIT.verifyControllerFunctional(StatusControllerIT.java:100)
  508.  
  509. shouldNotLogWhenPassedIvalidConfig(org.motechproject.vxml.it.StatusControllerIT) Time elapsed: 0.08 sec <<< FAILURE!
  510. java.lang.AssertionError: expected:<500> but was:<404>
  511. at org.junit.Assert.fail(Assert.java:88)
  512. at org.junit.Assert.failNotEquals(Assert.java:743)
  513. at org.junit.Assert.assertEquals(Assert.java:118)
  514. at org.junit.Assert.assertEquals(Assert.java:555)
  515. at org.junit.Assert.assertEquals(Assert.java:542)
  516. at org.motechproject.vxml.it.StatusControllerIT.shouldNotLogWhenPassedIvalidConfig(StatusControllerIT.java:67)
  517.  
  518.  
  519. Results :
  520.  
  521. Failed tests:
  522. StatusControllerIT.verifyControllerFunctional:100 expected:<200> but was:<404>
  523. StatusControllerIT.shouldNotLogWhenPassedIvalidConfig:67 expected:<500> but was:<404>
  524.  
  525. Tests run: 8, Failures: 2, Errors: 0, Skipped: 0
  526.  
  527. [INFO]
  528. [INFO] --- maven-failsafe-plugin:2.17:verify (verify) @ vxml ---
  529. [INFO] Failsafe report directory: /home/frank/vxml/target/failsafe-reports
  530. [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
  531. [INFO] ------------------------------------------------------------------------
  532. [INFO] BUILD FAILURE
  533. [INFO] ------------------------------------------------------------------------
  534. [INFO] Total time: 1:35.920s
  535. [INFO] Finished at: Sat Aug 23 15:22:25 UTC 2014
  536. [INFO] Final Memory: 34M/337M
  537. [INFO] ------------------------------------------------------------------------
  538. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.17:verify (verify) on project vxml: There are test failures.
  539. [ERROR]
  540. [ERROR] Please refer to /home/frank/vxml/target/failsafe-reports for the individual test results.
  541. [ERROR] -> [Help 1]
  542. [ERROR]
  543. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  544. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  545. [ERROR]
  546. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  547. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement