0 Replies Latest reply on Jun 15, 2011 4:23 PM by ricardo.gomes

    Remoting: List of POJO

    ricardo.gomes

      I am trying to pass from an applet a List of type org.bouncycastle.jce.provider.X509CertificateObject to JS and after to my JBoss server with the code below:


      Applet code:


      Certificate[] certChain = populate();
      JSObject window = JSObject.getWindow(this);
      window.call("permiteValida", new Object[] { Arrays.asList(certChain) });



      When I invoke Seam method like this:


      Seam.Component.getInstance("assinaturaDigitalController").method(teste, tes)



      I got the following error:


      ...]] cannot be converted to type [java.util.List<java.security.cert.X509Certificat
      e>].
              at org.jboss.seam.remoting.wrapper.StringWrapper.convert(StringWrapper.java:128)



      Do you have any ideia?