Community
Participate
Working Groups
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)
Frank, I think you had a fix for this already?
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
(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.
(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 :)
Steffen, I have patch in HEAD (id=c32f9d0154bdcb82f70615c15638e2ec56dcf0f1) can you do the backport
Looks like this was backported. Thanks!