Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用动态封送器警告[ErraiMarshalling]_Java_Gwt_Errai - Fatal编程技术网

Java 使用动态封送器警告[ErraiMarshalling]

Java 使用动态封送器警告[ErraiMarshalling],java,gwt,errai,Java,Gwt,Errai,我正在试图弄清楚为什么会出现此警告,因为我的Errai应用程序在GWT Dev模式下加载: [INFO]警告[ErraiMarshalling]找不到marshaller类。 [INFO]使用动态封送器警告[ErraiMarshalling]。动态 封送器设计用于开发模式测试,理想情况下 不应在生产中使用* 我试图提出: <extraJvmArgs>-Xmx1500m -XX:MaxPermSize=1000m -XX:-UseSplitVerifier -Derrai.marsha

我正在试图弄清楚为什么会出现此警告,因为我的Errai应用程序在GWT Dev模式下加载:

[INFO]警告[ErraiMarshalling]找不到marshaller类。 [INFO]使用动态封送器警告[ErraiMarshalling]。动态 封送器设计用于开发模式测试,理想情况下 不应在生产中使用*

我试图提出:

<extraJvmArgs>-Xmx1500m -XX:MaxPermSize=1000m -XX:-UseSplitVerifier -Derrai.marshalling.server.classOutput=${project.build.outputDirectory}</extraJvmArgs>
-Xmx1500m-XX:MaxPermSize=1000m-XX:-UseSplitVerifier-Derrai.marshalling.server.classOutput=${project.build.outputDirectory}
还有这个

<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
${project.build.directory}/${project.build.finalName}/WEB-INF/classes

显示此警告消息是因为有如下方法:

  private static void dynamicMarshallingWarning() {
    log.warn("using dynamic marshallers. dynamic marshallers are designed" +
        " for development mode testing, and ideally should not be used in production. *");
  }
它从loadDynamicMarshallers方法调用

public static ServerMappingContext loadDynamicMarshallers() {
    dynamicMarshallingWarning();
正如我在以下三种情况下显示的错误消息

案例1

  if (cls == null) {
      return loadDynamicMarshallers();
    }
案例2

if (!MarshallingGenUtil.isUseStaticMarshallers()) {
        sContext = loadDynamicMarshallers();
      }
案例3

catch (Throwable t) {
          log.debug("failed to load static marshallers", t);
          log.warn("static marshallers were not found.");

          sContext = loadDynamicMarshallers();
        }

这不是问题的答案,但可能会对您有所帮助。

勘误表.properties
中,添加以下配置:

errai.marshalling.use_static_marshallers=true

更多关于

我必须使用:errai.marshalling.force\u static\u marshallers