Skip to content

Instantly share code, notes, and snippets.

@jazdw
Created October 20, 2015 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jazdw/1d2b0bfb0162cd51ce7a to your computer and use it in GitHub Desktop.
Save jazdw/1d2b0bfb0162cd51ce7a to your computer and use it in GitHub Desktop.
System exception!
The server has experienced an exception processing your last request. The exception has been logged, and system administrators will be notified of this problem. You may continue to use the site. We apologize for the inconvenience.
Hide error details
com.serotonin.ShouldNeverHappenException: freemarker.core.InvalidReferenceException: Expression instance is undefined on line 20, column 13 in orderNotification.ftl.
at com.serotonin.m2m2lic.email.OutgoingEmail.moduleSaveNotification(OutgoingEmail.java:156)
at com.serotonin.m2m2lic.http.controller.account.ModuleEditController.handleRequestInternal(ModuleEditController.java:88)
at com.serotonin.web.spring.CustomModelController.handleRequestImpl(CustomModelController.java:47)
at com.serotonin.web.spring.ExceptionLoggingController.handleRequestInternal(ExceptionLoggingController.java:20)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.serotonin.m2m2lic.http.listener.LoggedInFilter.doFilter(LoggedInFilter.java:105)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)
at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:652)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:745)
Caused by: freemarker.core.InvalidReferenceException: Expression instance is undefined on line 20, column 13 in orderNotification.ftl.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.Environment.process(Environment.java:188)
at freemarker.template.Template.process(Template.java:232)
at com.serotonin.web.mail.TemplateEmailContent.setHtmlTemplate(TemplateEmailContent.java:46)
at com.serotonin.web.mail.TemplateEmailContent.(TemplateEmailContent.java:27)
at com.serotonin.m2m2lic.email.OutgoingEmail.moduleSaveNotification(OutgoingEmail.java:152)
... 39 more
REQUEST URL
http://store.infiniteautomation.com/error.jsp
REQUEST PARAMETERS
price1.licenseTypes=
Read/Write to 10 PLC Tag Locations.
10
100
Read/Write to 20 PLC Tag Locations
20
200
100
Read/Write to an unlimited number of PLC Tag Locations.
400
300
200
ver345.active=on
category=1
ver345.state=DEVELOPMENT
ver434.state=PRODUCTION
videos=
longDescription=Allows communication with Allen-Bradley's PLC-5 and SLC series of PLC processors. Please note that ControlLogix support is not included, please use the abeip module.
ver434.active=on
ver347.state=PRODUCTION
ver222.state=BETA
ver347.active=on
REQUEST HEADERS
host=store.infiniteautomation.com
accept=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
origin=http://store.infiniteautomation.com
upgrade-insecure-requests=1
user-agent=Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36
content-type=application/x-www-form-urlencoded
dnt=1
referer=http://store.infiniteautomation.com/account/moduleEdit?id=52
accept-encoding=gzip, deflate
accept-language=en-AU,en;q=0.8,en-GB;q=0.6,en-US;q=0.4
cookie=__utma=138654187.2026643362.1423107936.1427158243.1429849629.3; __utmz=138654187.1423107936.1.1.utmcsr=localhost:8080|utmccn=(referral)|utmcmd=referral|utmcct=/modules.shtm; _ga=GA1.2.2026643362.1423107936; ajs_user_id=null; ajs_group_id=null; JSESSIONID=A46DD61C97E7D9EA56A29302637D76D1
cache-control=max-age=0
content-length=1431
x-forwarded-host=store.infiniteautomation.com
x-forwarded-server=store.infiniteautomation.com
connection=Keep-Alive
REQUEST ATTRIBUTES
javax.servlet.forward.request_uri=/account/moduleEdit
javax.servlet.forward.context_path=
javax.servlet.forward.servlet_path=/account/moduleEdit
javax.servlet.forward.path_info=/error.jsp
org.springframework.web.servlet.DispatcherServlet.THEME_SOURCE=WebApplicationContext for namespace 'requestDispatcher-servlet': startup date [Sat Oct 10 19:50:34 UTC 2015]; parent: Root WebApplicationContext
org.springframework.web.servlet.DispatcherServlet.THEME_RESOLVER=org.springframework.web.servlet.theme.FixedThemeResolver@23fe23d8
org.springframework.web.servlet.DispatcherServlet.CONTEXT=WebApplicationContext for namespace 'requestDispatcher-servlet': startup date [Sat Oct 10 19:50:34 UTC 2015]; parent: Root WebApplicationContext
javax.servlet.error.status_code=500
javax.servlet.error.exception_type=class com.serotonin.ShouldNeverHappenException
javax.servlet.error.servlet_name=default
org.springframework.web.servlet.HandlerMapping.pathWithinHandlerMapping=/jsp/account/moduleEdit
javax.servlet.error.message=Request processing failed; nested exception is com.serotonin.ShouldNeverHappenException: freemarker.core.InvalidReferenceException: Expression instance is undefined on line 20, column 13 in orderNotification.ftl.
sessionAccount=Account [id=1432, email=jared.wiltshire@delta-automation.com.au, password=KasOq9LpoMo640Lu2V/QIOaSGzo=, name=Deltamation, url=www.deltamation.com.au, country=AU, region=*, mightWeCall=false, verified=true, disabled=false, createdTime=1363826575706, lastLogin=1445302023257, admin=false, discountRate=0.0, apiKey=null]
javax.servlet.error.exception=com.serotonin.ShouldNeverHappenException: freemarker.core.InvalidReferenceException: Expression instance is undefined on line 20, column 13 in orderNotification.ftl.
org.springframework.web.servlet.HandlerMapping.bestMatchingPattern=/jsp/account/moduleEdit
javax.servlet.error.request_uri=/account/moduleEdit
com.serotonin.m2m2lic.PRE_REWRITE_URI=/account/moduleEdit
org.tuckey.web.filters.urlrewrite.RuleMatched=true
org.springframework.web.servlet.DispatcherServlet.LOCALE_RESOLVER=org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver@1e34c5e
SESSION ATTRIBUTES
class com.serotonin.m2m2lic.http.controller.account.ModuleEditController.MODULE_KEY=com.serotonin.m2m2lic.vo.Module@604b2114
sessionAccount=Account [id=1432, email=jared.wiltshire@delta-automation.com.au, password=KasOq9LpoMo640Lu2V/QIOaSGzo=, name=Deltamation, url=www.deltamation.com.au, country=AU, region=*, mightWeCall=false, verified=true, disabled=false, createdTime=1363826575706, lastLogin=1445302023257, admin=false, discountRate=0.0, apiKey=null]
CONTEXT ATTRIBUTES
org.directwebremoting.impl.ServerContext=org.directwebremoting.impl.DefaultServerContext@7d1bc2eb
org.springframework.web.context.support.ServletContextScope=org.springframework.web.context.support.ServletContextScope@299a1278
org.apache.catalina.WELCOME_FILES=[Ljava.lang.String;@4232999e
javax.servlet.context.tempdir=/var/lib/tomcat6/work/Catalina/m2m2.serotoninsoftware.com/_
org.apache.catalina.jsp_classpath=/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/classes/:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/commons-codec-1.4.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/commons-dbcp-jdbc4.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/commons-fileupload-1.2.2.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/commons-httpclient-3.0.1.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/commons-io-2.1.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/commons-lang3-3.0.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/commons-logging-1.1.1.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/commons-pool.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/dwr.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/freemarker.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/joda-time-2.1.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/jstl.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/log4j-1.2.14.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/ma-shared-1.2.0.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/mail.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/mysql-connector-java-5.1.13-bin.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/org.springframework.aop-3.0.5.RELEASE.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/org.springframework.asm-3.0.5.RELEASE.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/org.springframework.beans-3.0.5.RELEASE.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/org.springframework.context-3.0.5.RELEASE.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/org.springframework.context.support-3.0.5.RELEASE.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/org.springframework.core-3.0.5.RELEASE.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/org.springframework.expression-3.0.5.RELEASE.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/org.springframework.jdbc-3.0.5.RELEASE.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/org.springframework.orm-3.0.5.RELEASE.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/org.springframework.transaction-3.0.5.RELEASE.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/org.springframework.web-3.0.5.RELEASE.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/org.springframework.web.servlet-3.0.5.RELEASE.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/plextile.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/serotonin-json-2.0.8.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/serotonin-providers.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/serotonin-timer.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/serotonin-utils-2.1.8.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/standard.jar:/var/lib/tomcat6/hosts/m2m2/ROOT/WEB-INF/lib/urlrewrite-3.2.0.jar:/var/lib/tomcat6/shared/classes/:/usr/share/tomcat6/lib/:/usr/share/java/eclipse-ecj-3.8.2.jar:/usr/share/java/el-api-2.1.jar:/usr/share/java/tomcat-i18n-fr-6.0.39.jar:/usr/share/java/jasper-6.0.39.jar:/usr/share/java/catalina-6.0.39.jar:/usr/share/java/commons-dbcp-1.4.jar:/usr/share/java/tomcat-coyote-6.0.39.jar:/usr/share/java/catalina-tribes-6.0.39.jar:/usr/share/java/catalina-ha-6.0.39.jar:/usr/share/java/jasper-el-6.0.39.jar:/usr/share/java/catalina-ant-6.0.39.jar:/usr/share/java/annotations-api-6.0.39.jar:/usr/share/java/servlet-api-2.5.jar:/usr/share/java/jsp-api-2.1.jar:/usr/share/java/commons-pool-1.6.jar:/usr/share/java/tomcat-i18n-es-6.0.39.jar:/usr/share/java/tomcat-i18n-ja-6.0.39.jar:/var/lib/tomcat6/common/classes/:/usr/share/tomcat6/bin/bootstrap.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/icedtea-sound.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/java-atk-wrapper.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/libatk-wrapper.so:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/localedata.jar
javax.servlet.ServletConfig=org.apache.catalina.core.StandardWrapperFacade@8037606
org.apache.jasper.runtime.JspApplicationContextImpl=org.apache.jasper.runtime.JspApplicationContextImpl@1b398806
org.apache.catalina.resources=org.apache.naming.resources.ProxyDirContext@5e114fe0
DwrContainer=org.directwebremoting.impl.DefaultContainer@42932b5f
javax.servlet.http.HttpServlet=org.directwebremoting.servlet.DwrServlet@4c048c1e
org.directwebremoting.WebContextFactory$WebContextBuilder=org.directwebremoting.impl.DefaultWebContextBuilder@3e8b2c8f
com.serotonin.m2m2lic.http.listener.LicenseTokenManager=com.serotonin.m2m2lic.http.listener.LicenseTokenManager@231a805d
org.springframework.web.context.WebApplicationContext.ROOT=Root WebApplicationContext: startup date [Sat Oct 10 19:50:32 UTC 2015]; root of context hierarchy
org.springframework.web.servlet.FrameworkServlet.CONTEXT.requestDispatcher=WebApplicationContext for namespace 'requestDispatcher-servlet': startup date [Sat Oct 10 19:50:34 UTC 2015]; parent: Root WebApplicationContext
org.directwebremoting.ContainerList=[org.directwebremoting.impl.DefaultContainer@42932b5f]
org.directwebremoting.Container=org.directwebremoting.impl.DefaultContainer@42932b5f
org.apache.AnnotationProcessor=org.apache.catalina.util.DefaultAnnotationProcessor@20e16bac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment