Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

IllegalArgumentException in ConnectionStateChange.java: previous and current state are: DISCONNECTED

オープン
#218 コメント 2 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
android, java
領域
mobile, networking

調査の方向性

The exception comes from the guard in ConnectionStateChange.java, which rejects a state update where previous and current are both DISCONNECTED. The caller is WebSocketConnection.updateState (around line 155), reached from the run method near line 322. Start by reading the guard and the code that decides which state to pass, then find out how a DISCONNECTED-to-DISCONNECTED update happens on Android 9. Done means that path no longer throws, or is skipped on purpose, and a test covers that transition. The issue does not say which behaviour is wanted, so ask the maintainers first.

索引モデルが issue の本文から書いたものです。

説明

bug

Hi there,

I got a crash in ConnectionStateChange
using implementation 'com.pusher:pusher-java-client:2.0.0'

All crashes are happening on Android 9 systems and the previous and current state are always DISCONNECTED.

java.lang.IllegalArgumentException: Attempted to create an connection state update where both previous and current state are: DISCONNECTED
       at com.pusher.client.connection.ConnectionStateChange. + 4(ConnectionStateChange.java:4)
       at com.pusher.client.connection.websocket.WebSocketConnection.updateState + 155(WebSocketConnection.java:155)
       at com.pusher.client.connection.websocket.WebSocketConnection.access$200 + 27(WebSocketConnection.java:27)
       at com.pusher.client.connection.websocket.WebSocketConnection$8.run + 322(WebSocketConnection.java:322)
       at com.pusher.client.util.Factory$1.run + 109(Factory.java:109)
       at java.util.concurrent.ThreadPoolExecutor.runWorker + 1167(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run + 641(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run + 764(Thread.java:764)
主要言語
Java
スター
315
フォーク
140
平均マージ
11日 5時間
マージ済み PR(30日)
4

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pusher/pusher-websocket-java のほかの issue

pusher/pusher-websocket-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。