Questions asked by petershttps://answers.axonivy.com/questions/asked-by/595/peters/?type=rssQuestions asked by <a href="/users/595/peters" >peters</a>enFri, 29 May 2020 12:27:31 -0400Create Logger with Category for Runtime Loghttps://answers.axonivy.com/questions/4578/create-logger-with-category-for-runtime-log<p>Hi,</p> <p>I would like to create loggers, which behave like Ivy.log() i.e. which log to ivy.log and are also shown in the Designer Runtime Log) but use a custom category (instead of "user_code").</p> <p>For example:</p> <p><strong>Runtime Log:</strong> <img alt="alt text" src="https://answers.axonivy.com/upfiles/runtimelog.png"></p> <p><strong>ivy.log:</strong> <img alt="alt text" src="https://answers.axonivy.com/upfiles/ivylog_2iUORD5.png"></p> <p>Also a "dirty trick" would do, as I will encapsulate the logic at a single place.</p> <p>Is it possible to create such loggers?</p> <p>TIA</p>petersFri, 29 May 2020 12:27:31 -0400https://answers.axonivy.com/questions/4578/create-logger-with-category-for-runtime-logdesignerloggingElastic Search index recreation fails inconsistentlyhttps://answers.axonivy.com/questions/4179/elastic-search-index-recreation-fails-inconsistently<p>When re-starting the Ivy Engine (7.0.11), we found out, that elastic search index recreation fails everytime but with different objects.</p> <p>We then tried to call <code>DiCore.getGlobalInjector().getInstance(IBusinessDataManager.class).startIndexRecreation()</code> directly multiple times and almost every time a different object is reported as having problems, eg:</p> <pre><code>first call: bulk error: id=13a8e230cc9b47338d45e552678c1b10, index=ivy.businessdata-xxx.order, error={"type":"illegal_argument_exception","reason":"mapper [yyy.zzz] cannot be changed from type [float] to [long]"} next call: bulk error: id=0587301dfde5411a9caae3413ed25e7f, index=ivy.businessdata-xxx.order, error={"type":"illegal_argument_exception","reason":"mapper [yyy.zzz] cannot be changed from type [long] to [float]"} next call: bulk error: id=0271c00a7c5543c998bc81e5215e7949, index=ivy.businessdata-xxx.order, error={"type":"illegal_argument_exception","reason":"mapper [yyy.zzz] cannot be changed from type [long] to [float]"} </code></pre> <p>Please also note, that all three examples reference the same field of the same object type. How is this possible and how can we repair our index?</p> <p>TIA</p>petersThu, 21 Nov 2019 10:28:38 -0500https://answers.axonivy.com/questions/4179/elastic-search-index-recreation-fails-inconsistentlyindexbusiness-dataelasticsearchHow do I change Elastic Search setting index.max_result_window?https://answers.axonivy.com/questions/3696/how-do-i-change-elastic-search-setting-index-max_result_window<p>For a migration, I need to work with a large set of Elastic Search objects. Setting the limit to 100000, I get the following error:</p> <p>ElasticsearchException: Elasticsearch search documents failed because of: {"root_cause":[{"type":"query_phase_execution_exception","reason":"Result window is too large, from + size must be less than or equal to: [10000] but was [100000]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level setting."}],...</p> <p>How can the <strong>index.max_result_window</strong> setting be changed. Or - alternatively, how do I access the scroll API?</p> <p>Designer 7.2.1</p> <p>TIA Peter</p>petersMon, 25 Feb 2019 11:17:31 -0500https://answers.axonivy.com/questions/3696/how-do-i-change-elastic-search-setting-index-max_result_windowelasticsearchCalling NTLM protected REST service with SSOhttps://answers.axonivy.com/questions/3477/calling-ntlm-protected-rest-service-with-sso<p>In Ivy 7.1, is it possible to call a NTLM protected web service using the logged in user (therefore not configuring user/password in the REST client)?</p>petersMon, 08 Oct 2018 05:45:55 -0400https://answers.axonivy.com/questions/3477/calling-ntlm-protected-rest-service-with-ssossontlmauthenticationrestDisplay log4j Messages in Runtime Loghttps://answers.axonivy.com/questions/3466/display-log4j-messages-in-runtime-log<p>Is it possible, to configure Logging so that log4j messages from other modules, (like Hibernate) are shown directly in the Designer Runtime Log?</p>petersTue, 02 Oct 2018 04:21:16 -0400https://answers.axonivy.com/questions/3466/display-log4j-messages-in-runtime-logdesignerlogginglog4jDelete obsolete variables and web serviceshttps://answers.axonivy.com/questions/3328/delete-obsolete-variables-and-web-services<p>Is there any way (including DB manipulation) to delete unused (because for example renamed) variables and/or web services in the Engine?</p>petersFri, 15 Jun 2018 07:03:16 -0400https://answers.axonivy.com/questions/3328/delete-obsolete-variables-and-web-servicesengineadministrationwebserviceDefault value for selectOneMenuhttps://answers.axonivy.com/questions/1791/default-value-for-selectonemenu<p>We implement an address Component and in this component, we have a selectOneMenu to select a country from a list. We need to pre-select a specific country in the list if the country in the bean is unset (null). We tried to set the country into the bean in the components start() method, but this did not work.</p> <p>How can this be done?</p> <p>TIA</p>petersFri, 03 Jun 2016 17:40:36 -0400https://answers.axonivy.com/questions/1791/default-value-for-selectonemenujsfcomponentHow to start an Ivy project with a version number less than 1.0.0 in Designer 6.0?https://answers.axonivy.com/questions/1604/how-to-start-an-ivy-project-with-a-version-number-less-than-1-0-0-in-designer-6-0<p>When a new project is created in Designer 6.0, the project version will be 1, which translates to 1.0.0-SNAPSHOT in the maven pom.xml file.</p> <p>Is it possible, to start with a different number, less than 1.0.0 (for example 0.1.0-SNAPSHOT)?</p> <p>Thank you.</p>petersMon, 21 Dec 2015 16:27:22 -0500https://answers.axonivy.com/questions/1604/how-to-start-an-ivy-project-with-a-version-number-less-than-1-0-0-in-designer-6-0designer