未知的运行时错误号:-2146827687
当我尝试将标签附加到面板时,Internet Explorer(开发模式和非开发模式)上的 GXT 代码出现错误。 错误是“未知的运行时错误号:-2146827687”,但在 GWT 模块中总是会抛出此错误,而在面板上附加标签的其他 gwt 模块中则不会出现该错误。
panel的布局是我开发的GridFormLayout。当调用 renderComponentInCell(在 doLayout 上调用该方法)并且组件未渲染(else 条件)时,会抛出该错误。
private void renderComponentInCell(Component component, Element cell) {
if (component.isRendered()) {
cell.appendChild(component.getElement());
} else {
component.render(cell);
}
}
我能做些什么?
I have an error in my GXT code on Internet Explorer (both Development Mode and not) when i try to attach a label to a panel.
The error is "Unknown runtime error number: -2146827687" but this error in a GWT module is throws always, in other gwt modules with a label attached to the panel the error there isn't.
The layout of panel is a GridFormLayout developed by me. The error is thrown when the renderComponentInCell is called (the method is called on doLayout) and the component is not rendered (else condition).
private void renderComponentInCell(Component component, Element cell) {
if (component.isRendered()) {
cell.appendChild(component.getElement());
} else {
component.render(cell);
}
}
What can I do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这可能是 -1 在输出过程中格式错误。
That's probably -1 being misformatted during output.
这是组件布局方法中某处的 jsni 或 javascript 异常。我时不时地看到这些,我总是觉得 Firefox 也扔它们,它们只是在某个地方被吃掉了。
我敢打赌,如果你使用 Pretty 编译模块,然后使用 Firebug 或 Venkman 调试布局,你会在 JS 代码中发现空指针等。
It's a jsni or javascript exception somewhere in the layout method of your component. I see these from time to time and I always fine that Firefox throws them also, they just get eaten someplace.
I bet if you compile your module using pretty, and then debug through the layout using Firebug or Venkman, you will find a null pointer or such in the JS code.