1. 在使用load data infile命令时出现下面的错误: ERROR 1366 (HY000): Incorrect decimal value: '' for column 'PRIC' at row 249 网上查了下有很多类似问题,对其他类型来说或许好办些,对于数值类型不太好办。网上说这是因为mysql5.0版本下sql-mod使用STRICT_TRANS_TABLES的情况下,空值应写出NULL。 解决办法有两种 1. ...

    阅读全文
  2. 页面出现这个错误:“No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.” 这个原先是源于浏览器的跨域请求安全限制,解决办法可以通过设置请求Data类型jsonp或script来解决。 如: ...

    阅读全文
  3. 这样URLConnection connection timeout一个问题: 代码: URL url= new URL(urlString); URLConnection conn=url.openConnection(); 异常问题: java.net.ConnectException: Connection timed out: connect at java.net.DualStackPlainSocketImpl.connect0(Native ...

    阅读全文
  4. 由这个错误来解释java class file内部结构。 java.lang.UnsupportedClassVersionError: HelloWorld : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) 这 ...

    阅读全文
  5. 错误提示: IMP-00000: Message 0 not found; No message file for product=RDBMS, facility=IMP 这是写的一个import操作的bat文件,如下 set ORACLE_HOME=C:\app\user1\product\12.1.0\dbhome_1\BIN %ORACLE_HOME%\imp user/pwd@SID fromuser=xxx touser=yyy file=zzz.dmp ...

    阅读全文
  6. 学习Android的hello Android时,遇到一个主题相关的错误如下: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.soosmart.hellomobile/com.soosmart.hellomobile.AboutActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat the ...

    阅读全文
  7. 当把apache2.2的配置文件修改后在apache2.4中运行遇到了这个问题:[access_compat:error] [pid 6095] [client ::1:53090] AH01797: client denied by server configuration。 这个问题与2.2及2.4的版本在访问认证和授权方面又很大的修改。具体可以查看官方wiki: https://wiki.apache.org/httpd/ClientDeniedByServerConfig ...

    阅读全文
  8. 使用POI最新版本时遇到一些版本重构带来的小问题,纪录下: 问题一: 在使用poi-3.15-beta2版本解析excel时, 发现并有网友所说的WorkbookFactory类. 原因 从poi-3.7.jar开始, WorkbookFactory类已经放进poi-ooxml-XXX.jar中了. 解决方法 同时引入这两个jar包: poi-3.15-beta2.jar, poi-ooxml-3.15-beta2.jar 问题二:异常 Exc ...

    阅读全文
  9. 一个错误命令出现的两个问题: 错误命令: grep -rl "5pxpad" |xargs sed -i "" "/5pxpad/pad5px/g" “grep warning: recursive directory loop” “extra characters at the end of p command” 第一个错误很简单,是粗心大意少写了fol ...

    阅读全文
  10. update TEST_NOIDX set CREATETIME=now() where ID in ( select a.ID from TEST_NOIDX a where a.VNAME='Aa'); ERROR 1093 (HY000): You can't specify target table 'TEST_NOIDX' for update in FROM clause update TEST_NOI ...

    阅读全文
123