terrypacker / ma-core-public

Mango Automation Core public code
0 stars 0 forks source link

Bug in Alarm Listing for Publisher Events #71

Closed terrypacker closed 10 years ago

terrypacker commented 10 years ago

When clicking on the icon in the Acknowledged Column this happens. Most likely from a misplaced " in the code. It appears that the publisher ID is being displayed on screen.

ERROR 2013-11-15 09:12:21,827 (org.apache.taglibs.log.LoggerTag.doStartTag:97) - java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:504) at java.lang.Integer.parseInt(Integer.java:527) at com.serotonin.m2m2.web.mvc.controller.PublisherEditController.handleRequestInternal(PublisherEditController.java:69) 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.doGet(FrameworkServlet.java:549) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1352) at com.serotonin.m2m2.web.filter.WebContextFilter.doFilter(WebContextFilter.java:43) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) at com.serotonin.m2m2.web.filter.UrlSecurityFilter.doFilter(UrlSecurityFilter.java:72) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) at com.serotonin.m2m2.web.filter.LoggedInFilter.doFilter(LoggedInFilter.java:103) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) at com.serotonin.web.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:37) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:77) at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:141) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) at org.eclipse.jetty.server.Server.handle(Server.java:346) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589) at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1048) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:601) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529) at java.lang.Thread.run(Thread.java:724)

REQUEST URL http://localhost:8080/exception/error.jsp

REQUEST PARAMETERS pid=

REQUEST HEADERS Host=localhost:8080 Connection=keep-alive Cache-Control=no-cache Pragma=no-cache Accept=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 User-Agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36 Referer=http://localhost:8080/events.shtm Accept-Encoding=gzip,deflate,sdch Accept-Language=en-US,en;q=0.8 Cookie=JSESSIONID=jo6giknjyoeb1hvwowxfrvlys

REQUEST ATTRIBUTES instanceDescription=My Mango Automation javax.servlet.forward.query_string=pid= javax.servlet.forward.request_uri=/publisher_edit.shtm org.springframework.web.servlet.DispatcherServlet.THEME_SOURCE=WebApplicationContext for namespace 'springDispatcher-servlet': startup date [Fri Nov 15 08:39:14 HST 2013]; parent: Root WebApplicationContext org.springframework.web.servlet.DispatcherServlet.THEME_RESOLVER=org.springframework.web.servlet.theme.FixedThemeResolver@72888249 org.springframework.web.servlet.DispatcherServlet.CONTEXT=WebApplicationContext for namespace 'springDispatcher-servlet': startup date [Fri Nov 15 08:39:14 HST 2013]; parent: Root WebApplicationContext javax.servlet.forward.context_path= javax.servlet.error.status_code=500 javax.servlet.error.exception_type=class java.lang.NumberFormatException javax.servlet.error.servlet_name=springDispatcher org.springframework.web.servlet.HandlerMapping.pathWithinHandlerMapping=/publisher_edit.shtm availableLanguages=[] NEW_ID=-1 lang=en javax.servlet.forward.servlet_path=/publisher_edit.shtm javax.servlet.error.message=For input string: "" org.eclipse.jetty.server.error_page=/exception/error.jsp org.springframework.web.servlet.HandlerMapping.bestMatchingPattern=/publisher_edit.shtm sessionUser=User [id=1, username=admin, password=0DPiKuNIrrVmD8IUCuw1hQxNqZc=, email=admin@yourMangoDomain.com, phone=, admin=true, disabled=false, dataSourcePermissions=[], dataPointPermissions=[], homeUrl=null, lastLogin=0, receiveAlarmEmails=0, receiveOwnAuditEvents=false, timezone=null] javax.servlet.error.exception=java.lang.NumberFormatException: For input string: "" javax.servlet.error.request_uri=/publisher_edit.shtm org.springframework.web.servlet.DispatcherServlet.LOCALE_RESOLVER=org.springframework.web.servlet.i18n.SessionLocaleResolver@6021c15d

SESSION ATTRIBUTES LONG_POLL_DATA_TIMEOUT=1384542566192 LONG_POLL_DATA=[com.serotonin.m2m2.web.dwr.longPoll.LongPollData@481df1f9, com.serotonin.m2m2.web.dwr.longPoll.LongPollData@25f9376c, com.serotonin.m2m2.web.dwr.longPoll.LongPollData@ca5a6ee, com.serotonin.m2m2.web.dwr.longPoll.LongPollData@4f7259be, com.serotonin.m2m2.web.dwr.longPoll.LongPollData@5c61f1b1, com.serotonin.m2m2.web.dwr.longPoll.LongPollData@2242cad9, com.serotonin.m2m2.web.dwr.longPoll.LongPollData@4f137e21] sessionUser=User [id=1, username=admin, password=0DPiKuNIrrVmD8IUCuw1hQxNqZc=, email=admin@yourMangoDomain.com, phone=, admin=true, disabled=false, dataSourcePermissions=[], dataPointPermissions=[], homeUrl=null, lastLogin=0, receiveAlarmEmails=0, receiveOwnAuditEvents=false, timezone=null]

