Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-builds-dev] Builds view not working with Jenkins 1.509.4

Hi,

I'm not getting this with our test instance (or my local instance
which is running the latest already):

http://mylyn.org/jenkins-1.509.3/api/xml?wrapper=hudson&depth=1&xpath=/hudson/job&exclude=/hudson/job/build
http://localhost:2080/jenkins-1.509.4/api/xml?wrapper=hudson&depth=1&xpath=/hudson/job&exclude=/hudson/job/build

You could try using json instead to verify that it's not related to
the XML output, e.g..:

http://mylyn.org/jenkins-1.509.3/api/json?wrapper=hudson&depth=1&xpath=/hudson/job&exclude=/hudson/job/build

My suspicion is though that the error is due to the particular Jenkins
configuration and that a Jenkins plugin adds something to the model
that can't be serialized. The depth=1 parameter causes additional
elements to be expanded which probably triggers the problem then.

I would recommend filing a Jenkins bug as I'm not sure there is
anything we could do on the client end to work around the 500 error.

Steffen


On Thu, Oct 17, 2013 at 8:35 AM, Sascha Vogt <sascha.vogt@xxxxxxxxx> wrote:
> Hi Steffen,
>
> the URL which is called from Mylyn is
> http://build/build/api/xml?wrapper=hudson&depth=1&xpath=/hudson/job&exclude=/hudson/job/build
>
> Our server is reachable via "build" and running in Tomcat as "build.war"
> - so the root URL is http://build/build
>
> When I hit this URL in a Browser I also get a 500 internal server error,
> just like Mylyn gets.
>
> Error:
> Status Code: 500
> Exception: org.kohsuke.stapler.export.NotExportableException: class
> hudson.util.Secret doesn't have @ExportedBean
> Stacktrace:
>
> javax.servlet.ServletException:
> org.kohsuke.stapler.export.NotExportableException: class
> hudson.util.Secret doesn't have @ExportedBean
>         at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:735)
>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:799)
>         at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:201)
> ...
> Caused by: org.kohsuke.stapler.export.NotExportableException: class
> hudson.util.Secret doesn't have @ExportedBean
>         at org.kohsuke.stapler.export.Model.<init>(Model.java:71)
>         at org.kohsuke.stapler.export.ModelBuilder.get(ModelBuilder.java:45)
> ...
>
> Greetings
> -Sascha-
>
> Am 16.10.2013 18:26, schrieb Steffen Pingel:
>> I did a quick test with the latest and at least integration tests
>> passed locally against 1.509.4. I have pushed a change here to update
>> the test repository accordingly:
>>
>>   https://git.eclipse.org/r/#/c/17424/
>>
>> Can you check on the server if you see any weird errors when you
>> access it from Mylyn? It might also help to set a breakpoint in
>> RestfulHudsonClient to see the full URL. Mylyn appends some options to
>> scope the returned data which may cause the error you are seeing.
>>
>> Steffen
>>
>>
>> On Wed, Oct 16, 2013 at 5:31 PM, Sascha Vogt <sascha.vogt@xxxxxxxxx> wrote:
>>> Hi all,
>>>
>>> although this list looks rather dead (from the archives) I thought I try
>>> pinging it anyway, maybe someone is listening :)
>>>
>>> I have an issue with the Mylyn Builds view, Jenkins 1.509.4 (LTS) and
>>> Mylyn Builds Connector 1.2.0.20131006-0226.
>>>
>>> More details on the forums:
>>> http://www.eclipse.org/forums/index.php/t/545761/
>>>
>>> Any feedback would be helpful ;)
>>> Greetings
>>> -Sascha-
>
> _______________________________________________
> mylyn-builds-dev mailing list
> mylyn-builds-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/mylyn-builds-dev



-- 
Steffen Pingel
Principal Software Engineer, Eclipse Mylyn
Mylyn Tasks Lead
http://tasktop.com


Back to the top