org.geotools.process.ProcessException

java.lang.StringIndexOutOfBoundsException: String index out of range: -2147483648

Samebug tips1

Thrown by String methods to indicate that an index is either negative or greater than the size of the string. For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1226

  • via GitHub by jonescc
    ,
  • via GitHub by bhasin85
    ,
  • via GitHub by bhasin85
    ,
  • Stack trace

    • org.geotools.process.ProcessException: java.lang.StringIndexOutOfBoundsException: String index out of range: -2147483648 at au.org.emii.wps.NetcdfOutputProcess.execute(NetcdfOutputProcess.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.execute(AnnotationDrivenProcessFactory.java:549) at org.geoserver.wps.executor.ProcessStartupFilter$ProcessStartupWrapper.execute(ProcessStartupFilter.java:51) at org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:201) at org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:169) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -2147483648 at java.lang.String.charAt(String.java:658) at au.org.emii.ncdfgenerator.AttributeValueParser.peekChar(AttributeValueParser.java:21) at au.org.emii.ncdfgenerator.AttributeValueParser.parseString(AttributeValueParser.java:213) at au.org.emii.ncdfgenerator.AttributeValueParser.parseAttributeValue1(AttributeValueParser.java:138) at au.org.emii.ncdfgenerator.AttributeValueParser.parseAttributes(AttributeValueParser.java:47) at au.org.emii.ncdfgenerator.AttributeValueParser.parse(AttributeValueParser.java:29) at au.org.emii.ncdfgenerator.Variable.define(Variable.java:63) at au.org.emii.ncdfgenerator.NcdfEncoder.writeNext(NcdfEncoder.java:203) at au.org.emii.wps.NetcdfOutputProcess.execute(NetcdfOutputProcess.java:105) ... 12 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    rprp
    Once,
    zsambokizsamboki
    Once,
    poroszdporoszd
    14 times, last one
    zbalintzbalint
    Once,
    olle.hallinolle.hallin
    Once,
    34 more bugmates