java.lang.ClassCastException: java.util.HashSet cannot be cast to java.lang.String

XWiki.org JIRA | Haiko van der Schaaf | 9 years ago
  1. 0

    When deploying xwiki-standard.war a ClassCastException follows.Hibernate cannot resolve a placeholder. part of logfile: 007-11-26 22:09:52,752 [DEBUG] (GeronimoLog.java:66) - resolving reference to class: com.xpn.xwiki.objects.BaseProperty 2007-11-26 22:09:52,758 [DEBUG] (GeronimoLog.java:66) - Cache: exception while getting doc xwiki:XWiki.XWikiPreferences for real com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document XWiki.XWikiPreferences Wrapped Exception: java.util.HashSet cannot be cast to java.lang.String at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:459) at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:158) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:981) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1015) at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:2266) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:719) at com.xpn.xwiki.XWiki.<init>(XWiki.java:611) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:238) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:397) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) ...... Wrapped Exception: java.lang.ClassCastException: java.util.HashSet cannot be cast to java.lang.String at org.hibernate.util.PropertiesHelper.resolvePlaceHolders(PropertiesHelper.java:88) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1173) at com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:142) at com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:464) at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:352) at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:158) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:981) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1015) at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:2266) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:719) at com.xpn.xwiki.XWiki.<init>(XWiki.java:611) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:238) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:397) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) 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)

    XWiki.org JIRA | 9 years ago | Haiko van der Schaaf
    java.lang.ClassCastException: java.util.HashSet cannot be cast to java.lang.String
  2. 0

    java.lang.ClassCastException: org.springframework.jdbc.datasource.DriverManagerDataSource cannot be cast to java.lang.String

    Stack Overflow | 12 months ago | praveen yeragani
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/mvc-dispatcher.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.springframework.jdbc.datasource.DriverManagerDataSource cannot be cast to java.lang.String
  3. 0

    [cas-user] CAS 5 RC4: MFA-Duo /samlValidate error

    Google Groups | 2 months ago | Baron Fujimoto
    java.lang.ClassCastException: java.util.HashSet cannot be cast to java.lang.String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Last.fm java.lang.ClassCastException - reading in User objects from file

    Stack Overflow | 3 years ago | user2886192
    java.lang.ClassCastException: java.lang.String cannot be cast to java.util.HashSet

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.util.HashSet cannot be cast to java.lang.String

      at org.hibernate.util.PropertiesHelper.resolvePlaceHolders()
    2. Hibernate
      PropertiesHelper.resolvePlaceHolders
      1. org.hibernate.util.PropertiesHelper.resolvePlaceHolders(PropertiesHelper.java:88)
      1 frame
    3. Hibernate
      Configuration.buildSessionFactory
      1. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1173)
      1 frame
    4. com.xpn.xwiki
      XWikiAction.execute
      1. com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:142)
      2. com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:464)
      3. com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:352)
      4. com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:158)
      5. com.xpn.xwiki.XWiki.getDocument(XWiki.java:981)
      6. com.xpn.xwiki.XWiki.getDocument(XWiki.java:1015)
      7. com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:2266)
      8. com.xpn.xwiki.XWiki.initXWiki(XWiki.java:719)
      9. com.xpn.xwiki.XWiki.<init>(XWiki.java:611)
      10. com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:238)
      11. com.xpn.xwiki.XWiki.getXWiki(XWiki.java:397)
      12. com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94)
      12 frames
    5. struts
      ActionServlet.doGet
      1. org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
      2. org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
      3. org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      4. org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      4 frames