axelor / axelor-open-suite Goto Github PK
View Code? Open in Web Editor NEWThe Axelor Open Suite based on Axelor Open Platform
Home Page: http://axelor.com
License: Other
The Axelor Open Suite based on Axelor Open Platform
Home Page: http://axelor.com
License: Other
**Build from source with instructions from https://docs.axelor.com/abs/5.0/install/source/linux.html
Result:
...
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project 'axelor-erp'.
Could not resolve all files for configuration ':classpath'.
Could not resolve com.axelor:axelor-gradle:5.0.+.
Required by:
project :
> Could not resolve com.axelor:axelor-gradle:5.0.+.
> Failed to list versions for com.axelor:axelor-gradle.
> Unable to load Maven meta-data from https://repository.axelor.com/nexus/public/com/axelor/axelor-gradle/maven-metadata.xml.
> Could not get resource 'https://repository.axelor.com/nexus/public/com/axelor/axelor-gradle/maven-metadata.xml'.
> Could not GET 'https://repository.axelor.com/nexus/public/com/axelor/axelor-gradle/maven-metadata.xml'.
> Received fatal alert: handshake_failure
i read this link https://www.axelor.com/retail/ , it's say that axelor integrates with point of sale, but i cant find any POS module on Axelor Bussiness Suites ? where can i find it..?
Axelor Docs define data series attribute like a list. I try for using two series in chart but chart displays only one series.
When printing a ventilated invoice, if there's an existing copy, it is fetched instead of making a "real" print. I understand that this is to prevent any unwanted modification on the document sent to eg. customer. But the UI still allows to modify some fields (notes, payment mode, …), which is fine since there's no reason to lock those "auxiliary" fields. But updated values can never be printed.
Folling this topic https://forum.axelor.com/t/problem-adding-customer-to-crm/1687/5?u=femtonext I saw that a PersistentException occured whern trying to create a new partner where no address is created.
This problem is due the code located in the PartnerBaseRepository lin,e 76-80
for (PartnerAddress partnerAddress : partner.getPartnerAddressList()) {
if (partnerAddress.getIsDefaultAddr()) {
partner.setMainAddress(partnerAddress.getAddress());
break;
}
}
If no address is created, the partner.getPartnerAddressList() call return null and throw a null pointer exception.
2 ways to avoid this:
diff --git a/axelor-base/src/main/java/com/axelor/apps/base/db/repo/PartnerBaseRepository.java b/axelor-base/src/main/java/com/axelor/apps/base/db/repo/PartnerBaseRepository.java
index 1fee856..7661118 100644
--- a/axelor-base/src/main/java/com/axelor/apps/base/db/repo/PartnerBaseRepository.java
+++ b/axelor-base/src/main/java/com/axelor/apps/base/db/repo/PartnerBaseRepository.java
@@ -72,10 +72,13 @@
if (!partner.getIsContact()) {
partner.setMainAddress(null);
- for (PartnerAddress partnerAddress : partner.getPartnerAddressList()) {
- if (partnerAddress.getIsDefaultAddr()) {
- partner.setMainAddress(partnerAddress.getAddress());
- break;
+ final List<PartnerAddress> addressList = partner.getPartnerAddressList();
+ if(addressList != null) {
+ for (PartnerAddress partnerAddress : addressList) {
+ if (partnerAddress.getIsDefaultAddr()) {
+ partner.setMainAddress(partnerAddress.getAddress());
+ break;
+ }
}
}
}
Regards
If paymentVouchersOnInvoice is set to true, only ventilated invoices can be bound to payment, but advance payment invoices cannot be ventilated without payment
Hi,
Starting with version 5.1, in Account Config if I try to Import a Chart I receive the message:
“Error in account chart import please check the log”
This is the log from tomcat8-stdout:
2019-03-12 18:39:06.630 INFO 32956 — [nio-8080-exec-1] com.axelor.data.csv.CSVImporter : Importing com.axelor.apps.account.db.TaxEquiv from account_taxEquiv.csv
2019-03-12 18:39:06.630 DEBUG 32956 — [nio-8080-exec-1] com.axelor.data.csv.CSVImporter : Header [fiscalPosition_code, fromTax_code, toTax_code]
2019-03-12 18:39:06.723 INFO 32956 — [nio-8080-exec-1] com.axelor.data.csv.CSVImporter : Importing com.axelor.apps.account.db.TaxAccount from account_taxAccount.csv
2019-03-12 18:39:06.786 ERROR 32956 — [nio-8080-exec-1] com.axelor.data.csv.CSVImporter : Error while importing C:\Program Files\Apache Software Foundation\Tomcat 8.5\temp\1552408723370-0\PCG_fr-20190312\account_taxAccount.csv.
2019-03-12 18:39:06.786 ERROR 32956 — [nio-8080-exec-1] com.axelor.data.csv.CSVImporter : No such class found com.axelor.apps.account.db.TaxAccount.
I use Axelor 5.1.4 on Windows 7
Best regards
hi
thanks for this good work
how can i add the arabic lang and using rtl
Hi
When i create a task for a project and i assigned it to a user, on the one2many representation the assigned to column is empty
Question from the forum :
I am getting this error when selecting a sales order while creating an invoice on both my own server and the online demo with the latest download
java.lang.NullPointerException
at com.axelor.apps.supplychain.service.SaleOrderInvoiceServiceImpl.fillInLines(SaleOrderInvoiceServiceImpl.java:376)
at com.axelor.apps.supplychain.web.InvoiceController.fillInLines(InvoiceController.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.axelor.meta.ActionHandler.call(ActionHandler.java:157)
at com.axelor.meta.schema.actions.ActionMethod.evaluate(ActionMethod.java:80)
at com.axelor.meta.schema.actions.ActionMethod.wrap(ActionMethod.java:85)
at com.axelor.meta.schema.actions.ActionGroup.evaluate(ActionGroup.java:219)
at com.axelor.meta.schema.actions.ActionGroup.wrap(ActionGroup.java:329)
at com.axelor.meta.ActionHandler.execute(ActionHandler.java:374)
at com.axelor.web.service.ActionService.execute(ActionService.java:96)
at com.axelor.web.service.ActionService$$EnhancerByGuice$$727a49e4.CGLIB$execute$1()
at com.axelor.web.service.ActionService$$EnhancerByGuice$$727a49e4$$FastClassByGuice$$ed29834f.invoke()
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75)
at com.axelor.rpc.RequestFilter.invoke(RequestFilter.java:59)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75)
at com.axelor.rpc.ResponseInterceptor.invoke(ResponseInterceptor.java:63)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75)
at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55)
at com.axelor.web.service.ActionService$$EnhancerByGuice$$727a49e4.execute()
at sun.reflect.GeneratedMethodAccessor4560.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)
at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:296)
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:250)
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:237)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)
at org.apache.shiro.guice.web.SimpleFilterChain.doFilter(SimpleFilterChain.java:44)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at com.axelor.auth.AuthFilter.doFilterInternal(AuthFilter.java:81)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.guice.web.SimpleFilterChain.doFilter(SimpleFilterChain.java:41)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.axelor.app.internal.AppFilter.doFilter(AppFilter.java:84)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:91)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.axelor.web.servlet.CorsFilter.doFilter(CorsFilter.java:114)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119)
at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)
at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)
at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Trying to add user (both in dev & wip branches) results in a validation error "password cannot be null"
When generating Supplier Arrival, an NPE is thrown if no unit is configured for the product (which seems to be the default case)
Question from the forum :
Getting this when trying to run batch invoicing job. Enter in Sales Batch, select invoicing and click on green button Invoicing Batch
java.lang.ClassNotFoundException: com.axelor.apps.sale.web.SaleBatchController
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.axelor.meta.ActionHandler.call(ActionHandler.java:154)
at com.axelor.meta.schema.actions.ActionMethod.evaluate(ActionMethod.java:80)
at com.axelor.meta.schema.actions.ActionMethod.wrap(ActionMethod.java:85)
at com.axelor.meta.schema.actions.ActionGroup.evaluate(ActionGroup.java:219)
at com.axelor.meta.schema.actions.ActionGroup.wrap(ActionGroup.java:329)
at com.axelor.meta.ActionHandler.execute(ActionHandler.java:374)
at com.axelor.web.service.ActionService.execute(ActionService.java:96)
at com.axelor.web.service.ActionService$$EnhancerByGuice$$727a49e4.CGLIB$execute$1()
at com.axelor.web.service.ActionService$$EnhancerByGuice$$727a49e4$$FastClassByGuice$$ed29834f.invoke()
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75)
at com.axelor.rpc.RequestFilter.invoke(RequestFilter.java:59)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75)
at com.axelor.rpc.ResponseInterceptor.invoke(ResponseInterceptor.java:63)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75)
at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55)
at com.axelor.web.service.ActionService$$EnhancerByGuice$$727a49e4.execute()
at sun.reflect.GeneratedMethodAccessor525.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)
at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:296)
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:250)
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:237)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)
at org.apache.shiro.guice.web.SimpleFilterChain.doFilter(SimpleFilterChain.java:44)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at com.axelor.auth.AuthFilter.doFilterInternal(AuthFilter.java:81)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.guice.web.SimpleFilterChain.doFilter(SimpleFilterChain.java:41)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.axelor.app.internal.AppFilter.doFilter(AppFilter.java:84)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:91)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.axelor.web.servlet.CorsFilter.doFilter(CorsFilter.java:135)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119)
at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)
at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)
at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)
at org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:877)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2508)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2497)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Reply
When exporting data from Axelor, columns names in the csv file are metaField name and not targetField name. So you can have multiple columns with the same name in your exported file. If you want to export your data to a new version of Axelor, you have to rename all fields name. I found that it's coded in AdvancedExportController.java but I don't reach to modify it.
It will be better to have "roles.name" in Titre field
Hi,
E.g. I want to add a new language, but I don't want modify system core.
Original XML: axelor-core/src/main/resource/views/User.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<object-views xmlns="http://axelor.com/xml/ns/object-views"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://axelor.com/xml/ns/object-views http://axelor.com/xml/ns/object-views/object-views_5.0.xsd">
<selection name="select.language">
<option value="en">English</option>
<option value="fr">French</option>
</selection>
[...]
So I'm creating a new module with this XML file: axelor-i18n-hu/src/main/resource/views/User.xml (doesn't work)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<object-views xmlns="http://axelor.com/xml/ns/object-views"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://axelor.com/xml/ns/object-views http://axelor.com/xml/ns/object-views/object-views_5.0.xsd">
<selection name="select.language">
<option value="hu">Hungarian</option>
</selection>
[...]
What is best practice to alter existing system function/view/etc without modify system core?
Thank you!
When adding a new customer, if you add its contact before first save, they won't be shown in CRM » Contacts since customer had no ID upon creation, so mainPartner is empty. They're correctly shown in the customer form though.
Quick solution would be to hide contacts pane until first save
Original summary (with proposed fix) can be found on the forums here.
UnitConversionService
stops early when searching for an appropriate conversion. This means if you are trying to convert A -> B
, and have defined conversions from A -> B
and B -> A
, it is possible for the UnitConversionService
to find B -> A
first, invert it, and use the resulting coefficient, even if a more correct conversion exists.
In the case where the UnitConversionService
decides to invert a conversion, it incorrectly calculates the scale of the resulting coefficient. When inverting a coefficient of 2000
, (i.e., when converting tons to pounds, or vice versa), the inverse coefficient should be 0.0005
, but is instead calculated as 0.000
because the scale is incorrectly determined to be 3
, when it should be 4
. This is because UnitConversionService
calculates the necessary scale as (int) Math.log10(unitConversion.getCoef().intValue())
, when it should be wrapping Math.log10(...)
in a call to Math.ceil(...)
before casting to an int
. We want to round the results of Math.log10(...)
up before truncating so as not to lose necessary information.
I ran into this issue while trying to debug why my unit conversions weren't working. A second ticket will be filed with that information.
If sales quotations versioning is in use, you cannot finalize a quotation. This is due to the PDF generation feature which is triggered when versions are used (SaleOrderServiceImpl::finalizeSaleOrder). PDF name is based on document sequence value (com.axelor.apps.sale.service.SaleOrderServiceImpl.getFileName(SaleOrder)) which defaults to *id (com.axelor.apps.sale.db.repo.SaleOrderManagementRepository.computeSeq(SaleOrder)), causing * character in filename, which raises an exception.
SaleOrderServiceImpl should sanitize filename before returning it (and MetaFile shouldn't accept anything as filename)
Button Restore All
appears only after we filtered some views...but when we select a row, it seems the restore option does not take care of the selection but restores all....as it takes a while;..
Then a popup with Error 500 occurs...
No cause reported in the tab.
But it seems the modification was taken into account as the view was changed as expected (here field SelectedLanguage should not be in the screen no more, and it's ok)
Question from the forum :
Getting this error when selecting stock batches from the side menu on both online demo and my own server
java.lang.NullPointerException
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:210)
at com.google.common.cache.LocalCache.get(LocalCache.java:3936)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824)
at com.axelor.db.mapper.Mapper.of(Mapper.java:174)
at com.axelor.web.service.ViewService.fields(ViewService.java:125)
at com.axelor.rpc.ResponseInterceptor.invoke(ResponseInterceptor.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)
at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:296)
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:250)
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:237)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)
at org.apache.shiro.guice.web.SimpleFilterChain.doFilter(SimpleFilterChain.java:44)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at com.axelor.auth.AuthFilter.doFilterInternal(AuthFilter.java:81)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.guice.web.SimpleFilterChain.doFilter(SimpleFilterChain.java:41)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.axelor.app.internal.AppFilter.doFilter(AppFilter.java:84)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:91)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.axelor.web.servlet.CorsFilter.doFilter(CorsFilter.java:135)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119)
at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)
at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)
at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)
at org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:877)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2508)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2497)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
All process of invoice payment with payment vouchers is wrong.
Hi,
Validation errors list does not seem to show up when editing a o2m field.
This seems to be tied to the editorCanSave property which remain to false.
Once the mail account is created, it cannot be changed (port, host, login...) and port 993 SSL provides an issue sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I think that the term “quality process” used in quality module labelling is misleading, it is in fact a control plan (“gamme de contrôle” in french).
If some core dev agrees, I could provide a PR to fix both Java & translations naming
The currency conversion service uses ECB Webservices (https://sdw-wsrest.ecb.europa.eu/) but incorrectly attempts to parse result as JSON, when XML (SDMX standard) is returned
First i login in ERP with admin user and navigate to module Apps management (http://localhost:8088/#/ds/admin.root.app.management/cards).
After that i copied a link above and same link open in other browser windows with incognito/privacy or other browser and logged as simple CRM user (example: democrm)
after signed i was able to see content of Apps management and not only but also with this user i was able to install Apps Module and edit content
2018-03-17 13:35:27.441 DEBUG 82 --- [ost-startStop-1] com.axelor.db.JpaModule : Configuring database...
2018-03-17 13:35:28.895 INFO 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configuring app modules...
2018-03-17 13:35:28.895 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.base.module.AdminModule
2018-03-17 13:35:28.902 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.message.module.MessageModule
2018-03-17 13:35:28.916 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.base.module.BaseModule
2018-03-17 13:35:28.978 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.account.module.AccountModule
2018-03-17 13:35:29.067 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.bankpayment.module.BankPaymentModule
2018-03-17 13:35:29.106 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.crm.module.CrmModule
2018-03-17 13:35:29.121 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.sale.module.SaleModule
2018-03-17 13:35:29.160 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.project.module.ProjectModule
2018-03-17 13:35:29.172 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.hr.module.HumanResourceModule
2018-03-17 13:35:29.220 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.purchase.module.PurchaseModule
2018-03-17 13:35:29.230 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.stock.module.StockModule
2018-03-17 13:35:29.262 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.supplychain.module.SupplychainModule
2018-03-17 13:35:29.321 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.businessproject.module.BusinessProjectModule
2018-03-17 13:35:29.333 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.production.module.ProductionModule
2018-03-17 13:35:29.369 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.businessproduction.module.BusinessProductionModule
2018-03-17 13:35:29.385 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.contract.module.ContractModule
2018-03-17 13:35:29.392 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.fleet.module.FleetModule
2018-03-17 13:35:29.490 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.helpdesk.module.HelpdeskModule
2018-03-17 13:35:29.498 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.studio.module.StudioModule
2018-03-17 13:35:29.511 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.marketing.module.MarketingModule
2018-03-17 13:35:29.516 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.prestashop.module.PrestaShopModule
2018-03-17 13:35:29.554 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.quality.module.QualityModule
2018-03-17 13:35:29.560 DEBUG 82 --- [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.talent.module.TalentModule
2018-03-17 13:35:35.032 DEBUG 82 --- [pool-2-thread-1] com.axelor.db.JpaScanner : Searching for entity classes...
2018-03-17 13:35:35.055 DEBUG 82 --- [pool-2-thread-2] com.axelor.db.JpaScanner : Searching for repository classes...
2018-03-17 13:35:35.098 DEBUG 82 --- [pool-2-thread-3] com.axelor.db.JpaScanner : Searching for value enum classes...
2018-03-17 13:35:35.986 DEBUG 82 --- [pool-2-thread-3] com.axelor.db.JpaScanner : Value enum classes found: 1
2018-03-17 13:35:36.607 DEBUG 82 --- [pool-2-thread-2] com.axelor.db.JpaScanner : Repository classes found: 540
2018-03-17 13:35:49.681 DEBUG 82 --- [pool-2-thread-1] com.axelor.db.JpaScanner : Entity classes found: 459
2018-03-17 13:36:07.528 UTC [124] ERROR: relation "bankpayment_bank_statement_line_operation_interbank_code_line_i" already exists
2018-03-17 13:36:07.528 UTC [124] STATEMENT: create index bankpayment_bank_statement_line_operation_interbank_code_line_IDX on bankpayment_bank_statement_line (operation_interbank_code_line)
2018-03-17 13:36:07.567 UTC [124] ERROR: relation "bankpayment_bank_statement_line_afb120bankpayment_bank_statemen" already exists
2018-03-17 13:36:07.567 UTC [124] STATEMENT: create index bankpayment_bank_statement_line_afb120bankpayment_bank_statement_line_currency_IDX on bankpayment_bank_statement_line_afb120 (currency)
2018-03-17 13:36:07.568 UTC [124] ERROR: relation "bankpayment_bank_statement_line_afb120bankpayment_bank_statemen" already exists
2018-03-17 13:36:07.568 UTC [124] STATEMENT: create index bankpayment_bank_statement_line_afb120bankpayment_bank_statement_line_bank_details_IDX on bankpayment_bank_statement_line_afb120 (bank_details)
2018-03-17 13:36:07.569 UTC [124] ERROR: relation "bankpayment_bank_statement_line_afb120bankpayment_bank_statemen" already exists
2018-03-17 13:36:07.569 UTC [124] STATEMENT: create index bankpayment_bank_statement_line_afb120bankpayment_bank_statement_line_operation_interbank_code_line_IDX on bankpayment_bank_statement_line_afb120 (operation_interbank_code_line)
2018-03-17 13:36:07.569 UTC [124] ERROR: relation "bankpayment_bank_statement_line_afb120bankpayment_bank_statemen" already exists
2018-03-17 13:36:07.569 UTC [124] STATEMENT: create index bankpayment_bank_statement_line_afb120bankpayment_bank_statement_line_reject_interbank_code_line_IDX on bankpayment_bank_statement_line_afb120 (reject_interbank_code_line)
2018-03-17 13:36:07.570 UTC [124] ERROR: relation "bankpayment_bank_statement_line_afb120bankpayment_bank_statemen" already exists
2018-03-17 13:36:07.570 UTC [124] STATEMENT: create index bankpayment_bank_statement_line_afb120bankpayment_bank_statement_line_bank_statement_IDX on bankpayment_bank_statement_line_afb120 (bank_statement)
2018-03-17 13:36:14.356 UTC [124] ERROR: relation "production_configurator_prod_process_line_configurator_prod_pro" already exists
2018-03-17 13:36:14.356 UTC [124] STATEMENT: create index production_configurator_prod_process_line_configurator_prod_process_IDX on production_configurator_prod_process_line (configurator_prod_process)
2018-03-17 13:36:16.003 UTC [124] ERROR: relation "stock_freight_carrier_customer_account_number_carrier_partner_i" already exists
2018-03-17 13:36:16.003 UTC [124] STATEMENT: create index stock_freight_carrier_customer_account_number_carrier_partner_IDX on stock_freight_carrier_customer_account_number (carrier_partner)
2018-03-17 13:36:21.870 UTC [124] ERROR: foreign key constraint "fk_cr7pkyx8viga5nd0p1i20r762" cannot be implemented
2018-03-17 13:36:21.870 UTC [124] DETAIL: Key columns "default_partner_language" and "id" are of incompatible types: character varying and bigint.
2018-03-17 13:36:21.870 UTC [124] STATEMENT: alter table base_app_base add constraint FK_cr7pkyx8viga5nd0p1i20r762 foreign key (default_partner_language) references base_language
2018-03-17 13:36:31.793 INFO 82 --- [ost-startStop-1] com.axelor.web.AppInitializer : Initializing...
2018-03-17 13:36:33.619 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-core...
2018-03-17 13:36:33.621 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-web...
2018-03-17 13:36:33.622 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-exception...
2018-03-17 13:36:33.624 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-admin...
2018-03-17 13:36:33.625 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-tool...
2018-03-17 13:36:33.626 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-message...
2018-03-17 13:36:33.627 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-base...
2018-03-17 13:36:33.632 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-account...
2018-03-17 13:36:33.632 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-bank-payment...
2018-03-17 13:36:33.632 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-crm...
2018-03-17 13:36:33.632 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-sale...
2018-03-17 13:36:33.632 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-project...
2018-03-17 13:36:33.632 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-human-resource...
2018-03-17 13:36:33.632 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-purchase...
2018-03-17 13:36:33.632 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-stock...
2018-03-17 13:36:33.633 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-supplychain...
2018-03-17 13:36:33.633 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-business-project...
2018-03-17 13:36:33.633 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-production...
2018-03-17 13:36:33.633 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-business-production...
2018-03-17 13:36:33.633 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-cash-management...
2018-03-17 13:36:33.633 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-client-portal...
2018-03-17 13:36:33.633 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-contract...
2018-03-17 13:36:33.633 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-fleet...
2018-03-17 13:36:33.633 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-helpdesk...
2018-03-17 13:36:33.633 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-studio...
2018-03-17 13:36:33.633 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-marketing...
2018-03-17 13:36:33.633 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-prestashop...
2018-03-17 13:36:33.633 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-quality...
2018-03-17 13:36:33.633 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-supplier-management...
2018-03-17 13:36:33.633 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-talent...
2018-03-17 13:36:33.633 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-teamsapp...
2018-03-17 13:36:33.634 INFO 82 --- [ost-startStop-1] com.axelor.meta.loader.ModuleManager : Loading package axelor-erp...
2018-03-17 13:36:34.069 DEBUG 82 --- [ost-startStop-1] com.axelor.meta.loader.ViewLoader : Loading view: prestashop-order-status-cache-entry-grid
2018-03-17 13:36:35.681 DEBUG 82 --- [ost-startStop-1] com.axelor.meta.loader.ViewLoader : Loading view: prestashop-order-status-cache-entry-form
2018-03-17 13:36:35.696 DEBUG 82 --- [ost-startStop-1] com.axelor.meta.loader.ViewLoader : Creating default views: /tmp/axelor/generated/views/PrestashopOrderStatusCacheEntry.xml
2018-03-17 13:36:35.873 INFO 82 --- [ost-startStop-1] com.axelor.web.AppInitializer : Ready to serve...
Running at http://localhost:8080/axelor-erp
2018-03-17 13:37:13.336 DEBUG 82 --- [nio-8080-exec-2] com.axelor.rpc.Resource : Searching 'com.axelor.meta.db.MetaMenu' with {_domain=self.user = :__user__ and self.link is not null, _domainContext={}}
2018-03-17 13:37:13.431 DEBUG 82 --- [nio-8080-exec-2] com.axelor.rpc.Resource : JPQL: SELECT new List(self.id, self.version, self.id, self.name, self.title, self.link) FROM MetaMenu self LEFT JOIN self.user _user WHERE ((_user = :__user__ and self.link is not null) AND (self.archived is null OR self.archived = false)) ORDER BY self.priority DESC, self.id DESC
2018-03-17 13:37:13.480 DEBUG 82 --- [nio-8080-exec-2] com.axelor.rpc.Resource : Records found: 0
2018-03-17 13:37:13.808 DEBUG 82 --- [nio-8080-exec-6] c.a.meta.schema.actions.ActionGroup : action: account.bank.order.awaiting.for.signature
2018-03-17 13:37:13.918 ERROR 82 --- [nio-8080-exec-6] o.h.engine.jdbc.spi.SqlExceptionHelper : Bad value for type long : en
2018-03-17 13:37:13.944 ERROR 82 --- [nio-8080-exec-6] com.axelor.script.CompositeScriptHelper : Script error: __config__.app.isApp('base') && __config__.app.getApp('base').getEnterpriseCommunication()
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) Error injecting constructor, java.lang.RuntimeException: Base app is not initialized
at com.axelor.apps.production.service.app.AppProductionServiceImpl.<init>(AppProductionServiceImpl.java:43)
at com.axelor.apps.production.service.app.AppProductionServiceImpl.class(AppProductionServiceImpl.java:43)
while locating com.axelor.apps.production.service.app.AppProductionServiceImpl
while locating com.axelor.apps.base.service.app.AppBaseServiceImpl
while locating com.axelor.apps.base.service.app.AppServiceImpl
while locating com.axelor.apps.base.service.app.AppService
1 error
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1028)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1054)
at com.axelor.inject.Beans.get(Beans.java:63)
at com.axelor.script.ScriptBindings$ConfigContext.get(ScriptBindings.java:264)
at groovy.lang.MetaClassImpl$6.getProperty(MetaClassImpl.java:1895)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:232)
at script1521293833826345474296.run(script1521293833826345474296.groovy:1)
at com.axelor.script.GroovyScriptHelper.eval(GroovyScriptHelper.java:138)
at com.axelor.script.CompositeScriptHelper.eval(CompositeScriptHelper.java:80)
at com.axelor.script.AbstractScriptHelper.eval(AbstractScriptHelper.java:91)
at com.axelor.script.AbstractScriptHelper.test(AbstractScriptHelper.java:52)
at com.axelor.meta.service.MetaService.test(MetaService.java:137)
at com.axelor.meta.service.MetaService.canShow(MetaService.java:115)
at com.axelor.meta.service.MetaService.filter(MetaService.java:162)
at com.axelor.meta.service.MetaService.getMenus(MetaService.java:378)
at com.axelor.web.service.ActionService.all(ActionService.java:64)
at com.axelor.web.service.ActionService$$EnhancerByGuice$$727a49e4.CGLIB$all$3(<generated>)
at com.axelor.web.service.ActionService$$EnhancerByGuice$$727a49e4$$FastClassByGuice$$ed29834f.invoke(<generated>)
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:76)
at com.axelor.rpc.ResponseInterceptor.invoke(ResponseInterceptor.java:65)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:77)
at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55)
at com.axelor.web.service.ActionService$$EnhancerByGuice$$727a49e4.all(<generated>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:294)
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:248)
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:235)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:398)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:205)
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:228)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)
at com.axelor.db.tenants.AbstractTenantFilter.doFilter(AbstractTenantFilter.java:73)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at org.apache.shiro.guice.web.SimpleFilterChain.doFilter(SimpleFilterChain.java:44)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at com.axelor.auth.AuthFilter.doFilterInternal(AuthFilter.java:81)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.guice.web.SimpleFilterChain.doFilter(SimpleFilterChain.java:41)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.axelor.app.internal.AppFilter.doFilter(AppFilter.java:94)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:91)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.axelor.db.tenants.AbstractTenantFilter.doFilter(AbstractTenantFilter.java:73)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.axelor.web.servlet.CorsFilter.doFilter(CorsFilter.java:136)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:135)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: Base app is not initialized
at com.axelor.apps.base.service.app.AppBaseServiceImpl.<init>(AppBaseServiceImpl.java:55)
at com.axelor.apps.production.service.app.AppProductionServiceImpl.<init>(AppProductionServiceImpl.java:43)
at com.axelor.apps.production.service.app.AppProductionServiceImpl$$EnhancerByGuice$$b6bc0b6.<init>(<generated>)
at com.axelor.apps.production.service.app.AppProductionServiceImpl$$EnhancerByGuice$$b6bc0b6$$FastClassByGuice$$7033247.newInstance(<generated>)
at com.google.inject.internal.ProxyFactory$ProxyConstructor.newInstance(ProxyFactory.java:265)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:111)
at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:33)
at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:95)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:133)
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:92)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:194)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:56)
at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:56)
at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:56)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1019)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1085)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1015)
... 84 common frames omitted
Caused by: javax.persistence.PersistenceException: org.hibernate.exception.DataException: could not execute query
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:147)
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:155)
at org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1423)
at org.hibernate.query.Query.getResultList(Query.java:146)
at com.axelor.db.Query.fetch(Query.java:339)
at com.axelor.db.Query.fetch(Query.java:326)
at com.axelor.db.Query.fetchOne(Query.java:365)
at com.axelor.apps.base.service.app.AppBaseServiceImpl.<init>(AppBaseServiceImpl.java:54)
... 107 common frames omitted
Caused by: org.hibernate.exception.DataException: could not execute query
at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:118)
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:111)
at org.hibernate.loader.Loader.doList(Loader.java:2618)
at org.hibernate.loader.Loader.doList(Loader.java:2598)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2430)
at org.hibernate.loader.Loader.list(Loader.java:2425)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:502)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:379)
at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:216)
at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1488)
at org.hibernate.query.internal.AbstractProducedQuery.doList(AbstractProducedQuery.java:1445)
at org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1414)
... 112 common frames omitted
Caused by: org.postgresql.util.PSQLException: Bad value for type long : en
at org.postgresql.jdbc.PgResultSet.toLong(PgResultSet.java:2859)
at org.postgresql.jdbc.PgResultSet.getLong(PgResultSet.java:2113)
at org.postgresql.jdbc.PgResultSet.getLong(PgResultSet.java:2505)
at com.zaxxer.hikari.pool.HikariProxyResultSet.getLong(HikariProxyResultSet.java)
at org.hibernate.type.descriptor.sql.BigIntTypeDescriptor$2.doExtract(BigIntTypeDescriptor.java:63)
at org.hibernate.type.descriptor.sql.BasicExtractor.extract(BasicExtractor.java:47)
at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:260)
at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:256)
at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:246)
at org.hibernate.type.ManyToOneType.hydrate(ManyToOneType.java:179)
at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2844)
at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1741)
at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1667)
at org.hibernate.loader.Loader.getRow(Loader.java:1556)
at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:740)
at org.hibernate.loader.Loader.processResultSet(Loader.java:985)
at org.hibernate.loader.Loader.doQuery(Loader.java:943)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:349)
at org.hibernate.loader.Loader.doList(Loader.java:2615)
... 121 common frames omitted
find bug on http://demo.axelor.com/axelor-erp/#/ds/referential.root.partners/list/1 when I tried the find duplicate function. Reproducible online I think. The cause is :
java.lang.NullPointerException
at com.axelor.apps.base.web.GeneralController.findDuplicateRecords(GeneralController.java:135)
at com.axelor.apps.base.web.GeneralController.showDuplicate(GeneralController.java:91)
I do not know how I ended up in this situation but if stockLocationLine quantities are inconsistent (because of late Stock module activation? because of exception thrown at wrong moment?), there is no way to go out of this situation.
Application should provide a batch allowing to recompute some or all cached quantities.
hi all
how can i import the source code in eclipse ????
Spotted on a production isntance, reproduced with a fresh install of the dev branch.
Note that it works "sometimes", if I order 5 printers, the quantity is correct, for 20, only 5 get impacted.
A quick look seems to lead to com.axelor.apps.stock.service.StockLocationLineServiceImpl#findIncomingPlannedStockMoveLines/com.axelor.apps.stock.service.StockLocationLineServiceImpl#findOutgoingPlannedStockMoveLines which do no "see" the planned lines of the currently processed stock move since they're not yet recorded in DB
Original summary (with proposed fix) can be found on the forums here.
When calculating a cost price for a BOM, if the units of the BOM lines aren't the same as the unit on a BOM line's product, the unit conversion is applied incorrectly.
For example, if I have a component product CompA, with a unit of Tons and a cost price of $200, and add it as a BOM line with a unit of Pounds and a quantity of 500, the resulting calculated cost is $200,000,000. This is clearly incorrect.
What the CostSheetLineServiceImpl
is doing in a few methods is this:
BigDecimal costPrice = unitConversionService.convert(product.getUnit(), unit,
product.getCostPrice().multiply(consumptionQty));
Effectively, given the previous example, what happens is this:
$200 500 Pound 2000 Pound $200,000,000 Pound^2
----- X --------- X ---------- = --------------------
1 Ton 1 1 Ton 1 Ton^2
What we want to do is this:
BigDecimal costPrice = product.getCostPrice().multiply(unitConversionService.convert(unit,
product.getUnit(), consumptionQty, appProductionService.getNbDecimalDigitForBomQty()));
This gives us the following formula:
$200 500 Pound 1 Ton
----- X --------- X ---------- = $50
1 Ton 1 2000 Pound
Alternatively, the various calls to unitConversionService.convert(...)
should reverse the order of their units, to simulate the division, but that doesn't read quite as clearly to me as explicitly converting the quantity units first, and then multiplying by the unit price.
Hi everyone,
I found an error in your code. so when i want create opportunity from partner or customer i have an error :
Error : Not an entity [class com.axelor.apps.base.db.Partner$ByteBuddy$zdDQYNGU]
in search, when i do the same thing with lead i haven't error.
So i found where is the problem.
Partner from axelor-crm
<action-view` name="action-partner-view-create-opportunity" title="Create opportunity (${ fullName })" model="com.axelor.apps.crm.db.Opportunity">
<view type="form" name="opportunity-form"/>
<context name="_partner" expr="eval: __this__"/>
<context name="_internalUserId" expr="eval: __user__.id"/>
</action-view>
Lead from axelor-crm
<action-view name="action-lead-view-create-opportunity" title="Create opportunity (${ fullName })" model="com.axelor.apps.crm.db.Opportunity">
<view type="form" name="opportunity-form"/>
<context name="_lead" expr="eval: __self__"/>
</action-view>
so when i chang in partner :
<context name="_partner" expr="eval: __this__"/>
by :
<context name="_partner" expr="eval: __self__"/>
this error disappears.
my company have access to 5.0.0 version.
I only want install CRM version. Here is list module I build with gradle
And this is my log file
Sep 15, 2016 9:14:34 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.axelor.web.AppContextListener
com.google.inject.CreationException: Unable to create injector, see the following errors:
No implementation for com.axelor.apps.sale.service.SaleOrderLineService was bound.
while locating com.axelor.apps.sale.service.SaleOrderLineService
for parameter 0 at com.axelor.apps.sale.service.SaleOrderServiceImpl.(SaleOrderServiceImpl.java:78)
at com.axelor.apps.sale.module.SaleModule.configure(SaleModule.java:40) (via modules: com.axelor.web.AppServletModule -> com.axelor.app.AppModule -> com.axelor.apps.sale.module.SaleModule)
No implementation for com.axelor.apps.sale.service.SaleOrderLineService was bound.
while locating com.axelor.apps.sale.service.SaleOrderLineService
for parameter 0 at com.axelor.apps.sale.service.SaleOrderServiceImpl.(SaleOrderServiceImpl.java:78)
while locating com.axelor.apps.sale.service.SaleOrderServiceImpl
for field at com.axelor.apps.sale.service.OpportunitySaleOrderServiceImpl.saleOrderService(OpportunitySaleOrderServiceImpl.java:28)
at com.axelor.apps.sale.module.SaleModule.configure(SaleModule.java:42) (via modules: com.axelor.web.AppServletModule -> com.axelor.app.AppModule -> com.axelor.apps.sale.module.SaleModule)
2 errors
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:466)
at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:155)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
at com.google.inject.Guice.createInjector(Guice.java:96)
at com.google.inject.Guice.createInjector(Guice.java:73)
at com.google.inject.Guice.createInjector(Guice.java:62)
at com.axelor.web.AppContextListener.getInjector(AppContextListener.java:82)
at com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:47)
at com.axelor.web.AppContextListener.contextInitialized(AppContextListener.java:44)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5099)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5615)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Sep 15, 2016 9:14:34 AM org.apache.catalina.core.StandardContext listenerStop
SEVERE: Exception sending context destroyed event to listener instance of class com.axelor.web.AppContextListener
java.lang.NullPointerException
at com.axelor.web.AppContextListener.contextDestroyed(AppContextListener.java:76)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5146)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5810)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:159)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Dear Team,
I am unable to install the version 5.0.3. Error as below:
HTTP Status 500 - Unable to find taglib "x" for URI: WEB-INF/axelor.tld
type Exception report
message Unable to find taglib "x" for URI: WEB-INF/axelor.tld
description The server encountered an internal error that prevented it from fulfilling this request.
exception
How can I fix this.
Steps to duplicate the issue.
CRM/Calls
Category of call only visible for admin, not for user. By default, when we select calls, and try to create a new call, Event is displayed. When we remove the Event (also, it is not correctly translated) then we cannot chose anymore a type. Check the screenshot with the 2 views (admin/user)...
With bare 4.0.0-RC4 install (tried manual install & bundled installer, same results), creating a new sales order cause it to be numbered as *12 instead of SO00012 according to configuration.
When help tooltip is displayed on the right of its element, it just flashes in an out. This is due to the fact that help icon is appended through a CSS :after pseudo-class which is ignored by offset.
Since bootstrap version is (very) old, this cannot be fixed by applying an offset to the tooltip (option is not taken into account).
Hi
Is it possible that Angular Material use in axelor as presentation layer?
And why the axelor team do not upgrade the user interface layer to Angular 2+?
Problem when planning a manufacturing order which create a product with a sequence
The NPE is
2019-04-16 22:34:30.084 ERROR 48943 --- [nio-8080-exec-7] c.a.exception.service.TraceBackService : java.lang.NullPointerException
at com.axelor.apps.stock.service.StockLocationLineServiceImpl.findIncomingPlannedStockMoveLines(StockLocationLineServiceImpl.java:628)
at com.axelor.apps.stock.service.StockLocationLineServiceImpl.computeFutureQty(StockLocationLineServiceImpl.java:590)
at com.axelor.apps.stock.service.StockLocationLineServiceImpl.updateLocation(StockLocationLineServiceImpl.java:377)
at com.axelor.apps.supplychain.service.StockLocationLineServiceSupplychainImpl.updateLocation(StockLocationLineServiceSupplychainImpl.java:55)
at com.axelor.apps.stock.service.StockLocationLineServiceImpl.updateDetailLocation(StockLocationLineServiceImpl.java:279)
at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:62)
at com.axelor.apps.stock.service.StockLocationLineServiceImpl.updateLocation(StockLocationLineServiceImpl.java:88)
at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:62)
at com.axelor.apps.stock.service.StockMoveLineServiceImpl.updateLocations(StockMoveLineServiceImpl.java:740)
at com.axelor.apps.supplychain.service.StockMoveLineServiceSupplychainImpl.updateLocations(StockMoveLineServiceSupplychainImpl.java:253)
at com.axelor.apps.stock.service.StockMoveLineServiceImpl.updateLocations(StockMoveLineServiceImpl.java:458)
at com.axelor.apps.stock.service.StockMoveServiceImpl.updateLocations(StockMoveServiceImpl.java:323)
at com.axelor.apps.stock.service.StockMoveServiceImpl.plan(StockMoveServiceImpl.java:296)
at com.axelor.apps.supplychain.service.StockMoveServiceSupplychainImpl.plan(StockMoveServiceSupplychainImpl.java:158)
at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:62)
at com.axelor.apps.production.service.manuforder.ManufOrderStockMoveService.createToProduceStockMove(ManufOrderStockMoveService.java:202)
at com.axelor.apps.production.service.manuforder.ManufOrderWorkflowService.plan(ManufOrderWorkflowService.java:128)
at
I solve the issue with some changes in StockLocationLineServiceImpl.java to select the detailed stock location.
2018-07-03 15:09:06.275 ERROR 5852 --- [0.1-8080-exec-7] c.a.exception.service.TraceBackService : net.fortuna.ical4j.connector.ObjectStoreException: java.net.UnknownHostException: [https://calendar.google.com/calendar/ical/...gmail_email_address.../private-...hash..../basic.ics]
at net.fortuna.ical4j.connector.dav.AbstractDavObjectStore.connect(AbstractDavObjectStore.java:132)
at com.axelor.apps.base.ical.ICalendarStore.connect(ICalendarStore.java:69)
at com.axelor.apps.base.ical.ICalendarService.testConnect(ICalendarService.java:193)
at com.axelor.apps.base.web.ICalendarController.testConnect(ICalendarController.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.axelor.meta.ActionHandler.call(ActionHandler.java:158)
at com.axelor.meta.schema.actions.ActionMethod.evaluate(ActionMethod.java:80)
at com.axelor.meta.schema.actions.ActionMethod.wrap(ActionMethod.java:85)
at com.axelor.meta.schema.actions.ActionGroup.evaluate(ActionGroup.java:225)
at com.axelor.meta.schema.actions.ActionGroup.wrap(ActionGroup.java:378)
at com.axelor.meta.ActionHandler.execute(ActionHandler.java:379)
at com.axelor.web.service.ActionService.execute(ActionService.java:101)
at com.axelor.web.service.ActionService$$EnhancerByGuice$$727a49e4.CGLIB$execute$1(<generated>)
at com.axelor.web.service.ActionService$$EnhancerByGuice$$727a49e4$$FastClassByGuice$$ed29834f.invoke(<generated>)
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:76)
at com.axelor.rpc.RequestFilter.invoke(RequestFilter.java:59)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:77)
at com.axelor.rpc.ResponseInterceptor.invoke(ResponseInterceptor.java:67)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:77)
at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55)
at com.axelor.web.service.ActionService$$EnhancerByGuice$$727a49e4.execute(<generated>)
at sun.reflect.GeneratedMethodAccessor401.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:294)
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:248)
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:235)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:398)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:205)
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:228)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)
at com.axelor.db.tenants.AbstractTenantFilter.doFilter(AbstractTenantFilter.java:73)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at org.apache.shiro.guice.web.SimpleFilterChain.doFilter(SimpleFilterChain.java:44)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at com.axelor.auth.AuthFilter.doFilterInternal(AuthFilter.java:82)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.guice.web.SimpleFilterChain.doFilter(SimpleFilterChain.java:41)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.axelor.app.internal.AppFilter.doFilter(AppFilter.java:94)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:91)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.axelor.db.tenants.AbstractTenantFilter.doFilter(AbstractTenantFilter.java:73)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.axelor.web.servlet.CorsFilter.doFilter(CorsFilter.java:136)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:135)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1471)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.UnknownHostException: [https://calendar.google.com/calendar/ical/...gmail_email_address.../private-...hash..../basic.ics]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)
at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:477)
at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:153)
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82)
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at net.fortuna.ical4j.connector.dav.DavClient.begin(DavClient.java:149)
at net.fortuna.ical4j.connector.dav.AbstractDavObjectStore.connect(AbstractDavObjectStore.java:129)
... 88 more
Hello,
Set stock module to be uninstalled via graphic interface, restarting the server got the following error:
[localhost-startStop-1] INFO com.axelor.meta.loader.ModuleManager - easypbx-crm
2017-05-20 18:17:14,139 [localhost-startStop-1] DEBUG com.axelor.meta.loader.ViewLoader - Loading view: meta-sequence-grid
2017-05-20 18:17:16,508 [localhost-startStop-1] DEBUG com.axelor.meta.loader.ViewLoader - Loading view: meta-sequence-form
2017-05-20 18:17:16,595 [localhost-startStop-1] DEBUG com.axelor.meta.loader.ViewLoader - Creating default views: /tmp/axelor/generated/views/MetaSequence.xml
2017-05-20 18:17:25,017 [localhost-startStop-1] INFO com.axelor.meta.loader.ModuleManager - Uninstall module: axelor-stock
2017-05-20 18:17:26,157 [localhost-startStop-1] ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper - ERROR: update or delete on table "meta_menu" violates foreign key constraint "fk_jk6vvh0bx8cx8o1tjacx6dtcn" on table "meta_menu"
Dettaglio: Key (id)=(167) is still referenced from table "meta_menu".
2017-05-20 18:17:26,286 [localhost-startStop-1] ERROR com.axelor.web.servlet.InitServlet - org.hibernate.exception.ConstraintViolationException: could not execute statement
javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: could not execute statement
at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1387)
at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1310)
at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:316)
at com.axelor.db.Query.count(Query.java:298)
at com.axelor.db.Query.remove(Query.java:382)
at com.axelor.meta.loader.ModuleManager.uninstall(ModuleManager.java:235)
at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:70)
at com.axelor.meta.loader.ModuleManager$1.run(ModuleManager.java:131)
at com.axelor.auth.AuditableRunner$1.call(AuditableRunner.java:58)
at com.axelor.auth.AuditableRunner$1.call(AuditableRunner.java:55)
at com.axelor.auth.AuditableRunner.run(AuditableRunner.java:90)
at com.axelor.auth.AuditableRunner.run(AuditableRunner.java:55)
at com.axelor.meta.loader.ModuleManager.initialize(ModuleManager.java:140)
at com.axelor.web.servlet.InitServlet.init(InitServlet.java:50)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at com.google.inject.servlet.ServletDefinition.init(ServletDefinition.java:121)
at com.google.inject.servlet.ManagedServletPipeline.init(ManagedServletPipeline.java:82)
at com.google.inject.servlet.ManagedFilterPipeline.initPipeline(ManagedFilterPipeline.java:103)
at com.google.inject.servlet.GuiceFilter.init(GuiceFilter.java:220)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4841)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5535)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.hibernate.exception.ConstraintViolationException: could not execute statement
at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:129)
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:124)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:109)
at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:189)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3358)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3558)
at org.hibernate.action.internal.EntityDeleteAction.execute(EntityDeleteAction.java:102)
at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:395)
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:387)
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:310)
at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:349)
at org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:67)
at org.hibernate.internal.SessionImpl.autoFlushIfRequired(SessionImpl.java:1166)
at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1223)
at org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)
at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:287)
... 28 more
Caused by: org.postgresql.util.PSQLException: ERROR: update or delete on table "meta_menu" violates foreign key constraint "fk_jk6vvh0bx8cx8o1tjacx6dtcn" on table "meta_menu"
Dettaglio: Key (id)=(167) is still referenced from table "meta_menu".
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2455)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2155)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:288)
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:430)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:356)
at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:168)
at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:135)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeUpdate(NewProxyPreparedStatement.java:147)
at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:186)
Deleting all menu entries (referencing the stock module) from database solve the problem
version: WIP-4.1
Sequence service holds a refDate that is used to substitute placeholders when generating sequence number.
Its use does not seem to be thread-safe, typical usage is:
sequenceService.setRefDate( someEntity.getSomeDate() ).getSequenceNumber(sequence)
It means that depending on how threads interlace, you can end up with something as
T1: sequenceService.setRefDate( someEntity.getSomeDate() ) T2: sequenceService.setRefDate( someOtherEntity.getSomeDate() ) T1: getSequenceNumber(sequence) // will get a sequence number based on someOtherEntity
Either such calls should be synchronized (not needed IMHO), or reference date should be passed directly to getSequenceNumber (with an overload using today as reference date)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.