ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
Subject RE: Classpath and taskdef
Date Tue, 17 Nov 2009 14:31:32 GMT

javap bytecode listing of xercesImpl.jar which i have that is packaged with $ANT_HOME/lib/xercesImpl.jar

09/08/2009  07:16 PM         1,223,877 xercesImpl.jar

public class org.apache.xerces.util.XMLAttributesImpl extends java.lang.Object i
mplements org.apache.xerces.xni.XMLAttributes{
    protected static final int TABLE_SIZE;
    protected static final int SIZE_LIMIT;
    protected boolean fNamespaces;
    protected int fLargeCount;
    protected int fLength;
    protected org.apache.xerces.util.XMLAttributesImpl$Attribute[] fAttributes;
    protected org.apache.xerces.util.XMLAttributesImpl$Attribute[] fAttributeTab
leView;
    protected int[] fAttributeTableViewChainState;
    protected int fTableViewBuckets;
    protected boolean fIsTableViewConsistent;
    public org.apache.xerces.util.XMLAttributesImpl();
    public org.apache.xerces.util.XMLAttributesImpl(int);
    public void setNamespaces(boolean);
    public int addAttribute(org.apache.xerces.xni.QName, java.lang.String, java.
lang.String);
    public void removeAllAttributes();
    public void removeAttributeAt(int);
    public void setName(int, org.apache.xerces.xni.QName);
    public void getName(int, org.apache.xerces.xni.QName);
    public void setType(int, java.lang.String);
    public void setValue(int, java.lang.String);
    public void setNonNormalizedValue(int, java.lang.String);
    public java.lang.String getNonNormalizedValue(int);
    public void setSpecified(int, boolean);
    public boolean isSpecified(int);
    public int getLength();
    public java.lang.String getType(int);
    public java.lang.String getType(java.lang.String);
    public java.lang.String getValue(int);
    public java.lang.String getValue(java.lang.String);
    public java.lang.String getName(int);
    public int getIndex(java.lang.String);
    public int getIndex(java.lang.String, java.lang.String);
    public java.lang.String getLocalName(int);
    public java.lang.String getQName(int);
    public java.lang.String getType(java.lang.String, java.lang.String);
    public java.lang.String getPrefix(int);
    public java.lang.String getURI(int);
    public java.lang.String getValue(java.lang.String, java.lang.String);
    public org.apache.xerces.xni.Augmentations getAugmentations(java.lang.String, java.lang.String);
    public org.apache.xerces.xni.Augmentations getAugmentations(java.lang.String);
    public org.apache.xerces.xni.Augmentations getAugmentations(int);
    public void setAugmentations(int, org.apache.xerces.xni.Augmentations);
    public void setURI(int, java.lang.String);
    public void setSchemaId(int, boolean);
    public boolean getSchemaId(int);
    public boolean getSchemaId(java.lang.String);
    public boolean getSchemaId(java.lang.String, java.lang.String);
    public int getIndexFast(java.lang.String);
    public void addAttributeNS(org.apache.xerces.xni.QName, java.lang.String, java.lang.String);
    public org.apache.xerces.xni.QName checkDuplicatesNS();
    public int getIndexFast(java.lang.String, java.lang.String);
    protected int getTableViewBucket(java.lang.String);
    protected int getTableViewBucket(java.lang.String, java.lang.String);
    protected void cleanTableView();
    protected void prepareTableView();
    protected void prepareAndPopulateTableView();
}

perhaps you can verify the signatures your are calling versus the signatures of the methods
of $APACHE_HOME/lib/xercesImpl.jar
if you detect a mismatch in method signatues you may want to rename the bad xerces jar
then install the valid xerces jar into $APACHE_HOME/lib

?
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist
unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet
keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen
wir keine Haftung fuer den Inhalt uebernehmen.






> Subject: Classpath and taskdef
> Date: Tue, 17 Nov 2009 13:49:31 +0100
> From: Juergen.Knuplesch@icongmbh.de
> To: user@ant.apache.org
> 
> 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-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
 		 	   		  
_________________________________________________________________
Hotmail: Trusted email with Microsoft's powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141664/direct/01/
http://clk.atdmt.com/GBL/go/177141664/direct/01/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message