java.lang.IllegalArgumentException: Failed to find configured root that contains .....
參考文章:FileProvider 的使用
今天寫到相機拍照,報出如下異常:
java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/Android/data/com.gs.common/files/Pictures/JPEG_20181030_174413_2064760774.jpg
經過查詢,是FileProvider的問題。
如下三張圖箭頭標註的地方需要注意一致,就沒有問題。
另外,自己總結一下:遇到此類報異常的問題:
一、去網上搜索;二、debug;
今天就是步驟弄反了,結果耽誤不少時間。
相關推薦
java.lang.IllegalArgumentException: Failed to find configured root that contains .....
參考文章:FileProvider 的使用 今天寫到相機拍照,報出如下異常: java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/Androi
Android爬坑之旅之FileProvider(Failed to find configured root that contains)
最近在測試FileProvider相關功能的時候,在從自定義相簿選擇圖片通過FileProvider來獲取content uri的時候程式突然崩潰了,報出了 Failed to find configured root that contains xxxx
Android8.0 適配ContentResolver解決java.lang.SecurityException: Failed to find provider null for user 0;
對於沒有適配Android8.0+的裝置在使用ContenResolver時會出現java.lang.SecurityException: Failed to find provider null for user 0; expected to find a valid Co
java.lang.IllegalStateException: Failed to load ApplicationContext
error for IT location method 錯誤 int pac 博客 java Spring AOP編寫MAVEN項目,編譯時出現錯誤提示如下: java.lang.IllegalStateException: Failed to load Applicat
java.lang.IllegalStateException: Failed to load ApplicationContext(2)
def tin TE lac ava .com nco tex 連接 錯誤提示:java.lang.IllegalStateException: Failed to load ApplicationContext Caused by: org.springframework
IDEA 啟動報錯:java.lang.IllegalStateException: failed to create a child event loop 問題解決
遇到的問題 昨天電腦自動更新了,今天死活啟動不了專案,看到idea的提示是: idea日誌如下 根據提示說 檢視idea的啟動日誌: 2018-11-20 17:35:42,010 [ 46737] INFO - plication.impl.Applicat
java.lang.IllegalStateException: Failed to load property source from location
在學習springcloud的config客戶端通過config服務端讀取github檔案時遇到了如下問題 2018-11-12 16:45:34.567 ERROR 1312 --- [on(2)-127.0.0.1] o.s.boot.SpringApplication
java.lang.IllegalArgumentException: Unable to resolve attribute [its] against path at org.hibernate.
java.lang.IllegalArgumentException: Unable to resolve attribute [its] against path at org.hibernate.ejb.criteria.path.AbstractPathImpl.unknownAttribut
Springboot jar 部署java.lang.IllegalStateException: Failed to get nested archive for entry BOOT-INF/li
Exception in thread "main" java.lang.IllegalStateException: Failed to get nested archive for entry BOOT-INF/lib/byte-buddy-1.7.11.jar at
Java 條碼生成庫 Barcode4J Maven 依賴缺失錯誤 java.lang.IllegalStateException: Failed to introspect Class
前段時間專案中需要生成商品條碼,使用 Barcode4J 庫實現的,直接使用了內部的 BarcodeServlet ,僅在 Spring MVC 的 Controller 裡簡單的封裝了下提供個訪問路徑,使用上沒有遇到任何問題。程式碼如下: import jav
Allocate exception for servlet springmvc java.lang.IllegalStateException: Failed to check the status
品優購異常資訊 嚴重: Allocate exception for servlet springmvc java.lang.IllegalStateException: Failed to check the status of the service com.pinyougou.pa
亂七八糟問題-java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @
java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(class
java.lang.IllegalArgumentException: Can not find a java.io.InputStream with the name [inputStream] i
Struts2做檔案的下載的時候,報瞭如下的錯誤 大家如果也碰到此類問題,直接列印 InputStream in=ServletActionContext.getServletContext().getResourceAsStream(realPath); System.out.pri
【application.yml配置問題】java.lang.IllegalStateException: Failed to load ApplicationContext
我在springboot中遇到的錯如下: java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAw
maven單元測試報java lang IllegalStateException Failed to load Ap
從網上查了兩個原因: 1.報這個異常java.lang.IllegalStateExcepti
java.lang.IllegalStateException: Failed to load ApplicationContext 解決辦法思考
一般情況出現這個情況 為xml配置錯誤 (分析在文章末尾)目前我的錯誤提示如下:注意看caused by 的具體內容java.lang.IllegalStateException: Failed to load ApplicationContextat org.spring
SSH 框架集 java.lang.IllegalArgumentException: node to traverse cannot be null!
HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling
java.lang.OutOfMemoryError: Failed to allocate a 3110419 byte allocation with 741152 free bytes and
在進行SurfaceView的開發時,出現了java.lang.OutOfMemoryError錯誤; 由於專案是同時顯示四路遠端傳輸過來的視訊 所以採用的方法是使用:android:hardware
java.lang.IllegalStateException: Failed to load property source from location 'classpath:/application-dev.yml'
如果你的專案沒有配置錯誤,配置檔名稱也正常,還出現這個問題,那一定是你的yml檔案編碼的問題 先附上一張專案架構圖 當我啟動伺服器尋找配置檔案的時候,伺服器提示這樣的錯誤資訊 java.lang.IllegalStateException: Failed to load property so
錯誤:java.lang.IllegalArgumentException: attempt to create create event with null entity
java.lang.IllegalArgumentException: attempt to create create event with null entity org.hibernate.event.spi.PersistEvent.<init>(PersistEvent.java:4