Bluetooth PC side problem - nxtComm.search ?

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: roger, 99jonathan, imaqine

Bluetooth PC side problem - nxtComm.search ?

Postby ciborro » Tue Dec 20, 2011 11:08 am

Hi,

Thanks a lot for lejos:), in my opinion is best documented language for NXT.

I'm almost green in java, and I have got problem.
Code should me best explanation:
Code: Select all
package mPackage;

import lejos.nxt.*;
import lejos.pc.comm.*;

public class PcInitiator {


   public static void main(String[] args) throws NXTCommException
   {
      NXTComm nxtComm = NXTCommFactory.createNXTComm(NXTCommFactory.BLUETOOTH);
      NXTInfo[] nxtInfo = nxtComm.search("NXT",NXTCommFactory.BLUETOOTH);
      
      System.out.printf("nxtInfo length : %d\n",nxtInfo.length);
   }
}


After run are two ways, when NXT brick is off, program ends without errors, but when NXT brick is on:

Code: Select all
BlueCove version 2.1.0 on mac
Found: NXT
2011-12-20 11:55:52.180 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x114150 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.183 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x114300 of class NSCFString autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.184 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1143a0 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.184 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x114460 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.184 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x114570 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.184 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x117750 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.184 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x117aa0 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.184 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x13079a0 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.185 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x13079a0 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.185 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x13079a0 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.185 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x13079a0 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.185 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x13079a0 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.231 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x117aa0 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.232 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x117aa0 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.232 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x117aa0 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.232 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1303170 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.232 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1302610 of class NSCFString autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.233 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1303c60 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.233 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1303ba0 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.233 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1306a40 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.234 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1306a70 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.234 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1306950 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.234 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x117aa0 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.234 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x117aa0 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.235 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x117aa0 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.235 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x117aa0 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.235 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x117aa0 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.235 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1306950 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.236 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1306950 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.236 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1306950 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.236 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1306fb0 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.236 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1307270 of class NSCFString autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.236 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1306820 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.237 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1307dd0 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.237 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1307c80 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.237 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1308170 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.237 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1308120 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.237 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1306950 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.237 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1306950 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.238 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1306950 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.238 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1306950 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:52.238 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1306950 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:53.302 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1306b60 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:53.302 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1307db0 of class NSCFString autoreleased with no pool in place - just leaking
2011-12-20 11:55:53.303 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1307610 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:53.303 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x13062c0 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:53.303 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1308670 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:53.303 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x13087c0 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2011-12-20 11:55:53.303 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x1308520 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:53.304 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x12e01270 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:53.304 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x12e01270 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:53.304 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x12e01270 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:53.304 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x12e01270 of class NSCFArray autoreleased with no pool in place - just leaking
2011-12-20 11:55:53.304 java[578:a07] *** __NSAutoreleaseNoPool(): Object 0x12e01270 of class NSCFArray autoreleased with no pool in place - just leaking
nxtInfo length : 1
BlueCove stack shutdown completed


Do you have any ideas?

Regards Przemek.
ciborro
New User
 
Posts: 5
Joined: Tue Dec 20, 2011 11:00 am

Re: Bluetooth PC side problem - nxtComm.search ?

Postby Shawn » Thu Dec 22, 2011 1:07 am

Hi,

I suspect it is a bluecove issue and related to this bug http://code.google.com/p/bluecove/issues/detail?id=101
User avatar
Shawn
Advanced Member
 
Posts: 723
Joined: Wed Sep 12, 2007 4:59 am
Location: Tokyo

Re: Bluetooth PC side problem - nxtComm.search ?

Postby ciborro » Thu Dec 22, 2011 9:17 am

Shawn wrote:Hi,

I suspect it is a bluecove issue and related to this bug http://code.google.com/p/bluecove/issues/detail?id=101


Hi Shawn,

Thank you for information. Unfortunately I have no choice on my mac:/ I must use bluecove.

Regards Przemek.
ciborro
New User
 
Posts: 5
Joined: Tue Dec 20, 2011 11:00 am

Re: Bluetooth PC side problem - nxtComm.search ?

Postby methezer » Thu Sep 06, 2012 3:01 am

I realize this thread is almost 9 months old but I've run across this same problem.
I have added the following to main() as many of the users suggested on the link that shawn kindly provided and everything seems to work fine now.
Code: Select all
Toolkit.getDefaultToolkit();


I don't know if this "fix" will cause any problems down the line but it seems ok for now.
methezer
New User
 
Posts: 1
Joined: Thu Sep 06, 2012 2:46 am


Return to NXJ Software

Who is online

Users browsing this forum: bczm8703 and 2 guests

more stuff