Security.Couldn't resolve IP for host mailhost or for

I want send email from Aplet
I get error :
Sending failed: security.Couldn't resolve IP for host mailhost or for
This is my code
Please help me
import java.io.*;
import java.util.*;
import java.net.*;
import java.awt.*;
import sun.net.smtp.SmtpClient;
import sun.net.smtp.*;
import sun.net.TransferProtocolClient;
public class sendEMail
public sendEMail()
public void send_1()
try
String hostname = InetAddress.getLocalHost().toString();
//Socket socket =new Socket (getCodeBase().getHost(),25);
Socket socket =new Socket (hostname,25);
DataOutputStream dos = new DataOutputStream(socket.getOutputStream());
dos.writeBytes("HELO" + hostname);
dos.writeBytes( "MAIL FROM: " + "mary-g@" + hostname + "\n");
dos.writeBytes("RCPT TO :< [email protected]>\n ");
dos.writeBytes("DATA \r\n");
dos.writeBytes("Subject : test ");
dos.writeBytes("ggggggggggggg \r \n ");
dos.writeBytes("\r \n QUIT ");
dos.flush();
socket.close();
catch( IOException ex )
System.out.println( "Sending failed: " + ex.getMessage() );
Thanks.

If you want your applet to access resources on the local system (instead of on the server where the applet came from), you must sign your applet. In this example, it is probably not worth it. It is quite unlikely that somebody who runs your applet will also have an SMTP mail server on their system.

