om.google.appengine.tools.admin.AdminException: Unable to update app: Failed to

om.google.appengine.tools.admin.AdminException: Unable to update app: Failed to compile jsp files.
at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:333)
at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:52)
at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:400)
at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:148)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: com.google.appengine.tools.admin.JspCompilationException: Failed to compile jsp files.
at com.google.appengine.tools.admin.Application.compileJsps(Application.java:583)
at com.google.appengine.tools.admin.Application.createStagingDirectory(Application.java:434)
at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:327)
... 5 more

解决方法:The problem was that my jakarta-standard-1.1.2.jar is corrupted, when
> > i replaced it with another one, the problem was solved.

public function saveCoupon($data) { if ($data['start_time'] && $data['start_use_time']) { if ($data['start_use_time'] < $data['start_time']) { throw new AdminException(400513); } } if (!in_array((int)$data['receive_type'], [1, 2, 3, 4])) { throw new AdminException(400758); } if (!in_array((int)$data['is_permanent'], [0, 1])) { throw new AdminException(400758); } if (empty($data['coupon_title'])) { throw new AdminException(400759); } if ($data['end_time'] && $data['end_use_time']) { if ($data['end_use_time'] < $data['end_time']) { throw new AdminException(400514); } } $data['start_use_time'] = strtotime((string)$data['start_use_time']); $data['end_use_time'] = strtotime((string)$data['end_use_time']); $data['start_time'] = strtotime((string)$data['start_time']); $data['end_time'] = strtotime((string)$data['end_time']); $data['title'] = $data['coupon_title']; $data['remain_count'] = $data['total_count']; if ($data['receive_type'] == 2 || $data['receive_type'] == 3) { $data['is_permanent'] = 1; $data['total_count'] = 0; } $data['add_time'] = time(); $res = $this->dao->save($data); if ($data['product_id'] !== '' && $res) { $productIds = explode(',', $data['product_id']); $couponData = []; foreach ($productIds as $product_id) { $couponData[] = ['product_id' => $product_id, 'coupon_id' => $res->id]; } /** @var StoreCouponProductServices $storeCouponProductService */ $storeCouponProductService = app()->make(StoreCouponProductServices::class); $storeCouponProductService->saveAll($couponData); } if (!$res) throw new AdminException(100022); return (int)$res->id; }解读代码
最新发布
06-09
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

未来AI编程

共鸣===鼓励 打赏您随意

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值