Skip to content

Instantly share code, notes, and snippets.

Stephen Senkomago Musoke ssmusoke

Block or report user

Report or block ssmusoke

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View API Exception Running Report in Browser
org.openmrs.api.APIAuthenticationException: Basic authentication required
at org.openmrs.aop.AuthorizationAdvice.throwUnauthorized(AuthorizationAdvice.java:145)
at org.openmrs.aop.AuthorizationAdvice.before(AuthorizationAdvice.java:101)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
at com.sun.proxy.$Proxy228.getDefinitionByUuid(Unknown Source)
at sun.reflect.GeneratedMethodAccessor9121.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
View Database Error
Running org.openmrs.module.ugandaemrreports.reports.TestSetup106A1AReport
ERROR - SchemaUpdate.execute(226) |2019-07-03 15:05:09,183| HHH000319: Could not get database metadata
java.sql.SQLException: Connections could not be acquired from the underlying database!
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:118)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:689)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:140)
at org.hibernate.c3p0.internal.C3P0ConnectionProvider.getConnection(C3P0ConnectionProvider.java:90)
at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51)
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:219)
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:203)
View REport Error Loading Data
Running org.openmrs.module.ugandaemrreports.reports.TestSetup106A1AReport
ERROR - SchemaUpdate.execute(261) |2019-06-28 13:49:49,688| HHH000388: Unsuccessful: alter table concept_set add constraint FK_q1dxs9mdmm0fqi89gv7c9io56 foreign key (concept_id) references concept (concept_id)
ERROR - SchemaUpdate.execute(262) |2019-06-28 13:49:49,691| Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-87e_e`, CONSTRAINT `FK_q1dxs9mdmm0fqi89gv7c9io56` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`))
Setting Parameters
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 61.247 sec <<< FAILURE!
test106AExport(org.openmrs.module.ugandaemrreports.reports.TestSetup106A1AReport) Time elapsed: 23.733 sec <<< ERROR!
org.openmrs.module.metadatadeploy.MissingMetadataException: No such EncounterType with identifier '8d5b27bc-c2cc-11de-8d13-0010c6dffd0f'
at org.openmrs.module.metadatadeploy.MetadataUtils.existing(MetadataUtils.java:56)
at org.openmrs.module
View XStream
TestExecutionListener@a308ffd] to prepare test instance [org.openmrs.module.ugandaemrreports.reports.TestSetup106A1AReport@36e8e3e1]
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:94)
at org.springframework.test.context.DefaultTestContext.getApplicationContext(DefaultTestContext.java:72)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:117)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:212)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:200)
at
View ReportDefinition Error
Running org.openmrs.module.ugandaemrreports.reports.TestSetup106A1AReport
ERROR - TestContextManager.prepareTestInstance(215) |2019-06-25 19:10:03,433| Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@271f18d3] to prepare test instance [org.openmrs.module.ugandaemrreports.reports.TestSetup106A1AReport@6bd51ed8]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.ugandaemrreports.reports.TestSetup106A1AReport': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected org.openmrs.module.reporting.report.definition.service.ReportDefinitionService org.openmrs.module.ugandaemrreports.reports.TestSetup106A1AReport.reportDefinitionService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.openmrs.module.reportin
View FHIR dependency in AIJAR
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.openmrs.module</groupId>
<artifactId>aijar</artifactId>
<version>2.1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Aijar</name>
<description>Customizations for Uganda OpenMRS distribution</description>
View Reporting Error
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] UgandaEMR Reports Module
[INFO] UgandaEMR Reports Module API
[INFO] UgandaEMR Reports Module OMOD
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building UgandaEMR Reports Module 2.0.9-SNAPSHOT
View Builder Exception
ErrorException {#618 ▼
#message: "Call to undefined method Illuminate\Database\Query\Builder::getID() (View: /Users/ssmusoke/PhpstormProjects/hrmagic/resources/views/auth/login.blade.php)"
#code: 0
#file: "/Users/ssmusoke/PhpstormProjects/hrmagic/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php"
#line: 2483
-previous: BadMethodCallException {#619 ▶}
#severity: E_ERROR
trace: {▼
/Users/ssmusoke/PhpstormProjects/hrmagic/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2483 {▶}
/Users/ssmusoke/PhpstormProjects/hrmagic/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:45 {▶}
View MVN Deploy
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project ugandaemrreports: Failed to deploy artifacts: Could not find artifact org.openmrs.module:ugandaemrreports:pom:2.0.8 in openmrs-repo-modules (https://mavenrepo.openmrs.org/nexus/content/repositories/modules) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project ugandaemrreports: Failed to deploy artifacts: Could not find artifact org.openmrs.module:ugandaemrreports:pom:2.0.8 in openmrs-repo-modules (https://mavenrepo.openmrs.org/nexus/content/repositories/modules)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.
View Reports Deploy Error
[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project ugandaemrreports: Failed to deploy artifacts: Could not find artifact org.openmrs.module:ugandaemrreports:pom:2.0.8 in openmrs-repo-modules (https://mavenrepo.openmrs.org/nexus/content/repositories/modules) -> [Help 1]
[INFO] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project ugandaemrreports: Failed to deploy artifacts: Could not find artifact org.openmrs.module:ugandaemrreports:pom:2.0.8 in openmrs-repo-modules (https://mavenrepo.openmrs.org/nexus/content/repositories/modules)
[INFO] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
[INFO] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
[INFO] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
[INFO] at org.apache.maven.lifec
You can’t perform that action at this time.