2016-05-28 11 views
0

Jerseyコンテナがハング状態になり、resourceConfigをリロードすると重大な問題に直面しています。 ジャージーコンテナをリロードするコードは です。container.reload(ResourceConfig.forApplication(application));Jersey ServletContainer Errors.logErrorsでエラーを記録するとハングします

この問題の根本原因を見つけることができず、現在リリースをブロックしています。

ジャージーバージョン2.13を使用しています。

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 

我々は同様に1人の容疑者を持っているが、次のように私たちが受け取るスタックトレースです。私たちのRESTリソースの1つでは、Listを返しています。私たちはジャージーのログで警告を受け、このログの後にコンテナが使用不可能な状態になるのを観察しました。

WARNING: The 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), is not resolvable to a concrete type. 

助けがあれば助けになります! 詳しい情報が必要な場合はお知らせください。 ありがとうございました。

答えて

0

ロギングを設定することでこの問題に対処できます。これで、ログはファイルに転送されます。

関連する問題