[jira] [Created] (FINERACT-1395) Shutdown leaves java process running with leaked threads

2021-09-10 Thread Thomas Kerin (Jira)
Thomas Kerin created FINERACT-1395:
--

 Summary: Shutdown leaves java process running with leaked threads
 Key: FINERACT-1395
 URL: https://issues.apache.org/jira/browse/FINERACT-1395
 Project: Apache Fineract
  Issue Type: Bug
  Components: Build
Affects Versions: 1.5.0
 Environment: declare -x HOME="/root"
declare -x JAVA_HOME="/usr/lib/jvm/jdk-15.0.2"
declare -x LANG="C.UTF-8"
declare -x LESSCLOSE="/usr/bin/lesspipe %s %s"
declare -x LESSOPEN="| /usr/bin/lesspipe %s"
declare -x LOGNAME="root"
declare -x MAIL="/var/mail/root"
declare -x OLDPWD
declare -x 
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/lib/jvm/jdk-15.0.2/bin"
declare -x PWD="/root"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SUDO_COMMAND="/bin/bash"
declare -x SUDO_GID="0"
declare -x SUDO_UID="0"
declare -x SUDO_USER="root"
declare -x TERM="screen-256color"
declare -x USER="root"
declare -x USERNAME="root"
declare -x XDG_DATA_DIRS="/usr/local/share:/usr/share:/var/lib/snapd/desktop"

Reporter: Thomas Kerin


I have installed Mifos mifosplatform-21.07.01.RELEASE which uses fineract 1.5.0

When I trigger shutdown, a number of warnings about leaked threads are written 
to the log. After the shutdown completes, I notice a java process is still 
running

Sorry if I've posted this in the wrong place or if this is covered somewhere. 
I've searched for the 
'org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads' on 
the mailing list but it hasn't turned up much.

Here is the first error reported in the log, although there are several more

{{10-Sep-2021 14:37:44.339 WARNING [main] 
org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web 
application [fineract-provider] appears to have started a thread named 
[fineract_default_po}}{{ol housekeeper] but has failed to stop it. This is very 
likely to create a memory leak. Stack trace of thread: 
java.base@11.0.11/jdk.internal.misc.Unsafe.park(Native Method) }}
{{ 
java.base@11.0.11/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:234)}}
{{ 
java.base@11.0.11/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2123)}}
{{ 
java.base@11.0.11/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1182)
 }}
{{ 
java.base@11.0.11/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:899)
 }}
{{ 
java.base@11.0.11/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1054)
 }}
{{ 
java.base@11.0.11/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1114)}}
{{ 
java.base@11.0.11/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)}}
{{ java.base@11.0.11/java.lang.Thread.run(Thread.java:829) }}

 

{{I grepped the logs for the names of the other threads:}}

 

{{The web application [fineract-provider] appears to have started a thread 
named [fineract_default_pool housekeeper]}}
{{}}

{{The web application [fineract-provider] appears to have started a thread 
named [Scheduler1_Worker-5]}}
{{}}

{{The web application [fineract-provider] appears to have started a thread 
named [Scheduler1_Worker-6]}}
{{}}

{{The web application [fineract-provider] appears to have started a thread 
named [Scheduler1_Worker-7]}}
{{}}

{{The web application [fineract-provider] appears to have started a thread 
named [pool-11-thread-1]}}
{{}}

{{The web application [fineract-provider] appears to have started a thread 
named [Scheduler1group1_Worker-1]}}
{{}}

{{The web application [fineract-provider] appears to have started a thread 
named [Scheduler1group3_Worker-1]}}
{{}}

{{The web application [fineract-provider] appears to have started a thread 
named [pool-12-thread-1]}}
{{}}

{{The web application [fineract-provider] appears to have started a thread 
named [pool-13-thread-1]}}
{{}}

{{The web application [fineract-provider] appears to have started a thread 
named [SimpleAsyncTaskExecutor-27]}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-1349) Balloon Payment: Reschedule: change Fixed Principal percentage for each installment on active loan

