TS 550: Не работает Rest API

Обсуждаем TrackStudio по-русски

TS 550: Не работает Rest API

Postby mikolg » Fri Dec 20, 2019 12:02 pm

Обновились до TrackStudio 5.5.0.27.11.2019
Не работает rest API.

Воспроизводится как на рабочей версии, так и в тестовой standalone

Пример

http://localhost:8888/TrackStudio/rest/ ... sword=root


Code: Select all
            System Information:
Java Information:
Java Version: 1.8.0_232
Java Vendor: Private Build
Java Specification Vendor: Oracle Corporation
Java Specification Version: 1.8
Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Java Classpath: /home/mikolg/TrackStudio-550/lib/ext/annotations-api.jar:/home/mikolg/TrackStudio-550/lib/ext/catalina.jar:/home/mikolg/TrackStudio-550/lib/ext/commons-el.jar:/home/mikolg/TrackStudio-550/lib/ext/tomcat-juli.jar:/home/mikolg/TrackStudio-550/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/apache-jsp/org.eclipse.jetty.orbit.org.eclipse.jdt.core-3.8.2.v20130121.jar:/home/mikolg/TrackStudio-550/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.9.M3.jar:/home/mikolg/TrackStudio-550/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.9.M3.jar:/home/mikolg/TrackStudio-550/lib/apache-jstl/org.apache.taglibs.taglibs-standard-impl-1.2.1.jar:/home/mikolg/TrackStudio-550/lib/apache-jstl/org.apache.taglibs.taglibs-standard-spec-1.2.1.jar:/home/mikolg/TrackStudio-550/resources:/home/mikolg/TrackStudio-550/lib/servlet-api-3.1.jar:/home/mikolg/TrackStudio-550/lib/jetty-schemas-3.1.jar:/home/mikolg/TrackStudio-550/lib/jetty-http-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-server-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-xml-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-util-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-io-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-jndi-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jndi/javax.transaction-api-1.2.jar:/home/mikolg/TrackStudio-550/lib/jetty-security-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-servlet-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-webapp-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-deploy-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-plus-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-annotations-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/annotations/asm-5.0.1.jar:/home/mikolg/TrackStudio-550/lib/annotations/asm-commons-5.0.1.jar:/home/mikolg/TrackStudio-550/lib/annotations/javax.annotation-api-1.2.jar:/home/mikolg/TrackStudio-550/lib/websocket/javax.websocket-api-1.0.jar:/home/mikolg/TrackStudio-550/lib/websocket/javax-websocket-client-impl-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/websocket/javax-websocket-server-impl-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/websocket/websocket-api-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/websocket/websocket-client-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/websocket/websocket-common-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/websocket/websocket-server-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/websocket/websocket-servlet-9.2.10.v20150310.jar
Servlet Container Information:
Servlet Version: 31
AS Vendor: jetty/9.2.10.v20150310
Virtual Machine Information:
VM Vendor: Private Build
VM: OpenJDK 64-Bit Server VM
VM Version: 25.232-b09
Runtime Version: 1.8.0_232-8u232-b09-0ubuntu1~18.04.1-b09
VM Specification Version: 1.8
VM Info: mixed mode
System information:
OS Name: amd64-Linux(4.15.0-54-generic)
Total Memory: 300634112
Free Memory: 122112856
Product Information:
Version: 5.5.0.20.12.2019
Licensee: Dmitry Testerov
License Type: EVAL
Database Information:
Database: HSQL Database Engine
Database version:2.2.8
Database major version:2
Database minor version:2
Database driver name:HSQL Database Engine Driver
Database driver version:2.2.8
Database driver major version:2
Database driver minor version:2
Hibernate Dialect: org.hibernate.dialect.HSQLDialect
Hibernate Driver: org.hsqldb.jdbcDriver
Expire Date: 1/7/47 10:33 AM
Stack Trace:
            org.jboss.resteasy.spi.UnhandledException: org.hibernate.SessionException: Session is closed!
   at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:323)
   at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:199)
   at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:175)
   at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:529)
   at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:491)
   at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:120)
   at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:200)
   at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:48)
   at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:43)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
   at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
   at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
   at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
   at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
   at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
   at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
   at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
   at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
   at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
   at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
   at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
   at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
   at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
   at org.eclipse.jetty.server.Server.handle(Server.java:497)
   at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
   at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
   at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
   at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
   at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
   at java.lang.Thread.run(Thread.java:748)
