These are chat archives for alpapad/HotswapAgent

23rd
Jun 2016
Mohammad Mirzaeyan
@mmirzaeyan
Jun 23 2016 11:35
Hi, how to set Java Build Path in Eclipse to work with HotswapAgent ?
Vladimir Dvorak
@skybber
Jun 23 2016 12:45
Hi, there no specific setting of build path if you use Hotswap Agent, it is completely transparent.
Mohammad Mirzaeyan
@mmirzaeyan
Jun 23 2016 12:49
i think beacause of that , but when i use it with tomcat and add hotswap to vm argument all of the get request faild
Vladimir Dvorak
@skybber
Jun 23 2016 12:50
Have you some logs?
Mohammad Mirzaeyan
@mmirzaeyan
Jun 23 2016 12:51
un 23, 2016 4:11:20 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [mvc-dispatcher] in context with path [/bookstore] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
Vladimir Dvorak
@skybber
Jun 23 2016 12:52
It seem that your problem has no relation with build bath. Build path is used when project is compiled, not in runtime.
Mohammad Mirzaeyan
@mmirzaeyan
Jun 23 2016 12:53
it helps for hot deply jsp files i think , is that correct ?
Vladimir Dvorak
@skybber
Jun 23 2016 12:53
what kind of Java/Tomcat u are using?
Mohammad Mirzaeyan
@mmirzaeyan
Jun 23 2016 12:54
jdk 1.8 / tomcat 8
Vladimir Dvorak
@skybber
Jun 23 2016 12:55
OK, JSPs files are compiled when you deploy them to the Tomcat. So they are compiled by tomcat on runtime, HA doesn't help you with JSPs. It helps you with beans etc...
Mohammad Mirzaeyan
@mmirzaeyan
Jun 23 2016 12:55
i test it with jdk 1.7 with tomcat 7 too , but i had the same problem
Vladimir Dvorak
@skybber
Jun 23 2016 12:56
tomcat8/java8 is supported. Did you setup dcevm?
Mohammad Mirzaeyan
@mmirzaeyan
Jun 23 2016 12:57
yes i did
Vladimir Dvorak
@skybber
Jun 23 2016 12:57
btw, there were some ussue with jsps in the past. May be look at issues in HA repo
Mohammad Mirzaeyan
@mmirzaeyan
Jun 23 2016 12:58
except jsps i want it for java files
Vladimir Dvorak
@skybber
Jun 23 2016 12:59
the problem is that we dont have anybody who can test HA on JSP based project, we have no feedback
have you some more descriptive log message?
Mohammad Mirzaeyan
@mmirzaeyan
Jun 23 2016 13:02
just that i post it
when i try get request take this
Vladimir Dvorak
@skybber
Jun 23 2016 13:19
I need callstack at least
Mohammad Mirzaeyan
@mmirzaeyan
Jun 23 2016 13:19
callstack ??
Mohammad Mirzaeyan
@mmirzaeyan
Jun 23 2016 13:53
http-nio-8080-exec-10:
java.lang.Thread.dumpThreads(Native Method)
java.lang.Thread.getAllStackTraces(Thread.java:1603)
org.codePlus.core.goods.products.StackTraceDumper.dumpAllStackTraces(StackTraceDumper.java:9)
org.codePlus.framework.web.controller.core.publisher.PublisherController.search(PublisherController.java:43)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:497)
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:777)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:706)
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316)
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:122)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:168)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:48)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:15
Vladimir Dvorak
@skybber
Jun 23 2016 15:00
What Hibernate + Spring version you have?
may be there is the problem, HA support Hibernate3/4 but Hibernate3 must be configured now ...
Mohammad Mirzaeyan
@mmirzaeyan
Jun 23 2016 15:02
spring : 4.0.0 , hibernate : 4.3.10