c3p0报错,版本为最新,求大神帮忙!!!!!!!!

详细:之前都是好使的,因为需要,所配置的事务,加上事务后,运行到加注解的方法就报错。

依赖

    <!--c3p0-->
        <dependency>
            <groupId>com.mchange</groupId>
            <artifactId>c3p0</artifactId>
            <version>0.9.5.2</version>
        </dependency>

                 <!--aop依赖-->
        <!-- https://mvnrepository.com/artifact/org.aspectj/aspectjrt -->
        <dependency>
            <groupId>org.aspectj</groupId>
            <artifactId>aspectjrt</artifactId>
            <version>1.8.9</version>
        </dependency>

        <!--aop依赖,shiro权限需要-->
        <dependency>
            <groupId>org.aspectj</groupId>
            <artifactId>aspectjweaver</artifactId>
            <version>1.7.4</version>
        </dependency>

                  <!-- https://mvnrepository.com/artifact/com.google.zxing/javase -->
        <dependency>
            <groupId>com.google.zxing</groupId>
            <artifactId>javase</artifactId>
            <version>2.1</version>
        </dependency>

        <dependency>
            <groupId>org.quartz-scheduler</groupId>
            <artifactId>quartz</artifactId>
            <version>2.2.3</version>
        </dependency>
        <dependency>
            <groupId>org.quartz-scheduler</groupId>
            <artifactId>quartz-jobs</artifactId>
            <version>2.2.3</version>
        </dependency>

配置


    <!--开启AOP的对类代理-->
    <aop:aspectj-autoproxy proxy-target-class="true"/>

         <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
        <property name="driverClass" value="${db.driver}"/>
        <property name="jdbcUrl" value="${db.url}"/>
        <property name="user" value="${db.username}"/>
        <property name="password" value="${db.password}"/>
        <property name="maxIdleTime" value="${db.maxIdleTime}"/>
        <property name="maxPoolSize" value="${db.maxPoolSize}"/>
        <property name="minPoolSize" value="${db.minPoolSize}"/>
        <property name="initialPoolSize" value="${db.initialPoolSize}"/>
        <property name="acquireRetryDelay" value="${db.acquireRetryDelay}"/>
        <property name="acquireIncrement" value="${db.acquireIncrement}"/>
        <property name="acquireRetryAttempts" value="${db.acquireRetryAttempts}"/>
        <property name="breakAfterAcquireFailure" value="${db.breakAfterAcquireFailure}"/>
    </bean>


         <bean id="sqlSessionFactory"
          class="org.mybatis.spring.SqlSessionFactoryBean">
        <property name="configLocation" value="classpath:mybatis-config.xml"/>
        <property name="dataSource" ref="dataSource"/>
    </bean>

    <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
        <property name="basePackage" value="com.chao"/>
        <property name="sqlSessionFactoryBeanName" value="sqlSessionFactory"/>
    </bean>

    <!-- 配置事务管理器 -->
    <bean id="transactionManager"
          class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
        <property name="dataSource" ref="dataSource" />
    </bean>
    <!-- 注解方式配置事物 -->
    <tx:annotation-driven transaction-manager="transactionManager" />

错误信息:
严重: Servlet.service() for servlet [SpringServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.AbstractMethodError: Method com/mchange/v2/c3p0/impl/NewProxyPreparedStatement.isClosed()Z is abstract] with root cause
java.lang.AbstractMethodError: Method com/mchange/v2/c3p0/impl/NewProxyPreparedStatement.isClosed()Z is abstract
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.isClosed(NewProxyPreparedStatement.java)
at org.apache.ibatis.executor.BaseExecutor.closeStatement(BaseExecutor.java:285)
at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:65)
at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:326)
at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)
at com.github.pagehelper.PageInterceptor.executeAutoCount(PageInterceptor.java:201)
at com.github.pagehelper.PageInterceptor.intercept(PageInterceptor.java:113)
at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:61)
at com.sun.proxy.$Proxy31.query(Unknown Source)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:148)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:433)
at com.sun.proxy.$Proxy27.selectList(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:230)
at org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:139)
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:76)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

2个回答

最终的问题是quartz包和c3po包冲突了,更换别的版本c3po包,成功解决!
如果你使用的是maven工程,直接把c3p0的依赖删除,maven会自动找合适的jar包。

context:component-scan配置呢?
类似于

    <context:component-scan base-package="xxx.xxx.xxx">
        <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller" />
        <context:exclude-filter type="annotation" expression="org.springframework.web.bind.annotation.ControllerAdvice" />
    </context:component-scan>
