[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: java xAPlib bug
Caused by hard coded references to 'xap-header'
Some/most xAP apps identify the header as 'xAP-header'
Oh well
Shaf Ali wrote:
> Anyone still use this lib ? (http://patrick.lidstone.net/haweb/java.htm)
>
> Thought I'd give my Java some oiling the trace is at the bottom.
>
> Here's the breakpoint
>
> this xAPParser (id=20) gBlockCursor null
> gNVBlockCursor null iMessageItems HashMap<K,V>
(id=33)
> aNVPair xAPNameValuePair (id=24) iBlock
"xAP-header"
> count 10 hash -1579644813 offset 0
> value char[11] (id=48) iName "hop"
iValue
> "1" iNVPairSet null
> Heres the quick hack I'll see what the cause is.
>
> xAPMessageObject.java
>
> // block must now exist, add pair
> // 20070226 shaf hack : hmmm I wouldn't be too sure if I were
you
> // iNVPairSet.add(aNVPair);
> if (iNVPairSet != null) {
> iNVPairSet.add(aNVPair); }
>
>
> =========== Got a xAP message
> Null source
> Null class
> firstblock = [xap-hbeat]
> =========== End xAP message
>
> [xap-header] debug[name] : v
> [xap-header] debug[valu] : 12
> [xap-header] debug[name] : hop
> [xap-header] debug[valu] : 1
> [xap-header] debug[name] : uid
> [xap-header] debug[valu] : FF342300
> [xap-header] debug[name] : Class
> [xap-header] debug[valu] : Web.Service
> [xap-header] debug[name] : Source
> [xap-header] debug[valu] : mi4.news.FRESH
> [Server.Start] debug[name] : Name
> [Server.Start] debug[valu] : News
> [Server.Start] debug[name] : Desc
> [Server.Start] debug[valu] : News feed viewer
> Exception in thread "Thread-0"
java.lang.NullPointerException
> at
> xAPlib.xAPMessageObject.addNameValuePair(xAPMessageObject.java:58)
> at xAPlib.xAPParser.<init>(xAPParser.java:104)
> at ListenAndParse$1.myEventOccurred(ListenAndParse.java:40)
> at xAPlib.xAPNetwork.fireMyEvent(xAPNetwork.java:69)
> at xAPlib.xAPNetwork.run(xAPNetwork.java:140)
>
>
>
xAP_Development Main Index |
xAP_Development Thread Index |
xAP_Development Home |
Archives Home
|