Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362712 - error parsing response from xmlrpc.cgi
Summary: error parsing response from xmlrpc.cgi
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.6.4   Edit
Assignee: Frank Becker CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-02 14:37 EDT by Paul Collins CLA
Modified: 2011-11-05 05:39 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Collins CLA 2011-11-02 14:37:22 EDT
For Bugzilla 4.0.2, using the xmlrpc.cgi interface for a custom workflow I get a "java.lang.Double cannot be cast to java.lang.String" when updating the repository config.
If uncheck the "Use xmlrpc.cgi" setting and update the repository config it works fine (but is obviously missing my customized workflow).

The related line that's causing the crash appears to be related to the defaultMilestone, which is disabled on my bugzilla server. Enabling "usetargetmilestone" in Bugzilla did not resolve the issue for Mylyn.


-- Config Details for Mylyn --
org.eclipse.mylyn_feature (3.7.0.I20111101-0551) "Mylyn"
org.eclipse.mylyn.bugzilla_feature (3.7.0.I20111101-0551) "Mylyn"
org.eclipse.mylyn.context_feature (3.7.0.I20111101-0551) "Mylyn"
org.eclipse.mylyn.ide_feature (3.7.0.I20111101-0551) "Mylyn"
org.eclipse.mylyn.java_feature (3.7.0.I20111101-0551) "Mylyn"
org.eclipse.mylyn.team_feature (3.7.0.I20111101-0551) "Mylyn"
org.eclipse.mylyn.wikitext_feature (1.6.0.I20111101-0551) "Mylyn"

-- Error Details --
Date: Wed Nov 02 11:01:43 PDT 2011
Message: An internal error occurred during: "Updating repository configuration for [hidden bugzilla link]".
Severity: Error
Product: Eclipse 1.4.1.20110909-0613 (org.eclipse.epp.package.java.product)
Plugin: org.eclipse.core.jobs
Session Data:
eclipse.buildId=M20110909-1335
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product

Exception Stack Trace:
java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.String
	at org.eclipse.mylyn.internal.bugzilla.core.service.BugzillaXmlRpcClient.updateProductInfo(BugzillaXmlRpcClient.java:400)
	at org.eclipse.mylyn.internal.bugzilla.core.service.BugzillaXmlRpcClient.updateConfiguration(BugzillaXmlRpcClient.java:382)
	at org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.getRepositoryConfiguration(BugzillaClient.java:766)
	at org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector.getRepositoryConfiguration(BugzillaRepositoryConnector.java:753)
	at org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector.updateRepositoryConfiguration(BugzillaRepositoryConnector.java:468)
	at org.eclipse.mylyn.internal.bugzilla.ui.tasklist.BugzillaRepositorySettingsPage.performUpdate(BugzillaRepositorySettingsPage.java:600)
	at org.eclipse.mylyn.internal.bugzilla.ui.tasklist.BugzillaRepositorySettingsPage$5.run(BugzillaRepositorySettingsPage.java:569)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Steffen Pingel CLA 2011-11-02 19:00:39 EDT
Frank, I think you had a fix for this already?
Comment 2 Frank Becker CLA 2011-11-03 01:48:49 EDT
Yes I know this problem this is part of an other patch.

You get this if you have an milestone like 1.0 with the xmlrpc this is returned as an double and Not as an string

Try to extract this later today from the other patch
Comment 3 Steffen Pingel CLA 2011-11-03 04:14:08 EDT
(In reply to comment #2)
> Try to extract this later today from the other patch

Great! We should backport this fix for 3.6.4.
Comment 4 Paul Collins CLA 2011-11-03 12:03:18 EDT
(In reply to comment #2)
> You get this if you have an milestone like 1.0 with the xmlrpc this is returned
> as an double and Not as an string

Ah! So the quick workaround for now is just to take any milestone like that and convert it to something that doesn't look like a double. I updated my bugzilla settings refreshed mylyn with the xmlrpc.cgi enabled and I have my custom workflows now! Glad there's a patch for it but thanks for the workaround :)
Comment 5 Frank Becker CLA 2011-11-04 15:06:53 EDT
Steffen,

I have patch in HEAD (id=c32f9d0154bdcb82f70615c15638e2ec56dcf0f1) can you do the backport
Comment 6 Steffen Pingel CLA 2011-11-05 05:39:10 EDT
Looks like this was backported. Thanks!