Want more features on Pastebin? Sign Up, it's FREE!
Guest

Vatsala

By: a guest on May 26th, 2010  |  syntax: None  |  size: 16.38 KB  |  views: 693  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Cannot open connection
  2.         at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)
  3.         at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:76)
  4.         at com.unniyathie.webservices.ner.ListCRFModelsResource.loadDataFromDatabase(ListCRFModelsResource.java:43)
  5.         at com.unniyathie.webservices.ner.ListCRFModelsResource.doInit(ListCRFModelsResource.java:32)
  6.         at org.restlet.resource.UniformResource.init(UniformResource.java:556)
  7.         at org.restlet.resource.Finder.handle(Finder.java:513)
  8.         at org.restlet.routing.Filter.doHandle(Filter.java:156)
  9.         at org.restlet.routing.Filter.handle(Filter.java:203)
  10.         at org.restlet.routing.Router.doHandle(Router.java:396)
  11.         at org.restlet.routing.Router.handle(Router.java:612)
  12.         at org.restlet.routing.Filter.doHandle(Filter.java:156)
  13.         at org.restlet.routing.Filter.handle(Filter.java:203)
  14.         at org.restlet.routing.Filter.doHandle(Filter.java:156)
  15.         at org.restlet.routing.Filter.handle(Filter.java:203)
  16.         at org.restlet.routing.Filter.doHandle(Filter.java:156)
  17.         at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:152)
  18.         at org.restlet.routing.Filter.handle(Filter.java:203)
  19.         at org.restlet.routing.Filter.doHandle(Filter.java:156)
  20.         at org.restlet.routing.Filter.handle(Filter.java:203)
  21.         at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
  22.         at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:72)
  23.         at org.restlet.Application.handle(Application.java:400)
  24.         at org.restlet.routing.Filter.doHandle(Filter.java:156)
  25.         at org.restlet.routing.Filter.handle(Filter.java:203)
  26.         at org.restlet.routing.Router.doHandle(Router.java:396)
  27.         at org.restlet.routing.Router.handle(Router.java:612)
  28.         at org.restlet.routing.Filter.doHandle(Filter.java:156)
  29.         at org.restlet.routing.Filter.handle(Filter.java:203)
  30.         at org.restlet.routing.Router.doHandle(Router.java:396)
  31.         at org.restlet.routing.Router.handle(Router.java:612)
  32.         at org.restlet.routing.Filter.doHandle(Filter.java:156)
  33.         at org.restlet.routing.Filter.handle(Filter.java:203)
  34.         at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
  35.         at org.restlet.Component.handle(Component.java:382)
  36.         at org.restlet.Server.handle(Server.java:400)
  37.         at org.restlet.engine.ServerHelper.handle(ServerHelper.java:71)
  38.         at org.restlet.engine.http.HttpServerHelper.handle(HttpServerHelper.java:149)
  39.         at org.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:1013)
  40.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  41.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  42.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  43.         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
  44.         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  45.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  46.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  47.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  48.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)
  49.         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:818)
  50.         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624)
  51.         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
  52.         at java.lang.Thread.run(Unknown Source)
  53. Caused by: org.hibernate.exception.JDBCConnectionException: Cannot open connection
  54.         at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:97)
  55.         at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
  56.         at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
  57.         at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)
  58.         at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
  59.         at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
  60.         at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1573)
  61.         at org.hibernate.loader.Loader.doQuery(Loader.java:696)
  62.         at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
  63.         at org.hibernate.loader.Loader.doList(Loader.java:2228)
  64.         at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
  65.         at org.hibernate.loader.Loader.list(Loader.java:2120)
  66.         at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
  67.         at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)
  68.         at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
  69.         at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)
  70.         at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
  71.         at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:67)
  72.         ... 49 more
  73. Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
  74.  
  75. The last packet successfully received from the server was 1,274,868,181,212 milliseconds ago.  The last packet sent successfully to the server was 0 milliseconds ago.
  76.         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  77.         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  78.         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
  79.         at java.lang.reflect.Constructor.newInstance(Unknown Source)
  80.         at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
  81.         at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
  82.         at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2214)
  83.         at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:773)
  84.         at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
  85.         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  86.         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  87.         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
  88.         at java.lang.reflect.Constructor.newInstance(Unknown Source)
  89.         at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
  90.         at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:352)
  91.         at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)
  92.         at java.sql.DriverManager.getConnection(Unknown Source)
  93.         at java.sql.DriverManager.getConnection(Unknown Source)
  94.         at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)
  95.         at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
  96.         ... 63 more
  97. Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
  98.  
  99. The last packet successfully received from the server was 1,274,868,181,212 milliseconds ago.  The last packet sent successfully to the server was 0 milliseconds ago.
  100.         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  101.         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  102.         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
  103.         at java.lang.reflect.Constructor.newInstance(Unknown Source)
  104.         at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
  105.         at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
  106.         at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:341)
  107.         at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2137)
  108.         ... 76 more
  109. Caused by: java.net.ConnectException: Connection refused: connect
  110.         at java.net.PlainSocketImpl.socketConnect(Native Method)
  111.         at java.net.PlainSocketImpl.doConnect(Unknown Source)
  112.         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
  113.         at java.net.PlainSocketImpl.connect(Unknown Source)
  114.         at java.net.SocksSocketImpl.connect(Unknown Source)
  115.         at java.net.Socket.connect(Unknown Source)
  116.         at java.net.Socket.connect(Unknown Source)
  117.         at java.net.Socket.<init>(Unknown Source)
  118.         at java.net.Socket.<init>(Unknown Source)
  119.         at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253)
  120.         at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:290)
  121.         ... 77 more
  122. 26 May, 2010 3:33:01 PM org.restlet.service.StatusService getStatus
  123. SEVERE: Unhandled exception or error intercepted
  124. javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Cannot open connection
  125.         at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)
  126.         at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:76)
  127.         at com.unniyathie.webservices.ner.ListCRFModelsResource.loadDataFromDatabase(ListCRFModelsResource.java:43)
  128.         at com.unniyathie.webservices.ner.ListCRFModelsResource.doInit(ListCRFModelsResource.java:32)
  129.         at org.restlet.resource.UniformResource.init(UniformResource.java:556)
  130.         at org.restlet.resource.Finder.handle(Finder.java:513)
  131.         at org.restlet.routing.Filter.doHandle(Filter.java:156)
  132.         at org.restlet.routing.Filter.handle(Filter.java:203)
  133.         at org.restlet.routing.Router.doHandle(Router.java:396)
  134.         at org.restlet.routing.Router.handle(Router.java:612)
  135.         at org.restlet.routing.Filter.doHandle(Filter.java:156)
  136.         at org.restlet.routing.Filter.handle(Filter.java:203)
  137.         at org.restlet.routing.Filter.doHandle(Filter.java:156)
  138.         at org.restlet.routing.Filter.handle(Filter.java:203)
  139.         at org.restlet.routing.Filter.doHandle(Filter.java:156)
  140.         at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:152)
  141.         at org.restlet.routing.Filter.handle(Filter.java:203)
  142.         at org.restlet.routing.Filter.doHandle(Filter.java:156)
  143.         at org.restlet.routing.Filter.handle(Filter.java:203)
  144.         at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
  145.         at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:72)
  146.         at org.restlet.Application.handle(Application.java:400)
  147.         at org.restlet.routing.Filter.doHandle(Filter.java:156)
  148.         at org.restlet.routing.Filter.handle(Filter.java:203)
  149.         at org.restlet.routing.Router.doHandle(Router.java:396)
  150.         at org.restlet.routing.Router.handle(Router.java:612)
  151.         at org.restlet.routing.Filter.doHandle(Filter.java:156)
  152.         at org.restlet.routing.Filter.handle(Filter.java:203)
  153.         at org.restlet.routing.Router.doHandle(Router.java:396)
  154.         at org.restlet.routing.Router.handle(Router.java:612)
  155.         at org.restlet.routing.Filter.doHandle(Filter.java:156)
  156.         at org.restlet.routing.Filter.handle(Filter.java:203)
  157.         at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
  158.         at org.restlet.Component.handle(Component.java:382)
  159.         at org.restlet.Server.handle(Server.java:400)
  160.         at org.restlet.engine.ServerHelper.handle(ServerHelper.java:71)
  161.         at org.restlet.engine.http.HttpServerHelper.handle(HttpServerHelper.java:149)
  162.         at org.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:1013)
  163.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  164.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  165.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  166.         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
  167.         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  168.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  169.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  170.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  171.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)
  172.         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:818)
  173.         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624)
  174.         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
  175.         at java.lang.Thread.run(Unknown Source)
  176. Caused by: org.hibernate.exception.JDBCConnectionException: Cannot open connection
  177.         at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:97)
  178.         at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
  179.         at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
  180.         at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)
  181.         at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
  182.         at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
  183.         at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1573)
  184.         at org.hibernate.loader.Loader.doQuery(Loader.java:696)
  185.         at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
  186.         at org.hibernate.loader.Loader.doList(Loader.java:2228)
  187.         at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
  188.         at org.hibernate.loader.Loader.list(Loader.java:2120)
  189.         at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
  190.         at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)
  191.         at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
  192.         at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)
  193.         at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
  194.         at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:67)
  195.         ... 49 more
  196. Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
  197.  
  198. The last packet successfully received from the server was 1,274,868,181,212 milliseconds ago.  The last packet sent successfully to the server was 0 milliseconds ago.
  199.         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  200.         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  201.         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
  202.         at java.lang.reflect.Constructor.newInstance(Unknown Source)
  203.         at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
  204.         at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
  205.         at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2214)
  206.         at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:773)
  207.         at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
  208.         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  209.         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  210.         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
  211.         at java.lang.reflect.Constructor.newInstance(Unknown Source)
  212.         at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
  213.         at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:352)
  214.         at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)
  215.         at java.sql.DriverManager.getConnection(Unknown Source)
  216.         at java.sql.DriverManager.getConnection(Unknown Source)
  217.         at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)
  218.         at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
  219.         ... 63 more
  220. Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
  221.  
  222. The last packet successfully received from the server was 1,274,868,181,212 milliseconds ago.  The last packet sent successfully to the server was 0 milliseconds ago.
  223.         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  224.         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  225.         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
  226.         at java.lang.reflect.Constructor.newInstance(Unknown Source)
  227.         at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
  228.         at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
  229.         at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:341)
  230.         at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2137)
  231.         ... 76 more
  232. Caused by: java.net.ConnectException: Connection refused: connect
  233.         at java.net.PlainSocketImpl.socketConnect(Native Method)
  234.         at java.net.PlainSocketImpl.doConnect(Unknown Source)
  235.         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
  236.         at java.net.PlainSocketImpl.connect(Unknown Source)
  237.         at java.net.SocksSocketImpl.connect(Unknown Source)
  238.         at java.net.Socket.connect(Unknown Source)
  239.         at java.net.Socket.connect(Unknown Source)
  240.         at java.net.Socket.<init>(Unknown Source)
  241.         at java.net.Socket.<init>(Unknown Source)
  242.         at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253)
  243.         at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:290)
  244.         ... 77 more
clone this paste RAW Paste Data