Google Maps in the cloud

0
My application with the Google Maps module keeps throwing errors once deployed in the cloud. In a form that registers a client's address, an On-Change event was created for the Street, Housenumber, Zipcode and Place attribute fields. After entering a new streetname, a new location (lat+long) needs to be retrieved using Google's webservices. When leaving the field, a standard microflow is triggered and it returns this error: 2012-03-27 08:57:22.823 ERROR Connectorcom.mendix.core.CoreException: Exception occurred in action '{"name":"CRM.DSRetrieveLocation","currentactivity":{"inputVariableNames":["NewLocation","Adres","Adres/Adresregel1","Adres/Huisnummer","Adres/Plaats","Land"],"caption":"Change 'NewLocation' (LocationAdres, Address)","inputConstants":{"refreshInClient":false,"commitType":"YES","changes":["{SET,GoogleMaps.LocationAdres=$Adres}","{SET,Address=$Adres/Adresregel1 + ' ' + $Adres/Huisnummer + ' ' + $Adres/Plaats + ' ' + $Land}"]},"type":"Change"},"type":"Microflow"}', all database changes executed by this action were rolled back at com.mendix.core.actionmanagement.CoreAction.c(SourceFile:485) Caused by: com.mendix.core.CoreException: Exception occurred in microflow 'CRM.DSRetrieveLocation' for activity 'Change 'NewLocation' (LocationAdres, Address)', all database changes executed by this microflow were rolled back at mv.b(SourceFile:257) Caused by: com.mendix.core.CoreException: Exception occurred in microflow 'GoogleMaps.BCo_Location' for activity 'Call 'CalculateGeo'', all database changes executed by this microflow were rolled back at mv.b(SourceFile:257) Caused by: com.mendix.core.CoreException: java.security.AccessControlException: access denied (java.net.SocketPermission maps.google.com:80 connect,resolve) at hg.b(SourceFile:167) Caused by: java.security.AccessControlException: access denied (java.net.SocketPermission maps.google.com:80 connect,resolve) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034) at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) at sun.net.www.http.HttpClient.<init>(HttpClient.java:233) at sun.net.www.http.HttpClient.New(HttpClient.java:306) at sun.net.www.http.HttpClient.New(HttpClient.java:323) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172) at java.net.URL.openStream(URL.java:1010) at googlemaps.actions.GeoCoder.getLocation(GeoCoder.java:27) at googlemaps.actions.CalculateGeo.executeAction(CalculateGeo.java:41) at googlemaps.actions.CalculateGeo.executeAction(CalculateGeo.java:20) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:48) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:434) at hg.b(SourceFile:155) at com.mendix.core.Core.execute(SourceFile:199) at lj.a(SourceFile:70) at mv.a(SourceFile:72) at mu.executeAction(SourceFile:102) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:48) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:434) at hg.b(SourceFile:155) at com.mendix.core.Core.executeSync(SourceFile:176) at hm.f(SourceFile:73) at hm.a(SourceFile:33) at hj.execute(SourceFile:106) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:434) at hg.b(SourceFile:159) at com.mendix.core.Core.commit(SourceFile:475) at lA.a(SourceFile:97) at mv.a(SourceFile:77) at mu.executeAction(SourceFile:102) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:48) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:434) at hg.b(SourceFile:155) at com.mendix.core.Core.execute(SourceFile:199) at fZ.execute(SourceFile:183) at iD.a(SourceFile:306) at iD.a(SourceFile:235) at iD.processRequest(SourceFile:179) at iG.a(SourceFile:71) at com.mendix.core.MxRuntime.processRequest(SourceFile:842) at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:43) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:334) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Thread.java:662) Because I don't have this issue in development, my guess is it's got something to do with the strict security policy for java actions in the cloud. If that is true, how do you deploy the Google Maps module to the cloud? PS: The browser used is Google Chrome.
asked
0 answers