2021-09-10 Thread Manoj Mohanan (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-1349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17413220#comment-17413220
 ] 

Manoj Mohanan commented on FINERACT-1349:
-

[~awasum] please check these PRs

 

[https://github.com/openMF/community-app/pull/3383]

 

https://github.com/apache/fineract/pull/1708

> Balloon Payment: Reschedule: change Fixed Principal percentage for each 
> installment on active loan
> --
>
> Key: FINERACT-1349
> URL: https://issues.apache.org/jira/browse/FINERACT-1349
> Project: Apache Fineract
>  Issue Type: Improvement
>  Components: Loan
>Reporter: Manoj Mohanan
>Assignee: Manoj Mohanan
>Priority: Minor
> Attachments: Screenshot 2021-04-19 at 17.48.04.png
>
>
> This is part of inventory financing requirement.
> Linked feature :  https://issues.apache.org/jira/browse/FINERACT-1348
> Add feature to modify the new settings/parameter  "fixed principal percentage 
> per installment " on an active loan.
> This can be done as reschedule feature along with other reschedule options.
>  
> post disbursement, go to reschedule loan option to modify the principal 
> percentage.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-1348) Balloon Payment: Fix Principal Portion for each installment to a fixed percentage value

2021-09-10 Thread Awasum Yannick (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-1348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17413215#comment-17413215
 ] 

Awasum Yannick commented on FINERACT-1348:
--

Thanks [~fynmanoj]... I have reopened and commented on the PR. You can fix the 
merge conflicts and we can merge that if the tests pass. Thanks.

> Balloon Payment: Fix Principal Portion for each installment to a fixed 
> percentage value
> ---
>
> Key: FINERACT-1348
> URL: https://issues.apache.org/jira/browse/FINERACT-1348
> Project: Apache Fineract
>  Issue Type: Improvement
>  Components: Loan
>Reporter: Manoj Mohanan
>Assignee: Manoj Mohanan
>Priority: Minor
> Attachments: Screenshot 2021-04-17 at 22.58.08.png
>
>
> This is part of inventory financing requirement.
> To achive Balloon Payment:
> For a fixed principal amortization loan, by fixing the Loan term and  
> principal percentage per installment, the remaining principal is added to the 
> last installment and thus the last installment becomes balloon payment.
> A new settings( parameter) 'fixed principal percentage per installment "  to 
> be introduced to loan product as well as Loan application with  CRUD changes 
> for the same.
> fix the principal percentage per installment` in both Flat interest method 
> and Declining balance method schedule
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-1348) Balloon Payment: Fix Principal Portion for each installment to a fixed percentage value

2021-09-10 Thread Manoj Mohanan (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-1348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17413206#comment-17413206
 ] 

Manoj Mohanan commented on FINERACT-1348:
-

[~awasum], [~avikganguly010]

The PR got closed as it went stale

 

[https://github.com/openMF/community-app/pull/3381]

 

[https://github.com/apache/fineract/pull/1702]

 

> Balloon Payment: Fix Principal Portion for each installment to a fixed 
> percentage value
> ---
>
> Key: FINERACT-1348
> URL: https://issues.apache.org/jira/browse/FINERACT-1348
> Project: Apache Fineract
>  Issue Type: Improvement
>  Components: Loan
>Reporter: Manoj Mohanan
>Assignee: Manoj Mohanan
>Priority: Minor
> Attachments: Screenshot 2021-04-17 at 22.58.08.png
>
>
> This is part of inventory financing requirement.
> To achive Balloon Payment:
> For a fixed principal amortization loan, by fixing the Loan term and  
> principal percentage per installment, the remaining principal is added to the 
> last installment and thus the last installment becomes balloon payment.
> A new settings( parameter) 'fixed principal percentage per installment "  to 
> be introduced to loan product as well as Loan application with  CRUD changes 
> for the same.
> fix the principal percentage per installment` in both Flat interest method 
> and Declining balance method schedule
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)