Uploaded image for project: 'WSO2 Carbon'
  1. WSO2 Carbon
  2. CARBON-3804

XSD files imported from localhost URL get fail.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: 2.0 M1
    • Fix Version/s: 2.0 M1
    • Labels:
      None
    • Severity:
      Major
    • Estimated Complexity:
      Moderate

      Description

      How to reproduce:
      ==============

      1. install wsas and deploy JAXWS sample.
      2. you will get a link to xsd link (http://10.100.1.252:9763/services/CalculatorService?xsd)
      3. Put that link into registry and set the media type as application/x-xsd+xml
      4. Now add the resource.

      Nothing will happen. XSD file not get added to the registry. But xsd file imports from external links working perfectly.
      Issue created based on the forum post : http://wso2.org/forum/thread/5353

      Exception
      =======
      [2009-05-15 14:10:49,382] ERROR - Failed to import resource with name CalculatorService.xsd to the parent collection /XSD. Failed to import resource from the URL http://10.100.1.252:9763/services/CalculatorService?xsd to path /XSD/CalculatorService.xsd. Failed to import resource /XSD/CalculatorService.xsd. All database operations will be rolled back. String index out of range: -1

      {org.wso2.carbon.registry.ui.resource.clients.ResourceServiceClient}

      org.apache.axis2.AxisFault: Failed to import resource from the URL http://10.100.1.252:9763/services/CalculatorService?xsd to path /XSD/CalculatorService.xsd. Failed to import resource /XSD/CalculatorService.xsd. All database operations will be rolled back. String index out of range: -1
      at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:517)
      at org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOutOnlyOperationClient.handleResponse(RobustOutOnlyAxisOperation.java:91)
      at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
      at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
      at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
      at org.wso2.carbon.registry.ui.resources.ResourceAdminServiceStub.importResource(ResourceAdminServiceStub.java:6156)
      at org.wso2.carbon.registry.ui.resource.clients.ResourceServiceClient.importResource(ResourceServiceClient.java:271)
      at org.wso2.carbon.registry.ui.resource.processors.ImportResourceProcessor.process(ImportResourceProcessor.java:49)
      at org.apache.jsp.resources.import_005fresource_005fajaxprocessor_jsp._jspService(import_005fresource_005fajaxprocessor_jsp.java:47)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:115)
      at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:35)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:36)
      at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
      at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
      at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:133)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
      at java.lang.Thread.run(Thread.java:595)
      [2009-05-15 14:10:49,384] ERROR - Failed to import resource CalculatorService.xsd to the parent collection /XSD. Failed to import resource with name CalculatorService.xsd to the parent collection /XSD. Failed to import resource from the URL http://10.100.1.252:9763/services/CalculatorService?xsd to path /XSD/CalculatorService.xsd. Failed to import resource /XSD/CalculatorService.xsd. All database operations will be rolled back. String index out of range: -1

      {org.wso2.carbon.registry.ui.resource.processors.AddTextResourceProcessor}

      org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to import resource with name CalculatorService.xsd to the parent collection /XSD. Failed to import resource from the URL http://10.100.1.252:9763/services/CalculatorService?xsd to path /XSD/CalculatorService.xsd. Failed to import resource /XSD/CalculatorService.xsd. All database operations will be rolled back. String index out of range: -1
      at org.wso2.carbon.registry.ui.resource.clients.ResourceServiceClient.importResource(ResourceServiceClient.java:276)
      at org.wso2.carbon.registry.ui.resource.processors.ImportResourceProcessor.process(ImportResourceProcessor.java:49)
      at org.apache.jsp.resources.import_005fresource_005fajaxprocessor_jsp._jspService(import_005fr

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                keith@wso2.com Kieth Chapman
                Reporter:
                krishantha@wso2.com krishantha Samaraweera
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: