Wednesday, May 1, 2013

java.lang.RuntimeException: Unexpected failure when returning from an RPC call.

I'm having this sudden and strange issue, when my RPC call tries to return the value, this exception is thrown:
java.lang.RuntimeException: Unexpected failure

It happens at this code of the GWT library:

/**
   * Creates a new instance of {@code klass}. The class must have a no-arg
   * constructor. The constructor may have any access modifier (for example,
   * private).
   */
  @SuppressWarnings("unchecked")
  public static <T> T newInstance(Class<T> klass) {
    Constructor<T> c = (Constructor<T>) constructorCache.get(klass);
    try {
      if (c == null) {
        c = klass.getDeclaredConstructor();
        c.setAccessible(true);
        constructorCache.put(klass, c);
      }
      return c.newInstance();
    } catch (Exception ex) {
      throw new RuntimeException("Unexpected failure", ex);
    }
  }

I emptied all and every cache I can think of, I also started using JDK 6 instead of 7, but with no luck yet.
I'm using GWT 2.5.1 and App Engine 1.7.7.1.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment