ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Le Roux (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (OFBIZ-8342) ConfigXMLReader doesn't verify if "transaction-timeout" is set before trying to unbox
Date Sun, 20 Nov 2016 09:11:59 GMT

     [ https://issues.apache.org/jira/browse/OFBIZ-8342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jacques Le Roux reassigned OFBIZ-8342:
--------------------------------------

    Assignee: Jacques Le Roux

> ConfigXMLReader doesn't verify if "transaction-timeout" is set before trying to unbox
> -------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-8342
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-8342
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: Trunk
>            Reporter: Valery Chenzo
>            Assignee: Jacques Le Roux
>         Attachments: transactionTimeout.patch
>
>
> site-conf.xsd doesn't define *transaction-timeout* as being mandatory but ConfigXMLReader
treats it as one and in the absence of the attribute an exception is being thrown causing
the application to break.
> Stacktrace:
> {code}
> java.lang.NumberFormatException: For input string: ""
>         java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>         java.lang.Integer.parseInt(Integer.java:592)
>         java.lang.Integer.valueOf(Integer.java:766)
>         org.apache.ofbiz.webapp.control.ConfigXMLReader$Event.<init>(ConfigXMLReader.java:514)
>         org.apache.ofbiz.webapp.control.ConfigXMLReader$RequestMap.<init>(ConfigXMLReader.java:573)
>         org.apache.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.loadRequestMap(ConfigXMLReader.java:487)
>         org.apache.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.<init>(ConfigXMLReader.java:203)
>         org.apache.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:144)
>         org.apache.ofbiz.webapp.control.RequestHandler.<init>(RequestHandler.java:91)
>         org.apache.ofbiz.webapp.control.RequestHandler.getRequestHandler(RequestHandler.java:81)
>         org.apache.ofbiz.webapp.control.ControlServlet.getRequestHandler(ControlServlet.java:326)
>         org.apache.ofbiz.webapp.control.ControlServlet.init(ControlServlet.java:77)
>         org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
>         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
>         org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
>         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528)
>         org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1100)
>         org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:687)
>         org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
>         org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
>         java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>         java.lang.Thread.run(Thread.java:745)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message