草庐IT

illegalArgumentException

全部标签

android - IllegalArgumentException : Parameter specified as non-null is null

我收到以下运行时错误:checkParameterIsNotNull,parameteroneClickTokensatcom.info.app.fragments.Fragment_Payment_Profile$fetchMerchantHashes$1.onPostExecute(Fragment_Payment_Profile.kt:0)atcom.info.app.fragments.Fragment_Payment_Profile$fetchMerchantHashes$1.onPostExecute(Fragment_Payment_Profile.kt:1543)这是我

android - Google 应用内计费,升级到 Android L Dev Preview 后出现 IllegalArgumentException : Service Intent must be explicit,

在我升级到AndroidLDevPreview之前,我的应用内结算代码运行良好。现在,当我的应用程序启动时出现此错误。有谁知道导致此问题的L发生了什么变化,或者我应该如何更改我的代码来解决这个问题?android{compileSdkVersion'android-L'buildToolsVersion'20'defaultConfig{minSdkVersion13targetSdkVersion'L'......compile'com.google.android.gms:play-services:5.+'compile'com.android.support:support-v

android - IllegalArgumentException : the bind value at index 1 is null

有人知道这是什么意思吗?12-3120:55:45.861:ERROR/AndroidRuntime(12478):Causedby:java.lang.IllegalArgumentException:thebindvalueatindex1isnull12-3120:55:45.861:ERROR/AndroidRuntime(12478):atandroid.database.sqlite.SQLiteProgram.bindString(SQLiteProgram.java:234)12-3120:55:45.861:ERROR/AndroidRuntime(12478):at

android - java.lang.IllegalArgumentException : View not attached to window manager

我有一个启动AsyncTask并在操作期间显示进度对话框的Activity。声明该Activity不会通过旋转或键盘滑动重新创建。任务完成后,我会关闭对话框,但在某些手机(框架:1.5、1.6)上会抛出此类错误:java.lang.IllegalArgumentException:Viewnotattachedtowindowmanageratandroid.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:356)atandroid.view.WindowManagerImpl.removeView(Window

android - FileProvider - IllegalArgumentException : Failed to find configured root

我正在尝试用相机拍照,但出现以下错误:FATALEXCEPTION:mainProcess:com.example.marek.myapplication,PID:6747java.lang.IllegalArgumentException:Failedtofindconfiguredrootthatcontains/storage/emulated/0/Android/data/com.example.marek.myapplication/files/Pictures/JPEG_20170228_175633_470124220.jpgatandroid.support.v4.co

android - 升级到 AppCompat v22.1.0,现在得到 IllegalArgumentException : AppCompat does not support the current theme features

我刚刚升级了我的应用程序以使用新发布的v22.1.0AppCompat,现在打开我的应用程序时出现以下异常。Causedby:java.lang.IllegalArgumentException:AppCompatdoesnotsupportthecurrentthemefeaturesatandroid.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:360)atandroid.support.v7.app.AppCompatDelegateImplV7.setCon

java - spring data rest mongodb java.lang.IllegalArgumentException : PersistentEntity must not be null

我正在尝试通过SDR访问mongodb集合。目前使用以下版本4.1.9.RELEASE2.4.4.RELEASE1.8.4.RELEASE我的仓库看起来像@RepositoryRestResource@PreAuthorize("hasAuthority('ROLE_USER')")publicinterfaceLinksRepositoryextendsMongoRepository{PagefindAllByUsefulURLRegex(@Param("regex")Stringregex,Pageablep);我的模型定义如下@Document(collection="links

java - 等价于 C++ 中 Java 的 IllegalArgumentException

在Java中,如果方法的输入参数无效,我们可以抛出IllegalArgumentException(类型为RuntimeException)。在C++中,没有已检查和未检查异常的概念。标准C++中是否有类似的异常可用于指示运行时异常?还是有没有标准中没有的通用风格,但每个人都在实践中遵循这种情况?或者,我应该创建自己的自定义异常并抛出它吗? 最佳答案 与Java不同,C++没有“标准框架”,而只有一个小型(可选)标准库。而且,对于是否使用异常,C++程序员下也有不同的看法到底。因此你会发现不同的人有不同的建议:有些人喜欢使用标准库中

java - Android 构建失败 - java.lang.IllegalArgumentException : already added: Lcom/google/api/client/escape/CharEscapers;

我只是为我的android应用程序准备了小更新,但是当我尝试构建我的应用程序(在Debug模式下)时,我遇到了这个奇怪的错误。如果更聪明的人可以查看此内容以找出可能出现的问题,那就太好了。我正在清理/重建/修复项目属性,但没有结果。我不知道发生了什么:(。也许这里的任何人都会发生类似的事情?如果这可以帮助我使用以下库:adMob(4.1.1)、openfeint和libgdx。这里是构建日志:UNEXPECTEDTOP-LEVELEXCEPTION:java.lang.IllegalArgumentException:alreadyadded:Lcom/google/api/clien

java - 为什么 Casbah/Java MongoDB 驱动程序会出现 java.lang.IllegalArgumentException?

我在使用casbah/java驱动程序时遇到了一个奇怪的问题。当驱动程序尝试从mongo创建响应时,我不断遇到以下异常:Oct16,201210:45:07AMcom.mongodb.DBTCPConnector$MyPorterrorSEVERE:MyPort.errorcalledjava.lang.IllegalArgumentException:responsetoolong:1634610484atcom.mongodb.Response.(Response.java:40)atcom.mongodb.DBPort.go(DBPort.java:110)atcom.mongo