manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kishore Kumar (JIRA)" <>
Subject [jira] [Created] (CONNECTORS-1195) Exception thrown in Maximum Bandwidth Report
Date Sun, 03 May 2015 20:44:05 GMT
Kishore Kumar created CONNECTORS-1195:

             Summary: Exception thrown in Maximum Bandwidth Report 
                 Key: CONNECTORS-1195
             Project: ManifoldCF
          Issue Type: Bug
          Components: Framework core, Framework crawler agent
    Affects Versions: ManifoldCF 2.0.2, ManifoldCF 1.8.2
            Reporter: Kishore Kumar

This exception occurs when the _bytecount_ value returned is double instead of the expected
long value.


Caused by: org.apache.jasper.JasperException: An exception occurred processing J
SP page /maxbandwidthreport.jsp at line 754

751:                            idBucketString = idBucketObject.toString();
752:                        String startTimeString = org.apache.manifoldcf.ui.ut
753:                        String endTimeString = org.apache.manifoldcf.ui.util
754:                        long byteCount = Converter.asLong(row.getValue("byte
755:                        double bandwidth = ((double)byteCount) * 1000.0 / in
757: %>
Caused by: java.lang.NumberFormatException: For input string: "160675266.5899"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.
        at java.lang.Long.parseLong(
        at java.lang.Long.<init>(
        at org.apache.manifoldcf.core.util.Converter.asLong(
        at org.apache.jsp.maxbandwidthreport_jsp._jspService(maxbandwidthreport_
        at org.apache.jasper.runtime.HttpJspBase.service(
        at javax.servlet.http.HttpServlet.service(
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper

A quick fix for this issue is to convert the _bytecount_ value to double instead of long,

double byteCount = Converter.asDouble(row.getValue("bytecount"));
double bandwidth = (byteCount) * 1000.0 / intervalMilliseconds;

if it is not expected to have _bytecount_ as double then we need to change the query used
in *RepositoryHistoryManager.maxByteCountReport(..)* which make som conditional check on _datasize_
column of repohistory table.

This message was sent by Atlassian JIRA

View raw message