<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem with nuxeo java automation client 6.0 in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/problem-with-nuxeo-java-automation-client-6-0/m-p/324528#M11529</link>
    <description>&lt;P&gt;Hello I'm newbie in the nuxeo world and I was trying to follow the examples in &lt;A href="http://doc.nuxeo.com/display/NXDOC/Java+Automation+Client" target="test_blank"&gt;http://doc.nuxeo.com/display/NXDOC/Java+Automation+Client&lt;/A&gt; .
I've deployed the nuxeo 6.0 platform and created a test to try to connect to the automation platform, adding the dependency in the project's pom file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dependency&amp;gt;
        &amp;lt;groupId&amp;gt;org.nuxeo.ecm.automation&amp;lt;/groupId&amp;gt;
        &amp;lt;artifactId&amp;gt;nuxeo-automation-client&amp;lt;/artifactId&amp;gt;
        &amp;lt;scope&amp;gt;compile&amp;lt;/scope&amp;gt;
        &amp;lt;version&amp;gt;6.0&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When I run the test, at the moment to adquire a Session, the program fails with a NoSuchMethodError:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@Test
public void conexion() throws Exception {
    HttpAutomationClient client = new HttpAutomationClient(
            "http://localhost:8080/nuxeo/site/automation");
    Session session = client.getSession("username", "password");
    client.shutdown();
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The exception is thrown at Session session = client.getSession();&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;java.lang.NoSuchMethodError: java.lang.NoSuchMethodError: org.codehaus.jackson.map.ObjectMapper.getTypeFactory()Lorg/codehaus/jackson/map/type/TypeFactory;
at org.nuxeo.ecm.automation.client.jaxrs.spi.JsonMarshalling.newJsonFactory(JsonMarshalling.java:125)
at org.nuxeo.ecm.automation.client.jaxrs.spi.JsonMarshalling.&amp;lt;clinit&amp;gt;(JsonMarshalling.java:112)
at org.nuxeo.ecm.automation.client.jaxrs.spi.Request.handleResult(Request.java:118)
at org.nuxeo.ecm.automation.client.jaxrs.impl.HttpConnector.execute(HttpConnector.java:158)
at org.nuxeo.ecm.automation.client.jaxrs.impl.HttpConnector.execute(HttpConnector.java:120)
at org.nuxeo.ecm.automation.client.jaxrs.spi.ConnectorHandler.execute(ConnectorHandler.java:30)
at org.nuxeo.ecm.automation.client.jaxrs.spi.AbstractAutomationClient.connect(AbstractAutomationClient.java:103)
at org.nuxeo.ecm.automation.client.jaxrs.spi.AbstractAutomationClient.getSession(AbstractAutomationClient.java:128)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The jackson dependencies for the automation client seems to be right, version 1.8.1 for jackson-core-asl and jackson-mapper-asl ( and both jars are the same that are included with the Nuxeo Platform).&lt;/P&gt;
&lt;P&gt;If a try to GET the url from the browser, I get a JSON describing the automation chains availables (or at least I think so), so the server looks to be working correctly.&lt;/P&gt;
&lt;P&gt;Has anyone fall in the same error?&lt;/P&gt;
&lt;P&gt;Thanks in advance.
Gonzalo Ferreyra&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jan 2015 21:41:40 GMT</pubDate>
    <dc:creator>GonzaloFerreyra</dc:creator>
    <dc:date>2015-01-05T21:41:40Z</dc:date>
    <item>
      <title>Problem with nuxeo java automation client 6.0</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/problem-with-nuxeo-java-automation-client-6-0/m-p/324528#M11529</link>
      <description>&lt;P&gt;Hello I'm newbie in the nuxeo world and I was trying to follow the examples in &lt;A href="http://doc.nuxeo.com/display/NXDOC/Java+Automation+Client" target="test_blank"&gt;http://doc.nuxeo.com/display/NXDOC/Java+Automation+Client&lt;/A&gt; .
I've deployed the nuxeo 6.0 platform and created a test to try to connect to the automation platform, adding the dependency in the project's pom file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dependency&amp;gt;
        &amp;lt;groupId&amp;gt;org.nuxeo.ecm.automation&amp;lt;/groupId&amp;gt;
        &amp;lt;artifactId&amp;gt;nuxeo-automation-client&amp;lt;/artifactId&amp;gt;
        &amp;lt;scope&amp;gt;compile&amp;lt;/scope&amp;gt;
        &amp;lt;version&amp;gt;6.0&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When I run the test, at the moment to adquire a Session, the program fails with a NoSuchMethodError:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@Test
public void conexion() throws Exception {
    HttpAutomationClient client = new HttpAutomationClient(
            "http://localhost:8080/nuxeo/site/automation");
    Session session = client.getSession("username", "password");
    client.shutdown();
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The exception is thrown at Session session = client.getSession();&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;java.lang.NoSuchMethodError: java.lang.NoSuchMethodError: org.codehaus.jackson.map.ObjectMapper.getTypeFactory()Lorg/codehaus/jackson/map/type/TypeFactory;
at org.nuxeo.ecm.automation.client.jaxrs.spi.JsonMarshalling.newJsonFactory(JsonMarshalling.java:125)
at org.nuxeo.ecm.automation.client.jaxrs.spi.JsonMarshalling.&amp;lt;clinit&amp;gt;(JsonMarshalling.java:112)
at org.nuxeo.ecm.automation.client.jaxrs.spi.Request.handleResult(Request.java:118)
at org.nuxeo.ecm.automation.client.jaxrs.impl.HttpConnector.execute(HttpConnector.java:158)
at org.nuxeo.ecm.automation.client.jaxrs.impl.HttpConnector.execute(HttpConnector.java:120)
at org.nuxeo.ecm.automation.client.jaxrs.spi.ConnectorHandler.execute(ConnectorHandler.java:30)
at org.nuxeo.ecm.automation.client.jaxrs.spi.AbstractAutomationClient.connect(AbstractAutomationClient.java:103)
at org.nuxeo.ecm.automation.client.jaxrs.spi.AbstractAutomationClient.getSession(AbstractAutomationClient.java:128)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The jackson dependencies for the automation client seems to be right, version 1.8.1 for jackson-core-asl and jackson-mapper-asl ( and both jars are the same that are included with the Nuxeo Platform).&lt;/P&gt;
&lt;P&gt;If a try to GET the url from the browser, I get a JSON describing the automation chains availables (or at least I think so), so the server looks to be working correctly.&lt;/P&gt;
&lt;P&gt;Has anyone fall in the same error?&lt;/P&gt;
&lt;P&gt;Thanks in advance.
Gonzalo Ferreyra&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2015 21:41:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/problem-with-nuxeo-java-automation-client-6-0/m-p/324528#M11529</guid>
      <dc:creator>GonzaloFerreyra</dc:creator>
      <dc:date>2015-01-05T21:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with nuxeo java automation client 6.0</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/problem-with-nuxeo-java-automation-client-6-0/m-p/324529#M11530</link>
      <description>&lt;P&gt;I'm sorry guys, but it was a class loading problem; In my pom.xml file, there was declared glassfish-embedded-all as a test dependency, which seems to be loading another version of the jackson libs. I revert the order in the pom (first the nuxeo-automation-client dependency, and after that the glassfish-embedded-all dependency) and the problem was gone. I'm connecting with the server without any problems. Thanks, Gonzalo.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 16:36:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/problem-with-nuxeo-java-automation-client-6-0/m-p/324529#M11530</guid>
      <dc:creator>GonzaloFerreyra</dc:creator>
      <dc:date>2015-01-06T16:36:01Z</dc:date>
    </item>
  </channel>
</rss>

