membrane / soa-model

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

No such property error when generating request with simpleContent Types in wsdl #253

Open mbyas-lexmark opened 8 years ago

mbyas-lexmark commented 8 years ago

I am using soap ui to spin up a mock service that has Simple Type references. here is stack trace

groovy.lang.MissingPropertyException: No such property: model for class: com.predic8.schema.SimpleType at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:51) at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227) at com.predic8.wstool.creator.RequestCreator.createExtension(RequestCreator.groovy:138) at com.predic8.wstool.creator.RequestCreator$createExtension$3.call(Unknown Source) at com.predic8.schema.Extension.create(Extension.groovy:30) at com.predic8.schema.Extension$create.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callSafe(AbstractCallSite.java:89) at com.predic8.schema.creator.AbstractSchemaCreator.createSimpleContent(AbstractSchemaCreator.groovy:132) at com.predic8.schema.creator.AbstractSchemaCreator$createSimpleContent$0.call(Unknown Source) at com.predic8.schema.SimpleContent.create(SimpleContent.groovy:63) at com.predic8.schema.SimpleContent$create.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at com.predic8.schema.Sequence$create.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callSafe(AbstractCallSite.java:89) at com.predic8.wstool.creator.RequestCreator$_createElementFromCT_closure6.doCall(RequestCreator.groovy:120) at com.predic8.wstool.creator.RequestCreator$_createElementFromCT_closure6.doCall(RequestCreator.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:324) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:278) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016) at groovy.lang.Closure.call(Closure.java:423) at groovy.lang.Closure.call(Closure.java:417) at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:143) at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64) at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:907) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:884) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:166) at com.predic8.wstool.creator.RequestCreator.createElementFromCT(RequestCreator.groovy:119) at com.predic8.wstool.creator.RequestCreator.this$4$createElementFromCT(RequestCreator.groovy) at com.predic8.wstool.creator.RequestCreator$this$4$createElementFromCT$2.callCurrent(Unknown Source) at com.predic8.wstool.creator.RequestCreator.createComplexType(RequestCreator.groovy:108) at com.predic8.wstool.creator.RequestCreator$createComplexType$0.call(Unknown Source) at com.predic8.schema.ComplexType.create(ComplexType.groovy:94) at com.predic8.schema.ComplexType$create.call(Unknown Source) at com.predic8.wstool.creator.RequestCreator.createElement(RequestCreator.groovy:58) at com.predic8.wstool.creator.RequestCreator$createElement.call(Unknown Source) at com.predic8.schema.Element.create(Element.groovy:87) at com.predic8.schema.Element$create.call(Unknown Source) at com.predic8.schema.creator.AbstractSchemaCreator$_createSequence_closure1.doCall(AbstractSchemaCreator.groovy:61) 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:324) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:278) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016) at groovy.lang.Closure.call(Closure.java:423) at groovy.lang.Closure.call(Closure.java:439) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1379) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1372) at org.codehaus.groovy.runtime.dgm$149.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.creator.AbstractSchemaCreator.createSequence(AbstractSchemaCreator.groovy:60) at com.predic8.schema.creator.AbstractSchemaCreator$createSequence.call(Unknown Source) at com.predic8.schema.Sequence.create(Sequence.groovy:30) at com.predic8.schema.Sequence$create.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at com.predic8.schema.SimpleContent$create.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callSafe(AbstractCallSite.java:89) at com.predic8.wstool.creator.RequestCreator$_createElementFromCT_closure6.doCall(RequestCreator.groovy:120) at com.predic8.wstool.creator.RequestCreator$_createElementFromCT_closure6.doCall(RequestCreator.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:324) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:278) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016) at groovy.lang.Closure.call(Closure.java:423) at groovy.lang.Closure.call(Closure.java:417) at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:143) at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64) at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:907) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:884) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:166) at com.predic8.wstool.creator.RequestCreator.createElementFromCT(RequestCreator.groovy:119) at com.predic8.wstool.creator.RequestCreator.this$4$createElementFromCT(RequestCreator.groovy) at com.predic8.wstool.creator.RequestCreator$this$4$createElementFromCT$2.callCurrent(Unknown Source) at com.predic8.wstool.creator.RequestCreator.createComplexType(RequestCreator.groovy:108) at com.predic8.wstool.creator.RequestCreator$createComplexType$0.call(Unknown Source) at com.predic8.schema.ComplexType.create(ComplexType.groovy:94) at com.predic8.schema.ComplexType$create.call(Unknown Source) at com.predic8.wstool.creator.RequestCreator.createElement(RequestCreator.groovy:58) at com.predic8.wstool.creator.RequestCreator$createElement.call(Unknown Source) at com.predic8.schema.Element.create(Element.groovy:87) at com.predic8.schema.Element$create.call(Unknown Source) at com.predic8.wstool.creator.SOARequestCreator$_buildBody_closure3.doCall(SOARequestCreator.groovy:98) at com.predic8.wstool.creator.SOARequestCreator$_buildBody_closure3.doCall(SOARequestCreator.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:324) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:278) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016) at groovy.lang.Closure.call(Closure.java:423) at groovy.lang.Closure.call(Closure.java:417) at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:143) at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64) at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:907) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:884) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:166) at com.predic8.wstool.creator.SOARequestCreator.buildBody(SOARequestCreator.groovy:83) at com.predic8.wstool.creator.SOARequestCreator.this$3$buildBody(SOARequestCreator.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:324) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:368) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) at com.predic8.wstool.creator.SOARequestCreator$_createRequest_closure2.doCall(SOARequestCreator.groovy:78) at com.predic8.wstool.creator.SOARequestCreator$_createRequest_closure2.doCall(SOARequestCreator.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:324) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:278) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016) at groovy.lang.Closure.call(Closure.java:423) at groovy.lang.Closure.call(Closure.java:417) at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:143) at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64) at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:907) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:884) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:166) at com.predic8.wstool.creator.SOARequestCreator.createRequest(SOARequestCreator.groovy:74) M130948.V1.zip

Maybe there is a missing check somewhere for simple types?