Reputation: 454
I've somewhat successfully updated our SDN from 3.2 to 3.4.1.RELEASE.
Everything works, except for an exception that tells me java.lang.IllegalStateException: The Neo Server running is of unknown type. Valid types are Community, Advanced, and Enterprise.
.
After some googling this might have to do with the (deprecated) way I'm enabling the web interface on the embedded neo4j instance.
Is this indeed the case? If so, is there a proper way to enable the web interface on an embedded neo4j instance?
Edit: On Supamiu's request: "neo4j_version" : "2.2.5"
.
Upvotes: 1
Views: 223
Reputation: 1108
Deprecation is a cop out without a valid alternative.
The detection before the exception is thrown is rather basic. It looks for a string in the class name. Extending the WrappingNeoServer and giving it a name that matches your Neo edition satisfies the check and suppresses the exception.
public class WrappingCommunityNeoServer extends WrappingNeoServer {
public WrappingCommunityNeoServer(GraphDatabaseAPI db) {
super(db);
}
public WrappingCommunityNeoServer(GraphDatabaseAPI db, Configurator configurator) {
super(db, configurator);
}
public WrappingCommunityNeoServer(GraphDatabaseAPI db, ConfigurationBuilder configurator) {
super(db, configurator);
}
}
Upvotes: 0
Reputation: 8731
As "cmorgner" stated in Github :
We have not yet found a solution for the issue because the startup process for an embedded Neo4j browser has changed / been deprecated.
So, this message is, in fact, only a warning and they seems to have no functionnal impact.
The class raising this Exception is VersionAndEditionService.
The problem seems to come from the deprecated method you are using. So there is no fix for that, since it's deprecated.
Upvotes: 2