关于Java服务长时间运行出现各种bug问题,可能运行几天没问题,但是运行十几天就会出现各种bug

服务使用的是ScheduledThreadPoolExecuto定时任务,有使用到全局变量,数据库连接池使用的是c3p0,我感觉出现问题的原因可能就是这三个里哪个导致的,程序是没问题的,就是运行久了就出现各种问题了,而且很莫明奇妙,比如本来是好好的运行久了日志中的中文从那个时刻起往后全都乱码了。请问这是怎么回事?

定时任务:
ScheduledThreadPoolExecutor bookClickScheduled = new ScheduledThreadPoolExecutor(10);
int checkPHPConfigCycle = Integer.parseInt(Config.getConfig("CheckPHPConfigCycle"));
bookClickScheduled.scheduleWithFixedDelay(new CheckPhpConfigTask(), 0, checkPHPConfigCycle, TimeUnit.MINUTES);

连接池配置:

            <property value="oracle.jdbc.driver.OracleDriver" name="driverClass"/>

            <property value="jdbc:oracle:thin:@10.97.190.14:1521:cmfudv1" name="jdbcUrl"/>

        <property value="" name="user"/>

            <property value="" name="password"/>

    <property value="1" name="minPoolSize"/>

    <property value="2" name="maxPoolSize"/>

    <property value="1" name="initialPoolSize"/>

    <property value="60" name="maxIdleTime"/>

    <property value="1" name="acquireIncrement"/>


    <property value="0" name="maxStatements"/>

    <property value="60" name="idleConnectionTestPeriod"/>

    <property value="30" name="acquireRetryAttempts"/>


    <property value="true" name="breakAfterAcquireFailure"/>

</bean>


    看了一下日志,貌似是服务重启启动了

    STATUS | wrapper  | 2016/04/09 00:55:01 | TERM trapped.  Shutting down.

STATUS | wrapper | 2016/04/09 00:55:02 | <-- Wrapper Stopped
STATUS | wrapper | 2016/04/09 00:55:02 | --> Wrapper Started as Daemon
STATUS | wrapper | 2016/04/09 00:55:02 | Java Service Wrapper Community Edition 64-bit 3.5.27
STATUS | wrapper | 2016/04/09 00:55:02 | Copyright (C) 1999-2015 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper | 2016/04/09 00:55:02 | http://wrapper.tanukisoftware.com
STATUS | wrapper | 2016/04/09 00:55:02 |
STATUS | wrapper | 2016/04/09 00:55:02 | Launching a JVM...
INFO | jvm 1 | 2016/04/09 00:55:02 | WrapperManager: Initializing...
INFO | jvm 1 | 2016/04/09 00:55:02 | WrapperManager:
INFO | jvm 1 | 2016/04/09 00:55:02 | WrapperManager: WARNING - Unable to load the Wrapper's native library because none of the
INFO | jvm 1 | 2016/04/09 00:55:02 | WrapperManager: following files:
INFO | jvm 1 | 2016/04/09 00:55:02 | WrapperManager: libwrapper-linux-x86-64.so
INFO | jvm 1 | 2016/04/09 00:55:02 | WrapperManager: libwrapper.so
INFO | jvm 1 | 2016/04/09 00:55:02 | WrapperManager: could be located on the following java.library.path:
INFO | jvm 1 | 2016/04/09 00:55:02 | WrapperManager: /usr/local/src/javaService/Baiduping2Service/bin/../lib
INFO | jvm 1 | 2016/04/09 00:55:02 | WrapperManager: Please see the documentation for the wrapper.java.library.path
INFO | jvm 1 | 2016/04/09 00:55:02 | WrapperManager: configuration property.
INFO | jvm 1 | 2016/04/09 00:55:02 | WrapperManager: System signals will not be handled correctly.
INFO | jvm 1 | 2016/04/09 00:55:02 | WrapperManager:
INFO | jvm 1 | 2016/04/09 00:55:03 | SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
INFO | jvm 1 | 2016/04/09 00:55:03 | SLF4J: Defaulting to no-operation (NOP) logger implementation
INFO | jvm 1 | 2016/04/09 00:55:03 | SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
INFO | jvm 1 | 2016/04/09 00:55:03 | INFO - Log4j - ????
INFO | jvm 1 | 2016/04/09 00:55:03 | INFO - MLog - MLog clients using log4j logging.
INFO | jvm 1 | 2016/04/09 00:55:03 | INFO - C3P0Registry - Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
INFO | jvm 1 | 2016/04/09 00:55:03 | INFO - stractPoolBackedDataSource - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> true, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> z8kflt9f1wh77y1c9vh4r|38c52200, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> oracle.jdbc.driver.OracleDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> z8kflt9f1wh77y1c9vh4r|38c52200, idleConnectionTestPeriod -> 60, initialPoolSize -> 3, jdbcUrl -> jdbc:oracle:thin:@oracoredb2.qdintra.com:1521:cmfu, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 60, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 5, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 1, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
INFO | jvm 1 | 2016/04/09 00:55:04 | INFO - stractPoolBackedDataSource - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> true, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> z8kflt9f1wh77y1c9vh4r|3ee7f6eb, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> oracle.jdbc.driver.OracleDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> z8kflt9f1wh77y1c9vh4r|3ee7f6eb, idleConnectionTestPeriod -> 60, initialPoolSize -> 3, jdbcUrl -> jdbc:oracle:thin:@orabooksyncdb.qdintra.com:1521:cmfu162, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 60, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 5, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 1, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
INFO | jvm 1 | 2016/04/09 00:57:12 | INFO - Log4j - bookID:3623267,res:true
INFO | jvm 1 | 2016/04/09 00:57:14 | INFO - Log4j - bookID:3564278,res:true
INFO | jvm 1 | 2016/04/09 00:57:18 | INFO - Log4j - bookID:3630677,res:true
STATUS | wrapper | 2016/04/09 01:30:01 | TERM trapped. Shutting down.
STATUS | wrapper | 2016/04/09 01:30:02 | <-- Wrapper Stopped
STATUS | wrapper | 2016/04/09 01:30:02 | --> Wrapper Started as Daemon
STATUS | wrapper | 2016/04/09 01:30:02 | Java Service Wrapper Community Edition 64-bit 3.5.27
STATUS | wrapper | 2016/04/09 01:30:02 | Copyright (C) 1999-2015 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper | 2016/04/09 01:30:02 | http://wrapper.tanukisoftware.com
STATUS | wrapper | 2016/04/09 01:30:02 |
STATUS | wrapper | 2016/04/09 01:30:02 | Launching a JVM...
INFO | jvm 1 | 2016/04/09 01:30:02 | WrapperManager: Initializing...
INFO | jvm 1 | 2016/04/09 01:30:02 | WrapperManager:
INFO | jvm 1 | 2016/04/09 01:30:02 | WrapperManager: WARNING - Unable to load the Wrapper's native library because none of the
INFO | jvm 1 | 2016/04/09 01:30:02 | WrapperManager: following files:
INFO | jvm 1 | 2016/04/09 01:30:02 | WrapperManager: libwrapper-linux-x86-64.so
INFO | jvm 1 | 2016/04/09 01:30:02 | WrapperManager: libwrapper.so
INFO | jvm 1 | 2016/04/09 01:30:02 | WrapperManager: could be located on the following java.library.path:
INFO | jvm 1 | 2016/04/09 01:30:02 | WrapperManager: /usr/local/src/javaService/Baiduping2Service/bin/../lib
INFO | jvm 1 | 2016/04/09 01:30:02 | WrapperManager: Please see the documentation for the wrapper.java.library.path
INFO | jvm 1 | 2016/04/09 01:30:02 | WrapperManager: configuration property.
INFO | jvm 1 | 2016/04/09 01:30:02 | WrapperManager: System signals will not be handled correctly.
INFO | jvm 1 | 2016/04/09 01:30:02 | WrapperManager:
INFO | jvm 1 | 2016/04/09 01:30:03 | SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
INFO | jvm 1 | 2016/04/09 01:30:03 | SLF4J: Defaulting to no-operation (NOP) logger implementation
INFO | jvm 1 | 2016/04/09 01:30:03 | SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
INFO | jvm 1 | 2016/04/09 01:30:03 | INFO - Log4j - ????
INFO | jvm 1 | 2016/04/09 01:30:03 | INFO - MLog - MLog clients using log4j logging.
INFO | jvm 1 | 2016/04/09 01:30:03 | INFO - C3P0Registry - Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
INFO | jvm 1 | 2016/04/09 01:30:03 | INFO - stractPoolBackedDataSource - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> true, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> z8kflt9f1wig8b6168q1b9|ec0a9f9, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> oracle.jdbc.driver.OracleDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> z8kflt9f1wig8b6168q1b9|ec0a9f9, idleConnectionTestPeriod -> 60, initialPoolSize -> 3, jdbcUrl -> jdbc:oracle:thin:@oracoredb2.qdintra.com:1521:cmfu, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 60, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 5, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 1, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
INFO | jvm 1 | 2016/04/09 01:30:04 | INFO - stractPoolBackedDataSource - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> true, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> z8kflt9f1wig8b6168q1b9|6708f8e0, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> oracle.jdbc.driver.OracleDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> z8kflt9f1wig8b6168q1b9|6708f8e0, idleConnectionTestPeriod -> 60, initialPoolSize -> 3, jdbcUrl -> jdbc:oracle:thin:@orabooksyncdb.qdintra.com:1521:cmfu162, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 60, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 5, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 1, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
INFO | jvm 1 | 2016/04/09 01:30:06 | INFO - Log4j - bookID:1659706,res:true
INFO | jvm 1 | 2016/04/09 01:30:06 | INFO - Log4j - bookID:3593166,res:true
STATUS | wrapper | 2016/04/09 02:05:01 | TERM trapped. Shutting down.
STATUS | wrapper | 2016/04/09 02:05:02 | <-- Wrapper Stopped
STATUS | wrapper | 2016/04/09 02:05:02 | --> Wrapper Started as Daemon
STATUS | wrapper | 2016/04/09 02:05:02 | Java Service Wrapper Community Edition 64-bit 3.5.27
STATUS | wrapper | 2016/04/09 02:05:02 | Copyright (C) 1999-2015 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper | 2016/04/09 02:05:02 | http://wrapper.tanukisoftware.com
STATUS | wrapper | 2016/04/09 02:05:02 |
STATUS | wrapper | 2016/04/09 02:05:02 | Launching a JVM...
INFO | jvm 1 | 2016/04/09 02:05:02 | WrapperManager: Initializing...
INFO | jvm 1 | 2016/04/09 02:05:02 | WrapperManager:
INFO | jvm 1 | 2016/04/09 02:05:02 | WrapperManager: WARNING - Unable to load the Wrapper's native library because none of the
INFO | jvm 1 | 2016/04/09 02:05:02 | WrapperManager: following files:
INFO | jvm 1 | 2016/04/09 02:05:02 | WrapperManager: libwrapper-linux-x86-64.so
INFO | jvm 1 | 2016/04/09 02:05:02 | WrapperManager: libwrapper.so
INFO | jvm 1 | 2016/04/09 02:05:02 | WrapperManager: could be located on the following java.library.path:
INFO | jvm 1 | 2016/04/09 02:05:02 | WrapperManager: /usr/local/src/javaService/Baiduping2Service/bin/../lib
INFO | jvm 1 | 2016/04/09 02:05:02 | WrapperManager: Please see the documentation for the wrapper.java.library.path
INFO | jvm 1 | 2016/04/09 02:05:02 | WrapperManager: configuration property.
INFO | jvm 1 | 2016/04/09 02:05:02 | WrapperManager: System signals will not be handled correctly.
INFO | jvm 1 | 2016/04/09 02:05:02 | WrapperManager:
INFO | jvm 1 | 2016/04/09 02:05:03 | SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
INFO | jvm 1 | 2016/04/09 02:05:03 | SLF4J: Defaulting to no-operation (NOP) logger implementation
INFO | jvm 1 | 2016/04/09 02:05:03 | SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
INFO | jvm 1 | 2016/04/09 02:05:03 | INFO - Log4j - ????
INFO | jvm 1 | 2016/04/09 02:05:03 | INFO - MLog - MLog clients using log4j logging.
INFO | jvm 1 | 2016/04/09 02:05:03 | INFO - C3P0Registry - Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
INFO | jvm 1 | 2016/04/09 02:05:04 | INFO - stractPoolBackedDataSource - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> true, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> z8kflt9f1wjp8pwwokymc|38c52200, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> oracle.jdbc.driver.OracleDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> z8kflt9f1wjp8pwwokymc|38c52200, idleConnectionTestPeriod -> 60, initialPoolSize -> 3, jdbcUrl -> jdbc:oracle:thin:@oracoredb2.qdintra.com:1521:cmfu, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 60, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 5, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 1, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
INFO | jvm 1 | 2016/04/09 02:05:04 | INFO - stractPoolBackedDataSource - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> true, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> z8kflt9f1wjp8pwwokymc|3ee7f6eb, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> oracle.jdbc.driver.OracleDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> z8kflt9f1wjp8pwwokymc|3ee7f6eb, idleConnectionTestPeriod -> 60, initialPoolSize -> 3, jdbcUrl -> jdbc:oracle:thin:@orabooksyncdb.qdintra.com:1521:cmfu162, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 60, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 5, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 1, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]

