membrane / soa-model

Toolkit and Java API for WSDL, WADL and XML Schema.
http://www.membrane-soa.org/soa-model/
Apache License 2.0
94 stars 73 forks source link

groovy.lang.MissingPropertyException: No such property: a for class: com.predic8.soamodel.Difference #233

Open pv7721 opened 9 years ago

pv7721 commented 9 years ago

I get this exception when trying to diff to valid WSDL (possibly related to https://github.com/membrane/soa-model/issues/230)

I'm using version 1.4.1, running the wsdldiff.bat from the commande line, with JVM 1.8.0_31, on Windows 7 SP1 32 bits. I was instructed to use the updated 1.5.1 version, but which is unfortunately incomplete (I'll open a separate ticket for that). Unfortunately, I'm not able to provide the WSDL files.

groovy.lang.MissingPropertyException: No such property: a for class: com.predic8.soamodel.Difference at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) at org.codehaus.groovy.runtime.callsite.ConstructorSite$NoParamSite.callConstructor(ConstructorSite.java:124) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190) at com.predic8.schema.diff.AllDiffGenerator$_closure3.doCall(AllDiffGenerator.groovy:32) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1113) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1076) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:904) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) at com.predic8.schema.diff.UnitDiffGenerator.compare(UnitDiffGenerator.groovy:34) at com.predic8.schema.diff.UnitDiffGenerator$compare.call(Unknown Source) at com.predic8.schema.diff.SchemaDiffGenerator.compareAll(SchemaDiffGenerator.groovy:90) at com.predic8.schema.diff.SchemaDiffGenerator$compareAll.call(Unknown Source) at com.predic8.schema.All.compare(All.groovy:36) at com.predic8.schema.All$compare.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at com.predic8.schema.ComplexContent$compare.call(Unknown Source) at com.predic8.schema.diff.ComplexTypeDiffGenerator.compareModel(ComplexTypeDiffGenerator.groovy:48) at com.predic8.schema.diff.ComplexTypeDiffGenerator.compareUnit(ComplexTypeDiffGenerator.groovy:37) at com.predic8.schema.diff.UnitDiffGenerator.compare(UnitDiffGenerator.groovy:31) at com.predic8.schema.diff.UnitDiffGenerator$compare.call(Unknown Source) at com.predic8.schema.diff.SchemaDiffGenerator.compareComplexType(SchemaDiffGenerator.groovy:78) at com.predic8.schema.diff.SchemaDiffGenerator.this$3$compareComplexType(SchemaDiffGenerator.groovy) at com.predic8.schema.diff.SchemaDiffGenerator$this$3$compareComplexType.call(Unknown Source) at com.predic8.schema.ComplexType.compare(ComplexType.groovy:98) at com.predic8.schema.ComplexType$compare$0.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at com.predic8.schema.BuiltInSchemaType$compare.call(Unknown Source) at com.predic8.schema.diff.ElementDiffGenerator.compare4WSDL(ElementDiffGenerator.groovy:97) at com.predic8.schema.diff.ElementDiffGenerator.compareUnit(ElementDiffGenerator.groovy:50) at com.predic8.schema.diff.UnitDiffGenerator.compare(UnitDiffGenerator.groovy:31) at com.predic8.schema.diff.UnitDiffGenerator$compare.call(Unknown Source) at com.predic8.schema.diff.SchemaDiffGenerator.compareElement(SchemaDiffGenerator.groovy:114) at com.predic8.schema.diff.SchemaDiffGenerator$compareElement.call(Unknown Source) at com.predic8.schema.Element.compare(Element.groovy:87) at com.predic8.schema.Element$compare$0.call(Unknown Source) at com.predic8.schema.diff.SequenceDiffGenerator$_compareUnit_closure4.doCall(SequenceDiffGenerator.groovy:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:904) at groovy.lang.Closure.call(Closure.java:415) at org.codehaus.groovy.runtime.DefaultGroovyMethods.eachWithIndex(DefaultGroovyMethods.java:1318) at org.codehaus.groovy.runtime.dgm$153.invoke(Unknown Source) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at com.predic8.schema.diff.SequenceDiffGenerator.compareUnit(SequenceDiffGenerator.groovy:43) at com.predic8.schema.diff.UnitDiffGenerator.compare(UnitDiffGenerator.groovy:31) at com.predic8.schema.diff.UnitDiffGenerator$compare.call(Unknown Source) at com.predic8.schema.diff.SchemaDiffGenerator.compareSequence(SchemaDiffGenerator.groovy:82) at com.predic8.schema.diff.SchemaDiffGenerator$compareSequence.call(Unknown Source) at com.predic8.schema.Sequence.compare(Sequence.groovy:34) at com.predic8.schema.Sequence$compare.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callSafe(AbstractCallSite.java:96) at com.predic8.schema.diff.ComplexContentDiffGenerator.compareModel(ComplexContentDiffGenerator.groovy:62) at com.predic8.schema.diff.ComplexContentDiffGenerator.compareDerivation(ComplexContentDiffGenerator.groovy:50) at com.predic8.schema.diff.ComplexContentDiffGenerator.compare(ComplexContentDiffGenerator.groovy:32) at com.predic8.schema.diff.ComplexContentDiffGenerator$compare.call(Unknown Source) at com.predic8.schema.diff.SchemaDiffGenerator.compareComplexContent(SchemaDiffGenerator.groovy:139) at com.predic8.schema.diff.SchemaDiffGenerator$compareComplexContent.call(Unknown Source) at com.predic8.schema.ComplexContent.compare(ComplexContent.groovy:62) at com.predic8.schema.ComplexContent$compare.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at com.predic8.schema.All$compare.call(Unknown Source) at com.predic8.schema.diff.ComplexTypeDiffGenerator.compareModel(ComplexTypeDiffGenerator.groovy:48) at com.predic8.schema.diff.ComplexTypeDiffGenerator.compareUnit(ComplexTypeDiffGenerator.groovy:37) at com.predic8.schema.diff.UnitDiffGenerator.compare(UnitDiffGenerator.groovy:31) at com.predic8.schema.diff.UnitDiffGenerator$compare.call(Unknown Source) at com.predic8.schema.diff.SchemaDiffGenerator.compareComplexType(SchemaDiffGenerator.groovy:78) at com.predic8.schema.diff.SchemaDiffGenerator.this$3$compareComplexType(SchemaDiffGenerator.groovy) at com.predic8.schema.diff.SchemaDiffGenerator$this$3$compareComplexType.call(Unknown Source) at com.predic8.schema.ComplexType.compare(ComplexType.groovy:98) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:231) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149) at com.predic8.schema.ComplexType.compare(ComplexType.groovy:97) at com.predic8.schema.ComplexType$compare.call(Unknown Source) at com.predic8.wsdl.diff.WsdlDiffGenerator.comparePart(WsdlDiffGenerator.groovy:240) at com.predic8.wsdl.diff.WsdlDiffGenerator.this$3$comparePart(WsdlDiffGenerator.groovy) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:361) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:904) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149) at com.predic8.wsdl.diff.WsdlDiffGenerator$_compareParts_closure15.doCall(WsdlDiffGenerator.groovy:208) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:904) at groovy.lang.Closure.call(Closure.java:415) at groovy.lang.Closure.call(Closure.java:428) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1326) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1298) at org.codehaus.groovy.runtime.dgm$148.invoke(Unknown Source) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at com.predic8.wsdl.diff.WsdlDiffGenerator.compareParts(WsdlDiffGenerator.groovy:205) at com.predic8.wsdl.diff.WsdlDiffGenerator.this$3$compareParts(WsdlDiffGenerator.groovy) at com.predic8.wsdl.diff.WsdlDiffGenerator$this$3$compareParts.callCurrent(Unknown Source) at com.predic8.wsdl.diff.WsdlDiffGenerator.compareMessage(WsdlDiffGenerator.groovy:192) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:272) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149) at com.predic8.wsdl.diff.WsdlDiffGenerator.comparePortTypeMessage(WsdlDiffGenerator.groovy:168) at com.predic8.wsdl.diff.WsdlDiffGenerator.this$3$comparePortTypeMessage(WsdlDiffGenerator.groovy) at com.predic8.wsdl.diff.WsdlDiffGenerator$this$3$comparePortTypeMessage.callCurrent(Unknown Source) at com.predic8.wsdl.diff.WsdlDiffGenerator.compareOperation(WsdlDiffGenerator.groovy:139) at com.predic8.wsdl.diff.WsdlDiffGenerator.this$3$compareOperation(WsdlDiffGenerator.groovy) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:361) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:904) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145) at com.predic8.wsdl.diff.WsdlDiffGenerator$_compareOperations_closure9.doCall(WsdlDiffGenerator.groovy:123) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:904) at groovy.lang.Closure.call(Closure.java:415) at groovy.lang.Closure.call(Closure.java:428) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1326) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1298) at org.codehaus.groovy.runtime.dgm$148.invoke(Unknown Source) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at com.predic8.wsdl.diff.WsdlDiffGenerator.compareOperations(WsdlDiffGenerator.groovy:119) at com.predic8.wsdl.diff.WsdlDiffGenerator.this$3$compareOperations(WsdlDiffGenerator.groovy) at com.predic8.wsdl.diff.WsdlDiffGenerator$this$3$compareOperations.callCurrent(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145) at com.predic8.wsdl.diff.WsdlDiffGenerator.comparePortType(WsdlDiffGenerator.groovy:105) at com.predic8.wsdl.diff.WsdlDiffGenerator.this$3$comparePortType(WsdlDiffGenerator.groovy) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:361) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:904) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145) at com.predic8.wsdl.diff.WsdlDiffGenerator$_comparePortTypes_closure6.doCall(WsdlDiffGenerator.groovy:98) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:904) at groovy.lang.Closure.call(Closure.java:415) at groovy.lang.Closure.call(Closure.java:428) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1326) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1298) at org.codehaus.groovy.runtime.dgm$148.invoke(Unknown Source) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at com.predic8.wsdl.diff.WsdlDiffGenerator.comparePortTypes(WsdlDiffGenerator.groovy:95) at com.predic8.wsdl.diff.WsdlDiffGenerator.compare(WsdlDiffGenerator.groovy:46) at com.predic8.wsdl.diff.WsdlDiffGenerator$compare.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) at org.membrane_soa.soa_model.diff.AbstractDiffCLI.start(AbstractDiffCLI.groovy:39) at org.membrane_soa.soa_model.diff.AbstractDiffCLI$start.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at org.membrane_soa.soa_model.diff.WSDLDiffCLI.main(WSDLDiffCLI.groovy:25) [Loaded java.util.IdentityHashMap$IdentityHashMapIterator from C:\Program Files\Java\jre1.8.0_31\lib\rt.jar] [Loaded java.util.IdentityHashMap$KeyIterator from C:\Program Files\Java\jre1.8.0_31\lib\rt.jar] C:\soa-model-distribution-1.4.1\bin>