Untitled


SUBMITTED BY: Guest

DATE: Dec. 10, 2013, 12:03 a.m.

FORMAT: Text only

SIZE: 4.7 kB

HITS: 2144

  1. Hibernate: select geopoint0_.point as col_0_0_ from geo_point geopoint0_
  2. 2013-06-28 11:39:31.549:WARN::/Sample/companies
  3. java.lang.UnsupportedOperationException
  4. at org.hibernate.spatial.GeometrySqlTypeDescriptor.getExtractor(GeometrySqlTypeDescriptor.java:57)
  5. at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:254)
  6. at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:250)
  7. at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:230)
  8. at org.hibernate.loader.hql.QueryLoader.getResultColumnOrRow(QueryLoader.java:402)
  9. at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:639)
  10. at org.hibernate.loader.Loader.doQuery(Loader.java:829)
  11. at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
  12. at org.hibernate.loader.Loader.doList(Loader.java:2542)
  13. at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
  14. at org.hibernate.loader.Loader.list(Loader.java:2271)
  15. at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:459)
  16. at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:365)
  17. at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
  18. at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268)
  19. at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
  20. at b2b.lol.dao.GeoPointDAOImpl.findByCompany(GeoPointDAOImpl.java:27)
  21. at b2b.lol.service.GeoPointServiceImpl.listGeoPoint(GeoPointServiceImpl.java:18)
  22. at b2b.lol.controller.HomeController.companies(HomeController.java:48)
  23. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  24. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  25. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  26. at java.lang.reflect.Method.invoke(Unknown Source)
  27. at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
  28. at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)
  29. at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)
  30. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
  31. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
  32. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
  33. at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
  34. at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
  35. at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
  36. at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
  37. at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
  38. at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
  39. at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
  40. at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
  41. at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
  42. at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
  43. at org.mortbay.jetty.Server.handle(Server.java:326)
  44. at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
  45. at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
  46. at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
  47. at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
  48. at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
  49. at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
  50. at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
  51. public List<?> findByCompany(long companyId) {
  52. Session session = sessionFactory.openSession();
  53. Query query = session.createQuery("select point from GeoPoint");
  54. List<?> rows = query.list();
  55. return rows;

comments powered by Disqus