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

Error publishing style in workspace with a sld body. #158

Open
ghost opened this issue Dec 4, 2015 · 0 comments
Open

Error publishing style in workspace with a sld body. #158

ghost opened this issue Dec 4, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 4, 2015

I've tried to publish an sld body in workspace with the code publisher.publishStyleInWorkspace(workspace, sldBody); and I get this exception: java.lang.StackOverflowError.
So I went to the geosolutions's code and saw this:

public boolean publishStyleInWorkspace(final String workspace, String sldBody) {
try {
return publishStyleInWorkspace(workspace, sldBody);
} catch (IllegalArgumentException e) {
if (LOGGER.isErrorEnabled()) {
LOGGER.error(e.getLocalizedMessage(), e);
}
}
return false;
}

I think this method calls itself ad eternum.

The method publishStyleInWorkspace(workspace, sldBody, styleName), however, works perfectly.

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

1 participant