Giter Site home page Giter Site logo

Comments (7)

corrspt avatar corrspt commented on August 12, 2024 1

Sure, I can't reproduce locally. Could be something on Heroku. If it happens when I am able to upgrade to a later version, I'll ping again.

Thanks for the work on Katharsis.

from katharsis-framework.

masterspambot avatar masterspambot commented on August 12, 2024

From @ieugen on July 19, 2016 6:18

Hi,

Could you first update your code to a newer version? The latest is 2.4.1.

java.lang.NoSuchMethodError is thrown when the JVM can't find a class so you should add the dependency explicitly. Maybe maven works different on heroku.

p.s. Katharsis uses a copy of Optional since it is build with Java 7, but that is namespaced.

from katharsis-framework.

masterspambot avatar masterspambot commented on August 12, 2024

From @corrspt on July 19, 2016 13:52

Hi @ieugen , thanks for pitching in.

Regarding upgrading, I'll try as soon as I can (I'm on a 3G connection with limited transfer speed and limit) but I'm not sure I can do that easily because of using the Play Framework. Since katharsis does not have a direct integration with Play I had to fiddle with the internals to find out how to reply to a request - I have a controller method which instantiates katharsis classes in order to to reply correctly. It's on my plans to upgrade katharsis, but I've had some issues trying to upgrade to version 2.3 I think, so I postponed that.

Anyway, I think I didn't explain my problem very well. This is the method signature I have

import java.util.Optional;

public Optional<FluxCommercialDesignation> getShieldingCapFluxCommercialDesignationTestPiece() {
   //method content
}

So, I'm using java.util.Optional but the error is complaining about com.google.common.base.Optional which I'm not using. It's as it looks at my code like this:

import com.google.common.base.Optional;

public Optional<FluxCommercialDesignation> getShieldingCapFluxCommercialDesignationTestPiece() {
   //method content
}

I did not try to put the method signature with java.util.Optional<> explicitly, so I'm wondering if there could some mistake on Katharsis side that could be mixing up the Optional?

from katharsis-framework.

masterspambot avatar masterspambot commented on August 12, 2024

From @ieugen on July 19, 2016 14:15

Plese check the Spring or Vertx integration (respective projects). The idea is that you should integrate the Katharsis Dispatcher. A sample [1] is in Vertx.

[1] https://github.com/katharsis-project/katharsis-vertx/blob/v2.4.1/katharsis-vertx/src/main/java/io/katharsis/vertx/KatharsisHandler.java

from katharsis-framework.

masterspambot avatar masterspambot commented on August 12, 2024

In that case can we close that issue @corrspt?

from katharsis-framework.

masterspambot avatar masterspambot commented on August 12, 2024

From @corrspt on July 21, 2016 13:42

Yes, @masterspambot. I reverted the solution to not use Optional, but I'll try to to upgrade Katharsis in the mean time (I'll try to follow the directions from the VertX integration... although I'm not familiar with Spring/VertX I should be able to figure something out).

I'll knock on the door again if I need help, thanks for everything.

from katharsis-framework.

meshuga avatar meshuga commented on August 12, 2024

I close this issue since it might be more a Heroku problem, not Katharsis. We're using standard Java reflection mechanisms, no dirty hacks :)

from katharsis-framework.

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.