Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-216

XWikiAttachment randomly and suddenly altered when attachment contain non ascii characters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 0.9.840, 0.9.1252, 1.0 B1, 1.0 B2, 1.0 B3, 1.0 B4, 1.0 B5, 1.0 B6
    • Fix Version/s: None
    • Component/s: Localization
    • Labels:
      None
    • Environment:
      XWiki : Version 0.9.840 running on top of linux redhat
      mysql : Ver 14.7 Distrib 4.1.15, for pc-linux-gnu (i686) using readline 4.3
    • keywords:
      XWikiNotificationManager XWikiAttachment altered
    • Similar issues:

      Description

      I have an issue that occurs within the life of a xwiki page, I unfortunately don't know the scenario that lead to this xwiki exception showing up on the page

      Wrapped Exception:

      org.hibernate.HibernateException: identifier of an instance of com.xpn.xwiki.doc.XWikiAttachment altered from -423758546 to -1462378896
      at org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:51)
      at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:82)
      at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:190)
      at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:70)
      at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:39)
      at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:707)
      at org.hibernate.impl.SessionImpl.prepareQueries(SessionImpl.java:891)
      at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:881)
      at org.hibernate.impl.SessionImpl.list(SessionImpl.java:830)
      at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)

      All I know is that I'm defintely not the only one:

      http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial_s&hl=en&q=Wrapped+Exception%3A+identifier+of+an+instance+of+com.xpn.xwiki.doc.XWikiAttachment+altered&btnG=Google+Search

      But what seems weird is that I didn't find it in your jira bugtracker.

      the exception logged in catalina.out is

      java.lang.NullPointerException
      at com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:86)
      at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:268)
      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)

        Attachments

          Activity

            People

            Assignee:
            vmassol Vincent Massol
            Reporter:
            francoisledroff Francois Le Droff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: