glassfish
  1. glassfish
  2. GLASSFISH-20576

Internal Server Error on JSON REST web service returning array

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0_b89_RC5
    • Fix Version/s: 4.1.1
    • Component/s: jax-rs
    • Labels:
      None
    • Environment:

      glassfish-4.0-b90-05_22_2013, jdk1.7

      Description

      The following REST web service causes internal server error (and no stack trace in server.log). Returning an empty array works, but as soon as there are elements in the array - it does not.

      @GET
      @Produces("application/json")
      public Object[] getArray() {
      return new Object[]

      {"Test"}

      ;
      }

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Marek Potociar
            Reporter:
            Peter Salomonsen
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: