w7cook / OpenBook

a project to create a basic social networking site
http://www.cs.utexas.edu/~wcook/Courses/devclass/index.htm
25 stars 20 forks source link

Fixed issues with profile Photos and default skin #286

Closed laurenyew closed 12 years ago

laurenyew commented 12 years ago

Fixed #270 Fixed #260 Fixed #268 Fixed default skin so that it is now the correct skin instead of ut skin Fixed photos so now the profile photo is set by a query (static going to null is no longer a problem) Fixed profilePhoto deletion (added in changing to default profile photo if deleting the profile photo)

amshali commented 12 years ago

try setting the picture using gravatar: I get the following exception. Internal Server Error (500) for request GET /photos/setProfilePhoto

Execution exception (In /app/controllers/Photos.java around line 118) IllegalArgumentException occured : id to load is required for loading

play.exceptions.JavaExecutionException: id to load is required for loading at play.mvc.ActionInvoker.invoke(ActionInvoker.java:231) at Invocation.HTTP Request(Play!) Caused by: java.lang.IllegalArgumentException: id to load is required for loading at org.hibernate.event.LoadEvent.(LoadEvent.java:89) at org.hibernate.event.LoadEvent.(LoadEvent.java:61) at org.hibernate.impl.SessionImpl.get(SessionImpl.java:1002) at org.hibernate.impl.SessionImpl.get(SessionImpl.java:998) at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:614) at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:589) at play.db.jpa.JPQL.findById(JPQL.java:36) at models.Photo.findById(Photo.java) at controllers.Photos.setProfilePhoto(Photos.java:118) at play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:548) at play.mvc.ActionInvoker.invoke(ActionInvoker.java:502) at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:478) at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:473) at play.mvc.ActionInvoker.invoke(ActionInvoker.java:161)

laurenyew commented 12 years ago

Can you be more specific? I made a gravatar successfully.

laurenyew commented 12 years ago

Try running play clean and play dependencies again. I had to change the routes file for that GET