Could not save local history (UTFDataFormatException)

Any suggestion about that exception ?
IDEA 5.1 on Windows XP.
_marc



java.io.UTFDataFormatException: encoded string too long: 366590 bytes
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:347)
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306)
at com.intellij.localVcs.impl.LvcsLabelImpl.save(LvcsLabelImpl.java:21)
at com.intellij.localVcs.impl.LocalVcsImpl.b(LocalVcsImpl.java:386)
at com.intellij.localVcs.impl.LocalVcsImpl.save(LocalVcsImpl.java:594)
at com.intellij.openapi.components.impl.ComponentManagerImpl.saveSettingsSavingComponents(ComponentManagerImpl.java:107)
at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:99)
at com.intellij.ide.SaveAndSyncHandler.b(SaveAndSyncHandler.java:13)
at com.intellij.ide.SaveAndSyncHandler.access$200(SaveAndSyncHandler.java:20)
at com.intellij.ide.SaveAndSyncHandler$3.onFrameDeactivated(SaveAndSyncHandler.java:2)
at com.intellij.ide.FrameStateManagerImpl.a(FrameStateManagerImpl.java:36)
at com.intellij.ide.FrameStateManagerImpl.access$100(FrameStateManagerImpl.java:26)
at com.intellij.ide.FrameStateManagerImpl$1.run(FrameStateManagerImpl.java:3)
at com.intellij.util.Alarm$1.run(Alarm.java:98)
at com.intellij.util.Alarm$MyThread$1.run(Alarm.java:241)
at com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:13)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:94)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:119)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:25)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

4 comments

Hello Marc,

Any suggestion about that exception ?
IDEA 5.1 on Windows XP.
_marc
java.io.UTFDataFormatException: encoded string too long: 366590 bytes
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:347)
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306)


"The exception means local history label name (can be automatically set
by refctoring or other activity) exceeds 64K. The only workaround I
see now is cleaning out local history, sorry. We'll insert a code that
will limit action name to some reasonable number of characters in
future versions." (c) Maxim Shafirov =)


--
Serge Baranov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

And how can the local history be cleaned out?

0

Timo Rantalaiho wrote:

And how can the local history be cleaned out?


The local history is stored in ${user.home}\.IntelliJIdea50\system\vcs
Close IDEA, rename the vcs directory and start IDEA again.
The vcs directory will be recreated, naturally this means you will loose
all your local history.

Bas

0

Please sign in to leave a comment.