Re: [Codenarc-user] [groovy-user] [ANN] Announcing CodeNarc 0.9
Brought to you by:
chrismair
From: Chris M. <chr...@ea...> - 2010-05-22 20:25:22
|
Mick, I just released version 0.6 of the Grails CodeNarc plugin, which includes CodeNarc 0.9. I created a new Grails 1.2.2 application and installed the plugins that you seem to have installed as well, along with CodeNarc plugin 0.6, and was able to successfully perform a grails codenarc. It looks like you were using the Grails CodeNarc plugin, but obviously an earlier version (though I am curious why it did not show up in the "application.properties" you showed). If you get a chance, please install the latest CodeNarc plugin version (uninstall the older version first) and let me know if you still have an issue. Chris -----Original Message----- From: Mick Knutson [mailto:mkn...@ba...] Sent: Friday, May 14, 2010 7:33 AM To: us...@gr... Cc: cod...@li... Subject: Re: [Codenarc-user] [groovy-user] [ANN] Announcing CodeNarc 0.9 I am using the following: app.grails.version=1.2.2 app.name=divr app.servlet.version=2.4 app.version=10.4.2 plugins.code-coverage=1.1.8 plugins.hibernate=1.2.2 plugins.springcache=1.2 plugins.tomcat=1.2.2 plugins.webtest=2.0.4 There are no additional XML libraries I am using in my application. --- Thank You. Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://www.baselogic.com Blog: http://www.baselogic.com/blog/ Linked IN: http://linkedin.com/in/mickknutson Twitter: http://twitter.com/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Fri, May 14, 2010 at 7:29 AM, <chr...@wa...> wrote: ** Moving this over to the codenarc-user list. ** Perhaps this is an inconsistency between Java, Groovy or Xerces? Which versions of each of those are you using? There is a new (insufficiently documented) dependency in CodeNarc on Groovy 1.6 or later (and Java 1.5 or later) and GMetrics if you use the new ABC or Cyclomatic Complexity rules. Chris Mick Knutson <mkn...@ba...> wrote on 05/13/2010 10:22:03 AM: > I have this issue running: > > Running CodeNarc ... > Error executing script Codenarc: : java.lang.VerifyError: (class: > org/apache/xerces/impl/xs/XMLSchemaLoader, method: > xsdToXMLInputSource signatur > e: (Ljava/lang/Object;) > Lorg/apache/xerces/xni/parser/XMLInputSource;) Incompatible object > argument for function call > gant.TargetExecutionException: : java.lang.VerifyError: (class: > org/apache/xerces/impl/xs/XMLSchemaLoader, method: > xsdToXMLInputSource signature: > (Ljava/lang/Object;)Lorg/apache/xerces/xni/parser/XMLInputSource;) > Incompatible object argument for function call > at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:331) > at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334) > at gant.Gant$_dispatch_closure6.doCall(Gant.groovy) > at gant.Gant.withBuildListeners(Gant.groovy:344) > at gant.Gant.this$2$withBuildListeners(Gant.groovy) > at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source) > at gant.Gant.dispatch(Gant.groovy:334) > at gant.Gant.this$2$dispatch(Gant.groovy) > at gant.Gant.invokeMethod(Gant.groovy) > at gant.Gant.processTargets(Gant.groovy:495) > at gant.Gant.processTargets(Gant.groovy:480) > Caused by: : java.lang.VerifyError: (class: > org/apache/xerces/impl/xs/XMLSchemaLoader, method: > xsdToXMLInputSource signature: (Ljava/lang/Object; > )Lorg/apache/xerces/xni/parser/XMLInputSource;) Incompatible object > argument for function call > at org.apache.tools.ant.dispatch.DispatchUtils. > execute(DispatchUtils.java:116) > at org.apache.tools.ant.Task.perform(Task.java:348) > at Codenarc.runCodenarc(Codenarc:43) > at Codenarc.this$4$runCodenarc(Codenarc) > at Codenarc$_run_closure1.doCall(Codenarc:23) > at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324) > ... 10 more > Caused by: java.lang.VerifyError: (class: > org/apache/xerces/impl/xs/XMLSchemaLoader, method: > xsdToXMLInputSource signature: (Ljava/lang/Object;)L > org/apache/xerces/xni/parser/XMLInputSource;) Incompatible object > argument for function call > at org.apache.xerces.jaxp.validation.XMLSchemaFactory. > <init>(Unknown Source) > at java.lang.Class.newInstance0(Class.java:355) > at java.lang.Class.newInstance(Class.java:308) > at javax.xml.validation.SchemaFactoryFinder. > loadFromService(SchemaFactoryFinder.java:431) > at javax.xml.validation.SchemaFactoryFinder. > _newFactory(SchemaFactoryFinder.java:246) > at javax.xml.validation.SchemaFactoryFinder. > newFactory(SchemaFactoryFinder.java:145) > at javax.xml.validation.SchemaFactory. > newInstance(SchemaFactory.java:205) > at org.codenarc.ruleset.XmlReaderRuleSet. > validateXml(XmlReaderRuleSet.groovy:123) > at org.codenarc.ruleset.XmlReaderRuleSet. > this$2$validateXml(XmlReaderRuleSet.groovy) > at org.codenarc.ruleset.XmlReaderRuleSet. > <init>(XmlReaderRuleSet.groovy:46) > at org.codenarc.ruleset.XmlFileRuleSet$_closure1. > doCall(XmlFileRuleSet.groovy:50) > at org.codenarc.ruleset.XmlFileRuleSet. > <init>(XmlFileRuleSet.groovy:49) > at org.codenarc.ruleset.RuleSetUtil. > loadRuleSetFile(RuleSetUtil.groovy:39) > at org.codenarc.CodeNarcRunner$_createRuleSet_closure2. > doCall(CodeNarcRunner.groovy:94) > at org.codenarc.CodeNarcRunner.createRuleSet(CodeNarcRunner.groovy:93) > at org.codenarc.CodeNarcRunner.execute(CodeNarcRunner.groovy:66) > at org.codenarc.ant.CodeNarcTask.execute(CodeNarcTask.groovy:86) > at org.apache.tools.ant.dispatch.DispatchUtils. > execute(DispatchUtils.java:106) > ... 15 more > Error executing script Codenarc: : java.lang.VerifyError: (class: > org/apache/xerces/impl/xs/XMLSchemaLoader, method: > xsdToXMLInputSource signatur > e: (Ljava/lang/Object;) > Lorg/apache/xerces/xni/parser/XMLInputSource;) Incompatible object > argument for function call > > > --- > Thank You. > > Mick Knutson, President > > BASE Logic, Inc. > Enterprise Architecture, Design, Mentoring & Agile Consulting > p. (866) BLiNC-411: (254-6241-1) > f. (415) 685-4233 > > Website: http://www.baselogic.com > Blog: http://www.baselogic.com/blog/ > Linked IN: http://linkedin.com/in/mickknutson > Twitter: http://twitter.com/mickknutson > Vacation Rental: http://tahoe.baselogic.com |