注: すでに同様の質問がありますが、解決策は jqassistant-maven-plugin では機能しません。
jqassistant-maven-plugin (1.10.0) を使用して、JQAssistant によってスキャンされた Neo4j コンテンツを表示したい新しいクライアント サイトで問題に直面しています。
実行mvn jqassistant:scan jqassistant:analyze jqassistant:server
すると、起動して Neo4j が埋め込まれ、Maven プロジェクトのコンテンツがスキャンされ、埋め込まれたインスタンスが開いたままになるので、http://localhost:7474/ からアクセスできます。
(bolt プロトコルを使用して) ブラウザーでログインしようとすると、接続の問題に直面しています。
ServiceUnavailable: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver.
Please use your browsers development console to determine the root cause of the failure.
Common reasons include the database being unavailable, using the wrong connection URL or temporary network problems. If you have enabled encryption, ensure your browser is configured to trust the certificate Neo4j is configured to use.
WebSocket `readyState` is: 3
このツールでこのようなことは今まで見たことがありません。私が見つけた唯一のリソースは、listenAddress を変更する必要があると述べているこのドキュメントでした。
基本的に、JQAssistant は次の例外を除いて、いつものように構成されますembeddedListenAddress
。
<plugin>
<groupId>com.buschmais.jqassistant</groupId>
<artifactId>jqassistant-maven-plugin</artifactId>
<version>${jqassistant.version}</version>
<executions>
<execution>
<id>default-cli</id>
<goals>
<goal>scan</goal>
<goal>analyze</goal>
</goals>
<configuration>
<warnOnSeverity>INFO</warnOnSeverity>
<failOnSeverity>MAJOR</failOnSeverity>
<embeddedListenAddress>0.0.0.0</embeddedListenAddress>
</configuration>
</execution>
</executions>
</plugin>
似たような経験をした人はいますか?ブラウザー (利用可能なすべて) の一部の企業設定が websocket をブロックしているように思えます。これを回避する方法はありますか。現時点での私の唯一の回避策は、専用の Neo4j インスタンスを使用することです。これにより、開発セットアップが複雑になり、これを回避したいと考えています。
さらなる分析:
ブラウザポートを確認すると、リッスンしていることがわかります
netstat -a | findstr 7474
TCP 0.0.0.0:7474
TCP [::]:7474
一方、ボルトポートは利用できません
netstat -a | findstr 7687