hybris-data-hub

search(query) throws NullPointerException

你说的曾经没有我的故事 提交于 2019-12-13 04:01:52
问题 public List<DHProductLookupModel> findProductbyCCsapProductId(final String code) { final String queryString = "SELECT {p:" + DHProductLookupModel.SAPPRODUCTID + "}" + "FROM{" + DHProductLookupModel._TYPECODE + " AS p}" + "WHERE" + "{p:" + DHProductLookupModel.SAPPRODUCTID + "}=?code "; final FlexibleSearchQuery query = new FlexibleSearchQuery(queryString); query.addQueryParameter("code", code); return flexibleSearchService.<DHProductLookupModel> search(query).getResult(); } search(query)

Hybris Task Error: Failed to retrieve lock on task Skipping it

安稳与你 提交于 2019-12-13 03:26:45
问题 I am trying to trigger a Task Runner through Java in Hybris 5.3 This is my Controller where I Trigger the task: final TestDataModel dataModel = *save data in model* dataModel .setRunnerBean("responseTaskRunner"); final TaskConditionModel conditionModel = modelService.create(TaskConditionModel.class); final String uid = "Task" + System.currentTimeMillis(); conditionModel.setUniqueID(uid); dataModel .setConditions(Collections.singleton(conditionModel)); // Start the task in 1 second dataModel