Send & receive data over GPRS

Hi All !!!
I am developing a program to receive and send data over GPRS. A remote device is sending data at a particular port (6600) of my server. I am able to read that through ServerSocket. However I am not being able to send any data to that device.
Any help?

I am using the code:
// Constructor
public ServerSocketReader(Socket socket) {
super("MultiSocketThread");
this.clientSocket = socket;
this.setDaemon(true);
public void run() {
try {
OutputStream out = clientSocket.getOutputStream();
InputStreamReader in = new InputStreamReader(clientSocket.getInputStream ());
//BufferedWriter bw = new BufferedWriter(new FileWriter(_filepath, true));
java.util.Date date = new java.util.Date();
SimpleDateFormat sdf = new SimpleDateFormat("EEE, dd-MMM-yy HH:mm:ss");
GprsProtocol protocol = new GprsProtocol();
int charCount = 0;
char[] cBuffer = new char[1000];
byte[] bBuffer;
String fromClient = "", toClient = "START";
int ii = 0;
while ((ii = in.read()) != -1) {
fromClient = fromClient + (char)ii;
if (fromClient.endsWith("2Y")) { //according to protocol
toClient = protocol.processInput(fromClient); //Protocol
bBuffer = toClient.getBytes();
for (int k=0; k<bBuffer.length; k++) {
out.write ((char)bBuffer[k]);
out.flush();
fromClient = "";
out.close ();
in.close ();
clientSocket.close ();
//bw.close();
} catch (IOException ioe) {
//out.println("Error::" + e);
System.out.println("Error in writing file : ");
ioe.printStackTrace();
} catch (Exception e) {
System.out.println("Error in ServerSocketReader : ");
e.printStackTrace();
finally {
//this.destroy();
I am geeting the error at line :-
while ((ii = in.read()) != -1) {
the error is :-
java.net.SocketException: A connection with a remote socket was reset by that socket.: A connection with a remote socket was rese
by that socket.
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:104)
at java.net.SocketInputStream.read(SocketInputStream.java:82)
at java.io.InputStreamReader.fill(InputStreamReader.java(Compiled Code))
at java.io.InputStreamReader.read(InputStreamReader.java:256)
at java.io.InputStreamReader.read(InputStreamReader.java:229)
at ServerSocketReader.run(ServerSocketReader.java(Compiled Code))

Similar Messages

  • Send/receive data without a terminating character

    I am trying to use the visa driver to send hex data over a serial port. I have tried to disable terminating characters but when I read from the port the trasnmission still terminates with a 0x0A character. How can I send/receive data without a terminating character???

    You need to call viSetAttribute with VI_ATTR_ASRL_END_IN set to VI_ASRL_END_NONE. In LabVIEW, use a write property node with the Serial End In mode set to None (0).
    Dan Mondrik
    Senior Software Engineer, NI-VISA
    National Instruments

  • I need to find out how much wifi data my apps are using. I have a very limited amount of wifi data, and I am exceeding my monthly allowance. Apparently, even apps I think are not open are sending/receiving data through the wifi and using up my allowance.

    I need to find out how much wifi data my apps are using. I am on a very limited amount of WiFi data each month, which I am regularly exceeding. I have been told to work out which of my apps is using the data. Also, I think I have closed an app by double clicking the home button, then swiping the app up - is this the way to close it, or will it still be sending/receiving data?

    Go into your Settings : General : and turn off background refresh for your apps.  In Settings : Mail  turn Fetch new data to OFF and Load Remote Images to OFF.  This will mean that Mail will only check for messages when you actually use it, and all your advertising junk mail won't have all the images in it.
    Turn off push notifications every chance you get.
    Make sure you are actually quitting apps:  to quit apps press the Home button twice and you should see a bunch of smaller screen images for every open app.  To quit the app swipe from the screen image (not the icon) upward off the top of the iPad.  You can swipe left and right to see more open apps, but there must be no left-right movement on the screen when you swipe upward to close the app.
    Turn off your internet connection when you do not need it.  The easiest way to do this is to swipe up from the bottom of you screen to get the control centre, and then touch the airplane to turn on airplane mode.  You can repeat this sequence to turn it back on again when you need it.  Most especially turn airplane mode on whenever you are sleeping your iPad for long periods.  This will save battery life too.  OR actually turn your iPad off - which means holding the power key down for several seconds until the red swipe bar appears, and then swipe to turn it off.  If you go this route, note that it will take longer to turn on then it takes to wake from sleep.

  • SCOM SQL Query to find Mail Latency (Send/ Receive) Data.

    Hi,
    I unable to find Mail Latency (Send/ Receive) Data in SCOM 2012 SQL Query.
    need your help to find SQL query that fetches below details
    1. Average Time for Accessing Mailbox.
    2. Average Time to Send and Receive Mail.
    Regards,
    Vinoth Kumar.

    Hi Vinoth
    There are no specific tables storing the mailbox related data.
    To find information about Exchange in SCOM you need the Exchange management pack for the version of Exchange you are running, as well as monitoring the Exchange servers.
    When that has been done you can find reports and performance views for Exchange.
    I am unsure if you can find this specific information for Exchange in SCOM, i would look into the management pack. If you cannot find the information, i suggest you consult your Exchange administrator to get this information.
    www.coretech.dk - blog.coretech.dk

  • How to send joystick data over TCP connection

    Hi all,
    I am a long time Labview discussion forum user for learning, but this is my first time posting a question, I hope somebody can help me!
    In the attached VI I am trying to send data from a joystick over a TCP connection. I can send data fine using the TCP examples (in fact the majority of my VI is just a copy of the example). However I am to the point where I do not know how to send all the data necessary (3 axis data, 12 buttons, and the POV data) over TCP. Strings, clusters, and arrays were never my strong suite and converting between them is a nightmare for me.
    Basically I am trying to send each axis data (X,Y, and Z), button data (12 buttons), and POV data (the POV data will be calculated to adjust the position of a camera, so the immediate data is not important, I will add functions to add the change in the button movements to write a standing position for two servos [pan and tilt], for which that I will need to send over the TCP connection) over the TCP connection to control various cameras and motors. I don't know if it is posible to send that much data over a TCP connection in one write VI through a string, and also how to separate the string on the other side in order to control the client VI.
    Again, the actual TCP communication I get, and can operate fine, just formatting all the data into a string (or whatever is required) so that I can unpack on the other side is the issue here.
    Another question I have (not impotant to get the program running just might make it easier on me) is can a TCP server (which sends the data to the client) also recieve data back from the client on the same port ( for example sensor data and digital positions [on,off])? Or do I need to set up two TCP communication loops with the first client acting as the server on a different port than the first, which then sends the data to the original server, which also has a client TCP configuration in another loop? I hope this makes sense...
    One final question.....I already have a solution to this but using labview for the entirety of this project would be nice. I use skype to stream 1080p video from a webcam to my computer so I can view live feed. Can labview do this? This would be awesome if so, I am just not sure if the communication protocols in use could support real time (or as close as possible to streaming) for 1080p video.
    Thanks all in advance for your help,
    Physicsnole
    Attachments:
    cameraserver.vi ‏24 KB
    cameraclient.vi ‏18 KB

    Physicsnole wrote:
    In the attached VI I am trying to send data from a joystick over a TCP connection. I can send data fine using the TCP examples (in fact the majority of my VI is just a copy of the example). However I am to the point where I do not know how to send all the data necessary (3 axis data, 12 buttons, and the POV data) over TCP. Strings, clusters, and arrays were never my strong suite and converting between them is a nightmare for me.
    Well, you cast the axis info cluster to a string, but then you cast it back to an array of DBL. Thatr's not compatible. You should probably cast it back to an "axis info" cluster of exactly the same type. Go the the other VI and right-click the cluster wire to create a constant. Now move that diagram cluster constant to the other VI and use it as type.
    Your default ports don't seem to match. You seem to have client and server roles confused. In the sever you create a listener, but then you start sending packets, even though no connection is established. The connection needs to be initiated by the client.
    Your client stops the loop the first time a timeout is encountered. Shouldn't that be more permanent? Also, please retain code clarity and avoid unecessary complexities. For example, replace the "not or" with a plain "or" and change the loop to "stop if true"
    Physicsnole wrote:
    Basically I am trying to send each axis data (X,Y, and Z), button data (12 buttons), and POV data (the POV data will be calculated to adjust the position of a camera, so the immediate data is not important, I will add functions to add the change in the button movements to write a standing position for two servos [pan and tilt], for which that I will need to send over the TCP connection) over the TCP connection to control various cameras and motors. I don't know if it is posible to send that much data over a TCP connection in one write VI through a string, and also how to separate the string on the other side in order to control the client VI.
    You can send as much as you want. The casting to/from string is the same as described above.
    Physicsnole wrote:
    Another question I have (not impotant to get the program running just might make it easier on me) is can a TCP server (which sends the data to the client) also recieve data back from the client on the same port ( for example sensor data and digital positions [on,off])? Or do I need to set up two TCP communication loops with the first client acting as the server on a different port than the first, which then sends the data to the original server, which also has a client TCP configuration in another loop? I hope this makes sense..
    The primary function of a "server" is to wait for a connection and then communicate with the client once a conenction is established. An established TCP/IP connection is fully two-way and both sides can send and receive.
    LabVIEW Champion . Do more with less code and in less time .

  • I'm using a 1D Arrary with 27 different elements and would like to send those data over UDP Write and UDP Read functions.

    I'm using a 1D array with 27 different elements. I would like to transfer that data over a UDP connection, and read it back by using UDP connections.
    But I would like to read 3 elements at a time (On read side) and send those to 9 different ports.
    Note: the data will go to only one PC with one Network Address)
    * 1st elements (0,1,2) and send to port #XXX to see those 1st 3 elements.
    * continue until the elements reaches up to 27
    This is what I have done but I'm finding myself in pitfalls...
    Send side:
    I'm using a UDP Open connection on send side to send my data. So with selected a Source Port, I have created a UDP Op
    en connection. I�m using only one source port to send all the data across the channel. I would like to read 1st 3 elements and send those data across with an assigned Destination port. I would like to do that for 9 times b/c there are 27 elements in the array. So I�m using a For Loop and setting N count to 9. So I�m not getting any errors when I execute and no answer on the other side at all.
    Read side:
    I�m using a UDP Open connection to read in the data with port #. I�m using while loop to with Boolean inside by making a true all the time. Inside that While loop, I�m using For Loop to read the 3 elements data a time and send to a right port address. (As start out I was just trying to see if it works for only one port).
    Attachments:
    UDP_SEND_1.vi ‏40 KB
    UDP_READ_1.vi ‏31 KB

    You are not getting any errors because UDP is a connectionless protocol. It does not care if anyone receives it. Your example will work fine with the following considerations.
    (1) Don't use the generic broadcast address (255.255.255.255).
    (2) You are listening on port 30000. So why are you sending to port 1502, nobody will receive anything there.
    The destination port of the outgoing connection must match the server port of the listener. (The source port is irrelevant, set ot to zero and the system will use a free ephemeral port).
    (3) On the receiving side, you are not indexing on the received string, thus you only retain the last received element. Then you place the indicator outside the while loop where it never gets updated. :-(
    (4) Do yourself a favor and don't micromanage how the data is sent across. Just take the entire array, flatten it to string, send it across, receive it, unflatten back to array, and get on with the task.
    (You can do the same with any kind of data).
    I have modified your VI with some reasonable default values (destination IP = 127.0.0.1 (localhost)), thus you can run both on the same PC for testing "as is". Just run the "read" first, then every time you run "send", new data will be received.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    UDP_READ_1MOD.vi ‏29 KB
    UDP_SEND_1MOD.vi ‏27 KB

  • Sending http data via GPRS Nokia 6600

    Hello!
    We are trying to make a multiplayer game over GPRS. The midlet-server application works fine when we were using the emulator. however, when we test it on the real phone, Nokia 6600, it seems that the data being sent by the MIDlet is not received by the server. We have no idea why it's not working and we hope that maybe some of you are familiar with this and might have some input. Could the problem be caused by our service provider?
    I found this post in the forum wherein they recommended the use of GPRS-internet instead of GPRS-wap since wap could probably be blocking the data due to the content-type.
    Is there a way to set the Nokia 6600 to use GPRS-internet instead of GPRS-wap?
    We hope someone could reply as soon as possible.
    Thanks! =)

    Solution I found:
    Normally when you browser through your mobile ,you connect through Access Point or Access Point Name(APN).these normally connect to WAP sites and you browse through them.
    When you want to access your own server (or servlets) from the j2me MIDlet suite you have to have the Access Point Setting to internet access.This you have to get the settings from the service provider of the mobile connection you are using. I am in India and using Hutch so I activated HUTCH_WWW ie "HUTCH ACCESS" Service.
    If this seeting is done your Httpconnection will work fine.
    Hope people who face similar problem will find this helpful.
    If problem persists then please contact me at [email protected]
    Vishwajeet Wadhwa

  • Send audio data over UDP

    Hello again,
    Sorry for asking a lot of questions, but I'm developing an application in jmf and I don't know so much how it works...
    I'm trying to receive rtp data from the network, then uncompress to RAW format (but it has to be coded in some codec like g711, g729 or GSM) and save it into a buffer. For this I'm following the example DataSourceReader. I have attached some things like keep off the rtp header, and save the audio data into a bytebuffer (instead of using the printInfo() method I'm using saveIntoByteBuffer() method).
    Another class is sending the data (saved in byteBuffer) over the network (UDP, not RTP-UDP).
    And anotherone is receiving this data, and creating a DataSource to play the audio data received.
    To do this, I don't know exactly how to do it. I need to create a DataSource like the examples (LiveStream and DataSource from [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/LiveData.html |http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/LiveData.html] ) or can I do it like JpegImagesToMovie from [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/JpegImagesToMovie.html|http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/JpegImagesToMovie.html] ?
    Sorry if it's an easy question, but I don't understand so much why implementing the 'same' thing (custom DataSource) it's implemented different.
    Thanks

    Sorry if it's an easy question, but I don't understand so much why implementing the 'same' thing (custom DataSource) it's implemented different.They aren't the same thing, actually. DataSource is the parent class, but there are 2 different kinds of DataSources.
    A PushBufferDataSource will "push" the data out when it's available to be read. Whenever it decides it has data ready to be read, it informs whatever is reading from it that data is available.
    A PullBufferDataSource will not do that. Whenever it has data ready to be read, it doesn't do anything to inform what's reading from it.
    The next obvious question is, why does it matter?
    PullBufferDataSource's are good for situations where the data is always present. For instance, if you're playing a file from your hard drive, it's better to just let your Player object fetch data when it's needed. There's no need for a "data available" event, because, the data is always available...
    PushBufferDataSources are good for situations where data is being generated / received from an outside source. You can't read from it until the data comes in, so rather than blocking and waiting for the read, it'll tell your reader class when to come back for the data.
    Hope that helps!
    P.S. For your needs, you'll want to be using a PushBufferDataSource, so the Live example code.

  • RS-485: PC can send/receive data from PCI card, but LabVIEW can only send to card.

    I have a master/slave setup with a 2-wire RS-485 connection via a StarTech PCI2S485 card  http://www.startech.com/product/PCI2S485-2-Port-PCI-RS-422-485-Card-with-DB9.  A Vista PC running LabVIEW 2010 is acting as the master to 6 slave devices.  I am running a driver VI supplied by the company that made the slaves. 
    I've used a terminal program called Termite to monitor the ports during operation and have concluded that both the PC and the slaves are sending correct data packets (i.e. correct protocol and reasonable data).  Termite indicates that the slave's response is being received by the PCI card, but the problem is that LabVIEW simply isn't reading the response from the card.  Each time the driver VI is run it returns a "timeout waiting for slave to respond" error.  
    The VI and slaves I am using are designed for both RS-232 and 485 communication.  I've verified the VI to run in 232 mode on a different COM port.  I also wrote a simple VI using the VISA functions to test the ports on the PCI card, but I've had the same results.  Hardware connections have been looked over carefully, but the fact that the card actually sends a correct message and receives a correct message indicates a different problem.
    Any idea why LabVIEW can talk to the PCI card but can't hear it?  Is there anything I can do about this, or does LabVIEW generally not like StarTech's PCI2S485 cards?
    Thanks,
    Tim

    Tim359 ha scritto:
    I have a master/slave setup with a 2-wire RS-485 connection via a StarTech PCI2S485 card  http://www.startech.com/product/PCI2S485-2-Port-PCI-RS-422-485-Card-with-DB9.  A Vista PC running LabVIEW 2010 is acting as the master to 6 slave devices.  I am running a driver VI supplied by the company that made the slaves. 
    I've used a terminal program called Termite to monitor the ports during operation and have concluded that both the PC and the slaves are sending correct data packets (i.e. correct protocol and reasonable data).  Termite indicates that the slave's response is being received by the PCI card, but the problem is that LabVIEW simply isn't reading the response from the card.  Each time the driver VI is run it returns a "timeout waiting for slave to respond" error.  
    The VI and slaves I am using are designed for both RS-232 and 485 communication.  I've verified the VI to run in 232 mode on a different COM port.  I also wrote a simple VI using the VISA functions to test the ports on the PCI card, but I've had the same results.  Hardware connections have been looked over carefully, but the fact that the card actually sends a correct message and receives a correct message indicates a different problem.
    Any idea why LabVIEW can talk to the PCI card but can't hear it?  Is there anything I can do about this, or does LabVIEW generally not like StarTech's PCI2S485 cards?
    Thanks,
    Tim
    RS232 interface consist of 2 indipendent communication crossed lines between 2 devices (9DSub connector: Pin 2-RX  Pin 3-TX pin 5-Gnd)
    RS485 interfaceis a bus, shared between 2 or more devices. (like ethernet or CAN Bus)
    This means that an incorrect use of the bus can lead to a "packet collision" if 2 or more devices try to send a message on the bus at the same time or at least their messages, partially "overlap"
    About 10 years ago I have used a PCI 2 RS485 port: I remember  that I have to change the status of RTS serial control line to switch between transmit and receive mode.
    This can be done using the serial VISA property:
    Serial Settings --> Modem Line Settings --> DTR State
    or using the VI
    <LabVIEW dir>\vi.lib\Instr\_sersup.llb\serial line ctrl.vi   (LV 8.6.1)
    The result was that the slave device connected, send me the response after few nanosec. causing the lost of the answer.
    because LabVIEW use more than some  nanosec. to change RTS property after sending message on the 485 bus calling a VISA Write.
    So for me there was 2 possibilities: 
    - use 2 RS485 port (1 for transmit 1 for receive echo transmit included)
     - use this converter  
             http://www.advantech.com/products/ADAM-4521/mod_2E78D425-8B08-43F6-81B0-1B924E53E075.aspx
     this converter, after sending a message on the bus, electronically switchs back to receive mode without losing a byte.
    But the question is :
    what does it means
    "RS-485 mode supports Auto Transceiver turn around (ATTA)"
    of your card?
    bye

  • Sending binary data over RS232 without conversion to ascii

    I need to send binary data to a PIC without the data being converted to ascii. With the VISA vi's, when I want to send 11111111, it gets converted to a string "255", and is sent as "2","5","5" in ascii.
    How can I send it as one byte?

    r_keller wrote:
    @tbob: I probably shouldnt tell my customer that he's an idiot, and obviously 9 bit addressing/signalling modes seem to be not so uncommon in industry, so ur post does not really contribute to solve the problem.
    Well I wouldn't call my customer an idiot either.  I didn't know he was your customer.  Sorry.  Not every comment posted here is intended to directly solve a problem.  We are a fun loving group, and occasional ribbings take place here.  I still think that trying to use 9 bits over an 8-bit protocol is not a good way to go.  But if it is the only way, then so be it.
    r_keller wrote:
     Does the Mark or Space parity bit add another 10th bit to the command or can i only use either ODD parity/Mark/Space?
    According to the link you attached, the parity bit adds only one more bit.  If the number of bits is set to 8, then the parity is the 9th bit, and you can only use Mark or Space to force that 9th bit to either 1 or 0 respectively.  If you try to use odd or even parity, the protocol will determine the parity and change the bit accordingly, and it may not be the one you intended to send.  The start and stop bits are fixed by the protocol and cannot be used for extra data bits.
    Actually, until I read that article about using Mark and Space, I had no idea at all that sending 9 bits at a time was possible.
    - tbob
    Inventor of the WORM Global

  • Question about send/receive data in as3

    hello
    i want to ask : how can i send data from flash to php using as3 and receive data from php using flash .
    and another question : how can i upload files using as3 .
    thank you .

    Look into URLLoader documentation for sending/receiving and FileReference for uploading:
    http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/net/URLLoader.html
    http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/net/FileReference.html

  • Sending audio data over http problem

    Hi Guys,
    We are trying to create a little servlet in Tomcat, which is capable to send audio files over http to an embedded media player. The definition of the player looks like:
    <OBJECT ID="Mp" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" TYPE="application/x-oleobject" WIDTH="0" HEIGHT="0">
    <PARAM name="uiMode" value="none">
    <PARAM NAME="ShowControls" VALUE="0">
    <PARAM NAME="AutoStart" VALUE="1">
    <PARAM NAME="ShowPositionControls" VALUE="0">
    <PARAM NAME="ShowStatusBar" VALUE="0">
    <PARAM NAME="ShowDisplay" VALUE="0">
    </OBJECT>
    <script language="javascript">document.Mp.URL = "here comes the url of the servlet with item ID";</script>
    The servlet reads the audio file and writes its content to the response with the following http header settings:
    getResponse().setContentType("audio/x-wav");
    getResponse().setHeader("Content-Transfer-Encoding", "binary");
    getResponse().setHeader("Pragma", "Public");
    getResponse().setHeader("Cache-Control", "must-revalidate, post-check=0, pre-check=0");
    getResponse().setHeader("Content-Disposition", "inline; filename=Media.wav");
    getResponse().setHeader("Content-Length", new Integer(MediaBytes.length).toString());
    getResponse().setHeader("Accept-Ranges", "bytes");
    So, everything works fine for wav files in Internet Explorer, but we are facing problems with Firefox, where it does not work. The embedded Media Player says that "Windows Media Player cannot play the file. One or more codecs required to play the file could not be found."
    But if we set the url to directly to the file on the server, everything works fine.
    We have analyzed the HTTP traffic in both situation, but we cannot understand how Internet Explorer/Firefox and Media Player works together:
    - how does Media Player know that the audio file is playable?
    - if the url points directly to the file, the HTTP headers does not contain any kind of information about the file type, only the extension is available; Media Player checks the file extenion in the url?
    - if the url points to the servlet, why Media Player in Firefox cannot determine the file type and throws error?
    Any help is greately appreciated!
    Thanks!
    Gabor

    If you haven't already, I would try breaking down the problem. First confirm you're getting serial data then confirm that netcat can send some data. Like this:
    xxd < /dev/tty.usbmodemfa121 | less
    nc -u 10.0.1.3 7000 <<< 'hello over there'

  • How to send class data over TCP/IP like a serialized cluster

    I have a device which communicates over a TCP/IP connection.  I need to construct complex messages for the communications.  If I use type-defs clusters it is a simple matter to convert the data to string and send it out.  Same with getting the data in.
    If I try this with classes (which I really want to use instead of type-def clusters) I don't get my data in the same format I want it to be in.  It gives me a bunch of stuff I don't want or need like the name of the class.
    I can do some crazy shenanigans like below but this will break if my data type ever changes.
    In addition to that problem some of my classes will contain other classes as data members.  For example all messages have a message header as their beginning so a separate message header class will be part of all other classes.
    Is there a built in / simple way to do this?
    Thanks for the help,
    James G. 
    Attachments:
    class to cluster.JPG ‏11 KB

    Got it. I thought the receiving device was running LabVIEW You could write a method for your class to return the data in whatever format you want.
    =====================
    LabVIEW 2012

  • Receiveing data over RTP doesn't work

    First of all , excuse my english.....it really sucks
    Second of all , this is my problem:
    I modified the JMStudio source to suit my needs.....leaving just what i needed.The application works......it sends data just fine but it does't receives it.I tried to rewrite the function thousand of times in different modes but it doesn't work.
    This is my source code :
              private void openRtp () {
    OpenRtpDialog dlgOpenRtp;
    String strAction;
    String strAddress;
    String strPort;
    String strTtl;
    RTPManager           receptie=RTPManager.newInstance();
    InetAddress      adresaip=null;
    int                    port,ttl;
    ReceiveStreamListener receptiestr = null;
    ReceiveStreamEvent     x = null;
    dlgOpenRtp = new OpenRtpDialog ( this, cfgJMApps );
         dlgOpenRtp.isVisible ();
    strAction = dlgOpenRtp.getAction ();
    if ( !strAction.equals(JMDialog.ACTION_OPEN) )
    return;
    strAddress = dlgOpenRtp.getAddress();
    strPort = dlgOpenRtp.getPort ();
    strTtl = dlgOpenRtp.getTtl ();
                   try {
                        adresaip=InetAddress.getByName(strAddress);
                   } catch (UnknownHostException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
    port=Integer.valueOf(strPort).intValue();
    ttl=Integer.valueOf(strTtl).intValue();
    SessionAddress adresa=new SessionAddress(adresaip,port,ttl);
         try {
                        receptie.initialize(adresa);
                   } catch (InvalidSessionAddressException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   } catch (IOException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
    if ( receptie == null ) {
    MessageDialog.createErrorDialog ( this, JMFI18N.getResource("jmstudio.error.sessionmngr.create") );
    return;
    receptie.addReceiveStreamListener(receptiestr);
    receptiestr.update(x);
    update(x);
    // the rest will be done when we get NewReceiveStreamEvent
    updateMenu ();
    pls tell me what i do wrong cause it's driving me insane......the function from the JMStudio works in the original but doesn't work in my version so it makes me think that the problem is from somewhere else.
    For further assistance i'll be watching this thread closely.
    Thank you for your help.
    Yours gratefully,
    Sorin

    I'm just going to point you in the direction of some sample code...
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/AVReceive.html]
    Go look at their "initialize" function and figure out what the sample code is doing that you aren't...
    And remember, it could simply be a matter of doing something wrong with IP address... You can't use 127.0.0.1 for RTP transmissions, and you can't broadcast to the same computer if your transmit code is binding the destination port as the transmission port. IE, if you tell it to broadcast to the remote computer on port 2600, and it uses the local port 2600 to broadcast on...then you won't be able to read from port 2600 on the local computer.

  • MS Outlook send/receive data file missing

    Whenever I open up MS Outlook 2007, I get an error message:
    "outlook cannot start because a data file to send and receive mail cannot be found. To add a data file, such as a person folder file, double-click the mail icon in windows control panel."
    I have gone through and repaired the office program through add/receive programs and it did not work.  Also, I have another computer that has office in my house, and all of the data files are the same - i cant find anything else that is missing.  Is there anyone out there that has any ideas on how to fix this problem???

     listed-as-unwise wrote:
    Whenever I open up MS Outlook 2007, I get an error message:
    "outlook cannot start because a data file to send and receive mail cannot be found. To add a data file, such as a person folder file, double-click the mail icon in windows control panel."
    I have gone through and repaired the office program through add/receive programs and it did not work.  Also, I have another computer that has office in my house, and all of the data files are the same - i cant find anything else that is missing.  Is there anyone out there that has any ideas on how to fix this problem???
    please try going to
    control Panel
    Mail
    Email Accounts
    Thne check if you mailbox has been removed, if it has then please try readding including your ms exchange server name
    Finish
    Try launching Outlook again

Maybe you are looking for

  • Problem with delete button on macbook pro?

    AFter 4 yrs of no probelms, the delete button and number one button do not work. Has anyone had this problem?

  • How to register 10g ODBC driver list in the Create New Data Source window

    Hi I've checked the dll for the odbc is in the correct home path. However, i don't see the list of the driver when i try to create a new data source. Is there a way besides reinstall the client again. Thanks Rgds Ung

  • Gesture doesn't work on Magic Mouse?

    The mouse movements and clicks, work fine, but there isn't any gesture. My preferences panel doesn't shows complete, is like I where using a normal mouse. What I've already did: -Install the lastest plugins for my Snow Leopard version (10.6.7) -Resta

  • Print Dialog Printer Button

    Hi All, There are a number of printer features that we use that are only accessible via the "Printer..." button on the print dialog. This would be fine except it seems to forget what settings were last used between print jobs.  For example, we print

  • [SOLVED] Upgrading to KDE 4.8 shows "kdmrc.pacnew"

    Hello first sorry for my english 12 hours ago I did a # pacman-Syu and it appears the update to kde4.8. Some 500 mb later, no error in the update, review the log file in the same console and see a line saying that the downloaded file / usr / share /