当前位置: 代码迷 >> Java Web开发 >> 这又是如何回事,头晕啊,Caused by: java.lang.ClassCastException: java.lang.String
  详细解决方案

这又是如何回事,头晕啊,Caused by: java.lang.ClassCastException: java.lang.String

热度:146   发布时间:2016-04-17 16:57:35.0
这又是怎么回事,头晕啊,Caused by: java.lang.ClassCastException: java.lang.String
java.lang.reflect.InvocationTargetException
at   sun.reflect.NativeMethodAccessorImpl.invoke0(Native   Method)
at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at   java.lang.reflect.Method.invoke(Method.java:585)
at   com.jabberchina.core.support.BeanAction.execute(BeanAction.java:29)
at   org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at   org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at   javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at   com.jabberchina.core.util.SystemLoginFilter.doFilter(SystemLoginFilter.java:29)
at   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at   com.jabberchina.core.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:66)
at   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at   org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at   java.lang.Thread.run(Thread.java:595)
Caused   by:   java.lang.ClassCastException:   java.lang.String
at   org.hibernate.type.TimestampType.toString(TimestampType.java:55)
at   org.hibernate.type.NullableType.nullSafeSet(NullableType.java:87)
at   org.hibernate.type.NullableType.nullSafeSet(NullableType.java:65)
at   org.hibernate.loader.Loader.bindPositionalParameters(Loader.java:1513)
at   org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1575)
at   org.hibernate.loader.Loader.doQuery(Loader.java:661)
at   org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
at   org.hibernate.loader.Loader.doList(Loader.java:2144)
at   org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
at   org.hibernate.loader.Loader.list(Loader.java:2023)
at   org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:393)
  相关解决方案