abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christine Koppelt (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ABDERA-284) Deprecated Axiom interface is used in FOMParser; Axiom version conflict: in compile-time 1.2.5 is used; in runtime (with dependencies through maven) 1.2.10;
Date Thu, 22 Nov 2012 00:18:58 GMT

     [ https://issues.apache.org/jira/browse/ABDERA-284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Christine Koppelt updated ABDERA-284:
-------------------------------------

    Fix Version/s:     (was: 1.2)
                   1.1.3
    
> Deprecated Axiom interface is used in FOMParser; Axiom version conflict: in compile-time
1.2.5 is used; in runtime (with dependencies through maven) 1.2.10;
> ------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ABDERA-284
>                 URL: https://issues.apache.org/jira/browse/ABDERA-284
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 1.1, 1.1.1, 1.1.2
>         Environment: tomcat6
> java1.6.0_22
>            Reporter: Ilya A. Pimenov
>            Assignee: Andreas Veithen
>            Priority: Critical
>             Fix For: 1.1.3
>
>         Attachments: ABDERA-284-fix.diff
>
>
> In FOMParser.java in getXMLInputFactory() method StAXUtils.getXMLInputFactory(StAXParserConfiguration)
is used from Axiom-Api, which is there no more in axiom 1.2.10 (that is used as a dependency
in root pom.xml).
> Also about Axiom dependency:
> In file -
> trunk\dependencies\ deps.properties 
> you can find dependency to axiom-1.2.5
> axiom.api.jar=axiom-api-1.2.5.jar
> axiom.impl.jar=axiom-impl-1.2.5.jar
> While in pom.xml Axiom-1.2.10 is used (and their interfaces are a bit different)
>       <dependency>
>         <groupId>org.apache.ws.commons.axiom</groupId>
>         <artifactId>axiom-api</artifactId>
>         <version>1.2.10</version>  
>       </dependency>
>       <dependency>
>         <groupId>org.apache.ws.commons.axiom</groupId>
>         <artifactId>axiom-impl</artifactId>
>         <version>1.2.10</version>  
>       <exclusions>
>         <exclusion>
>           <groupId>javax.mail</groupId>
>           <artifactId>mail</artifactId>
>         </exclusion>
>         <exclusion>
>           <groupId>stax</groupId>
>           <artifactId>stax-api</artifactId>
>         </exclusion>
>       </exclusions>
>       </dependency>
> ----
> For this reason, if you will follow directly this instructions -
> https://cwiki.apache.org/confluence/display/ABDERA/Your+first+AtomPub+Server
> with Abdera v >1.0 you will get 
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(Lorg/apache/axiom/om/util/StAXParserConfiguration;)Ljavax/xml/stream/XMLInputFactory;
at org.apache.abdera.parser.stax.FOMParser.getXMLInputFactory(FOMParser.java:152) at org.apache.abdera.parser.stax.FOMParser.createXMLStreamReader(FOMParser.java:178)
at org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:143) at org.apache.abdera.protocol.client.AbstractClientResponse.getDocument(AbstractClientResponse.java:111)
at org.apache.abdera.protocol.client.AbstractClientResponse.getDocument(AbstractClientResponse.java:89)
at org.apache.abdera.protocol.client.AbstractClientResponse.getDocument(AbstractClientResponse.java:71)
> The same problem is reported here - 
> http://stackoverflow.com/questions/5337162/apache-abdera-client-response-getdocument-method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message