チケット #14051

DatagramSocket.receive() problem
登録: 2008-11-19 08:55 最終更新: 2008-11-19 08:56

報告者:
担当者:
チケットの種類:
状況:
完了
コンポーネント:
マイルストーン:
(未割り当て)
優先度:
5 - 中
重要度:
5 - 中
解決法:
修正済み
ファイル:
なし

詳細

While the code executes fine on my
x86 box, as when I run it on the handheld, it crashes with the following
error message:

Exception in thread "Thread-5" java.lang.IllegalArgumentException
at java.nio.Buffer.position(Buffer.java:203)
at gnu.java.nio.VMChannel.receive(Native Method)
at gnu.java.nio.VMChannel.receive(VMChannel.java:231)
at
gnu.java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:292)
at java.net.DatagramSocket.receive(DatagramSocket.java:602)
at UDPComm.run(UDPComm.java:40)
at java.lang.Thread.run(Thread.java:743)
at java.lang.VMThread.run(VMThread.java:120)

The error occurs when it enters m_socket.receive(dataPacket) (Line 40 of
attached java source) for the second time. The program is able to
receive the first UDP packet correctly without problem, however, when
the loop repeats itself, it consistently crashes in the same place.

チケットの履歴 (1 件中 1 件表示)

2008-11-19 08:56 更新者: freebeans
  • 状況オープン から 完了 に更新されました
  • 解決法なし から 修正済み に更新されました
  • チケット完了時刻2008-11-19 08:56 に更新されました
コメント
Fixed.
Target milestone: 0.4.1

添付ファイルリスト

添付ファイルはありません

編集

このチケットにコメントを追加するには、ログインが必要です » ログインする