Skip to content

ProxyServer.start() throws String index out of range exception #111

@hiansh

Description

@hiansh

Here is the stack trace of the exception:

Caused by String index out of range: -1

java.lang.String.substring(String.java:1911)
at cz.mallat.uasparser.fileparser.PHPFileParser.loadFile(PHPFileParser.java:65)
at cz.mallat.uasparser.fileparser.PHPFileParser.(PHPFileParser.java:29)
at cz.mallat.uasparser.UASparser.loadDataFromFile(UASparser.java:237)
at cz.mallat.uasparser.CachingOnlineUpdateUASparser.(CachingOnlineUpdateUASparser.java:55)
at cz.mallat.uasparser.CachingOnlineUpdateUASparser.(CachingOnlineUpdateUASparser.java:26)
at org.browsermob.proxy.http.BrowserMobHttpClient.(BrowserMobHttpClient.java:61)
at org.browsermob.proxy.ProxyServer.start(ProxyServer.java:67)

The contents of the userAgentString.properties file in tmp directory is

Mon Oct 08 11:17:40 EDT 2012

currentVersion=20121005-03
lastUpdateCheck=1349709460516

Workaround: Delete the userAgentString.properties file in tmp directory once

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions