[infinispan-dev] NoSuchMethodError in Spark simple tutorial

Gustavo Fernandes gustavo at infinispan.org
Fri Mar 24 04:31:58 EDT 2017


This was fixed [1]

Regarding the tutorial, I could run it "as is":

git clone https://github.com/infinispan/infinispan-simple-tutorials.git
cd infinispan-simple-tutorials
mvn clean install
cd spark
mvn exec:exec


How did you reproduced the issue?


[1] https://issues.jboss.org/browse/ISPRK-33


Thanks,
Gustavo

On Thu, Mar 23, 2017 at 1:40 PM, Galder Zamarreño <galder at redhat.com> wrote:

> Hey guys,
>
> The Spark Java simple tutorial [1] tutorial does not work as is due to
> some dependencies mix up.
>
> If you run that class, with the dependencies defined in the pom.xml, you
> get:
>
> java.lang.NoSuchMethodError: org.infinispan.client.hotrod.
> logging.Log.tracef(Ljava/lang/Throwable;Ljava/lang/String;II)V
>
> The dependencies are defined as:
>
> <dependency>
>   <groupId>org.infinispan</groupId>
>   <artifactId>infinispan-spark_2.11</artifactId>
>   <version>0.4</version>
> </dependency>
> ...
>
> Looking at the dependency tree, I see this:
>
> [INFO] +- org.infinispan:infinispan-spark_2.11:jar:0.4:compile
> [INFO] |  +- org.infinispan:infinispan-client-hotrod:jar:9.0.0.
> Alpha4:compile
> ...
> [INFO] |  +- org.infinispan.protostream:protostream:jar:3.0.5.Final:
> compile
> [INFO] |  |  +- org.jboss.logging:jboss-logging:jar:3.1.4.GA:compile
>
> That logging jar seems an old one, it should be 3.3.x. I worked around
> this by doing:
>
> <dependency>
>   <groupId>org.infinispan</groupId>
>   <artifactId>infinispan-spark_2.11</artifactId>
>   <version>${version.spark-connector}</version>
>   <exclusions>
>     <exclusion>
>       <groupId>org.jboss.logging</groupId>
>       <artifactId>jboss-logging</artifactId>
>     </exclusion>
>   </exclusions>
> </dependency>
> <dependency>
>   <groupId>org.jboss.logging</groupId>
>   <artifactId>jboss-logging</artifactId>
>   <version>${version.jboss.logging}</version>
> </dependency>
>
> @Adrian Are the dependencies of the latest protostream versions in line
> with the infinispan hot rod client ones?
>
> @Gustavo, Once there's a client version which depends on a protostream
> version that fixes this (if there's not one already...), can you release a
> 0.5 alpha/beta/cr version?
>
> Cheers,
>
> [1] http://infinispan.org/tutorials/simple/spark/
> --
> Galder Zamarreño
> Infinispan, Red Hat
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20170324/3e658022/attachment.html 


More information about the infinispan-dev mailing list