rsingla / jslint4java

Automatically exported from code.google.com/p/jslint4java
Other
0 stars 0 forks source link

Execution fails with NegativeArraySizeException #87

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run JSLint on my codebase

What is the expected output? What do you see instead?

I would expect sucess or failure, based on the quality of my JS code. Instead I 
get an exception in JSLint without a useful error message.

What version of the product are you using? On what operating system?

Using 2.0.2 with Maven 3.0.3 and Java 6 on Mac OS.

Please provide any additional information below.

[ERROR] Failed to execute goal 
com.googlecode.jslint4java:jslint4java-maven-plugin:2.0.2:lint (lint) on 
project Margarita: Execution lint of goal 
com.googlecode.jslint4java:jslint4java-maven-plugin:2.0.2:lint failed. 
NegativeArraySizeException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
com.googlecode.jslint4java:jslint4java-maven-plugin:2.0.2:lint (lint) on 
project Margarita: Execution lint of goal 
com.googlecode.jslint4java:jslint4java-maven-plugin:2.0.2:lint failed.
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution lint of 
goal com.googlecode.jslint4java:jslint4java-maven-plugin:2.0.2:lint failed.
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more
Caused by: java.lang.NegativeArraySizeException
    at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:45)
    at java.lang.StringBuffer.<init>(StringBuffer.java:91)
    at com.googlecode.jslint4java.formatter.PlainFormatter.spaces(PlainFormatter.java:62)
    at com.googlecode.jslint4java.formatter.PlainFormatter.outputOneIssue(PlainFormatter.java:49)
    at com.googlecode.jslint4java.formatter.PlainFormatter.format(PlainFormatter.java:22)
    at com.googlecode.jslint4java.maven.ReportWriterImpl.report(ReportWriterImpl.java:78)
    at com.googlecode.jslint4java.maven.MultiReportWriter.report(MultiReportWriter.java:39)
    at com.googlecode.jslint4java.maven.JSLintMojo.logIssues(JSLintMojo.java:280)
    at com.googlecode.jslint4java.maven.JSLintMojo.execute(JSLintMojo.java:189)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    ... 20 more

Original issue reported on code.google.com by pardsb...@gmail.com on 14 Sep 2012 at 11:21

GoogleCodeExporter commented 9 years ago

Original comment by d...@happygiraffe.net on 28 Nov 2012 at 7:58