You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@fineract.apache.org by Kelvin Ikome <kv...@gmail.com> on 2021/07/22 12:36:16 UTC

Unable to run Fineract 1.5.0 release in debug mode

Hi everyone,

Has anyone been able to run Fineract 1.5.0 in debug mode?

I get the following error on trying to connect Intelij remote debugger to a
running Fineract instance (I ran it using "./gradlew bootRun").

*```Error running 'Fineract': *
*Unable to open debugger port (localhost:8005): java.net.ConnectException
"Connection refused: connect"```*

Any ideas or suggestions would be appreciated.

Re: Unable to run Fineract 1.5.0 release in debug mode

Posted by Benura Abeywardena <be...@gmail.com>.
The green color debug button is located right next to the "Add
Configuration" button as shown in the first screenshot. (After configuring
the debug option you 'Add Configuration' will be replaced with 'debug-jvm'.

On Thu, 22 Jul 2021, 21:31 Benura Abeywardena, <be...@gmail.com> wrote:

> Yeah,  you need to select the line (hope you know how to add the debug
> point). And when you get the port has got connected to 5005, you need to
> press that button with an icon of an insect :) There it starts the
> dubugging feature. You need to wait until the server is fully up and
> running before sending the request
>
> On Thu, 22 Jul 2021, 19:38 Kelvin Ikome, <kv...@gmail.com> wrote:
>
>> I found the issue. I was using port 8005 instead of port 5005 (as in the
>> screenshot you sent).
>>
>> Thanks a lot.
>>
>> However, I have one other issue. With the remote debugger connected, it
>> doesn't stop at breakpoints. Do you know what could be the possible
>> cause/solution for this?
>>
>> On Thu, Jul 22, 2021 at 2:54 PM Benura Abeywardena <be...@gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> You need to add configurations. I'll attach some screenshots which I
>>> received from one of the developers regarding this. This method worked
>>> properly for me :)
>>>
>>> Thanks & Regards,
>>> Benura Abeywardena
>>>
>>> On Thu, Jul 22, 2021 at 7:17 PM Kelvin Ikome <kv...@gmail.com> wrote:
>>>
>>>> Hi Benura, thanks for your response. However, I didn't quite understand
>>>> what you meant here "... You need to configure debug properties in intelliJ
>>>> and there give the name as debug-jvm...".
>>>>
>>>> Please elaborate on this part.
>>>>
>>>> Here are the current configurations I have.
>>>> *Debugger*: Attach to remote JVM
>>>> *Transport*: Socket
>>>> *Host*: localhost
>>>> *Port*: 8005
>>>> *JDK*: 9 or later
>>>>
>>>> On Thu, Jul 22, 2021 at 1:45 PM Benura Abeywardena <be...@gmail.com>
>>>> wrote:
>>>>
>>>>> I think it should be ./gradlew bootRun --debug-jvm. You need to
>>>>> configure debug properties in intelliJ and there give the name as
>>>>> debug-jvm. After that you could execute the aforementioned command.
>>>>>
>>>>> Regards,
>>>>> Benura
>>>>>
>>>>> On Thu, 22 Jul 2021, 18:06 Kelvin Ikome, <kv...@gmail.com> wrote:
>>>>>
>>>>>> Hi everyone,
>>>>>>
>>>>>> Has anyone been able to run Fineract 1.5.0 in debug mode?
>>>>>>
>>>>>> I get the following error on trying to connect Intelij remote
>>>>>> debugger to a running Fineract instance (I ran it using "./gradlew
>>>>>> bootRun").
>>>>>>
>>>>>> *```Error running 'Fineract': *
>>>>>> *Unable to open debugger port (localhost:8005):
>>>>>> java.net.ConnectException "Connection refused: connect"```*
>>>>>>
>>>>>> Any ideas or suggestions would be appreciated.
>>>>>>
>>>>>

Re: Unable to run Fineract 1.5.0 release in debug mode

Posted by Benura Abeywardena <be...@gmail.com>.
Yeah,  you need to select the line (hope you know how to add the debug
point). And when you get the port has got connected to 5005, you need to
press that button with an icon of an insect :) There it starts the
dubugging feature. You need to wait until the server is fully up and
running before sending the request

On Thu, 22 Jul 2021, 19:38 Kelvin Ikome, <kv...@gmail.com> wrote:

