Hi Tammy, When i glanced at the code, i see as though the only thing that is going to cause the NPE is having a null value for concept and i wonder why this would be the case. Can you try calling that method from a unit test?
Wyclif On Fri, Aug 19, 2011 at 9:36 AM, Tammy Dugan <[email protected]> wrote: > When I try to create a new concept through the webapp, I get the following > error: > > *java.lang.NullPointerException* > > > org.hibernate.impl.SessionFactoryImpl.getImplementors(SessionFactoryImpl.java:709) > org.hibernate.hql.QuerySplitter.concreteQueries(QuerySplitter.java:100) > org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:68) > org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56) > > org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72) > > org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133) > > org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112) > org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623) > * > org.openmrs.api.db.hibernate.HibernateConceptDAO.deleteConceptWord(HibernateConceptDAO.java:817) > * > * > org.openmrs.api.db.hibernate.HibernateConceptDAO.updateConceptWord(HibernateConceptDAO.java:777) > * > * > org.openmrs.api.impl.ConceptServiceImpl.updateConceptWord(ConceptServiceImpl.java:1176) > * > > > It happens when I try to run this part of line 817: > > sessionFactory.getCurrentSession().createQuery("delete from ConceptWord > where concept_id = :c") > > This statement works just fine: > > sessionFactory.getCurrentSession() > > > Tammy Dugan > > -- > Tammy Dugan > CHIRDL Technical Lead > Children's Health Services Research > IU School of Medicine > > ------------------------------ > Click here to > unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from > OpenMRS Developers' mailing list _________________________________________ To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to [email protected] with "SIGNOFF openmrs-devel-l" in the body (not the subject) of your e-mail. [mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

