GithubHelp home page GithubHelp logo

infinispan-quickstart's Introduction

!!! WARNING !!!

This quickstarts are here only for historical reasons and are no longer maintained. Please refer to Infinispan tutorials

Infinispan Quickstarts

Quickstarts (or examples, or samples) for Infinispan. There are a number of rules for quickstarts:

  • Each quickstart should have a unique name, this enables a user to quickly identify each quickstart
  • A quickstart should have a simple build that the user can quickly understand. If using maven it should:
    1. Not inherit from another POM
  • The quickstart should be importable into JBoss Tools and deployable there
  • The quickstart should be explained in detail in the associated user guide, including how to deploy

You can find the documentation at https://docs.jboss.org/author/display/ISPN.

If you add a quickstart, don't forget to update dist/src/main/assembly/README.md.

The 'dist' folder contains Maven scripts to build a zip of the quickstarts.

infinispan-quickstart's People

Contributors

danberindei avatar galderz avatar kevinpollet avatar maniksurtani avatar mgencur avatar pmuir avatar pruivo avatar rpelisse avatar sappleton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

infinispan-quickstart's Issues

JBoss EAP 6.0.0GA (AS 7.1.2.Final) Fix to make this work

You need to add the file jboss-deployment-structure.xml to the META-INF folder at the highest level.

<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
    <deployment>
        <dependencies>
            <module name="org.infinispan" />
        </dependencies>
    </deployment>
