[ http://wso2.org/jira/browse/WSAS-620?page=all ]

sumedha rubasinghe resolved WSAS-620.
-------------------------------------

    Resolution: Fixed

> Code gen fails if data service includes sql queries with insert or update 
> statements (Queries with no output mappings)  
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WSAS-620
>                 URL: http://wso2.org/jira/browse/WSAS-620
>             Project: WSO2 WSAS
>          Issue Type: Bug
>          Components: data-services
>    Affects Versions: Nightly
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>         Assigned To: sumedha rubasinghe
>            Priority: Blocker
>             Fix For: 2.2
>
>
> Code generation fails with the following exception if a data service includes 
> queries which do not have output mappings.
> (e.g:- query with sql INSERT or UPDATE, which does not make sense to have 
> output mappings)
> ERROR [2007-11-28 09:29:41,046]  Error occurred during code generation. 
> org.apache.axis2.wsdl.databi
> nding.UnmatchedTypeException: No type was mapped to the name  with namespace 
> http://ws.wso2.org/dataservice
> org.apache.axis2.wsdl.codegen.CodeGenerationException: 
> org.apache.axis2.wsdl.codegen.CodeGenerationException: 
> org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped 
> to the name
> with namespace http://ws.wso2.org/dataservice
>         at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265)
>         at 
> org.wso2.codegen.service.java.JavaClientGeneratorService.generate(JavaClientGeneratorService.java:115)
>         at 
> org.wso2.codegen.service.java.JavaClientGeneratorServiceMessageReceiverInOut.invokeBusinessLogic(JavaClientGeneratorServiceMessageReceiverInOut.java:48)
>         at 
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)
>         at 
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
>         at 
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>         at 
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at 
> org.wso2.adminui.AdminUIServletFilter.doFilter(AdminUIServletFilter.java:142)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>         at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>         at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>         at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>         at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>         at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>         at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
>         at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>         at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>         at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: 
> org.apache.axis2.wsdl.databinding.
> UnmatchedTypeException: No type was mapped to the name  with namespace 
> http://ws.wso2.org/dataservic
> e
>         at 
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisS
> erviceBasedMultiLanguageEmitter.java:532)
>         at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:254
> )
>         ... 26 more
> Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type 
> was mapped to the name
>  with namespace http://ws.wso2.org/dataservice
>         at 
> org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(TypeMappingAdapte
> r.java:82)
>         at 
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getOutputParam
> Element(AxisServiceBasedMultiLanguageEmitter.java:3024)
>         at 
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getOutputEleme
> nt(AxisServiceBasedMultiLanguageEmitter.java:2702)
>         at 
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethod
> Element(AxisServiceBasedMultiLanguageEmitter.java:2200)
>         at 
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations
> (AxisServiceBasedMultiLanguageEmitter.java:2122)
>         at 
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocum
> entForCallbackHandler(AxisServiceBasedMultiLanguageEmitter.java:1149)
>         at 
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeCallBackH
> andlers(AxisServiceBasedMultiLanguageEmitter.java:1115)
>         at 
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisS
> erviceBasedMultiLanguageEmitter.java:455)
>         ... 27 more
> This issue occurs due to the data service schema contains blank elements. If 
> a particular query does not have output mapping, <result element="" name=""/> 
> is added to the data service configuration. Hence the resulting schema 
> contains following blank element.
> <xs:element>
> <xs:complexType>
> <xs:sequence/>
> </xs:complexType>
> </xs:element>
> This will be resolved if the blank elements are commented out in the data 
> service configuration.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
Wsas-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev

Reply via email to