lovefamilyC
lovefamilyC 这些配置都有,只是没粘出来,我把关于事务需要的这些配置粘出来
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
c3p0配置数据源一直报错,虽然不影响开发,但是总是报错很让人难受,求大神们帮忙看看,10C币奉上
以下是错误信息: Failed to destroy resource: com.mchange.v2.c3p0.impl.NewPooledConnection@1e8491f3 java.lang.NullPointerException at com.mysql.jdbc.StatementImpl.realClose(StatementImpl.java:2307) at com.mysql.jdbc.PreparedStatement.realClose(PreparedStatement.java:2688) at com.mysql.jdbc.ConnectionImpl.closeAllOpenStatements(ConnectionImpl.java:1489) at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4289) at com.mysql.jdbc.ConnectionImpl.close(ConnectionImpl.java:1461) at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:326) at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:115) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.destroyResource(C3P0PooledConnectionPool.java:185) at com.mchange.v2.resourcepool.BasicResourcePool$5.run(BasicResourcePool.java:576) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:354) 下面是我配置数据源的配置信息: ![图片说明](https://img-ask.csdn.net/upload/201609/12/1473640182_320710.png)
eclipse启动Tomcat报错了,请各位大神帮忙看一下,万分感谢!!!
昨天运行还好好的,今天就起不来了,报错如下: 三月 08, 2018 9:46:52 上午 org.apache.catalina.loader.WebappClassLoader loadClass 信息: Illegal access: this web application instance has been stopped already. Could not load com.mchange.v2.c3p0.ComboPooledDataSourceCustomizer. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1600) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:278) at com.sun.beans.finder.ClassFinder.findClass(ClassFinder.java:67) at com.sun.beans.finder.ClassFinder.findClass(ClassFinder.java:110) at java.beans.Introspector.findCustomizerClass(Introspector.java:1245) at java.beans.Introspector.getTargetBeanDescriptor(Introspector.java:1239) at java.beans.Introspector.getBeanInfo(Introspector.java:415) at java.beans.Introspector.getBeanInfo(Introspector.java:252) at java.beans.Introspector.getBeanInfo(Introspector.java:214) at com.mchange.v2.c3p0.management.DynamicPooledDataSourceManagerMBean.extractAttributeInfos(DynamicPooledDataSourceManagerMBean.java:544) at com.mchange.v2.c3p0.management.DynamicPooledDataSourceManagerMBean.reinitialize(DynamicPooledDataSourceManagerMBean.java:188) at com.mchange.v2.c3p0.management.DynamicPooledDataSourceManagerMBean.<init>(DynamicPooledDataSourceManagerMBean.java:158) at com.mchange.v2.c3p0.management.ActiveManagementCoordinator.attemptManagePooledDataSource(ActiveManagementCoordinator.java:110) at com.mchange.v2.c3p0.C3P0Registry.incorporate(C3P0Registry.java:233) at com.mchange.v2.c3p0.C3P0Registry.reregister(C3P0Registry.java:251) at com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.<init>(PoolBackedDataSourceBase.java:228) at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.<init>(AbstractPoolBackedDataSource.java:62) at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:108) at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:104) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:898) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075) at org.jbpm.pvm.internal.env.SpringContext.get(SpringContext.java:65) at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:154) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:711) at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:154) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:711) at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:132) at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:123) at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:207) at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:196) at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.resolveTransactionManager(SpringTransactionInterceptor.java:62) at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:46) at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53) at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40) at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56) at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.acquireJobs(DispatcherThread.java:126) at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.run(DispatcherThread.java:67) 三月 08, 2018 9:46:52 上午 org.apache.catalina.loader.WebappClassLoader findResourceInternal 信息: Illegal access: this web application instance has been stopped already. Could not load jbpm.hibernate.cfg.xml. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. 三月 08, 2018 9:47:02 上午 org.apache.catalina.loader.WebappClassLoader findResourceInternal 信息: Illegal access: this web application instance has been stopped already. Could not load jbpm.hibernate.cfg.xml. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. 三月 08, 2018 9:47:22 上午 org.apache.catalina.loader.WebappClassLoader findResourceInternal 信息: Illegal access: this web application instance has been stopped already. Could not load jbpm.hibernate.cfg.xml. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. 三月 08, 2018 9:48:02 上午 org.apache.catalina.loader.WebappClassLoader findResourceInternal 信息: Illegal access: this web application instance has been stopped already. Could not load jbpm.hibernate.cfg.xml. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. 三月 08, 2018 9:49:22 上午 org.apache.catalina.loader.WebappClassLoader findResourceInternal 信息: Illegal access: this web application instance has been stopped already. Could not load jbpm.hibernate.cfg.xml. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. 三月 08, 2018 9:52:02 上午 org.apache.catalina.loader.WebappClassLoader findResourceInternal 信息: Illegal access: this web application instance has been stopped already. Could not load jbpm.hibernate.cfg.xml. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. 三月 08, 2018 9:57:22 上午 org.apache.catalina.loader.WebappClassLoader findResourceInternal 信息: Illegal access: this web application instance has been stopped already. Could not load jbpm.hibernate.cfg.xml. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
MFC程序 有几个地方一直报错 不会改 求大神帮忙
void CGSDlg::OnButton1() { // TODO: Add your control notification handler code here CString str; if(operation==0) { double a0,a2,a4,a6,a8,X; double B; m_b.GetWindowText(str); **B = atof(str)*PI/180;** a0 = 1+3.0/4*e1*e1+45.0/64*pow(e1,4)+350.0/512*pow(e1,6) +11025.0/16384*pow(e1,8); a2 =-1.0/2*(3.0/4*e1*e1+60.0/64*pow(e1,4)+525.0/512*pow(e1,6) +17640.0/16384*pow(e1,8)); a4 = 1.0/4*(15.0/64*pow(e1,4)+210.0/512*pow(e1,6) +8820.0/16384*pow(e1,8)); a6 = -1.0/6*(35.0/512*pow(e1,6)+2520.0/16384*pow(e1,8)); a8 = -1.0/6*(35.0/512*pow(e1,6)+2520.0/16384*pow(e1,8)); X = a*(1-e1*e1)*(a0*B+a2*sin(2*B)+a4*sin(4*B)+a6*sin(6*B)+a8*sin(8*B)); double p,t,n,V,N,c,l0,L0,L00,e2,Rou,Eta; m_l.GetWindowText(str); **L0 = atof(str)*PI/180;** m_zxjd.GetWindowText(str); **L00 = atof(str)*PI/180;** t = tan(B); **Rou = 180 * 3600/PI;** l0 = (L0-L00)*3600; e2 = sqrt((a*a-b*b)/(b*b)); N=a/sqrt(1-e1*e1*sin(B)*sin(B)); Eta=e2*cos(B); double x,y; x = X + N/(2*Rou*Rou)*sin(B)*cos(B)*l0*l0+ N/(24*pow(Rou,4))*sin(B)*pow(cos(B),3)*(5-t*t+9*Eta*Eta+4*pow(Eta,4))*pow(l0,4)+ N/(720*pow(Rou,6))*sin(B)*pow(cos(B),5)*(61-58*t*t+pow(t,4))*pow(l0,6); y = N/Rou*cos(B)*l0+ N/(6*pow(Rou,3))*pow(cos(B),3)*(1-t*t+Eta*Eta)*pow(l0,3)+ N/(120*pow(Rou,5))*pow(cos(B),5)*(5-18*t*t+pow(t,4)+14*Eta*Eta-58*Eta*Eta*t*t)*pow(l0,5); char buf[15]; sprintf(buf,"%f",x); m_x.SetWindowText(buf); sprintf(buf,"%f",y); m_y.SetWindowText(buf); } *****标注地方有误 求帮忙找错 跪谢各路大神
cocos2d-x-3.8编译android报错,求大神帮帮忙
创建了一个cocos2d项目,添加了几行代码,在vs2012下运行正常,编译win32也正常,但是一编译android就报错 NDK用android-ndk-r9d和android-ndk-r10两个版本试过,估计不是ndk的原因,其他的原因也想不出来,求大神帮忙解决 这是报错的原文 E:\cocos\fu100>cocos compile -p android -j 4 执行命令:compile 编译模式:debug 使用 Eclipse 工程:E:\cocos\fu100\proj.android 未指定 Android 目标平台版本,自动查找一个可用版本... 正在执行:'"D:\android-sdk\tools\android" update project -t android-10 -p E:\coc os\fu100\proj.android' Updated project.properties Updated local.properties Updated file E:\cocos\fu100\proj.android\proguard-project.txt 未指定 Android 目标平台版本,自动查找一个可用版本... 正在执行:'"D:\android-sdk\tools\android" update lib-project -p E:\cocos\fu100\c ocos2d\cocos\platform\android\java -t android-10' Updated project.properties Updated local.properties Updated file E:\cocos\fu100\cocos2d\cocos\platform\android\java\proguard-project .txt 正在执行 ndk-build... NDK 编译模式:debug NDK_TOOLCHAIN_VERSION: 4.8 正在执行:'"D:\android-ndk-r9d\ndk-build" -C E:\cocos\fu100\proj.android -j4 NDK _MODULE_PATH=E:\cocos\fu100\proj.android\../cocos2d;E:\cocos\fu100\proj.android\ ../cocos2d/cocos;E:\cocos\fu100\proj.android\../cocos2d/external NDK_TOOLCHAIN_V ERSION=4.8 NDK_DEBUG=1' make.exe: Entering directory `E:/cocos/fu100/proj.android' D:/android-ndk-r9d/build/core/build-binary.mk:393: warning: overriding commands for target `obj/local/armeabi/objs-debug/bullet_static/BulletMultiThreaded/SpuLi bspe2Support.o' D:/android-ndk-r9d/build/core/build-binary.mk:393: warning: ignoring old command s for target `obj/local/armeabi/objs-debug/bullet_static/BulletMultiThreaded/Spu Libspe2Support.o' [armeabi] Gdbserver : [arm-linux-androideabi-4.8] libs/armeabi/gdbserver [armeabi] Gdbsetup : libs/armeabi/gdb.setup [armeabi] Compile++ thumb: cocos2dcpp_shared <= main.cpp [armeabi] Compile++ thumb: cocos2dcpp_shared <= AppDelegate.cpp arm-linux-androideabi-g++: error: CreateProcess: No such file or directory [armeabi] Compile++ thumb: cocos2dcpp_shared <= HelloWorldScene.cpp make.exe: *** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/hellocpp/main.o] E rror 1 make.exe: *** Waiting for unfinished jobs.... arm-linux-androideabi-g++: error: CreateProcess: No such file or directory make.exe: *** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/__/__/Classes/AppD elegate.o] Error 1 arm-linux-androideabi-g++: error: CreateProcess: No such file or directory make.exe: *** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/__/__/Classes/Hell oWorldScene.o] Error 1 make.exe: Leaving directory `E:/cocos/fu100/proj.android' 执行命令出错,返回值:2。 ``` 这事新建了一个空的项目,想编译来试试,结果还是报错,求大神帮忙 ``` 正在执行 ndk-build... NDK 编译模式:debug NDK_TOOLCHAIN_VERSION: 4.8 正在执行:'"D:\android-ndk-r9d\ndk-build" -C E:\cocos\test\proj.android -j4 NDK_ MODULE_PATH=E:\cocos\test\proj.android\../cocos2d;E:\cocos\test\proj.android\../ cocos2d/cocos;E:\cocos\test\proj.android\../cocos2d/external NDK_TOOLCHAIN_VERSI ON=4.8 NDK_DEBUG=1' make.exe: Entering directory `E:/cocos/test/proj.android' D:/android-ndk-r9d/build/core/build-binary.mk:393: warning: overriding commands for target `obj/local/armeabi/objs-debug/bullet_static/BulletMultiThreaded/SpuLi bspe2Support.o' D:/android-ndk-r9d/build/core/build-binary.mk:393: warning: ignoring old command s for target `obj/local/armeabi/objs-debug/bullet_static/BulletMultiThreaded/Spu Libspe2Support.o' [armeabi] StaticLibrary : libcocos2d.a [armeabi] Compile++ thumb: cocostudio_static <= WidgetReader.cpp arm-linux-androideabi-g++: error: CreateProcess: No such file or directory make.exe: *** [obj/local/armeabi/objs-debug/cocostudio_static/WidgetReader/Widge tReader.o] Error 1 make.exe: *** Waiting for unfinished jobs.... make.exe: Leaving directory `E:/cocos/test/proj.android' 执行命令出错,返回值:2。 ``` ```
Oracle恢复dmp文件报错问题,请大神帮忙看一下。
C:\Users\Administrator>imp system/snp201@P201_SN file=F:\p201\p201_2019_09_18_0_00.dmp log=F:\p201\logs.log full=y ignore=y 报错: Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options Export file created by EXPORT:V10.02.01 via conventional path import done in ZHS16GBK character set and AL16UTF16 NCHAR character set export client uses WE8ISO8859P1 character set (possible charset conversion) . importing SYSTEM's objects into SYSTEM IMP-00017: following statement failed with ORACLE error 1119: "CREATE UNDO TABLESPACE "RBSG_SPC" BLOCKSIZE 8192 DATAFILE '/oradata/P201/d" "ata/undotbs01.dbf' SIZE 2048M EXTENT MANAGEMENT LOCAL " IMP-00003: ORACLE error 1119 encountered ORA-01119: error in creating database file '/oradata/P201/data/undotbs01.dbf' ORA-27040: file create error, unable to create file OSD-04002: 无法打开文件 O/S-Error: (OS 3) 系统找不到指定的路径。 IMP-00017: following statement failed with ORACLE error 1119: "CREATE TEMPORARY TABLESPACE "TEMP_SPC" BLOCKSIZE 8192 TEMPFILE '/oradata/P" "201/data/temp01.dbf' SIZE 1073741824 AUTOEXTEND ON NEXT 655360 MAXSI" "ZE 32767M EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1048576" IMP-00003: ORACLE error 1119 encountered ORA-01119: error in creating database file '/oradata/P201/data/temp01.dbf' ORA-27040: file create error, unable to create file OSD-04002: 无法打开文件 O/S-Error: (OS 3) 系统找不到指定的路径。 IMP-00017: following statement failed with ORACLE error 1119: "CREATE TABLESPACE "DATA_SPC" BLOCKSIZE 8192 DATAFILE '/oradata/P201/data/u" "sers01.dbf' SIZE 2048M , '/oradata/P201/data/users02.dbf' SIZE 2048M " " , '/oradata/P201/data/users03.dbf' SIZE 2048M , '/oradata/P201/dat" "a/users04.dbf' SIZE 2048M EXTENT MANAGEMENT LOCAL AUTOALLOCATE ONLI" "NE PERMANENT SEGMENT SPACE MANAGEMENT AUTO" IMP-00003: ORACLE error 1119 encountered ORA-01119: error in creating database file '/oradata/P201/data/users01.dbf' ORA-27040: file create error, unable to create file OSD-04002: 无法打开文件 O/S-Error: (OS 3) 系统找不到指定的路径。 IMP-00017: following statement failed with ORACLE error 1119: "CREATE TABLESPACE "INDX_SPC" BLOCKSIZE 8192 DATAFILE '/oradata/P201/data/i" "ndex01.dbf' SIZE 2048M , '/oradata/P201/data/index02.dbf' SIZE 2048M " " , '/oradata/P201/data/index03.dbf' SIZE 2048M EXTENT MANAGEMENT L" "OCAL AUTOALLOCATE ONLINE PERMANENT SEGMENT SPACE MANAGEMENT AUTO" IMP-00003: ORACLE error 1119 encountered ORA-01119: error in creating database file '/oradata/P201/data/index01.dbf' ORA-27040: file create error, unable to create file OSD-04002: 无法打开文件 O/S-Error: (OS 3) 系统找不到指定的路径。 IMP-00017: following statement failed with ORACLE error 1119: "CREATE TABLESPACE "TOOLS_SPC" BLOCKSIZE 8192 DATAFILE '/oradata/P201/data/" "tools01.dbf' SIZE 104857600 EXTENT MANAGEMENT LOCAL AUTOALLOCATE ON" "LINE PERMANENT SEGMENT SPACE MANAGEMENT AUTO" IMP-00003: ORACLE error 1119 encountered ORA-01119: error in creating database file '/oradata/P201/data/tools01.dbf' ORA-27040: file create error, unable to create file OSD-04002: 无法打开文件 O/S-Error: (OS 3) 系统找不到指定的路径。 IMP-00017: following statement failed with ORACLE error 959: "ALTER USER "SYS" IDENTIFIED BY VALUES '34032A6EB9AF81F0' TEMPORARY TABLESPA" "CE "TEMP_SPC"" IMP-00003: ORACLE error 959 encountered ORA-00959: tablespace 'TEMP_SPC' does not exist IMP-00017: following statement failed with ORACLE error 959: "ALTER USER "SYSTEM" IDENTIFIED BY VALUES '6EB432A935A0D818' TEMPORARY TABLE" "SPACE "TEMP_SPC"" IMP-00003: ORACLE error 959 encountered ORA-00959: tablespace 'TEMP_SPC' does not exist IMP-00017: following statement failed with ORACLE error 959: "CREATE USER "TSMSYS" IDENTIFIED BY VALUES '3DF26A8B17D0F29F' TEMPORARY TABL" "ESPACE "TEMP_SPC" PASSWORD EXPIRE ACCOUNT LOCK" IMP-00003: ORACLE error 959 encountered ORA-00959: tablespace 'TEMP_SPC' does not exist IMP-00017: following statement failed with ORACLE error 959: "CREATE USER "DBUSRPOS" IDENTIFIED BY VALUES '3244CCDF3EC51372' DEFAULT TABL" "ESPACE "DATA_SPC" TEMPORARY TABLESPACE "TEMP_SPC"" IMP-00003: ORACLE error 959 encountered ORA-00959: tablespace 'DATA_SPC' does not exist IMP-00017: following statement failed with ORACLE error 959: "CREATE USER "FTPOSERP" IDENTIFIED BY VALUES '19FBBB1DDD7819F1' DEFAULT TABL" "ESPACE "DATA_SPC" TEMPORARY TABLESPACE "TEMP_SPC"" IMP-00003: ORACLE error 959 encountered ORA-00959: tablespace 'DATA_SPC' does not exist IMP-00017: following statement failed with ORACLE error 959: "CREATE USER "FTERPAPP" IDENTIFIED BY VALUES '36A05437E3347110' DEFAULT TABL" "ESPACE "DATA_SPC" TEMPORARY TABLESPACE "TEMP_SPC"" IMP-00003: ORACLE error 959 encountered ORA-00959: tablespace 'DATA_SPC' does not exist IMP-00017: following statement failed with ORACLE error 959: "CREATE USER "DBLINKUSR" IDENTIFIED BY VALUES 'F7891792EC2D1261' DEFAULT TAB" "LESPACE "DATA_SPC" TEMPORARY TABLESPACE "TEMP_SPC"" IMP-00003: ORACLE error 959 encountered ORA-00959: tablespace 'DATA_SPC' does not exist IMP-00017: following statement failed with ORACLE error 959: "CREATE USER "DBUSR" IDENTIFIED BY VALUES '684F707940FBD9C7' DEFAULT TABLESP" "ACE "DATA_SPC" TEMPORARY TABLESPACE "TEMP_SPC"" IMP-00003: ORACLE error 959 encountered ORA-00959: tablespace 'DATA_SPC' does not exist IMP-00017: following statement failed with ORACLE error 959: "CREATE USER "DBUSRCARDNEW" IDENTIFIED BY VALUES 'CA675BF2681710F2' DEFAULT " "TABLESPACE "DATA_SPC" TEMPORARY TABLESPACE "TEMP_SPC"" IMP-00003: ORACLE error 959 encountered ORA-00959: tablespace 'DATA_SPC' does not exist IMP-00017: following statement failed with ORACLE error 959: "CREATE USER "DBUSRSELECT" IDENTIFIED BY VALUES 'EB2868029BF741C0' DEFAULT T" "ABLESPACE "DATA_SPC" TEMPORARY TABLESPACE "TEMP_SPC"" IMP-00003: ORACLE error 959 encountered ORA-00959: tablespace 'DATA_SPC' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT UNLIMITED TABLESPACE TO "TSMSYS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'TSMSYS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT UNLIMITED TABLESPACE TO "DBUSRPOS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRPOS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT CREATE ANY INDEX TO "DBUSRPOS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRPOS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT CREATE ANY SEQUENCE TO "DBUSRPOS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRPOS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT CREATE ANY TABLE TO "DBUSRPOS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRPOS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT CREATE USER TO "DBUSRPOS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRPOS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT DELETE ANY TABLE TO "DBUSRPOS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRPOS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT DROP ANY INDEX TO "DBUSRPOS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRPOS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT DROP ANY SEQUENCE TO "DBUSRPOS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRPOS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT DROP ANY TABLE TO "DBUSRPOS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRPOS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT DROP USER TO "DBUSRPOS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRPOS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT EXECUTE ANY PROCEDURE TO "DBUSRPOS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRPOS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT GRANT ANY ROLE TO "DBUSRPOS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRPOS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT INSERT ANY TABLE TO "DBUSRPOS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRPOS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT SELECT ANY SEQUENCE TO "DBUSRPOS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRPOS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT SELECT ANY TABLE TO "DBUSRPOS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRPOS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT UPDATE ANY TABLE TO "DBUSRPOS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRPOS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT UNLIMITED TABLESPACE TO "DBUSR"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSR' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT UNLIMITED TABLESPACE TO "DBUSRCARDNEW"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRCARDNEW' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT CREATE SESSION TO "DBUSRSELECT"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRSELECT' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT ALTER SESSION TO "DBUSRSELECT"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRSELECT' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT SELECT ANY DICTIONARY TO "DBUSRSELECT"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRSELECT' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT "RESOURCE" TO "TSMSYS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'TSMSYS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT "DBA" TO "DBUSRPOS"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRPOS' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT "ROLE_APPPOSERP" TO "FTPOSERP"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'FTPOSERP' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT "CONNECT" TO "FTERPAPP"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'FTERPAPP' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT "ROLE_APPPOSERP" TO "DBLINKUSR"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBLINKUSR' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT "DBA" TO "DBUSR"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSR' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT "DBA" TO "DBUSRCARDNEW"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBUSRCARDNEW' does not exist IMP-00017: following statement failed with ORACLE error 1917: "GRANT "ROLE_DBPOSERP" TO "DBLINKUSR"" IMP-00003: ORACLE error 1917 encountered ORA-01917: user or role 'DBLINKUSR' does not exist IMP-00017: following statement failed with ORACLE error 1918: "ALTER USER "DBUSRSELECT" DEFAULT ROLE ALL" IMP-00003: ORACLE error 1918 encountered ORA-01918: user 'DBUSRSELECT' does not exist IMP-00017: following statement failed with ORACLE error 1918: "ALTER USER "DBUSRCARDNEW" DEFAULT ROLE ALL" IMP-00003: ORACLE error 1918 encountered ORA-01918: user 'DBUSRCARDNEW' does not exist IMP-00017: following statement failed with ORACLE error 1918: "ALTER USER "DBUSR" DEFAULT ROLE ALL" IMP-00003: ORACLE error 1918 encountered ORA-01918: user 'DBUSR' does not exist IMP-00017: following statement failed with ORACLE error 1918: "ALTER USER "DBLINKUSR" DEFAULT ROLE ALL" IMP-00003: ORACLE error 1918 encountered ORA-01918: user 'DBLINKUSR' does not exist IMP-00017: following statement failed with ORACLE error 1918: "ALTER USER "FTERPAPP" DEFAULT ROLE ALL" IMP-00003: ORACLE error 1918 encountered ORA-01918: user 'FTERPAPP' does not exist IMP-00017: following statement failed with ORACLE error 1918: "ALTER USER "FTPOSERP" DEFAULT ROLE ALL" IMP-00003: ORACLE error 1918 encountered ORA-01918: user 'FTPOSERP' does not exist IMP-00017: following statement failed with ORACLE error 1918: "ALTER USER "DBUSRPOS" DEFAULT ROLE ALL" IMP-00003: ORACLE error 1918 encountered ORA-01918: user 'DBUSRPOS' does not exist IMP-00017: following statement failed with ORACLE error 1918: "ALTER USER "TSMSYS" DEFAULT ROLE ALL" IMP-00003: ORACLE error 1918 encountered ORA-01918: user 'TSMSYS' does not exist . importing SYSMAN's objects into SYSMAN . importing DBUSRPOS's objects into DBUSRPOS "ALTER SESSION SET CURRENT_SCHEMA= "DBUSRPOS"" IMP-00003: ORACLE error 1435 encountered ORA-01435: user does not exist IMP-00000: Import terminated unsuccessfully
插入jstl标签报错,求大神帮忙看下,网上解决方案都是错的
com.neusoft.unieap.action.EAPActionServlet.process(EAPActionServlet.java:814) >> org.apache.jasper.JasperException: <h3>Validation error messages from TagLibraryValidator for c</h3><p>null: org.xml.sax.SAXParseException: Attribute "name" was already specified for element "html:hidden".</p > 插入c标签后就这个错
在VC6.0上是可以完整运行的但是在vs2012各种报错,求大神进来帮忙修改一下
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<ctype.h> #define MAXWORD 30 /*单词最多字符数*/ #define MAXARRAY 2000 /*文件最多单词总数*/ #define MAXLINE 80 /*每次最多读取MAXLINE-1个字符*/ struct node { char word [MAXWORD]; int count; }; /*函数声明*/ void GetWord(char *p, struct node *wArry); void AddArray(char *w, struct node *p); void PritArray(struct node *p); /*主程序*/ int main (int argc, char argv[]) { int i; FILE *fp; struct node arrayWord[MAXARRAY]; char line[MAXLINE]; /*数组初始化*/ for(i = 0; i < MAXARRAY ;i++ ) { arrayWord[i].count = 0; arrayWord[i].word = '\0'; /*检查命令行参数个数*/ if(argc != 2) { printf("Usage :countWords Filename\n"); exit(1); } /*打开文件*/ if (fp = fopen(argv[1], "r")) { printf("countword:can't open %s\n",argv[1]); exit(1); } /*统计单词*/ while (fgets(line,MAXLINE, fp) != NULL) { GetWord(line, arrayWord); } /*显示统计结果*/ PritArray(arrayWord); } /*提取单词*/ void GetWord(char *p, struct node *wArry); { int n; char word[MAXWORD]; char *q, *w; while (isspace(*p)) { p++; } while (*p != '\0') { n = 0;/*单词字符个数,初始化为0*/ if (isspace(*p) && isspace (*(p-1)))/*单词的首个字母*/ { q = p; /*记录单词的开始位置*/ while (isspace(*p) && n < MAXWORD) { p++; n++; } /*单词以空白字符结尾*/ if(isspace(*p) || *p == '\0') { w = word; while (q < p) { /*复制单词到word[]*/ *w++ = *p++ ; } *w = '\0'; /*将单词添加到arryWord[MAXARRAY]*/ AddArray(word, wArray); } } if (*p != '\0') { p++; } } } /*统计单词*/ void AddArray(char *w, struct node *p); { int i; for (int i = 0; i < MAXARRAY; i++, p++) { if (strcmp(p ->count, w) == 0) { /*单词已经存在*/ p ->count++; break; }else if (p ->count ==0) { /*单词不存在*/ strcpy(p -> word, w); p ->count = 1; break; } } } /*显示统计结果*/ void PritArray(struct node *p); { while (p ->count > 0) { printf("%4d %s\n",p ->count,p->word); p++; } } 首先是定义数组那里 arrayWord[i].word = '\0';提示表达式必须是可修改的左值 /*打开文件*/哪里 error C2664: “fopen”: 不能将参数 1 从“char”转换为“const char *” 最后是定义函数括号里的形参,在函数里面会报错举个例子: void AddArray(char *w, struct node *p);这个自定义函数 如果我下面这样写 if (strcmp(p ->count, w) == 0),这里面的w就会报错,提示未定义标识符,次啊面的函数也是这么个情况,请问昨晚那么晚改???
tomcat挂起无响应,请各位大神帮忙看看,小弟没有C币请简练
服务器启动跑几个小时后就会报错如下信息 2015-6-16 18:50:31 com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector run 警告: com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@2685239d -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks! 2015-6-16 18:50:31 com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector run 警告: com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@2685239d -- APPARENT DEADLOCK!!! Complete Status: Managed Threads: 3 Active Threads: 3 Active Tasks: com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@4bb22a9a (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0 Pending Tasks: com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@4bedd36e com.mchange.v2.resourcepool.BasicResourcePool$1RefurbishCheckinResourceTask@2d68c79d com.mchange.v2.resourcepool.BasicResourcePool$1RefurbishCheckinResourceTask@64352cf6 Pool thread stack traces: Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2,5,main] java.net.SocketInputStream.socketRead0(Native Method) java.net.SocketInputStream.read(SocketInputStream.java:129) oracle.net.ns.Packet.receive(Unknown Source) oracle.net.ns.DataPacket.receive(Unknown Source) oracle.net.ns.NetInputStream.getNextPacket(Unknown Source) oracle.net.ns.NetInputStream.read(Unknown Source) oracle.net.ns.NetInputStream.read(Unknown Source) oracle.net.ns.NetInputStream.read(Unknown Source) oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:930) oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:894) oracle.jdbc.ttc7.Oopen.receive(Oopen.java:109) oracle.jdbc.ttc7.TTC7Protocol.open(TTC7Protocol.java:584) oracle.jdbc.driver.OracleStatement.open(OracleStatement.java:586) oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2918) oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658) oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:584) oracle.jdbc.OracleDatabaseMetaData.getTables(OracleDatabaseMetaData.java:2308) com.mchange.v2.c3p0.impl.DefaultConnectionTester.activeCheckConnectionNoQuery(DefaultConnectionTester.java:185) com.mchange.v2.c3p0.impl.DefaultConnectionTester.activeCheckConnection(DefaultConnectionTester.java:62) com.mchange.v2.c3p0.AbstractConnectionTester.activeCheckConnection(AbstractConnectionTester.java:67) com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.testPooledConnection(C3P0Poolcom.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.refurbishIdleResource(C3P0PooledConnectionPool.java:310) com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask.run(BasicResourcePool.java:1999) com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main] java.net.SocketInputStream.socketRead0(Native Method) java.net.SocketInputStream.read(SocketInputStream.java:129) oracle.net.ns.Packet.receive(Unknown Source) oracle.net.ns.DataPacket.receive(Unknown Source) oracle.net.ns.NetInputStream.getNextPacket(Unknown Source) oracle.net.ns.NetInputStream.read(Unknown Source) oracle.net.ns.NetInputStream.read(Unknown Source) oracle.net.ns.NetInputStream.read(Unknown Source) oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:930) oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:894) oracle.jdbc.ttc7.Oopen.receive(Oopen.java:109) oracle.jdbc.ttc7.TTC7Protocol.open(TTC7Protocol.java:584) oracle.jdbc.driver.OracleStatement.open(OracleStatement.java:586) oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2918) oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658) oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:584) oracle.jdbc.OracleDatabaseMetaData.getTables(OracleDatabaseMetaData.java:2308) com.mchange.v2.c3p0.impl.DefaultConnectionTester.activeCheckConnectionNoQuery(DefaultConnectionTester.java:185) com.mchange.v2.c3p0.impl.DefaultConnectionTester.activeCheckConnection(DefaultConnectionTester.java:62) com.mchange.v2.c3p0.AbstractConnectionTester.activeCheckConnection(AbstractConnectionTester.java:67) com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.testPooledConnection(C3P0PooledConnectionPool.java:368) com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.refurbishIdleResource(C3P0PooledConnectionPool.java:310) com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask.run(BasicResourcePool.java:1999) com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1,5,main] java.net.SocketInputStream.socketRead0(Native Method) java.net.SocketInputStream.read(SocketInputStream.java:129) oracle.net.ns.Packet.receive(Unknown Source) oracle.net.ns.DataPacket.receive(Unknown Source) oracle.net.ns.NetInputStream.getNextPacket(Unknown Source) oracle.net.ns.NetInputStream.read(Unknown Source) oracle.net.ns.NetInputStream.read(Unknown Source) oracle.net.ns.NetInputStream.read(Unknown Source) oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:930) oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:894) oracle.jdbc.ttc7.Oopen.receive(Oopen.java:109) oracle.jdbc.ttc7.TTC7Protocol.open(TTC7Protocol.java:584) oracle.jdbc.driver.OracleStatement.open(OracleStatement.java:586) oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2918) oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658) oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:584) oracle.jdbc.OracleDatabaseMetaData.getTables(OracleDatabaseMetaData.java:2308) com.mchange.v2.c3p0.impl.DefaultConnectionTester.activeCheckConnectionNoQuery(DefaultConnectionTester.java:185) com.mchange.v2.c3p0.impl.DefaultConnectionTester.activeCheckConnection(DefaultConnectionTester.java:62) com.mchange.v2.c3p0.AbstractConnectionTester.activeCheckConnection(AbstractConnectionTester.java:67) com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.testPooledConnection(C3P0PooledConnectionPool.java:368) com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.refurbishIdleResource(C3P0PooledConnectionPool.java:310) com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask.run(BasicResourcePool.java:1999) com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) 2015-6-16 18:51:31 com.mchange.v2.async.ThreadPoolAsynchronousRunner processReplacedThreads 警告: Task com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@4bb22a9a (in deadlocked PoolThread) failed to complete in maximum time 60000ms. Trying interrupt(). 然后服务器就挂起了,所有请求都没有响应,请高手指教 是用netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'查看发现有大量的 CLOSE_WAIT 小弟没有C币请大神们见谅
JDK8构建报错了,哪位大神帮忙看下原因?
我的代码是从java.net网站下载的,名称为openjdk-8-src-b132-03_mar_2014.zip CPU:i54469 OS:Ubuntu 15.04 执行CONFIGURE之前需要 unset JAVA_TOOL_OPTIONS configure执行成功后,运行下面语句报错了,具体错误请看标黄的部分 /Desktop/openjdk$ make CONF=linux-x86_64-normal-server-fastdebug Building 'linux-x86_64-normal-server-fastdebug' (matching CONF=linux-x86_64-normal-server-fastdebug) Building OpenJDK for target 'default' in configuration 'linux-x86_64-normal-server-fastdebug' ## Starting langtools ## Finished langtools (build time 00:00:00) ## Starting hotspot make[2]: warning: -jN forced in submake: disabling jobserver mode. INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 INFO: ALT_OBJCOPY=/usr/bin/objcopy INFO: /usr/bin/objcopy cmd found so will create .debuginfo files. INFO: STRIP_POLICY=min_strip INFO: ZIP_DEBUGINFO_FILES=1 INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 INFO: ALT_OBJCOPY=/usr/bin/objcopy INFO: /usr/bin/objcopy cmd found so will create .debuginfo files. INFO: STRIP_POLICY=min_strip INFO: ZIP_DEBUGINFO_FILES=1/usr/bin/make: invalid option -- '/'/usr/bin/make: invalid option -- 'a'/usr/bin/make: invalid option -- '/'/usr/bin/make: invalid option -- 'c'Usage: make [options] [target] ...Options: -b, -m Ignored for compatibility. -B, --always-make Unconditionally make all targets. -C DIRECTORY, --directory=DIRECTORY Change to DIRECTORY before doing anything. -d Print lots of debugging information. --debug[=FLAGS] Print various types of debugging information. -e, --environment-overrides Environment variables override makefiles. --eval=STRING Evaluate STRING as a makefile statement. -f FILE, --file=FILE, --makefile=FILE Read FILE as a makefile. -h, --help Print this message and exit. -i, --ignore-errors Ignore errors from recipes. -I DIRECTORY, --include-dir=DIRECTORY Search DIRECTORY for included makefiles. -j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg. -k, --keep-going Keep going when some targets can't be made. -l [N], --load-average[=N], --max-load[=N] Don't start multiple jobs unless load is below N. -L, --check-symlink-times Use the latest mtime between symlinks and target. -n, --just-print, --dry-run, --recon Don't actually run any recipe; just print them. -o FILE, --old-file=FILE, --assume-old=FILE Consider FILE to be very old and don't remake it. -O[TYPE], --output-sync[=TYPE] Synchronize output of parallel jobs by TYPE. -p, --print-data-base Print make's internal database. -q, --question Run no recipe; exit status says if up to date. -r, --no-builtin-rules Disable the built-in implicit rules. -R, --no-builtin-variables Disable the built-in variable settings. -s, --silent, --quiet Don't echo recipes. -S, --no-keep-going, --stop Turns off -k. -t, --touch Touch targets instead of remaking them. --trace Print tracing information. -v, --version Print the version number of make and exit. -w, --print-directory Print the current directory. --no-print-directory Turn off -w, even if it was turned on implicitly. -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE Consider FILE to be infinitely new. --warn-undefined-variables Warn when an undefined variable is referenced. This program built for x86_64-pc-linux-gnu Report bugs to <bug-make@gnu.org> make[5]: *** [ad_stuff] Error 2 /home/dxt/Desktop/openjdk/hotspot/make/linux/makefiles/top.make:91: recipe for target 'ad_stuff' failed /home/dxt/Desktop/openjdk/hotspot/make/linux/Makefile:289: recipe for target 'fastdebug' failed make[4]: *** [fastdebug] Error 2 Makefile:216: recipe for target 'generic_build2' failed make[3]: *** [generic_build2] Error 2 Makefile:167: recipe for target 'fastdebug' failed make[2]: *** [fastdebug] Error 2 HotspotWrapper.gmk:44: recipe for target '/home/dxt/Desktop/openjdk/build/linux-x86_64-normal-server-fastdebug/hotspot/_hotspot.timestamp' failed make[1]: *** [/home/dxt/Desktop/openjdk/build/linux-x86_64-normal-server-fastdebug/hotspot/_hotspot.timestamp] Error 2 /home/dxt/Desktop/openjdk//make/Main.gmk:108: recipe for target 'hotspot-only' failed make: *** [hotspot-only] Error 2 dxt@dxt-All-Series:~/Desktop/openjdk$ pon dsl-provider Plugin rp-pppoe.so loaded.
数据结构顺序栈代码,老是报错,求大神帮忙看一下哪里有问题。
``` /* 实验内容: 1.利用数组建立并初始化一个顺序栈,并将此栈中各元素的值依次输出; 2.当栈不满时将一个新元素入栈,并依次输出此时栈中各元素的值。 3.当栈不空时将栈顶元素出栈,并输出此时栈中各元素的值。 实验要求: 栈的最大空间为10个元素单元,栈中已有部分元素,栈中元素值的类型为字符型。 要求新入栈的元素可以从键盘输入。 当操作不合理或不能完成时,程序应能处理并输出相应信息。 带星号的第3项实验内容为选作内容。 */ #include<stdio.h> #include<stdlib.h> //需要的头文件 typedef char StackData; typedef struct { StackData *base; StackData *top; int stacksize; } SeqStack; //说明顺序栈的结构体变量类型 void main() { Create_Stack(S); printf("顺序栈中已有的元素值为:\n"); Print_Stack(S); printf("\n请输入要入栈的新元素值:\n"); scanf("%c",&x); Push(S,x); //将新元素x入栈 printf("新元素入栈后栈中元素的值为:\n"); Print_Stack(S); } void Create_Stack(S)//初始化建立顺序栈 { S.base=(StackData*)malloc(10*sizeof(StackData)); S.top=S.base; S.stacksize=10; char a[10]={'a','b','c','d','e','f','g','h'}; int i; for(i=0;i<=9;i++) { *S.top=a[i]; S.top++; } } void Print_Stack(S)//依次输出栈中各元素的值 { StackNode *p; p=S.base; while(p<S.top) { printf("%c ",*p); p++; } } void Push(SeqStack S,StackData x) //将新元素x入栈 { if(StackFull(S)) { S.base=(StackData*)realloc(S.base,(S.stacksize+10)*sizeof(StackData)); if(!S.base) exit(overflow);//追加存储空间失败 S.top=S.base+S.stacksize; S.stacksize+=10; } *S.top=x; S.top++; } ```
哪位大神帮忙看看 老是报错
#include<iostream> using namespace std; #include<string.h> #include<stack> typedef struct node { char data; struct node *lchild,*rchild; }BinTree; typedef struct node1 { BinTree *btnode; bool isFirst; }BTNode; void creatBinTree(char *s,BinTree *&root) //创建二叉树,s为形如A(B,C(D,E))形式的字符串 { int i; bool isRight=false; stack<BinTree*> s1; //存放结点 stack<char> s2; //存放分隔符 BinTree *p,*temp; root->data=s[0]; root->lchild=NULL; root->rchild=NULL; s1.push(root); i=1; while(i<strlen(s)) { if(s[i]=='(') { s2.push(s[i]); isRight=false; } else if(s[i]==',') { isRight=true; } else if(s[i]==')') { s1.pop(); s2.pop(); } else if(isalpha(s[i])) { p=(BinTree *)malloc(sizeof(BinTree)); p->data=s[i]; p->lchild=NULL; p->rchild=NULL; temp=s1.top(); if(isRight==true) { temp->rchild=p; cout<<temp->data<<"的右孩子是"<<s[i]<<endl; } else { temp->lchild=p; cout<<temp->data<<"的左孩子是"<<s[i]<<endl; } if(s[i+1]=='(') s1.push(p); } i++; } } void display(BinTree *root) //显示树形结构 { if(root!=NULL) { cout<<root->data; if(root->lchild!=NULL) { cout<<'('; display(root->lchild); } if(root->rchild!=NULL) { cout<<','; display(root->rchild); cout<<')'; } } } void preOrder2(BinTree *root) //非递归前序遍历 { stack<BinTree*> s; BinTree *p=root; while(p!=NULL||!s.empty()) { while(p!=NULL) { cout<<p->data<<" "; s.push(p); p=p->lchild; } if(!s.empty()) { p=s.top(); s.pop(); p=p->rchild; } } } void inOrder2(BinTree *root) //非递归中序遍历 { stack<BinTree*> s; BinTree *p=root; while(p!=NULL||!s.empty()) { while(p!=NULL) { s.push(p); p=p->lchild; } if(!s.empty()) { p=s.top(); cout<<p->data<<" "; s.pop(); p=p->rchild; } } } void postOrder2(BinTree *root) //非递归后序遍历 { stack<BTNode*> s; BinTree *p=root; BTNode *temp; while(p!=NULL||!s.empty()) { while(p!=NULL) //沿左子树一直往下搜索,直至出现没有左子树的结点 { BTNode *btn=(BTNode *)malloc(sizeof(BTNode)); btn->btnode=p; btn->isFirst=true; s.push(btn); p=p->lchild; } if(!s.empty()) { temp=s.top(); s.pop(); if(temp->isFirst==true) //表示是第一次出现在栈顶 { temp->isFirst=false; s.push(temp); p=temp->btnode->rchild; } else //第二次出现在栈顶 { cout<<temp->btnode->data<<" "; p=NULL; } } } } void postOrder3(BinTree *root) //非递归后序遍历 { stack<BinTree*> s; BinTree *cur; //当前结点 BinTree *pre=NULL; //前一次访问的结点 s.push(root); while(!s.empty()) { cur=s.top(); if((cur->lchild==NULL&&cur->rchild==NULL)|| (pre!=NULL&&(pre==cur->lchild||pre==cur->rchild))) { cout<<cur->data<<" "; //如果当前结点没有孩子结点或者孩子节点都已被访问过 s.pop(); pre=cur; } else { if(cur->rchild!=NULL) s.push(cur->rchild); if(cur->lchild!=NULL) s.push(cur->lchild); } } } int main(int argc, char *argv[]) { char s[100]; while(scanf("%s",s)==1) { BinTree *root=(BinTree *)malloc(sizeof(BinTree)); creatBinTree(s,root); display(root); cout<<endl; preOrder2(root); cout<<endl; inOrder2(root); cout<<endl; postOrder2(root); cout<<endl; postOrder3(root); cout<<endl; } return 0; }
使用c3p0连接ORACLE数据库查询不到数据,SQLPLUS执行相同SQL可以查到
搭建一个webservice 使用c3p0连接oracle数据库,在执行查询语句,查询同一条数据的时候,有的时候查询不到结果,而有的时候查询到结果,服务还不报错,在使用SQLPLUS执行该语句的时候每次都能查到结果,求大神帮忙推测一下是什么问题。 使用c3p0创建一个静态的ComboPooledDataSource对象,当需要的时候从这里获取连接 Connection conn = comb.getConnection(); 数据库是按照日期建的分区表,执行查询语句的时候没有按照分区表查询,这会不会有影响。
ssh整合项目时,启动Tomcat就报错,会是什么原因呢?求大神帮忙
06:47:08,748 ERROR ErrorLogger:57 - Error parsing XML (16) : 元素类型为 "class" 的内容必须匹配 "(meta*,subselect?,cache?,synchronize*,comment?,tuplizer*,(id|composite-id),discriminator?,natural-id?,(version|timestamp)?,(property|many-to-one|one-to-one|component|dynamic-component|properties|any|map|set|list|bag|idbag|array|primitive-array)*,((join*,subclass*)|joined-subclass*|union-subclass*),loader?,sql-insert?,sql-update?,sql-delete?,filter*,fetch-profile*,resultset*,(query|sql-query)*)"。 十月 27, 2017 6:47:08 上午 org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Unable to read XML ---------------------- applicationContext.xml配置文件如下 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"> <!-- 配置连接池: --> <!-- 引入外部属性文件 --> <context:property-placeholder location="classpath:jdbc.properties"/> <!-- 配置C3P0连接池: --> <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"> <property name="driverClass" value="${jdbc.driver}"/> <property name="jdbcUrl" value="${jdbc.url}"/> <property name="user" value="${jdbc.user}"/> <property name="password" value="${jdbc.password}"/> </bean> <!-- Hibernate的相关信息 --> <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <!-- 注入连接池 --> <property name="dataSource" ref="dataSource"/> <!-- 配置Hibernate的其他的属性 --> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop> <prop key="hibernate.show_sql">true</prop> <prop key="hibernate.format_sql">true</prop> <prop key="hibernate.connection.autocommit">false</prop> <prop key="hibernate.hbm2ddl.auto">update</prop> </props> </property> <!-- 配置Hibernate的映射文件 --> <property name="mappingResources"> <list> <value>cn/itcast/shop/user/vo/User.hbm.xml</value> <value>cn/itcast/shop/category/vo/Category.hbm.xml</value> <value>cn/itcast/shop/product/vo/Product.hbm.xml</value> <value>cn/itcast/shop/categorysecond/vo/CategorySecond.hbm.xml</value> </list> </property> </bean> <!-- 事务管理: --> <!-- 事务管理器 --> <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionFactory" ref="sessionFactory"/> </bean> <!-- 开启注解事务 --> <tx:annotation-driven transaction-manager="transactionManager"/> <!-- Action的配置 ===========================--> <!-- 首页访问的Action --> <bean id="indexAction" class="cn.itcast.shop.index.action.IndexAction" scope="prototype"> <property name="categoryService" ref="categoryService"/> <property name="productService" ref="productService"/> </bean> <!-- 配置验证码Action --> <bean id="checkImgAction" class="cn.itcast.shop.user.action.CheckImgAction" scope="prototype"> </bean> <!-- 用户模块的Action --> <bean id="userAction" class="cn.itcast.shop.user.action.UserAction" scope="prototype"> <!-- 注入Service --> <property name="userService" ref="userService"/> </bean> <!-- 商品模块的Action --> <bean id="productAction" class="cn.itcast.shop.product.action.ProductAction" scope="prototype"> <property name="productService" ref="productService"/> </bean> <!-- 购物车的Action --> <bean id="cartAction" class="cn.itcast.shop.cart.action.CartAction" scope="prototype"> <property name="productService" ref="productService"/> </bean> <!-- Service的配置 ===========================--> <bean id="userService" class="cn.itcast.shop.user.service.UserService"> <property name="userDao" ref="userDao"/> </bean> <bean id="categoryService" class="cn.itcast.shop.category.service.CategoryService"> <property name="categoryDao" ref="categoryDao"/> </bean> <bean id="productService" class="cn.itcast.shop.product.service.ProductService"> <property name="productDao" ref="productDao"/> </bean> <!-- Dao的配置 ===========================--> <bean id="userDao" class="cn.itcast.shop.user.dao.UserDao"> <property name="sessionFactory" ref="sessionFactory"/> </bean> <bean id="categoryDao" class="cn.itcast.shop.category.dao.CategoryDao"> <property name="sessionFactory" ref="sessionFactory"/> </bean> <bean id="productDao" class="cn.itcast.shop.product.dao.ProductDao"> <property name="sessionFactory" ref="sessionFactory"/> </bean> </beans> --------------------------
为什么IAR总是报错说IRCON未定义
根据欧阳骏老师的蓝牙BLE开发完全手册写的程序,第一次写,也没啥基础,想要写一个让蓝牙CC2540定时发送一个数字1的代码,但是现在IAR总是报错说IRCON未定义,可是IRCON不是寄存器吗?头文件我也写进去了呀,求大神帮忙!! 这部分是main.c ``` #include"uart.h" #include"timer.h" void main(void) { unsigned int count; Uart_Init(); Timer1_Init(); while(1) { if(IRCON&(1<<1)) { count++; if(count>2) { count=0; Uart_Print("1"); } IRCON&=~(1<<1); } } } ``` timer.c ``` #include<ioCC2540.h> #include"timer.h" void Timer1_Init() { T1CTL=0x01; } ``` timer.h ``` #ifndef __TIMER_H__ #define __TIMER_H__ extern void Timer1_Init(void) #endif ``` uart.c ``` #include<ioCC2540.h> #include"uart.h" void Uart_Init(void) { CLKCONCMD&=~(1<<6); while(CLKCONSTA&(1<<6)) CLKCONCMD&=~((1<<6)|(7<<0)); PERCFG=0x00; P0SEL|=(0xf<<2); P2DIR&=~(3<<6); U0CSR|=1<<7; U0GCR=9; U0BAUD=59; UTX0IF=0; U0CSR|=1<<6; URX0IE=1; EA=1; } void Uart_Print(char *p) { unsigned int i; for (i=0;i<1;i++) { U0DBUF=*p++; while(!UTX0IF); UTX0IF=0; } U0DBUF=0x0A; while(!UTX0IF); UTX0IF=0; } ``` uart.h ``` #ifndef __UART_H__ #define __UART_H__ extern void Uart_Init(void); extern void Uart_Print(char *p); #endif ```
jfinal框架c0p3内存溢出问题
我数据库只要三个表,而且就两条测试数据,我就在Config中写了 C3p0Plugin cp = new C3p0Plugin(getProperty("jdbcUrl"), getProperty("user"), getProperty("password")); me.add(cp); ActiveRecordPlugin arp = new ActiveRecordPlugin(cp); me.add(arp); arp.addMapping("registered", registeredEntity.class); 然后运行就报错。 这是报错信息,求大神帮帮忙,弄了好久了,我加内存也没用。 Pool thread stack traces: Thread[C3P0PooledConnectionPoolManager-Helper Thread-#1,5,main] java.net.SocketInputStream.socketRead0(Native Method) java.net.SocketInputStream.socketRead(Unknown Source) java.net.SocketInputStream.read(Unknown Source) java.net.SocketInputStream.read(Unknown Source) com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:114) com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:161) com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:189) com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:3036) com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:624) com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1110) com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2395) com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2428) com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2213) com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:797) com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) java.lang.reflect.Constructor.newInstance(Unknown Source) com.mysql.jdbc.Util.handleNewInstance(Util.java:411) com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:389) com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305) com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134) com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:152) com.mchange.v2.reso 这是web.xml的 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> <display-name>CallSystem</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> <filter> <filter-name>jfinal</filter-name> <filter-class>com.jfinal.core.JFinalFilter</filter-class> <init-param> <param-name>configClass</param-name> <param-value>com.call.config.CallConfig</param-value> </init-param> </filter> <filter-mapping> <filter-name>jfinal</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> </web-app>
SVN迁移到GIT报Checksum mismatch: TapiParser/jar/tapiParser/tapiParser.jar c7a0bbbcc00e06bf963e4499faf8292c29133090 expected: c8d8b55b252bad17d6e53a6435eb44cd got: 706a1cb8c2fe7c059d37cbf427df4795
在做svn项目迁移到git的过程中,报了Checksum mismatch: TapiParser/jar/tapiParser/tapiParser.jar c7a0bbbcc00e06bf963e4499faf8292c29133090 expected: c8d8b55b252bad17d6e53a6435eb44cd got: 706a1cb8c2fe7c059d37cbf427df4795的错。 在网上找了解决方案,如下 首先查找问题文件(本例是'EMModuleTXTrade/EMModuleTXTrade/EMCoreTradeClass/EMTXHKTradeInterface/TradeWrapperQJPZConfig.json')最后一次更改信息: Kevin-Macbook-Pro:iPhone64 macbook$ git svn log EMModuleTXTrade/EMModuleTXTrade/EMCoreTradeClass/EMTXHKTradeInterface/TradeWrapperQJPZConfig.json r355 | wangwei | 2016-09-30 14:47:36 +0800 (五, 30 9 2016) | 2 lines 电话配置 r344 | wangwei | 2016-09-30 09:58:37 +0800 (五, 30 9 2016) | 2 lines 然后重置到最近一次修改的父节点 Kevin-Macbook-Pro:iPhone64 macbook$ git svn reset -r355 -p r354 = 48bd8c2b111496cca7fc4f2d24bf2ae67a26f4ea (refs/remotes/git-svn) 最后重新fetch即可 Kevin-Macbook-Pro:iPhone64 macbook$ git svn fetch 但是又报了 fatal: bad revision 'HEAD' rev-list --first-parent --pretty=medium HEAD --: command returned error: 128 实在是不知道该怎么解决了,请知道的大神帮帮忙~~谢谢
关于JAVA调用cmd命令,为什么不能返回东西
现在有一个C写的.exe文件,放在C盘的某个目录下之后,我在cmd窗口运行lrc -h 127.0.0.1 -p 6301 -m "X,hello!"就能正常运行并返回我想要的东西,但是我在网上找的java执行就不对。求大神们帮忙啊!!!!!!!!!打印台不能输出任何返回值,运行javac或者java -version也是不报错但是没打印东西。 ``` public class ExeCommand { public String exec(List list) { Runtime rn = Runtime.getRuntime(); Process p = null; try { // String[] cmd= new String[] {"lrc", "-h","127.0.0.1","-p","6301","-m","X,hello!"}; // String cmd="lrc"+" "+"-h"+" "+"127.0.0.1"+" "+"-p"+" "+"6301"+" "+"-m"+" "+"\"X,hello!\""; // System.out.println(cmd); // p = rn.exec(cmd); p=rn.exec("javac"); BufferedReader br=new BufferedReader(new InputStreamReader(p.getInputStream())); String res; while((res = br.readLine())!= null){ System.out.println(1); System.out.println(res); } ```
在上传图文消息素材时,总报错说是不合法的媒体文件id,不知道什么才是正确的id呢
``` package main; import java.util.ArrayList; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import pojo.AccessToken; import pojo.Article; import pojo.Articles; import util.WeixinUtil; public class SendMedia { private static Logger log = LoggerFactory.getLogger(MenuManager.class); public static void main(String[] args) { // 第三方用户唯一凭证 String appId = "lalala"; // 第三方用户唯一凭证密钥 String appSecret = "lalala"; // 调用接口获取access_token AccessToken at = WeixinUtil.getAccessToken(appId, appSecret); if (null != at) { // 调用接口创建菜单 int result = WeixinUtil.createArticle(getArticle(), at.getToken()); // 判断菜单创建结果 if (0 == result) log.info("上传图文消息成功!"); else log.info("上传图文消息,错误码:" + result); } } public static Articles getArticle(){ Article article = new Article(); article.setContent("---content---"); article.setContent_source_url("http://mp.weixin.qq.com/s?__biz=MzA5MzkxMjAxNQ==&mid=20647&idx=1&sn=4c17a84099d0e9498709927304179389&scene=18#rd"); article.setDigest("---digest---图文消息的描述"); ** //就是这句话有问题thumb_media_id; article.setThumb_media_id("qI6_Ze_6PtV7svjolgs-rN6stStuHIjs1_DidOHaj0Q-mwvBelOXCFZiq22sIU-p");** article.setTitle("---title---标题"); Articles articles = new Articles(); articles.setArticles(new Article[]{article}); return articles; } } ``` 抛出异常: ``` 2015-6-10 22:56:14 util.WeixinUtil createArticle 严重: 上传图文消息失败: errcode:40007 errmsg:invalid media_id 2015-6-10 22:56:14 main.SendMedia main 信息: 上传图文消息,错误码:40007 ``` 求各位大神帮忙!!!
创建WEB项目访问数据库报错?
借用别人的源代码,数据库自己按相同要求建的,调试的时候访问登录时访问数据库总是报错,求大神帮忙看一下是哪里出的问题?该怎么改?拜托。 警告: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@672870be -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception: com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Client does not support authentication protocol requested by server; consider upgrading MySQL client at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:921) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885) at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3421) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1247) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2775) at com.mysql.jdbc.Connection.<init>(Connection.java:1555) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) 3月 26, 2019 3:57:37 下午 com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask run 警告: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@c3ea91a -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception: com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Client does not support authentication protocol requested by server; consider upgrading MySQL client at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:921) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885) at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3421) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1247) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2775) at com.mysql.jdbc.Connection.<init>(Connection.java:1555) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) 3月 26, 2019 3:57:37 下午 com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask run 警告: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@67a370c4 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception: com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Client does not support authentication protocol requested by server; consider upgrading MySQL client at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:921) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885) at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3421) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1247) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2775) at com.mysql.jdbc.Connection.<init>(Connection.java:1555) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) java.sql.SQLException: Connections could not be acquired from the underlying database! at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:529) at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128) at org.apache.commons.dbutils.AbstractQueryRunner.prepareConnection(AbstractQueryRunner.java:156) at org.apache.commons.dbutils.QueryRunner.query(QueryRunner.java:285) at cn.sy.dao.UserDao.login(UserDao.java:22) at cn.sy.service.UserService.login(UserService.java:13) at cn.sy.servlet.Login.doPost(Login.java:32) at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at cn.sy.filter.Vote_Filter.doFilter(Vote_Filter.java:84) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1156) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1539) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1495) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.base/java.lang.Thread.run(Thread.java:835) Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source. at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1319) at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557) at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525) ... 32 more
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私有的数
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
此博客仅为我业余记录文章所用,发布到此,仅供网友阅读参考,如有侵权,请通知我,我会删掉。 补充 有不少读者留言说本文章没有用,因为天气预报直接打开手机就可以收到了,为何要多此一举发送到邮箱呢!!!那我在这里只能说:因为你没用,所以你没用!!! 这里主要介绍的是思路,不是天气预报!不是天气预报!!不是天气预报!!!天气预报只是用于举例。请各位不要再刚了!!! 下面是我会用到的两个场景: 每日下
面试官问我:什么是消息队列?什么场景需要他?用了会出现什么问题?
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸,打败了无数
8年经验面试官详解 Java 面试秘诀
    作者 | 胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。   Java程序员准备和投递简历的实
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观
MyBatis研习录(01)——MyBatis概述与入门
C语言自学完备手册(33篇) Android多分辨率适配框架 JavaWeb核心技术系列教程 HTML5前端开发实战系列教程 MySQL数据库实操教程(35篇图文版) 推翻自己和过往——自定义View系列教程(10篇) 走出思维困境,踏上精进之路——Android开发进阶精华录 讲给Android程序员看的前端系列教程(40集免费视频教程+源码) 版权声明 本文原创作者:谷哥的小弟 作者博客
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple/ 
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
你知道的越多,你不知道的越多 点赞再看,养成习惯 本文 GitHub https://github.com/JavaFamily 已收录,有一线大厂面试点思维导图,也整理了很多我的文档,欢迎Star和完善,大家面试可以参照考点复习,希望我们一起有点东西。 前前言 为啥今天有个前前言呢? 因为你们的丙丙啊,昨天有牌面了哟,直接被微信官方推荐,知乎推荐,也就仅仅是还行吧(心里乐开花)
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca
Python爬虫精简步骤1 获取数据
爬虫的工作分为四步: 1.获取数据。爬虫程序会根据我们提供的网址,向服务器发起请求,然后返回数据。 2.解析数据。爬虫程序会把服务器返回的数据解析成我们能读懂的格式。 3.提取数据。爬虫程序再从中提取出我们需要的数据。 4.储存数据。爬虫程序把这些有用的数据保存起来,便于你日后的使用和分析。 这一篇的内容就是:获取数据。 首先,我们将会利用一个强大的库——requests来获取数据。 在电脑上安装
Python绘图,圣诞树,花,爱心 | Turtle篇
1.画圣诞树 import turtle screen = turtle.Screen() screen.setup(800,600) circle = turtle.Turtle() circle.shape('circle') circle.color('red') circle.speed('fastest') circle.up() square = turtle.Turtle()
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东
破14亿,Python分析我国存在哪些人口危机!
2020年1月17日,国家统计局发布了2019年国民经济报告,报告中指出我国人口突破14亿。 猪哥的朋友圈被14亿人口刷屏,但是很多人并没有看到我国复杂的人口问题:老龄化、男女比例失衡、生育率下降、人口红利下降等。 今天我们就来分析一下我们国家的人口数据吧! 更多有趣分析教程,扫描下方二维码关注vx公号「裸睡的猪」 即可查看! 一、背景 1.人口突破14亿 2020年1月17日,国家统计局发布
web前端javascript+jquery知识点总结
Javascript javascript 在前端网页中占有非常重要的地位,可以用于验证表单,制作特效等功能,它是一种描述语言,也是一种基于对象(Object)和事件驱动并具有安全性的脚本语言 ,语法同java类似,是一种解释性语言,边执行边解释。 JavaScript的组成: ECMAScipt 用于描述: 语法,变量和数据类型,运算符,逻辑控制语句,关键字保留字,对象。 浏览器对象模型(Br
Python实战:抓肺炎疫情实时数据,画2019-nCoV疫情地图
文章目录1. 前言2. 数据下载3. 数据处理4. 数据可视化 1. 前言 今天,群里白垩老师问如何用python画武汉肺炎疫情地图。白垩老师是研究海洋生态与地球生物的学者,国家重点实验室成员,于不惑之年学习python,实为我等学习楷模。先前我并没有关注武汉肺炎的具体数据,也没有画过类似的数据分布图。于是就拿了两个小时,专门研究了一下,遂成此文。 2月6日追记:本文发布后,腾讯的数据源多次变更u
听说想当黑客的都玩过这个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的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!
渗透测试-灰鸽子远控木马
木马概述 灰鸽子( Huigezi),原本该软件适用于公司和家庭管理,其功能十分强大,不但能监视摄像头、键盘记录、监控桌面、文件操作等。还提供了黑客专用功能,如:伪装系统图标、随意更换启动项名称和表述、随意更换端口、运行后自删除、毫无提示安装等,并采用反弹链接这种缺陷设计,使得使用者拥有最高权限,一经破解即无法控制。最终导致被黑客恶意使用。原作者的灰鸽子被定义为是一款集多种控制方式于一体的木马程序
Python:爬取疫情每日数据
前言 有部分同学留言说为什么412,这是因为我代码里全国的cookies需要你自己打开浏览器更新好后替换,而且这个cookies大概只能持续20秒左右! 另外全国卫健委的数据格式一直在变,也有可能会导致爬取失败! 我现在已根据2月14日最新通报稿的格式修正了! 目前每天各大平台,如腾讯、今日头条都会更新疫情每日数据,他们的数据源都是一样的,主要都是通过各地的卫健委官网通报。 为什么已经有大量平台做
这个世界上人真的分三六九等,你信吗?
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。   再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。   下文是原回答,希望能对你能有所启发。   如果我说,这个世界上人真的分三六九等,
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合
雷火神山直播超两亿,Web播放器事件监听是怎么实现的?
Web播放器解决了在手机浏览器和PC浏览器上播放音视频数据的问题,让视音频内容可以不依赖用户安装App,就能进行播放以及在社交平台进行传播。在视频业务大数据平台中,播放数据的统计分析非常重要,所以Web播放器在使用过程中,需要对其内部的数据进行收集并上报至服务端,此时,就需要对发生在其内部的一些播放行为进行事件监听。 那么Web播放器事件监听是怎么实现的呢? 01 监听事件明细表 名
3万字总结,Mysql优化之精髓
本文知识点较多,篇幅较长,请耐心学习 MySQL已经成为时下关系型数据库产品的中坚力量,备受互联网大厂的青睐,出门面试想进BAT,想拿高工资,不会点MySQL优化知识,拿offer的成功率会大大下降。 为什么要优化 系统的吞吐量瓶颈往往出现在数据库的访问速度上 随着应用程序的运行,数据库的中的数据会越来越多,处理时间会相应变慢 数据是存放在磁盘上的,读写速度无法和内存相比 如何优化 设计
Python新型冠状病毒疫情数据自动爬取+统计+发送报告+数据屏幕(三)发送篇
今天介绍的项目是使用 Itchat 发送统计报告 项目功能设计: 定时爬取疫情数据存入Mysql 进行数据分析制作疫情报告 使用itchat给亲人朋友发送分析报告(本文) 基于Django做数据屏幕 使用Tableau做数据分析 来看看最终效果 目前已经完成,预计2月12日前更新 使用 itchat 发送数据统计报告 itchat 是一个基于 web微信的一个框架,但微信官方并不允
作为程序员的我,大学四年一直自学,全靠这些实用工具和学习网站!
我本人因为高中沉迷于爱情,导致学业荒废,后来高考,毫无疑问进入了一所普普通通的大学,实在惭愧...... 我又是那么好强,现在学历不行,没办法改变的事情了,所以,进入大学开始,我就下定决心,一定要让自己掌握更多的技能,尤其选择了计算机这个行业,一定要多学习技术。 在进入大学学习不久后,我就认清了一个现实:我这个大学的整体教学质量和学习风气,真的一言难尽,懂的人自然知道怎么回事? 怎么办?我该如何更好的提升
粒子群算法求解物流配送路线问题(python)
粒子群算法求解物流配送路线问题(python) 1.查找论文文献 找一篇物流配送路径优化+粒子群算法求解的论文 参考文献:基于混沌粒子群算法的物流配送路径优化 2.了解粒子群算法的原理 讲解通俗易懂,有数学实例的博文:https://blog.csdn.net/daaikuaichuan/article/details/81382794 3.确定编码方式和解码策略 3.1编码方式 物流配送路线的
教你如何编写第一个简单的爬虫
很多人知道爬虫,也很想利用爬虫去爬取自己想要的数据,那么爬虫到底怎么用呢?今天就教大家编写一个简单的爬虫。 下面以爬取笔者的个人博客网站为例获取第一篇文章的标题名称,教大家学会一个简单的爬虫。 第一步:获取页面 #!/usr/bin/python # coding: utf-8 import requests #引入包requests link = "http://www.santostang.
前端JS初级面试题二 (。•ˇ‸ˇ•。)老铁们!快来瞧瞧自己都会了么
1. 传统事件绑定和符合W3C标准的事件绑定有什么区别? 传统事件绑定 &lt;div onclick=""&gt;123&lt;/div&gt; div1.onclick = function(){}; &lt;button onmouseover=""&gt;&lt;/button&gt; 注意: 如果给同一个元素绑定了两次或多次相同类型的事件,那么后面的绑定会覆盖前面的绑定 (不支持DOM事...
相关热词 c#导入fbx c#中屏蔽键盘某个键 c#正态概率密度 c#和数据库登陆界面设计 c# 高斯消去法 c# codedom c#读取cad文件文本 c# 控制全局鼠标移动 c# temp 目录 bytes初始化 c#
立即提问