# cannot find symbol error!!!

**URL:** https://talk.openmrs.org/t/cannot-find-symbol-error/22479
**Category:** Uncategorized
**Created:** [March 22, 2019, 12:59pm UTC](https://talk.openmrs.org/t/cannot-find-symbol-error/22479 "2019-03-22T12:59:27Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![herbert24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/herbert24/32/8178_2.png) [@herbert24](https://talk.openmrs.org/u/herbert24)
#### Post date: [March 22, 2019, 12:59pm UTC](https://talk.openmrs.org/t/cannot-find-symbol-error/22479/1 "2019-03-22T12:59:27Z")

</div>

within the metadatadeploy module,i am introducing DbSession and DbSessionFactory as per requirements of the ticket.I have done this by upgrading core from 1.10.0 to 1.10.2 as seen here [https://pastebin.com/P3Z2jXuU](https://pastebin.com/P3Z2jXuU) I then import the DbSession and DbSessionFactory successfully as seen here [https://pastebin.com/Uy8a9hp8](https://pastebin.com/Uy8a9hp8) but on building i get a cannot find symbol error as seen here [https://pastebin.com/rDvtJr7f](https://pastebin.com/rDvtJr7f) Any suggestion on solving this @dkayiwa

---

<div class="post-metadata">

### Author: ![tendomart](https://talk.openmrs.org/user_avatar/talk.openmrs.org/tendomart/32/6753_2.png) [@tendomart](https://talk.openmrs.org/u/tendomart)
#### Post date: [March 25, 2019, 5:46am UTC](https://talk.openmrs.org/t/cannot-find-symbol-error/22479/2 "2019-03-25T05:46:15Z")

</div>

[ERROR] /F:/openmrsmodules/modules/openmrs-module-metadatadeploy/api/src/main/java/org/openmrs/module/metadatadeploy/handler/impl/PersonAttributeTypeDeployHandler.java:[21,36] cannot find symbol

Did your project compile correctly at install?

---

<div class="post-metadata">

### Author: ![k.joseph](https://talk.openmrs.org/user_avatar/talk.openmrs.org/k.joseph/32/8097_2.png) [@k.joseph](https://talk.openmrs.org/u/k.joseph)
#### Post date: [March 25, 2019, 1:32pm UTC](https://talk.openmrs.org/t/cannot-find-symbol-error/22479/3 "2019-03-25T13:32:29Z")

</div>

can you make sure your openMRSBuildVersion is being used and not anything else? else check the scopes of your openmrs-api dependencies. the easiest way to catch it look through and compare with some updated modules out there at

> **[OpenMRS](https://github.com/openmrs)**
>
> Open source Health IT by and for the entire planet, starting with the developing world. - OpenMRS

---

<div class="post-metadata">

### Author: ![herbert24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/herbert24/32/8178_2.png) [@herbert24](https://talk.openmrs.org/u/herbert24)
#### Post date: [March 25, 2019, 1:52pm UTC](https://talk.openmrs.org/t/cannot-find-symbol-error/22479/4 "2019-03-25T13:52:19Z")

</div>

okie then let me do that thanks

---

<div class="post-metadata">

### Author: ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)
#### Post date: [March 25, 2019, 2:12pm UTC](https://talk.openmrs.org/t/cannot-find-symbol-error/22479/5 "2019-03-25T14:12:09Z")

</div>

@herbert24, are you talking about this ticket here [https://issues.openmrs.org/browse/DPLY-40.?](https://issues.openmrs.org/browse/DPLY-40.?)? i thought you’re no longer working on it since it wasn’t claimed at all. if your still working on it , you can re-assign it back to your self otherwise i had taken it up

---

<div class="post-metadata">

### Author: ![herbert24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/herbert24/32/8178_2.png) [@herbert24](https://talk.openmrs.org/u/herbert24)
#### Post date: [March 25, 2019, 2:18pm UTC](https://talk.openmrs.org/t/cannot-find-symbol-error/22479/6 "2019-03-25T14:18:12Z")

</div>

first unassign from your side

---

<div class="post-metadata">

### Author: ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)
#### Post date: [March 25, 2019, 2:23pm UTC](https://talk.openmrs.org/t/cannot-find-symbol-error/22479/7 "2019-03-25T14:23:14Z")

</div>

ok ,but u can just switch anyway

---

<div class="post-metadata">

### Author: ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)
#### Post date: [March 25, 2019, 2:27pm UTC](https://talk.openmrs.org/t/cannot-find-symbol-error/22479/8 "2019-03-25T14:27:15Z")

</div>

ok you can go ahead and claim it

---

<div class="post-metadata">

### Author: ![herbert24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/herbert24/32/8178_2.png) [@herbert24](https://talk.openmrs.org/u/herbert24)
#### Post date: [March 29, 2019, 1:37pm UTC](https://talk.openmrs.org/t/cannot-find-symbol-error/22479/9 "2019-03-29T13:37:24Z")

</div>

following @k.joseph’s idea,i have checked my poms and made sure i get to the openmrsVersion that my DbSession and DbSessionFactory relies on, from that point i was able to upgrade the required pom,then theb build was successful with mvn clean install.thanks every one
