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

Insufficient error handling in marshalling layer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • jbossws-1.0EA
    • None
    • jbossws-native
    • None

      In JaxRpcDIITestCase.testEchoSimpleUserType

      the SOAPContentElement hits

      SerializerSupport ser = (SerializerSupport)serializerFactory.getSerializer();
      xmlFragment = ser.serialize(xmlName, xmlType, objectValue, serContext);

      if (xmlFragment == null || xmlFragment.startsWith("<") == false)
      throw new IllegalStateException("Cannot serialize objectValue: " + objectValue);

      The marshalling layer should never return null for a given objectValue, instead there should be a meaningful exception about the cause of the problem

            olubyans@redhat.com Alexey Loubyansky
            tdiesler@redhat.com Thomas Diesler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: