我在GAE上使用java进行项目。我使用cron作为一些剩余的东西。我每天为一次cron工作设定时间。 GAE运行cron作业,但是我的cron作业实现类只在5行之后才执行4 5行,因为代码帽没有被执行为什么?吼叫是我的代码
我的appengine-web.xml: -
type /?
我的Cron.xml: -
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>evadev014</application>
version>9</version>
<threadsafe>true</threadsafe>
<instance-class>F4_1G</instance-class>
<!-- Configure serving/caching of GWT files -->
<static-files>
<include path="**" />
<!-- The following line requires App Engine 1.3.2 SDK -->
<include path="**.nocache.*" expiration="0s" />
<include path="**.cache.*" expiration="365d" />
<exclude path="**.gwt.rpc" />
</static-files>
<!-- Configure java.util.logging -->
<system-properties>
<property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
</system-properties>
</appengine-web-app>
我的web.xml: -
<cron>
<url>/slick_erp/cronPhysicalInventoryCronJob</url>
<description>Implemented for due stock. </description>
<schedule>every day 04:00</schedule>
</cron>
<cron>
<url>/slick_erp/cronCustomerService</url>
<description>Implemented for due services of customer.</description>
<schedule>every day 04:00</schedule>
</cron>
<cron>
<url>/slick_erp/cronContractRenewal</url>
<description>Implemented for due contract renewal. </description>
<schedule>every day 04:00</schedule>
</cron>
<cron>
<url>/slick_erp/cronCustomerARPayment</url>
<description>Implemented for due payments of customer. Accounts Receivable.</description>
<schedule>every day 04:00</schedule>
</cron>
<cron>
<url>/slick_erp/cronLead</url>
<description>Implemented for due leads of customer.</description>
<schedule>every day 04:00</schedule>
</cron>
<cron>
<url>/slick_erp/cronDeliveryNote</url>
<description>Implemented for pending delivery notes of customer.</description>
<schedule>every day 04:00</schedule>
</cron>
<cron>
<url>/slick_erp/cronCustomerAPPayment</url>
<description>Implemented for due payments of customer. Accounts Payable.</description>
<schedule>every day 04:00</schedule>
</cron>
<cron>
<url>/slick_erp/cronCustomerAPInvoice</url>
<description>Implemented for due invoices of customer. Accounts Payable</description>
<schedule>every day 04:00</schedule>
</cron>
<cron>
<url>/slick_erp/cronCustomerARInvoice</url>
<description>Implemented for due invoices of customer. Accounts Receivable</description>
<schedule>every day 04:00</schedule>
</cron>
<cron>
<url>/slick_erp/cronSalesQuotation</url>
<description>Implemented for due sales quotations of customers.</description>
<schedule>every day 04:00</schedule>
</cron>
<cron>
<url>/slick_erp/cronServiceQuotation</url>
<description>Implemented for due service quotation of customers.</description>
<schedule>every day 04:00</schedule>
</cron>
<cron>
<url>/slick_erp/cronGoodsReceiptNote</url>
<description>Implemented for due GRNs. </description>
<schedule>every day 04:00</schedule>
</cron>
<cron>
<url>/slick_erp/cronApproval</url>
<description>Implemented for due approvals. </description>
<schedule>every day 04:00</schedule>
</cron>
在OFY代码之前执行ofy()。load ....行没有执行为什么?
这是我的cron工作代码之一: -
<servlet>
<servlet-name>CustomerServiceCronJobImpl</servlet-name>
<servlet-class>com.slicktechnologies.server.cronjobimpl.CustomerServiceCronJobImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CustomerServiceCronJobImpl</servlet-name>
<url-pattern>/slick_erp/cronCustomerService</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>DeliveryNoteCronJobImpl</servlet-name>
<servlet-class>com.slicktechnologies.server.cronjobimpl.DeliveryNoteCronJobImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DeliveryNoteCronJobImpl</servlet-name>
<url-pattern>/slick_erp/cronDeliveryNote</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>CustomerPaymentAPCronJobImpl</servlet-name>
<servlet-class>com.slicktechnologies.server.cronjobimpl.CustomerPaymentAPCronJobImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CustomerPaymentAPCronJobImpl</servlet-name>
<url-pattern>/slick_erp/cronCustomerAPPayment</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>CustomerPaymentARCronJobImpl</servlet-name>
<servlet-class>com.slicktechnologies.server.cronjobimpl.CustomerPaymentARCronJobImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CustomerPaymentARCronJobImpl</servlet-name>
<url-pattern>/slick_erp/cronCustomerARPayment</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>InvoiceAPCronJobImpl</servlet-name>
<servlet-class>com.slicktechnologies.server.cronjobimpl.InvoiceAPCronJobImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>InvoiceAPCronJobImpl</servlet-name>
<url-pattern>/slick_erp/cronCustomerAPInvoice</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>InvoiceARCronJobImpl</servlet-name>
<servlet-class>com.slicktechnologies.server.cronjobimpl.InvoiceARCronJobImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>InvoiceARCronJobImpl</servlet-name>
<url-pattern>/slick_erp/cronCustomerARInvoice</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>SalesQuotationCronJobImpl</servlet-name>
<servlet-class>com.slicktechnologies.server.cronjobimpl.SalesQuotationCronJobImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>SalesQuotationCronJobImpl</servlet-name>
<url-pattern>/slick_erp/cronSalesQuotation</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>ServiceQuotationCronJobImpl</servlet-name>
<servlet-class>com.slicktechnologies.server.cronjobimpl.ServiceQuotationCronJobImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ServiceQuotationCronJobImpl</servlet-name>
<url-pattern>/slick_erp/cronServiceQuotation</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>GoodsRecievedNoteCronJobImpl</servlet-name>
<servlet-class>com.slicktechnologies.server.cronjobimpl.GoodsReceiptNoteCronJobImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>GoodsRecievedNoteCronJobImpl</servlet-name>
<url-pattern>/slick_erp/cronGoodsReceiptNote</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>LeadCronJobImpl</servlet-name>
<servlet-class>com.slicktechnologies.server.cronjobimpl.LeadCronJobImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>LeadCronJobImpl</servlet-name>
<url-pattern>/slick_erp/cronLead</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>ContractRenewalCronJobImpl</servlet-name>
<servlet-class>com.slicktechnologies.server.cronjobimpl.ContractRenewalCronJobImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ContractRenewalCronJobImpl</servlet-name>
<url-pattern>/slick_erp/cronContractRenewal</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>PhysicalInventoryCronJobImpl</servlet-name>
<servlet-class>com.slicktechnologies.server.cronjobimpl.PhysicalInventoryCronJobImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>PhysicalInventoryCronJobImpl</servlet-name>
<url-pattern>/slick_erp/cronPhysicalInventoryCronJob</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>ApprovalCronJobImpl</servlet-name>
<servlet-class>com.slicktechnologies.server.cronjobimpl.ApprovalCronJobImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ApprovalCronJobImpl</servlet-name>
<url-pattern>/slick_erp/cronApproval</url-pattern>
</servlet-mapping>
我没有得到这个记录器并且在这行记录器下面: - logger.log(Level.SEVERE,&#34; compEntity的大小&#34; + compEntity.size());正如我在我的节目中所展示的
任何帮助?