Creating Point-to-Multipoint connection using Bluetooth

Hi,
I have a problem with my application. It's supposed to be a part of a Bluetooth multiplayer game responsible for data exchange between devices. I created it based on the code from
[http://www.forum.nokia.com/info/sw.nokia.com/id/2b17fb6f-b9a4-4cd8-80fd-94b8251a048e/Games_Over_Bluetooth_v1_0_en.zip.html]
The part of the code responsible for detecting devices and connecting with them works just fine both on the emulator and real devices. The data exchange works perfectly on my Netbeans 6.5.1 and WTK 2.5.2 in the default emulator, but the problems arise when try to run it on SE C905, Nokia N73 and Nokia 5530 XpressMusic (it doesn't work even between any two devices).
The data exchange should look like this:
1. Send data from clients to the server -> 2. server receives the data -> 3.Server sends combined data from all clients to each client-> 4. clients receive the combnied data -> go back to 1.
The problem on the real devices is that the connection is opened but data is not exchanged. The first piece of data is sent from the client and received by the server, but after that nothing gets received.
It gets lost somewhere... The data is exchanged in DataExchange inner class
I would be very grateful for any help
Here's my code:
Client:
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import javax.bluetooth.*;
import javax.microedition.io.*;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
* @author Zawada
public class MultiClient extends MIDlet implements CommandListener {
    private Display display;
    private Form clientForm;
    private Command exitCommand;
    private LocalDevice local_device;
    private DiscoveryAgent disc_agent;
    private String service_UUID;
    private String player_name;
    private String url;
    private StreamConnectionNotifier notifier;
    private StreamConnection con;
    private InputStream is;
    private OutputStream os;
    private boolean isConnectionActive = false;
    private String message = "5678";
    private Thread dataExchange;
    public MultiClient() {
        display = Display.getDisplay(this);
        clientForm = new Form("Bluetooth Client");
        clientForm.append("Application started\n\n");
        exitCommand = new Command("Exit", Command.EXIT, 1);
        clientForm.addCommand(exitCommand);
        clientForm.setCommandListener(this);
    public void startApp() {
        display.setCurrent(clientForm);
        try {
            setUpClient();
        } catch (IOException ex) {
            ex.printStackTrace();
    public void pauseApp() {
    public void destroyApp(boolean unconditional) {
        isConnectionActive = false;
        if (is != null & os != null & con != null) {
            try {
                // Multiplayer session is stopped: Disconnect the devices
// close input stream
                is.close();
// close output stream
                os.close();
// Close connection
                con.close();
            } catch (IOException ex) {
                ex.printStackTrace();
        notifyDestroyed();
    public void commandAction(Command c, Displayable d) {
        if (c == exitCommand) {
            destroyApp(true);
    private void setUpClient() throws IOException {
        try {
            // Obtain local device object
            local_device = LocalDevice.getLocalDevice();
// Obtain discovery agent object
            disc_agent = local_device.getDiscoveryAgent();
// Set device into limited access mode. Inquiry scan
// will listen only to LIAC.
            local_device.setDiscoverable(DiscoveryAgent.GIAC);
// Do the service search on all found devices.
// Note: don’t use this UUID in your own MIDlets.
// You have to create an own UUID for each MIDlet that you write:
            service_UUID = "F0E0D0C0B0A000908070605040302010";
// Retrieve players name
// This could be a name that user has modified and stored to
// non-volatile memory. As default (when game is first started)
// the local friendly name could be chosen.
            player_name = "Ziom";//local_device.getFriendlyName();
// Open connection, note: name is attribute ID 0x0100
            url = "btspp://localhost:" + service_UUID + ";name=" + player_name;
            notifier = (StreamConnectionNotifier) Connector.open(url);
// Wait on someone to connect (note: you can cancel this wait
// only if you call notifier.close() from another thread.
// This is important if you want to offer a UI for the user
// to cancel connections setup.)
            con = (StreamConnection) notifier.acceptAndOpen();
// open input stream
            is = con.openInputStream();
// open output stream
            os = con.openOutputStream();
            clientForm.append("Connection opened\n");
// Devices are connected now:
// Run the game / exchange data ...
            dataExchange = new DataExchange();
            dataExchange.start();
        } catch (BluetoothStateException ex) {
            ex.printStackTrace();
    private class DataExchange extends Thread {
        private byte[] sentData;
        private byte[] receivedData;
        public DataExchange() {
            isConnectionActive = true;
        public void run() {
            int j = 0;
            while (isConnectionActive == true) {
                try {
                    sentData = message.getBytes();
                    os.write(sentData);
                    System.out.println("data written: " + new String(sentData));
//                        clientForm.append("Data sent\n");
                    int lengthavai = 0;
                    //wait till having received data from the server
                    while ((lengthavai = is.available()) <= 0) {
//                        clientForm.append("Waiting for data\n");
                    receivedData = new byte[lengthavai];
                    int length = is.read(receivedData);
                    System.out.println("data read: " + new String(receivedData));
                    clientForm.append(new String(receivedData));
                } catch (IOException ex) {
                    clientForm.append("IO ex\n");
                    ex.printStackTrace();
                j++;
}

Server:
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Enumeration;
import java.util.Vector;
import javax.bluetooth.*;
import javax.microedition.io.Connector;
import javax.microedition.io.StreamConnection;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
* @author Zawada
public class MultiServer extends MIDlet implements CommandListener {
    private Display display;
    private Form serverForm;
    private Command exitCommand;
    private LocalDevice local_device;
    private String url;
    private StreamConnection[] con;
    private InputStream[] is;
    private OutputStream[] os;
    private String message = "1234";
    private boolean isConnectionActive = false;
    private UUID[] u;
    private int numberOfClients;
    private Thread dataExchange;
    public MultiServer() {
        display = Display.getDisplay(this);
        serverForm = new Form("Bluetooth Server");
        serverForm.append("Application started\n\n");
        exitCommand = new Command("Exit", Command.EXIT, 1);
        serverForm.addCommand(exitCommand);
        serverForm.setCommandListener(this);
    public void startApp() {
        display.setCurrent(serverForm);
        System.out.println("5678".getBytes().length);
        try {
            setUpServer();
        } catch (BluetoothStateException ex) {
            serverForm.append("BT ex\n");
            ex.printStackTrace();
        } catch (InterruptedException ex) {
            serverForm.append("Interr ex\n");
            ex.printStackTrace();
        } catch (IOException ex) {
            serverForm.append("IO ex\n");
            ex.printStackTrace();
    public void pauseApp() {
    public void destroyApp(boolean unconditional) {
        isConnectionActive = false;
// Multiplayer session is stopped: Disconnect the devices
        for (int i = 0; i < numberOfClients; i++) {
            try {
                if (is != null & os != null & con != null) {
// close input stream
                    is.close();
// close output stream
os[i].close();
// Close connection
con[i].close();
} catch (IOException ex) {
ex.printStackTrace();
notifyDestroyed();
public void commandAction(Command c, Displayable d) {
if (c == exitCommand) {
destroyApp(true);
private void setUpServer() throws BluetoothStateException, InterruptedException, IOException {
// Obtain local device object
local_device = LocalDevice.getLocalDevice();
// Obtain discovery agent object
DiscoveryAgent disc_agent = local_device.getDiscoveryAgent();
// Disable page scan and inquiry scan
local_device.setDiscoverable(DiscoveryAgent.NOT_DISCOVERABLE);
// create inquiry listener object
InquiryListener inq_listener = new InquiryListener();
synchronized (inq_listener) {
// start a limited access inquiry and install inquiry listener
disc_agent.startInquiry(DiscoveryAgent.GIAC, inq_listener);
serverForm.append("Inquiry started\n");
// Wait
inq_listener.wait();
serverForm.append("Inquiry ended\n");
// Do the service search on all found devices
u = new UUID[1];
// Note: don’t use this UUID in your own MIDlets.
// You have to create an own UUID for each MIDlet that you write:
u[0] = new UUID("F0E0D0C0B0A000908070605040302010", false);
int attrbs[] = {0x0100};
// Retrieved service record should include player
// name (service name)
Enumeration devices = inq_listener.cached_devices.elements();
serverForm.append("Number of devices found: " + inq_listener.cached_devices.size() + "\n");
ServiceListener serv_listener = new ServiceListener();
while (devices.hasMoreElements()) {
synchronized (serv_listener) {
// on each device do a service search
disc_agent.searchServices(attrbs, u, (RemoteDevice) devices.nextElement(), serv_listener);
serverForm.append("Service inquiry started\n");
// Wait
serv_listener.wait();
serverForm.append("Service inquiry ended\n");
// Now all devices which offer the requested service (game)
// can be found in the serv_listener.FoundServiceRecord list.
// This list would now be presented to the user and user can filter
// this list/ select one or more devices to connect to.
// Or in other words: remove all devices from FoundServiceRecords
// list that you don't want to connect to.
// Here we just print all the (remote) player names
numberOfClients = serv_listener.FoundServiceRecords.size();
serverForm.append("Number of clients: " + numberOfClients +"\n");
String player_name;
for (int i = 0; i < numberOfClients; i++) {
// Retrieve player name which is contained as service name
// (0x0100) in the service record
player_name = (String) ((ServiceRecord) serv_listener.FoundServiceRecords.elementAt(i)).getAttributeValue(
0x0100).getValue();
// print name
System.out.println(player_name);
// After filtering these devices will be connected:
con = new StreamConnection[numberOfClients];
is = new InputStream[numberOfClients];
os = new OutputStream[numberOfClients];
for (int i = 0; i < numberOfClients; i++) {
// Retrieve url for one device/service
url = ((ServiceRecord) serv_listener.FoundServiceRecords.elementAt(i)).getConnectionURL(ServiceRecord.AUTHENTICATE_ENCRYPT, false);
// Open connection
con[i] = (StreamConnection) Connector.open(url);
// open input stream
is[i] = con[i].openInputStream();
// open output stream
os[i] = con[i].openOutputStream();
serverForm.append("Connection " + i + " opened\n");
// Devices are connected now:
// Run the game / exchange data ...
dataExchange = new DataExchange();
dataExchange.start();

Similar Messages

  • Ad Hoc connection using Bluetooth

    Hi,
    Is it possible to create a Ad Hoc connection using a Bluetooth Dongle, I have no idea about Ad Hoc & Infrastructure Modes, So can anybody tell me if it is possible to create Ad Hoc wireless connection using Bluetooth Dongle ?
    I wanted to use WLAN in my Nokia N96, I don't have a Wireless Router. I have read a few articles about Ad Hoc connections, What I assume is..A WLAN connection can be created without a WiFi Router. Is it possible ?  If "yes" can anybody tell me the steps ?
    Thanks & Regards
      Sujay Kumar

    If you have a wired (LAN) accesspoint you can set up a Internet Connection Sharing with a PC or laptop and your phone. They both need WLAN. Look at this setup for XP.
    http://support.microsoft.com/kb/306126
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • How to create a DSN Less Connection using MySQL

    Hi All
    How to create a DSN Less Connection using MySQL?
    http://www.caucho.com/projects/jdbc-mysql/index.xtp and downloaded Caucho driver and installed the jar ---- caucho-jdbc-mysql-0.2.7.jar in my classpath..
    this is how i embedded the code
    try
    driver = (Driver) Class.forName("com.caucho-jdbc-mysql-0.2.7.Driver").newInstance();
    catch (Exception e)
    lastErr = "Cannot load the driver, reason:"+e.toString();
    nothing seems to work with code..
    Unable to proceed..Any piece of code would be of great help..
    Thanks and regds
    Gautam

    According to the installation instructions for that driver:
    The driver is com.caucho.jdbc.mysql.Driver
    The url is jdbc:mysql-caucho://hostname:port/database
    You used something else for the driver name. So it doesn't work. By the way, I found those instructions here: http://www.caucho.com/projects/jdbc-mysql/

  • Error while creating a new DAC connection using connection type MSSQL

    Hi,
    I am trying to create a new DAC connection i.e. a new DAC repository in the SQL Server 2008 database.
    DAC version : 10.1.3.4.1
    Database : SQL Server 2008
    I have downloaded the sqljdbc4.jar file from the below link and placed it in the D:\orahome\10gR3_1\bifoundation\dac\lib folder.
    [http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774 ]
    I have entered all the details correctly for database name, database host, database port. I created a new Authentication file.
    I get the below error when I try to test the connection.
    MESSAGE:::MSSQL driver not available!
    EXCEPTION CLASS::: java.lang.IllegalArgumentException
    com.siebel.etl.gui.login.LoginDataHandler$LoginStructure.testConnection(LoginDataHandler.java:512)
    com.siebel.etl.gui.login.LoginDataHandler.testConnection(LoginDataHandler.java:386)
    com.siebel.etl.gui.login.ConnectionTestDialog$Executor.run(ConnectionTestDialog.java:290)
    ::: CAUSE :::
    MESSAGE:::com.microsoft.sqlserver.jdbc.SQLServerDriver
    EXCEPTION CLASS::: java.lang.ClassNotFoundException
    java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    java.security.AccessController.doPrivileged(Native Method)
    java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    java.lang.Class.forName0(Native Method)
    java.lang.Class.forName(Class.java:169)
    com.siebel.etl.gui.login.LoginDataHandler$LoginStructure.testConnection(LoginDataHandler.java:510)
    com.siebel.etl.gui.login.LoginDataHandler.testConnection(LoginDataHandler.java:386)
    com.siebel.etl.gui.login.ConnectionTestDialog$Executor.run(ConnectionTestDialog.java:290)
    The error seems to be a connectivity issue with SQL Server. Am I using the correct jar file?
    Please help me out in resolving this issue. Appreciate the help provided on this forum earlier.
    Thank You

    Add
    .\lib\sqljdbc4.jar
    at end of the line starting with SQLSERVERLIB in config.bat file
    Pls mark correct

  • Unable to Create a Content Repository Connection using 'socketssl'

    I'm trying to create a Content Repository Connection with RIDC Socket Type as "socketssl".
    I am not able to create the connection. The following are the parameters mentioned in Jdeveloper
    RIDC Socket Type : socketssl
    Server Host Name : <ip of the content server>
    Content Server Listener Port : 54444 (incoming SSL provider is configured in the content server)
    KeyStore File Location : patch of the client keystore
    KeyStore Password : password
    Private Key Alias : PrivateKey Alias Name
    Private Key password : password
    I get the below error. However I am able to use RIDC to connect to UCM using socketssl. This problem is seen only with jdeveloper.
    SEVERE: Submission[id=1, service=oracle.webcenter.content.jcr.login, resource=ucm] caught exception running task
    javax.jcr.RepositoryException: oracle.stellent.ridc.protocol.ProtocolException: java.net.SocketException: Software caused connection abort: recv failed
         at oracle.jcr.impl.ExceptionFactory.repository(ExceptionFactory.java:161)
         at oracle.stellent.jcr.IdcPersistenceManagerFactory.createPersistenceManager(IdcPersistenceManagerFactory.java:185)
         at oracle.jcr.impl.OracleRepositoryImpl.login(OracleRepositoryImpl.java:444)
         at oracle.vcr.jam.LoginTask.call(LoginTask.java:68)
         at oracle.vcr.jam.LoginTask.call(LoginTask.java:29)
         at oracle.webcenter.concurrent.Submission$2.run(Submission.java:484)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.webcenter.concurrent.Submission.runAsPrivileged(Submission.java:498)
         at oracle.webcenter.concurrent.Submission.run(Submission.java:424)
         at oracle.webcenter.concurrent.Submission$SubmissionFutureTask.run(Submission.java:888)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.runTask(ModifiedThreadPoolExecutor.java:657)
         at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.run(ModifiedThreadPoolExecutor.java:682)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: oracle.stellent.ridc.protocol.ProtocolException: java.net.SocketException: Software caused connection abort: recv failed
         at oracle.stellent.ridc.protocol.intradoc.HdaProtocol.readResponse(HdaProtocol.java:254)
         at oracle.stellent.ridc.IdcClient.sendRequest(IdcClient.java:165)
         at oracle.stellent.jcr.IdcPersistenceManagerFactory.createPersistenceManager(IdcPersistenceManagerFactory.java:171)
         ... 15 more
    Caused by: java.net.SocketException: Software caused connection abort: recv failed
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(SocketInputStream.java:129)
         at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
         at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:798)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.waitForClose(SSLSocketImpl.java:1523)
         at com.sun.net.ssl.internal.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:103)
         at com.sun.net.ssl.internal.ssl.Handshaker.sendChangeCipherSpec(Handshaker.java:689)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.sendChangeCipherAndFinish(ClientHandshaker.java:985)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:904)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:238)
         at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
         at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:893)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:753)
         at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
         at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
         at oracle.stellent.ridc.common.util.StreamUtil.readRawLine(StreamUtil.java:227)
         at oracle.stellent.ridc.common.util.StreamUtil.readLine(StreamUtil.java:254)
         at oracle.stellent.ridc.protocol.intradoc.HdaProtocol.readHeaders(HdaProtocol.java:453)
         at oracle.stellent.ridc.protocol.intradoc.HdaProtocol.readResponse(HdaProtocol.java:215)
         ... 17 more
    31/10/2011 2:14:29 PM oracle.webcenter.content.internal.dt.connection.wizard.AdapterConfigPanel validateConfig
    WARNING: Invalid Configuration Parameters
    javax.jcr.RepositoryException: oracle.stellent.ridc.protocol.ProtocolException: java.net.SocketException: Software caused connection abort: recv failed
         at oracle.jcr.impl.ExceptionFactory.repository(ExceptionFactory.java:161)
         at oracle.stellent.jcr.IdcPersistenceManagerFactory.createPersistenceManager(IdcPersistenceManagerFactory.java:185)
         at oracle.jcr.impl.OracleRepositoryImpl.login(OracleRepositoryImpl.java:444)
         at oracle.vcr.jam.LoginTask.call(LoginTask.java:68)
         at oracle.vcr.jam.LoginTask.call(LoginTask.java:29)
         at oracle.webcenter.concurrent.Submission$2.run(Submission.java:484)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.webcenter.concurrent.Submission.runAsPrivileged(Submission.java:498)
         at oracle.webcenter.concurrent.Submission.run(Submission.java:424)
         at oracle.webcenter.concurrent.Submission$SubmissionFutureTask.run(Submission.java:888)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.runTask(ModifiedThreadPoolExecutor.java:657)
         at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.run(ModifiedThreadPoolExecutor.java:682)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: oracle.stellent.ridc.protocol.ProtocolException: java.net.SocketException: Software caused connection abort: recv failed
         at oracle.stellent.ridc.protocol.intradoc.HdaProtocol.readResponse(HdaProtocol.java:254)
         at oracle.stellent.ridc.IdcClient.sendRequest(IdcClient.java:165)
         at oracle.stellent.jcr.IdcPersistenceManagerFactory.createPersistenceManager(IdcPersistenceManagerFactory.java:171)
         ... 15 more
    Caused by: java.net.SocketException: Software caused connection abort: recv failed
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(SocketInputStream.java:129)
         at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
         at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:798)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.waitForClose(SSLSocketImpl.java:1523)
         at com.sun.net.ssl.internal.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:103)
         at com.sun.net.ssl.internal.ssl.Handshaker.sendChangeCipherSpec(Handshaker.java:689)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.sendChangeCipherAndFinish(ClientHandshaker.java:985)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:904)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:238)
         at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
         at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:893)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:753)
         at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
         at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
         at oracle.stellent.ridc.common.util.StreamUtil.readRawLine(StreamUtil.java:227)
         at oracle.stellent.ridc.common.util.StreamUtil.readLine(StreamUtil.java:254)
         at oracle.stellent.ridc.protocol.intradoc.HdaProtocol.readHeaders(HdaProtocol.java:453)
         at oracle.stellent.ridc.protocol.intradoc.HdaProtocol.readResponse(HdaProtocol.java:215)
         ... 17 more
    Please let me know the valid Configuration Parameters?
    Thanks,
    Manjunath
    Edited by: 890922 on Oct 30, 2011 8:25 PM

    You need to supply the "Key Store Location", "Key Store Password", "Private Key Alias" and "Private Key Password' to use socketssl.
    Also please make sure that the content server has enabled "Use SSL". You can configure it using the enterprise manager.

  • I have Iphone 4 and im not able to connect using bluetooth

    please help in understanding how to connect/pair using bluetooth in Iphone4, as it keeps on searching and still no device is visible

    http://support.apple.com/kb/ht1664

  • Yoga 10 HD+ won't connect using bluetooth tethering

    My Yoga 10 HD+ is running KitKat. It pairs quite happily with my Samsung Galaxy Note 3. The bluetooth connection works well for transferring files/photos etc but will not work as a tethered internet connection.
    On the bluetooth connection there is an option to "Use this connection for internet access" which I have ticked, but still when I try it says I am offline and should switch on either my WiFi of 3G connection.
    It tethers and connects to the internet fine if I use WiFi as the connection between phone & tablet but the tablet just won't use the bluetooth connection to access the internet despite the ticked option to do so.
    Anybody got any ideas ?
    Come on Lenovo, let's get it sorted.

    This may not work for you, but it did for me. Just got mine as well, 10 HD+, and I had no working bluetooth. It would just keep searching and would stop after about 15 seconds. I had to do two restarts to fix my problem.
    I think all of those updates I had to do the moment I took it out of the box (3 if i remember) cause the issue. Again, it took TWO restarts, on the second restart when I tried the bluetooth it worked.
    After that I could connect to Bluetooth devices (tried on two diff. speakers) and I could recognize and stream music accordingly.
    Hope this helps!

  • Creating Peer to Peer connections using intermediate server

    I want to connect two clients (via TCP/IP sockets in Java). The clients can discover each other using an intermediate server. Once the clients discover each other, there should not be any involvement of the server.
    I made some study about this and found many people suggesting JXTA. But I'd like to create the protocol myself from scratch (because in future I might have to implement the same using WebSockets as well (when my client is a Browser)). Currently, my clients can be Desktop applications or mobile applications.
    My questions are:
    1. How will clients discover each other at the server? If the server sends the global IP address of the clients to each other, will that information be enough to create a peer-to-peer connection? What if the clients are on the same LAN network and the server is on a different WAN?
    2. Client have dynamic IP address. Can their IP change all of a sudden even if it has an active socket?
    3. Is peer-to-peer connection is reliable for transfer of non-continuous data (like in chat application)?
    [*NOTE*: by peer-to-peer connection I mean establishing a client-server TCP/IP socket connection by making one of the client as temporary socket-server]
    Thanks in advance.

    two clients (via TCP/IP sockets in Java). The clients can discover each other using an intermediate server.If you only have 2 clients, it's hardly worth putting a server between them; a client 'discovering' the server is as much work as one client discovering the other.

  • Difficult in connecting using bluetooth

    i have a ZINX USB BLUETOOTH DONGLE HAVING MODEL NO."ZX-BT2005"
    I AM TRY TO CONNECT NOKIA 2600 CLASSIC TO PC USING NOKIA PC SUIT 7.1 BY BLUETOOTH.
    but it shows msg "cannot use the connection type.check that all the needed hardware,software& drivers are awailable."
    this bluetooth is in working condition and work without pc suit. so please suggest me how can i solve this problem
    i am waiting.

    Just guessing here, but try turning off the Firewall for a test... could be some port is needed that's not open/listening.

  • How to create a dsn less connection using a jsp

    hi,
    presently i have created a web site using jsp..i used a dsn connection to access the database.i used the basic jdbc:odbc type one driver..the issue is that when i tried to webhost my website they told me that i have to use a dsn less connection ....code anyone refer me the code as to how i could a dsn less connection jsp...i am using a access database..

    Well Friend,
    This is not the right form to post this query i would advice u to post this query in the JDBC thread
    If U are not satisfied with the resolution provided below
    Howevr as per my experience
    If U wanna use DSN less Connection U may go ahead and use TYPE II/III/IV drivers which would be Application(database) specific in general.
    u wud have to include the driver specific .jar files (to load drivers) in your classpath for few specific type of drivers like thin/OCI/.......
    And it wud be different for different Databases U can easily get information and downloadables about those drivers from db vendors web portals.
    Just for U reference check the links below
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm
    http://forums.oracle.com/forums/thread.jspa;jsessionid=8d92200830de37db8191784349ff8c14cef5a6d94e36.e34QbhuKaxmMai0MaNeMb3aTbxz0?messageID=901133&#56112;&#56333;
    http://www.kitebird.com/articles/jdbc.html
    http://www.developer.com/java/data/article.php/3417381
    http://www.akadia.com/services/sqlsrv_jdbc.html
    http://www.thescripts.com/forum/thread182937.html
    Else where U can make use of Hibernate/ EJB/.....
    which would include support for Dbconnection internally.

  • Creating a reliable network connection using WiFi

    Hi there,
    I have 2 iMacs running Maverick. I have a home Wifi network and I am trying to create a reliable connection between the 2 computers.
    The wifi signal at both locations is strong although in 2 different buildings i.e. house and studio.
    I currently have them networked but is very unreliable and I am not sure if there is some type of sleep mode or something that cause them to stop communicating.
    Basically I go to Finder -> Go -> Connect to Server everytime I need to re-establish the connection.
    Ideally I would like the connection to be permanent and auto restore if connection is lost.
    Is this possible and could you walk me throught the steps and any settings I should be aware of?
    Thanks

    Contact with Zaitek coveraged and Communications solutions, they have a wide range of  VoIP service. I have been using their services at my office since a year ago. Nice
    http://www.zaitekdmv.com/

  • How to create database connection using DB2Driver in JDeveloper 10.1.2.1.0?

    I am trying to create a JDeveloper/Data Connection using com.oracle.ias.jdbc.db2.DB2Driver. The driver is registered from a User Libraries: DataDirect JDBC. I have the following class path for the library:
    E:\DataDirect\3.4\lib\YMdb2.jar;E:\DataDirect\3.4\lib\YMbase.jar;E:\DataDirect\3.4\lib\YMutil.jar
    I have no trouble configuring the connection but when I test it and I got ‘No suitable driver Vendor code 0’. What’s wrong? I have successfully created several database connections using Oracle thin driver. This is first time I am using a third party driver. Has any one successfully create a database connection using the com.oracle.ias.jdbc.db2.DB2Driver?

    Hi
    Since the error points to the unavailability of the driver class,can you double check your library claspath entries again.
    I just tried a DB2 connection using the following properties and the connection went through fine:
    Driver class name: com.oracle.ias.jdbc.db2.DB2Driver
    URL: jdbc:merant:db2://<host_name>:50000;DatabaseName=SAMPLE
    Thanks
    Prasanth

  • E50 using Bluetooth modem to connect IBM T41 via G...

    Ok, my E50 connscts fine to my laptop. Sync to Lotus notes calendar etc. I can connect laptop to the web using a USB cable and all works fine. However I would like to connect using Bluetooth but when I use PC Suite and use OTA I do not have a bluetooth modem listed as an option. I am using PC Suite 6.85.14.1 and have flashed my phone to latest level of firmware. Control Panel on XP shows the Bluetooth modem listed and diagnostics in properties appears to connect to it ok. Network connections list phone number as *99#, this is same as USB modem which works fine. Any ideas pls.

    Before starting ppp, modprobe ppp_generic - that will create the device, so mknod will not be necessary.

  • Aironet 1400 Point to Multipoint Bridging

    Hello Everybody
    I`m already desinging a Wireless Point to Multipoint Bridging with Aironet 1400. I was Wondering if on the Central point the 1400 should has a external omnidireccional anntena to support all the others bridges... that is: this AP will be the multipoint bridge.
    Could I use all the 1400 AP with integrated anntenas and get that the Central AP work in a multipoint configuration?
    Thanks in advance.

    Hi,
    Cisco Aironet 1400 has a model with integrated 22.5 dBi patch array antenna, the AIR-BR1410A-A-K9.
    The integrated radio and high-gain integrated patch array antenna is used in point-to-point links and the non-root nodes of point-to-multipoint networks.
    You can (need to) use the external omnidirectional AIR-ANT58G9VOA-N antenna type for your N-type root bridge unit (AIR-BR1410A-A-K9-N).
    Basically, these models are ideal for each other in both point-to-point & point-to-multipoint connectivity scenarios.
    Cisco 1400 N-type is recommended to use the following external antenna type:
    * 9.0 dBi vertically polarized omni antenna --> you need this
    * 9.5 dBi sector antenna with support for vertical or horizontal linear polarization
    * 28.0 dBi dish antenna with support for vertical or horizontal linear polarization
    ref: http://www.cisco.com/en/US/partner/products/hw/wireless/ps5279/products_data_sheet09186a008018495c.html
    Aironet 1400 Bridge Ref:
    http://www.cisco.com/en/US/partner/products/hw/wireless/ps5279/prod_technical_reference09186a0080184933.html
    Rgds,
    AK

  • VPN Issue when tethering using Bluetooth

    Hi all.
    I tether my laptop to my phone using USB, WiFi or Bluetooth as my primary internet connection (as I work remotely).
    My preference is to connect using Bluetooth (persistent connection, low power), however if I try to connect my laptop to the Cisco VPN, it doesn't work: the VPN connection seems to be made correctly, but I can't see the my work mail server, intranet or http proxy.
    If I connect using USB or WiFi, the VPN connects and everything work fine.
    I don't like USB because every time I need to take the phone from the dock to take a call or walk away from my computer, I lose internet and VPN and have to reconnect.
    I don't like WiFi because it uses too much battery.
    Can anyone suggest what could be causing this issue?
    Thanks!
    Ray

    Hi,
    Your best bet is to run wireshark on your workstation to see how the packets are being sent to the iphone. That will tell alot right off the bat. Also what are you running for your headend, is it an ios router or an ASA?
    thanks,
    Tarik Admani
    *Please rate helpful posts*

Maybe you are looking for

  • Error while creating a view and creating navigation link

    Hi, i created one view with one button and on click of button it has to navigate to DeleteOperationview.This is the exception i am getting while running. can u plz tell me where the problem might beee... com.sap.tc.webdynpro.services.exceptions.Creat

  • New Game App doesn't transfer to Touch

    Have a Touch with 2.0 software, just bought my first game app from Apples site... it downloaded into iTunes just fine, but I can't get it to transfer to my Touch. I've scoured all setting/Preferences and cannot find any setting for this. Any suggesti

  • Repaint() is not thread-safe?

    I saw a description that says repaint() is thread-safe in an old swing tutorial, but not in the current tutorial and its javadoc. So can I assume repaint() is not thread-safe and I should call it from EDT? ... Or if they are thread-safe, why does Sun

  • Can't start a New Project. Clicked New/Create. Then when I enter new project name and click CREATE

    nothing happens.

  • "cannot find symbol" error : method

    I'm playing with a sample serial port program and making some changes. I'm sure the error is painfully obvious, but I cannot resolve this: SimpleComm.java:122: cannot find symbol symbol : method SimpleComm() location: class SimpleComm public static v