草庐IT

throw_exception

全部标签

记录安装cnpm报错:internal/modules/cjs/loader.js:1032 throw err;

安装cnpm时一直安装无报错但是查看版本时提示错误:无法安装可以这样解决:解决安装卡顿或无法安装:#注册模块镜像npmsetregistryhttps://registry.npm.taobao.org//node-gyp编译依赖的node源码镜像npmsetdisturlhttps://npm.taobao.org/dist//清空缓存npmcacheclean--force//安装cnpmnpminstall-gcnpm--registry=https://registry.npm.taobao.org查看版本报错安装不成功解决:是npm和cnpm版本不匹配导致的一:查看当前npm版本np

exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException

原因:SpringBoot异常org.springframework.beans.factory.NoUniqueBeanDefinitionException:没有可用的合格Bean类型:预期匹配单个Bean,但是匹配到了多个,当该bean被自动装配时与SpringBoot应用程序上下文中的两个或多个加载的Bean匹配时,就会发现该异常。SpringBoot允许从一个接口或抽象类创建两个或多个bean。如果该bean是自动注入的,当有两个或多个bean是自动注入的时候,该bean无法自动连接,就会产生异常org.springframework.beans.factory.NoUniqueBe

Python 报错处理 paramiko.ssh_exception.SSHException: Error reading SSH protocol banner

使用多进程启动多个ssh报错: Exception(client):ErrorreadingSSHprotocolbanner[Errno104]ConnectionresetbypeerDuringhandlingoftheaboveexception,anotherexceptionoccurred:Traceback(mostrecentcalllast):File"/root/anaconda3/envs/Python38/lib/python3.8/site-packages/paramiko/transport.py",line2091,inrunself._check_banne

nested exception is org.apache.ibatis.exceptions.PersistenceException: \n### Error querying database

将项目部署到博客上出现错误,连接数据库失败,注意在本地运行和在服务器上数据库密码nestedexceptionisorg.apache.ibatis.exceptions.PersistenceException:\n###Errorqueryingdatabase.Cause:org.springframework.jdbc.CannotGetJdbcConnectionException:FailedtoobtainJDBCConnection;nestedexceptionisjava.sql.SQLException:Accessdeniedforuser‘root’@‘localho

ios - libc++abi.dylib 核心数据崩溃 : terminating with uncaught exception of type NSException

当我尝试将新对象保存到核心数据中时,出现此错误并在尝试保存上下文时崩溃:libc++abi.dylib:terminatingwithuncaughtexceptionoftypeNSException我已经使用相同的方法将新创建的托管对象保存在许多其他ViewController中,并且除此之外都工作正常。当我更改此行时问题开始了:varmanagedObjectContext=NSManagedObjectContext(concurrencyType:.privateQueueConcurrencyType)来自AppDelegate中的.mainQueueConcurrency

mysql连接错误:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

目录一、遇到问题二、找到报错具体原因 三、解决办法 一、遇到问题在电脑上面有多个mysql版本的时候。可能会启用之前的mysql版本的执行路径,所以导致出现了这个mysql连接错误。com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:Communicationslinkfailu

selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’ executable needs to be in PAT

python代码fromseleniumimportwebdriver#实例化浏览器对象driver=webdriver.Chrome()结果报错:selenium.common.exceptions.WebDriverException:Message:‘chromedriver’executableneedstobeinPATH.Pleasesee。。。解决办法:1.查看本机Chrome浏览器版本chrome://version/2.去下载chromedriver下载地址1(我登不上去):chromedriver.storage.googleapis.com/index.html下载地址2

ios - UITableViewDataSource 导致 libc++abi.dylib : terminating with uncaught exception of type NSException

我有一个包含UITableView的ViewController:importUIKitimportGoogleMapsclassRestaurantMapViewController:UIViewController,UITableViewDataSource,UITableViewDelegate{@IBOutletweakvarmapView:GMSMapView!@IBOutletweakvartableView:UITableView!varcameraPosition:GMSCameraPosition!varzoomLevel:Double=15overridefuncv

ios - 错误 : Invalid conversion from throwing function of type '(_) throws -> ()' to non-throwing function type '(DataSnapshot) -> Void'

这是我的代码:funcloadData(){ref.child(currentUserID!).observe(.childAdded){(snapshot)inletsnapshotValue=try?snapshot.valueas?[String:AnyObject]ifletitem=tryTableViewModel(id:snapshot.key,likeLabel:self.likeLabel,playLabelString:self.playLabelString,json:snapshotValue){self.items.append(item)}self.tabl

Non-fatal Exception: java.lang.UnsatisfiedLinkError: dlopen failed: library “libmmkv.so“ not found

项目场景:项目中使用的mmkv版本1.0.23太老了,并且1.0.23还引入了libc++_shared.so约249K左右+libmmkv.so约40K。翻查github发现最新版本已经到了1.2.14,并且aar包体也优化了,所以有了升级需求。问题描述在项目中把mmkv1.0.23版本升级到了1.2.14,解决完一堆编译错误后(kotlin版本不一致,要求gradle升级等),以为万事大吉,没想到启动时报Non-fatalException:java.lang.UnsatisfiedLinkError:dlopenfailed:library"libmmkv.so"notfound网上搜索