I'd have thought that the sidebar with usage information is only for viewing the concept, not for editing it...
-Darius On Fri, May 11, 2012 at 8:39 AM, Steven Githens <sgith...@iupui.edu> wrote: > This may have appeared in trunk-3044 that I added last week. It looks > like I left off a few Transaction = readonly attributes on some new methods > in ProgramWorkFlowService, but even after adding them, I'm still seeing > this. ( and from Marks comment below, it appears it's actually coming from > an existing ConceptService method. ) > > I'm wondering if the sidebar with the concept usage information should > just be left out in the JSP conditionally if this is a new concept, and > left in if you're editing an existing concept? > > -Steve > > > On 05/11/2012 10:36 AM, Mark Goodrich wrote: > > Fyi, it looks like this is the offending part of the code:**** > > ** ** > > at > org.openmrs.web.controller.ConceptFormController$ConceptFormBackingObject.getNumberOfObsUsingThisConcept(ConceptFormController.java:913) > **** > > ** ** > > Assumedly, something within this method call is causing a flush, and the > Concept is transient as this point, because it is new. It looks like the > page is trying to read some statistical data about a concept, which is > really only relevant when viewing/editing an existing concept.**** > > ** ** > > Mark**** > > ** ** > > ** ** > > ** ** > > *From:* dev@openmrs.org [mailto:dev@openmrs.org <dev@openmrs.org>] *On > Behalf Of *Ishara Premadasa > *Sent:* Friday, May 11, 2012 10:02 AM > *To:* openmrs-deve...@listserv.iupui.edu > *Subject:* [OPENMRS-DEV] Exception occurs when trying to create a new > concept**** > > ** ** > > Hi,**** > > I was trying to create a new concept with the latest trunk today for my > gsoc project related work and it throws the following exception and page is > not fully loaded.**** > > An error has occurred! > The following error happened somewhere on this page: > javax.el.ELException: org.hibernate.TransientObjectException: object > references an unsaved transient instance - save the transient instance > before flushing: org.openmrs.Concept**** > > (The full error stack trace output is in the source of this page.) **** > > I have created a ticket for this in > https://tickets.openmrs.org/browse/TRUNK-3345 . Can someone please have a > look and help me?**** > > ** ** > > -- > Ishara Premadasa, > Google Summer of Code Intern 2012, > Dept. of Computer Science and Engineering, > University of Moratuwa, > Sri Lanka.**** > ------------------------------ > > Click here to > unsubscribe<lists...@listserv.iupui.edu?body=SIGNOFF%20openmrs-devel-l>from > OpenMRS Developers' mailing list > **** > ------------------------------ > Click here to > unsubscribe<lists...@listserv.iupui.edu?body=SIGNOFF%20openmrs-devel-l>from > OpenMRS Developers' mailing list > > > ------------------------------ > Click here to > unsubscribe<lists...@listserv.iupui.edu?body=SIGNOFF%20openmrs-devel-l>from > OpenMRS Developers' mailing list > _________________________________________ To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to lists...@listserv.iupui.edu with "SIGNOFF openmrs-devel-l" in the body (not the subject) of your e-mail. [mailto:lists...@listserv.iupui.edu?body=SIGNOFF%20openmrs-devel-l]