草庐IT

showToast_fail

全部标签

android sqlite : Failed to change locale for db to 'zh_CN'

也有类似的问题,android.database.sqlite.SQLiteException:FailedtochangelocalefordbCausedby:android.database.sqlite.SQLiteDatabaseCorruptException:databasediskimageismalformed(code11)Failedtochangelocalefordb'/data/data/my.easymedi.controller/databases/EasyMediInfo.db'to'en_US'但是我的数据库是android通过SQLiteOpenH

【Failed to start nginx - high performance web server.】

启动nginx如果报这个错误,一般需要去nginx安装的日志目录查看错误日志文件error.log,我们就可以进一步排查出nginx出现的错误情况cat/nginx/logs/error.log发现报错:>bind()to0.0.0.0:8000failed(98:Addressalreadyinuse)stillcouldnotbind()1、找到占用该端口的进程lsof-i:80002、使用kill命令干掉它这个进程kill-9pid3、重启Nginx即可systemctlrestartnginx

windows运行elasticsearch报错Native memory allocation (mmap) failed to map 4294967296 bytes for G1

今天下载了一个elasticsearch8.4.3windows版本的es,配置好相应的配置后,启动bat文件,输出一行信息后,窗口就闪退了。于是通过cmd窗口运行,发现了报错信息如下Exceptioninthread"main"java.lang.RuntimeException:startingjavafailedwith[1]output:##ThereisinsufficientmemoryfortheJavaRuntimeEnvironmenttocontinue.#Nativememoryallocation(mmap)failedtomap4294967296bytesforG1

java - 非法状态异常 : get field slot from row 0 col -1 failed

这是我的LogCat:01-1522:13:08.277:ERROR/AndroidRuntime(28747):java.lang.IllegalStateException:getfieldslotfromrow0col-1failed01-1522:13:08.277:ERROR/AndroidRuntime(28747):atandroid.database.CursorWindow.getLong_native(NativeMethod)01-1522:13:08.277:ERROR/AndroidRuntime(28747):atandroid.database.Curso

java - 非法状态异常 : get field slot from row 0 col -1 failed

这是我的LogCat:01-1522:13:08.277:ERROR/AndroidRuntime(28747):java.lang.IllegalStateException:getfieldslotfromrow0col-1failed01-1522:13:08.277:ERROR/AndroidRuntime(28747):atandroid.database.CursorWindow.getLong_native(NativeMethod)01-1522:13:08.277:ERROR/AndroidRuntime(28747):atandroid.database.Curso

解决 Web server failed to start. Port xxx was already in use.端口占用问题

一.背景。今天启动多个项目,没有注意项目的端口,结果启动的时候控制台打印端口占用了,特此来记录一下。二.解决方式。1、换一个未被占用的端口,再启动。2、查看被占用端口的进程。netstat-aon|findstr端口号3、根据PID找到占用此端口的进程。tasklist|findstr端口号4、结束此进程。 taskkill/f/t/im进程名5、完成。三、总结。每天记录一点,日积月累就是笔记。 

【报错】WebSocket connection to ‘ws://xxx.xxx.x.xxxx:8080/ws‘failed:

当我们运行Vue项目时,你可能会遇到一下问题简单来说,WebSocket为web应用程序客户端和服务端之间(客户端服务端)提供了一种全双工通信机制,报错是因为发送报文的过程出现问题。解决方案如下:在Vue项目的config.vue的文件中添加一下配置信息devServer:{host:'0.0.0.0',//https:true,port:6103,client:{webSocketURL:'ws://0.0.0.0:6103/ws',},headers:{'Access-Control-Allow-Origin':'*',}},这样问题也就能解决了,也不会出现报错的问题了

vue项目报错:Module build failed (from ./node_modules/vue-loader/index.js)

运行项目报错Modulebuildfailed(from./node_modules/vue-loader/index.js):TypeError:Cannotreadpropertiesofundefined(reading‘vue’)Modulebuildfailed(from./node_modules/vue-loader/index.js):TypeError:Cannotreadpropertiesofundefined(reading'vue')atObject.module.exports(/Users/user/Desktop/allprj/proj/nodejs/xioau

安卓一加二 : Failed to change locale for db

我在我的一个Android项目中使用Sqlite数据库。它在除OnePlusTwo设备之外的所有设备上都可以正常工作。我在尝试打开数据库时出现异常。这是崩溃日志。12-2319:14:35.235:E/SQLiteLog(3133):(11)databasecorruptionatline53216of[9491ba7d73]12-2319:14:35.235:E/SQLiteLog(3133):(11)statementabortsat7:[SELECTlocaleFROMandroid_metadataUNIONSELECTNULLORDERBYlocaleDESCLIMIT1]1

安卓一加二 : Failed to change locale for db

我在我的一个Android项目中使用Sqlite数据库。它在除OnePlusTwo设备之外的所有设备上都可以正常工作。我在尝试打开数据库时出现异常。这是崩溃日志。12-2319:14:35.235:E/SQLiteLog(3133):(11)databasecorruptionatline53216of[9491ba7d73]12-2319:14:35.235:E/SQLiteLog(3133):(11)statementabortsat7:[SELECTlocaleFROMandroid_metadataUNIONSELECTNULLORDERBYlocaleDESCLIMIT1]1