expected type: java.lang.String, actual value: $Proxy26
這個錯誤是在什麼情況下報出的:
sqlsever+ssh的 時候
使用的是非持久化的查詢,因為是多伺服器查詢,
query = getSession().createSQLQuery(sql).setResultTransformer(Transformers.aliasToBean(clazz));
其中使用 了這句轉換:
那麼為什麼報String的錯誤列,時因為hibernate查詢出來之後我對應資料庫(sqlserver)的欄位是text,hibernate使用的是blob
所以不能直接轉換string;
白白浪費10分鐘除錯.
相關推薦
expected type: java.lang.String, actual value: $Proxy26
這個錯誤是在什麼情況下報出的: sqlsever+ssh的 時候 使用的是非持久化的查詢,因為是多伺服器查詢, query = getSession().createSQLQuery(sql).setResultTransformer(Transformers.aliasT
Property 'id' not found on type java.lang.String
idt not height string .com com found body lan 改為 忘寫了$符,取不出來,因此報錯! Property 'id' not found on type java.lang.String
Property 'gid' not found on type java.lang.String問題解決方法
問題:在用ssm框架中,多表查詢時(單表查詢), 顯示頁面出現了此問題:Property ‘gid’ not found on type java.lang.String 原因分析:此問題表明純屬是jsp頁面的問題,主要出現在頁面遍歷後臺資料的地方 解決方法:例如這個: 首先檢查f
spring Failed to convert property value of type 'java.lang.String' to required type 'int' for proper
這種情況,看起來好像是 spring 的org.springframework.beans.factory.config.PropertyPlaceholderConfigurer類在讀取資訊的時候出問題了,把 String 型別的值當成了 int 型別的了實際上這並不是這麼
Android 報錯 Value br of type java.lang.String cannot be converted to JSONObject
博主是使用Android + php + apache + tomcat 做資料處理時出現的這個問題; 報錯內容:Value <br of type java.lang.String cannot be converted to JSONObject (因為CSDN文章標題不能有非法字
JSTL表示式錯誤PropertyNotFoundException: Property 'title' not found on type java.lang.String
低階錯誤!!! 異常: PropertyNotFoundException: Property 'title' not found on type java.lang.String 解釋:屬性找不到異常:屬性title找不到 查詢資料庫正常,出現錯誤原因是jstl表示式書
對與幾種javax.el.PropertyNotFoundException: Property 'XXX' not found on type java.lang.String問題原因
我最近在做一個專案時,點選連結tomcat報錯 “javax.el.PropertyNotFoundException: Property 'XXX' not found on type java.lang.String” 這樣的錯誤,然後我百度上去搜了一下,發現原因五花八
Failed to convert from type java.lang.String to type java.util.Date for value………解決辦法
一、問題描述 在用SpringMVC整合mybatis的時候,在controller中呼叫service進行儲存資料的操作,遇到了Failed to convert from type java.lang.String to type java.util.Date
SpringMVC Failed to convert from type java.lang.String to type java.util.Date for value '2014-12-02'
樓主最近在用Spring-SpringMVC-Mybatis做一個網站由於是小白經常遇到各種各樣的稀奇古怪的問題,本著程式設計師的天職就是發現問題然後解決問題,在解決BUG的同時自身的能力也或多或少的得到提高,在做專案的遇到問題的時候也經常式檢視CSDN
javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String 錯誤解決辦法
javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String javax.el.BeanELResolver$BeanProperties.get(Bean
Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource': no matching e
無法將你的datasource裡配置的字串轉換成javax.sql.DataSource物件,導致SessionFactory無法完成,datasource配置肯定有誤,檢查[/WEB-INF/applicationContext.xml]檔案中的datasource相關的配
使用jstl標籤遍歷資料時,報javax.el.PropertyNotFoundException: Property [id] not found on type [java.lang.String
後臺報錯資訊: javax.el.PropertyNotFoundException: Property [id] not found on type [java.lang.String] at javax.el.BeanELResolver$Bean
BUG(3) : Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer';
Failed to bind request element: org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of
Property 'date' not found on type java.lang.String] with root cause解決方案
今晚的開發極其不順利,一個小小的bebug都找了一個多小時. 如果你也報這個錯,先看下el表達示是不是一個物件,如果是字串,這樣才會後面用EL取值的時候not found on type java.lang.String了 如果是一個物件那麼請再看下面的 二月 26, 2
Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'xxx'
今天在完成專案的時候遇到了下面的異常資訊: 04-Aug-2014 15:49:27.894 SEVERE [http-apr-8080-exec-5] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for se
異常:Property 'name' not found on type java.lang.String,attribute items does not accept any
最近在練習jstl與el綜合實訓時遇到兩個問題,雖然沒有什麼技術性但是很有必要給大家提個醒,在開發過程可能會因為某個非技術性問題讓我們百思不得其解,其實問題很簡單,看你細不細心了,否則死都不知怎麼死得啊。 第一問題百度了很久才發現原來指令標籤寫錯了 org.apache.
No converter found capable of converting from type [java.lang.String] to type
2018-08-13 14:01:51.885 ERROR 10244 --- [nio-8082-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] :
Realm 處理List<String> 問題 Type parameter 'java.lang.String' is not within its bound; should implement 'io.realm.RealmModel
class etc tap obj sap mob ava get not public class InitAppBean extends RealmObject { private String sapling; private String logi
org.hibernate.MappingException: Could not determine type for: java.lang.string
唉,糾結很久,看到一個帖子,很管用呀,問題解決了。貼上帖子原文: 我的對映檔案中是這樣寫的: <property name= "operatorName " type= "java.lang.Strin
javax.el.ELException: Cannot convert 1 of type class java.lang.String to int
錯誤資訊: 十月 17, 2015 10:18:00 下午 org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw excep