Caused by: org.hibernate.SessionException: Session is closed!
   at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:72)
   at org.hibernate.impl.SessionImpl.setCacheMode(SessionImpl.java:1442)
   at org.hibernate.impl.AbstractQueryImpl.before(AbstractQueryImpl.java:913)
   at org.hibernate.impl.QueryImpl.list(QueryImpl.java:100)
   at com.trackstudio.tools.HibernateUtil.getList(HibernateUtil.java:42)
   at com.trackstudio.tools.HibernateUtil.getList(HibernateUtil.java:53)
   at com.trackstudio.kernel.cache.TaskRelatedManager.getMessages(TaskRelatedManager.java:1144)
   at com.trackstudio.kernel.cache.TaskRelatedInfo.getMessages(TaskRelatedInfo.java:580)
   at com.trackstudio.kernel.cache.TaskRelatedInfo.getMessageCount(TaskRelatedInfo.java:938)
   at com.trackstudio.secured.SecuredTaskBean.getMessageCount(SecuredTaskBean.java:342)
   at com.trackstudio.secured.SecuredTaskBean.getRest(SecuredTaskBean.java:871)
   at com.trackstudio.rest.impl.TaskImpl.getTask(TaskImpl.java:40)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
   at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:252)
   at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:217)
   at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:206)
   at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:514)
   ... 26 more
Last edited by mikolg on Sat Dec 21, 2019 8:08 am, edited 1 time in total.
mikolg
 
Posts: 249
Joined: Thu Jul 02, 2009 8:04 pm

Re: TS 550: Не работает Rest API

Postby mikolg » Fri Dec 20, 2019 12:04 pm

Такой запрос localhost:8888/TrackStudio/rest/task/tasks/1?filter=All&login=root&password=root

Выдает

Code: Select all
2019-12-20 15:55:21.837:WARN:oejs.ServletHandler:qtp707806938-77: /TrackStudio/rest/task/info/1
org.jboss.resteasy.spi.UnhandledException: org.hibernate.SessionException: Session is closed!
2019-12-20 15:55:21,841 ERROR TrackStudio Error:_jspService:183 - System Information:
Java Information:
Java Version: 1.8.0_232
Java Vendor: Private Build
Java Specification Vendor: Oracle Corporation
Java Specification Version: 1.8
Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Java Classpath: /home/mikolg/TrackStudio-550/lib/ext/annotations-api.jar:/home/mikolg/TrackStudio-550/lib/ext/catalina.jar:/home/mikolg/TrackStudio-550/lib/ext/commons-el.jar:/home/mikolg/TrackStudio-550/lib/ext/tomcat-juli.jar:/home/mikolg/TrackStudio-550/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/apache-jsp/org.eclipse.jetty.orbit.org.eclipse.jdt.core-3.8.2.v20130121.jar:/home/mikolg/TrackStudio-550/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.9.M3.jar:/home/mikolg/TrackStudio-550/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.9.M3.jar:/home/mikolg/TrackStudio-550/lib/apache-jstl/org.apache.taglibs.taglibs-standard-impl-1.2.1.jar:/home/mikolg/TrackStudio-550/lib/apache-jstl/org.apache.taglibs.taglibs-standard-spec-1.2.1.jar:/home/mikolg/TrackStudio-550/resources:/home/mikolg/TrackStudio-550/lib/servlet-api-3.1.jar:/home/mikolg/TrackStudio-550/lib/jetty-schemas-3.1.jar:/home/mikolg/TrackStudio-550/lib/jetty-http-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-server-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-xml-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-util-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-io-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-jndi-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jndi/javax.transaction-api-1.2.jar:/home/mikolg/TrackStudio-550/lib/jetty-security-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-servlet-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-webapp-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-deploy-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-plus-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/jetty-annotations-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/annotations/asm-5.0.1.jar:/home/mikolg/TrackStudio-550/lib/annotations/asm-commons-5.0.1.jar:/home/mikolg/TrackStudio-550/lib/annotations/javax.annotation-api-1.2.jar:/home/mikolg/TrackStudio-550/lib/websocket/javax.websocket-api-1.0.jar:/home/mikolg/TrackStudio-550/lib/websocket/javax-websocket-client-impl-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/websocket/javax-websocket-server-impl-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/websocket/websocket-api-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/websocket/websocket-client-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/websocket/websocket-common-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/websocket/websocket-server-9.2.10.v20150310.jar:/home/mikolg/TrackStudio-550/lib/websocket/websocket-servlet-9.2.10.v20150310.jar
Servlet Container Information:
Servlet Version: 31
AS Vendor: jetty/9.2.10.v20150310
Virtual Machine Information:
VM Vendor: Private Build
VM: OpenJDK 64-Bit Server VM
VM Version: 25.232-b09
Runtime Version: 1.8.0_232-8u232-b09-0ubuntu1~18.04.1-b09
VM Specification Version: 1.8
VM Info: mixed mode
System information:
OS Name: amd64-Linux(4.15.0-54-generic)
Total Memory: 300634112
Free Memory: 122112856
   at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:323)
