z00 / sportivity

0 stars 0 forks source link

Searching for Team causes exception #15

Open KeithSavage opened 11 years ago

KeithSavage commented 11 years ago
  1. login to sportivity
  2. click Search
  3. Set your location to boston mass
  4. click teams
  5. Edit boston Mass select a different country image

image

(Canada) do not save

image

  1. hit the Gray X
  2. Click Search A stack error appears in the log and an error appears on the screen ...

image

Nov 3, 2013 7:09:13 PM com.sportivity.exceptions.ExceptionHandler handleException SEVERE: JSF error handler: javax.el.PropertyNotFoundException: Property 'searchRadius' not writable on type java.lang.Integer at javax.el.BeanELResolver$BeanProperty.write(BeanELResolver.java:249) at javax.el.BeanELResolver$BeanProperty.access$100(BeanELResolver.java:211) at javax.el.BeanELResolver.setValue(BeanELResolver.java:108) at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:78) at org.apache.el.parser.AstValue.setValue(AstValue.java:218) at org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:253) at org.apache.webbeans.el22.WrappedValueExpression.setValue(WrappedValueExpression.java:95) at org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.setValue(ContextAwareTagValueExpression.java:153) at javax.faces.component.UIInput.updateModel(UIInput.java:406) at javax.faces.component.UIInput.processUpdates(UIInput.java:328) at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1475) at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1475) at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1475) at javax.faces.component.UIViewRoot._processUpdatesDefault(UIViewRoot.java:1451) at javax.faces.component.UIViewRoot.access$600(UIViewRoot.java:74) at javax.faces.component.UIViewRoot$UpdateModelPhaseProcessor.process(UIViewRoot.java:1589) at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1412) at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:819) at org.apache.myfaces.lifecycle.UpdateModelValuesExecutor.execute(UpdateModelValuesExecutor.java:38) at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:170) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:75) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.sportivity.services.media.NoCacheFilter.doFilter(NoCacheFilter.java:67) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:145) at com.sportivity.loaders.AsyncPrettyFilter.doFilter(AsyncPrettyFilter.java:50) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339) at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:137) at com.sportivity.loaders.AsyncPrettyFilter.doFilter(AsyncPrettyFilter.java:50) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662)

KeithSavage commented 11 years ago

Note this also happens when you try to Join a team

  1. Click Join Team
  2. Acknowledge Popup
  3. Click Search ...

Same stack

z00 commented 11 years ago

in QA or dev mode we don't populated geo data for other countries. I'll send you files of what's populated. The dataset is huge so we only keep few cities in MA to keep things running fast. In prod we'll have the whole world. Once we get to launch date I'll give you the full data list to play with.

Actually the data set is always packaged with a build. You can get the files on server from this path:

/home/tomee/apache-tomee/webapps/ROOT/WEB-INF/classes

the files are:

cities15000.txt has all city info, core file, we only load few for qa/dev admin1Codes.txt has state/region info countryIsoCodes.txt has country list

We get all of this data from http://www.geonames.org/ db

KeithSavage commented 11 years ago

We should talk about this one

Sent from my iPad

On Nov 4, 2013, at 9:32 PM, "z00" notifications@github.com wrote:

in QA or dev mode we don't populated geo data for other countries. I'll send you files of what's populated. The dataset is huge so we only keep few cities in MA to keep things running fast. In prod we'll have the whole world. Once we get to launch date I'll give you the full data list to play with.

— Reply to this email directly or view it on GitHub.

z00 commented 11 years ago

Ok, ping me when you have time. I'll work around your schedule.

KeithSavage commented 11 years ago

Note this also happens when you try to Join a team

Click Join Team Acknowledge Popup Click Search ... Same stack

z00 commented 11 years ago

Najy, I look into this, there is no setter for searchRadius, not sure what you had in mind for that as you pull the radius from the Faces context. Here is the full error:

SEVERE: JSF error handler: javax.el.PropertyNotFoundException: Property 'searchRadius' not writable on type java.lang.Integer at javax.el.BeanELResolver$BeanProperty.write(BeanELResolver.java:249) at javax.el.BeanELResolver$BeanProperty.access$100(BeanELResolver.java:211) at javax.el.BeanELResolver.setValue(BeanELResolver.java:108) at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:78) at org.apache.el.parser.AstValue.setValue(AstValue.java:218) at org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:253) at org.apache.webbeans.el22.WrappedValueExpression.setValue(WrappedValueExpression.java:95) at org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.setValue(ContextAwareTagValueExpression.java:153) at javax.faces.component.UIInput.updateModel(UIInput.java:406) at javax.faces.component.UIInput.processUpdates(UIInput.java:328) at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1475) at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1475) at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1475) at javax.faces.component.UIViewRoot._processUpdatesDefault(UIViewRoot.java:1451) at javax.faces.component.UIViewRoot.access$600(UIViewRoot.java:74) at javax.faces.component.UIViewRoot$UpdateModelPhaseProcessor.process(UIViewRoot.java:1589) at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1412) at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:819) at org.apache.myfaces.lifecycle.UpdateModelValuesExecutor.execute(UpdateModelValuesExecutor.java:38) at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:170) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:75) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.sportivity.services.media.NoCacheFilter.doFilter(NoCacheFilter.java:67) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:145) at com.sportivity.loaders.AsyncPrettyFilter.doFilter(AsyncPrettyFilter.java:50) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339) at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:137) at com.sportivity.loaders.AsyncPrettyFilter.doFilter(AsyncPrettyFilter.java:50) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662)

z00 commented 11 years ago

The issue below is fixed. We still need to discuss how geo data is populated and the cities.

Click Join Team Acknowledge Popup Click Search ... Same stack

nnicolas commented 10 years ago

Fixed this bug