1个回答

定时任务:
ScheduledThreadPoolExecutor bookClickScheduled = new ScheduledThreadPoolExecutor(10);
int checkPHPConfigCycle = Integer.parseInt(Config.getConfig("CheckPHPConfigCycle"));
bookClickScheduled.scheduleWithFixedDelay(new CheckPhpConfigTask(), 0, checkPHPConfigCycle, TimeUnit.MINUTES);

连接池配置:


name="jdbcUrl"/>


<!--连接池中保留的最小连接数。 -->

<!--连接池中保留的最大连接数。Default: 15 -->

<!--初始化时获取的连接数,取值应在minPoolSize与maxPoolSize之间。Default: 3 -->

<!--最大空闲时间,60秒内未使用则连接被丢弃。若为0则永不丢弃。Default: 0 -->

<!--当连接池中的连接耗尽的时候c3p0一次同时获取的连接数。Default: 3 -->

<!--JDBC的标准参数,用以控制数据源内加载的PreparedStatements数量。但由于预缓存的statements 属于单个connection而不是整个连接池。所以设置这个参数需要考虑到多方面的因素。
如果maxStatements与maxStatementsPerConnection均为0,则缓存被关闭。Default: 0 -->

<!--每60秒检查所有连接池中的空闲连接。Default: 0 -->

<!--定义在从数据库获取新连接失败后重复尝试的次数。Default: 30 -->

<!--获取连接失败将会引起所有等待连接池来获取连接的线程抛出异常。但是数据源仍有效 保留,并在下次调用getConnection()的时候继续尝试获取连接。如果设为true,那么在尝试 -->

    <property value="true" name="breakAfterAcquireFailure"/>