Similar Messages

  • Applescript error: curl: (6) Couldn't resolve host 'javascript:bookmark();'

    I'm using the Get Link URLs from Webpages Safari action and I keep getting the following error:
    Applescript error: curl: (6) Couldn't resolve host 'javascript:bookmark();'
    Any idea how to fix this or is this just a bug in Automator?

    It seems to happen on almost any webpage. Originally I tried it on
    http://www.ebaumsworld.com/
    and got the following error:
    curl: (6) Couldn't resolve host 'javascript:window.external.AddFavorite('http:' (1)
    Then I tried running it accidentally while typing this page (http://discussions.apple.com/post!reply.jspa?messageID=2834805) and got:
    sh: -c: line 1: unexpected EOF while looking for matching `''
    sh: -c: line 2: syntax error: unexpected end of file (2)
    Here's the workflow:
    Get current webpage
    Get link urls from webpage (only return URLs in the site domain)
    Get link urls from webpage (option NOT checked)
    this is where it fails.
    It seems the action is not very robust as far as handling errors. You'd think one of Apple's built-in actions would be better tested.

  • "couldn't resolve host name" error message

    I have a new Z30 with the latest OS update installed and can’t connect to several Wi-Fi locations because of error message ‘couldn’t resolve host name’.  Is there a fix to this as it seems to be an issue with BB and no other type of devices?

    Assuming you're connecting via wifi, this would suggest your wifi connection is failing somewhere along the way.
    Occasionally, my PB's wifi icon shows green and looks like it's working, but if I turn the PB wifi off and back on, it usually fixes the problem. You could also try rebooting the PB if resetting the wifi doesnt work. 
    If these things don't correct the problem, then check your wifi router (reboot it if necessary) and maybe check your internet connection with another device, ie home computer or whatever to make sure you're not having service issues.

  • How to fix SOAP Security Header UsernameToken is required for operation?

    hi all,
    can somone help me how to resolve the error "javax.xml.ws.soap.SOAPFaultException: SOAP Security Header UsernameToken is required for operation" when i run a client.
    i got a WSDL and using wsdl2java i generated the stubs
    Here is my client code
    public final class LiteratureClient {
         public final static QName SERVICE = new QName("http://siebel.com/asi/",
                   "Literature");
         public final static URL WSDL_LOCATION;
         private LiteratureClient() {
         static {
              URL url = null;
              try {
                   url = new URL(
                             "file:c:\\reprintwsdl\\http___siebel.com_asi__Literature17.WSDL");
              } catch (MalformedURLException e) {
                   System.err
                             .println("Can not initialize the default wsdl from file:http___siebel.com_asi__Literature17.WSDL");
                   // e.printStackTrace();
              WSDL_LOCATION = url;
         public static void main(String args[]) throws Exception {
              System.out.println(WSDL_LOCATION);
              Literature obj = new Literature(WSDL_LOCATION, SERVICE);
              DefaultBindingSpcLiteratureSpcWS port = obj.getDefault();
              Client cxfClient = ClientProxy.getClient(port);
              cxfClient.getInInterceptors().add(new LoggingInInterceptor());
              cxfClient.getOutInterceptors().add(new LoggingOutInterceptor());
              cxfClient.getOutInterceptors().add(new SiebelPasswordInterceptor());
              com.siebel.xml.literatureio.iterature inputObj = new com.siebel.xml.literatureio.lterature();
    inputObj.setDocId("1234");          
              // Query by ID
         LiteratureQueryByIdlInput input = new LiteratureQueryByIdInput();
              com.siebel.xml.iteratureio.ListOfliteratureio list = new com.siebel.xml.iteratureio.ListOfliteratureio();
              list.getLiterature().add(inputObj);
              input.setListOfliteratureio(list);
              LiteratureQueryByIdOutput output = obj.getDefault().LiteratureQueryById(input);
    This is the interceptor which i added to the client before performing the query operation
    public class SiebelPasswordInterceptor extends AbstractPhaseInterceptor<SoapMessage> {
         public static final String SECURITY_TAG_NAME = "wsse:Security";
         public static final String SECURITY_NAMESPACE = "http://schemas.xmlsoap.org/ws/2002/04/secext";
         public static final String USERNAME_TOKEN_TAG_NAME = "wsse:UsernameToken";
         public static final String USERNAME_TAG_NAME = "wsse:Username";
         public static final String PASSWORD_TAG_NAME = "wsse:Password";
         public static final String PASSWORD_TEXT_ATTRIBUTE_NAME = "wsse:PasswordText";
         public static final String TYPE_TAG_NAME = "Type";
         public static final String SECURITY_NAMESPACE_NAME = "wsse";
         public static final String SECURITY = "Security";
         public SiebelPasswordInterceptor() {
              super(Phase.PREPARE_SEND);
         public void handleMessage(SoapMessage message) {
              List l = message.getHeaders();
              Document d = DOMUtils.createDocument();
              Element securityParent = d
                        .createElementNS(
                                  SECURITY_NAMESPACE,
                                  SECURITY_TAG_NAME);
              Element userNameToken = d.createElementNS(
                        SECURITY_NAMESPACE,
                        USERNAME_TOKEN_TAG_NAME);
              Element userName = d
                        .createElementNS(
                                  SECURITY_NAMESPACE,
                                  USERNAME_TAG_NAME);
              userName.setTextContent(getUsername());
              userNameToken.appendChild(userName);
              Element pwdText = d
                        .createElementNS(
                                  SECURITY_NAMESPACE,
                                  PASSWORD_TAG_NAME);
              pwdText.setAttribute(TYPE_TAG_NAME, PASSWORD_TEXT_ATTRIBUTE_NAME);
              pwdText.setTextContent(getPassword());
              userNameToken.appendChild(pwdText);
              securityParent.appendChild(userNameToken);
              SoapHeader header = new SoapHeader(new QName(
                        SECURITY_NAMESPACE, SECURITY,
                        SECURITY_NAMESPACE_NAME), securityParent);
              System.out.println(" HEADER "+header.toString());
              l.add(header);
         protected String getUsername(){
    return "test";
         protected String getPassword(){
              return test";
    I did add this interceptor as out interceptor to my client but for some reason the header is not getting added to the request . can someone pls. help me in troubleshooting this issue.
    Thank you

    The problem is in <form action="http://www.eastsidestudios.com.au/FormProcessv2.aspx?WebFormID=42582&O ID={module_oid}&amp;OTYPE={module_otype}&amp;EID={module_eid}&amp;CID={mo dule_cid}"
    You have to remove http://www.eastsidestudios.com.au from the action URL and make it relative:
    <form action="/FormProcessv2.aspx?WebFormID=42582&O ID={module_oid}&amp;OTYPE={module_otype}&amp;EID={module_eid}&amp;CID={mo dule_cid}"
    Cheers,
    -mario

  • Integration with JMS Weblogic server, Couldn't connect to any host

    Hi ,
    I am doing XI to JMS integration(weblogic JMS server) ,have created a communication channel of type JMS and gave the following parameters.
    Transport Protocal  : Access JMS Provider with JNDI
    Message protocal    : JMS 1.X
    JNDI Lookup name with
    queueconnectionfactory :MyJMSConnectionFactory
    JNDI Lookup name with JMS Queue : MyJMSQueue
    Name of JNDI initial context factory : weblogic.jndi.WLInitialContextFactory
    <b>JNDI Server Address: http://isccap:7001/</b>
    all these parameters are working fine when used in a Client java program by which i am able to put and retrive message from Weblogic JMS server queue.
    But the same is not working in XI adapter ,
    I am getting the following error in adapter monitoring
    Zsrl_JMS_Reciever Receiver channel. Details: <u>Couldn't connect to any host</u>
    I guess the problem is with <b>JNDI Server Address: http://isccap:7001/</b>
    Is the format "http://host:port"  correct for weblogic server,
    are the JMS port and JNDI port same or different .
    I have deployed the required drivers "wlclient.jar" in XI server .
    Thanks in advance ,
    srikanth Lanka

    weblogic works on the Tenga3 protocol and hence the URL to connect to the JNDI provider of weblogic is
    t3://host:port
    At least in case of Weblogic you connect to your J2EE resources using your JNDI registry so the port would be the same.
    Rgds,
    Amol

  • Error: "File couldn't be opened for writing" with CinemaDNG sequence

    Using a Premiere Pro > After Effects workflow with my colorist.
    I created a project in Premiere CS6 and used MOV transcodes because Premiere CS6 does not read CinemaDNG sequences. I do not have CC installed on my computer. My colorist, on his computer (we are both using Mavericks), imported the .prproj into AE CS6. We tried to replace MOV files with CinemaDNG sequences, and AE returned this error:
    After Effects error: File couldn't be opened for writing: "[file path]". ( 3 :: 0 )
    Normally when you replace footage with a CinemaDNG sequence in AE, Adobe Camera Raw pops open so you can make changes before the file is important. I have never seen this error before.
    My colorist has CC installed as well as CS6, so we tried that instead.
    Colorist opened the Premiere CS6 project in Premiere CC, creating a new Premiere CC project. Replaced MOV files with CinemaDNG sequences within Premiere CC with no error, project plays fine in Premiere CC. Finally! So we imported the new Premiere CC project in AE CC, and all linked CinemaDNG sequences appear as color bars (unlinked footage). When testing to import a CinemaDNG sequence, AE CC returned the same error as AE CS6.
    So we tried opening the same CinemaDNG files in Photoshop CS6 and Photoshop CC to see if there was an error with Camera Raw. Both versions of Photoshop open the CinemaDNG files correctly in Camera Raw (version 8.3). So now we have CinemaDNG files functioning properly in Premiere Pro, Photoshop, but... not AE?
    Tried replicating this on a second, Mountain Lion computer with both versions of AE, and returned the same issue.
    CinemaDNG files from a different source DID open in AE CC and AE CS6 on both computers, which leads me to believe there is some kind of permissions/metadata issue in this particular set of CinemaDNG files I'm using that's causing problems for AE, but NOT Premiere Pro or Photoshop. Anyone experience anything like this?

    try the "oddball problems" fix:
    http://www.bulletsandbones.com/GB/GBFAQ.html#oddballprobs
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • TS1363 while updating my IOS to IOS 6 the updating process couldn't be completed for unknown reason and my iphone has nothing but a black screen with an apple and a meter that shows no progess. it completely froze!

    When updating my IOS 5.1.1 to IOS 6 and after the download completed the updating of the iphone couldn't be completed for unknown error and the device froze and all i have now is a black screen with an apple and a meter that shows no progress I can't switch off my iphone or do anything!!!

    Hi,
    I had a similar problem last week with my nice shiny 3 week old iPhone 6. I noticed the Apple logo was on the screen, but it did not progress like a normal boot up. I restarted the phone, and it showed the Apple logo, then a red screen then cycled back to the logo and kept looping. I got the phone to the iTunes connection stage by keeping hold of the power button and the home button until the apple logo appeared then kept holding the home button. iTunes recognised the phone, and wanted to restore, but this was unsuccessful  because the phone would keep looping to the red screen and iTunes failed. After loads of Apple support, I was told it was a hardware failure, and like you I live more than an hour away from the store. None the less, I made an appointment with the Genius bods, and they replaced the phone. They said they had never heard of the problem, but really, take a look at these forums and you will see that it is a common problem and I suspect they are keeping it under wraps...
    My issue is that as a disappointed customer with faulty goods, why should i have to stick to an appointment to get it replaced? What other store would you have to do this?
    The "Genius" didn't even want to see the phone powered up before offering a replacement... Oh, and it turned out they didn't have the exact same model as a replacement so they were going to send me out of the store empty handed.... I kicked off BIG time, and they very reluctantly gave me a phone from the sales stock, rather than the repairs stock..
    Not a happy Apple customer anymore, and I feel the more people who know about the lack of service and customer care the better. They need to get off there high horse and join the real world!

  • HT204266 App store say's I need to answer three security questions but keeps asking for my password! Won't log in to fill in info keeps asking for password even though I fill in password.

    After setting up new account with iCloud so I can use the app store it asks me to answer three security questions for further security then I am prompted for my password to log in then I put in password and it never logs me in and keeps on asking for my password. I went over all setting but found no problems wit network as I can go on line etc, if anyone has had this issues please help. I was able to download too apps and then was prompted to answer these questions and it would not let me proceed.

    Reset Security Questions
    Frequently asked questions about Apple ID
    Manage My Apple ID
    Or you can email iTunes Support at iTunes Store Support.
    If all else fails:
      1. Go to: Apple Express Lane;
      2. Under Product Categories choose iTunes;
      3. Then choose iTunes Store;
      4. Then choose Account Management;
      5. Now choose iTunes Store Security and answer the bullet questions, then click
          Continue;
      6. Sign in with your Apple ID and press Continue;
      7. Under Contact Options fill out the information and advise iTunes that you would
          like your security/challenge questions reset;
      8. Click Send/Continue.
    You should get a response within 24 hours by email.
    In the event you are unsuccessful then contact AppleCare - Contacting Apple for support and service.
    Another user had success doing the following:
    I got some help from an apple assistant on the phone. It is kind of round about way to get in.
    Here is what he said to do and it is working for me...
      a. on the device that is asking you for the security questions go to "settings", > "store" >
          tap the Apple ID and choose view"Apple ID" and sign in.
      b. Tap on payment information and add a credit/debit card of your preference then select
          "done", in the upper right corner
      c. sign out and back into iTunes on the device by going to "settings"> "store" > tap the
          Apple ID and choose "sign-out" > Tap "sign -in" > "use existing Apple ID" and you
          should be asked to verify your security code for the credit /debit card and NOT the
          security questions.
      d. At this time you can remove the card by going back in to edit the payment info and
          selecting "none" as the card type then saving the changes by selecting "done". You
          should now be able to use your iTunes store credit without answering the security
          questions.
    It's working for me ...I just have to put in my 3 digit security pin from the credit card I am using.
    Good Luck friends!

  • Is Mac's firewall sufficient or is will an additional firewall help?  What security suite do you recomend for MacBook Air with Maverick?

    Is Mac's firewall sufficient or is will an additional firewall help?  What security suite do you recomend for MacBook Air with Maverick?

    Third party security software is better at causing problems then it is at solving them.
    I recommend against them.
    If you felt it is necessary then configure the firwall software included with OS X.
    Allan

  • Any known security best practices to follow for FMS deployment

    Hi all,
    We have recently deployed Flash Media Streaming server 3.5.2 and Flash Media Encoder on a Windows 2003 machine. Do you guys know of any security best practices to follow for the FMS server deployment on a Windows machine, could you please point me to that resource.

    Hi
    I will add some concepts, I am not sure how all of them work technically but there should be enough here for you to
    dig deeper, and also alot of this is relevant to your environment and how you want to deploy it.
    I have done a 28 server deployment, 4 origin and 24 edge servers.
    All the Edge servers on the TCP/IP properties we disabled file and printer sharing. Basically this is a way in for hackers and we disabled this only on the edge servers as these are the ones presented to the public.
    We also only allowed ports 1935, 80, 443 on our NICs. Protocol numbers are 6 and 17, this means that you are allowing UDP and TCP. So definitely test out your TCP/IP port filtering until you are confortable that all your connection types are working and secure.
    Use RTMPE over RTMP, as it is there to be used and I am surprised not more people use it. The problem as with any other encryption protocol, it may cause higher overhead on resources of the servers holding the connections.
    You may want to look at SWF verification. In my understanding, it works as the following. You publish a SWF file on a website. This is a source code that your player uses for authentication. If you enable your edge servers to only listen for authentication requests from that SWF file, then hopefully you are really lessening the highjacking possibilities on your streams.
    If you are doing encoding via FME then I would suggest that you download the authentication plugin that is available on the Flash Media Encoder download site.
    There are other things you can look at making it more secure like adaptor.xml, using a front end load balancer, HTML domains, SWF domains,
    Firewalls and DRM.
    I hope this helps you out.
    Roberto

  • Security solution with Identity server for SOX compliance

    Hi all,
    Has anybody used Identity Server as security solution to achieve SOX compliance? i want to know general view, opinions , experiance of ppl while implementing such solution.
    Just a little background of SOX: It is Created by US Congress in the wake of corporate scandals like Enron in 2001 and 2002.it is an attempts to tighten controls over corporate financial reporting and transparency.
    I am basically interested in implementing security solutions using Identity server for SOX compliance. Section 404 of this act deals with internal controls, which essentially requires organizations to provide following facilities -
    1. User Identification, authorization and access
    2. User control of user accounts
    3. Central identification and access rights/permissions management
    4. Violation and security activity report
    Has anybody developed such solution? What are your general experiance, problems , issues etc? Please share your view....

    Just too quick to draw conclusion: See below FAQ
    If you are not in the same AS container, let me know. Jerry
    Copy from J2EE agent FAQ
    Question - Is it possible to install a J2EE 2.1agent and Identity Server on the same instance of the application server ?
    Installing the IS60SP1/IS61 server and J2EE 2.1 policy agent on the sameninstance of Application server is not a supported configuration. We do support the 21 J2EE agent and IS installed on different instances of the application server. So, users can install theJ2EE 2.1 agent on a one instance of the application server and install IS on a different instance of the apps server.

  • Configure security-role and method permission for EJB 3.0 using Jdev 11g

    The EJB 3.0 session bean created by Jdev 11g EJB wizard does not have ejb-jar.xml. Where and how can security-role and method permission for the EJB be configured?
    For example,
    <assembly-descriptor>
    <security-role>
    <role-name>managers</role-name>
    </security-role>
    <method-permission>
    <role-name>managers</role-name>
    <method>
    <ejb-name>Employees</ejb-name>
    <method-name>setSalary</method-name>
    <method-params>
    <method-param>java.lang.Long</method-param>
    </method-params>
    </method>
    </method-permission>
    </assembly-descriptor>

    user516954,
    By default annotations are used. However, you can create a new descriptor and that will take presidence over any declared annotation.
    --Ric                                                                                                                                                                                                                                                                                                                               

  • Mac: couldn't complete update for Ps error message 49 in Creative Cloud

    Mac: couldn't complete update for Ps error message 49 in Creative Cloud. Anyone help?

    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • Please help me. i buy Ipad 2 and I couldn't find hole for Sim

    Please help me. i buy Ipad 2 and I couldn't find hole for Sim

    If you've got the US Verizon model then it doesn't use a sim, it is CDMA based - and the wifi only model doesn't have a sim slot either. If it is 3G and takes a sim then if holding the iPad with the screen towards you, the slot should be on the left-hand side towards the top.
    Edit : there is a picture of the slot, and how to open it, in chapter 1 of the manual which can be downloaded from here http://support.apple.com/manuals/#ipad
    Message was edited by: King_Penguin

  • Error: cannot resolve dependencies for "codecs"

    I receive this error when I'm trying to upgrade codecs 20060501-2 package. It tries to find libstdc++5 which is in Testing repository, and I'm not using Testing.
    error: cannot resolve dependencies for "codecs":
    "libstdc++5" is not in the package set
    I think libstdc++5 should be moved to Current or something like that (You know what to do )...
    Best regards

    Skyscraper wrote:
    I receive this error when I'm trying to upgrade codecs 20060501-2 package. It tries to find libstdc++5 which is in Testing repository, and I'm not using Testing.
    error: cannot resolve dependencies for "codecs":
    "libstdc++5" is not in the package set
    I think libstdc++5 should be moved to Current or something like that (You know what to do )...
    Best regards
    They are in testing repository:
    http://archlinux.org/packages.php?s_rep … ate=&pp=50

Maybe you are looking for

  • Problems installing CF 10 with Apache 2.2.24 (or 2.4) on RHEL 6.4

    Built Apache using openssl 1.0.1e (updated LD_LIBRARY_PATH to reflect the correct openssl libs) and pcre. Configure for build was: configure --enable-ssl=shared --with-ssl=/usr/local/ssl  --enable-so --with-included-apr --with-pcre  --with-perl Also

  • Can't import CD into ITunes - Windows 7 error

    Tried to import CD into Itunes on VAIO laptop, using Windows 7. Get the following message "Itunes has stopped working. Windows is looking for a solution. A problem caused the program to stop working correctly. Windows will close the program and notif

  • HELP ipod not recognised on PC

    Help My Ipod does not show up on my PC. It does not dingdong when you plug it in. I have tried another ipod I have got ang that still picks up on the PC. I have tried restoring the Ipod, I have reinstalled Itunes, and I have checked the drivers on th

  • Create vendor in ERP R/3 with internal number range

    HI, When I create a new vendor from MDM in R/3 with internal number range ADRMAS is processed OK but CREMDM is in status 51 because of missing address data. According to sap note  1052964 (se below) ADRMAS must be the first IDOC and it should contain

  • 11g and ORA-04030 problems

    We have a new Dell server, OS Windows 2003 Server Enterprise 32bit with 32GB or RAM in it. Right now 64bit is not available to us because of Vendor issues so I can't go down that road yet. I keep running into ORA-04030 errors whether I put in the /3G