Hi Han-Lin, all,

I opened a bug ticket on jira about this crash.

When app calls OcRepresentation.getValueBool(), android sends SIGABRT and
abort the app.

If you modify all the example converting the light state from boolean to
integer, it works fine.

BR.

2015-04-10 14:56 GMT-03:00 Han-Lin Li <astereae at gmail.com>:

> The library files(*.so) of client and server are both from master
> branch. Client is built for linux and Server is built for Android.
>
> btw, if I use android/examples/simpleclient as APP client and
> resource/examples/simpleclient as linux server, it works.
>
> If I use android/examples/simpleclient as APP client and
> android/examples/simpleserver as APP server, the client crashed in the
> same point as linux client.
>
> 2015-04-11 1:37 GMT+08:00 Kourt, Tim A <tim.a.kourt at intel.com>:
> > Hi Han-Lin,
> >
> > Could you please confirm that the client and server are build form the
> same codebase?
> >
> > Thank you,
> > Tim
> >
> > -----Original Message-----
> > From: iotivity-dev-bounces at lists.iotivity.org [mailto:
> iotivity-dev-bounces at lists.iotivity.org] On Behalf Of Han-Lin Li
> > Sent: Thursday, April 9, 2015 9:01 PM
> > To: iotivity-dev at lists.iotivity.org
> > Subject: [dev] response of android-api server is not correct
> >
> > I use android/examples/simpleserver in android-api branch as server and
> found it won't send response correctly.
> > It seems the COAP_OPTION_URI_PATH is a random string.
> >
> >
> > Here is client debug log.
> >
> > Apr 09 20:43:56 DEBG set data to 0x7f6604011381 (pdu ends at
> 0x7f66040113be)
> > v:1 t:1 tkl:8 c:64 id:17669 o: [
> > 11:'\xA4$\xAC\xF4`$\xAC\xF4\x80\xE2\xB5\xF4', 12:'\x32',
> 14:'\xFF\xFF\x02\x00' ] d:{"oc":[{"rep":{"name":"John's
> > light","power":0,"state":0}}]}\x00
> > INFO: OCCoAP: This is a Unicast<============
> > DEBUG: OCCoAPHelper: ^^^^^^^^^^^^Parsing the max age option 196607
> > DEBUG: OCCoAPHelper: ^^^^^^^^^^^^The final parsed uri is /?$??`$????
> > DEBUG: OCCoAPHelper: ^^^^^^^^^^^^The final parsed query is (null)
> > DEBUG: OCCoAP: The sequenceNumber/NONCE of this response 2
> > DEBUG: OCCoAP: The maxAge/TTL of this response 196607
> > DEBUG: OCCoAP: The response received is {"oc":[{"rep":{"name":"John's
> light","power":0,"state":0}}]}
> > INFO: OCCoAP: Received a pdu with Token
> > INFO: OCCoAP: 25 27 25 2F 11 28 74 0B
> > INFO: occlientcb: comparing tokens
> > INFO: occlientcb: 25 27 25 2F 11 28 74 0B
> > INFO: occlientcb: 7F A2 39 6C 55 E7 BF FE
> > INFO: occlientcb: comparing tokens
> > INFO: occlientcb: 25 27 25 2F 11 28 74 0B
> > INFO: occlientcb: 25 27 25 2F 11 28 74 0B
> > INFO: OCCoAP: Received a regular response
> > INFO: OCStack: Entering HandleStackResponses (OCStack Layer)
> > INFO: OCStack: Calling into application address space
> > INFO: occlientcb: deleting tokens
> > INFO: occlientcb: 25 27 25 2F 11 28 74 0B GET request was successful
> Resource URI:
> > Exception: boost::bad_get: failed value get using boost::get in onGet
> _______________________________________________
> > iotivity-dev mailing list
> > iotivity-dev at lists.iotivity.org
> > https://lists.iotivity.org/mailman/listinfo/iotivity-dev
> _______________________________________________
> iotivity-dev mailing list
> iotivity-dev at lists.iotivity.org
> https://lists.iotivity.org/mailman/listinfo/iotivity-dev
>



-- 
*Davi Di?rio Mendes*
Eng. de Computa??o - Turma de 2011
Universidade de S?o Paulo - EESC/ICMC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150415/dabb67d1/attachment.html>

Reply via email to