6799: Ant support busted

The Ant Build window won't load any of my build files. It blows up with this error:

java.lang.NullPointerException
at com.intellij.lang.ant.psi.impl.AntTypeDefImpl.isTask(AntTypeDefImpl.java:375)
at com.intellij.lang.ant.psi.impl.AntTypeDefImpl.loadClass(AntTypeDefImpl.java:343)
at com.intellij.lang.ant.psi.impl.AntTypeDefImpl.loadClass(AntTypeDefImpl.java:359)
at com.intellij.lang.ant.psi.impl.AntTypeDefImpl.loadPropertiesStream(AntTypeDefImpl.java:240)
at com.intellij.lang.ant.psi.impl.AntTypeDefImpl.loadResource(AntTypeDefImpl.java:270)
at com.intellij.lang.ant.psi.impl.AntTypeDefImpl.getDefinitions(AntTypeDefImpl.java:147)
at com.intellij.lang.ant.psi.impl.AntTypeDefImpl.]]>(AntTypeDefImpl.java:47)
at com.intellij.lang.ant.psi.impl.AntElementFactory$11.create(AntElementFactory.java:202)
at com.intellij.lang.ant.psi.impl.AntElementFactory.createAntElement(AntElementFactory.java:104)
at com.intellij.lang.ant.psi.impl.AntStructuredElementImpl.getChildrenInner(AntStructuredElementImpl.java:335)
at com.intellij.lang.ant.psi.impl.AntProjectImpl.getChildrenInner(AntProjectImpl.java:502)
at com.intellij.lang.ant.psi.impl.AntElementImpl.getChildren(AntElementImpl.java:105)
at com.intellij.lang.ant.psi.impl.AntProjectImpl.getTargets(AntProjectImpl.java:110)
at com.intellij.lang.ant.psi.impl.AntProjectImpl.getTarget(AntProjectImpl.java:160)
at com.intellij.lang.ant.psi.impl.reference.AntTargetReference.resolve(AntTargetReference.java:97)
at com.intellij.lang.ant.psi.impl.AntProjectImpl.getDefaultTarget(AntProjectImpl.java:123)
at com.intellij.lang.ant.config.impl.AntBuildModelImpl.getDefaultTargetName(AntBuildModelImpl.java:25)
at com.intellij.lang.ant.config.impl.AntBuildModelImpl.getDefaultTargetActionId(AntBuildModelImpl.java:52)
at com.intellij.lang.ant.config.impl.AntConfigurationImpl.updateRegisteredActions(AntConfigurationImpl.java:459)
at com.intellij.lang.ant.config.impl.AntConfigurationImpl.addBuildFile(AntConfigurationImpl.java:190)
at com.intellij.lang.ant.config.explorer.AntExplorer.addBuildFile(AntExplorer.java:183)
at com.intellij.lang.ant.config.explorer.AntExplorer.access$600(AntExplorer.java:52)
at com.intellij.lang.ant.config.explorer.AntExplorer$AddAction.actionPerformed(AntExplorer.java:463)
at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:89)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:84)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:85)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:64)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:48)
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)


Unfortunately, this means it's back to 6791 for me since the Ant build script is an integral part of the workflow for our project. :(

2 comments
Comment actions Permalink

Hello Gordon,

Thanks a lot. Please see: http://www.jetbrains.net/jira/browse/IDEADEV-15979.
The trace is different, but the call to AntTypeDefImpl.loadClass() is the
same; and the effect is similar, e.g. all ant files are missing from Ant
Build Window, when it contains the reference to "problem" file. I believe
this is related problem.

The Ant Build window won't load any of my build files. It blows up
with this error:

java.lang.NullPointerException
at
com.intellij.lang.ant.psi.impl.AntTypeDefImpl.isTask(AntTypeDefImpl.ja
va:375)
at
com.intellij.lang.ant.psi.impl.AntTypeDefImpl.loadClass(AntTypeDefImpl
.java:343)
at
com.intellij.lang.ant.psi.impl.AntTypeDefImpl.loadClass(AntTypeDefImpl
.java:359)
at
com.intellij.lang.ant.psi.impl.AntTypeDefImpl.loadPropertiesStream(Ant
TypeDefImpl.java:240)
at
com.intellij.lang.ant.psi.impl.AntTypeDefImpl.loadResource(AntTypeDefI
mpl.java:270)
at
com.intellij.lang.ant.psi.impl.AntTypeDefImpl.getDefinitions(AntTypeDe
fImpl.java:147)
at
com.intellij.lang.ant.psi.impl.AntTypeDefImpl.<init>(AntTypeDefImpl.ja
va:47)
at
com.intellij.lang.ant.psi.impl.AntElementFactory$11.create(AntElementF
actory.java:202)
at
com.intellij.lang.ant.psi.impl.AntElementFactory.createAntElement(AntE
lementFactory.java:104)
at
com.intellij.lang.ant.psi.impl.AntStructuredElementImpl.getChildrenInn
er(AntStructuredElementImpl.java:335)
at
com.intellij.lang.ant.psi.impl.AntProjectImpl.getChildrenInner(AntProj
ectImpl.java:502)
at
com.intellij.lang.ant.psi.impl.AntElementImpl.getChildren(AntElementIm
pl.java:105)
at
com.intellij.lang.ant.psi.impl.AntProjectImpl.getTargets(AntProjectImp
l.java:110)
at
com.intellij.lang.ant.psi.impl.AntProjectImpl.getTarget(AntProjectImpl
.java:160)
at
com.intellij.lang.ant.psi.impl.reference.AntTargetReference.resolve(An
tTargetReference.java:97)
at
com.intellij.lang.ant.psi.impl.AntProjectImpl.getDefaultTarget(AntProj
ectImpl.java:123)
at
com.intellij.lang.ant.config.impl.AntBuildModelImpl.getDefaultTargetNa
me(AntBuildModelImpl.java:25)
at
com.intellij.lang.ant.config.impl.AntBuildModelImpl.getDefaultTargetAc
tionId(AntBuildModelImpl.java:52)
at
com.intellij.lang.ant.config.impl.AntConfigurationImpl.updateRegistere
dActions(AntConfigurationImpl.java:459)
at
com.intellij.lang.ant.config.impl.AntConfigurationImpl.addBuildFile(An
tConfigurationImpl.java:190)
at
com.intellij.lang.ant.config.explorer.AntExplorer.addBuildFile(AntExpl
orer.java:183)
at
com.intellij.lang.ant.config.explorer.AntExplorer.access$600(AntExplor
er.java:52)
at
com.intellij.lang.ant.config.explorer.AntExplorer$AddAction.actionPerf
ormed(AntExplorer.java:463)
at
com.intellij.openapi.actionSystem.impl.ActionButton.performAction(Acti
onButton.java:89)
at
com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(
ActionButton.java:84)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:85)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:64)
at
com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:48)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThr
ead.java:242)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThrea
d.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)
Unfortunately, this means it's back to 6791 for me since the Ant build
script is an integral part of the workflow for our project. :(

Alexander.


0
Comment actions Permalink

Fixed already, thanks

0

Please sign in to leave a comment.