Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 543 by
roland...@gmail.com: Exceptions on reconnect
http://code.google.com/p/openintents/issues/detail?id=543
What steps will reproduce the problem?
1. Connect to SensorSimulator, read some data, disconnect
2. Connect again.
What is the expected output? What do you see instead?
There are few problems with reconnect. Sometimes application hangs,
especially when no "Disconnect()" is logged in the LogCat console. Even if
reconnecting after this log message was received the client crashes with
couple of the exceptions.
First:
05-31 12:01:16.871: E/AndroidRuntime(607): java.lang.NumberFormatException:
Invalid int: "0.0"
05-31 12:01:16.871: E/AndroidRuntime(607): at
java.lang.Integer.invalidInt(Integer.java:138)
05-31 12:01:16.871: E/AndroidRuntime(607): at
java.lang.Integer.parse(Integer.java:375)
05-31 12:01:16.871: E/AndroidRuntime(607): at
java.lang.Integer.parseInt(Integer.java:366)
05-31 12:01:16.871: E/AndroidRuntime(607): at
java.lang.Integer.parseInt(Integer.java:332)
05-31 12:01:16.871: E/AndroidRuntime(607): at
org.openintents.sensorsimulator.hardware.SensorSimulatorClient.readSensor(SensorSimulatorClient.java:664)
05-31 12:01:16.871: E/AndroidRuntime(607): at
org.openintents.sensorsimulator.hardware.SensorSimulatorClient.readSensor(SensorSimulatorClient.java:571)
05-31 12:01:16.871: E/AndroidRuntime(607): at
org.openintents.sensorsimulator.hardware.SensorSimulatorClient.access$1000(SensorSimulatorClient.java:53)
05-31 12:01:16.871: E/AndroidRuntime(607): at
org.openintents.sensorsimulator.hardware.SensorSimulatorClient$1.handleMessage(SensorSimulatorClient.java:505)
Second:
05-31 11:46:11.996: E/AndroidRuntime(4444):
java.util.ConcurrentModificationException
05-31 11:46:11.996: E/AndroidRuntime(4444): at
java.util.ArrayList$ArrayListIterator.next(ArrayList.java:569)
05-31 11:46:11.996: E/AndroidRuntime(4444): at
org.openintents.sensorsimulator.hardware.SensorSimulatorClient$1.handleMessage(SensorSimulatorClient.java:495)
Not telling about the threading issues in the latest Android SDK.
SensorSimulator demo code works only after disabling StrictMode:
StrictMode.setThreadPolicy(new
StrictMode.ThreadPolicy.Builder().permitAll().build());
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings