You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Andreas Veithen (Resolved) (JIRA)" <ji...@apache.org> on 2011/12/13 21:22:30 UTC

[jira] [Resolved] (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;

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

Andreas Veithen resolved ABDERA-284.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2
         Assignee: Andreas Veithen

Changed deps.properties so that the Axiom version used by the ant build is the same as the one used in the Maven build.
                
> 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.2
>
>         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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira