2 Replies Latest reply on Mar 8, 2013 4:02 AM by Anton Hughes

    Under my Umbrella Error

    Anton Hughes Master

      Hi again...

       

      I now have the below cryptic error.

       

      The error seems to be related to the following line - when it is commented out I do not get the umbrella error - instead I get another error:

       

       

      @Page(startingPage = true)
      

       

      The only class I have been working on is the following.

       

       

      package org.company.firestorm.client.local;
      
      
      import javax.annotation.PostConstruct;
      import javax.enterprise.event.Observes;
      
      
      
      
      import org.jboss.errai.ioc.client.api.EntryPoint;
      import org.jboss.errai.ui.nav.client.local.Navigation;
      import org.jboss.errai.ui.nav.client.local.Page;
      import org.jboss.errai.ui.nav.client.local.TransitionTo;
      import org.jboss.errai.ui.shared.api.annotations.DataField;
      
      
      import org.jboss.errai.ui.shared.api.annotations.EventHandler;
      import org.jboss.errai.ui.shared.api.annotations.SinkNative;
      import org.jboss.errai.ui.shared.api.annotations.Templated;
      import org.company.firestorm.client.shared.Message;
      import org.company.firestorm.client.shared.Response;
      
      
      import com.google.gwt.dom.client.AnchorElement;
      import com.google.gwt.event.dom.client.ClickEvent;
      import com.google.gwt.event.dom.client.ClickHandler;
      import com.google.gwt.user.client.DOM;
      import com.google.gwt.user.client.Event;
      import com.google.gwt.user.client.Window;
      import com.google.gwt.user.client.ui.Button;
      import com.google.gwt.user.client.ui.Composite;
      import com.google.gwt.user.client.ui.RootPanel;
      import com.google.gwt.user.client.ui.TextBox;
      import com.google.inject.Inject;
      
      
      @Templated("#template")
      @EntryPoint
      @Page(startingPage = true)
      public class Login extends Composite {
      
      
                @Inject
                @DataField
                private Button submit;
      
      
      //          @DataField
      //          private AnchorElement testLogin = DOM.createAnchor().cast();
      
      
                @DataField
                private TextBox password = new TextBox();
      
      
                @DataField
                private TextBox email = new TextBox();
      
      
      //          @Inject
      //          private javax.enterprise.event.Event<Message> message;
      
      
      //          @Inject
      //          TransitionTo<MainPage> startButtonClicked;
      
      
      //          @Inject
      //          private Navigation navigation;
      
      
                public Login() {
                          // TODO Auto-generated constructor stub
                }
      
      
      //           @EventHandler("testLogin")
      //           public void transitionToDashboard(ClickEvent e) {
      //                     startButtonClicked.go();
      //           }
      
      
                @PostConstruct
                private void setup() {
      
      //                    RootPanel.get().add(navigation.getContentPanel());
      
      
                          submit.addClickHandler(new ClickHandler() {
                                    public void onClick(ClickEvent event) {
      //                                        message.fire(new Message(email.getText()));
                                              // validate user
                                              // redirect / show dashboard
      
      
                                    }
      
      
                          });
                          RootPanel.get().add(this);
      
      
      
                }
      
      
                public void handle(@Observes Response response) {
                          Window.alert(response.getMessage());
                          // Spotlight spotlight = spotlightInstance.get();
                          // String name = profileBinder.getModel().getUsername();
                          // String eml = profileBinder.getModel().getEmail();
                          // spotlight.setTitle((name == null ? "Anonymous" : name));
                          // spotlight.setContent((eml == null ? "" : "[ " + eml + " ]") + " " +
                          // response.getMessage());
                          // spotlights.add(spotlight);
                }
      
      
      }
      
      

       

       

       

      Loading modules

         org.company.firestorm.App

            Validating <servlet> tags for module 'app'

            For additional info see: file:/C:/google/gwt-2.4.0/gwt-2.4.0/doc/helpInfo/servletMappings.html

               [WARN] Module declares a servlet class 'com.google.gwt.junit.server.JUnitHostImpl', but the web.xml has no corresponding declaration; please add the following lines to your web.xml:

      <servlet>

        <servlet-name>jUnitHostImpl</servlet-name>

        <servlet-class>com.google.gwt.junit.server.JUnitHostImpl</servlet-class>

      </servlet>

      <servlet-mapping>

        <servlet-name>jUnitHostImpl</servlet-name>

        <url-pattern>/app/junithost/*</url-pattern>

      </servlet-mapping>

      SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

      SLF4J: Defaulting to no-operation (NOP) logger implementation

      SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

      [WARN] Server class 'javax.enterprise.inject.spi.BeanManager' could not be found in the web app, but was found on the system classpath

         [WARN] Adding classpath entry 'file:/C:/Users/SaxoUser/.m2/repository/javax/enterprise/cdi-api/1.0-SP4/cdi-api-1.0-SP4.jar' to the web app classpath for this session

         For additional info see: file:/C:/google/gwt-2.4.0/gwt-2.4.0/doc/helpInfo/webAppClassPath.html

      Starting Jetty on port 8888

         [WARN] Could not instantiate listener org.jboss.errai.container.CDIServletStateListener

      java.lang.IllegalStateException: Error loading Weld bootstrap, check that Weld is on the classpath

                at org.jboss.errai.container.CDIServletStateListener.<init>(CDIServletStateListener.java:69)

                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

                at java.lang.reflect.Constructor.newInstance(Constructor.java:525)

                at java.lang.Class.newInstance0(Class.java:372)

                at java.lang.Class.newInstance(Class.java:325)

                at org.mortbay.jetty.webapp.WebXmlConfiguration.newListenerInstance(WebXmlConfiguration.java:649)

                at org.mortbay.jetty.webapp.WebXmlConfiguration.initListener(WebXmlConfiguration.java:630)

                at org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXmlConfiguration.java:367)

                at org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfiguration.java:289)

                at org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfiguration.java:222)

                at org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp(WebXmlConfiguration.java:180)

                at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1217)

                at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)

                at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)

                at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:468)

                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)

                at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)

                at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)

                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)

                at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)

                at org.mortbay.jetty.Server.doStart(Server.java:222)

                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)

                at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:672)

                at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)

                at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)

                at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)

                at com.google.gwt.dev.DevMode.main(DevMode.java:311)

      Caused by: java.lang.IllegalArgumentException: Cannot load class for org.jboss.weld.bootstrap.WeldBootstrap

                at org.jboss.weld.environment.servlet.util.Reflections.classForName(Reflections.java:56)

                at org.jboss.weld.environment.servlet.util.Reflections.newInstance(Reflections.java:36)

                at org.jboss.errai.container.CDIServletStateListener.<init>(CDIServletStateListener.java:67)

                ... 28 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.weld.bootstrap.WeldBootstrap

                at java.lang.ClassLoader.findClass(ClassLoader.java:522)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:423)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:356)

                at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:352)

                at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)

                at org.jboss.weld.environment.servlet.util.Reflections.classForName(Reflections.java:51)

                ... 30 more

      SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

      SLF4J: Defaulting to no-operation (NOP) logger implementation

      SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

      com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses

                at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129)

                at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:75)

                at com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java:43)

                at com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java:82)

                at com.google.gwt.user.client.History.fireCurrentHistoryState(History.java:121)

                at org.jboss.errai.ui.nav.client.local.Navigation.init(Navigation.java:54)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:601)

                at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)

                at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)

                at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)

                at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)

                at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)

                at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)

                at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)

                at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289)

                at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)

                at org.jboss.errai.ioc.client.BootstrapperImpl._136504311_init(BootstrapperImpl.java)

                at org.jboss.errai.ioc.client.BootstrapperImpl$12.init(BootstrapperImpl.java:245)

                at org.jboss.errai.ioc.client.BootstrapperImpl$12.init(BootstrapperImpl.java:1)

                at org.jboss.errai.ioc.client.container.CreationalContext.fireAllInitCallbacks(CreationalContext.java:323)

                at org.jboss.errai.ioc.client.container.CreationalContext.finish(CreationalContext.java:313)

                at org.jboss.errai.ioc.client.Container.bootstrapContainer(Container.java:59)

                at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:34)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:601)

                at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)

                at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)

                at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)

                at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)

                at java.lang.Thread.run(Thread.java:722)

      Caused by: java.lang.AssertionError: This UIObject's element is not set; you may be missing a call to either Composite.initWidget() or UIObject.setElement()

                at com.google.gwt.user.client.ui.UIObject.getElement(UIObject.java:527)

                at com.google.gwt.user.client.ui.SimplePanel.setWidget(SimplePanel.java:158)

                at com.google.gwt.user.client.ui.SimplePanel.add(SimplePanel.java:69)

                at org.jboss.errai.ui.nav.client.local.Navigation.show(Navigation.java:119)

                at org.jboss.errai.ui.nav.client.local.Navigation.access$1(Navigation.java:94)

                at org.jboss.errai.ui.nav.client.local.Navigation$1.onValueChange(Navigation.java:48)

                at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:128)

                at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:1)

                at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)

                at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40)

                at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193)

                at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88)

                at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127)

                ... 34 more

        • 1. Re: Under my Umbrella Error
          Thomas Frühbeck Newbie

          Hi Hughes,

          I dont see any problem in your code, possibly the problem is related to your template.

          So I would do the following:

               - stop GWT

               - first do a full compile in maven: mvn clean package (don't use eclipse if possible)

               - restart GWT

               - if the problem stil exitsts, turn on debug in pom.xml plugin gwt-maven-plugin:

                          <configuration>        

                              <logLevel>DEBUG</logLevel>

               or on the command line: mvn -Dgwt.logLevel=DEBUG clean package

           

          then look for error statements in log, very verbose, but it helps _very_ much :-)

          • 2. Re: Under my Umbrella Error
            Anton Hughes Master

            The 'solution' was to remove all uses of @Page, unfortunately, as this what I need to get working.