Thread: [MantisConnect] Exception in addNote()
Brought to you by:
vboctor
From: Joe P. <jlp...@gm...> - 2008-07-02 17:26:05
|
This is a re-send as I have not seen my message come across the list or archives in 24 hours... Hello, I am getting an MCException when I call session.addNote() on an issue. Is this something I am doing wrong or is it a bug in MantisConnect? BACKGROUND I'm new to Mantis and MantisConnect. I am using the Java bindings version 1.1.1.0 with Mantis 1.1.2. I can successfully create an issue and even create a note using session.newNote(). Despite the exception, the note appears to be successfully created and associated with the Issue in the Mantis web GUI. My user has "developer" permissions in the system AND in the project I read the error to mean that MantisConnect is looking for a "send_email" parameter. Here is the snippet of code. It is part of a test program that simply creates an Issue with hard-coded values and appends a Note. I wrote it so that I can understand how to use MantisConnect. log.debug("issue.id="+id+" created"); INote note= session.newNote("This is a test note"); log.debug("adding note to issue.id="+id+""); session.addNote(id,note); // EXCEPTION HERE Here is a chunk of the relevant stack trace: Exception in thread "main" org.mantisbt.connect.MCException: Error Type: SYSTEM NOTICE, Error Description: Undefined variable: p_send_email, Stack Trace: Arraymc_issue_api.php L778 bugnote_add(84, 'This is a test note', '0:00', false, 0, '', '10') UnknownFile L? mc_issue_note_add('USERNAME', 'PASSWORD', 84, { ['id'] => 0, ['reporter'] => null, ['text'] => 'This is a test note', ['view_state'] => { ['id'] => 10, ['name'] => null }, ['date_submitted'] => null, ['last_modified'] => null }) nusoap.php L3997 call_user_func_array('mc_issue_note_add', { [0] => 'USERNAME', [1] => 'PASSWORD', [2] => 84, [3] => { ['id'] => 0, ['reporter'] => null, ['text'] => 'This is a test note', ['view_state'] => { ['id'] => 10, ['name'] => null }, ['date_submitted'] => null, ['last_modified'] => null } }) nusoap.php L3686 invoke_method() Thanks for any suggestions or insight! -Joe |
From: Lanser P. <pe...@tw...> - 2008-07-03 09:16:36
|
Hi, I think this is a bug in MantisConnect. I'll have a look at it as soon as possible. Regards, Peter > This is a re-send as I have not seen my message come across the list or > archives in 24 hours... > > Hello, > > I am getting an MCException when I call session.addNote() on an issue. > Is this something I am doing wrong or is it a bug in MantisConnect? > > BACKGROUND > > I'm new to Mantis and MantisConnect. I am using the Java bindings > version 1.1.1.0 with Mantis 1.1.2. I can successfully create an issue > and even create a note using session.newNote(). Despite the exception, > the note appears to be successfully created and associated with the > Issue in the Mantis web GUI. My user has "developer" permissions in the > system AND in the project > > I read the error to mean that MantisConnect is looking for a > "send_email" parameter. > > Here is the snippet of code. It is part of a test program that simply > creates an Issue with hard-coded values and appends a Note. I wrote it > so that I can understand how to use MantisConnect. > > log.debug("issue.id="+id+" created"); > INote note= session.newNote("This is a test note"); > log.debug("adding note to issue.id="+id+""); > session.addNote(id,note); // EXCEPTION HERE > > Here is a chunk of the relevant stack trace: > > Exception in thread "main" org.mantisbt.connect.MCException: Error Type: > SYSTEM NOTICE, > Error Description: > Undefined variable: p_send_email, > Stack Trace: > Arraymc_issue_api.php L778 bugnote_add(84, 'This is a test note', > '0:00', false, > 0, '', '10') > UnknownFile L? mc_issue_note_add('USERNAME', 'PASSWORD', 84, { ['id'] => > 0, ['reporter'] => null, ['text'] => 'This is a test note', > ['view_state'] => { ['id'] => 10, ['name'] => null }, ['date_submitted'] > => null, > ['last_modified'] => null }) > nusoap.php L3997 call_user_func_array('mc_issue_note_add', { [0] => > 'USERNAME', > [1] => 'PASSWORD', [2] => 84, [3] => { ['id'] => 0, ['reporter'] => > null, > ['text'] => 'This is a test note', ['view_state'] => { ['id'] => 10, > ['name'] => null > }, ['date_submitted'] => null, ['last_modified'] => null } }) > nusoap.php L3686 invoke_method() > > > Thanks for any suggestions or insight! > > -Joe -- DI (FH) Peter Lanser Nietzschestrasse 2e/EG A - 4020 Linz Tel.: 0 650 / 41 25 038 |
From: Joe P. <jlp...@gm...> - 2008-07-03 12:11:16
|
Peter, Thanks for your response. I think I found another related problem. There seems to be an addNote() embedded internally to the updateIssue(). I have noticed that this same exception is triggered when I call updateIssue() for any issues that already have notes on them. In my case the issue I'm updating was created manually and notes were added by the developer. My code just updates some custom fields. During the updateIssue() MantisConnect seems to duplicate the existing notes to the issue. This creates 2 problems: 1- the previously reported exception is triggered in my program 2- the existing note is now duplicated on the Mantis Issue Thanks again! -Joe On Thu, Jul 3, 2008 at 5:06 AM, Lanser Peter <pe...@tw...> wrote: > Hi, > > I think this is a bug in MantisConnect. > > I'll have a look at it as soon as possible. > > Regards, > Peter > > > This is a re-send as I have not seen my message come across the list or > > archives in 24 hours... > > |
From: Victor B. <vb...@gm...> - 2008-07-04 23:04:53
|
This issue seems to be related to: http://www.mantisbt.org/bugs/view.php?id=9309 On Thu, Jul 3, 2008 at 5:11 AM, Joe Phillips <jlp...@gm...> wrote: > Peter, > > Thanks for your response. > > I think I found another related problem. There seems to be an addNote() > embedded internally to the updateIssue(). > > I have noticed that this same exception is triggered when I call > updateIssue() for any issues that already have notes on them. In my case > the issue I'm updating was created manually and notes were added by the > developer. My code just updates some custom fields. During the > updateIssue() MantisConnect seems to duplicate the existing notes to the > issue. This creates 2 problems: > > 1- the previously reported exception is triggered in my program > 2- the existing note is now duplicated on the Mantis Issue > > Thanks again! > > -Joe > > > On Thu, Jul 3, 2008 at 5:06 AM, Lanser Peter <pe...@tw...> wrote: >> >> Hi, >> >> I think this is a bug in MantisConnect. >> >> I'll have a look at it as soon as possible. >> >> Regards, >> Peter >> >> > This is a re-send as I have not seen my message come across the list or >> > archives in 24 hours... >> > > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > MantisConnect-users mailing list > Man...@li... > https://lists.sourceforge.net/lists/listinfo/mantisconnect-users > > |
From: Joe P. <jlp...@gm...> - 2008-07-08 01:29:09
|
Thanks guys, I'll keep an eye on the next release (1.1.3) -Joe On Fri, Jul 4, 2008 at 7:04 PM, Victor Boctor <vb...@gm...> wrote: > This issue seems to be related to: > http://www.mantisbt.org/bugs/view.php?id=9309 > > On Thu, Jul 3, 2008 at 5:11 AM, Joe Phillips <jlp...@gm...> > wrote: > > Peter, > > > > Thanks for your response. > > > > I think I found another related problem. There seems to be an addNote() > > embedded internally to the updateIssue(). > > > > I have noticed that this same exception is triggered when I call > > updateIssue() for any issues that already have notes on them. In my case > > the issue I'm updating was created manually and notes were added by the > > developer. My code just updates some custom fields. During the > > updateIssue() MantisConnect seems to duplicate the existing notes to the > > issue. This creates 2 problems: > > > > 1- the previously reported exception is triggered in my program > > 2- the existing note is now duplicated on the Mantis Issue > > > > Thanks again! > > > > -Joe > > > > > > On Thu, Jul 3, 2008 at 5:06 AM, Lanser Peter <pe...@tw...> wrote: > >> > >> Hi, > >> > >> I think this is a bug in MantisConnect. > >> > >> I'll have a look at it as soon as possible. > >> > >> Regards, > >> Peter > >> > >> > This is a re-send as I have not seen my message come across the list > or > >> > archives in 24 hours... > >> > > > > > > ------------------------------------------------------------------------- > > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > > Studies have shown that voting for your favorite open source project, > > along with a healthy diet, reduces your potential for chronic lameness > > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > > _______________________________________________ > > MantisConnect-users mailing list > > Man...@li... > > https://lists.sourceforge.net/lists/listinfo/mantisconnect-users > > > > > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > MantisConnect-users mailing list > Man...@li... > https://lists.sourceforge.net/lists/listinfo/mantisconnect-users > |
From: Joe P. <jlp...@gm...> - 2008-07-16 20:55:26
|
Victor, The patch mentioned on this issue report seems to solve the exception problem I saw on my 1.1.2 installation. Thanks! -Joe On Fri, Jul 4, 2008 at 7:04 PM, Victor Boctor <vb...@gm...> wrote: > This issue seems to be related to: > http://www.mantisbt.org/bugs/view.php?id=9309 > > On Thu, Jul 3, 2008 at 5:11 AM, Joe Phillips <jlp...@gm...> > wrote: > > Peter, > > > > Thanks for your response. > > > > I think I found another related problem. There seems to be an addNote() > > embedded internally to the updateIssue(). > > > > I have noticed that this same exception is triggered when I call > > updateIssue() for any issues that already have notes on them. In my case > > the issue I'm updating was created manually and notes were added by the > > developer. My code just updates some custom fields. During the > > updateIssue() MantisConnect seems to duplicate the existing notes to the > > issue. This creates 2 problems: > > > > 1- the previously reported exception is triggered in my program > > 2- the existing note is now duplicated on the Mantis Issue > > > > Thanks again! > > > > -Joe > > > > > > On Thu, Jul 3, 2008 at 5:06 AM, Lanser Peter <pe...@tw...> wrote: > >> > >> Hi, > >> > >> I think this is a bug in MantisConnect. > >> > >> I'll have a look at it as soon as possible. > >> > >> Regards, > >> Peter > >> > >> > This is a re-send as I have not seen my message come across the list > or > >> > archives in 24 hours... > >> > > > > > > ------------------------------------------------------------------------- > > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > > Studies have shown that voting for your favorite open source project, > > along with a healthy diet, reduces your potential for chronic lameness > > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > > _______________________________________________ > > MantisConnect-users mailing list > > Man...@li... > > https://lists.sourceforge.net/lists/listinfo/mantisconnect-users > > > > > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > MantisConnect-users mailing list > Man...@li... > https://lists.sourceforge.net/lists/listinfo/mantisconnect-users > |