The following hack was made to ATHandler.java in smslib for Java v3.0.2 (Beta)distribution in order to send SMS from a Java SE PC desktop application using the GSM modem feature on a mobile phone (E65, N95 or P990i) connected to the PC via Bluetooth.
I actually remarked the 2 highlighted lines as these were the source of a vague error when I ran JUnit tests in Eclipse. While I'm not exactly sure what I "fixed" (if you can call it that), said error disappeared and the SMS went through. Wohoo !! :D
FYI, the code I used was actually derived directly from the examples given with smslib but funny enough it took the hack above to get them working on all those 3 phones I tested.