Locked out of Hudson after a page reload during build - hudson

I have a very weird problem today and I hope one of you might be more experienced than I am in this regard and is able to help.
I started a Hudson build manually this morning, while this build was running I refreshed the page. In retrospect this might not have been the best idea, although I dont believe there is a connection between this and the error I am getting. But I could be wrong ofcourse.
After the page finished refreshing, I was greeted by the following.
Now I always get this page when I open Hudson.
Any help will be greatly appreciated. If you need more information please ask. I wasnt sure what else to provide. To me it looks like a corrupted xml somwhere but I'm not sure where or what could have caused it.
Thanks for your help in advance.
Edit: (If you prefere text)
org.jvnet.hudson.reactor.ReactorException: com.google.common.util.concurrent.UncheckedExecutionException: com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... #1:1)
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
at hudson.model.Hudson.executeReactor(Hudson.java:719)
at hudson.model.Hudson.<init>(Hudson.java:616)
at org.eclipse.hudson.init.InitialRunnable.run(InitialRunnable.java:51)
at java.lang.Thread.run(Unknown Source)
Caused by: com.google.common.util.concurrent.UncheckedExecutionException: com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... #1:1)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2263)
at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
at hudson.model.TopLevelItemsCache.get(TopLevelItemsCache.java:96)
at hudson.model.LazyTopLevelItem.item(LazyTopLevelItem.java:144)
at hudson.model.LazyTopLevelItem.hasPermission(LazyTopLevelItem.java:271)
at hudson.model.Hudson.getItems(Hudson.java:1303)
at hudson.model.Hudson.getItems(Hudson.java:223)
at hudson.model.Hudson.getAllItems(Hudson.java:1367)
at hudson.model.Hudson$12.run(Hudson.java:2481)
at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
at hudson.model.Hudson$4.runTask(Hudson.java:699)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
... 1 more
Caused by: com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... #1:1)
at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:124)
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148)
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141)
at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118)
at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103)
at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:83)
at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:70)
at hudson.model.RunMap.loadFromRunMapXml(RunMap.java:690)
at hudson.model.RunMap.load(RunMap.java:591)
at hudson.model.AbstractProject.onLoad(AbstractProject.java:330)
at hudson.model.BaseBuildableProject.onLoad(BaseBuildableProject.java:94)
at hudson.model.TopLevelItemsCache$1.load(TopLevelItemsCache.java:82)
at hudson.model.TopLevelItemsCache$1.load(TopLevelItemsCache.java:75)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
... 18 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... #1:1)
at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:109)
... 34 more

We finally have been able to fix the problem. We found someone with a similar issue after a lot of googling. The answer is found here
I hope this helps someone in the future.

Related

TYPO3 9.5: avoid throwing exeption on missing image

My TYPO3 9.5 installation throws the following exeption when an image is missing:
TYPO3Fluid\Fluid\Core\ViewHelper\Exception
Folder "/uploads/tx_owlslider/tosoh.gif/" does not exist.
TYPO3 8.7 did not do that.
I also tried this in TYPO3_CONTEXT "Production".
How could I avoid this error, especially in production environment ?
Thanks !
Wrapping the file object in a condition should do the trick.
<f:if condition="{item.itemimage}">
<f:image class="lazyOwl" src="uploads/tx_owlslider/{item.itemimage}" height=. "{settings.slideHeight}" alt="{item.itemname}"/>
</f:if>
Finally I fixed this in the Extension owl_slider itself.
If the image is physically missing, the f:image - tag should not be rendered:
<v:media.exists file="uploads/tx_owlslider/{item.itemimage}">
<f:then>
<f:image class="lazyOwl" src="uploads/tx_owlslider/{item.itemimage}" height="{settings.slideHeight}" alt="{item.itemname}"/>
</f:then>
<f:else>
{item.itemname}
</f:else>
</v:media.exists>

ForbiddenException in AssistantSimpleExample, with java-SDK

I tried the first example in https://cloud.ibm.com/docs/services/assistant?topic=assistant-api-client, but whatever assistantID I used, it show me the same exception:
Exception in thread "main"
com.ibm.cloud.sdk.core.service.exception.ForbiddenException: Forbidden
at
com.ibm.cloud.sdk.core.service.BaseService.processServiceCall(BaseService.java:371)
at
com.ibm.cloud.sdk.core.service.BaseService$WatsonServiceCall.execute(BaseService.java:419)
at AssistantSimpleExample.main(AssistantSimpleExample.java:31)
What can I do for that?
I need to add this:
service.setServiceUrl("https://gateway-syd.watsonplatform.net/assistant/api");
Then it solved.

VS code Error : settings.json property expected (bug)

enter image description here
When I use VS Code, a problem notice likes that(in the above image) is printed.
Although I want to fix it and really don't want to see it, I can't find any way to fix.
I am very painful about just seeing that error message all the time.
Please give me some helps.
You opened a { parenthesis at line 2784 and didn't close it. You should close it. --> }
Also, you have an extra comma , at 2793 that you have to remove.
Not use {}, because you may already mess your settings.json before.
so my suggestion as follows:
// in/your/settings.json/file
...
setting0_name:[setting0.0, setting0.1],
seting1_name : settings,
...

Why is setting html properties false considered an unexpected token?

I'm unable to build a VB.NET site I've inherited due to a nebulous error.
Without a clue as to what might be causing it, I turned the hounds of the Czech Republic loose on it (otherwise known as Resharper). It ended up showing me 20 errors and upwards of a thousand other "issues" with the solution:
Okay, so I'm going after the errors first; ASP Errors first. The first one pointed to this:
<telerik:RadButton ID="ExportButtonRad" DisabledButtonCssClass="rbDownload' UseSubmitBehavior="false" EnableViewState="false" AutoPostBack="true" CommandName="ExportToExcel" Skin="Default" Visible="false" OnClientClick="document.body.style.cursor = 'wait';" ButtonType="StandardButton" HoveredCssClass="goButtonClassHov" ToolTip="Export" runat="server" Text="Export">
...and flagged the following portion:
UseSubmitBehavior="false"
...as an "Unexpected token"; so I removed that, and re-ran the Resharper > Inspect > Code Issues in Solution.
Now there are more (not less) ASP Errors, and that same element ("ExportButtonRad") is red-flagged again for the same supposed infraction ("Unexpected token"); this time EnableViewState="false" is the culprit or scapegoat.
So I'm afraid that if I remove that, I will have 11 ASP Errors and it will finger some other property set to false as being bogus. I have suspicions this is not the real problem. Does anybody know about any "gotchas" with this that might be the underlying cause of this whack-a-moliation?
I think the problem will be this:
DisabledButtonCssClass="rbDownload'
Equalise the quotes.
DisabledButtonCssClass="rbDownload"

MediaWiki: how to prevent template from inserting white space?

Today, I tried to create a template on Portuguese Wikipedia inside one of my subpages. It works fine with this code:
<includeonly>'''{{{num}}}''': <span style="font-family:monospace;">{{{date}}}</span> — [[{{{title}}}]]<!--
--> {{#if:{{{faults|}}}<!--
-->|({{{faults}}})<!--
--->|}}<br /></includeonly>
This code creates items like this:
81: 28/feb — Der heimliche Aufmarsch gegen die Sowjetunion (one source)
But, I want to do more! The purpose of creating this template isn't just to set the date to monospace fonts... I want to add support for information about translations, and about deletions. Every time I tried to add text about deletions (you can check in the page history), the space between the lines got enormous, making the "lists" very, very ugly...
For example, this is one of the solutions I tried to add deletion information:
<includeonly>'''{{{num}}}''': <span style="font-family:monospace;">{{{date}}}</span> — [[{{{title}}}]]<!--
--> {{#if:{{{faults|}}}<!--
-->|({{{faults}}})<!--
-->|}}<!--
-->{{#if:{{{Speedy-del|{{{Semi-speedy-del|{{{Consensus-del|}}}}}}}}}|
{{#if:{{{Speedy-del|}}}<!--
-->|<div style="margin-left:2em">✘ <small>Speedy deletion denied by {{{Speedy denier}}} on {{{Speedy date}}}</small></div><!--
-->|}}
{{#if:{{{Semi-speed-del|}}}<!--
-->|<div style="margin-left:2em">✘ <small>Semi-speedy deletion denied by {{{Semi-speedy denier}}} on {{{Semi-speedy date|}}}</small></div><!--
-->|}}
{{#if:{{{Consensus-del|}}}|<!--
--><div style="margin-left:2em">✘ <small>Consensus deletion denied on {{{Consensus date|}}}</small></div><!--
-->|}}
|<br />}}</includeonly>
Why is this happening to me? I could not find any typo. So the problem must be logical, and I gave up trying to find a solution alone. My logic must be broken.
You can use HTML comments if you want to make sure there is no extra output from your template, but still need linebreaks etc for readability:
<includeonly><!--
-->'''{{{num}}}''': {{{date}}}<!--
-->[[{{{title}}}]]<!--
-->{{#if:{{{faults|}}}| ({{{faults}}})|}}<br><!--
--></includeonly>