</jboss-deployment-structure>
```xml

Dependency org.infinispan:infinispan-commons, leading to CVE problem

Hi, In infinispan-quickstart/jboss-as7,there is a dependency org.infinispan:infinispan-commons:6.0.2.Final that calls the risk method.

CVE-2019-10174

The scope of this CVE affected version is [,9.4.17.Final),[10.0.0.Alpha1,10.0.0.Final)

After further analysis, in this project, the main Api called is <org.infinispan.commons.util.ReflectionUtil: java.lang.Object invokeAccessibly(java.lang.Object,java.lang.reflect.Method,java.lang.Object[])>

Risk method repair link : GitHub

CVE Bug Invocation Path--

Path Length : 7

<org.infinispan.commons.util.ReflectionUtil: java.lang.Object invokeAccessibly(java.lang.Object,java.lang.reflect.Method,java.lang.Object[])>
at <org.infinispan.distribution.group.GroupManagerImpl$GroupMetadataImpl: java.lang.String getGroup(java.lang.Object)> (org.infinispan.distribution.group.GroupManagerImpl$GroupMetadataImpl.java:[46]) in /.m2/repository/org/infinispan/infinispan-core/6.0.2.Final/infinispan-core-6.0.2.Final.jar
at <org.infinispan.distribution.group.GroupManagerImpl: java.lang.String getGroup(java.lang.Object)> (org.infinispan.distribution.group.GroupManagerImpl.java:[76]) in /.m2/repository/org/infinispan/infinispan-core/6.0.2.Final/infinispan-core-6.0.2.Final.jar
at <org.infinispan.distribution.group.GroupingConsistentHash: java.lang.Object getGroupKey(java.lang.Object)> (org.infinispan.distribution.group.GroupingConsistentHash.java:[107]) in /.m2/repository/org/infinispan/infinispan-core/6.0.2.Final/infinispan-core-6.0.2.Final.jar
at <org.infinispan.distribution.group.GroupingConsistentHash: java.util.List locateOwners(java.lang.Object)> (org.infinispan.distribution.group.GroupingConsistentHash.java:[82]) in /.m2/repository/org/infinispan/infinispan-core/6.0.2.Final/infinispan-core-6.0.2.Final.jar
at <org.infinispan.distribution.DistributionManagerImpl: java.util.List locate(java.lang.Object)> (org.infinispan.distribution.DistributionManagerImpl.java:[87]) in /.m2/repository/org/infinispan/infinispan-core/6.0.2.Final/infinispan-core-6.0.2.Final.jar
at <org.infinispan.quickstart.jbossas7.Controller: java.util.List locate()> (org.infinispan.quickstart.jbossas7.Controller.java:[80]) in /detect/unzip/infinispan-quickstart-main/jboss-as7/target/classes

Dependency tree--

[INFO] org.infinispan.quickstart:jboss-as7-quickstart:war:5.0.0-SNAPSHOT
[INFO] +- org.infinispan:infinispan-core:jar:6.0.2.Final:provided
[INFO] |  +- org.infinispan:infinispan-commons:jar:6.0.2.Final:compile
[INFO] |  +- org.jgroups:jgroups:jar:3.4.1.Final:provided
[INFO] |  +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.0.Final:provided
[INFO] |  +- org.jboss.marshalling:jboss-marshalling-river:jar:1.4.4.Final:compile
[INFO] |  +- org.jboss.marshalling:jboss-marshalling:jar:1.4.4.Final:compile
[INFO] |  \- org.jboss.logging:jboss-logging:jar:3.1.2.GA:compile
[INFO] +- org.infinispan:infinispan-cdi:jar:6.0.2.Final:compile
[INFO] |  \- org.infinispan:infinispan-client-hotrod:jar:6.0.2.Final:compile
[INFO] |     \- commons-pool:commons-pool:jar:1.6:compile
[INFO] +- javax.enterprise:cdi-api:jar:1.0-SP4:provided
[INFO] |  +- org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:jar:1.0.0.Final:provided
[INFO] |  \- javax.inject:javax.inject:jar:1:provided
[INFO] +- org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar:1.0.0.Final:provided
[INFO] +- org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar:1.0.0.Final:provided
[INFO] \- org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec:jar:1.0.1.Final:provided

Suggested solutions:

Update dependency version

Thank you very much.

No Jboss wildfly 8.1 support

Fresh jboss wildfly 8.1 install
Add modules from infinispan-as-embedded-modules-7.0.0.Beta1.zip
Download the quickstart and use the following maven command:
clean install wildfly:deploy -Dwildfly.hostname=localhost -Dwildfly.port=9990
stacktrace result:
http://pastebin.com/HLPrJk8K

Infinispan Distributed mode clustered-cache-quickstart

Hello everyone I am new to Infinispan and I have some questions in regards to distributed mode and quickstarts provided in https://github.com/infinispan in particular clustered-cache-quickstart.

First of all, as far as I understand distributed mode allows to have defined number of entry copies rather than replicated mode, which replicates entries within all nodes. For example, if we had 3 entries (1, 2, 3) and 3 caches (A, B, C) where numOwners(2) the resulting view of cluster in distributed mode might result as: A containing 1,2 B containing 2,3 C containing 3,1 Where replicated mode cluster would result in: A,B and C containing 1,2,3 Please correct me if my assumption is wrong.

What is more, then I run https://github.com/infinispan/infinispan-quickstart/tree/master/clustered-cache this quickstart using these instructions

To try with a distributed cache, run the following command in separated terminals:

Terminal 1

mvn compile exec:java -Djava.net.preferIPv4Stack=true -Dexec.mainClass="org.infinispan.quickstart.clusteredcache.Node" -Dexec.args="-d A"
Terminal 2

mvn compile exec:java -Djava.net.preferIPv4Stack=true -Dexec.mainClass="org.infinispan.quickstart.clusteredcache.Node" -Dexec.args="-d B"
Terminal 3

mvn compile exec:java -Djava.net.preferIPv4Stack=true -Dexec.mainClass="org.infinispan.quickstart.clusteredcache.Node" -Dexec.args="-d C"
All my nodes result in having the same entries (I limited entry number to 10) :

Node A

Cache contents on node A-29339
key-0 = A-29339-0
key-1 = A-29339-1
key-2 = A-29339-2
key-3 = A-29339-3
key-4 = A-29339-4
key-5 = A-29339-5
key-6 = A-29339-6
key-7 = A-29339-7
key-8 = A-29339-8
key-9 = A-29339-9

Node B

Cache contents on node B-36604
key-0 = A-29339-0
key-1 = A-29339-1
key-2 = A-29339-2
key-3 = A-29339-3
key-4 = A-29339-4
key-5 = A-29339-5
key-6 = A-29339-6
key-7 = A-29339-7
key-8 = A-29339-8
key-9 = A-29339-9

Node C

Cache contents on node C-26839
key-0 = A-29339-0
key-1 = A-29339-1
key-2 = A-29339-2
key-3 = A-29339-3
key-4 = A-29339-4
key-5 = A-29339-5
key-6 = A-29339-6
key-7 = A-29339-7
key-8 = A-29339-8
key-9 = A-29339-9

However, in the documentation http://infinispan.org/docs/7.1.x/getting_started/getting_started.html#_distributed_mode it said that: You can also see that each node holds a different set of entries by pressing Enter. Nevertheless, my output shows that all entries are basically replicated as would be done in replicated mode. Any ideas why this is happening like this?

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.