Hi,
I have been using a combination of tomcat 8,jersey 2.13 and hk2 and after
doing some refactoring with the @Injects something is crashing and for the
life of me I cannot get to the root of it.
Jersey reports a request was received but before it routes it I think , I
get this error that I have attached in the .log file
has anyone anywhere to point me?
my injection is happening only in jersey with the abstract binder.
A sample of the error can be seen here
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000062e26c80,
pid=4000, tid=7248
#
# JRE version: Java(TM) SE Runtime Environment (8.0-b132) (build 1.8.0-b132)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.0-b70 mixed mode
windows-amd64 compressed oops)
# Problematic frame:
# V [jvm.dll+0x116c80]
#
# Failed to write core dump. Minidumps are not enabled by default on
client versions of Windows
#
# If you would like to submit a bug report, please visit:
#
http://bugreport.sun.com/bugreport/crash.jsp
#
The only reference to my project files is for this file with this code:
@PreMatching
public class CORSFilter implements ContainerResponseFilter {
@Context
HttpServletRequest httpRequest;
@Override
public void filter(ContainerRequestContext creq,
ContainerResponseContext cres) {
cres.getHeaders().add("Access-Control-Allow-Origin",httpRequest.getHeader("origin"));
//cres.getHeaders().add("Access-Control-Allow-Origin","*");
cres.getHeaders().add("Access-Control-Allow-Headers", "origin,
content-type, accept, authorization");
cres.getHeaders().add("Access-Control-Allow-Credentials", "true");
cres.getHeaders().add("Access-Control-Allow-Methods", "GET,
POST, PUT, DELETE, OPTIONS, HEAD");
cres.getHeaders().add("Access-Control-Max-Age", "1209600");
//cres.getHeaders().add("Cache-Control", "no-cache, no-store,
must-revalidate");
}
}
Best Regards,
Aris Giachnis