This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243727 - Unexpected error: 'For input string: "leave"' while pushing a commit w/ task
Summary: Unexpected error: 'For input string: "leave"' while pushing a commit w/ task
Status: REOPENED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Jira (show other bugs)
Version: 8.0
Hardware: PC Windows 8
: P3 normal with 3 votes (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-10 12:11 UTC by svierkant
Modified: 2014-09-03 07:38 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Messages.log (25.12 KB, application/octet-stream)
2014-06-18 08:41 UTC, Paul-C
Details
Output from messages.log (51.24 KB, application/octet-stream)
2014-08-31 20:49 UTC, ismith78
Details

Note You need to log in before you can comment on or make changes to this bug.
Description svierkant 2014-04-10 12:11:26 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Windows 8 version 6.2 running on amd64
Java; VM; Vendor = 1.7.0_40
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.0-b56

After pushing a commit to remote, there is popup that says: Unexpected error: For input string: "leave"

It only happens when I update a (JIRA) task with my commit.
Comment 1 Marian Mirilovic 2014-04-17 16:02:59 UTC
Could you please attach messages.log and reopen ? Thanks in advance.
Comment 2 Paul-C 2014-06-18 08:41:20 UTC
Created attachment 147713 [details]
Messages.log
Comment 3 Paul-C 2014-06-18 08:42:21 UTC
I get the same thing - but only when the JIRA Connector Type is set to "5.0+". Switch back to "3.13+" and the problem goes away.

Messages.log attached.
Comment 4 Tomas Stupka 2014-07-24 11:54:08 UTC
i would expect some trace related to the error in the msg.log 

please reproduce the problem and attach than the messages.log to the issue

(or is the already attached messages.log from a netbeans session where the reported problem occurred?)

thanks
Comment 5 Paul-C 2014-07-24 12:47:24 UTC
By an extraordinary coincidence I have just this morning uninstalled Jira so I am now unable to reproduce the issue.

I feel confident - however - that the messages.log I posted IS from a session that exhibited the problem.

I hope you find the issue easy to reproduce.
Comment 6 ismith78 2014-08-31 20:45:47 UTC
I have the exact same error with posting Jira task with a commit - updates using netbeans for anything that isn't a task commit is fine (including if the defect is a bug.
Comment 7 ismith78 2014-08-31 20:49:53 UTC
Created attachment 148970 [details]
Output from messages.log

Could only find messages.log in ~/Library/Application Support/NetBeans/8.0/var/log on the Mac.
Comment 8 ismith78 2014-08-31 20:51:31 UTC
Key bit of text appears to be

WARNING [org.netbeans.ProxyClassLoader]: Will not load class com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient arbitrarily from one of NetbinoxLoader delegating to com.atlassian.connector.eclipse.jira.core_3.0.8.v20130328 and Netigso[reference:file:extra/modules/com-atlassian-connector-eclipse-jira-core-rest.jar] starting from SystemClassLoader[493 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE
WARNING [org.netbeans.ProxyClassLoader]: Will not load class com.atlassian.connector.eclipse.internal.jira.core.JiraTaskDataHandler arbitrarily from one of NetbinoxLoader delegating to com.atlassian.connector.eclipse.jira.core_3.0.8.v20130328 and Netigso[reference:file:extra/modules/com-atlassian-connector-eclipse-jira-core-rest.jar] starting from SystemClassLoader[493 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE
INFO [org.netbeans.modules.mylyn.util.commands.SubmitTaskCommand]: Command failed with status: Status ERROR: org.eclipse.mylyn.tasks.core code=0 Unexpected error: For input string: "leave" java.lang.NumberFormatException: For input string: "leave"
INFO [org.netbeans.modules.jira.Jira]
org.eclipse.core.runtime.CoreException: Unexpected error: For input string: "leave"
	at org.netbeans.modules.mylyn.util.commands.SubmitTaskCommand.execute(SubmitTaskCommand.java:128)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:123)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:102)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:98)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:94)
	at org.netbeans.modules.jira.issue.NbJiraIssue$14.run(NbJiraIssue.java:1780)
	at org.netbeans.modules.mylyn.util.AbstractNbTaskWrapper.runWithModelLoaded(AbstractNbTaskWrapper.java:327)
	at org.netbeans.modules.jira.issue.NbJiraIssue.submitAndRefresh(NbJiraIssue.java:1746)
	at org.netbeans.modules.jira.issue.IssuePanel$35.run(IssuePanel.java:2564)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Caused by: java.lang.NumberFormatException: For input string: "leave"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:580)
	at java.lang.Integer.parseInt(Integer.java:615)
	at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.transitionIssue(JiraRestClientAdapter.java:469)
	at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.advanceIssueWorkflow(JiraClient.java:208)
	at com.atlassian.connector.eclipse.internal.jira.core.JiraTaskDataHandler.postTaskData(JiraTaskDataHandler.java:1202)
	at org.eclipse.mylyn.internal.tasks.core.sync.SubmitTaskJob.run(SubmitTaskJob.java:100)
	at org.netbeans.modules.mylyn.util.commands.SubmitTaskCommand$MylynSubmitTaskJob.startJob(SubmitTaskCommand.java:183)
	at org.netbeans.modules.mylyn.util.commands.SubmitTaskCommand.execute(SubmitTaskCommand.java:119)
	... 10 more
Comment 9 ismith78 2014-09-02 06:20:46 UTC
If I change the connection from Jira 5.0 to 3.x then the update works, but Netbeans then keeps throwing up an error about the connection being the wrong type.

So as a workaround I'll keep the Jira connection at the wrong version, but there is a genuine bug with the 5.0 connection.