java - Jersey ServletContainer Hangs when logging errors in Errors.logErrors -


we facing severe problem our jersey container going hang state, when reload resourceconfig. code reloads jersey container container.reload(resourceconfig.forapplication(application));

we not able find out root cause issue , blocking our release.

we using jersey version 2.13.

the stack trace receive follows

thread [defaultmessagelistenercontainer-1] (suspended)   owns: bufferedoutputstream  (id=3280)    owns: printstream  (id=3281)     owns: loggingconfigurationhelper$2  (id=3282)    owns: outputstreamwriter  (id=3283)  owns: consolehandler  (id=3284)  owns: restfulconnector  (id=2845)    fileoutputstream.writebytes(byte[], int, int, boolean) line: not available [native method]   fileoutputstream.write(byte[], int, int) line: not available     bufferedoutputstream.write(byte[], int, int) line: not available     printstream.write(byte[], int, int) line: not available  loggingconfigurationhelper$2(printstream).write(byte[], int, int) line: not available    streamencoder.writebytes() line: not available   streamencoder.implflushbuffer() line: not available  streamencoder.implflush() line: not available    streamencoder.flush() line: not available    outputstreamwriter.flush() line: not available   consolehandler(streamhandler).flush() line: not available    consolehandler.publish(logrecord) line: not available    logger.log(logrecord) line: not available    logger.dolog(logrecord) line: not available  logger.log(level, string) line: not available    logger.warning(string) line: not available   errors.logerrors(collection<errormessage>) line: 191     errors.processerrors(boolean) line: 132  errors.postprocess(boolean) line: 423    errors.process(callable<t>, boolean) line: 320   errors.process(producer<t>, boolean) line: 297   errors.processwithexception(runnable) line: 286  applicationhandler.<init>(application, binder, servicelocator) line: 320     applicationhandler.<init>(application, binder) line: 285     webcomponent.<init>(webconfig, resourceconfig) line: 311     servletcontainer.reload(resourceconfig) line: 578 

we have 1 suspect well. in 1 of our rest resource, returning list. observed following warning in jersey logs, after log container goes unusable state.

warning: following warnings have been detected:  warning: return type, java.util.list<someobject>, of method, public java.util.list<someobject> myresource.get(javax.ws.rs.core.uriinfo,java.lang.string,java.lang.string), not resolvable concrete type. 

any great help! kindly let me know if need more information. lot.

we address issue configuring logging. now, logs directed files.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -