Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2930

IllegalArgumentException: Illegal null argument:ns - Raised initialising Service referencing a WSDL which imports a xsd with no namespace

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • jbossws-native-3.2.2
    • jbossws-native
    • None

    Description

      The following exception is thrown when a Service is initialised using a WSDL that imports a schema with no namespace: -

      java.lang.IllegalArgumentException: Illegal null argument:ns
      at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel.createNamespaceItemIfNotExistent(JBossXSModel.java:511)
      at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel.addXSElementDeclaration(JBossXSModel.java:351)
      at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.copyXSModel(WSSchemaUtils.java:707)
      at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:202)

      In addition to this deploying an endpoint with this style of import results in the following error: -

      DEPLOYMENTS IN ERROR:
      Deployment "vfszip:/home/darranl/src/JBoss_5_1_0_GA/build/output/jboss-5.1.0.GA/server/default/deploy/jaxws-jbws2930.war/" is in error due to the following reason(s): java.lang.NullPointerException

      at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)

      Attachments

        Activity

          People

            rhn-engineering-ema Jim Ma
            darran.lofthouse@redhat.com Darran Lofthouse
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: