2 Replies Latest reply on Oct 18, 2012 2:31 AM by Jervis Liu

    Marshalling with interfaces

    Jervis Liu Apprentice

      Hi, I had an interface marshalling problem before and it was fixed, see this thread: https://community.jboss.org/thread/202522?tstart=30

       

      Now it looks like same problem or similar problem comes back. I am using 2.1.0.Final. Errai complains "[ERROR] org.jboss.errai.codegen.exception.OutOfScopeException: org_drools_ide_common_client_modeldriven_FactTypeFilter not found.". Below is the class Errai complained about:

       

      public interface FactTypeFilter  extends PortableObject {

          public boolean filter(String originalFact);

      }

      public interface PortableObject  extends Serializable {

      }

       

      The stack trace:

       

      [ERROR] 2972 [main] INFO org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCBootstra

      pGenerator - generating IOC bootstrapping class...

      [ERROR] 2972 [main] WARN org.jboss.errai.config.rebind.EnvUtil - reachability an

      alysis disabled. errai may generate unnecessary code.

      [ERROR] 2972 [main] WARN org.jboss.errai.config.rebind.EnvUtil - enable reachabi

      lity analysis with -Derrai.compile.perf.perform_reachability_analysis=true

      [INFO]                Checking ErraiApp.properties for configured types ...

      [ERROR] 6689 [main] INFO org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCBootstra

      pGenerator - generated IOC bootstrapping class in 3717ms (5610 beans processed)

      [ERROR] 6690 [main] INFO org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCBootstra

      pGenerator - using IOC bootstrapping code at: d:\svn\drools\guvnor-uber-new\guvn

      or-webapp-drools\.errai\BootstrapperImpl.java

      [INFO]    Scanning for additional dependencies: jar:file:/C:/Users/JLIU/.m2/repo

      sitory/org/jboss/errai/errai-marshalling/2.1.0.Final/errai-marshalling-2.1.0.Fin

      al.jar!/org/jboss/errai/marshalling/client/api/MarshallerFramework.java

      [INFO]       Computing all possible rebind results for 'org.jboss.errai.marshall

      ing.client.api.MarshallerFactory'

      [INFO]          Rebinding org.jboss.errai.marshalling.client.api.MarshallerFacto

      ry

      [INFO]             Invoking generator org.jboss.errai.marshalling.rebind.Marshal

      lersGenerator

      [INFO]                Generating Marshallers Bootstrapper...

      [ERROR] 7389 [main] INFO org.jboss.errai.marshalling.rebind.MarshallerGeneratorF

      actory - generating marshalling class...

      [ERROR] org.jboss.errai.codegen.exception.OutOfScopeException: org_drools_ide_co

      mmon_client_modeldriven_FactTypeFilter not found.

      [ERROR] Scope:

      [ERROR] Imports:

      [ERROR] java.lang.Short

      [ERROR] org.jboss.errai.marshalling.client.marshallers.LinkedHashSetMarshaller

      [ERROR] org.uberfire.backend.vfs.Path

      [ERROR] org.jboss.errai.marshalling.client.marshallers.LinkedMapMarshaller

       

      Please let me know if you need any further information. Thanks.