java.lang.reflect.InvocationTargetException when logging time in JIRA with Mylyn plugin

Jon Evans September 26, 2011

When I try to log time using the Mylyn JIRA connector, it fails with "Unable to submit at this time. Check connectivity and retry". When I click that text the error detail dialog simply contains:

Submit Failed

Server error: java.lang.reflect.InvocationTargetException

This is using a hosted JIRA instance at onjira.com. Plugin details:

Atlassian JIRA Connector (Recommended)	3.0.0.v20110210	com.atlassian.connector.eclipse.jira.feature.group
Atlassian Connector for Eclipse Usage Monitoring	3.0.0.v20110210	com.atlassian.connector.eclipse.monitor.feature.group	
Mylyn Task List	3.6.2.v20110908-0706	org.eclipse.mylyn_feature.feature.group
Mylyn Connector: JIRA (Compatibility)	3.4.0	org.eclipse.mylyn.jira_feature.feature.group

Eclipse details:

Eclipse Java EE IDE for Web Developers.
Version: Indigo Service Release 1
Build id: 20110916-0149

3 answers

0 votes
jjaroczynski
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 27, 2011

As I can see you get HTTP 500 from JIRA so it fails to repond. Can you look at the JIRA log and check what happens there?

Cheers,

Jacek

Jon Evans September 27, 2011

It's hosted at onjira.com so I don't know how to access the logs. There were fragments of stack trace in the response though that I thought might help you out. InvocationTargetException, message: com.atlassian.jira.bc.issue.worklog.WorklogService.validateCreate(Lcom/atlassian/jira/bc/JiraServiceContext;Lcom/atlassian/jira/issue/Issue;Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/atlassian/jira/issue/worklog/Worklog;

jjaroczynski
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 27, 2011

I think we will need to open support request to ask JIRA guys for help.

Did it work previously or is it the first time you tried this feature?

Jon Evans September 27, 2011

The time logging part of it has never worked. Can you log the support ticket for me or shall I do it?

Thanks for all your help

Jon

jjaroczynski
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 27, 2011

Please do it yourself at https://support.atlassian.com. Login and create new issue for 'JIRA support' project.

You will need to specify JIRA version. The request/response data you have linked here should be a good start for JIRA guys.

Best,

Jacek

Jon Evans September 27, 2011

I'll do that.

Thanks again Jacek

0 votes
jjaroczynski
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 27, 2011

Hi Jon,

Can you connect to your JIRA via http and try to get request and response data with wireshark or similar tool?

I wonder if this is a real connection problem or maybe JIRA replies with something strange.

Cheers,

Jacek

Jon Evans September 27, 2011

I couldn't get it to paste in here. Too large maybe? I've created a Gist with the request / response.

0 votes
jjaroczynski
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 26, 2011

Hi Jon,

Does the connection to the JIRA server works for you within the Connector? Can you hit 'validate settings' in your JIRA Task Repository and it works fine?

Can you see any stacktrace in Eclipse log related to this issue?

Cheers,

Jacek

Jon Evans September 26, 2011

Hi Jacek,

I can access JIRA through the connector, and I can view and update tickets - unless I try to log time. The Validate Settings button works fine, except it asks:

The repository location reported by the server does not match the provided location.

(*) Use server location: http://projects.examplecompany.com

( ) Keep current location: https://examplecompany.onjira.com

I selected "Keep current location".

There is no stack trace or messages of any kind related to the error in .metadata/.log. The Validate action puts some debugging messages in there though:

!ENTRY com.atlassian.connector.eclipse.jira.ui 1 0 2011-09-27 14:51:50.966
!MESSAGE Validation results for ExampleCompany JIRA
!SUBENTRY 1 com.atlassian.connector.eclipse.internal.jira.core 1 0 2011-09-27 14:51:50.966
!MESSAGE Resolving name took 1486 ms
!SUBENTRY 1 com.atlassian.connector.eclipse.internal.jira.core 1 0 2011-09-27 14:51:50.966
!MESSAGE Login via SOAP took 710 ms
!SUBENTRY 1 com.atlassian.connector.eclipse.internal.jira.core 1 0 2011-09-27 14:51:50.966
!MESSAGE Retrieval of server info took 157 ms
!SUBENTRY 1 com.atlassian.connector.eclipse.internal.jira.core 1 0 2011-09-27 14:51:50.966
!MESSAGE Login via web took 155 ms
!SUBENTRY 1 com.atlassian.connector.eclipse.jira.ui 1 0 2011-09-27 14:51:50.966
!MESSAGE Web base: https://examplecompany.onjira.com
!SUBENTRY 1 com.atlassian.connector.eclipse.jira.ui 1 0 2011-09-27 14:51:50.966
!MESSAGE Character encoding: UTF-8
!SUBENTRY 1 com.atlassian.connector.eclipse.jira.ui 1 0 2011-09-27 14:51:50.966
!MESSAGE Version: http://projects.examplecompany.com - Jira Enterprise 4.2-b587#587 (21/10/10)

Suggest an answer

Log in or Sign up to answer