未知的运行时错误号:-2146827687

发布于 2024-08-28 14:23:27 字数 499 浏览 4 评论 0原文

当我尝试将标签附加到面板时,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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

水波映月 2024-09-04 14:23:27

这可能是 -1 在输出过程中格式错误。

That's probably -1 being misformatted during output.

九八野马 2024-09-04 14:23:27

这是组件布局方法中某处的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文