Problem sending (or receiving) strings

Hi, I am trying to send a string using the following code.
temp = new StringBuffer();
temp.append("NEWUSER;").append(num).append(';').append(nick).append("\n");
streamConnection = (StreamConnection) Connector.open(host);
fromUser = streamConnection.openOutputStream();
dataFromUser = new DataOutputStream(fromUser);
dataFromUser.writeChars(temp.toString());
dataFromUser.flush();and receive it on my pc running a java server:
in = new BufferedReader(new InputStreamReader(incoming.getInputStream()));
String inputMsg;
while ((inputMsg = in.readLine()) != null) {
       System.out.println("Received: " + inputMsg);
       StringTokenizer st = new StringTokenizer(inputMsg, ";");
       ui.updateMsg("Received:" + inputMsg);
        while (st.hasMoreTokens()) {
                    String tk = st.nextToken();
                    System.out.println(tk);
                    System.out.println(tk.compareTo("NEWUSER"));
}Everything seems ok when sending it:
Sent: NEWUSER;6912345788;TQ
but the result is printed like this
I changed writeChars() to writeUTF, and there only to "boxes" at the beginning of the string
Edited by: antonis_wrx on Jan 13, 2009 12:24 PM

Hi Pisteuon,
Thank you for your question.
We assume the version of Exchange is 2007, if we misunderstand, please be free to let me know.
Did you try to disable all transport rule to test it?
Have you try to logon OWA to check if we could see attachment?
Did all uses and all domains not send/receive attachments to/from your organization?
Have you try to send attachment which has small size? For example 1KB.
We could create a new account without public folder to check if the issue persist?
If there are any public folders in organization, please make sure the correct replication among public folders,
We could also check the public folder if it miss hierarchy on Exchange administrator group.
We could update Exchange 2007 to CU3 or later by the following link:
https://support.microsoft.com/kb/932515/?wa=wsignin1.0
If there are any questions regarding this issue, please be free to let me know. 
Best Regard,
Jim

Similar Messages

  • HT4137 Does anyone have a problem sending or receiveing txt msgs to devices other than Apple?

    I did a back up and and set up as a new device. however I am still not able to send or receive txt msgs from non apple devices. Does any one experience this problem?

    SMS is a carrier function. Check with your carrier to have them check the provisioning on your account.

  • Problems sending and receiving texts, please need help ASAP!

    So for the past few days I have had trouble receiving texts on my Samsung Intensity II. I can send them just fine but when receiving them they are either very very late or they dont show up at all. Why is this? What should I do to fix it?
    Here are the questions I need answered:
    1. How do I improve this and start being able to receive texts again? I havent been able to receive any texts for the last few hours.
    2. I dialed *228 and chose option 2 to update my roaming thinking it might help but it didnt. I can still send text messages but havent received any. All it did was remove the Verizon Wireless banner from the top of my phone. Is this bad? I sort of want that back..is it bad that its missing? Does it mean *228 was detrimental to my phone? How do I get the banner back?
    3. Lastly, is there a way to possibly reset my phone and fix this problem WITHOUT deleting my texts and photos?
    I really need some help with this ASAP. I'm in a long distance relationship that requires the use of my phone quite a bit and its irritating not to be able to really use it.
    Thanks
    Now, I was going through settings, checking on things. Went to phone settings and then NAM settings, my phone was set to NAM 1. I didn't change it but instead accidentally pressed down on the already selected NAM 1. Now I cant even send messages because it cant authenticate the network! SOMEONE PLEASE HELP ME!
    I have tried restarting the phone, removing the battery pack and now I am having more trouble than ever before, since the NAM restart I havent been able to send or receive anything with my phone and I am extremely frustrated at this point. HELP PLEASE!
    Edit: Seemed to have fixed the NAM issue, I am no longer getting the network authentication failed message when I try to send messages. I can send again but still can no longer receive...help?

    goaliegirl34,
    Hi there! You this link here to contact us or PM me with your name and number if this is still an issue for you.  If you need immediate assistance, please use the link. The forums are primarily peer-to-peer advice and it sounds like you will need our technical support assistance.

  • Problem sending and receiving BT mail

    unable to send / receive BT mail , display pop up showing "unable to send from selected server"

    Hi, LesHillbrae.  
    Thank you for visiting Apple Support Communities.
    I understand that you are unable to send or receive email.  Here is the best resource to go through when troubleshooting issues with email.
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/TS3276
    Cheers,
    Jason H.

  • Problems sending and receiving emails using exchange when on wifi - OK when using Sim Card

    I've an iphone 4S using Exchange to link up with company server, this works fine when using 3G - phone's Sim Card. But when I join a wifi network I can no longer send and receive emails until I disconnect from the wifi network.
    Has anybody any ideas?

    Hi Derick,
    you need to make sure the following is met:
    1- router is correclt setup and antennas are plugged
    2- users are withint good range from the router
    3- use a good channel for the router, one of either 1, 6 or 11. try to figure out which is the best channel to choose using a freeware site survey tool.
    4- ssid configuration doesn´t involve eap and session timeouts.
    if you have doubts, let me know
    cheers
    Serge

  • TS3276 I recently installed LION and have been having email problems, sending and receiving since. My server (Cable-fiber optics) tell me they see nothing wrong, that it is a program issue. I get messages about not recognizing the certificate.

    If I click the go-ahead button, I am warned about not be assured of security danger. This keep happening over and over. It is a pain using email since LION. I went into Keychain Access and tried choosing an Apple certificate, but that is never permanent. Should I just ignore the warning? Will this kind of problem disappear with Mountain Lion? Is there a solution?

    What email program are you using?

  • Problems sending and receiving faxes on mx892 all in one

    I seem to be unable to set my mx892 for faxing or for printing. Every time I want to use the printer I have to go through the menu and reset everything again--sometimes it works sometimes it doesn't. The machine continues to scan over and over when I only need one copy. I can only use the inside glass to copy. Faxes are much the same--to fax I have to go one sheet at a time and the only setting I seem to be able to use is the inside glass not the feeder that allows you to fax (or print) several sheets at a time. It would be a fair guess that I am not a technical person at all and trust me I do feel stupid, but I really need help with this. I have a small business and need to be able to use this machine. I would appreciate any help. Thank you.

    Hi patfromvermont!
    Please make sure you are loading in the paper through the following procedure:
    1. Make sure that any original has been removed from the platen glass.
    2. Load a document in the ADF.
    (1) Open the document tray.
    (2) Insert the document in the document tray until you hear a beep sound.
    Load the document WITH THE SIDE TO SCAN FACING UP in the document tray.
    REFERENCE
    When you set the alarm to be silent in Sound control of Device user settings, the alarm will not beep even if the document is inserted in the document tray.
    (3) Adjust the document guides to match the width of the document.
    Do not slide the document guides too hard against the document. The document may not be fed properly.
    If you are running into any further difficulty, we'll be happy to help!  We'll need a little more information.  Please visit the link below to let us know the version of Windows or Mac in use and we can follow-up with step-by-step directions regarding any further errors you are running into.  Thanks!  
    http://www.usa.canon.com/cusa/consumer/standard_display/contact_us_consumer
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Can't send or receive email from one account

    Just bought the iPod Touch last week. Set up Hotmail account with no problems. However my MacDialup.com account (used to be dial up, but is DSL now) won't work at all. They aren't set up to use SSL, so I turned that off after the iPod automatically tried it. I tried IMAP and POP, tried changing incoming server port number from defalt 143 to 110, triple checked spelling on every single entry including password. Tried calling my ISP tech support and talked to a tech who owns an iPhone and lives in the bay area, but he couldn't figure it out. I tried deleting the MacDialup account then syncing the Touch to my iTunes on my MacBook Pro (which has no problem sending or receiving email from this same account) and had the email settings imported from the MacBook Pro - still no luck. Tomorrow I'll try bringing both my MacBook Pro and iPod Touch into the Genious Bar. Maybe they can figure it out.

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • Problem sending pop email

    I have a problem sending (not receiving) pop email.
    I am connected directly to my ISP (virgin.net, part of virginmedia.com) on adsl – (ie not trying to connect via another isp) - sharing the internet connection wirelessly via a modem/router to 2 Macs (macbooks), a Vista laptop and wiredly to an XP desktop.
    The problem only happens with the Macs, not the Windows machines. One of the Macs is running Tiger with mail 2.1.3, the other Leopard with mail 3.2. Both are affected.
    The problem only arises when trying to send longer messages (a few paragraphs - not MB). There is no problem sending short (one or two word) messages. I'm not sure where the cutoff comes.
    What happens is that the messages are simply timed out, after a lengthy attempt to send. The error message is generally
    ‘The server response was: 4.4.2 omf09.hostedemail.com Error: timeout exceeded ‘
    but sometimes (more recently, perhaps as a result of all the fiddling I describe below)
    ‘An error occurred while delivering this message via the SMTP server "(null)" ‘
    This started on Friday 30th May. That day we woke up to find we were unable to receive email either. Looking at the mail accounts, I saw that the (incoming) authentication had spontaneously(?) changed from "password" to MD5 challenge response. Since returning it to password, we've been able to receive mail on both machines.
    We only noticed the problem with sending a few days later as we hadn’t tried to send any longer messages; so it’s not absolutely certain that it’s related – but it seems likely.
    We can send pop email from our googlemail accounts. We can also use virgin’s webmail with no problems.
    This is what I’ve tried to resolve the problem:
    checked that the server etc settings are configured according to Virgin’s instructions at
    http://www.virginmedia.com/help/email/set-up-pop-email.php#OS_X103
    (on the advice of support there) deleted one of the affected accounts (and also removed the smtp server from the server list) and recreated it. No effect.
    Installed Thunderbird and set up the same account. Same problem there.
    Used Connection Doctor – shows connections to all servers as green
    Rebooted the modem/ router, and both machines
    Repaired permissions
    Nothing seems to help.
    I’ve done all this on the Tiger mac, on the theory that once I find the solution there is will also apply to the Leopard one ie that it’s not a glitch of some recent Leopard update.
    Because the Windows machines (and webmail) work fine, Virgin clearly think that this is simply a Mac problem. I suspect that they have changed something in their setup, as it seems unlikely that it would otherwise affect two Macs running different versions of OSX in the same way.
    I’ve only recently persuaded my wife to switch to a Macbook after her experience of Vista so this is not only annoying but embarrassing!
    David

    I have a Mac and have had the same problem with Virgin – I have been unable to send emails of more than about 300 words, or any replies or attachments, since May 30, the day Virgin “improved” their email services. Receiving emails and using webmail are not affected. Virgin’s helpline has been totally unhelpful, refusing to accept that it has anything to do with them or that some other Mac users are affected in the same way. Their fault team insists it’s a problem with my computer. I have O.S. 10.5.3 Leopard, having just upgraded, but the problem occurred when I was still on O.S. 10.4. Tiger. My email program is Entourage (which Virgin’s helpline hasn’t even heard of!). When the problem first occurred, I wasn’t able to send any emails, but by changing the Accounts advanced settings to what Virgin recommended when I phoned them, I could at least send short emails. (Their announcement of the email changes said, “Don’t worry, you don’t have to do anything.”) Virgin are trying to put a huge spin on this shabby treatment of Mac customers by saying, “We’re doing lots of things to make your experience with us even better” – but with friends like this, who needs enemies?

  • X3-02 Sending and receiving mms messages

    I got this phone for xmas and having problems sending and receiving photos, please could someone explain what I need to set.
    Thank you

    Already solved the problem. On default, the phone will create a 3g/mms settings and will name it after the network operator. So if you'll open a browser or mail, it will ask you what connection you will use (WLAN/3G or GPRS).
    It wont connect me to the internet when ill use that settings then ill choose the 3g/gprs.
    Then if ill use my network operator's settings under settings>configuration, it wont let me use WLAN. It will automatically choose the 3g/gprs connection. (that will surely cost me)
    can anyone tell me how to combine this settings?
    The default got its x-midlet-[insert apps name here] and lots of other stuffs, while my network operator only got its web, multimedia and access point.

  • Sending and receiving fax

    I have hp officeject pro 8600 all in one. I can send or receiving a fax. I have tested fax test it printed out with
    dial tone detection failed.

    Hi @kimychong,
    Thank you for visiting the HP Support Forums! I see you are having problems sending and receiving faxes with your HP Officejet Pro 8600. You ran a fax test and the dial tone failed. Please continue troubleshooting below:
    Cannot Send or Receive Faxes
    If you are still running into fax problems after the troubleshooting has been done leave me with the following information:
    1. What is the Exact model of HP 8600 you are using as there are a few in the series?
    2. What is your current Operating system, Windows or Mac and which version?
    3. How is the printer connected, USB or Wireless?
    4. Do you get any error messages when sending or receiving faxes?
    5. What kind of phone line do you have, digital, analogue or VoIP?
    I hope to hear from you soon.
    Thanks,
    HevnLgh
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • Cannot send or receive photos on Galaxy S5

    We have 2 identical Samsun Galxy S5 phones both using Verizon Messsage...have no problem sending or receiving photo attachments w/messages on one phone, but cannot on the other.  Both phone shave data turned off.
    Can someone help me?
    Thanks,
    Toni

    Ann154 wrote:
    You will need the cellular data connection turned on and active in order to receive MMS picture messages.
    Not if you're using Verizon Messages, as the OP indicates they're doing; MMS will send/receive over wi-fi.

  • Cannot send or receive some text messages

    I just got the iphone 4s, and am having problems sending and receiving some text messages, it is saying "Message Send Failure"

    Same problem persists also here. Have crosschecked with friend, all same settings, have deleted the contacted, created again, still that number does not receive my SMS (no question on iMessage). Can not even reply her message. This problem persists with few numbers, nothing common, different phones, different countries, different operators. All others, with different operators, in different coutries receive my messages. Even other people can send their SMS to her.

  • Hi, i am having trouble with my mac mail account, i cannot send or receive any emails because of the server connection problems. Message says it could not be connected to SMTP server. Thanks in advance for your help.

    Hi, i am having trouble with my mac mail account, i cannot send or receive any emails because of the server connection problems. Message says it could not be connected to SMTP server. Thanks in advance for your help.

    Hello Sue,
    I have an iPad 3, iPad Mini and iPhone 5S and they are all sluggish on capitalisation using shift keys. I hope that Apple will solve the problem because it is driving me crazy.
    I find using a Microsoft Surface and Windows 8 phone, which I also have, work as well as all the ios devices before the ios 7 upgrade.
    It has something to do with the length of time that you need to hold the shift key down. The shift key needs to be held longer than the letter key for the capitalisation to work. For some reason, this is a major change in the way we have learnt to touch type on computers. I am having to relearn how to type!
    Michael

  • Problem with Send and Receive Emal In SAP System

    Hi gurus!
    I have a following quote:
    Dear !
    I have a problem with send and receive email in SAP system following :
    I want to test send and receive email in local network at my company. I
    had two server
    Server 1 : I setup Exchange Mail Server 2007 with domain controller is
    fes.com
    Server 2 : I setup SAP ERP ECC 6.0
    On Server 1 : I created 2 account ( u1Afes.com and u2Afes.com ) and then I tested send and receive email between u1 and u2 in local network through Microsoft Outlook 2007 -> OK
    and then
    On Server 2: I had configured send and receive email on SAP system
    through tcode SBWP, SCOT and SOST as Note 455140 - "Configuration of
    e-mail, fax, paging or SMS using SMTP"
    for example :
    I logged in SAP system with user Basis01 (with email u1Afes.com ) -> then,using tcode SBWP -> new message -> send to u2Afes.com with Internet Mail type and then status message with green light -> sending ok
    and then I have used Microsoft Outlook 2007, I logged with account u2 ->check email -> Ok. I saw message which send from u1
    Finally, My problem is how can receive mail in SAP system without using Microsoft Outlook
    For example:
    Login system SAP with Basis01 account (with  u1Afes.com ) -> tcode SBWP ->New Message -> send to u2Afes.com
    and then
    Login system SAP with Basis02 account (with u2Afes.com ) -> tcode ??? ->
    To receive email from Basis01 (with u1Afes.com )
    Please help me now
    Thanks
    I replace "@" with "A" because of banning email of this forum.
    This quote is about sending email in local network. And we can't receive any email from the outside email address. Addition if I wanna send email to internal email in Internet (we've just tried with email address in local network) What should I config in SAP and Exchange ?
    By the way, Is SAP Server IP added to Relay Agent for sending or receiving mail ?
    Regards
    An NLP
    Edited by: An NLP on Apr 6, 2010 7:03 PM

    Hi,
    This problem is a classic problem of mail routing via Exchange. Exchange like most mail servers use the domain part of the email address as a means to route mails. So I will make an assumption that your main company mail addrss is "User @ fes.com".
    So when you send a mail to the "User @ fes.com mail" address the mail is delivered to your Outlook mail address as this is the default route for company.
    (Q) So how do you get your Exchange server to relay the mail into the sending SAP system?
    (A) The easiest way would be to setup and unique mail domain for your SAP system. I always recommend "user @ client.sid.company.com" which in your case would be "u1 @ 100.PRD.fes.com". You can then instruct Exchange to send any emails addressed to 100.PRD.fes.com domain to your SAP system. Also using this format of address you can configure multiple mail connections into multiple SAP systems.
    (A) Another answer would be to enter the "Full" email address (LOcal and Domain part of address) into the routing rule for Exchange e.g. "U1 @ fes.com" so that all emails addressed to this user will be delivered into SAP. However this method requires a lot of Admin as you will have to update Exchange with ALL email address that need to receive emails. Also if your corporate mail address is "U1 @ fes.com" then all mails will be forwarded to SAP.
    I would definitely NOT recommend this method but the decision is up to you.
    P.S. The IP address of the SAP system is entered into the mail header of the email. This is standard practice in SMTP relay. You can suppress this header in Exchange
    Hope this helps
    Michael

Maybe you are looking for