我正在尝试使高复制与我的应用程序一起工作,但出现此错误:
java.lang.IllegalArgumentException: transactions on multiple entity groups only allowed in High Replication applications
我的 Maven 插件可能没有得到正确的配置(jvmFlag
):
<plugin>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>${gaeVersion}</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwtVersion}</version>
<executions>
<execution>
<!-- gwt:compile happens just before package phase -->
<phase>prepare-package</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<modules>
<module>org.jboss.errai.ui.demo.App</module>
</modules>
<runTarget>index.html</runTarget>
<appEngineVersion>${gaeVersion}</appEngineVersion>
<!-- tell the gwt plugin that the webapp source resides in src/main/webapp -->
<webappDirectory>${webappDirectory}</webappDirectory>
<!-- tell the gwt plugin that dev mode should be run using the webapp that resides in target/${webappDirectory} -->
<hostedWebapp>${webappDirectory}</hostedWebapp>
<!-- Normally the gwt maven plugin executes dev mode using a builtin jetty server.
This config property instructs the gwt maven plugin to execute dev mode using the
jetty server supplied by the appengine sdk. -->
<server>com.google.appengine.tools.development.gwt.AppEngineLauncher</server>
<jvmFlags>
<jvmFlag>-Ddatastore.default_high_rep_job_policy_unapplied_job_pct=20</jvmFlag>
</jvmFlags>
</configuration>
</plugin>
我使用此命令运行我的应用程序,mvn gwt:run
它工作正常,它只能在Transaction
我收到该错误时正确访问数据存储区。我已经添加了 jvmFlag,但它似乎仍然没有运行具有高复制的数据存储。
我正在使用 GAE SDK 版本 1.7.5 BTW。
任何人都知道如何解决这个问题?