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

Custom exception containing an array

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-ws4ee-4.0.3
    • jboss-ws4ee-4.0.1
    • jbossws-native
    • None

      However, when I change this to contain an array of errors, I get an exception thrown on the server. For example, this does not work:
      Code:

      package com.danny;

      public class CustomException extends Exception
      {
      private int[] errorCodes;

      public CustomException( String message, int[] errorCodes )

      { super( message ); this.errorCodes = errorCodes; }

      public int[] getErrorCodes()

      { return errorCodes; }

      }

      My deployment descriptors etc. should be fine since I don't change them when I go from the simple example to the one with the array. I just rebuild the generated files using wscompile and redeploy.

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

                Created:
                Updated:
                Resolved: