Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jshint maven goal fails with an exception during report generation #606

Closed
GoogleCodeExporter opened this issue Mar 24, 2015 · 2 comments
Closed

Comments

@GoogleCodeExporter
Copy link

Though I thought it was fixed in previous release, this issue seems to not be 
fixed. Posting issue details again here:

This is the stacktrace of the exception which happens when running jshint maven 
goal for some resources.

], ro.isdc.wro.extensions.processor.support.linter.LinterError@40394a5[
line=45
character=4
reason=Mixed spaces and tabs.
evidence= this.getPreferences().commit();
]]
[DEBUG] Processing group: all.js [OK]
[DEBUG] creating report at location: 
D:\repos\git\ops\ops-ext4\target\wro4j-reports\jshint.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.810s
[INFO] Finished at: Wed Oct 31 09:54:33 EDT 2012
[INFO] Final Memory: 61M/1105M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal ro.isdc.wro4j:wro4j-maven-plugin:1.6.0:jshint 
(default-cli) on project ops-ext4: Execution default-cli of goal 
ro.isdc.wro4j:wro4j-maven-plugin:1.6.0:jshint failed: Problem while adapting 
lint item: The validated object is null -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
ro.isdc.wro4j:wro4j-maven-plugin:1.6.0:jshint (default-cli) on project 
ops-ext4: Execution default-cli of goal 
ro.isdc.wro4j:wro4j-maven-plugin:1.6.0:jshint failed: Problem while adapting 
lint item
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(Lifecycl
eModuleBuilder.java:84)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lifecycl
eModuleBuilder.java:59)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Lifecyc
leStarter.java:183)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.ja
va:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
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:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:2
90)
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 
default-cli of goal ro.isdc.wro4j:wro4j-maven-plugin:1.6.0:jshint failed: 
Problem while adapting lint item
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPlugin
Manager.java:110)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: ro.isdc.wro.WroRuntimeException: Problem while adapting lint item
at ro.isdc.wro.WroRuntimeException.wrap(WroRuntimeException.java:70)
at 
ro.isdc.wro.extensions.support.lint.ReportXmlFormatter.createInternal(ReportXmlF
ormatter.java:111)
at 
ro.isdc.wro.extensions.support.lint.ReportXmlFormatter.createForLinterError(Repo
rtXmlFormatter.java:69)
at ro.isdc.wro.maven.plugin.JsHintMojo.onAfterExecute(JsHintMojo.java:102)
at 
ro.isdc.wro.maven.plugin.AbstractWro4jMojo.execute(AbstractWro4jMojo.java:137)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPlugin
Manager.java:101)
... 20 more
Caused by: java.lang.NullPointerException: The validated object is null
at org.apache.commons.lang3.Validate.notNull(Validate.java:222)
at org.apache.commons.lang3.Validate.notNull(Validate.java:203)
at 
ro.isdc.wro.extensions.support.lint.ReportXmlFormatter$1.apply(ReportXmlFormatte
r.java:73)
at 
ro.isdc.wro.extensions.support.lint.ReportXmlFormatter$1.apply(ReportXmlFormatte
r.java:69)
at 
ro.isdc.wro.extensions.support.lint.ReportXmlFormatter.createInternal(ReportXmlF
ormatter.java:109)
... 24 more
[ERROR]

Original issue reported on code.google.com by alex.obj...@gmail.com on 3 Nov 2012 at 10:53

@GoogleCodeExporter
Copy link
Author

Fixed in branch 1.6.x

Original comment by alex.obj...@gmail.com on 3 Nov 2012 at 10:59

@GoogleCodeExporter
Copy link
Author

Original comment by alex.obj...@gmail.com on 3 Nov 2012 at 10:59

  • Changed state: Fixed

@alexo alexo modified the milestone: 1.6.1 Mar 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants