Skip to content

Instantly share code, notes, and snippets.

View wpride's full-sized avatar

William Pride wpride

View GitHub Profile
@wpride
wpride / ali
Created November 2, 2017 22:22
digraph G {
"/data/act_patient/child_section/children_hiv_section/children_hiv_testing/child_hiv_testing_3/pcr/crianca_pcr_resultado_1mes_3" -> "/data/act_patient/child_section/children_hiv_section/children_hiv_testing/child_hiv_testing_3/crianca_diagnostico_definitivo_hiv_3"
"/data/act_patient/child_section/children_hiv_section/children_hiv_testing/child_hiv_testing_1/pcr/crianca_pcr_resultado_1mes_1" -> "/data/act_patient/child_section/children_hiv_section/children_hiv_testing/child_hiv_testing_1/crianca_diagnostico_definitivo_hiv_1"
"/data/act_patient/child_section/children_hiv_section/children_hiv_testing/child_hiv_testing_2/pcr/crianca_pcr_resultado_1mes_2" -> "/data/act_patient/child_section/children_hiv_section/children_hiv_testing/child_hiv_testing_2/crianca_diagnostico_definitivo_hiv_2"
"/data/index_patient/patient_info/wrong_act_patient/wrong_patient_act/confirmed_pregnancy_or_breastfeeding" -> "/data/patient_info/general/paciente_act"
"instance(casedb)/casedb/case/num_children_alive" -> "/data/act_
so I ended up with digraph G {
/data/act_patient/child_section/children_hiv_section/children_hiv_testing/child_hiv_testing_3/pcr/crianca_pcr_resultado_1mes_3" -> "/data/act_patient/child_section/children_hiv_section/children_hiv_testing/child_hiv_testing_3/crianca_diagnostico_definitivo_hiv_3"
"/data/act_patient/child_section/children_hiv_section/children_hiv_testing/child_hiv_testing_1/pcr/crianca_pcr_resultado_1mes_1" -> "/data/act_patient/child_section/children_hiv_section/children_hiv_testing/child_hiv_testing_1/crianca_diagnostico_definitivo_hiv_1"
"/data/act_patient/child_section/children_hiv_section/children_hiv_testing/child_hiv_testing_2/pcr/crianca_pcr_resultado_1mes_2" -> "/data/act_patient/child_section/children_hiv_section/children_hiv_testing/child_hiv_testing_2/crianca_diagnostico_definitivo_hiv_2"
"/data/index_patient/patient_info/wrong_act_patient/wrong_patient_act/confirmed_pregnancy_or_breastfeeding" -> "/data/patient_info/general/paciente_act"
"instance(casedb)/casedb/case/num_children_ali
11-01 14:07:56.080 10481-10481/org.commcare.dalvik.debug E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.commcare.dalvik.debug, PID: 10481
java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
at android.app.SharedPreferencesImpl.getString(SharedPreferencesImpl.java:225)
at org.commcare.fragments.CommCarePreferenceFragment.onSharedPreferenceChanged(CommCarePreferenceFragment.java:174)
at android.app.SharedPreferencesImpl$EditorImpl.notifyListeners(SharedPreferencesImpl.java:479)
at android.app.SharedPreferencesImpl$Ed
Running migrations:
Applying private_sector_datamigration.0005_auto_20170520_1530...Traceback (most recent call last):
File "./manage.py", line 118, in <module>
execute_from_command_line(sys.argv)
File "/Users/willpride/.virtualenvs/cchq/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
utility.execute()
File "/Users/willpride/.virtualenvs/cchq/lib/python2.7/site-packages/django/core/management/__init__.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/willpride/.virtualenvs/cchq/lib/python2.7/site-packages/django/core/management/base.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
2017-06-30 16:03:13,995 ERROR Internal Server Error: /a/test/phone/restore/
Traceback (most recent call last):
File "/Users/willpride/.virtualenvs/cchq/lib/python2.7/site-packages/django/core/handlers/exception.py", line 42, in inner
response = get_response(request)
File "/Users/willpride/.virtualenvs/cchq/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/Users/willpride/.virtualenvs/cchq/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/willpride/Dimagi/commcare-hq/corehq/apps/ota/utils.py", line 201, in _inner
response = f(request, domain, *args, **kwargs)
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<OpenRosaResponse xmlns="http://openrosa.org/http/response">
<message nature="ota_restore_success">Successfully restored account pvtdemombbs1user1!</message>
<Sync xmlns="http://commcarehq.org/sync">
<restore_id>9fd31b23ac60c5d737288a5301cd6b7b</restore_id>
</Sync>
<Registration xmlns="http://openrosa.org/user/registration">
<username>pvtdemombbs1user1</username>
<password>
sha1$RoWUg1EZjIKw$8d0215636075b1686edfbb4e85ac526da2c7cc72
java.lang.Thread.State: RUNNABLE
at org.sqlite.core.NativeDB.step(Native Method)
- locked <0x00000006c6421af0> (a org.sqlite.core.NativeDB)
at org.sqlite.jdbc3.JDBC3ResultSet.next(JDBC3ResultSet.java:73)
at database.models.FormplayerCaseIndexTable.bulkReadIndexToCaseIdMatch(FormplayerCaseIndexTable.java:282)
at org.commcare.modern.engine.cases.CaseIndexQuerySetTransform$CaseIndexQuerySetLookup.loadModelQuerySet(CaseIndexQuerySetTransform.java:58)
at org.commcare.cases.query.queryset.DerivedCaseQueryLookup.getOrLoadCachedQuerySet(DerivedCaseQueryLookup.java:90)
at org.commcare.cases.query.queryset.DerivedCaseQueryLookup.performSetLookup(DerivedCaseQueryLookup.java:62)
at org.commcare.cases.query.handlers.ModelQueryLookupHandler.loadProfileMatches(ModelQueryLookupHandler.java:53)
at org.commcare.cases.query.handlers.ModelQueryLookupHandler.loadProfileMatches(ModelQueryLookupHandler.java:26)
Caused by: java.lang.NullPointerException
at org.commcare.cases.query.queryset.DerivedCaseQueryLookup.performSetLookup(DerivedCaseQueryLookup.java:68)
at org.commcare.cases.query.handlers.ModelQueryLookupHandler.loadProfileMatches(ModelQueryLookupHandler.java:53)
at org.commcare.cases.query.handlers.ModelQueryLookupHandler.loadProfileMatches(ModelQueryLookupHandler.java:26)
at org.commcare.cases.query.QueryPlanner.attemptProfiledQuery(QueryPlanner.java:36)
at org.commcare.cases.util.StorageBackedTreeRoot.processPredicates(StorageBackedTreeRoot.java:178)
at org.commcare.cases.util.StorageBackedTreeRoot.tryBatchChildFetch(StorageBackedTreeRoot.java:71)
at org.javarosa.core.model.condition.EvaluationContext.expandReferenceAccumulator(EvaluationContext.java:326)
at org.javarosa.core.model.condition.EvaluationContext.expandReference(EvaluationContext.java:277)
at org.javarosa.core.model.condition.EvaluationContext.expandReference(EvaluationContext.java:253)
Caused by:
java.lang.NullPointerException
at org.javarosa.core.model.FormDef.collapseIndex(FormDef.java:1514)
at org.javarosa.core.model.FormIndex.assignRefs(FormIndex.java:440)
at org.commcare.api.json.JsonActionUtils.indexFromString(JsonActionUtils.java:203)
at org.commcare.api.json.JsonActionUtils.questionAnswerToJson(JsonActionUtils.java:146)
at session.FormSession.answerQuestionToJSON(FormSession.java:416)
at application.FormController.answerQuestion(FormController.java:89)
at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
public String retrieveCacheValue(String entityKey, String cacheKey) {
Connection connection = null;
PreparedStatement preparedStatement = null;
try {
connection = dataSource.getConnection();
preparedStatement = SqlHelper.prepareTableSelectStatement(connection,
TABLE_NAME,
new String[]{COL_CACHE_NAME, COL_ENTITY_KEY, COL_CACHE_KEY},
new String[]{mCacheName, entityKey, cacheKey});