Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

0

No implementation of RPC AbsoluteSchemaPath in Boron when using HttpClient

asked 2017-01-05 23:00:54 -0800

sosul gravatar image

Due to error "No implementation of RPC AbsoluteSchemaPath" in my application, I performed a step-by-step test from hello-world example in hello project. (Created using -DarchetypeVersion=1.2.0-Boron)

As a result, I found that HelloProvider.init() is not called when I import classes from HttpClient library in HelloWorldImpl.java. For example, just adding a function below can reproduce the problem.

private String convertResponseToString(HttpResponse response) {
    return "";
}

I also found an mailing list issue https://lists.opendaylight.org/piperm... which seems to have connection with this. Is it resolved in later version?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-04-10 23:53:55 -0800

sosul gravatar image

This was due to missing run-time dependency. After adding maven-bundle-plugin configurations in {project}-impl/pom.xml file, I could establish HttpClient connection.

<build>
  <plugins>
    <plugin>
      <groupId>org.apache.felix</groupId>
      <artifactId>maven-bundle-plugin</artifactId>
      <extensions>true</extensions>
      <configuration>
        <instructions>
          <Export-Package>
            org.apache.*,
            org.springframework.*
          </Export-Package>
          <Import-Package>
            *;resolution:=optional
          </Import-Package>
          <Embed-Dependency>
            httpclient;type=!pom;inline=false,
            httpcore;type=!pom;inline=false,
            spring-web;type=!pom;inline=false
          </Embed-Dependency>
          <Embed-Transitive>true</Embed-Transitive>
          <Include-Resource>{maven-resources}</Include-Resource>
        </instructions>
      </configuration>
    </plugin>
  </plugins>
</build>
edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2017-01-05 23:00:54 -0800

Seen: 226 times

Last updated: Apr 10