question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unexpected RuntimeException when linking facts

See original GitHub issue

Steps to reproduce:

  1. Create a named entity annotation
  2. Create a fact
  3. Select the named entity annotation

It takes a long time and later crashes. When reloading the annotation view and clicking on the fact predicate, it crashes again after a while.

Last cause: Cannot modify component hierarchy after render phase has started (page version cant change then anymore)
WicketMessage: An error occurred while getting the model object for Component: [AutoCompleteTextField [Component id = value, page = de.tudarmstadt.ukp.clarin.webanno.ui.annotation.AnnotationPage, path = rightSidebar:annotationDetailEditorPanel:annotationFeatureForm:featureEditorsContainer:featureValues:4:editor:content:value, type = com.googlecode.wicket.kendo.ui.form.autocomplete.AutoCompleteTextField, isVisible = true, isVersioned = false, markup = [markup = jar:file:/srv/inception-experimental/inception-experimental.jar!/WEB-INF/lib/inception-ui-kb-0.4.0-SNAPSHOT.jar!/de/tudarmstadt/ukp/inception/ui/kb/feature/SubjectObjectFeatureEditor.html
<input style="width: 100%;" wicket:id="value" type="text" wicket:message="placeholder:value.null.placeholder"/>, index = 0, current =  '<input style="width: 100%;" wicket:id="value" type="text" wicket:message="placeholder:value.null.placeholder"/>' (line 0, column 0)]]]

Complete stack:

org.apache.wicket.WicketRuntimeException: An error occurred while getting the model object for Component: [AutoCompleteTextField [Component id = value, page = de.tudarmstadt.ukp.clarin.webanno.ui.annotation.AnnotationPage, path = rightSidebar:annotationDetailEditorPanel:annotationFeatureForm:featureEditorsContainer:featureValues:4:editor:content:value, type = com.googlecode.wicket.kendo.ui.form.autocomplete.AutoCompleteTextField, isVisible = true, isVersioned = false, markup = [markup = jar:file:/srv/inception-experimental/inception-experimental.jar!/WEB-INF/lib/inception-ui-kb-0.4.0-SNAPSHOT.jar!/de/tudarmstadt/ukp/inception/ui/kb/feature/SubjectObjectFeatureEditor.html
<input style="width: 100%;" wicket:id="value" type="text" wicket:message="placeholder:value.null.placeholder"/>, index = 0, current =  '<input style="width: 100%;" wicket:id="value" type="text" wicket:message="placeholder:value.null.placeholder"/>' (line 0, column 0)]]]
     at org.apache.wicket.Component.getDefaultModelObject(Component.java:1651)
     at org.apache.wicket.markup.html.form.FormComponent.getModelObject(FormComponent.java:1573)
     at com.googlecode.wicket.kendo.ui.form.autocomplete.AutoCompleteTextField.getModelValue(AutoCompleteTextField.java:154)
     at org.apache.wicket.markup.html.form.FormComponent.getValue(FormComponent.java:871)
     at org.apache.wicket.markup.html.form.TextField.onComponentTag(TextField.java:108)
     at com.googlecode.wicket.kendo.ui.form.autocomplete.AbstractAutoCompleteTextField.onComponentTag(AbstractAutoCompleteTextField.java:311)
     at org.apache.wicket.Component.internalRenderComponent(Component.java:2542)
     at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1657)
     at org.apache.wicket.Component.internalRender(Component.java:2401)
     at org.apache.wicket.Component.render(Component.java:2329)
     at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1515)
     at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1718)
     at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1693)
     at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1648)
     at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
     at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
     at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1657)
     at org.apache.wicket.Component.internalRender(Component.java:2401)
     at org.apache.wicket.Component.render(Component.java:2329)
     at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1515)
     at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1718)
     at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1693)
     at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:799)
     at org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:77)
     at org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
     at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
     at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1657)
     at org.apache.wicket.Component.internalRender(Component.java:2401)
     at org.apache.wicket.Component.render(Component.java:2329)
     at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1515)
     at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1718)
     at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1693)
     at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1648)
     at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
     at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
     at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1657)
     at org.apache.wicket.Component.internalRender(Component.java:2401)
     at org.apache.wicket.Component.render(Component.java:2329)
     at org.apache.wicket.markup.repeater.AbstractRepeater.renderChild(AbstractRepeater.java:115)
     at org.apache.wicket.markup.repeater.AbstractRepeater.onRender(AbstractRepeater.java:102)
     at org.apache.wicket.Component.internalRender(Component.java:2401)
     at org.apache.wicket.Component.render(Component.java:2329)
     at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1515)
     at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1718)
     at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1693)
     at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1648)
     at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
     at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
     at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1657)
     at org.apache.wicket.Component.internalRender(Component.java:2401)
     at org.apache.wicket.Component.render(Component.java:2329)
     at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1515)
     at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1718)
     at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1693)
     at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1648)
     at org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1709)
     at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
     at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
     at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1657)
     at org.apache.wicket.Component.internalRender(Component.java:2401)
     at org.apache.wicket.Component.render(Component.java:2329)
     at org.apache.wicket.page.XmlPartialPageUpdate.writeComponent(XmlPartialPageUpdate.java:119)
     at org.apache.wicket.page.PartialPageUpdate.writeComponents(PartialPageUpdate.java:248)
     at org.apache.wicket.page.PartialPageUpdate.writeTo(PartialPageUpdate.java:161)
     at org.apache.wicket.ajax.AjaxRequestHandler.respond(AjaxRequestHandler.java:358)
     at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:895)
     at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
     at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:97)
     at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
     at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
     at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
     at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:22 (22 by maintainers)

github_iconTop GitHub Comments

1reaction
MdeBoer95commented, Jun 6, 2018

@naveen2507 I’m having a look at the problem (Cannot modify component hierarchy after render phase has started…) but could not fix it so far.

0reactions
reckartcommented, Jun 9, 2018

So for the record - we cannot use feedback messages in LambdaModels or LoadableDetachableModels. The only sensible approach I could come up with is to have a special value which represents the error and fill the input field with this value instead of the regular value.

Read more comments on GitHub >

github_iconTop Results From Across the Web

drools - java.lang.RuntimeException: Unexpected global [result]
I have this class, that reads rule files, insert facts and run rules. public class RuleRunner { ...
Read more >
Something unexpected makes bucket unable to fetch doc with ...
The problem is when one of the server node is down, the couchbase entries in a loop without upsert nothing and return wtih...
Read more >
Custom Threat Source - java.lang.RuntimeException: Unexpected ...
Hello allI created a custom threat source and set it up. It works but the behaviour (or the steps to make it work...
Read more >
JDBC\ODBC connection to Azure Dataricks fails - Microsoft Q&A
Hi,. I referred the following links in net and tried all, but still I am not connecting to Azure Databricks database.
Read more >
HSSFSheet - RuntimeException: Unexpected missing row
RuntimeException : Unexpected missing row when some rows already present at ... Except for the fact it throws an exception when everything ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found