Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handshake error #12

Open
mulderbaba opened this issue Aug 6, 2017 · 2 comments
Open

Handshake error #12

mulderbaba opened this issue Aug 6, 2017 · 2 comments
Assignees

Comments

@mulderbaba
Copy link

mulderbaba commented Aug 6, 2017

Getting Handshake error while registering service.

[2017-08-07T00:32:10.011+0300] [Payara 5.0] [WARNING] [] [eu.agilejava.snoopee] [tid: _ThreadID=146 _ThreadName=__ejb-thread-pool2] [timeMillis: 1502055130011] [levelValue: 900] [[
  Handshake error.]]
@EnableSnoopEEClient(serviceName = "temperature")
@ApplicationPath("/weather")
public class WeatherMicroService extends Application {

}
 */
@Path("/temperature")
public class TemperatureResource {

    @GET
    @Produces(MediaType.APPLICATION_JSON)
    public Response getAverageTemperature() {
        Temperature temperature = new Temperature();
        temperature.setTemperature(35D);
        temperature.setTemperatureScale(TemperatureScale.CELSIUS);

        return Response.ok(temperature).build();
    }
}
public class Temperature {

    private Double temperature;
    private TemperatureScale temperatureScale;

    public Double getTemperature() {
        return temperature;
    }

    public void setTemperature(Double temperature) {
        this.temperature = temperature;
    }

    public TemperatureScale getTemperatureScale() {
        return temperatureScale;
    }

    public void setTemperatureScale(TemperatureScale temperatureScale) {
        this.temperatureScale = temperatureScale;
    }

    @Override
    public String toString() {
        return "Temperature{" +
                "temperature=" + temperature +
                ", temperatureScale=" + temperatureScale +
                '}';
    }
}

snoopee.yml

snoopee:
   host: http://localhost
   port: 8080
   serviceRoot: weather-service-snoopee-1.0/weather
   snoopeeService: localhost:8081/snoop-service/

Using Docker for Mac & Pulling SnoopEE first with:

docker pull ivargrimstad/snoopee-service:2.0.0-SNAPSHOT

Executing it with:

docker run -it -p 8081:8080 ivargrimstad/snoop-service
@ivargrimstad
Copy link
Owner

I know there were an issue with reaching the host from Docker after an upgrade. Will check this again

@ivargrimstad
Copy link
Owner

Not to self: When fixing this, also att a litte robustness to allow for missing trailing / in configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants