Hello,

I created a task called dope-task. This task gets the following exception, but 
only when I use Ant.
I have the same functionality without Ant and everything works fine.

I fear that this is a classptah issue.

It happen s when parsing XML. I want to use the xmlparser of Java 1.6.0_17, but 
it seems,
Zhat the Ant xml parser is used.
Is Ant adding his own classpath to the classptah of the task?

Or any other idea?

[dope-task] 398.) Font: C0N400Z0 -1 (durch Datei-Version -1 ersetzt.)
[dope-task] 399.) JavaScript: DJSF9236 -1 (durch Datei-Version -1 ersetzt.)
[dope-task] 400.) Font: C0N20090 -1 (durch Datei-Version -1 ersetzt.)
[dope-task] 2009-11-16 21:45:55.579 [E] 
de.icongmbh.dope.util.reload.ReloadManager $Revision: 1.315 $ execute() main 
[dope-task]   java.lang.ArrayIndexOutOfBoundsException: -1
[dope-task]     at 
com.sun.org.apache.xerces.internal.util.XMLAttributesImpl.addAttribute(XMLAttributesImpl.java:310)
[dope-task]     at 
com.sun.org.apache.xerces.internal.util.XMLAttributesImpl.addAttribute(XMLAttributesImpl.java:216)
[dope-task]     at 
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.addDefaultAttributes(XMLSchemaValidator.java:2868)
[dope-task]     at 
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2041)
[dope-task]     at 
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:685)
[dope-task]     at 
com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement(ValidatorHandlerImpl.java:549)
[dope-task]     at 
org.apache.xerces.jaxp.JAXPValidatorComponent$XNI2SAX.startElement(Unknown 
Source)
[dope-task]     at 
org.apache.xerces.jaxp.JAXPValidatorComponent.startElement(Unknown Source)
[dope-task]     at 
org.apache.xerces.jaxp.JAXPValidatorComponent.emptyElement(Unknown Source)
[dope-task]     at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
[dope-task]     at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
[dope-task]     at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
[dope-task]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
[dope-task]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
[dope-task]     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[dope-task]     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source)
[dope-task]     at 
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
[dope-task]     at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
[dope-task]     at 
de.icongmbh.dope.util.reload.ReloadManager.createRepositoryObjects(ReloadManager.java:1475)
[dope-task]     at 
de.icongmbh.dope.util.reload.ReloadManager.execute(ReloadManager.java:323)
[dope-task]     at 
de.icongmbh.dope.util.ant.ReloadTask$1.execute(ReloadTask.java:47)
[dope-task]     at 
de.icongmbh.dope.util.ant.SaveFormatTask.execute(SaveFormatTask.java:106)
[dope-task]     at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[dope-task]     at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
[dope-task]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[dope-task]     at java.lang.reflect.Method.invoke(Method.java:597)
[dope-task]     at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[dope-task]     at org.apache.tools.ant.Task.perform(Task.java:348)
[dope-task]     at org.apache.tools.ant.Target.execute(Target.java:357)
[dope-task]     at org.apache.tools.ant.Target.performTasks(Target.java:385)
[dope-task]     at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[dope-task]     at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[dope-task]     at 
net.sf.antcontrib.logic.RunTargetTask.execute(RunTargetTask.java:48)
[dope-task]     at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[dope-task]     at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
[dope-task]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[dope-task]     at java.lang.reflect.Method.invoke(Method.java:597)
[dope-task]     at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[dope-task]     at org.apache.tools.ant.Task.perform(Task.java:348)
[dope-task]     at 
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
[dope-task]     at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[dope-task]     at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
[dope-task]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[dope-task]     at java.lang.reflect.Method.invoke(Method.java:597)
[dope-task]     at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[dope-task]     at org.apache.tools.ant.Task.perform(Task.java:348)
[dope-task]     at 
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)
[dope-task]     at 
net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259)
[dope-task]     at net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268)
[dope-task]     at net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:299)
[dope-task]     at net.sf.antcontrib.logic.ForTask.execute(ForTask.java:244)
[dope-task]     at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[dope-task]     at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)

Greetings Juergen

-- 
Jürgen Knuplesch                    www.icongmbh.de
icon Systemhaus GmbH                Tel. +49 711 806098-275
Sophienstraße 40                    
D-70178 Stuttgart                   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to