</bean>
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
怎么在java项目运行时调试bug
如题,怎么在java项目运行时调试bug?这是一道面试题,感觉没思路啊。
Java mybatis更新(update)数据时,偶尔会新插入一条重复的一模一样的数据!
前几天在公司写代码的时候遇到了一个奇怪的问题!! 因为公司的项目涉及隐私,所以不能贴代码,我口述一下: 因为我的表没有设计主键,所以通过mybatis逆向工程生成mapper文件的时候,没有update功能,自己手写了一个.但是在后来测试的时候发现,偶尔在update数据的时候,会多出一条一模一样的重复数据,有时候甚至多出三四条,五六条.但是这种情况不是每次都有,偶尔跑个几百条会出现这种情况,我用debug一个个定位原因的时候又没有出现!! 可以肯定的是,一定是我update的时候出现的问题.因为后来我这个bug解决不掉,只能换一种方式:把update改成先delete原来的旧数据,再insert新数据,就不会出现这种情况.. 我反复看了xml里面我的sql语句,没有什么问题...需要各位大神帮忙想想,到底是什么问题? 如果能真正帮我解决这个问题,还可以加悬赏!!!谢谢!!!! 我的业务功能主要就是做了一个定时任务,每隔一段时间跑一次,获取车辆信息,然后根据车牌更新数据
PHP+NGINX上传图片失败
最近遇到了一个比较头疼的bug,上传图片的时候,有些图片上传成功,有些图片上传失败,失败时调用move_uploaded_file返回false 1、上传的目录是一样的,目录权限是没有问题的; 2、不是图片文件大小的问题,有些图片比较大可以传成功,有些比较小的失败; 3、唯一有点区别的是,高清图片会上传失败,普通图片上传成功; 实在想不到哪里有区别,请问还会有什么原因导致这个结果呢?
请问这一行有什么bug吗?
代码中第五行出现了问题: ``` #include <stdio.h> main(){ int a, b,z; scanf_s("%d", "%d" ,& a, &b); z = max(a,b); printf("%d", z); } int max(int a, int b) { if (a > b)return a; else return b; } ``` 警告内容为: > 警告 C6328 大小不匹配: 已将“char”作为 _Param_(2) 传递,但需要使用“32 bit operand”来调用“scanf_s”。这表示可能存在严重错误。若针对像 scanf 这样的函数报告此信息,可能表示发生缓冲区不足或溢出。 > 警告 C6271 向“scanf_s”传递了额外参数: _Param_(3) 未由格式字符串使用。 请问是什么意思?如何解决?
这个 Bug 搞了一个星期了没弄好,崩溃中,哪位大佬能帮忙看看??
控制台信息:![图片说明](https://img-ask.csdn.net/upload/202001/18/1579336366_42087.jpg) ``` org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'koison'@'localhost' (using password: YES)) ### The error may exist in file [/Users/koison/IdeaProjects/selfOA/target/oasys/WEB-INF/classes/mapper/UserDao.xml] ### The error may involve com.gcc.dao.UserDao.findByUsername ### The error occurred while executing a query ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'koison'@'localhost' (using password: YES)) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) javax.servlet.http.HttpServlet.service(HttpServlet.java:660) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) javax.servlet.http.HttpServlet.service(HttpServlet.java:741) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ```
用静态函数计算学生平均成绩:此代码中25行,我将对象作为函数形参,编译器说这行有问题,请问该怎么改,我想不修改写法把bug de掉,谢谢大家帮忙指点一下
``` #include<iostream> using namespace std; class Student { public: Student(int n,int s):number(n),score(s){} //构造函数初始化 static float average(); //声明静态函数 void data(); //声明成员函数 private: int number,score; static int Average,sum; //静态数据成员Average,sum }; int Student::Average=0; //静态数据成员初始化 int Student::sum=0; void Student::data() { cout<<"Please input data:"<<endl; cin>>number>>score; } float Student::average(Student &stu) { int i,j; cout<<"The number of students that you want to calculate is:"<<endl; cin>>j; for(i=0;i<j;j++) { sum=sum+stu[i].score; } Average=sum/i; return(Average); } int main() { Student stu[3]={Student(1,90),Student(2,91),Student(3,92)}; //对象数组初始化 int k; for(k=0;k<3;k++) { stu[k].data(); } average(); return 0; } ```
关于安卓APP在5.0以上系统上运行出现的BUG怎么解决
哪位大哥APP在安卓5.0上运行过,处理过那个stack size 8mb这个异常,网络请求用的第三方框架 xutils.
紧急求助,java访问串口出现项目崩溃问题,求大神指导
# 紧急求助,关于访问串口的问题: 在windows_64位系统下,用java程序访问串口,用的是rxtx api,偶尔就出现这个问题,不知道怎么看这个文档: ``` # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180004465, pid=2256, tid=0x0000000000000eb0 # # JRE version: Java(TM) SE Runtime Environment (8.0_111-b14) (build 1.8.0_111-b14) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.111-b14 mixed mode windows-amd64 compressed oops) # Problematic frame: # C 0x0000000180004465 # # 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.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --------------- T H R E A D --------------- Current thread (0x00000000582fc000): JavaThread "http-nio-8080-exec-3" daemon [_thread_in_native, id=3760, stack(0x0000000080370000,0x0000000080470000)] siginfo: ExceptionCode=0xc0000005, reading address 0xffffffff818af15c Registers: RAX=0x000000000000001c, RBX=0x00000000582fc1f8, RCX=0x000000008046c54c, RDX=0x0000000000000000 RSP=0x000000008046be30, RBP=0x0000000000000001, RSI=0x0000000000000000, RDI=0x0000000000000001 R8 =0x000000008046baf0, R9 =0x0000000180000000, R10=0x0000000000000000, R11=0x0000000000000200 R12=0xffffffff818af150, R13=0x0000000000000000, R14=0x000000008046c660, R15=0x00000000582fc000 RIP=0x0000000180004465, EFLAGS=0x0000000000010286 Top of Stack: (sp=0x000000008046be30) 0x000000008046be30: 00000000582fc1f8 000000018001c4c0 0x000000008046be40: 0000000000000000 0000000000000001 0x000000008046be50: 00002f94e86aabd0 00000000ebd0eb98 0x000000008046be60: 000000008046c660 00000000c2459220 0x000000008046be70: 0000000000000019 00000000c2459220 0x000000008046be80: 0000000000000000 00000000c2459220 0x000000008046be90: 00000000582fc000 000000007216ca5b 0x000000008046bea0: 000000008046bfa0 00000000025308da 0x000000008046beb0: 00000000025308da 00000000ebd0eb98 0x000000008046bec0: 00000000c2456a30 0000000000000000 0x000000008046bed0: 0000000000000000 0000000000000000 0x000000008046bee0: 0000000000000000 0000000000000000 0x000000008046bef0: 0000000000000000 0000000000000000 0x000000008046bf00: 0000000000000000 0000000000000000 0x000000008046bf10: 0000000000000000 0000000000000000 0x000000008046bf20: 0000000000000000 0000000000000000 Instructions: (pc=0x0000000180004465) 0x0000000180004445: 1b 48 8b d7 48 8b cb 41 ff 93 b8 00 00 00 45 84 0x0000000180004455: ed 0f 85 97 00 00 00 4d 85 e4 0f 84 8e 00 00 00 0x0000000180004465: 41 83 7c 24 0c 00 0f 84 82 00 00 00 4c 8d 44 24 0x0000000180004475: 30 48 8d 4c 24 38 4d 8b cc 48 8b d3 e8 8a f4 ff Register to memory mapping: RAX=0x000000000000001c is an unknown value RBX=0x00000000582fc1f8 is an unknown value RCX=0x000000008046c54c is pointing into the stack for thread: 0x00000000582fc000 RDX=0x0000000000000000 is an unknown value RSP=0x000000008046be30 is pointing into the stack for thread: 0x00000000582fc000 RBP=0x0000000000000001 is an unknown value RSI=0x0000000000000000 is an unknown value RDI=0x0000000000000001 is an unknown value R8 =0x000000008046baf0 is pointing into the stack for thread: 0x00000000582fc000 R9 =0x0000000180000000 is an unknown value R10=0x0000000000000000 is an unknown value R11=0x0000000000000200 is an unknown value R12=0xffffffff818af150 is an unknown value R13=0x0000000000000000 is an unknown value R14=0x000000008046c660 is pointing into the stack for thread: 0x00000000582fc000 R15=0x00000000582fc000 is a thread Stack: [0x0000000080370000,0x0000000080470000], sp=0x000000008046be30, free space=1007k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C 0x0000000180004465 C 0x0000000002547f54 Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j gnu.io.RXTXPort.nativeDrain(Z)Z+0 j gnu.io.RXTXPort$SerialOutputStream.flush()V+92 j com.ah.business.SerialPort.SerialTool.sendToPort(Lgnu/io/SerialPort;[B)V+43 j com.ah.business.SerialPort.controller.SerialPortController.readCabinet(Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/http/HttpServletResponse;)V+57 v ~StubRoutines::call_stub J 1232 sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; (0 bytes) @ 0x00000000029bee3f [0x00000000029bedc0+0x7f] J 1231 C1 sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; (104 bytes) @ 0x00000000029d3bdc [0x00000000029d2a80+0x115c] J 4876 C2 java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; (62 bytes) @ 0x0000000003331a18 [0x0000000003331980+0x98] j org.springframework.web.method.support.InvocableHandlerMethod.doInvoke([Ljava/lang/Object;)Ljava/lang/Object;+16 j org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(Lorg/springframework/web/context/request/NativeWebRequest;Lorg/springframework/web/method/support/ModelAndViewContainer;[Ljava/lang/Object;)Ljava/lang/Object;+96 j org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(Lorg/springframework/web/context/request/ServletWebRequest;Lorg/springframework/web/method/support/ModelAndViewContainer;[Ljava/lang/Object;)V+4 j org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Lorg/springframework/web/method/HandlerMethod;)Lorg/springframework/web/servlet/ModelAndView;+262 j org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Lorg/springframework/web/method/HandlerMethod;)Lorg/springframework/web/servlet/ModelAndView;+90 j org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/Object;)Lorg/springframework/web/servlet/ModelAndView;+7 j org.springframework.web.servlet.DispatcherServlet.doDispatch(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+318 j org.springframework.web.servlet.DispatcherServlet.doService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+301 j org.springframework.web.servlet.FrameworkServlet.processRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+71 j org.springframework.web.servlet.FrameworkServlet.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+149 j org.springframework.web.servlet.FrameworkServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+32 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 J 5735 C1 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (624 bytes) @ 0x000000000324633c [0x00000000032454c0+0xe7c] J 5734 C1 org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (105 bytes) @ 0x0000000002b6038c [0x0000000002b60300+0x8c] j org.apache.tomcat.websocket.server.WsFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+21 J 5735 C1 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (624 bytes) @ 0x0000000003245ad4 [0x00000000032454c0+0x614] J 5734 C1 org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (105 bytes) @ 0x0000000002b6038c [0x0000000002b60300+0x8c] j org.springframework.web.filter.RequestContextFilter.doFilterInternal(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/FilterChain;)V+21 j org.springframework.web.filter.OncePerRequestFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+111 J 5735 C1 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (624 bytes) @ 0x0000000003245ad4 [0x00000000032454c0+0x614] J 5734 C1 org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (105 bytes) @ 0x0000000002b6038c [0x0000000002b60300+0x8c] j org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/FilterChain;)V+87 j org.springframework.web.filter.OncePerRequestFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+111 J 5735 C1 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (624 bytes) @ 0x0000000003245ad4 [0x00000000032454c0+0x614] J 5734 C1 org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (105 bytes) @ 0x0000000002b6038c [0x0000000002b60300+0x8c] j org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/FilterChain;)V+71 j org.springframework.web.filter.OncePerRequestFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+111 J 5735 C1 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (624 bytes) @ 0x0000000003245ad4 [0x00000000032454c0+0x614] J 5734 C1 org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (105 bytes) @ 0x0000000002b6038c [0x0000000002b60300+0x8c] j org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/FilterChain;)V+53 j org.springframework.web.filter.OncePerRequestFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+111 J 5735 C1 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (624 bytes) @ 0x0000000003245ad4 [0x00000000032454c0+0x614] J 5734 C1 org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (105 bytes) @ 0x0000000002b6038c [0x0000000002b60300+0x8c] j org.springframework.boot.context.web.ErrorPageFilter.doFilter(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/FilterChain;)V+14 j org.springframework.boot.context.web.ErrorPageFilter.access$000(Lorg/springframework/boot/context/web/ErrorPageFilter;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/FilterChain;)V+4 j org.springframework.boot.context.web.ErrorPageFilter$1.doFilterInternal(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/FilterChain;)V+7 j org.springframework.web.filter.OncePerRequestFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+111 j org.springframework.boot.context.web.ErrorPageFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+7 J 5735 C1 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (624 bytes) @ 0x0000000003245ad4 [0x00000000032454c0+0x614] J 5734 C1 org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (105 bytes) @ 0x0000000002b6038c [0x0000000002b60300+0x8c] j org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+781 j org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+166 j org.apache.catalina.authenticator.AuthenticatorBase.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+428 j org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+100 j org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 j org.apache.catalina.valves.AbstractAccessLogValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 j org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+71 j org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+199 j org.apache.coyote.http11.AbstractHttp11Processor.process(Lorg/apache/tomcat/util/net/SocketWrapper;)Lorg/apache/tomcat/util/net/AbstractEndpoint$Handler$SocketState;+632 j org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Lorg/apache/tomcat/util/net/SocketWrapper;Lorg/apache/tomcat/util/net/SocketStatus;)Lorg/apache/tomcat/util/net/AbstractEndpoint$Handler$SocketState;+270 j org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Lorg/apache/tomcat/util/net/SocketWrapper;Lorg/apache/tomcat/util/net/SocketStatus;)Lorg/apache/tomcat/util/net/AbstractEndpoint$Handler$SocketState;+37 j org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(Ljava/nio/channels/SelectionKey;Lorg/apache/tomcat/util/net/NioEndpoint$KeyAttachment;)V+148 j org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run()V+97 j java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+95 j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 j org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run()V+4 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x00000000582fa800 JavaThread "Thread-27" daemon [_thread_in_native, id=1332, stack(0x00000000817b0000,0x00000000818b0000)] 0x0000000058304800 JavaThread "Thread-26" daemon [_thread_in_native, id=3796, stack(0x0000000081080000,0x0000000081180000)] 0x0000000058303000 JavaThread "Thread-25" daemon [_thread_in_native, id=3752, stack(0x0000000080c20000,0x0000000080d20000)] 0x0000000058303800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=4164, stack(0x00000000833b0000,0x00000000834b0000)] 0x0000000058302000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=4580, stack(0x0000000082640000,0x0000000082740000)] 0x0000000058301800 JavaThread "http-nio-8080-exec-10" daemon [_thread_in_native, id=4784, stack(0x0000000081db0000,0x0000000081eb0000)] 0x0000000058300800 JavaThread "http-nio-8080-exec-9" daemon [_thread_blocked, id=3672, stack(0x00000000820b0000,0x00000000821b0000)] 0x0000000058300000 JavaThread "http-nio-8080-exec-8" daemon [_thread_blocked, id=520, stack(0x0000000080e40000,0x0000000080f40000)] 0x00000000582ff000 JavaThread "http-nio-8080-exec-7" daemon [_thread_blocked, id=4776, stack(0x00000000801f0000,0x00000000802f0000)] 0x00000000582fe800 JavaThread "http-nio-8080-exec-6" daemon [_thread_blocked, id=4448, stack(0x0000000080f80000,0x0000000081080000)] 0x00000000582fd800 JavaThread "http-nio-8080-exec-5" daemon [_thread_blocked, id=1004, stack(0x0000000080ac0000,0x0000000080bc0000)] 0x00000000582fd000 JavaThread "http-nio-8080-exec-4" daemon [_thread_blocked, id=4800, stack(0x0000000080810000,0x0000000080910000)] =>0x00000000582fc000 JavaThread "http-nio-8080-exec-3" daemon [_thread_in_native, id=3760, stack(0x0000000080370000,0x0000000080470000)] 0x00000000582fb800 JavaThread "JavaCPP Deallocator" daemon [_thread_blocked, id=4040, stack(0x000000007e9e0000,0x000000007eae0000)] 0x00000000582fa000 JavaThread "http-nio-8080-exec-2" daemon [_thread_blocked, id=3664, stack(0x000000007ecb0000,0x000000007edb0000)] 0x00000000582f9000 JavaThread "http-nio-8080-exec-1" daemon [_thread_blocked, id=3612, stack(0x000000006ee50000,0x000000006ef50000)] 0x00000000582f8800 JavaThread "ajp-nio-8009-Acceptor-0" daemon [_thread_in_native, id=3312, stack(0x000000006ebf0000,0x000000006ecf0000)] 0x00000000582f7800 JavaThread "ajp-nio-8009-ClientPoller-1" daemon [_thread_in_native, id=3308, stack(0x000000006eae0000,0x000000006ebe0000)] 0x00000000582f7000 JavaThread "ajp-nio-8009-ClientPoller-0" daemon [_thread_in_native, id=3304, stack(0x000000006e640000,0x000000006e740000)] 0x00000000582f6000 JavaThread "http-nio-8080-Acceptor-0" daemon [_thread_in_native, id=3300, stack(0x000000006e920000,0x000000006ea20000)] 0x000000005b7a5000 JavaThread "http-nio-8080-ClientPoller-1" daemon [_thread_in_native, id=3296, stack(0x000000006e760000,0x000000006e860000)] 0x0000000057bbe800 JavaThread "http-nio-8080-ClientPoller-0" daemon [_thread_in_native, id=3292, stack(0x000000006e530000,0x000000006e630000)] 0x000000005b77d800 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=3288, stack(0x000000006e410000,0x000000006e510000)] 0x000000005aa13000 JavaThread "pool-2-thread-1" [_thread_blocked, id=2428, stack(0x000000005c9c0000,0x000000005cac0000)] 0x000000005793a800 JavaThread "NioBlockingSelector.BlockPoller-2" daemon [_thread_in_native, id=2712, stack(0x0000000059420000,0x0000000059520000)] 0x0000000057947000 JavaThread "NioBlockingSelector.BlockPoller-1" daemon [_thread_in_native, id=2708, stack(0x0000000058cd0000,0x0000000058dd0000)] 0x0000000057424800 JavaThread "GC Daemon" daemon [_thread_blocked, id=2684, stack(0x0000000058e50000,0x0000000058f50000)] 0x0000000056427000 JavaThread "AsyncFileHandlerWriter-225534817" daemon [_thread_blocked, id=2640, stack(0x0000000056eb0000,0x0000000056fb0000)] 0x0000000056322800 JavaThread "Service Thread" daemon [_thread_blocked, id=2612, stack(0x0000000056da0000,0x0000000056ea0000)] 0x00000000562c8800 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=2608, stack(0x0000000056c00000,0x0000000056d00000)] 0x00000000562c3000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=2604, stack(0x0000000056b00000,0x0000000056c00000)] 0x00000000562bf000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=2600, stack(0x00000000567f0000,0x00000000568f0000)] 0x0000000054e7e800 JavaThread "Attach Listener" daemon [_thread_blocked, id=2596, stack(0x0000000056980000,0x0000000056a80000)] 0x0000000054e7d000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2592, stack(0x00000000566f0000,0x00000000567f0000)] 0x0000000054e59800 JavaThread "Finalizer" daemon [_thread_blocked, id=2524, stack(0x00000000561a0000,0x00000000562a0000)] 0x0000000054e12800 JavaThread "Reference Handler" daemon [_thread_blocked, id=2520, stack(0x0000000055fa0000,0x00000000560a0000)] 0x000000000221e800 JavaThread "main" [_thread_in_native, id=2348, stack(0x0000000002380000,0x0000000002480000)] Other Threads: 0x0000000054e0a800 VMThread [stack: 0x0000000055dc0000,0x0000000055ec0000] [id=2496] 0x000000005634a800 WatcherThread [stack: 0x0000000057030000,0x0000000057130000] [id=2632] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap: PSYoungGen total 283648K, used 10945K [0x00000000eb300000, 0x00000000ffd80000, 0x0000000100000000) eden space 281088K, 3% used [0x00000000eb300000,0x00000000ebdb04a8,0x00000000fc580000) from space 2560K, 0% used [0x00000000fc580000,0x00000000fc580000,0x00000000fc800000) to space 28672K, 0% used [0x00000000fe180000,0x00000000fe180000,0x00000000ffd80000) ParOldGen total 78336K, used 45934K [0x00000000c1800000, 0x00000000c6480000, 0x00000000eb300000) object space 78336K, 58% used [0x00000000c1800000,0x00000000c44db808,0x00000000c6480000) Metaspace used 43550K, capacity 44114K, committed 44800K, reserved 1089536K class space used 5151K, capacity 5340K, committed 5376K, reserved 1048576K Card table byte_map: [0x00000000118f0000,0x0000000011af0000] byte_map_base: 0x00000000112e4000 Marking Bits: (ParMarkBitMap*) 0x00000000728ca6c0 Begin Bits: [0x0000000012340000, 0x00000000132e0000) End Bits: [0x00000000132e0000, 0x0000000014280000) Polling page: 0x0000000000110000 CodeCache: size=245760Kb used=15648Kb max_used=15708Kb free=230111Kb bounds [0x0000000002530000, 0x00000000034b0000, 0x0000000011530000] total_blobs=5475 nmethods=4786 adapters=600 compilation: enabled Compilation events (10 events): Event: 29130.199 Thread 0x00000000562c8800 5988 s 3 java.lang.StringBuffer::append (13 bytes) Event: 29130.199 Thread 0x00000000562c8800 nmethod 5988 0x000000000343fc50 code [0x000000000343fdc0, 0x00000000034400c8] Event: 29130.270 Thread 0x00000000562bf000 nmethod 5986 0x00000000031ac050 code [0x00000000031ac380, 0x00000000031ae778] Event: 29130.274 Thread 0x00000000562c3000 5989 4 java.lang.String::toLowerCase (8 bytes) Event: 29130.275 Thread 0x00000000562c3000 nmethod 5989 0x0000000002a38910 code [0x0000000002a38a60, 0x0000000002a38ae8] Event: 29130.660 Thread 0x00000000562c8800 5990 3 java.lang.String::regionMatches (91 bytes) Event: 29130.661 Thread 0x00000000562c8800 nmethod 5990 0x000000000343f550 code [0x000000000343f6c0, 0x000000000343fa70] Event: 29130.664 Thread 0x00000000562c8800 5992 3 java.security.CodeSource::hashCode (17 bytes) Event: 29130.664 Thread 0x00000000562c8800 nmethod 5992 0x000000000343ecd0 code [0x000000000343ee60, 0x000000000343f3c8] Event: 29130.678 Thread 0x00000000562bf000 5993 4 java.net.URI$Parser::scan (73 bytes) GC Heap History (10 events): Event: 25731.308 GC heap before {Heap before GC invocations=19 (full 4): PSYoungGen total 310784K, used 2356K [0x00000000eb300000, 0x00000000fff80000, 0x0000000100000000) eden space 281088K, 0% used [0x00000000eb300000,0x00000000eb300000,0x00000000fc580000) from space 29696K, 7% used [0x00000000fc580000,0x00000000fc7cd020,0x00000000fe280000) to space 29696K, 0% used [0x00000000fe280000,0x00000000fe280000,0x00000000fff80000) ParOldGen total 78336K, used 39408K [0x00000000c1800000, 0x00000000c6480000, 0x00000000eb300000) object space 78336K, 50% used [0x00000000c1800000,0x00000000c3e7c048,0x00000000c6480000) Metaspace used 43208K, capacity 43746K, committed 44288K, reserved 1087488K class space used 5128K, capacity 5316K, committed 5376K, reserved 1048576K Event: 25731.661 GC heap after Heap after GC invocations=19 (full 4): PSYoungGen total 310784K, used 0K [0x00000000eb300000, 0x00000000fff80000, 0x0000000100000000) eden space 281088K, 0% used [0x00000000eb300000,0x00000000eb300000,0x00000000fc580000) from space 29696K, 0% used [0x00000000fc580000,0x00000000fc580000,0x00000000fe280000) to space 29696K, 0% used [0x00000000fe280000,0x00000000fe280000,0x00000000fff80000) ParOldGen total 78336K, used 41473K [0x00000000c1800000, 0x00000000c6480000, 0x00000000eb300000) object space 78336K, 52% used [0x00000000c1800000,0x00000000c40804f0,0x00000000c6480000) Metaspace used 43179K, capacity 43692K, committed 44288K, reserved 1087488K class space used 5123K, capacity 5307K, committed 5376K, reserved 1048576K } Event: 28248.257 GC heap before {Heap before GC invocations=20 (full 4): PSYoungGen total 310784K, used 36289K [0x00000000eb300000, 0x00000000fff80000, 0x0000000100000000) eden space 281088K, 12% used [0x00000000eb300000,0x00000000ed670428,0x00000000fc580000) from space 29696K, 0% used [0x00000000fc580000,0x00000000fc580000,0x00000000fe280000) to space 29696K, 0% used [0x00000000fe280000,0x00000000fe280000,0x00000000fff80000) ParOldGen total 78336K, used 41473K [0x00000000c1800000, 0x00000000c6480000, 0x00000000eb300000) object space 78336K, 52% used [0x00000000c1800000,0x00000000c40804f0,0x00000000c6480000) Metaspace used 43321K, capacity 43858K, committed 44544K, reserved 1089536K class space used 5138K, capacity 5340K, committed 5376K, reserved 1048576K Event: 28248.263 GC heap after Heap after GC invocations=20 (full 4): PSYoungGen total 309760K, used 2548K [0x00000000eb300000, 0x00000000ffe80000, 0x0000000100000000) eden space 281088K, 0% used [0x00000000eb300000,0x00000000eb300000,0x00000000fc580000) from space 28672K, 8% used [0x00000000fe280000,0x00000000fe4fd020,0x00000000ffe80000) to space 29184K, 0% used [0x00000000fc580000,0x00000000fc580000,0x00000000fe200000) ParOldGen total 78336K, used 41473K [0x00000000c1800000, 0x00000000c6480000, 0x00000000eb300000) object space 78336K, 52% used [0x00000000c1800000,0x00000000c40804f0,0x00000000c6480000) Metaspace used 43321K, capacity 43858K, committed 44544K, reserved 1089536K class space used 5138K, capacity 5340K, committed 5376K, reserved 1048576K } Event: 28248.263 GC heap before {Heap before GC invocations=21 (full 5): PSYoungGen total 309760K, used 2548K [0x00000000eb300000, 0x00000000ffe80000, 0x0000000100000000) eden space 281088K, 0% used [0x00000000eb300000,0x00000000eb300000,0x00000000fc580000) from space 28672K, 8% used [0x00000000fe280000,0x00000000fe4fd020,0x00000000ffe80000) to space 29184K, 0% used [0x00000000fc580000,0x00000000fc580000,0x00000000fe200000) ParOldGen total 78336K, used 41473K [0x00000000c1800000, 0x00000000c6480000, 0x00000000eb300000) object space 78336K, 52% used [0x00000000c1800000,0x00000000c40804f0,0x00000000c6480000) Metaspace used 43321K, capacity 43858K, committed 44544K, reserved 1089536K class space used 5138K, capacity 5340K, committed 5376K, reserved 1048576K Event: 28248.577 GC heap after Heap after GC invocations=21 (full 5): PSYoungGen total 309760K, used 0K [0x00000000eb300000, 0x00000000ffe80000, 0x0000000100000000) eden space 281088K, 0% used [0x00000000eb300000,0x00000000eb300000,0x00000000fc580000) from space 28672K, 0% used [0x00000000fe280000,0x00000000fe280000,0x00000000ffe80000) to space 29184K, 0% used [0x00000000fc580000,0x00000000fc580000,0x00000000fe200000) ParOldGen total 78336K, used 43698K [0x00000000c1800000, 0x00000000c6480000, 0x00000000eb300000) object space 78336K, 55% used [0x00000000c1800000,0x00000000c42acbd0,0x00000000c6480000) Metaspace used 43319K, capacity 43852K, committed 44544K, reserved 1089536K class space used 5138K, capacity 5339K, committed 5376K, reserved 1048576K } Event: 28927.095 GC heap before {Heap before GC invocations=22 (full 5): PSYoungGen total 309760K, used 39167K [0x00000000eb300000, 0x00000000ffe80000, 0x0000000100000000) eden space 281088K, 13% used [0x00000000eb300000,0x00000000ed93ffd8,0x00000000fc580000) from space 28672K, 0% used [0x00000000fe280000,0x00000000fe280000,0x00000000ffe80000) to space 29184K, 0% used [0x00000000fc580000,0x00000000fc580000,0x00000000fe200000) ParOldGen total 78336K, used 43698K [0x00000000c1800000, 0x00000000c6480000, 0x00000000eb300000) object space 78336K, 55% used [0x00000000c1800000,0x00000000c42acbd0,0x00000000c6480000) Metaspace used 43415K, capacity 43922K, committed 44544K, reserved 1089536K class space used 5138K, capacity 5340K, committed 5376K, reserved 1048576K Event: 28927.101 GC heap after Heap after GC invocations=22 (full 5): PSYoungGen total 283648K, used 2548K [0x00000000eb300000, 0x00000000ffd80000, 0x0000000100000000) eden space 281088K, 0% used [0x00000000eb300000,0x00000000eb300000,0x00000000fc580000) from space 2560K, 99% used [0x00000000fc580000,0x00000000fc7fd020,0x00000000fc800000) to space 28672K, 0% used [0x00000000fe180000,0x00000000fe180000,0x00000000ffd80000) ParOldGen total 78336K, used 43706K [0x00000000c1800000, 0x00000000c6480000, 0x00000000eb300000) object space 78336K, 55% used [0x00000000c1800000,0x00000000c42aebd0,0x00000000c6480000) Metaspace used 43415K, capacity 43922K, committed 44544K, reserved 1089536K class space used 5138K, capacity 5340K, committed 5376K, reserved 1048576K } Event: 28927.101 GC heap before {Heap before GC invocations=23 (full 6): PSYoungGen total 283648K, used 2548K [0x00000000eb300000, 0x00000000ffd80000, 0x0000000100000000) eden space 281088K, 0% used [0x00000000eb300000,0x00000000eb300000,0x00000000fc580000) from space 2560K, 99% used [0x00000000fc580000,0x00000000fc7fd020,0x00000000fc800000) to space 28672K, 0% used [0x00000000fe180000,0x00000000fe180000,0x00000000ffd80000) ParOldGen total 78336K, used 43706K [0x00000000c1800000, 0x00000000c6480000, 0x00000000eb300000) object space 78336K, 55% used [0x00000000c1800000,0x00000000c42aebd0,0x00000000c6480000) Metaspace used 43415K, capacity 43922K, committed 44544K, reserved 1089536K class space used 5138K, capacity 5340K, committed 5376K, reserved 1048576K Event: 28927.218 GC heap after Heap after GC invocations=23 (full 6): PSYoungGen total 283648K, used 0K [0x00000000eb300000, 0x00000000ffd80000, 0x0000000100000000) eden space 281088K, 0% used [0x00000000eb300000,0x00000000eb300000,0x00000000fc580000) from space 2560K, 0% used [0x00000000fc580000,0x00000000fc580000,0x00000000fc800000) to space 28672K, 0% used [0x00000000fe180000,0x00000000fe180000,0x00000000ffd80000) ParOldGen total 78336K, used 45934K [0x00000000c1800000, 0x00000000c6480000, 0x00000000eb300000) object space 78336K, 58% used [0x00000000c1800000,0x00000000c44db808,0x00000000c6480000) Metaspace used 43415K, capacity 43922K, committed 44544K, reserved 1089536K class space used 5138K, capacity 5340K, committed 5376K, reserved 1048576K } Deoptimization events (10 events): Event: 25737.871 Thread 0x00000000582fd000 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0000000002e55fcc method=java.io.WinNTFileSystem.normalize(Ljava/lang/String;II)Ljava/lang/String; @ 103 Event: 25737.875 Thread 0x00000000582fd000 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00000000031ba998 method=java.lang.ref.SoftReference.get()Ljava/lang/Object; @ 6 Event: 25899.792 Thread 0x00000000582fd800 Uncommon trap: reason=bimorphic action=maybe_recompile pc=0x000000000342a82c method=java.util.regex.Pattern$CharProperty.match(Ljava/util/regex/Matcher;ILjava/lang/CharSequence;)Z @ 18 Event: 25899.800 Thread 0x00000000582fd800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00000000033a6230 method=java.lang.ref.SoftReference.get()Ljava/lang/Object; @ 6 Event: 28245.195 Thread 0x000000005b7a5000 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00000000032134b4 method=org.apache.tomcat.util.net.NioEndpoint$Poller.run()V @ 307 Event: 28400.700 Thread 0x0000000057bbe800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00000000032134b4 method=org.apache.tomcat.util.net.NioEndpoint$Poller.run()V @ 307 Event: 28401.005 Thread 0x00000000582f9000 Uncommon trap: reason=bimorphic action=maybe_recompile pc=0x000000000342a82c method=java.util.regex.Pattern$CharProperty.match(Ljava/util/regex/Matcher;ILjava/lang/CharSequence;)Z @ 18 Event: 28775.421 Thread 0x00000000582fc000 Uncommon trap: reason=bimorphic action=maybe_recompile pc=0x000000000342a82c method=java.util.regex.Pattern$CharProperty.match(Ljava/util/regex/Matcher;ILjava/lang/CharSequence;)Z @ 18 Event: 28847.369 Thread 0x00000000582fd000 Uncommon trap: reason=bimorphic action=maybe_recompile pc=0x000000000342a82c method=java.util.regex.Pattern$CharProperty.match(Ljava/util/regex/Matcher;ILjava/lang/CharSequence;)Z @ 18 Event: 29130.166 Thread 0x00000000582fc000 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0000000003330eec method=org.apache.tomcat.util.buf.UDecoder.convert(Lorg/apache/tomcat/util/buf/ByteChunk;Z)V @ 125 Internal exceptions (10 events): Event: 28847.578 Thread 0x00000000582fd800 Exception <a 'java/io/IOException'> (0x00000000ebea4cc0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\jni.cpp, line 709] Event: 28847.602 Thread 0x00000000582fd800 Exception <a 'java/io/IOException'> (0x00000000ec07f0d0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\jni.cpp, line 709] Event: 28847.603 Thread 0x00000000582fd800 Exception <a 'java/io/IOException'> (0x00000000ec07f9b0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\jni.cpp, line 709] Event: 28847.604 Thread 0x00000000582fd800 Exception <a 'java/io/IOException'> (0x00000000ec07ff20) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\jni.cpp, line 709] Event: 28972.779 Thread 0x0000000058300800 Exception <a 'java/io/IOException'> (0x00000000eb76d3e0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\jni.cpp, line 709] Event: 28972.802 Thread 0x0000000058300800 Exception <a 'java/io/IOException'> (0x00000000eba5f788) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\jni.cpp, line 709] Event: 28972.803 Thread 0x0000000058300800 Exception <a 'java/io/IOException'> (0x00000000eba60068) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\jni.cpp, line 709] Event: 28972.804 Thread 0x0000000058300800 Exception <a 'java/io/IOException'> (0x00000000eba605d8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\jni.cpp, line 709] Event: 29130.196 Thread 0x00000000582fc000 Exception <a 'java/io/FileNotFoundException'> (0x00000000ebcaca50) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\jni.cpp, line 709] Event: 29130.660 Thread 0x00000000582fc000 Exception <a 'java/io/FileNotFoundException'> (0x00000000ebcc32c0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\jni.cpp, line 709] Events (10 events): Event: 28972.785 Thread 0x00000000562c8800 flushing nmethod 0x00000000033a59d0 Event: 28972.786 Thread 0x00000000562c8800 flushing nmethod 0x000000000342c390 Event: 29057.592 Thread 0x0000000058303000 Thread added: 0x0000000058303000 Event: 29057.592 Thread 0x0000000058304800 Thread added: 0x0000000058304800 Event: 29130.166 Thread 0x00000000582fc000 Uncommon trap: trap_request=0xffffff65 fr.pc=0x0000000003330eec Event: 29130.166 Thread 0x00000000582fc000 DEOPT PACKING pc=0x0000000003330eec sp=0x000000008046db40 Event: 29130.166 Thread 0x00000000582fc000 DEOPT UNPACKING pc=0x000000000257582a sp=0x000000008046da98 mode 2 Event: 29130.173 loading class java/util/TooManyListenersException Event: 29130.173 loading class java/util/TooManyListenersException done Event: 29130.673 Thread 0x00000000582fa800 Thread added: 0x00000000582fa800 Dynamic libraries: 0x000000013f290000 - 0x000000013f2c7000 C:\java\jdk1.8.0_111\bin\java.exe 0x00000000773f0000 - 0x000000007758f000 C:\Windows\SYSTEM32\ntdll.dll 0x00000000771d0000 - 0x00000000772ef000 C:\Windows\system32\kernel32.dll 0x000007fefd070000 - 0x000007fefd0da000 C:\Windows\system32\KERNELBASE.dll 0x000007fefd9c0000 - 0x000007fefda9b000 C:\Windows\system32\ADVAPI32.dll 0x000007fefd520000 - 0x000007fefd5bf000 C:\Windows\system32\msvcrt.dll 0x000007fefec90000 - 0x000007fefecaf000 C:\Windows\SYSTEM32\sechost.dll 0x000007fefd7f0000 - 0x000007fefd91c000 C:\Windows\system32\RPCRT4.dll 0x00000000772f0000 - 0x00000000773ea000 C:\Windows\system32\USER32.dll 0x000007fefd4b0000 - 0x000007fefd517000 C:\Windows\system32\GDI32.dll 0x000007fefec80000 - 0x000007fefec8e000 C:\Windows\system32\LPK.dll 0x000007fefd5c0000 - 0x000007fefd68b000 C:\Windows\system32\USP10.dll 0x000007fefb590000 - 0x000007fefb785000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.24440_none_e36f1bbf30ff0606\COMCTL32.dll 0x000007fefdaa0000 - 0x000007fefdb11000 C:\Windows\system32\SHLWAPI.dll 0x000007fefecb0000 - 0x000007fefecde000 C:\Windows\system32\IMM32.DLL 0x000007fefd690000 - 0x000007fefd799000 C:\Windows\system32\MSCTF.dll 0x0000000072950000 - 0x0000000072a22000 C:\java\jdk1.8.0_111\jre\bin\msvcr100.dll 0x00000000720b0000 - 0x000000007294a000 C:\java\jdk1.8.0_111\jre\bin\server\jvm.dll 0x000007fef5dd0000 - 0x000007fef5dd9000 C:\Windows\system32\WSOCK32.dll 0x000007fefd7a0000 - 0x000007fefd7ed000 C:\Windows\system32\WS2_32.dll 0x000007fefeab0000 - 0x000007fefeab8000 C:\Windows\system32\NSI.dll 0x000007fef8cc0000 - 0x000007fef8cfb000 C:\Windows\system32\WINMM.dll 0x000007fefc030000 - 0x000007fefc03c000 C:\Windows\system32\VERSION.dll 0x0000000077590000 - 0x0000000077597000 C:\Windows\system32\PSAPI.DLL 0x0000000072d70000 - 0x0000000072d7f000 C:\java\jdk1.8.0_111\jre\bin\verify.dll 0x0000000072d40000 - 0x0000000072d69000 C:\java\jdk1.8.0_111\jre\bin\java.dll 0x0000000072cc0000 - 0x0000000072cd6000 C:\java\jdk1.8.0_111\jre\bin\zip.dll 0x000007fefdd20000 - 0x000007fefeaab000 C:\Windows\system32\SHELL32.dll 0x000007fefdb20000 - 0x000007fefdd1f000 C:\Windows\system32\ole32.dll 0x000007fefcf40000 - 0x000007fefcf4f000 C:\Windows\system32\profapi.dll 0x0000000074ca0000 - 0x0000000074cad000 C:\java\jdk1.8.0_111\jre\bin\management.dll 0x0000000074c80000 - 0x0000000074c9a000 C:\java\jdk1.8.0_111\jre\bin\net.dll 0x000007fefc6d0000 - 0x000007fefc725000 C:\Windows\system32\mswsock.dll 0x000007fefc6c0000 - 0x000007fefc6c7000 C:\Windows\System32\wship6.dll 0x0000000074c60000 - 0x0000000074c71000 C:\java\jdk1.8.0_111\jre\bin\nio.dll 0x0000000074c30000 - 0x0000000074c54000 C:\java\jdk1.8.0_111\jre\bin\sunec.dll 0x0000000074c20000 - 0x0000000074c2b000 C:\java\jdk1.8.0_111\jre\bin\sunmscapi.dll 0x000007fefd0e0000 - 0x000007fefd24d000 C:\Windows\system32\CRYPT32.dll 0x000007fefcf50000 - 0x000007fefcf5f000 C:\Windows\system32\MSASN1.dll 0x000007fefc730000 - 0x000007fefc748000 C:\Windows\system32\CRYPTSP.dll 0x000007fefc430000 - 0x000007fefc477000 C:\Windows\system32\rsaenh.dll 0x000007fefcfc0000 - 0x000007fefcfde000 C:\Windows\system32\USERENV.dll 0x000007fefcde0000 - 0x000007fefcdef000 C:\Windows\system32\CRYPTBASE.dll 0x000007fefa6f0000 - 0x000007fefa717000 C:\Windows\system32\IPHLPAPI.DLL 0x000007fefa6d0000 - 0x000007fefa6db000 C:\Windows\system32\WINNSI.DLL 0x000007fefa4e0000 - 0x000007fefa4f1000 C:\Windows\system32\dhcpcsvc6.DLL 0x000007fefa4c0000 - 0x000007fefa4d8000 C:\Windows\system32\dhcpcsvc.DLL 0x000007fefab80000 - 0x000007fefab95000 C:\Windows\system32\NLAapi.dll 0x000007feeac50000 - 0x000007feeac65000 C:\Windows\system32\napinsp.dll 0x000007feeac30000 - 0x000007feeac49000 C:\Windows\system32\pnrpnsp.dll 0x000007fefc550000 - 0x000007fefc5ab000 C:\Windows\system32\DNSAPI.dll 0x000007fef9b80000 - 0x000007fef9b8b000 C:\Windows\System32\winrnr.dll 0x000007fefc100000 - 0x000007fefc107000 C:\Windows\System32\wshtcpip.dll 0x000007fef9b20000 - 0x000007fef9b28000 C:\Windows\system32\rasadhlp.dll 0x000007fefa560000 - 0x000007fefa5b3000 C:\Windows\System32\fwpuclnt.dll 0x000007feeac20000 - 0x000007feeac2a000 C:\java\jdk1.8.0_111\jre\bin\libarcsoft_face_engine_jni.dll 0x000007fee9920000 - 0x000007fee99c6000 C:\Windows\system32\MSVCP120.dll 0x000007fee9830000 - 0x000007fee991f000 C:\Windows\system32\MSVCR120.dll 0x000007fee97c0000 - 0x000007fee9826000 C:\java\jdk1.8.0_111\bin\libarcsoft_face_engine.dll 0x000007fee6a90000 - 0x000007fee97bf000 C:\java\jdk1.8.0_111\bin\libarcsoft_face.dll 0x000007fefeba0000 - 0x000007fefebf2000 C:\Windows\system32\WLDAP32.dll 0x000007fefcd80000 - 0x000007fefcdd7000 C:\Windows\system32\apphelp.dll 0x000007fef1710000 - 0x000007fef1761000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\concrt140.dll 0x000007fee1430000 - 0x000007fee14cd000 C:\Windows\system32\MSVCP140.dll 0x000007fef1670000 - 0x000007fef1687000 C:\Windows\system32\VCRUNTIME140.dll 0x000007fefaf90000 - 0x000007fefaf94000 C:\Windows\system32\api-ms-win-crt-runtime-l1-1-0.dll 0x000007fee1330000 - 0x000007fee1424000 C:\Windows\system32\ucrtbase.DLL 0x000007fef1700000 - 0x000007fef1703000 C:\Windows\system32\api-ms-win-core-timezone-l1-1-0.dll 0x000007fef15d0000 - 0x000007fef15d3000 C:\Windows\system32\api-ms-win-core-file-l2-1-0.dll 0x000007fef15c0000 - 0x000007fef15c3000 C:\Windows\system32\api-ms-win-core-localization-l1-2-0.dll 0x000007fef5e40000 - 0x000007fef5e43000 C:\Windows\system32\api-ms-win-core-synch-l1-2-0.dll 0x000007fee2e50000 - 0x000007fee2e53000 C:\Windows\system32\api-ms-win-core-processthreads-l1-1-1.dll 0x000007fee1220000 - 0x000007fee1223000 C:\Windows\system32\api-ms-win-core-file-l1-2-0.dll 0x000007fee1210000 - 0x000007fee1214000 C:\Windows\system32\api-ms-win-crt-string-l1-1-0.dll 0x000007fee1190000 - 0x000007fee1193000 C:\Windows\system32\api-ms-win-crt-heap-l1-1-0.dll 0x000007fee1180000 - 0x000007fee1184000 C:\Windows\system32\api-ms-win-crt-stdio-l1-1-0.dll 0x000007fee1170000 - 0x000007fee1174000 C:\Windows\system32\api-ms-win-crt-convert-l1-1-0.dll 0x000007fee1160000 - 0x000007fee1163000 C:\Windows\system32\api-ms-win-crt-locale-l1-1-0.dll 0x000007fee1150000 - 0x000007fee1155000 C:\Windows\system32\api-ms-win-crt-math-l1-1-0.dll 0x000007fee1140000 - 0x000007fee1145000 C:\Windows\system32\api-ms-win-crt-multibyte-l1-1-0.dll 0x000007fee1130000 - 0x000007fee1133000 C:\Windows\system32\api-ms-win-crt-time-l1-1-0.dll 0x000007fee1120000 - 0x000007fee1123000 C:\Windows\system32\api-ms-win-crt-filesystem-l1-1-0.dll 0x000007fee1110000 - 0x000007fee1113000 C:\Windows\system32\api-ms-win-crt-environment-l1-1-0.dll 0x000007fee1100000 - 0x000007fee1103000 C:\Windows\system32\api-ms-win-crt-utility-l1-1-0.dll 0x000007fee0700000 - 0x000007fee079d000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\msvcp140.dll 0x000007fee10e0000 - 0x000007fee10f7000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\vcruntime140.dll 0x000007fee10d0000 - 0x000007fee10d3000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-locale-l1-1-0.dll 0x000007fee0830000 - 0x000007fee0834000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-string-l1-1-0.dll 0x000007fee0820000 - 0x000007fee0824000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-stdio-l1-1-0.dll 0x000007fee0810000 - 0x000007fee0815000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-math-l1-1-0.dll 0x000007fee0800000 - 0x000007fee0803000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-heap-l1-1-0.dll 0x000007fee07f0000 - 0x000007fee07f4000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-runtime-l1-1-0.dll 0x000007fee06f0000 - 0x000007fee06f4000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-convert-l1-1-0.dll 0x000007fee06e0000 - 0x000007fee06e3000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-environment-l1-1-0.dll 0x000007fee06d0000 - 0x000007fee06d3000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-time-l1-1-0.dll 0x000007fee06c0000 - 0x000007fee06c3000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-filesystem-l1-1-0.dll 0x000007fee06b0000 - 0x000007fee06b3000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-utility-l1-1-0.dll 0x000007fee06a0000 - 0x000007fee06a5000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-multibyte-l1-1-0.dll 0x000007fee0230000 - 0x000007fee0534000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\opencv_core341.dll 0x000007fedec90000 - 0x000007fedf095000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\opencv_imgproc341.dll 0x000007fede900000 - 0x000007fedec8e000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\jniopencv_core.dll 0x000007fede7a0000 - 0x000007fede8f6000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\jniopencv_imgproc.dll 0x000007fede4d0000 - 0x000007fede79f000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\opencv_imgcodecs341.dll 0x000007fee0660000 - 0x000007fee0694000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\jniopencv_imgcodecs.dll 0x000007fee0600000 - 0x000007fee0651000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\opencv_videoio341.dll 0x000007fee05d0000 - 0x000007fee05f9000 C:\Windows\system32\MSVFW32.dll 0x000007fee0560000 - 0x000007fee057f000 C:\Windows\system32\AVIFIL32.dll 0x000007fef5920000 - 0x000007fef5938000 C:\Windows\system32\MSACM32.dll 0x000007fee0210000 - 0x000007fee0227000 C:\Windows\system32\AVICAP32.dll 0x000007fefeac0000 - 0x000007fefeb9b000 C:\Windows\system32\OLEAUT32.dll 0x000007fee01f0000 - 0x000007fee020f000 C:\Users\Administrator\.javacpp\cache\opencv-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\jniopencv_videoio.dll 0x000007fefb530000 - 0x000007fefb586000 C:\Windows\system32\uxtheme.dll 0x000007fef8480000 - 0x000007fef84ff000 C:\Program Files\Common Files\microsoft shared\ink\tiptsf.dll 0x000007fefece0000 - 0x000007fefed79000 C:\Windows\system32\CLBCatQ.DLL 0x000007fee0110000 - 0x000007fee0126000 C:\Windows\system32\devenum.dll 0x000007fefed80000 - 0x000007fefef57000 C:\Windows\system32\setupapi.dll 0x000007fefcf60000 - 0x000007fefcf96000 C:\Windows\system32\CFGMGR32.dll 0x000007fefd010000 - 0x000007fefd02a000 C:\Windows\system32\DEVOBJ.dll 0x000007fefac70000 - 0x000007fefac9d000 C:\Windows\system32\ntmarta.dll 0x000007fefd030000 - 0x000007fefd06b000 C:\Windows\system32\WINTRUST.dll 0x000007fee0550000 - 0x000007fee055d000 C:\Windows\system32\msdmo.dll 0x000007fedfd10000 - 0x000007fedfd3f000 C:\Windows\system32\qcap.dll 0x000007fede310000 - 0x000007fede4c4000 C:\Windows\system32\quartz.dll 0x000007fefb150000 - 0x000007fefb168000 C:\Windows\system32\dwmapi.dll 0x000007fedfcc0000 - 0x000007fedfd01000 C:\Windows\system32\ksproxy.ax 0x0000000072a30000 - 0x0000000072a36000 C:\Windows\system32\ksuser.dll 0x000007fefa7c0000 - 0x000007fefa9bf000 C:\Windows\system32\d3d9.dll 0x000007fefa7b0000 - 0x000007fefa7b7000 C:\Windows\system32\d3d8thk.dll VM Arguments: jvm_args: -Djava.util.logging.config.file=D:\znyg\apache-tomcat-8.0.8\apache-tomcat-8.0.8\conf\logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=D:\znyg\apache-tomcat-8.0.8\apache-tomcat-8.0.8\endorsed -Dcatalina.base=D:\znyg\apache-tomcat-8.0.8\apache-tomcat-8.0.8 -Dcatalina.home=D:\znyg\apache-tomcat-8.0.8\apache-tomcat-8.0.8 -Djava.io.tmpdir=D:\znyg\apache-tomcat-8.0.8\apache-tomcat-8.0.8\temp java_command: org.apache.catalina.startup.Bootstrap start java_class_path (initial): D:\znyg\apache-tomcat-8.0.8\apache-tomcat-8.0.8\bin\bootstrap.jar;D:\znyg\apache-tomcat-8.0.8\apache-tomcat-8.0.8\bin\tomcat-juli.jar Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=C:\java\jdk1.8.0_111 JRE_HOME=C:\java\jdk1.8.0_111 CLASSPATH=D:\znyg\apache-tomcat-8.0.8\apache-tomcat-8.0.8\bin\bootstrap.jar;D:\znyg\apache-tomcat-8.0.8\apache-tomcat-8.0.8\bin\tomcat-juli.jar PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\java\jdk1.8.0_111\bin;D:\ffmpeg\bin USERNAME=Administrator OS=Windows_NT PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel --------------- S Y S T E M --------------- OS: Windows 7 , 64 bit Build 7601 (6.1.7601.24441) CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, clmul, erms, ht, tsc, tscinvbit, tscinv Memory: 4k page, physical 4088324k(2881152k free), swap 8174748k(5777920k free) vm_info: Java HotSpot(TM) 64-Bit Server VM (25.111-b14) for windows-amd64 JRE (1.8.0_111-b14), built on Sep 22 2016 19:24:05 by "java_re" with MS VC++ 10.0 (VS2010) time: Fri Oct 25 11:26:39 2019 elapsed time: 29130 seconds (0d 8h 5m 30s) ```
【Javafx】Mediaplayer出现bug
代码如下所示,在正常情况下运行这段代码是没有问题的,音乐可以正常播放 ``` Media bgm = new Media(Paths.get("Resources/bgm.mp3").toUri().toString()); MediaPlayer bgmplayer = new MediaPlayer(bgm); ``` 但是在我运行过一段读取文件的方法以后,就会跳出 ``` Exception in thread "JavaFX Application Thread" java.lang.NullPointerException at com.sun.media.jfxmediaimpl.platform.gstreamer.GSTMediaPlayer.playerSetBalance(GSTMediaPlayer.java:236) at com.sun.media.jfxmediaimpl.NativeMediaPlayer.setBalance(NativeMediaPlayer.java:1145) at javafx.scene.media.MediaPlayer.init(MediaPlayer.java:474) at javafx.scene.media.MediaPlayer.<init>(MediaPlayer.java:414) at sample.Play.main(Play.java:513) …… ``` 这样子的异常,异常显示有空指针问题,但是我明明已经把Media这个类型的变量new过了呀,为什么还会出现这种问题?是因为运行过读取文件这个方法的问题吗?希望有大神能教教我
实现文件上传时遇到的问题,有没有大佬帮忙看看具体是什么问题?问题已在代码中标出
String message = ""; //消息提示 try { if (this.file != null) { File f = this.getFile(); // 采用时间+UUID的方式随即命名 String stroreName = java.util.UUID.randomUUID().toString() + fileFileName.substring(fileFileName.lastIndexOf(".")); //BUG修复 //创建一个DiskFileItemFactory工厂 DiskFileItemFactory factory = new DiskFileItemFactory(); factory.setSizeThreshold(1024*100); //设置缓冲区的大小为100KB,默认是10KB factory.setRepository(tmpFile); //设置上传时生成的临时文件保存目录 //创建一个文件上传解析器 ServletFileUpload upload = new ServletFileUpload(factory); upload.setHeaderEncoding("UTF-8"); //解决上传文件名的中文乱码 upload.setFileSizeMax(1024*1024*10); //设置上传单个文件的大小的最大值10M upload.setSizeMax(1024*1024*10); //设置上传文件总量的最大值,最大值=同时上传的多个文件的大小的最大值的和,100M List<FileItem> list = upload.parseRequest(request); for(FileItem item : list){ // ***程序运行到这一步就直接跳出了*** if(item.isFormField()){ String name = item.getFieldName(); //解决普通输入项的数据的中文乱码问题 String value = item.getString("UTF-8"); //value = new String(value.getBytes("iso8859-1"),"UTF-8"); System.out.println(name + "=" + value); }else{ String fileSuffixName = fileFileName.substring(fileFileName.lastIndexOf("." ) + 1); if(fileSuffixName.equals("doc") || fileSuffixName.equals("docx")){ FileInputStream inputStream = new FileInputStream(f); FileOutputStream outputStream = new FileOutputStream(propath + File.separator + stroreName); byte[] buf = new byte[1024]; int length = 0; while ((length = inputStream.read(buf)) != -1) { outputStream.write(buf, 0, length); } inputStream.close(); outputStream.flush(); outputStream.close(); MessageFile msgfile = new MessageFile(); msgfile.setFilePath(stroreName); msgfile.setFileName(this.fileFileName); msgfile.setCreateDate(new Date()); messageFileService.saveOrUpdate(msgfile); MessageFile resultfile = messageFileService.findById(msgfile .getId()); ServletUtil.sendAsJson(response, resultfile.toJSONString()); message = "文件上传成功!"; } } } } } catch (FileUploadBase.FileSizeLimitExceededException e) { e.printStackTrace(); request.setAttribute("message", "单个文件超出最大值!!!"); //request.getRequestDispatcher("/message.jsp").forward(request, response); } catch(FileUploadBase.SizeLimitExceededException e){ e.printStackTrace(); request.setAttribute("message", "上传文件的总的大小超出限制的最大值!!!"); //request.getRequestDispatcher("/message.jsp").forward(request, response); return; } catch (Exception e) { message = "文件上传失败"; e.printStackTrace(); } request.setAttribute("message",message); //request.getRequestDispatcher("/message.jsp").forward(request, response); }
求助 android scrollview滚动时 toolbar会变色的bug
android scrollview滚动时 差不多 碰到第一个 imageView时 toolbar就会变色 代码很简单 就一个布局文件 加一个activity bug现象:是滚动到一半时 toolbar会变色,为什么? 布局文件 比较长 但没啥东西 就一个scrollview 里面加了几个imageView imageView 用的是比较大的图片 432x1965的大图 ,主要是为了能更快复现bug 调了好几天 最后把代码清一清,新建了一个activity发现还是能复现 demo_my_test_activtiy.xml ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <include layout="@layout/demo_test_toolbar" /> <ScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:text="热点" android:textSize="20sp" android:textStyle="bold" /> <ImageView android:id="@+id/id_web_image" android:layout_width="200dp" android:layout_height="160dp" /> <Button android:id="@+id/id_btn_test" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/test" /> <ImageView android:id="@+id/zoom_image" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="@dimen/activity_vertical_margin" android:adjustViewBounds="true" android:maxHeight="750dp" android:src="@drawable/qmshtu_v" /> <ImageView android:id="@+id/zoom_image2" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="@dimen/activity_vertical_margin" android:adjustViewBounds="true" android:maxHeight="750dp" android:src="@drawable/qmshtu_v" /> <ImageView android:id="@+id/zoom_image3" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="@dimen/activity_vertical_margin" android:adjustViewBounds="true" android:maxHeight="650dp" /> <ImageView android:id="@+id/image_view_glide" android:layout_width="match_parent" android:layout_height="wrap_content" /> </LinearLayout> </ScrollView> </LinearLayout> ``` demo_test_toolbar.xml ``` <merge xmlns:android="http://schemas.android.com/apk/res/android" > <!--加了这个 在actionbar 下出现阴影--> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="80dp" android:minHeight="?attr/actionBarSize" android:paddingTop="@dimen/status_bar_height" android:background="#FF00FFEE" > </android.support.v7.widget.Toolbar> </merge> ``` ``` public class MyTestActivity extends AppCompatActivity { @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.demo_my_test_activtiy); } } ``` 整个代码 没干啥事 有没有人遇到过? 怎么解决 现在发现 这个BUG在红米手机上会出现 但在山寨平板上不会 不知道是不是MIUI特有的问题
A Bug's Life 的问题
Problem Description Background Professor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different genders and that they only interact with bugs of the opposite gender. In his experiment, individual bugs and their interactions were easy to identify, because numbers were printed on their backs. Problem Given a list of bug interactions, decide whether the experiment supports his assumption of two genders with no homosexual bugs or if it contains some bug interactions that falsify it. Input The first line of the input contains the number of scenarios. Each scenario starts with one line giving the number of bugs (at least one, and up to 2000) and the number of interactions (up to 1000000) separated by a single space. In the following lines, each interaction is given in the form of two distinct bug numbers separated by a single space. Bugs are numbered consecutively starting from one. Output The output for every scenario is a line containing "Scenario #i:", where i is the number of the scenario starting at 1, followed by one line saying either "No suspicious bugs found!" if the experiment is consistent with his assumption about the bugs' sexual behavior, or "Suspicious bugs found!" if Professor Hopper's assumption is definitely wrong. Sample Input 2 3 3 1 2 2 3 1 3 4 2 1 2 3 4 Sample Output Scenario #1: Suspicious bugs found! Scenario #2: No suspicious bugs found!
FPGA长时间运行不能正常工作
做了个系统,FPGA工作一两个小时是没任何问题的,但工作时间长了fpga就会出bug,各种不正常工作,而且时间不固定,有时候工作几个小时有时候能几天……
请问谁知道cmder无法粘贴带有空格的问题该如何解决
问题:Cmder为啥不能粘贴带有空格的文字,如下图![图片说明](https://img-ask.csdn.net/upload/202001/25/1579954179_993677.gif) 应该是Cmder 的Bug,又大佬有解决的吗
java调用dll文件,调用失败# Problematic frame: # C [MSVCR100D.dll+0x7bbbc]
java使用jna.Native的方式调用dll文件,报错: ``` # Problematic frame: # C [MSVCR100D.dll+0x7bbbc] ``` 错误日志头: ``` # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6ba2bbbc, pid=14344, tid=0x0000312c # # JRE version: Java(TM) SE Runtime Environment (8.0_231-b11) (build 1.8.0_231-b11) # Java VM: Java HotSpot(TM) Client VM (25.231-b11 mixed mode windows-x86 ) # Problematic frame: # C [MSVCR100D.dll+0x7bbbc] # # Core dump written. Default location: E:\sboot\hs_err_pid14344.mdmp # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. ``` 主要错误: ``` Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j com.sun.jna.Native.invokePointer(JI[Ljava/lang/Object;)J+0 j com.sun.jna.Function.invokePointer(I[Ljava/lang/Object;)Lcom/sun/jna/Pointer;+6 j com.sun.jna.Function.invokeString(I[Ljava/lang/Object;Z)Ljava/lang/String;+3 j com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;Z)Ljava/lang/Object;+544 j com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+214 j com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+341 j com.sun.proxy.$Proxy0.InterfaceFunc(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;+76 j com.itliuyue.sboot.utils.CAlgorithmByTES.main([Ljava/lang/String;)V+41 v ~StubRoutines::call_stub ```
我用Java 写的一个简单截图小工具 但是出现一些在重截时出现bug 跪求大神
/**在这里贴上我注释满满的代码 求一语道破 求建议 求批评 没有贴main 方法 随便写个main方法便可运行 */ ` package com.subimaga; import java.awt.AWTException; import java.awt.AlphaComposite; import java.awt.Color; import java.awt.Cursor; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Point; import java.awt.Rectangle; import java.awt.Robot; import java.awt.Toolkit; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; import javax.swing.JFrame; import com.sun.awt.AWTUtilities; public class ScreenCapture extends JFrame implements MouseListener, MouseMotionListener { private BufferedImage bufferedImage = null;// 用来存放图像 // 获取屏幕的大小 private int width = Toolkit.getDefaultToolkit().getScreenSize().width; private int height = Toolkit.getDefaultToolkit().getScreenSize().height; private Point point = new Point(0, height); // 截图的左上角 private Point point2 = new Point(0, 0);// 截图右下角 private Point point3 = new Point(0, 0);// 用来处理point 与point2 的关系 // 是画笔的透明度可控制 private AlphaComposite composite; boolean isStarCut = false, isEndCut = false;// isStarCut 为开始选区 // isEndCut为截图结束仅标记结束选区 public ScreenCapture() { // 初始化窗口 this.InitScr(); } private void InitScr() // 初始化 { // 截取整个桌面作为窗口的背景 try { bufferedImage = new Robot().createScreenCapture(new Rectangle(0, 0, width, height)); } catch (AWTException e) { // TODO Auto-generated catch block e.printStackTrace(); } // 去掉窗体结构 this.setUndecorated(true); // 设置窗体大小 this.setSize(width, height); // 设置画笔的透明度 composite = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.6f); this.addMouseListener(this); this.addMouseMotionListener(this); this.setVisible(true); this.setAlwaysOnTop(true); repaint(); } public void paint(Graphics g) { // 配置截图环境 BufferedImage buff = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR); Graphics2D g2 = buff.createGraphics(); // 画笔一 Graphics2D g3 = buff.createGraphics(); // 画笔二 用两个画笔主要是因为需要不同的透明度 g2.drawImage(bufferedImage, 0, 0, null); g2.setColor(Color.gray); g2.setComposite(composite); g2.fillRect(0, 0, width, height); // 截图的工作 if (isStarCut == true || isEndCut == true) { // 当 confirmArea(); // 处理坐标的方法 /** * 我实现的原理是 在铺了全屏截图的窗口上铺上一层灰色 透明为0.6 的实心矩形 * 根据用户在窗口拖动的坐标再另外截取一张相对应的图片铺在上面 */ g3.drawImage(bufferedImage.getSubimage(point.x, point.y, Math .abs(point2.x - point.x), Math.abs(point2.y - point.y)), point.x, point.y, null); // 画出一个绿色的空心矩形 g3.setColor(Color.green); g3.drawRect(point.x, point.y, point2.x - point.x, point2.y - point.y); } // 功能框的显示 if (isEndCut == true) { // 当选区结束 才会绘出此框 action(); // 背景框 g2.fillRect(point3.x, point3.y + 5, 200, 30); g2.setColor(Color.red); // 完成 g3.drawRect(point3.x, point3.y + 5, 60, 30); g3.setColor(Color.white); g3.drawString("完成", point3.x + 20, point3.y + 25); // 重截 g2.drawRect(point3.x + 70, point3.y + 5, 60, 30); g2.drawString("重截", point3.x + 20 + 70, point3.y + 25); // 退出 g2.drawRect(point3.x + 140, point3.y + 5, 60, 30); g2.drawString("退出", point3.x + 20 + 140, point3.y + 25); } // 双缓冲 g.drawImage(buff, 0, 0, this); } // 调节功能框位置的方法 public void action() { if (point2.x <= width - 200 && point2.y < height - 35) { point3.x = point2.x; point3.y = point2.y; } else if (point.x >= 200 && point.y >= 35) { point3.x = point.x; point3.y = point.y - 50; } else if (point.x <= 200 && point2.x >= width - 200 && point.y >= 35) { point3.x = point2.x - 205; point3.y = point.y - 50; } else if (point.y >= 35 && point2.y <= height - 35 && point2.x >= width - 200) { point3.x = point2.x; point3.y = point2.y; } else { point3.x = point2.x - 205; point3.y = point.y; } } public void confirmArea() { int temp; point.x = point3.x; // 每一次开始都是和原点坐标比较 point.y = point3.y; if (point2.x < point.x && point2.y < point.y) { temp = point.x; point.x = point2.x; point2.x = temp; temp = point.y; point.y = point2.y; point2.y = temp; } else if (point2.x < point.x) { temp = point.x; point.x = point2.x; point2.x = temp; } else if (point2.y < point.y) { temp = point.y; point.y = point2.y; point2.y = temp; } } public void actoinCut(MouseEvent e) // 操作功能框的方法 { if (isEndCut) { // 完成 if (e.getX() >= point3.x && e.getX() <= point3.x + 60 && e.getY() >= point3.y + 5 && e.getY() <= point3.y + 35) { // //将截好的图保存起来 原理是利用点下完成的“按钮”时的坐标 即是最后一次决定的选区 对图片进行截图保存 try { ImageIO.write(bufferedImage.getSubimage(point.x, point.y, Math.abs(point2.x - point.x), Math.abs(point2.y - point.y)), "jpg", new File("D:/D.jpg")); } catch (IOException e1) { // // TODO Auto-generated catch block e1.printStackTrace(); } ; System.exit(0); // 保存完毕马上退出 这里的保存够工作有点简单因为只是用来测试此截图工具的bug // 具体的功能先不实现先 } // 重截 else if (e.getX() >= point3.x + 70 && e.getX() <= point3.x + 70 + 60 && e.getY() >= point3.y + 5 && e.getY() <= point3.y + 35) { isEndCut = false; // 重新截图 一切进入初始状态 这个 重截一直搞不好 求大神 isStarCut = false; // 点击重截后鼠标依然保持手型样式 所以要恢复默认 setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); // 重绘 repaint(); } // 退出 else if (e.getX() >= point3.x + 140 && e.getX() <= point3.x + 140 + 60 && e.getY() >= point3.y + 5 && e.getY() <= point3.y + 35) { System.exit(0); } } } public void mouseClicked(MouseEvent e) { // TODO Auto-generated method stub if (e.getButton() == MouseEvent.BUTTON3) // 双击 右键退出程序 { if (e.getClickCount() == 2) System.exit(0); } } @Override public void mouseEntered(MouseEvent e) { // TODO Auto-generated method stub } @Override public void mouseExited(MouseEvent e) { // TODO Auto-generated method stub } @Override public void mousePressed(MouseEvent e) { // TODO Auto-generated method stub // 只有当初始化状态才生效 if (isStarCut == false && isEndCut == false && e.getButton() == MouseEvent.BUTTON1) { point.x = e.getX(); point.y = e.getY(); point3.x = e.getX(); point3.y = e.getY(); isStarCut = true; } // 进入重截的条件 else if (isEndCut) { this.actoinCut(e); } } @Override public void mouseReleased(MouseEvent e) { // TODO Auto-generated method stub // 截图开始生效 if (isStarCut && isEndCut == false && e.getButton() == MouseEvent.BUTTON1) { isEndCut = true; // 鼠标一放开马上标记截图结束 isStarCut = false; // 重新标记未开始选区状态 repaint();// 重绘 } } @Override public void mouseDragged(MouseEvent e) { // TODO Auto-generated method stub // 拖动是改变矩形的坐标点 if (isStarCut || isEndCut) { point2.x = e.getX(); point2.y = e.getY(); repaint(); } } public void mouseMoved(MouseEvent e) { // TODO Auto-generated method stub // 在功能框上显示手型状态 if (isEndCut) { // 完成 if (e.getX() >= point3.x && e.getX() <= point3.x + 60 && e.getY() >= point3.y + 5 && e.getY() <= point3.y + 35) { setCursor(new Cursor(Cursor.HAND_CURSOR)); } // 重截 else if (e.getX() >= point3.x + 70 && e.getX() <= point3.x + 70 + 60 && e.getY() >= point3.y + 5 && e.getY() <= point3.y + 35) { setCursor(new Cursor(Cursor.HAND_CURSOR)); } // 退出 else if (e.getX() >= point3.x + 140 && e.getX() <= point3.x + 140 + 60 && e.getY() >= point3.y + 5 && e.getY() <= point3.y + 35) { setCursor(new Cursor(Cursor.HAND_CURSOR)); } else { setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); } } } }
python的除法计算,为什么和计算器计算的不一样?
需要把一段java代码重写为python的,运行结果总是不对,调试后发现是python在计算过程中和java有些不一样。 比如计算下面这个数字: ``` 1811552740395741107/62 ``` java和win10系统计算器计算的结果都是 【29218592587028082】 但是,python计算的结果是-------------【29218592587028084】 为什么会相差2? ![图片说明](https://img-ask.csdn.net/upload/202001/04/1578111406_861278.jpg) 很难受,是什么原因导致的这种情况,python在这其中是有一些坑是我不知道的吗? # #更新 ``` 在stackOverflow上找到了解决办法,用运算符'//'代替'/'。 1811552740395741107 // 62 '//'表示整数除法,结果是整数?程序结果是正确了,但是不知道为什么,之前的结果相差2,也不是进位退位导致的吧。 不知道python的'/'底层是怎么实现的,大数运算过程中二进制位产生了累积误差? 还发现一个问题,绝对值函数math.fabs(),下列代码: t = -1811552740395741107 if -t == math.fabs(t): print(-t) print('%f' % math.fabs(t)) 两条print是可以执行的,但是输出结果是: 1811552740395741107 1811552740395741184.000000 也就是说在内存中的二进制数是相等的,但是打印出两个数却不一样? 如果拿fabs()得到的结果去计算,程序和预期的结果又不一样,很烦,今天踩了很多坑! ``` **有谁知道其中的原因么,为什么Python的行为和其他语言不一样?这应该不是BUG吧**
It's not a Bug, It's a Feature! 具体实现
Problem Description It is a curious fact that consumers buying a new software product generally do not expect the software to be bug-free. Can you imagine buying a car whose steering wheel only turns to the right? Or a CD-player that plays only CDs with country music on them? Probably not. But for software systems it seems to be acceptable if they do not perform as they should do. In fact, many software companies have adopted the habit of sending out patches to fix bugs every few weeks after a new product is released (and even charging money for the patches). Tinyware Inc. is one of those companies. After releasing a new word processing software this summer, they have been producing patches ever since. Only this weekend they have realized a big problem with the patches they released. While all patches fix some bugs, they often rely on other bugs to be present to be installed. This happens because to fix one bug, the patches exploit the special behavior of the program due to another bug. More formally, the situation looks like this. Tinyware has found a total of n bugs B = {b1, b2, ..., bn} in their software. And they have released m patches p1, p2, ..., pm. To apply patch pi to the software, the bugs Bi+ in B have to be present in the software, and the bugs Bi- in B must be absent (of course Bi+ ∩ Bi- = Φ). The patch then fixes the bugs Fi- in B (if they have been present) and introduces the new bugs Fi+ in B (where, again, Fi+ ∩ Fi- = Φ). Tinyware's problem is a simple one. Given the original version of their software, which contains all the bugs in B, it is possible to apply a sequence of patches to the software which results in a bug- free version of the software? And if so, assuming that every patch takes a certain time to apply, how long does the fastest sequence take? Input The input contains several product descriptions. Each description starts with a line containing two integers n and m, the number of bugs and patches, respectively. These values satisfy 1 <= n <= 20 and 1 <= m <= 100. This is followed by m lines describing the m patches in order. Each line contains an integer, the time in seconds it takes to apply the patch, and two strings of n characters each. The first of these strings describes the bugs that have to be present or absent before the patch can be applied. The i-th position of that string is a ``+'' if bug bi has to be present, a ``-'' if bug bi has to be absent, and a `` 0'' if it doesn't matter whether the bug is present or not. The second string describes which bugs are fixed and introduced by the patch. The i-th position of that string is a ``+'' if bug bi is introduced by the patch, a ``-'' if bug bi is removed by the patch (if it was present), and a ``0'' if bug bi is not affected by the patch (if it was present before, it still is, if it wasn't, is still isn't). The input is terminated by a description starting with n = m = 0. This test case should not be processed. Output For each product description first output the number of the product. Then output whether there is a sequence of patches that removes all bugs from a product that has all n bugs. Note that in such a sequence a patch may be used multiple times. If there is such a sequence, output the time taken by the fastest sequence in the format shown in the sample output. If there is no such sequence, output ``Bugs cannot be fixed.''. Print a blank line after each test case. Sample Input 3 3 1 000 00- 1 00- 0-+ 2 0-- -++ 4 1 7 0-0+ ---- 0 0 Sample Output Product 1 Fastest sequence takes 8 seconds. Product 2 Bugs cannot be fixed.
写一个串口助手的软件,遇到了这个神仙bug,有人遇到过吗?怎么解决?
``` # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180005d00, pid=3496, tid=23580 # # JRE version: Java(TM) SE Runtime Environment (13.0+33) (build 13+33) # Java VM: Java HotSpot(TM) 64-Bit Server VM (13+33, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64) # Problematic frame: # C [rxtxSerial.dll+0x5d00] # # No core dump will be written. Minidumps are not enabled by default on client versions of Windows # # An error report file with more information is saved as: # D:\Java�廪\eclipse1\eclipse\eclipse-workspace\work\hs_err_pid3496.log # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # ``` 做了一个串口助手,一发送数据时弹出这个错误。什么问题? 我已经试过把jdk和jre卸载之后重新安装,还是不行。
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私...
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
Linux(服务器编程):15---两种高效的事件处理模式(reactor模式、proactor模式)
前言 同步I/O模型通常用于实现Reactor模式 异步I/O模型则用于实现Proactor模式 最后我们会使用同步I/O方式模拟出Proactor模式 一、Reactor模式 Reactor模式特点 它要求主线程(I/O处理单元)只负责监听文件描述符上是否有事件发生,有的话就立即将时间通知工作线程(逻辑单元)。除此之外,主线程不做任何其他实质性的工作 读写数据,接受新的连接,以及处...
阿里面试官问我:如何设计秒杀系统?我的回答让他比起大拇指
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图和个人联系方式,欢迎Star和指教 前言 Redis在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在Redis的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸,打败了...
五年程序员记流水账式的自白。
不知觉已中码龄已突破五年,一路走来从起初铁憨憨到现在的十九线程序员,一路成长,虽然不能成为高工,但是也能挡下一面,从15年很火的android开始入坑,走过java、.Net、QT,目前仍处于android和.net交替开发中。 毕业到现在一共就职过两家公司,目前是第二家,公司算是半个创业公司,所以基本上都会身兼多职。比如不光要写代码,还要写软著、软著评测、线上线下客户对接需求收集...
C语言魔塔游戏
很早就很想写这个,今天终于写完了。 游戏截图: 编译环境: VS2017 游戏需要一些图片,如果有想要的或者对游戏有什么看法的可以加我的QQ 2985486630 讨论,如果暂时没有回应,可以在博客下方留言,到时候我会看到。 下面我来介绍一下游戏的主要功能和实现方式 首先是玩家的定义,使用结构体,这个名字是可以自己改变的 struct gamerole { char n...
一文详尽系列之模型评估指标
点击上方“Datawhale”,选择“星标”公众号第一时间获取价值内容在机器学习领域通常会根据实际的业务场景拟定相应的不同的业务指标,针对不同机器学习问题如回归、分类、排...
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观...
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外...
压测学习总结(1)——高并发性能指标:QPS、TPS、RT、吞吐量详解
一、QPS,每秒查询 QPS:Queries Per Second意思是“每秒查询率”,是一台服务器每秒能够相应的查询次数,是对一个特定的查询服务器在规定时间内所处理流量多少的衡量标准。互联网中,作为域名系统服务器的机器的性能经常用每秒查询率来衡量。 二、TPS,每秒事务 TPS:是TransactionsPerSecond的缩写,也就是事务数/秒。它是软件测试结果的测量单位。一个事务是指一...
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip installselenium -ihttps://pypi.tuna.tsinghua.edu.cn/simple/ ...
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca...
2020年,冯唐49岁:我给20、30岁IT职场年轻人的建议
点击“技术领导力”关注∆每天早上8:30推送 作者|Mr.K 编辑| Emma 来源|技术领导力(ID:jishulingdaoli) 前天的推文《冯唐:职场人35岁以后,方法论比经验重要》,收到了不少读者的反馈,觉得挺受启发。其实,冯唐写了不少关于职场方面的文章,都挺不错的。可惜大家只记住了“春风十里不如你”、“如何避免成为油腻腻的中年人”等不那么正经的文章。 本文整理了冯...
程序员该看的几部电影
1、骇客帝国(1999) 概念:在线/离线,递归,循环,矩阵等 剧情简介: 不久的将来,网络黑客尼奥对这个看似正常的现实世界产生了怀疑。 他结识了黑客崔妮蒂,并见到了黑客组织的首领墨菲斯。 墨菲斯告诉他,现实世界其实是由一个名叫“母体”的计算机人工智能系统控制,人们就像他们饲养的动物,没有自由和思想,而尼奥就是能够拯救人类的救世主。 可是,救赎之路从来都不会一帆风顺,到底哪里才是真实的世界?如何...
Python绘图,圣诞树,花,爱心 | Turtle篇
每周每日,分享Python实战代码,入门资料,进阶资料,基础语法,爬虫,数据分析,web网站,机器学习,深度学习等等。 公众号回复【进群】沟通交流吧,QQ扫码进群学习吧 微信群 QQ群 1.画圣诞树 import turtle screen = turtle.Screen() screen.setup(800,600) circle = turtle.Turtle()...
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东...
还记得那个提速8倍的IDEA插件吗?VS Code版本也发布啦!!
去年,阿里云发布了本地 IDE 插件 Cloud Toolkit,仅 IntelliJ IDEA 一个平台,就有 15 万以上的开发者进行了下载,体验了一键部署带来的开发便利。时隔一年的今天,阿里云正式发布了 Visual Studio Code 版本,全面覆盖前端开发者,帮助前端实现一键打包部署,让开发提速 8 倍。 VSCode 版本的插件,目前能做到什么? 安装插件之后,开发者可以立即体验...
破14亿,Python分析我国存在哪些人口危机!
一、背景 二、爬取数据 三、数据分析 1、总人口 2、男女人口比例 3、人口城镇化 4、人口增长率 5、人口老化(抚养比) 6、各省人口 7、世界人口 四、遇到的问题 遇到的问题 1、数据分页,需要获取从1949-2018年数据,观察到有近20年参数:LAST20,由此推测获取近70年的参数可设置为:LAST70 2、2019年数据没有放上去,可以手动添加上去 3、将数据进行 行列转换 4、列名...
2019年除夕夜的有感而发
天气:小雨(加小雪) 温度:3摄氏度 空气:严重污染(399) 风向:北风 风力:微风 现在是除夕夜晚上十点钟,再有两个小时就要新的一年了; 首先要说的是我没患病,至少现在是没有患病;但是心情确像患了病一样沉重; 现在这个时刻应该大部分家庭都在看春晚吧,或许一家人团团圆圆的坐在一起,或许因为某些特殊原因而不能团圆;但不管是身在何处,身处什么境地,我都想对每一个人说一句:新年快乐! 不知道csdn这...
听说想当黑客的都玩过这个Monyer游戏(1~14攻略)
第零关 进入传送门开始第0关(游戏链接) 请点击链接进入第1关: 连接在左边→ ←连接在右边 看不到啊。。。。(只能看到一堆大佬做完的留名,也能看到菜鸡的我,在后面~~) 直接fn+f12吧 &lt;span&gt;连接在左边→&lt;/span&gt; &lt;a href="first.php"&gt;&lt;/a&gt; &lt;span&gt;←连接在右边&lt;/span&gt; o...
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ...... ...
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!...
2020年的1月,我辞掉了我的第一份工作
其实,这篇文章,我应该早点写的,毕竟现在已经2月份了。不过一些其它原因,或者是我的惰性、还有一些迷茫的念头,让自己迟迟没有试着写一点东西,记录下,或者说是总结下自己前3年的工作上的经历、学习的过程。 我自己知道的,在写自己的博客方面,我的文笔很一般,非技术类的文章不想去写;另外我又是一个还比较热衷于技术的人,而平常复杂一点的东西,如果想写文章写的清楚点,是需要足够...
别低估自己的直觉,也别高估自己的智商
所有群全部吵翻天,朋友圈全部沦陷,公众号疯狂转发。这两周没怎么发原创,只发新闻,可能有人注意到了。我不是懒,是文章写了却没发,因为大家的关注力始终在这次的疫情上面,发了也没人看。当然,我...
这个世界上人真的分三六九等,你信吗?
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。 再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。 下文是原回答,希望能对你能有所启发。 如果我说,这个世界上人真的分三六九等,...
节后首个工作日,企业们集体开晨会让钉钉挂了
By 超神经场景描述:昨天 2 月 3 日,是大部分城市号召远程工作的第一天,全国有接近 2 亿人在家开始远程办公,钉钉上也有超过 1000 万家企业活跃起来。关键词:十一出行 人脸...
Java基础知识点梳理
虽然已经在实际工作中经常与java打交道,但是一直没系统地对java这门语言进行梳理和总结,掌握的知识也比较零散。恰好利用这段时间重新认识下java,并对一些常见的语法和知识点做个总结与回顾,一方面为了加深印象,方便后面查阅,一方面为了掌握好Android打下基础。
2020年全新Java学习路线图,含配套视频,学完即为中级Java程序员!!
新的一年来临,突如其来的疫情打破了平静的生活! 在家的你是否很无聊,如果无聊就来学习吧! 世上只有一种投资只赚不赔,那就是学习!!! 传智播客于2020年升级了Java学习线路图,硬核升级,免费放送! 学完你就是中级程序员,能更快一步找到工作! 一、Java基础 JavaSE基础是Java中级程序员的起点,是帮助你从小白到懂得编程的必经之路。 在Java基础板块中有6个子模块的学...
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合...
相关热词 c#如何定义数组列表 c#倒序读取txt文件 java代码生成c# c# tcp发送数据 c#解决时间格式带星期 c#类似hashmap c#设置istbox的值 c#获取多线程返回值 c# 包含数字 枚举 c# timespan
立即提问