Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0054468 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [POS2] [Retail Modules] Web POS | major | always | 2024-01-25 09:59 | 2024-02-01 14:42 | |||
Reporter | nicola_uva | View Status | public | |||||
Assigned To | SABARINATH P | |||||||
Priority | high | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | pi | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | Gold | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing/-/merge_requests/28 [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0054468: Print Product Labels: Impossible to add products, product categories in product label option in the POS | |||||||
Description | On the webpos when we call org.openbravo.mobile.core.service.jsonrest/org.openbravo.pos2.product.label.printing.master.ProductExtension?$timeout=5000 We got following error “Syntax error“: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: , near line 1, column 331 When createStockProductHql is called at the end is added “,“ but if printProductLabelHQLProperties.getHqlSelect() return null/empty we added a new “,“ and that cause the SQL QuerySyntaxException. NOTE: To reproduce the error you should NOT install org.openbravo.product.label.printing.commercialoperations | |||||||
Steps To Reproduce | 1. Configure print product labels 2. On WEBPOS click on the menu item "Print Product Labels" 3. full fill the form 4. type the product you want to print 5. Error is showed in the POS | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() 2024-01-23 22:37:23,995 [http-nio-127.0.0.1-8080-exec-8] ERROR org.openbravo.mobile.core.process.ProcessHQLQuery - org.openbravo.pos2.product.label.printing.master.ProductExtension: Error when generating query: -- (org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: , near line 1, column 331 [select coalesce((select sum(sd.quantityOnHand - sd.reservedQty) from Organization o join o.organizationWarehouseList ow join ow.warehouse w join w.locatorList l join l.inventoryStatus ls left join l.materialMgmtStorageDetailList sd with sd.product.id = product.id where o.id = :orgId and ls.available = true ), 0) as storeStock, , coalesce(pppe.pos2plpPrintpriceoptions, ppp.pos2plpPrintpriceoptions) as pos2plpPrintpriceoptions, ppp.standardPrice as nonCommercialPrice, COALESCE((SELECT opt1.taxCategory.id FROM OBFMTC_Product_TaxCategory opt1 WHERE opt1.active is true and opt1.product.id = product.id AND ad_isorgincluded(:orgId, opt1.organization.id, product.client.id) = (SELECT MIN(ad_isorgincluded(:orgId, opt2.organization.id, product.client.id)) FROM OBFMTC_Product_TaxCategory opt2 WHERE opt2.active is true and opt2.product.id = product.id AND ad_isorgincluded(:orgId, opt2.organization.id, product.client.id) >= 0) ), product.taxCategory.id) as taxCategory, product.obpos2NoStandardSale as obpos2NoStandardSale, product.productCategory.name as obpos2ProductCategoryName, case when product.obpos2Color is null then null else (select hexColor from Color where id = product.obpos2Color.id) end as color, product.obpos2Imageclass as obpos2Image, product.obpos2Pickupptype.id as obpos2PickuppointType, product.obpos2Deliveryctype.id as obpos2DeliverycontrolType, product.obpos2Notificationptype.id as obpos2NotificationpointType, coalesce(pppe.obpos2Printpriceoptions, ppp.obpos2Printpriceoptions) as obpos2Printpriceoptions, coalesce(pppe.obpos2Printpriceoptionsui, ppp.obpos2Printpriceoptionsui) as obpos2Printpriceoptionsui, product.obrdmDeliveryMode as obrdmDeliveryMode, product.obrdmDeliveryModeLyw as obrdmDeliveryModeLyw, product.obrdmIsdeliveryservice as obrdmIsdeliveryservice, product.id as id, product.organization.id as organization, product.searchKey as searchkey, product.name as _identifier, product.productCategory.id as productCategory, product.obposScale as obposScale, product.uOM.id as uOM, product.uOM.symbol as uOMsymbol, coalesce(product.uOM.standardPrecision) as uOMstandardPrecision, upper(product.uPCEAN) as uPCEAN, product.description as description, product.obposGroupedproduct as groupProduct, product.stocked as stocked, product.obposShowstock as showstock, product.isGeneric as isGeneric, product.productStatus.id as productStatus, product.genericProduct.id as generic_product_id, product.characteristicDescription as characteristicDescription, product.characteristicDescription||',' as characteristicDescriptionSearch, product.obposShowChDesc as showchdesc, product.productType as productType, product.includedProductCategories as includeProductCategories, product.includedProducts as includeProducts, product.printDescription as printDescription, product.oBPOSAllowAnonymousSale as oBPOSAllowAnonymousSale, product.returnable as returnable, product.overdueReturnDays as overdueReturnDays, product.ispricerulebased as isPriceRuleBased, product.obposProposalType as proposalType, product.obposIsmultiselectable as availableForMultiline, product.linkedToProduct as isLinkedToProduct, product.modifyTax as modifyTax, product.allowDeferredSell as allowDeferredSell, product.deferredSellMaxDays as deferredSellMaxDays, product.quantityRule as quantityRule, product.obposPrintservices as isPrintServices, product.weight as weight, false as crossStore, product.obposMaxpriceassocprod as obposMaxpriceassocprod, product.obposMinpriceassocprod as obposMinpriceassocprod, product.productCategory.obposMandatoryIssuance as isMandatoryIssuance, img.bindaryData as img, img.id as imgId, img.mimetype as mimetype, pli.bestseller as bestseller, pli.productStatus.id as productAssortmentStatus, coalesce(pppe.listPrice,ppp.listPrice) as listPrice, coalesce(pppe.standardPrice,ppp.standardPrice) as standardPrice, ppp.priceLimit as priceLimit, ppp.obposMaxPrice as maxPrice, ppp.cost as cost, coalesce(pppe.obposUseExtpromotions, ppp.obposUseextpromotions) as useExtPromotions, case when product.oBPOSSkipApplyPromotions = 'Y' or ppp.oBPOSSkipApplyPromotions = 'Y' then true else false end as skipApplyPromotions, ppp.algorithm as algorithm, case when product.active = 'Y' and coalesce(pli.active, 'Y') = 'Y' and coalesce(ppp.active, 'Y') = 'Y' and coalesce(pppe.active, 'Y') = 'Y' then true else false end as active, product.obposEditablePrice as obposEditablePrice, 'false' as ispack, case when product.attributeSet is not null then true else false end as hasAttributes, case when attrset.serialNo = 'Y' then true else false end as isSerialNo, product.obmupcMultiupcDesc as obmupcMultiupcDesc, (select template.templatePath from OBPOS_Print_Template template where product.obpgcPrinttemplate.id=template.id) as printTemplate, (select template.templatePath from OBPOS_Print_Template template where product.obpgcPrinttempemail.id=template.id) as printTemplateEmail, product.obpgcPrintcard as printCard, (select template.ispdf from OBPOS_Print_Template template where product.obpgcPrinttemplate.id=template.id) as templateIsPdf, (select template.printer from OBPOS_Print_Template template where product.obpgcPrinttemplate.id=template.id) as templatePrinter, product.obpgcUseautomaticseq as useAutomaticSequence, product.obgcneExpirationdays as expirationDays, product.gcnvGiftcardtype as gcnvGiftcardtype, product.gcnvAmount as gcnvInitialAmount, product.gcnvAspaymentmethod as gcnvAsPaymentMethod, product.gcnvRedemptiontype as gcnvRedemptionType, product.gcnvTaxablegiftcard as gcnvTaxablegiftcard, product.gcnvDiscountsrestricted as gcnvDiscountsrestricted FROM OBRETCO_Prol_Product as pli inner join pli.product as product left outer join product.image img left join product.attributeSet as attrset inner join product.pricingProductPriceList ppp left join ppp.pricingProductPriceExceptionList pppe with (( pppe.organization.id in (:valueEqArray5 )) and pppe.validFromDate <= :terminalDate AND pppe.validToDate >= :terminalDate and pppe.orgdepth = ( select max(pre.orgdepth) from PricingProductPriceException pre where pre.productPrice.id = ppp.id and pre.validFromDate <= :terminalDate AND pre.validToDate >= :terminalDate and ( pre.organization.id in (:valueEqArray4 )) and (pre.active = 'Y') )) WHERE 1=1 AND ( (upper(product.searchKey) like upper(:valueCon0 ) OR upper(upper(product.uPCEAN)) like upper(:valueCon1 ) OR upper(product.name) like upper(:valueCon2 )) AND ('false'='false') ) AND 1=1 AND (pli.obretcoProductlist.id = :productListId) AND (ppp.priceListVersion.id = :priceListVersionId) AND (( (product.active = 'Y') ) AND ( (pli.active = 'Y') ) AND ( (product.uOM.active = 'Y') ) AND ( (ppp.active = 'Y') )) and 1=1 order by product.id]) java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: , near line 1, column 331 [select coalesce((select sum(sd.quantityOnHand - sd.reservedQty) from Organization o join o.organizationWarehouseList ow join ow.warehouse w join w.locatorList l join l.inventoryStatus ls left join l.materialMgmtStorageDetailList sd with sd.product.id = product.id where o.id = :orgId and ls.available = true ), 0) as storeStock, , coalesce(pppe.pos2plpPrintpriceoptions, ppp.pos2plpPrintpriceoptions) as pos2plpPrintpriceoptions, ppp.standardPrice as nonCommercialPrice, COALESCE((SELECT opt1.taxCategory.id FROM OBFMTC_Product_TaxCategory opt1 WHERE opt1.active is true and opt1.product.id = product.id AND ad_isorgincluded(:orgId, opt1.organization.id, product.client.id) = (SELECT MIN(ad_isorgincluded(:orgId, opt2.organization.id, product.client.id)) FROM OBFMTC_Product_TaxCategory opt2 WHERE opt2.active is true and opt2.product.id = product.id AND ad_isorgincluded(:orgId, opt2.organization.id, product.client.id) >= 0) ), product.taxCategory.id) as taxCategory, product.obpos2NoStandardSale as obpos2NoStandardSale, product.productCategory.name as obpos2ProductCategoryName, case when product.obpos2Color is null then null else (select hexColor from Color where id = product.obpos2Color.id) end as color, product.obpos2Imageclass as obpos2Image, product.obpos2Pickupptype.id as obpos2PickuppointType, product.obpos2Deliveryctype.id as obpos2DeliverycontrolType, product.obpos2Notificationptype.id as obpos2NotificationpointType, coalesce(pppe.obpos2Printpriceoptions, ppp.obpos2Printpriceoptions) as obpos2Printpriceoptions, coalesce(pppe.obpos2Printpriceoptionsui, ppp.obpos2Printpriceoptionsui) as obpos2Printpriceoptionsui, product.obrdmDeliveryMode as obrdmDeliveryMode, product.obrdmDeliveryModeLyw as obrdmDeliveryModeLyw, product.obrdmIsdeliveryservice as obrdmIsdeliveryservice, product.id as id, product.organization.id as organization, product.searchKey as searchkey, product.name as _identifier, product.productCategory.id as productCategory, product.obposScale as obposScale, product.uOM.id as uOM, product.uOM.symbol as uOMsymbol, coalesce(product.uOM.standardPrecision) as uOMstandardPrecision, upper(product.uPCEAN) as uPCEAN, product.description as description, product.obposGroupedproduct as groupProduct, product.stocked as stocked, product.obposShowstock as showstock, product.isGeneric as isGeneric, product.productStatus.id as productStatus, product.genericProduct.id as generic_product_id, product.characteristicDescription as characteristicDescription, product.characteristicDescription||',' as characteristicDescriptionSearch, product.obposShowChDesc as showchdesc, product.productType as productType, product.includedProductCategories as includeProductCategories, product.includedProducts as includeProducts, product.printDescription as printDescription, product.oBPOSAllowAnonymousSale as oBPOSAllowAnonymousSale, product.returnable as returnable, product.overdueReturnDays as overdueReturnDays, product.ispricerulebased as isPriceRuleBased, product.obposProposalType as proposalType, product.obposIsmultiselectable as availableForMultiline, product.linkedToProduct as isLinkedToProduct, product.modifyTax as modifyTax, product.allowDeferredSell as allowDeferredSell, product.deferredSellMaxDays as deferredSellMaxDays, product.quantityRule as quantityRule, product.obposPrintservices as isPrintServices, product.weight as weight, false as crossStore, product.obposMaxpriceassocprod as obposMaxpriceassocprod, product.obposMinpriceassocprod as obposMinpriceassocprod, product.productCategory.obposMandatoryIssuance as isMandatoryIssuance, img.bindaryData as img, img.id as imgId, img.mimetype as mimetype, pli.bestseller as bestseller, pli.productStatus.id as productAssortmentStatus, coalesce(pppe.listPrice,ppp.listPrice) as listPrice, coalesce(pppe.standardPrice,ppp.standardPrice) as standardPrice, ppp.priceLimit as priceLimit, ppp.obposMaxPrice as maxPrice, ppp.cost as cost, coalesce(pppe.obposUseExtpromotions, ppp.obposUseextpromotions) as useExtPromotions, case when product.oBPOSSkipApplyPromotions = 'Y' or ppp.oBPOSSkipApplyPromotions = 'Y' then true else false end as skipApplyPromotions, ppp.algorithm as algorithm, case when product.active = 'Y' and coalesce(pli.active, 'Y') = 'Y' and coalesce(ppp.active, 'Y') = 'Y' and coalesce(pppe.active, 'Y') = 'Y' then true else false end as active, product.obposEditablePrice as obposEditablePrice, 'false' as ispack, case when product.attributeSet is not null then true else false end as hasAttributes, case when attrset.serialNo = 'Y' then true else false end as isSerialNo, product.obmupcMultiupcDesc as obmupcMultiupcDesc, (select template.templatePath from OBPOS_Print_Template template where product.obpgcPrinttemplate.id=template.id) as printTemplate, (select template.templatePath from OBPOS_Print_Template template where product.obpgcPrinttempemail.id=template.id) as printTemplateEmail, product.obpgcPrintcard as printCard, (select template.ispdf from OBPOS_Print_Template template where product.obpgcPrinttemplate.id=template.id) as templateIsPdf, (select template.printer from OBPOS_Print_Template template where product.obpgcPrinttemplate.id=template.id) as templatePrinter, product.obpgcUseautomaticseq as useAutomaticSequence, product.obgcneExpirationdays as expirationDays, product.gcnvGiftcardtype as gcnvGiftcardtype, product.gcnvAmount as gcnvInitialAmount, product.gcnvAspaymentmethod as gcnvAsPaymentMethod, product.gcnvRedemptiontype as gcnvRedemptionType, product.gcnvTaxablegiftcard as gcnvTaxablegiftcard, product.gcnvDiscountsrestricted as gcnvDiscountsrestricted FROM OBRETCO_Prol_Product as pli inner join pli.product as product left outer join product.image img left join product.attributeSet as attrset inner join product.pricingProductPriceList ppp left join ppp.pricingProductPriceExceptionList pppe with (( pppe.organization.id in (:valueEqArray5 )) and pppe.validFromDate <= :terminalDate AND pppe.validToDate >= :terminalDate and pppe.orgdepth = ( select max(pre.orgdepth) from PricingProductPriceException pre where pre.productPrice.id = ppp.id and pre.validFromDate <= :terminalDate AND pre.validToDate >= :terminalDate and ( pre.organization.id in (:valueEqArray4 )) and (pre.active = 'Y') )) WHERE 1=1 AND ( (upper(product.searchKey) like upper(:valueCon0 ) OR upper(upper(product.uPCEAN)) like upper(:valueCon1 ) OR upper(product.name) like upper(:valueCon2 )) AND ('false'='false') ) AND 1=1 AND (pli.obretcoProductlist.id = :productListId) AND (ppp.priceListVersion.id = :priceListVersionId) AND (( (product.active = 'Y') ) AND ( (pli.active = 'Y') ) AND ( (product.uOM.active = 'Y') ) AND ( (ppp.active = 'Y') )) and 1=1 order by product.id] at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:138) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final] at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final] at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final] at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:757) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final] at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:114) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final] at org.openbravo.mobile.core.process.SimpleQueryBuilder.getDalQuery(SimpleQueryBuilder.java:786) ~[classes/:?] at org.openbravo.mobile.core.process.ProcessHQLQuery.exec(ProcessHQLQuery.java:213) [classes/:?] at org.openbravo.mobile.core.process.SecuredJSONProcess.secureExec(SecuredJSONProcess.java:66) [classes/:?] at org.openbravo.mobile.core.process.MobileServiceProcessor.execProcess(MobileServiceProcessor.java:141) [classes/:?] at org.openbravo.mobile.core.process.MobileServiceProcessor.execServiceName(MobileServiceProcessor.java:116) [classes/:?] at org.openbravo.mobile.core.process.MobileService.doGetOrPost(MobileService.java:199) [classes/:?] at org.openbravo.mobile.core.process.MobileService.doPost(MobileService.java:76) [classes/:?] at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) [tomcat9-servlet-api-9.0.31.jar:?] at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:200) [openbravo-core.jar:?] at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:461) [classes/:?] at org.openbravo.client.kernel.BaseKernelServlet.callServiceInSuper(BaseKernelServlet.java:89) [classes/:?] at org.openbravo.mobile.core.process.WebServiceAuthenticatedServlet.service(WebServiceAuthenticatedServlet.java:67) [classes/:?] at org.openbravo.mobile.core.process.MobileService.service(MobileService.java:135) [classes/:?] at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) [tomcat9-servlet-api-9.0.31.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) [tomcat9-websocket-9.0.31.jar:9.0.31] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.openbravo.utils.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:66) [openbravo-core.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.openbravo.utils.CharsetFilter.doFilter(CharsetFilter.java:38) [openbravo-core.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.openbravo.client.kernel.KernelFilter$1.doAction(KernelFilter.java:65) [classes/:?] at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:47) [classes/:?] at org.openbravo.client.kernel.KernelFilter.doFilter(KernelFilter.java:74) [classes/:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.openbravo.dal.core.DalRequestFilter$1.doAction(DalRequestFilter.java:96) [classes/:?] at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:47) [classes/:?] at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:118) [classes/:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71) [log4j-web-2.17.1.jar:2.17.1] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:747) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat9-catalina-9.0.31.jar:9.0.31] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:375) [tomcat9-coyote-9.0.31.jar:9.0.31] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat9-coyote-9.0.31.jar:9.0.31] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) [tomcat9-coyote-9.0.31.jar:9.0.31] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1594) [tomcat9-coyote-9.0.31.jar:9.0.31] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat9-coyote-9.0.31.jar:9.0.31] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat9-util-9.0.31.jar:9.0.31] at java.lang.Thread.run(Thread.java:829) [?:?] Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: , near line 1, column 331 [select coalesce((select sum(sd.quantityOnHand - sd.reservedQty) from Organization o join o.organizationWarehouseList ow join ow.warehouse w join w.locatorList l join l.inventoryStatus ls left join l.materialMgmtStorageDetailList sd with sd.product.id = product.id where o.id = :orgId and ls.available = true ), 0) as storeStock, , coalesce(pppe.pos2plpPrintpriceoptions, ppp.pos2plpPrintpriceoptions) as pos2plpPrintpriceoptions, ppp.standardPrice as nonCommercialPrice, COALESCE((SELECT opt1.taxCategory.id FROM OBFMTC_Product_TaxCategory opt1 WHERE opt1.active is true and opt1.product.id = product.id AND ad_isorgincluded(:orgId, opt1.organization.id, product.client.id) = (SELECT MIN(ad_isorgincluded(:orgId, opt2.organization.id, product.client.id)) FROM OBFMTC_Product_TaxCategory opt2 WHERE opt2.active is true and opt2.product.id = product.id AND ad_isorgincluded(:orgId, opt2.organization.id, product.client.id) >= 0) ), product.taxCategory.id) as taxCategory, product.obpos2NoStandardSale as obpos2NoStandardSale, product.productCategory.name as obpos2ProductCategoryName, case when product.obpos2Color is null then null else (select hexColor from Color where id = product.obpos2Color.id) end as color, product.obpos2Imageclass as obpos2Image, product.obpos2Pickupptype.id as obpos2PickuppointType, product.obpos2Deliveryctype.id as obpos2DeliverycontrolType, product.obpos2Notificationptype.id as obpos2NotificationpointType, coalesce(pppe.obpos2Printpriceoptions, ppp.obpos2Printpriceoptions) as obpos2Printpriceoptions, coalesce(pppe.obpos2Printpriceoptionsui, ppp.obpos2Printpriceoptionsui) as obpos2Printpriceoptionsui, product.obrdmDeliveryMode as obrdmDeliveryMode, product.obrdmDeliveryModeLyw as obrdmDeliveryModeLyw, product.obrdmIsdeliveryservice as obrdmIsdeliveryservice, product.id as id, product.organization.id as organization, product.searchKey as searchkey, product.name as _identifier, product.productCategory.id as productCategory, product.obposScale as obposScale, product.uOM.id as uOM, product.uOM.symbol as uOMsymbol, coalesce(product.uOM.standardPrecision) as uOMstandardPrecision, upper(product.uPCEAN) as uPCEAN, product.description as description, product.obposGroupedproduct as groupProduct, product.stocked as stocked, product.obposShowstock as showstock, product.isGeneric as isGeneric, product.productStatus.id as productStatus, product.genericProduct.id as generic_product_id, product.characteristicDescription as characteristicDescription, product.characteristicDescription||',' as characteristicDescriptionSearch, product.obposShowChDesc as showchdesc, product.productType as productType, product.includedProductCategories as includeProductCategories, product.includedProducts as includeProducts, product.printDescription as printDescription, product.oBPOSAllowAnonymousSale as oBPOSAllowAnonymousSale, product.returnable as returnable, product.overdueReturnDays as overdueReturnDays, product.ispricerulebased as isPriceRuleBased, product.obposProposalType as proposalType, product.obposIsmultiselectable as availableForMultiline, product.linkedToProduct as isLinkedToProduct, product.modifyTax as modifyTax, product.allowDeferredSell as allowDeferredSell, product.deferredSellMaxDays as deferredSellMaxDays, product.quantityRule as quantityRule, product.obposPrintservices as isPrintServices, product.weight as weight, false as crossStore, product.obposMaxpriceassocprod as obposMaxpriceassocprod, product.obposMinpriceassocprod as obposMinpriceassocprod, product.productCategory.obposMandatoryIssuance as isMandatoryIssuance, img.bindaryData as img, img.id as imgId, img.mimetype as mimetype, pli.bestseller as bestseller, pli.productStatus.id as productAssortmentStatus, coalesce(pppe.listPrice,ppp.listPrice) as listPrice, coalesce(pppe.standardPrice,ppp.standardPrice) as standardPrice, ppp.priceLimit as priceLimit, ppp.obposMaxPrice as maxPrice, ppp.cost as cost, coalesce(pppe.obposUseExtpromotions, ppp.obposUseextpromotions) as useExtPromotions, case when product.oBPOSSkipApplyPromotions = 'Y' or ppp.oBPOSSkipApplyPromotions = 'Y' then true else false end as skipApplyPromotions, ppp.algorithm as algorithm, case when product.active = 'Y' and coalesce(pli.active, 'Y') = 'Y' and coalesce(ppp.active, 'Y') = 'Y' and coalesce(pppe.active, 'Y') = 'Y' then true else false end as active, product.obposEditablePrice as obposEditablePrice, 'false' as ispack, case when product.attributeSet is not null then true else false end as hasAttributes, case when attrset.serialNo = 'Y' then true else false end as isSerialNo, product.obmupcMultiupcDesc as obmupcMultiupcDesc, (select template.templatePath from OBPOS_Print_Template template where product.obpgcPrinttemplate.id=template.id) as printTemplate, (select template.templatePath from OBPOS_Print_Template template where product.obpgcPrinttempemail.id=template.id) as printTemplateEmail, product.obpgcPrintcard as printCard, (select template.ispdf from OBPOS_Print_Template template where product.obpgcPrinttemplate.id=template.id) as templateIsPdf, (select template.printer from OBPOS_Print_Template template where product.obpgcPrinttemplate.id=template.id) as templatePrinter, product.obpgcUseautomaticseq as useAutomaticSequence, product.obgcneExpirationdays as expirationDays, product.gcnvGiftcardtype as gcnvGiftcardtype, product.gcnvAmount as gcnvInitialAmount, product.gcnvAspaymentmethod as gcnvAsPaymentMethod, product.gcnvRedemptiontype as gcnvRedemptionType, product.gcnvTaxablegiftcard as gcnvTaxablegiftcard, product.gcnvDiscountsrestricted as gcnvDiscountsrestricted FROM OBRETCO_Prol_Product as pli inner join pli.product as product left outer join product.image img left join product.attributeSet as attrset inner join product.pricingProductPriceList ppp left join ppp.pricingProductPriceExceptionList pppe with (( pppe.organization.id in (:valueEqArray5 )) and pppe.validFromDate <= :terminalDate AND pppe.validToDate >= :terminalDate and pppe.orgdepth = ( select max(pre.orgdepth) from PricingProductPriceException pre where pre.productPrice.id = ppp.id and pre.validFromDate <= :terminalDate AND pre.validToDate >= :terminalDate and ( pre.organization.id in (:valueEqArray4 )) and (pre.active = 'Y') )) WHERE 1=1 AND ( (upper(product.searchKey) like upper(:valueCon0 ) OR upper(upper(product.uPCEAN)) like upper(:valueCon1 ) OR upper(product.name) like upper(:valueCon2 )) AND ('false'='false') ) AND 1=1 AND (pli.obretcoProductlist.id = :productListId) AND (ppp.priceListVersion.id = :priceListVersionId) AND (( (product.active = 'Y') ) AND ( (pli.active = 'Y') ) AND ( (product.uOM.active = 'Y') ) AND ( (ppp.active = 'Y') )) and 1=1 order by product.id] at org.hibernate.hql.internal.ast.QuerySyntaxException.convert(QuerySyntaxException.java:74) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final] at org.hibernate.hql.internal.ast.ErrorTracker.throwQueryException(ErrorTracker.java:93) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final] at org.hibernate.hql.internal.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:301) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final] at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:189) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final] at org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:144) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final] at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:112) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final] at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:73) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final] at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:162) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final] at org.hibernate.internal.AbstractSharedSessionContract.getQueryPlan(AbstractSharedSessionContract.java:636) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final] at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:748) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final] ... 56 more | |||||||
![]() |
||||||||
|
![]() |
|||
Date Modified | Username | Field | Change |
2024-01-25 09:59 | nicola_uva | New Issue | |
2024-01-25 09:59 | nicola_uva | Assigned To | => Retail |
2024-01-25 09:59 | nicola_uva | File Added: errorlog.txt | |
2024-01-25 09:59 | nicola_uva | OBNetwork customer | => Gold |
2024-01-25 09:59 | nicola_uva | Regression introduced by commit | => https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing/-/merge_requests/28 [^] |
2024-01-25 09:59 | nicola_uva | Triggers an Emergency Pack | => No |
2024-01-30 17:53 | aaroncalero | Project | Retail Modules => POS2 |
2024-02-01 07:27 | SABARINATH P | Assigned To | Retail => SABARINATH P |
2024-02-01 10:10 | SABARINATH P | Relationship added | duplicate of 0053502 |
2024-02-01 10:12 | SABARINATH P | Note Added: 0160064 | |
2024-02-01 10:17 | SABARINATH P | Note Deleted: 0160064 | |
2024-02-01 14:41 | SABARINATH P | Status | new => scheduled |
2024-02-01 14:42 | SABARINATH P | Status | scheduled => resolved |
2024-02-01 14:42 | SABARINATH P | Resolution | open => fixed |
2024-02-01 14:42 | SABARINATH P | Status | resolved => closed |
Copyright © 2000 - 2009 MantisBT Group |