Actually, the solution looks pretty easy... the compliance level of the 
maven-compiler-plugin is set to 1.5.  I will change this to 1.6.

Mark

From: Mark Goodrich
Sent: Thursday, November 17, 2011 9:43 AM
To: '[email protected]'
Subject: RE: [OPENMRS-IMPLEMENTERS] javax.el.ELException: Error reading 'links' 
on type org.openmrs.module.htmlformentry.extension.html.AdminList

When I upgraded to the Mavenized version of the HTML Form Entry, all of a 
sudden Override warning started appearing in Eclipse because there were 
@Override annotations in HFE that were valid for 1.6 but not for 1.5.  Somehow, 
after Mavenization, Java compliance got set to 1.5.  I changed the compliance 
manually in Eclipse to 1.6 (Project->Properties->Java Compiler) but I don't 
know if there's a place to set this somewhere (in the pom?).

Mark


From: [email protected] [mailto:[email protected]] On Behalf Of 
Rowan Seymour
Sent: Thursday, November 17, 2011 8:54 AM
To: [email protected]
Subject: Re: [OPENMRS-IMPLEMENTERS] javax.el.ELException: Error reading 'links' 
on type org.openmrs.module.htmlformentry.extension.html.AdminList

Adding in the dev list - I'm getting this same error with OpenMRS 1.8, but when 
I look in the logs it's part of another error... looks like a Java 1.6/1.5 
issue because it's complaining about the @Override attribute on that method.

Only seeing the error with the Mavenized 1.7.4-SNAPSHOT version and not the old 
1.7.3 version so is Maven compiling it against a different Java version??

@Peter which version of the module and openmrs are you using?

java.lang.Error: Unresolved compilation problem:
The method needsNameAndDescriptionMigration() of type HtmlFormEntryServiceImpl 
must override a superclass method

at 
org.openmrs.module.htmlformentry.impl.HtmlFormEntryServiceImpl.needsNameAndDescriptionMigration(HtmlFormEntryServiceImpl.java:134)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
On 17 November 2011 12:32, Titi Tsholofelo 
<[email protected]<mailto:[email protected]>> wrote:
I understand that you can set the modules start mandatory is equals true in the 
global property. But i am not very sure if it will be a good practice. So open 
you global properties table and set them true and restart tomcat again..

On Thu, Nov 17, 2011 at 12:18 PM, Peter D Lubambi 
<[email protected]<mailto:[email protected]>> wrote:
https://tickets.openmrs.org/browse/HTML-170?focusedCommentId=174857&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-174857

This is related ticket which suggest restart tomcat should fix the issue, but 
when i try restart tomcat HTML form entry module, reporting, report 
compatibility, form data exports modules doesn't start. i have to start them 
manually which cause the error again.
I there a way to set these modules starts automatically after restarting 
tomcat? may be that can fix the error..
Thanks.

On Thu, Nov 17, 2011 at 12:50 PM, Titi Tsholofelo 
<[email protected]<mailto:[email protected]>> wrote:
Peter i think you thing to check what you have coded for the encounter 
provider. This error message is talking about the admin lists which i believe 
is also something in relation with privelleges.
On Thu, Nov 17, 2011 at 11:27 AM, Peter D Lubambi 
<[email protected]<mailto:[email protected]>> wrote:
I get this error message on admin page under HTML form entry, what is the cause 
for this?

Please fix all errors and try again.
javax.el.ELException: Error reading 'links' on type 
org.openmrs.module.htmlformentry.extension.html.AdminList
org.openmrs.api.context.ServiceContext.getService(ServiceContext.java:703)
org.openmrs.api.context.Context.getService(Context.java:930)
org.openmrs.module.htmlformentry.HtmlFormEntryUtil.getService(HtmlFormEntryUtil.java:73)
org.openmrs.module.htmlformentry.extension.html.AdminList.getLinks(AdminList.java:56)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:616)
javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
org.apache.el.parser.AstValue.getValue(AstValue.java:118)
org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:935)
org.apache.jsp.WEB_002dINF.view.admin.index_jsp._jspx_meth_c_005fforEach_005f16(index_jsp.java:11879)
org.apache.jsp.WEB_002dINF.view.admin.index_jsp._jspx_meth_c_005fcatch_005f0(index_jsp.java:11818)
org.apache.jsp.WEB_002dINF.view.admin.index_jsp._jspx_meth_openmrs_005fhasPrivilege_005f71(index_jsp.java:11774)
org.apache.jsp.WEB_002dINF.view.admin.index_jsp._jspx_meth_openmrs_005fextensionPoint_005f18(index_jsp.java:11739)
org.apache.jsp.WEB_002dINF.view.admin.index_jsp._jspService(index_jsp.java:4087)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:65)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.openmrs.web.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:60)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:76)
org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:58)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:112)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:83)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:83)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:83)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:636)
________________________________
Click here to 
unsubscribe<mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l>
 from OpenMRS Implementers' mailing list



--
Titi T. Tsholofelo
Office Tel:00267- 3632273<tel:00267-%203632273>
Mobile Phone:00267- 72623601<tel:00267-%2072623601>

"Psalm 121"

________________________________
Click here to 
unsubscribe<mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l>
 from OpenMRS Implementers' mailing list

________________________________
Click here to 
unsubscribe<mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l>
 from OpenMRS Implementers' mailing list



--
Titi T. Tsholofelo
Office Tel:00267- 3632273
Mobile Phone:00267- 72623601

"Psalm 121"

________________________________
Click here to 
unsubscribe<mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l>
 from OpenMRS Implementers' mailing list



--
Rowan Seymour
tel: +250 783835665
http://twitter.com/rowanseymour
________________________________
Click here to 
unsubscribe<mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l>
 from OpenMRS Implementers' 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]

Reply via email to