CONTEXT ATTRIBUTES constants.AuditEventType.TYPE_DATA_POINT=DATA_POINT com.sun.jsp.tagFileJarUrlsCache={} org.springframework.web.servlet.FrameworkServlet.CONTEXT.springDispatcher=WebApplicationContext for namespace 'springDispatcher-servlet': startup date [Fri Nov 15 08:39:14 HST 2013]; parent: Root WebApplicationContext PersistentDataSourceDwr=com.serotonin.m2m2.persistent.dwr.PersistentDataSourceDwr@8bdd116 constants.Permissions.DataPointAccessTypes.DATA_SOURCE=3 constants.SystemEventType.TYPE_EMAIL_SEND_FAILURE=EMAIL_SEND_FAILURE EventInstanceDwr=com.serotonin.m2m2.web.dwr.EventInstanceDwr@65e9ffd5 constants.SystemEventType.TYPE_USER_LOGIN=USER_LOGIN DwrContainer=org.directwebremoting.impl.DefaultContainer@659b2d38 constants.EventType.EventTypeNames.PUBLISHER=PUBLISHER constants.SystemEventType.TYPE_PROCESS_FAILURE=PROCESS_FAILURE VirtualEditDwr=com.serotonin.m2m2.virtual.dwr.VirtualEditDwr@2eb5eba5 DataPointDwr=com.serotonin.m2m2.web.dwr.DataPointDwr@2981b598 PersistentPublisherDwr=com.serotonin.m2m2.persistent.dwr.PersistentPublisherDwr@2b92372 constants.DataTypes.IMAGE=5 constants.Permissions.DataPointAccessTypes.READ=1 org.springframework.web.context.support.ServletContextScope=org.springframework.web.context.support.ServletContextScope@48c612c3 constants.EventType.EventTypeNames.DATA_POINT=DATA_POINT constants.SystemEventType.TYPE_SYSTEM_STARTUP=SYSTEM_STARTUP constants.Permissions.DataPointAccessTypes.NONE=0 constants.Common.NEW_ID=-1 javax.servlet.ServletConfig=org.eclipse.jetty.servlet.ServletHolder$Config@43f9e588 constants.Permissions.DataPointAccessTypes.ADMIN=4 constants.UserComment.TYPE_EVENT=1 org.directwebremoting.WebContextFactory$WebContextBuilder=org.directwebremoting.impl.DefaultWebContextBuilder@4b4c6695 constants.AuditEventType.TYPE_POINT_EVENT_DETECTOR=POINT_EVENT_DETECTOR constants.EventType.EventTypeNames.AUDIT=AUDIT constants.EventType.EventTypeNames.SYSTEM=SYSTEM constants.DataTypes.MULTISTATE=2 PublisherListDwr=com.serotonin.m2m2.web.dwr.PublisherListDwr@4e2e6d2 org.directwebremoting.impl.ServerContext=org.directwebremoting.impl.DefaultServerContext@4c9fe77f javax.servlet.http.HttpServlet=org.directwebremoting.servlet.DwrServlet@16176a26 MiscDwr=com.serotonin.m2m2.web.dwr.MiscDwr@5b39f01e com.sun.jsp.taglibraryCache=EXCEPTION in String.valueOf: null constants.DataTypes.ALPHANUMERIC=4 constants.SystemEventType.TYPE_MAX_ALARM_LEVEL_CHANGED=MAX_ALARM_LEVEL_CHANGED mangoMessageKeys=[Ljava.lang.String;@69d01652 org.apache.catalina.jsp_classpath=/Users/tpacker/Documents/Work/Infinite/development/git/infiniteautomation/ma-core-public/Core/target/web/modules/persistent/classes:/Users/tpacker/Documents/Work/Infinite/development/git/infiniteautomation/ma-core-public/Core/target/web/modules/persistent/lib/m2m2-persistent-1.4.1.jar:/Users/tpacker/Documents/Work/Infinite/development/git/infiniteautomation/ma-core-public/Core/target/web/modules/virtualDS/classes:/Users/tpacker/Documents/Work/Infinite/development/git/infiniteautomation/ma-core-public/Core/target/web/modules/virtualDS/lib/m2m2-virtualDS-1.4.1.jar org.directwebremoting.ContainerList=[org.directwebremoting.impl.DefaultContainer@659b2d38] constants.SystemEventType.TYPE_SET_POINT_HANDLER_FAILURE=SET_POINT_HANDLER_FAILURE constants.DataTypes.BINARY=1 org.directwebremoting.Container=org.directwebremoting.impl.DefaultContainer@659b2d38 org.springframework.web.context.WebApplicationContext.ROOT=Root WebApplicationContext: startup date [Fri Nov 15 08:39:14 HST 2013]; root of context hierarchy constants.EventType.EventTypeNames.DATA_SOURCE=DATA_SOURCE constants.SystemEventType.TYPE_LICENSE_CHECK=LICENSE_CHECK org.eclipse.jetty.tmpdirConfigured=true jspx.1st.request=true constants.Permissions.DataPointAccessTypes.SET=2 constants.AuditEventType.TYPE_EVENT_HANDLER=EVENT_HANDLER clientSideMessages={js.help.lastUpdated=com.serotonin.m2m2.i18n.TranslatableMessage@729293fd, js.help.error=com.serotonin.m2m2.i18n.TranslatableMessage@f876c0, common.disabledToggle=com.serotonin.m2m2.i18n.TranslatableMessage@d7f89333, header.mute=com.serotonin.m2m2.i18n.TranslatableMessage@43df3cba, js.email.testSent=com.serotonin.m2m2.i18n.TranslatableMessage@f59d9881, common.administrator=com.serotonin.m2m2.i18n.TranslatableMessage@a467f3ea, js.help.related=com.serotonin.m2m2.i18n.TranslatableMessage@3dce6ae3, common.sendTestEmail=com.serotonin.m2m2.i18n.TranslatableMessage@8fd89c9f, js.email.noRecipForEmail=com.serotonin.m2m2.i18n.TranslatableMessage@4b694592, common.enabledToggle=com.serotonin.m2m2.i18n.TranslatableMessage@ea5c2f12, js.email.addAddress=com.serotonin.m2m2.i18n.TranslatableMessage@cbb9a38a, header.unmute=com.serotonin.m2m2.i18n.TranslatableMessage@d635aa93, js.email.addMailingList=com.serotonin.m2m2.i18n.TranslatableMessage@6fa4a69f, common.alarmLevel.lifeSafety=com.serotonin.m2m2.i18n.TranslatableMessage@1c71626, common.loading=com.serotonin.m2m2.i18n.TranslatableMessage@cf5f0419, common.minimize=com.serotonin.m2m2.i18n.TranslatableMessage@5d740b21, js.email.addUser=com.serotonin.m2m2.i18n.TranslatableMessage@49cc77b5, common.maximize=com.serotonin.m2m2.i18n.TranslatableMessage@c752a74f, js.email.noRecipients=com.serotonin.m2m2.i18n.TranslatableMessage@d78563d2, common.user=com.serotonin.m2m2.i18n.TranslatableMessage@8a9479ce, common.alarmLevel.none=com.serotonin.m2m2.i18n.TranslatableMessage@223c1a70, common.access.set=com.serotonin.m2m2.i18n.TranslatableMessage@a3e5309b, events.silence=com.serotonin.m2m2.i18n.TranslatableMessage@8376c0ac, common.disabled=com.serotonin.m2m2.i18n.TranslatableMessage@be9bfeff, common.access.read=com.serotonin.m2m2.i18n.TranslatableMessage@d8bff83d, common.alarmLevel.critical=com.serotonin.m2m2.i18n.TranslatableMessage@2b076d7, common.alarmLevel.info=com.serotonin.m2m2.i18n.TranslatableMessage@2239cfe6, events.unsilence=com.serotonin.m2m2.i18n.TranslatableMessage@29ad6533, common.alarmLevel.urgent=com.serotonin.m2m2.i18n.TranslatableMessage@8fa9c879} constants.SystemEventType.TYPE_SYSTEM_SHUTDOWN=SYSTEM_SHUTDOWN constants.UserComment.TYPE_POINT=2 DataSourceDwr=com.serotonin.m2m2.web.dwr.DataSourceDwr@5c6997c3 constants.DataTypes.NUMERIC=3 constants.AuditEventType.TYPE_DATA_SOURCE=DATA_SOURCE

terrypacker commented 10 years ago

Fixed javascript bug.