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

sosul's profile - activity

2017-06-14 19:20:14 -0700 received badge  Popular Question (source)
2017-04-19 18:50:35 -0700 asked a question How to set pom.xml to use mybatis in OpenDaylight

Before applying HA/clustering it is necessary for me to keep data store into database in case of server down and restart. However it is hard to find a good example of using Spring/MyBatis in accordance with ODL.
I tried to add dependencies to {project}-impl/pom.xml to make it work but I failed. (I'm sorry that I cannot post my pom.xml here because I've done many trial-and-error on it and for every try there've been different error/exception.)

Can somebody provide a sample pom.xml with essential dependencies (both dependencies and maven bundle configuration)?

2017-04-17 23:35:08 -0700 received badge  Famous Question (source)
2017-04-11 23:45:01 -0700 received badge  Enthusiast
2017-04-10 23:53:55 -0700 answered a question No implementation of RPC AbsoluteSchemaPath in Boron when using HttpClient

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>
2017-04-10 23:46:42 -0700 received badge  Notable Question (source)
2017-03-19 19:48:22 -0700 received badge  Editor (source)
2017-03-19 19:47:46 -0700 asked a question including YANG model in pom.xml in form of dependency

(Currently using Boron-SR2)

I've followed instrunction in YANG Tools:Available Models document to include some YANG models in xxx-api/pom.xml file, but it fails to compile as below:

[WARNING] The POM for org.opendaylight.yangtools.model:ietf-inet-types:jar:2010.09.24.4-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.opendaylight.mdsal.model:yang-ext:jar:2013.09.07.8-SNAPSHOT is missing, no dependency information available
[ERROR] Failed to execute goal on project ipbh-api: Could not resolve dependencies for project org.opendaylight.ipbh:ipbh-api:bundle:0.1.0-SNAPSHOT: The following artifacts could not be resolved: org.opendaylight.yangtools.model:ietf-inet-types:jar:2010.09.24.4-SNAPSHOT, org.opendaylight.mdsal.model:yang-ext:jar:2013.09.07.8-SNAPSHOT: Failure to find org.opendaylight.yangtools.model:ietf-inet-types:jar:2010.09.24.4-SNAPSHOT in http://nexus.opendaylight.org/content... was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced -> [Help 1]

Maybe the version is out-dated in the wiki document. So I'd like to ask:
1) What is the proper version of ietf-inet-types and yang-ext for Boron SR-2?
2) How and where I can find the proper version of YANG dependency by myself?

2017-03-19 19:25:55 -0700 received badge  Popular Question (source)
2017-01-12 16:49:36 -0700 received badge  Popular Question (source)
2017-01-05 23:00:54 -0700 asked a question No implementation of RPC AbsoluteSchemaPath in Boron when using HttpClient

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?

2017-01-04 03:25:53 -0700 asked a question error compiling ietf-te-topology.yang

api/pom.xml has parent org.opendaylight.mdsal / binding-parent / 0.9.0-Boron
I tried to add some recent IETF models, downgrading yang version from 1.1 to 1 to deal with compile errors regarding "require-instance" keyword. However I encountered following error and had been blocked.

[ERROR] yang-to-sources: Unable to generate sources with org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl generator java.lang.IllegalArgumentException: Failed to find leafref target: ../../../../../nt:termination-point/nt:tp-id in module ietf-te-topology (QNameModule{ns=urn:ietf:params:xml:ns:yang:ietf-te-topology, rev=2016-10-21}) at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145) at org.opendaylight.yangtools.sal.binding.yang.types.TypeProviderImpl.provideTypeForLeafref(TypeProviderImpl.java:498) at org.opendaylight.yangtools.sal.binding.yang.types.TypeProviderImpl.javaTypeForLeafrefOrIdentityRef(TypeProviderImpl.java:320) at org.opendaylight.yangtools.sal.binding.yang.types.TypeProviderImpl.javaTypeForSchemaDefinitionType(TypeProviderImpl.java:213) at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.resolveLeafSchemaNodeAsMethod(BindingGeneratorImpl.java:1445) at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.addSchemaNodeToListBuilders(BindingGeneratorImpl.java:1931) at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.listToGenType(BindingGeneratorImpl.java:376) at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.addSchemaNodeToBuilderAsMethod(BindingGeneratorImpl.java:1147) at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.resolveDataSchemaNodes(BindingGeneratorImpl.java:1078) at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.groupingToGenType(BindingGeneratorImpl.java:725) at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.groupingsToGenTypes(BindingGeneratorImpl.java:702) at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.moduleToGenTypes(BindingGeneratorImpl.java:280) at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.generateTypes(BindingGeneratorImpl.java:258) at org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl.generateSources(CodeGeneratorImpl.java:61) at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.generateSourcesWithOneGenerator(YangToSourcesProcessor.java:362) at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.generateSources(YangToSourcesProcessor.java:307) at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.execute(YangToSourcesProcessor.java:96) at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.conditionalExecute(YangToSourcesProcessor.java:117) at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesMojo.execute(YangToSourcesMojo.java:119) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java ...

(more)