> I found the issue. I was using port 8005 instead of port 5005 (as in the
> screenshot you sent).
>
> Thanks a lot.
>
> However, I have one other issue. With the remote debugger connected, it
> doesn't stop at breakpoints. Do you know what could be the possible
> cause/solution for this?
>
> On Thu, Jul 22, 2021 at 2:54 PM Benura Abeywardena <be...@gmail.com>
> wrote:
>
>> Hi,
>>
>> You need to add configurations. I'll attach some screenshots which I
>> received from one of the developers regarding this. This method worked
>> properly for me :)
>>
>> Thanks & Regards,
>> Benura Abeywardena
>>
>> On Thu, Jul 22, 2021 at 7:17 PM Kelvin Ikome <kv...@gmail.com> wrote:
>>
>>> Hi Benura, thanks for your response. However, I didn't quite understand
>>> what you meant here "... You need to configure debug properties in intelliJ
>>> and there give the name as debug-jvm...".
>>>
>>> Please elaborate on this part.
>>>
>>> Here are the current configurations I have.
>>> *Debugger*: Attach to remote JVM
>>> *Transport*: Socket
>>> *Host*: localhost
>>> *Port*: 8005
>>> *JDK*: 9 or later
>>>
>>> On Thu, Jul 22, 2021 at 1:45 PM Benura Abeywardena <be...@gmail.com>
>>> wrote:
>>>
>>>> I think it should be ./gradlew bootRun --debug-jvm. You need to
>>>> configure debug properties in intelliJ and there give the name as
>>>> debug-jvm. After that you could execute the aforementioned command.
>>>>
>>>> Regards,
>>>> Benura
>>>>
>>>> On Thu, 22 Jul 2021, 18:06 Kelvin Ikome, <kv...@gmail.com> wrote:
>>>>
>>>>> Hi everyone,
>>>>>
>>>>> Has anyone been able to run Fineract 1.5.0 in debug mode?
>>>>>
>>>>> I get the following error on trying to connect Intelij remote debugger
>>>>> to a running Fineract instance (I ran it using "./gradlew bootRun").
>>>>>
>>>>> *```Error running 'Fineract': *
>>>>> *Unable to open debugger port (localhost:8005):
>>>>> java.net.ConnectException "Connection refused: connect"```*
>>>>>
>>>>> Any ideas or suggestions would be appreciated.
>>>>>
>>>>

Re: Unable to run Fineract 1.5.0 release in debug mode

Posted by Kelvin Ikome <kv...@gmail.com>.
I found the issue. I was using port 8005 instead of port 5005 (as in the
screenshot you sent).

Thanks a lot.

However, I have one other issue. With the remote debugger connected, it
doesn't stop at breakpoints. Do you know what could be the possible
cause/solution for this?

On Thu, Jul 22, 2021 at 2:54 PM Benura Abeywardena <be...@gmail.com>
wrote:

> Hi,
>
> You need to add configurations. I'll attach some screenshots which I
> received from one of the developers regarding this. This method worked
> properly for me :)
>
> Thanks & Regards,
> Benura Abeywardena
>
> On Thu, Jul 22, 2021 at 7:17 PM Kelvin Ikome <kv...@gmail.com> wrote:
>
>> Hi Benura, thanks for your response. However, I didn't quite understand
>> what you meant here "... You need to configure debug properties in intelliJ
>> and there give the name as debug-jvm...".
>>
>> Please elaborate on this part.
>>
>> Here are the current configurations I have.
>> *Debugger*: Attach to remote JVM
>> *Transport*: Socket
>> *Host*: localhost
>> *Port*: 8005
>> *JDK*: 9 or later
>>
>> On Thu, Jul 22, 2021 at 1:45 PM Benura Abeywardena <be...@gmail.com>
>> wrote:
>>
>>> I think it should be ./gradlew bootRun --debug-jvm. You need to
>>> configure debug properties in intelliJ and there give the name as
>>> debug-jvm. After that you could execute the aforementioned command.
>>>
>>> Regards,
>>> Benura
>>>
>>> On Thu, 22 Jul 2021, 18:06 Kelvin Ikome, <kv...@gmail.com> wrote:
>>>
>>>> Hi everyone,
>>>>
>>>> Has anyone been able to run Fineract 1.5.0 in debug mode?
>>>>
>>>> I get the following error on trying to connect Intelij remote debugger
>>>> to a running Fineract instance (I ran it using "./gradlew bootRun").
>>>>
>>>> *```Error running 'Fineract': *
>>>> *Unable to open debugger port (localhost:8005):
>>>> java.net.ConnectException "Connection refused: connect"```*
>>>>
>>>> Any ideas or suggestions would be appreciated.
>>>>
>>>

