Hi there,
I am getting this Exception on first call.
The setup is really simple, so I don’t get the problem.
Setup:
Eclipse 3.7.2
Vaadin 6.7.7
GMaps Addon 0.9.13
public class VaadinApplication extends Application {
@Override
public void init() {
Window mainWindow = new Window(“Vaadin Application”);
setMainWindow(mainWindow);
GoogleMap googleMap_1 = new GoogleMap(this, new Point2D.Double(22.3, 60.4522), 8);
googleMap_1.setImmediate(false);
googleMap_1.setWidth(“220px”);
googleMap_1.setHeight(“313px”);
googleMap_1.addMarker(new BasicMarker(1L, new Point2D.Double(22.3, 60.4522), “Test marker”));
mainWindow.addComponent(googleMap_1);
}
}
Exception on first call:
java.lang.NullPointerException
at org.vaadin.hezamu.googlemapwidget.GoogleMap.(Unknown Source)
at org.vaadin.hezamu.googlemapwidget.GoogleMap.(Unknown Source)
at com.example.vaadin.MyComp.buildMainLayout(MyComp.java:111)
at com.example.vaadin.MyComp.(MyComp.java:61)
at com.example.vaadin.VaadinApplication.init(VaadinApplication.java:15)
at com.vaadin.Application.start(Application.java:554)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.startApplication(AbstractApplicationServlet.java:1213)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:484)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:250)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)