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

Class Not Found Exception: io.advantageous.reakt.promise.PromiseHandle #775

Open
m4mark opened this issue Feb 11, 2017 · 0 comments
Open

Comments

@m4mark
Copy link

m4mark commented Feb 11, 2017

Going through the totdo-Statd tutorial the 'TodoServiceMain' class spat out the not found error, it appears to centre around this statement :

final ServiceManagementBundle serviceManagementBundle =
serviceManagementBundleBuilder().setServiceName("TodoServiceImpl")
.setManagedServiceBuilder(managedServiceBuilder).build();

Admittedly Java is not my first language so not certain if I failed to do something.

Also, I had to replace some code in the 'TodoServiceImpl' class in order to get it to compile, see below for an example, was this the right thing to do?

@Override
@POST(value = "/todo")
public Promise<Boolean> addTodo(final Todo todo) {
    return invokablePromise(promise -> {
        /** Send KPI addTodo called every time the addTodo method gets called. */
        mgmt.increment("addTodo.called");
        todoMap.put(todo.getId(), todo);
        //promise.accept(true); // **This line was removed**
        promise.resolve(true); // **and replaced by this one**
    });
}

Any help would be most appreciated.

Mark

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

No branches or pull requests

1 participant