Hello,

I'm using Gwt on mac os x on ppc. I created a simple MenuBar with
separator (no MenuBarImages), but I got this error in the shell:

ERROR] Uncaught exception escaped
java.lang.RuntimeException: Deferred binding failed for
'com.google.gwt.user.client.ui.MenuBar$MenuBarImages' (did you forget
to inherit a required module?)
        at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:
43)
        at com.google.gwt.core.client.GWT.create(GWT.java:97)
        at com.google.gwt.user.client.ui.MenuBar.<init>(MenuBar.java:146)
        at
com.spirit.pki.ui.client.SpiritPKIUserInterface._createMenu(SpiritPKIUserInterface.java:
95)
        at
com.spirit.pki.ui.client.SpiritPKIUserInterface._createRootPanel(SpiritPKIUserInterface.java:
82)
        at com.spirit.pki.ui.client.SpiritPKIUserInterface.access
$0(SpiritPKIUserInterface.java:62)
        at com.spirit.pki.ui.client.SpiritPKIUserInterface
$1.onSuccess(SpiritPKIUserInterface.java:47)
        at com.spirit.pki.ui.client.login.Login$4.onSuccess(Login.java:127)
        at com.spirit.pki.ui.client.login.Login$4.onSuccess(Login.java:1)
        at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
215)
        at
com.google.gwt.http.client.Request.fireOnResponseReceivedImpl(Request.java:
254)
        at
com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch(Request.java:
226)
        at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
217)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
        at
com.google.gwt.dev.shell.mac.MethodDispatch.invoke(MethodDispatch.java:
71)
        at org.eclipse.swt.internal.carbon.OS.ReceiveNextEvent(Native Method)
        at org.eclipse.swt.widgets.Display.sleep(Display.java:3801)
        at com.google.gwt.dev.GWTShell.sleep(GWTShell.java:749)
        at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:721)
        at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
        at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
Caused by: java.lang.NoClassDefFoundError: com/sun/media/imageio/
stream/StreamSegmentMapper
        at
org.dcm4cheri.imageio.plugins.DcmImageReaderSpi.canDecodeInput(DcmImageReaderSpi.java:
111)
        at javax.imageio.ImageIO$CanDecodeInputFilter.filter(ImageIO.java:
526)
        at javax.imageio.spi.FilterIterator.advance(ServiceRegistry.java:793)
        at javax.imageio.spi.FilterIterator.next(ServiceRegistry.java:811)
        at javax.imageio.ImageIO$ImageReaderIterator.next(ImageIO.java:487)
        at javax.imageio.ImageIO$ImageReaderIterator.next(ImageIO.java:472)
        at javax.imageio.ImageIO.read(ImageIO.java:1397)
        at javax.imageio.ImageIO.read(ImageIO.java:1364)
        at
com.google.gwt.user.rebind.ui.ImageBundleBuilder.addImage(ImageBundleBuilder.java:
391)
        at
com.google.gwt.user.rebind.ui.ImageBundleBuilder.assimilate(ImageBundleBuilder.java:
303)
        at
com.google.gwt.user.rebind.ui.ImageBundleGenerator.generateImplClass(ImageBundleGenerator.java:
301)
        at
com.google.gwt.user.rebind.ui.ImageBundleGenerator.generate(ImageBundleGenerator.java:
159)
        at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
51)
        at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:116)
        at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:61)
        at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
166)
        at
com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:
114)
        at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:468)
        at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
359)
        at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:
39)
        at com.google.gwt.core.client.GWT.create(GWT.java:97)
        at com.google.gwt.user.client.ui.MenuBar.<init>(MenuBar.java:146)
        at
com.spirit.pki.ui.client.SpiritPKIUserInterface._createMenu(SpiritPKIUserInterface.java:
95)
        at
com.spirit.pki.ui.client.SpiritPKIUserInterface._createRootPanel(SpiritPKIUserInterface.java:
82)
        at com.spirit.pki.ui.client.SpiritPKIUserInterface.access
$0(SpiritPKIUserInterface.java:62)
        at com.spirit.pki.ui.client.SpiritPKIUserInterface
$1.onSuccess(SpiritPKIUserInterface.java:47)
        at com.spirit.pki.ui.client.login.Login$4.onSuccess(Login.java:127)
        at com.spirit.pki.ui.client.login.Login$4.onSuccess(Login.java:1)
        at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
215)
        at
com.google.gwt.http.client.Request.fireOnResponseReceivedImpl(Request.java:
254)
        at
com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch(Request.java:
226)
        at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
217)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
        at
com.google.gwt.dev.shell.mac.MethodDispatch.invoke(MethodDispatch.java:
71)
        at org.eclipse.swt.internal.carbon.OS.ReceiveNextEvent(Native Method)
        at org.eclipse.swt.widgets.Display.sleep(Display.java:3801)
        at com.google.gwt.dev.GWTShell.sleep(GWTShell.java:749)
        at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:721)
        at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
        at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)


This is my xml:

    <inherits name='com.google.gwt.user.User'/>

      <!-- Inherit the default GWT style sheet.  You can change
-->
      <!-- the theme of your GWT application by uncommenting
-->
      <!-- any one of the following lines.
-->
      <inherits name='com.google.gwt.user.theme.standard.Standard'/>
      <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/>
-->
      <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/>
-->

      <!-- Other module inherits
-->

      <!-- Specify the app entry point class.
-->
      <entry-point
class='com.spirit.pki.ui.client.SpiritPKIUserInterface'/>

      <!-- Specify the application specific style sheet.
-->
      <stylesheet src='SpiritPKIUserInterface.css' />

      <servlet path="/LoginRPC"
class="com.spirit.pki.ui.server.login.LoginRPCImpl"/>


and this is the code:


private MenuBar _createMenu()
  {
          MenuCommands mc = new MenuCommands();

          MenuBar m = new MenuBar(true);
          m.addItem("Create new CA", mc.createNewCaCommand());
          m.addItem("Delete the current CA",mc.deleteCurrentCACommand());
          m.addSeparator();
          m.addItem("Get Info for this CA",mc.getCaInfo());
          m.addSeparator();
          m.addItem("Logout",mc.doLogout());

          MenuBar cert = new MenuBar(true);
          cert.addItem("Create new certificate",mc.createNewCertificate());
          cert.addItem("Revoke certificate", mc.createNewCertificate());
          cert.addSeparator();
          cert.addItem("Get Info",mc.getCertificateInfo());

          MenuBar menu = new MenuBar();
          menu.addItem("CA Menu",m);
          menu.addItem("Certificate",cert);

          return menu;
  }


Have you any ideas?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to