Giter VIP home page Giter VIP logo

Comments (13)

plison avatar plison commented on July 18, 2024 2

Thanks for the bug report. It seems that Maven has problems with the component versions with a '+' suffix (i.e. httpclient:jar:4.3+). I'll try to correct that next time I'll upload the toolkit on Bintray.

In the meantime, I would recommend to use the versions on Github, as the one on Bintray is a bit outdated by now (last distribution there is from June 2015).

from opendial.

pfisterer avatar pfisterer commented on July 18, 2024

Thank you very much. Does it make sense to wait for you uploading it to Bintray? Once it works, I can provide the sample Maven project here on Github.

from opendial.

plison avatar plison commented on July 18, 2024

Hi! I just uploaded version 1.5 of OpenDial to Bintray. Let me know if it works for you!

from opendial.

pfisterer avatar pfisterer commented on July 18, 2024

Hi, Thanks a million. It compiles now but a dependency for exp4j is missing. I've added it to my demo project's pom.xml: https://github.com/pfisterer/opendialog-test but it still does not work at runtime.

In your project's lib/ folder, you've added exp4j.jar in version

  <groupId>net.objecthunter</groupId>
  <artifactId>exp4j</artifactId>
  <version>0.4.6-SNAPSHOT</version>

so I've tried to use 0.4.6 and 0.4.7 in my pom.xml but it didn't work.

When using

        <!-- http://mvnrepository.com/artifact/net.objecthunter/exp4j -->
        <dependency>
            <groupId>net.objecthunter</groupId>
            <artifactId>exp4j</artifactId>
            <version>0.4.6</version>
        </dependency>

as dependency, I get the following output:

[INFO ; Main::main] Hallo Welt!
[INFO ; Main::main] Entry in response: a_u, P(a_u=Hello Opendial)=1
Exception in thread "main" java.lang.IllegalAccessError: tried to access method net.objecthunter.exp4j.Expression.<init>([Lnet/objecthunter/exp4j/tokenizer/Token;)V from class opendial.datastructs.MathExpression
    at opendial.datastructs.MathExpression.evaluate(MathExpression.java:189)
    at opendial.domains.rules.parameters.ComplexParameter.getValue(ComplexParameter.java:64)
    at opendial.domains.rules.distribs.AnchoredRule.getProbDistrib(AnchoredRule.java:339)
    at opendial.domains.rules.distribs.AnchoredRule.sample(AnchoredRule.java:315)
    at opendial.bn.nodes.ChanceNode.sample(ChanceNode.java:240)
    at opendial.inference.approximate.LikelihoodWeighting.sampleChanceNode(LikelihoodWeighting.java:174)
    at opendial.inference.approximate.LikelihoodWeighting.sample(LikelihoodWeighting.java:136)
    at opendial.inference.approximate.LikelihoodWeighting.lambda$new$144(LikelihoodWeighting.java:82)
    at opendial.inference.approximate.LikelihoodWeighting$$Lambda$61/1277181601.apply(Unknown Source)
    at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
    at java.util.stream.StreamSpliterators$InfiniteSupplyingSpliterator$OfRef.tryAdvance(StreamSpliterators.java:1351)
    at java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$190(StreamSpliterators.java:294)
    at java.util.stream.StreamSpliterators$WrappingSpliterator$$Lambda$70/612480159.getAsBoolean(Unknown Source)
    at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:206)
    at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:161)
    at java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:300)
    at java.util.stream.StreamSpliterators$UnorderedSliceSpliterator$OfRef.forEachRemaining(StreamSpliterators.java:1035)
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
    at java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290)
    at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:902)
    at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1689)
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1644)
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

from opendial.

plison avatar plison commented on July 18, 2024

OK, i've made some changes to the gradle configuration, it should work now - at least it works for me ;-) Could you give it a try?

I had to add the repository https://oss.sonatype.org/content/repositories/snapshots to your pom.xml file to make it work

from opendial.

pfisterer avatar pfisterer commented on July 18, 2024

Tnx. Can you upload a new version to bintray please?

from opendial.

plison avatar plison commented on July 18, 2024

It is already uploaded (the version on Bintray is the last one).

from opendial.

pfisterer avatar pfisterer commented on July 18, 2024

Thanks a lot for your continued support. Still no luck. I've deleted my local maven cache (~/.m2/repository/) and ran mvn package exec:java and get the same result as before.

Maybe this is also an issue: mvn dependency:treeyields: [WARNING] The POM for opendial:opendial:jar:1.5 is missing, no dependency information available.

Full output:

mvn dependency:tree
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for de.farberg.opendial:opendial-test:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 75, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Opendial test application 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for opendial:opendial:jar:1.5 is missing, no dependency information available
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ opendial-test ---
[INFO] de.farberg.opendial:opendial-test:jar:1.0-SNAPSHOT
[INFO] +- opendial:opendial:jar:1.5:compile
[INFO] +- de.uniluebeck.itm.util:logging:jar:0.8:compile
[INFO] |  +- org.slf4j:jul-to-slf4j:jar:1.7.21:compile (version selected from constraint [1.7,1.8))
[INFO] |  \- com.google.classpath-explorer:classpath-explorer:jar:1.0:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.21:compile
[INFO] \- org.slf4j:slf4j-log4j12:jar:1.7.21:compile
[INFO]    \- log4j:log4j:jar:1.2.17:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.255s
[INFO] Finished at: Tue Jun 07 14:23:53 CEST 2016
[INFO] Final Memory: 12M/304M
[INFO] ------------------------------------------------------------------------

from opendial.

plison avatar plison commented on July 18, 2024

Is it working for you now? I just re-uploaded the files on Bintray.

from opendial.

pfisterer avatar pfisterer commented on July 18, 2024

Still no luck. I've added you as a collaborator to https://github.com/pfisterer/opendialog-test/ so you can test and edit directly using this dummy project.

from opendial.

plison avatar plison commented on July 18, 2024

I changed the repository order between atlassian and bintray in your github project. It seems the atlassian repository is not automatically updated, and it was causing some strange dependency problems. I've now tested the setup on two different machines, and it seems to work. In case it still doesn't for you, could you send me a detailed log from maven?

from opendial.

pfisterer avatar pfisterer commented on July 18, 2024

Thanks a million for your support. Now it works and I get the expected output!
If you like, you can add a link to https://github.com/pfisterer/opendialog-test/ as a Maven-based example for using your project!

Best regards,
Dennis

from opendial.

plison avatar plison commented on July 18, 2024

You're welcome ;-)

from opendial.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.