google-code-export / tatami

Automatically exported from code.google.com/p/tatami
1 stars 1 forks source link

Cannot Add Composite object to normal VerticalSplitPanel #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Adding a composite object that includes GraphicCanvas to the
VerticalSplitpanel of a normal GWT Rootpanel defined in another class which
has the EntryPoint implemented
2.
3.

What is the expected output? What do you see instead?
      i get the output on the GWT's Wrapper HTML .But cannot get it
compiled to a browser . I get exceptions on the development shell with my
file named GD.java having line number 156 mentioned in the stacktrace.
Line 156 :      verticalSplitPanel.setTopWidget(mc);
mc is the object of the class that extends Composite.

What version of the product are you using? On what operating system?
tatami version 1.1 on windows xp sp2

Please provide any additional information below.
 I have attached the class that defines the composite object.
 The exceptions along with the stack trace is given below
============================
java.lang.NegativeArraySizeException
    at
com.google.gwt.dev.shell.ie.SwtOleGlue.extractStringFromOleCharPtr(SwtOleGlue.ja
va:93)
    at
com.google.gwt.dev.shell.ie.SwtOleGlue.extractStringArrayFromOleCharPtrPtr(SwtOl
eGlue.java:79)
    at
com.google.gwt.dev.shell.ie.IDispatchImpl.GetIDsOfNames(IDispatchImpl.java:275)
    at com.google.gwt.dev.shell.ie.IDispatchImpl.method5(IDispatchImpl.java:196)
    at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.method5(BrowserWidgetIE6.j
ava:42)
    at org.eclipse.swt.internal.ole.win32.COMObject.callback5(COMObject.java:108)
    at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method)
    at org.eclipse.swt.internal.ole.win32.IDispatch.Invoke(IDispatch.java:64)
    at org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:493)
    at org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:417)
    at
com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvokeOnWindow(ModuleSpaceIE6.java:
64)
    at
com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvoke(ModuleSpaceIE6.java:156)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:490)
    at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeHandle(ModuleSpace.java:234)
    at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeHandle(JavaScriptHost.java:8
9)
    at
com.objetdirect.tatami.client.gfx.GraphicCanvas.initGraphics(GraphicCanvas.java:
421)
    at
com.objetdirect.tatami.client.gfx.GraphicCanvas.onAttach(GraphicCanvas.java:103)
    at com.google.gwt.user.client.ui.Panel.doAttachChildren(Panel.java:165)
    at com.google.gwt.user.client.ui.Widget.onAttach(Widget.java:112)
    at com.google.gwt.user.client.ui.Composite.onAttach(Composite.java:99)
    at com.google.gwt.user.client.ui.Widget.setParent(Widget.java:241)
    at com.google.gwt.user.client.ui.Panel.adopt(Panel.java:119)
    at com.google.gwt.user.client.ui.SplitPanel.setWidget(SplitPanel.java:383)
    at
com.google.gwt.user.client.ui.VerticalSplitPanel.setTopWidget(VerticalSplitPanel
.java:326)
    at com.soorya.project.client.GD.onModuleLoad(GD.java:156)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:363)
    at
com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:325)
    at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$200(BrowserWidgetIE6.java:37
)
    at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6
.java:71)
    at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.ja
va:128)
    at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:301)
    at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:201)
    at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.method6(BrowserWidgetIE6.j
ava:42)
    at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
    at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:744)
    at com.google.gwt.dev.GWTShell.run(GWTShell.java:607)
    at com.google.gwt.dev.GWTShell.main(GWTShell.java:374)

Original issue reported on code.google.com by tanzeem...@gmail.com on 19 Mar 2008 at 10:25

Attachments:

GoogleCodeExporter commented 9 years ago
I tried it with Tatami 1.3, and it apparently works: i had it compiled without 
any
problem. I will mark this issue as Fixed, re-open it if you are experiencing 
trouble
again.

Original comment by rdunk...@gmail.com on 19 Dec 2008 at 9:16