The data "null" is not legal for a JDOM attribute: A null is not a legal XML value.

I've just installed IU-90.94 and am getting this error a lot: The data "null"
is not legal for a JDOM attribute: A null is not a legal XML value.

Interestingly, something similar was reported on a much older build:

http://www.mail-archive.com/eap-list@intellij.com/msg07910.html

Are there any workarounds or do I need to wait for a new release? Here's
the full stacktrace from my idea.log file:

2009-10-19 11:38:34,019    INFO - .components.ComponentStoreImpl
- The data "null" is not legal for a JDOM attribute: A null is not a legal
XML value.
org.jdom.IllegalDataException: The data "null" is not legal for a JDOM attribute:
A null is not a legal XML value.
     at org.jdom.Attribute.setValue(Attribute.java:491)
     at org.jdom.Attribute.(Attribute.java:251)
     at org.jdom.Element.setAttribute(Element.java:1139)
     at com.intellij.codeInsight.template.impl.TemplateSettings.getState(TemplateSettings.java:151)
     at com.intellij.codeInsight.template.impl.TemplateSettings.getState(TemplateSettings.java)
     at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.a(ComponentStoreImpl.java:9)
     at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.access$500(ComponentStoreImpl.java:30)
     at com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSessionImpl.commit(ComponentStoreImpl.java:16)
     at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.startSave(ComponentStoreImpl.java:142)
     at com.intellij.openapi.components.impl.ComponentManagerImpl.doSave(ComponentManagerImpl.java:172)
     at com.intellij.openapi.application.impl.ApplicationImpl.saveSettings(ApplicationImpl.java:331)
     at com.intellij.ide.SaveAndSyncHandler.b(SaveAndSyncHandler.java:45)
     at com.intellij.ide.SaveAndSyncHandler.access$200(SaveAndSyncHandler.java:3)
     at com.intellij.ide.SaveAndSyncHandler$3.onFrameDeactivated(SaveAndSyncHandler.java:3)
     at com.intellij.ide.FrameStateManagerImpl.a(FrameStateManagerImpl.java:23)
     at com.intellij.ide.FrameStateManagerImpl.access$300(FrameStateManagerImpl.java:1)
     at com.intellij.ide.FrameStateManagerImpl$1$1.run(FrameStateManagerImpl.java:2)
     at com.intellij.util.Alarm$Request$1.run(Alarm.java:226)
     at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:26)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
     at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:57)
     at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:200)
     at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:93)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2009-10-19 11:38:34,019    INFO - plication.impl.ApplicationImpl
- Saving application settings failed
java.io.IOException: The data "null" is not legal for a JDOM attribute: A
null is not a legal XML value.
     at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.startSave(ComponentStoreImpl.java:162)
     at com.intellij.openapi.components.impl.ComponentManagerImpl.doSave(ComponentManagerImpl.java:172)
     at com.intellij.openapi.application.impl.ApplicationImpl.saveSettings(ApplicationImpl.java:331)
     at com.intellij.ide.SaveAndSyncHandler.b(SaveAndSyncHandler.java:45)
     at com.intellij.ide.SaveAndSyncHandler.access$200(SaveAndSyncHandler.java:3)
     at com.intellij.ide.SaveAndSyncHandler$3.onFrameDeactivated(SaveAndSyncHandler.java:3)
     at com.intellij.ide.FrameStateManagerImpl.a(FrameStateManagerImpl.java:23)
     at com.intellij.ide.FrameStateManagerImpl.access$300(FrameStateManagerImpl.java:1)
     at com.intellij.ide.FrameStateManagerImpl$1$1.run(FrameStateManagerImpl.java:2)
     at com.intellij.util.Alarm$Request$1.run(Alarm.java:226)
     at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:26)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
     at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:57)
     at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:200)
     at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:93)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: org.jdom.IllegalDataException: The data "null" is not legal for
a JDOM attribute: A null is not a legal XML value.
     at org.jdom.Attribute.setValue(Attribute.java:491)
     at org.jdom.Attribute.(Attribute.java:251)
     at org.jdom.Element.setAttribute(Element.java:1139)
     at com.intellij.codeInsight.template.impl.TemplateSettings.getState(TemplateSettings.java:151)
     at com.intellij.codeInsight.template.impl.TemplateSettings.getState(TemplateSettings.java)
     at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.a(ComponentStoreImpl.java:9)
     at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.access$500(ComponentStoreImpl.java:30)
     at com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSessionImpl.commit(ComponentStoreImpl.java:16)
     at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.startSave(ComponentStoreImpl.java:142)
     ... 21 more


2 comments
Comment actions Permalink

Removing all tags starting with <deleted_ from config/options/other.xml fixed it for me. See also http://youtrack.jetbrains.net/issue/IDEADEV-40871

Bas

0
Comment actions Permalink

Ahhh, thank you Bas, I think that's done the trick :)

BL> Removing all tags starting with  http://www.jetbrains.net/devnet/message/5247368#5247368


0

Please sign in to leave a comment.