小编Pin*_*irl的帖子

Spring Boot管理日志中重复发生的AsyncRequestTimeoutException

我目前正在我的本地计算机上运行Spring Boot Admin以进行测试,并且我得到以下错误不间断.应用程序本身似乎工作正常,但我的日志正在填补这些错误.我不确定为什么......

 org.springframework.web.context.request.async.AsyncRequestTimeoutException: null
    at org.springframework.web.context.request.async.TimeoutDeferredResultProcessingInterceptor.handleTimeout(TimeoutDeferredResultProcessingInterceptor.java:42) ~[spring-web-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
    at org.springframework.web.context.request.async.DeferredResultInterceptorChain.triggerAfterTimeout(DeferredResultInterceptorChain.java:75) ~[spring-web-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
    at org.springframework.web.context.request.async.WebAsyncManager$5.run(WebAsyncManager.java:392) ~[spring-web-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
    at org.springframework.web.context.request.async.StandardServletAsyncWebRequest.onTimeout(StandardServletAsyncWebRequest.java:143) ~[spring-web-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
    at org.apache.catalina.core.AsyncListenerWrapper.fireOnTimeout(AsyncListenerWrapper.java:44) ~[tomcat-embed-core-8.5.5.jar!/:8.5.5]
    at org.apache.catalina.core.AsyncContextImpl.timeout(AsyncContextImpl.java:131) ~[tomcat-embed-core-8.5.5.jar!/:8.5.5]
    at org.apache.catalina.connector.CoyoteAdapter.asyncDispatch(CoyoteAdapter.java:157) ~[tomcat-embed-core-8.5.5.jar!/:8.5.5]
    at org.apache.coyote.AbstractProcessor.dispatch(AbstractProcessor.java:228) [tomcat-embed-core-8.5.5.jar!/:8.5.5]
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:53) [tomcat-embed-core-8.5.5.jar!/:8.5.5]
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802) [tomcat-embed-core-8.5.5.jar!/:8.5.5]
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410) [tomcat-embed-core-8.5.5.jar!/:8.5.5]
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.5.jar!/:8.5.5]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_40]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_40]
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.5.jar!/:8.5.5]
    at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]
Run Code Online (Sandbox Code Playgroud)

java spring spring-boot spring-boot-admin

5
推荐指数
2
解决办法
8326
查看次数

在Java中将标记添加到展开的地图中

我需要添加代码以在RSS提要中的每个地震的位置显示标记,并通过修改方法(并根据需要添加新的辅助方法)来制作每个标记10的半径.然后我需要添加代码来根据地震的大小来设置每个标记的样式.

我知道我应该为列表功能中的每个PointFeature创建一个SimplePointMarker对象,在setUp方法中使标记出现在屏幕上,所以它可能涉及每个循环,但除此之外我不知道如何代码这个.

展开标记包解释... http://unfoldingmaps.org/javadoc/

public class EarthquakeCityMap extends PApplet {

    // You can ignore this.  It's to keep eclipse from generating a warning.
    private static final long serialVersionUID = 1L;

    // IF YOU ARE WORKING OFFLINE, change the value of this variable to true
    private static final boolean offline = false;

    // Less than this threshold is a light earthquake
    public static final float THRESHOLD_MODERATE = 5;
    // Less than this threshold is a minor earthquake
    public static final float …
Run Code Online (Sandbox Code Playgroud)

java google-maps-markers

1
推荐指数
1
解决办法
4707
查看次数

是一个类型安全的类<?可以扩展Entity> array吗?

是否可以使以下代码类型安全?

Class<? extends Entity>[] test = (Class<? extends Entity>[]) new Class<?>[1];
Run Code Online (Sandbox Code Playgroud)

编辑:我需要它输入以下功能:

public <T extends Entity> T createEntity(final Class<T> clazz, final int id)
Run Code Online (Sandbox Code Playgroud)

我不能使用ArrayList,因为它的垃圾性能很差.我只是想摆脱IDE警告,而不是抑制它.

java arrays generics

0
推荐指数
1
解决办法
95
查看次数