Product Information:
   at org.jboss.resteasy.core.SynchronousDispatcher.handleException(Synchronous   at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:175)
Dispatcher.java:199)
Version: 5.5.0.20.12.2019
Licensee: Dmitry Testerov
License Type: EVAL
Database Information:
Database: HSQL Database Engine
Database version:2.2.8
Database major version:2
Database minor version:2
Database driver name:HSQL Database Engine Driver
Database driver version:2.2.8
Database driver major version:2
Database driver minor version:2
Hibernate Dialect: org.hibernate.dialect.HSQLDialect
Hibernate Driver: org.hsqldb.jdbcDriver
Expire Date: 1/7/47 10:33 AM
Stack Trace:
TrackStudio Error:
org.jboss.resteasy.spi.UnhandledException: org.hibernate.SessionException: Session is closed!
   at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:323)
   at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:199)
   at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:175)
   at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:529)
   at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:491)
   at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:120)
   at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:200)
   at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:48)
   at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:43)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
   at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
   at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
   at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
   at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
   at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
   at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
   at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
   at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
   at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
   at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
   at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
   at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
   at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
   at org.eclipse.jetty.server.Server.handle(Server.java:497)
   at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
   at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
   at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
   at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
   at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
   at java.lang.Thread.run(Thread.java:748)
Caused by: org.hibernate.SessionException: Session is closed!
   at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:72)
   at org.hibernate.impl.SessionImpl.setCacheMode(SessionImpl.java:1442)
   at org.hibernate.impl.AbstractQueryImpl.before(AbstractQueryImpl.java:913)
   at org.hibernate.impl.QueryImpl.list(QueryImpl.java:100)
   at com.trackstudio.tools.HibernateUtil.getList(HibernateUtil.java:42)
   at com.trackstudio.tools.HibernateUtil.getList(HibernateUtil.java:53)
   at com.trackstudio.kernel.cache.TaskRelatedManager.getMessages(TaskRelatedManager.java:1144)
   at com.trackstudio.kernel.cache.TaskRelatedInfo.getMessages(TaskRelatedInfo.java:580)
   at com.trackstudio.kernel.cache.TaskRelatedInfo.getMessageCount(TaskRelatedInfo.java:938)
   at com.trackstudio.secured.SecuredTaskBean.getMessageCount(SecuredTaskBean.java:342)
   at com.trackstudio.secured.SecuredTaskBean.getRest(SecuredTaskBean.java:871)
   at com.trackstudio.rest.impl.TaskImpl.getTask(TaskImpl.java:40)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
   at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:252)
   at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:217)
   at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:206)
   at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:514)
   ... 26 more
   at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:529)
   at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:491)
   at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:120)
   at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:200)
   at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:48)
   at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:43)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
   at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
   at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
   at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
   at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
   at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
   at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
   at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
   at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
   at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
   at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
   at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
   at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
   at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
   at org.eclipse.jetty.server.Server.handle(Server.java:497)
   at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
   at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
   at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
   at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
   at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
   at java.lang.Thread.run(Thread.java:748)
Caused by:
org.hibernate.SessionException: Session is closed!
   at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:72)
   at org.hibernate.impl.SessionImpl.setCacheMode(SessionImpl.java:1442)
   at org.hibernate.impl.AbstractQueryImpl.before(AbstractQueryImpl.java:913)
   at org.hibernate.impl.QueryImpl.list(QueryImpl.java:100)
   at com.trackstudio.tools.HibernateUtil.getList(HibernateUtil.java:42)
   at com.trackstudio.tools.HibernateUtil.getList(HibernateUtil.java:53)
   at com.trackstudio.kernel.cache.TaskRelatedManager.getMessages(TaskRelatedManager.java:1144)
   at com.trackstudio.kernel.cache.TaskRelatedInfo.getMessages(TaskRelatedInfo.java:580)
   at com.trackstudio.kernel.cache.TaskRelatedInfo.getMessageCount(TaskRelatedInfo.java:938)
   at com.trackstudio.secured.SecuredTaskBean.getMessageCount(SecuredTaskBean.java:342)
   at com.trackstudio.secured.SecuredTaskBean.getRest(SecuredTaskBean.java:871)
   at com.trackstudio.rest.impl.TaskImpl.getTask(TaskImpl.java:40)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
   at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:252)
   at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:217)
   at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:206)
   at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:514)
   at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:491)
   at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:120)
   at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:200)
   at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:48)
   at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:43)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
   at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
   at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
   at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
   at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
   at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
   at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
   at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
   at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
   at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
   at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
   at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
   at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
   at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
   at org.eclipse.jetty.server.Server.handle(Server.java:497)
   at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
   at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
   at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
   at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
   at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
   at java.lang.Thread.run(Thread.java:748)
org.jboss.resteasy.spi.UnhandledException: org.hibernate.SessionException: Session is closed!
   at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:323)
   at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:199)
   at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:175)
   at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:529)
   at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:491)
   at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:120)
   at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:200)
   at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:48)
   at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:43)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
   at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
   at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
   at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
   at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
   at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
   at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
   at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
   at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
   at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
   at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
   at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
   at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
   at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
   at org.eclipse.jetty.server.Server.handle(Server.java:497)
   at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
   at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
   at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
   at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
   at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
   at java.lang.Thread.run(Thread.java:748)
Caused by: org.hibernate.SessionException: Session is closed!
   at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:72)
   at org.hibernate.impl.SessionImpl.setCacheMode(SessionImpl.java:1442)
   at org.hibernate.impl.AbstractQueryImpl.before(AbstractQueryImpl.java:913)
   at org.hibernate.impl.QueryImpl.list(QueryImpl.java:100)
   at com.trackstudio.tools.HibernateUtil.getList(HibernateUtil.java:42)
   at com.trackstudio.tools.HibernateUtil.getList(HibernateUtil.java:53)
   at com.trackstudio.kernel.cache.TaskRelatedManager.getMessages(TaskRelatedManager.java:1144)
   at com.trackstudio.kernel.cache.TaskRelatedInfo.getMessages(TaskRelatedInfo.java:580)
   at com.trackstudio.kernel.cache.TaskRelatedInfo.getMessageCount(TaskRelatedInfo.java:938)
   at com.trackstudio.secured.SecuredTaskBean.getMessageCount(SecuredTaskBean.java:342)
   at com.trackstudio.secured.SecuredTaskBean.getRest(SecuredTaskBean.java:871)
   at com.trackstudio.rest.impl.TaskImpl.getTask(TaskImpl.java:40)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
   at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:252)
   at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:217)
   at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:206)
   at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:514)
   ... 26 more
mikolg
 
Posts: 249
Joined: Thu Jul 02, 2009 8:04 pm

Re: TS 550: Не работает Rest API

Postby mikolg » Tue Dec 24, 2019 5:11 am

Есть шанс поправить до Нового года?
mikolg
 
Posts: 249
Joined: Thu Jul 02, 2009 8:04 pm

Re: TS 550: Не работает Rest API

Postby Petr » Mon Dec 30, 2019 11:14 am

Посмотрю сегодня.
Стань Java программистом с www.job4j.ru
Petr
 
Posts: 2924
Joined: Wed Aug 12, 2009 4:38 pm

Re: TS 550: Не работает Rest API

Postby Petr » Mon Dec 30, 2019 1:22 pm

Пофиксили. Будет в версии 5.5.0. Максим должен сегодня пересобрать.
Стань Java программистом с www.job4j.ru
Petr
 
Posts: 2924
Joined: Wed Aug 12, 2009 4:38 pm


Return to TrackStudio Support [Russian]

Who is online

Users browsing this forum: No registered users and 9 guests

cron