It's not working here...

public class GesfApplication extends Application {
@Override
public void init() {
Window window = new Window(“GESF - Gestão da Estratégia da Saúde e Família”);
Label label = new Label(“Hello Vaadin user”);

	window.addComponent(new CBOSForm());
	window.addComponent(label);
	
	
    window.setModal(true);
    window.setResizable(false);
    window.setWidth("510px");
    window.setHeight("370px");
    
    getMainWindow().addWindow(window);
    window.center();
			
	setMainWindow(window);
}

}

public class CBOSForm extends GridForm {

public CBOSForm() {
    super(3, 5);
    this.setSizeFull();
    this.setImmediate(false);
    this.setWriteThrough(false);
    this.setReadThrough(false);

    GridConstraints constraints = new GridConstraints();
    constraints.addConstraint("cbosId", 0, 0, 1, 0);
    constraints.addConstraint("descricao", 2, 0);
    constraints.addConstraint("versao", 0, 1);

    this.setItemDataSource(new BeanItem<CBOS>(new CBOS()), constraints);

    this.getField("cbosId").setCaption("CBOS");
    this.getField("descricao").setRequired(true);
    this.getField("versao").setCaption("Versão:");

    HorizontalLayout layout = new HorizontalLayout();
    layout.setSpacing(true);
    layout.setWidth("100%");

    Label label = new Label();
    layout.addComponent(label);

    Button cancelButton = new Button("Cancel");
    cancelButton.addListener(new Button.ClickListener() {
        public void buttonClick(Button.ClickEvent event) {
            discard();
            close();
        }
    });
    layout.addComponent(cancelButton);

    Button saveButton = new Button("Save");
    saveButton.addListener(new Button.ClickListener() {
        public void buttonClick(Button.ClickEvent event) {
            commit();
            close();
        }
    });
    layout.addComponent(saveButton);

    layout.setExpandRatio(label, 1);

  //  this.setFooter(layout);
}

private void close() {
    getApplication().getMainWindow().removeWindow(getWindow());
}

}

The erro:

18:17:34,377 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web]
.[default-host]
.
[/vgesf].[GESF - Gestão da Estratégia da Saúde e Família]
] (http-localhost-127.0.0.1-8080-1) Servlet.service() for servlet GESF - Gestão da Estratégia da Saúde e Família threw exception: java.lang.NullPointerException
at com.orion.gesf.GesfApplication.init(GesfApplication.java:25) [classes:]

at com.vaadin.Application.start(Application.java:554) [vaadin-6.7.6.jar:6.7.6]

at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.startApplication(AbstractApplicationServlet.java:1213) [vaadin-6.7.6.jar:6.7.6]

at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:484) [vaadin-6.7.6.jar:6.7.6]

at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_03]