Subject: [NEXTEL-1] Re: Nullpointerexeption in Whiteboard

From: "Juliet" <[email-masked]>
Date: Tue, 26 Nov 2002 20:24:19 -0000

Guess it starts with the connectionManager, which needs the other 
objects and their methods of the underlying Bluetooth layers. Do you 
have the source code, then you can try to debug it, else it makes no 
sense to worry about classes or objects or instances of a running 
application. Guess it is no simple Java script or Applet which is 
stored e.g. as a .js file in the same directory.... (this was just in 
former dynamic websites, where people did not consider an own script 
directory and restricting thus server region to several registered 
users.)

Although I cannot program Java, it is a conceptual topic, but may 
rely on threads too.

:) Juliet

On Mon, 25 November 2002, Ong Ken Lun wrote:

> 
> <html><body>
> 
> 
> <tt>
> Thanx for the replies... but erm..<BR>
> <BR>
> I check the for any null values just to make sure<BR>
> again. I am pretty sure that there is nothing wrong<BR>
> with the values... <BR>
> <BR>
> I do follow your thinking that some how the opensearch<BR>
> failed. <BR>
> <BR>
> here is the exact error which i manage to get perhaps<BR>
> it would give a clearer idea...<BR>
> <BR>
> java.lang.NullPointerException<BR>
> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp; <BR>
> at<BR>
com.zucotto.net.bt.sdp.SDPClient.configInd&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
(Unknown Source)<BR>
> at 
com.zucotto.net.bt.l2cap.L2CAPlayer.a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp; (Unknown Source)<BR>
> at <BR>
> com.zucotto.net.bt.l2cap.L2CAPlayer.processACLPacket<BR>
> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
(Unknown Source)&nbsp; <BR>
> at<BR>
> com.zucotto.net.bt.gap.ConnectionManager.run<BR>
> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
(Unknown Source)<BR>
> at<BR>
> java.lang.Thread.run (Thread.java:479)<BR>
> <BR>
> Any help would really be good thanx a million...<BR>
> <BR>
> <BR>
>  --- &quot;Wm. Kenneth Steck&quot; &lt;[email-masked]&gt; wrote: 
&gt;<BR>
> &quot;Uncaught NullPointerException&quot; is a standard Java<BR>
> &gt; error meaning you are <BR>
> &gt; attempting to access an object that that is NULL. <BR>
> &gt; Most likely something <BR>
> &gt; during the opensearch failed but the code is<BR>
> &gt; attempting to access data <BR>
> &gt; anyway.<BR>
> &gt; <BR>
> &gt; Check for NULL's before you access any object in<BR>
> &gt; Java.<BR>
> &gt; <BR>
> &gt; Ong Ken Lun wrote:<BR>
> &gt; &gt; Hi People,<BR>
> &gt; &gt; <BR>
> &gt; &gt; I am currently playing around with the Whiteboard<BR>
> &gt; &gt; Development kit by Zucotto wireless.. <BR>
> &gt; &gt; <BR>
> &gt; &gt; The whiteboard SDK came with some examples on<BR>
> &gt; Rfcomm<BR>
> &gt; &gt; chat and L2CAP connection....<BR>
> &gt; &gt; <BR>
> &gt; &gt; So for those who have used the Zucotto Whiteboard<BR>
> &gt; SDK<BR>
> &gt; &gt; please try to help<BR>
> &gt; &gt; <BR>
> &gt; &gt; any help is appreciated..<BR>
> &gt; &gt; <BR>
> &gt; &gt; I used the RFCOMMChat Client example to try to<BR>
> &gt; connect<BR>
> &gt; &gt; to my PDA (PALM m515 with bluetooth card). I used<BR>
> &gt; the<BR>
> &gt; &gt; RFCOMM chat client example because i wanted the<BR>
> &gt; PDA to<BR>
> &gt; &gt; detect the RFCOMMchat client automatically and try<BR>
> &gt; &gt; make the client open a SDP search with the PDA.. <BR>
> &gt; &gt; <BR>
> &gt; &gt; My question is why when the RFCOMMChatClient<BR>
> &gt; attempts<BR>
> &gt; &gt; to open a search using sdpclient.opensearch()<BR>
> &gt; method<BR>
> &gt; &gt; it just says<BR>
> &gt; &gt; <BR>
> &gt; &gt; Uncaught NullPointerException.<BR>
> &gt; &gt; <BR>
> &gt; &gt; Any Assistance would really be appreciated..<BR>
> &gt; &gt; <BR>
> &gt; &gt; Sincerely<BR>
> &gt; &gt; Ken<BR>
> &gt; &gt; <BR>
> &gt; &gt; <BR>
> &gt; &gt; __________________________________________________<BR>
> &gt; &gt; Do You Yahoo!?<BR>
> &gt; &gt; Play for a chance to win a trip to Sydney!<BR>
> &gt; &gt; <a 
href="http://sg.mobile.yahoo.com">http://sg.mobile.yahoo.com</a><BR>
> &gt; &gt; <BR>
> &gt; &gt; To maintain your subscription, go to:<BR>
> &gt; &gt; <BR>
> &gt; &gt; <a 
href="http://groups.yahoo.com/group/bluetooth">http://groups.yahoo.com
/group/bluetooth</a> <BR>
> &gt; &gt; <BR>
> &gt; &gt; Your use of Yahoo! Groups is subject to<BR>
> &gt; <a 
href="http://docs.yahoo.com/info/terms/">http://docs.yahoo.com/info/te
rms/</a> <BR>
> &gt; &gt; <BR>
> &gt; &gt; <BR>
> &gt; &gt; <BR>
> &gt; <BR>
> &gt; <BR>
> &gt; -- <BR>
> &gt;<BR>
> --------------------------------------------------------------------
--<BR>
> &gt; Ken Steck<BR>
> &gt; <BR>
> &gt; &quot;Maybe the story is none of our business.&quot; - Crow 
T.<BR>
> &gt; Robot MST3K<BR>
> &gt;<BR>
> --------------------------------------------------------------------
--<BR>
> &gt; <BR>
> &gt; <BR>
> &gt; To maintain your subscription, go to:<BR>
> &gt; <BR>
> &gt; <a 
href="http://groups.yahoo.com/group/bluetooth">http://groups.yahoo.com
/group/bluetooth</a> <BR>
> &gt; <BR>
> &gt; Your use of Yahoo! Groups is subject to<BR>
> &gt; <a 
href="http://docs.yahoo.com/info/terms/">http://docs.yahoo.com/info/te
rms/</a> <BR>
> &gt; <BR>
> &gt;&nbsp; <BR>
> <BR>
> __________________________________________________<BR>
> Do You Yahoo!?<BR>
> Play for a chance to win a trip to Sydney!<BR>
> <a 
href="http://sg.mobile.yahoo.com">http://sg.mobile.yahoo.com</a><BR>
> </tt>
> 
> <br>
> 
> <!-- |**|begin egp html banner|**| -->
> 
> <table border=0 cellspacing=0 cellpadding=2>
> <tr bgcolor=#FFFFCC>
> <td align=center><font size="-1" color=#003399><b>Yahoo! Groups 
Sponsor</b></font></td>
> </tr>
> <tr bgcolor=#FFFFFF>
> <td align=center width=470><table border=0 cellpadding=0 
cellspacing=0> <tr> <td align=center><font face=arial size=-
2>ADVERTISEMENT</font><br><a 
href="http://rd.yahoo.com/M=234081.2697735.4071966.1925585/D=egroupweb
/S=1707367878:HM/A=1327985/R=0/*http://ad.doubleclick.net/clk;4870024;
7586687;x?http://www.ameriquestmortgage.com/welcome.html?
ad=Yahoo01"><img 
src="http://us.a1.yimg.com/us.yimg.com/a/am/ameriquest/yahoo_300x250_c
lock.gif" alt="" width="300" height="250" 
border="0"></a></td></tr></table></td>
> </tr>
> <tr><td><img alt="" width=1 height=1 
src="http://us.adserver.yahoo.com/l?
M=234081.2697735.4071966.1925585/D=egroupmail/S=:HM/A=1327985/rand=914
017752"></td></tr>
> </table>
> 
> <!-- |**|end egp html banner|**| -->
> 
> 
> <br>
> <tt>
> To maintain your subscription, go to:<BR>
> <BR>
> <a 
href="http://groups.yahoo.com/group/bluetooth">http://groups.yahoo.com
/group/bluetooth</a></tt>
> <br>
> 
> <br>
> <tt>Your use of Yahoo! Groups is subject to the <a 
href="http://docs.yahoo.com/info/terms/">Yahoo! Terms of 
Service</a>.</tt>
> </br>
> </body></html>

------------------------ Yahoo! Groups Sponsor ---------------------~-->
·FREE Health Insurance Quotes-eHealthInsurance.com
http://us.click.yahoo.com/1.voSB/RnFFAA/46VHAA/61FxlB/TM
---------------------------------------------------------------------~->

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/