Re: Unable to run Fineract 1.5.0 release in debug mode

Posted by Benura Abeywardena <be...@gmail.com>.
Hi,

You need to add configurations. I'll attach some screenshots which I
received from one of the developers regarding this. This method worked
properly for me :)

Thanks & Regards,
Benura Abeywardena

On Thu, Jul 22, 2021 at 7:17 PM Kelvin Ikome <kv...@gmail.com> wrote:

> Hi Benura, thanks for your response. However, I didn't quite understand
> what you meant here "... You need to configure debug properties in intelliJ
> and there give the name as debug-jvm...".
>
> Please elaborate on this part.
>
> Here are the current configurations I have.
> *Debugger*: Attach to remote JVM
> *Transport*: Socket
> *Host*: localhost
> *Port*: 8005
> *JDK*: 9 or later
>
> On Thu, Jul 22, 2021 at 1:45 PM Benura Abeywardena <be...@gmail.com>
> wrote:
>
>> I think it should be ./gradlew bootRun --debug-jvm. You need to configure
>> debug properties in intelliJ and there give the name as debug-jvm. After
>> that you could execute the aforementioned command.
>>
>> Regards,
>> Benura
>>
>> On Thu, 22 Jul 2021, 18:06 Kelvin Ikome, <kv...@gmail.com> wrote:
>>
>>> Hi everyone,
>>>
>>> Has anyone been able to run Fineract 1.5.0 in debug mode?
>>>
>>> I get the following error on trying to connect Intelij remote debugger
>>> to a running Fineract instance (I ran it using "./gradlew bootRun").
>>>
>>> *```Error running 'Fineract': *
>>> *Unable to open debugger port (localhost:8005):
>>> java.net.ConnectException "Connection refused: connect"```*
>>>
>>> Any ideas or suggestions would be appreciated.
>>>
>>

Re: Unable to run Fineract 1.5.0 release in debug mode

Posted by Kelvin Ikome <kv...@gmail.com>.
Hi Benura, thanks for your response. However, I didn't quite understand
what you meant here "... You need to configure debug properties in intelliJ
and there give the name as debug-jvm...".

Please elaborate on this part.

Here are the current configurations I have.
*Debugger*: Attach to remote JVM
*Transport*: Socket
*Host*: localhost
*Port*: 8005
*JDK*: 9 or later

On Thu, Jul 22, 2021 at 1:45 PM Benura Abeywardena <be...@gmail.com>
wrote:

> I think it should be ./gradlew bootRun --debug-jvm. You need to configure
> debug properties in intelliJ and there give the name as debug-jvm. After
> that you could execute the aforementioned command.
>
> Regards,
> Benura
>
> On Thu, 22 Jul 2021, 18:06 Kelvin Ikome, <kv...@gmail.com> wrote:
>
>> Hi everyone,
>>
>> Has anyone been able to run Fineract 1.5.0 in debug mode?
>>
>> I get the following error on trying to connect Intelij remote debugger to
>> a running Fineract instance (I ran it using "./gradlew bootRun").
>>
>> *```Error running 'Fineract': *
>> *Unable to open debugger port (localhost:8005): java.net.ConnectException
>> "Connection refused: connect"```*
>>
>> Any ideas or suggestions would be appreciated.
>>
>

Re: Unable to run Fineract 1.5.0 release in debug mode

Posted by Benura Abeywardena <be...@gmail.com>.
I think it should be ./gradlew bootRun --debug-jvm. You need to configure
debug properties in intelliJ and there give the name as debug-jvm. After
that you could execute the aforementioned command.

Regards,
Benura

On Thu, 22 Jul 2021, 18:06 Kelvin Ikome, <kv...@gmail.com> wrote:

> Hi everyone,
>
> Has anyone been able to run Fineract 1.5.0 in debug mode?
>
> I get the following error on trying to connect Intelij remote debugger to
> a running Fineract instance (I ran it using "./gradlew bootRun").
>
> *```Error running 'Fineract': *
> *Unable to open debugger port (localhost:8005): java.net.ConnectException
> "Connection refused: connect"```*
>
> Any ideas or suggestions would be appreciated.
>