HPCM sample batch client not working

Hi,
When trying to use the HPCM sample batch client I get the following error message:
[http://pastie.org/private/q5johajzify7ng4pyztlw]
I have copied the following files into the same directory:
%EPM_ORACLE_HOME%/../user_projects/domains/EPMSystem/config/fmwconfig/jps-config.xml
%EPM_ORACLE_HOME%/../user_projects/domains/EPMSystem/config/fmwconfig/wsm-keystore.jks
%EPM_ORACLE_HOME%/../user_projects/domains/EPMSystem/config/fmwconfig/cwallet.sso
I have edited my hpm_ws_client.properties files appropriately, as you can see here:
[http://pastie.org/private/acq5ibvrbipxzd7daggwxw]
The profitability service is running correctly, when I visit http://qubixepm:6756/profitability/ I get:
Use Workspace to launch Hyperion Profitability Management.
Josh.

Hi,
When trying to use the HPCM sample batch client I get the following error message:
[http://pastie.org/private/q5johajzify7ng4pyztlw]
I have copied the following files into the same directory:
%EPM_ORACLE_HOME%/../user_projects/domains/EPMSystem/config/fmwconfig/jps-config.xml
%EPM_ORACLE_HOME%/../user_projects/domains/EPMSystem/config/fmwconfig/wsm-keystore.jks
%EPM_ORACLE_HOME%/../user_projects/domains/EPMSystem/config/fmwconfig/cwallet.sso
I have edited my hpm_ws_client.properties files appropriately, as you can see here:
[http://pastie.org/private/acq5ibvrbipxzd7daggwxw]
The profitability service is running correctly, when I visit http://qubixepm:6756/profitability/ I get:
Use Workspace to launch Hyperion Profitability Management.
Josh.

Similar Messages

  • Bridge CC Tools - Photoshop - Batch does not work in Photoshop CC 2014.

    in Bridge CC Tools - Photoshop - Batch does not work in Photoshop CC 2014. At first I didn't even see the option but I reinstalled Photoshop CC and now I see the menu option but when I try it there is a message that I need to use Photoshop CC. So I open Photoshop CC and the same thing happens? I can't seem to make it work.

    Kitty,
    Your screen shot is in the virus scanning queue, where it can linger for minutes, hours, days or weeks.
    If you use the camera icon in the reply editor's formatting bar, you can embed your image in your post, where it will be viewable instantly.
    then:
    As for your issue, make sure all applicable scripts are checked in Bridge preferences:

  • Photoshop SC5. What's the problem, Automate / Batch, did not work.

    Photoshop SC5. What's the problem, Automate / Batch, did not work.
    Message was edited by: roomus

    What OS?  Details?
    What error message?

  • Client not working after upgrade

    Hi,
    I am upgrading my SAP 8.8 SP:00 Pl 10 to PL 16. with the help of upgrade wizard all the SAP items are upgraded from PL 10 to Pl 16.
    When i was login in through SAP client it asked for upgrade i clicked yes after some time the upgrade stop and the SAP client logo on the server disappear. Now i am not able to login since there is no client to login.
    I tried to install client from set up file but it gives following error
    Error Number: 0x80040702
    Description: Failed to load Dll: creator Dll
    I have refered SAP Note: 1408662 and also refered other thread but its not working
    I tried to uninstall client from add/ remove program but i am not able to do so
    Pls provide solution since i am not able to login.

    Hi,
    I have already installed the recommended c++ version as per SAP note, still it is not working. I tried to uninstall the client from
    B1SHR folder but it gives me error.
    The server is properly upgraded and problem exists on 3 of client machines.
    I have to any how remove this client file or make it working to acces SAP else i wil have to format system which i dont want to do.

  • PS/Bridge CS5 Batch Processor Not Working / Missing Scripts

    I'm having a bit of a problem within Photoshop/Bridge CS5 and haven't found anything that works to resolve it.
    In Bridge, I want to launch the Photoshop Batch Processor via Tools>Photoshop>Batch.
    When I select this, Photoshop launches, but the dialog to process the images never shows. On occasion, if I return to Bridge and attempt the same operation again, I'll get a notification that there's already something in progress and asks if I want to queue this operation. The other times (majority) I can return to Bridge and attempt the operation again but get no dialogues in Photoshop. I can try the other options in this menu as well (eg Image Processor, etc) and get the same results.
    Here's what I've done so far:
    1. Checked Bridge Edit>Preferences>Startup Scripts and ensured those were all checked. I even disabled all, closed Bridge and Photoshop, then re-enabled.
    2. Cleared all Preferences from Bridge and Photoshop (using Ctrl+Shift+Alt at launch).
    3. Reinstalled Photoshop (multiple times)
    4. Uninstalled Photoshop, ran the Adobe CS Cleaner application, then reinstalled Photoshop.
    It should be noted that in Bridge>Edit>Preferences and Startup Scripts, if I click the button to 'Reveal my scripts' the folder it takes me to is blank. Not sure if this folder is solely used for personal/user created scripts or for others as well, but it's completely empty.
    I have also gone to Help>Updates and updated both applications with any necessary updates from Adobe.
    If I go into Photoshop and select File>Automate>Batch or even File>Scripts>Image Processor, both dialogues open fine.
    Running Windows 8.1 Pro.
    Anyone else seen this and actually resolve the issue? Does anyone know where the scripts are supposed to be located and/or if I can get them from somewhere else? Any help is much appreciated

    Make sure Photoshop is not started and then try to use Bridge menu Tools>Photoshop>Batch does Photoshop start up?
    Bridge CS5 menu Tools>Photoshop>Batch works on my Windows 7 Pro system
    Photoshop Automate>Batch is not a script  and Photoshop does not any external java program it had its own version of java plugin.
    c:\Program Files (x86)\Adobe\Adobe Photoshop CS5\Plug-ins\Extensions\ScriptingSupport.8li
    c:\Program Files\Adobe\Adobe Photoshop CS5 (64 Bit)\Plug-ins\Extensions\ScriptingSupport.8li
    However there are two startup scripts for the bridge involved Bridge and Photoshop  You must have them for you have a Bridge menu Tools>Photoshop>items
    two scripts on my system are:
    c:\Program Files (x86)\Common Files\Adobe\Startup Scripts CS5\Adobe Bridge\bridge-4.jsx
    c:\Program Files (x86)\Common Files\Adobe\Startup Scripts CS5\Adobe Photoshop\photoshop.jsx
    The photoshop.jsx seems to be the one the the inserts the menu Tools>Photoshop>Batch into Bridge and also invokes Photosgop Automate>batch  photoshop.jsx  also inserts the other Bridge menu Tools>Photoshop>Menu Itens that you state work.
    Here is what I see in my photoshop.jsx for batch.  I do not know or understand Bridge scripting and do not know javsscript but what I see there seems to be some checking done about Photoshop being available and if it is not the script just returns which is what you seem to be experiencing the test looks like this
      if (!photoshop.correctPSIsAvailable (availabilityCheckOptions))
      return;
    The whole batch support section follows:
    //=================================================================
    // Batch
    // Sets up Photoshop's Batch automation command to be
    // accessed from the Bridge.
    //=================================================================
    // This routine takes an array of files. If called by Photoshop,
    // it will invoke Batch with the files. If called by
    // any other app, it will send a BridgeTalk message to Photoshop
    // to invoke this routine with the same arguments.
    photoshop.batch = function (/* Array */ files, availabilityCheckOptions)
      try
      if (availabilityCheckOptions == null)
      availabilityCheckOptions = new AvailabilityCheckOptions ();
      // Make sure this can be run.
      if (!photoshop.correctPSIsAvailable (availabilityCheckOptions))
      return;
      if (BridgeTalk.appName != "photoshop")
      // Bring Photoshop to the foreground.
      BridgeTalk.bringToFront (photoshop.versionInfo.btTargetName);
      // Create a new BridgeTalk message for Photoshop to invoke
      // Batch with the selected files
      var btMessage = new BridgeTalk;
      btMessage.target = photoshop.versionInfo.btTargetName;
      btMessage.body = "photoshop.batch (" + files.toSource () + ");";
      btMessage.send ();
      else
      app.bringToFront();
      photoshop.runActionCommand ('batch', files,
      localize ("$$$/PSBI/Automate/BatchSettingsFile=Batch via Bridge Settings"));
      catch (error)
      if (error.number != 8007) // Don't report user cancelled errors.
      alert (error);
    // This routine is called when the Bridge's Batch menu item is
    // chosen.
    photoshop.batchFromBridge = function ()
      try
      var availabilityCheckOptions = new AvailabilityCheckOptions ();
      // Make sure this can be run.
      if (!photoshop.correctPSIsAvailable (availabilityCheckOptions))
      return;
      var files = photoshop.getBridgeFileListForAutomateCommand (true, false);
      if (files.length != 0)
      photoshop.batch (files, availabilityCheckOptions);
      catch (error)
      if (error.number != 8007) // Don't report user cancelled errors.
      alert (error);
    // The code below inserts the Batch menu item into the Bridge menus.
    if ((BridgeTalk.appName == "bridge") && (BridgeTalk.appVersion.indexOf (photoshop.versionInfo.bridgeTargetVersion) == 0))
      // Use temp function to keep vars out of global namespace.
      photoshop.tempFunction = function ()
      // Set up the info necessary for inserting this item into the Bridge's menus later.
      var menuItemInfo = new Object;
      menuItemInfo.text = localize ("$$$/PSBI/Menu/Automate/Batch=Batch...");
      menuItemInfo.name = 'Batch';
      menuItemInfo.onSelect = photoshop.batchFromBridge;
      photoshop.menuItemInfoArray.push (menuItemInfo);
      photoshop.tempFunction ();
      delete photoshop.tempFunction;

  • Batch window not working. Help,plz its urgent!!

    My batch window is not showing up stuff that I have submited from compressor, FCP still says its exporting but file does not work afterwards.
    G5   Mac OS X (10.4.3)  

    You might want to check this note from Apple:
    http://docs.info.apple.com/article.html?artnum=93234

  • Batch Procedure Not Working For Image Resizing in Fireworks 8

    Scaling graphics with a batch process. You can alter the
    height and width of images being exported using the Scale option in
    the Batch Process dialog box. To set scaling options for
    batch-processed files:
    Select Scale from the Batch Options list and click Add. In
    the Scale pop-up menu, select an option:
    Scale to Fit Area makes images fit proportionally with the
    maximum width and height range you specify.
    If you have chosen either Scale to Size or Scale to Fit Area
    in the Scale pop-up menu, you can also choose to scale only
    those documents that are currently larger than the target
    size. To do so, select the Only Scale Documents Currently Larger
    Than Target Size option. Click Next to continue the batch
    process. For information on completing the batch process,
    This routine us not working as described: It is only
    modifying files larger than the dimension I wanted, whereas in the
    Fireworks MX, it would upsize smaller images to this requirement.
    Just FYI, we did not have the box checked to only apply to
    documents that are currently larger than the target size.
    IS THIS A BUG IN THE FIREWORKS 8 ???
    This is one of the primary reasons we use this software
    ALL RESPONSES WELCOME, ESPECIALLY ONE THAT WILL FIX THIS
    ISSUE !!!!
    JSEVonda

    I agree the option should not be there if it doesn't work.
    Quite
    honestly, I think the FW team missed it in the last upgrade.
    And you're talking about more than just scaling - you are
    most likely
    including an export command as well, this was not indicated
    in your
    original post. Keep in mind your scaling occurs BEFORE any
    saving of the
    file at any new optimization setting. Maintaining a low
    compression
    would help, yes, but I'm not referring to quality loss
    through
    compression, I'm referring to quality loss through data
    extrapolation
    (interpolation?). When you resample an image to a large pixel
    count, you
    are asking the software to use an algorithm to create pixel
    data that
    did not exist in the original file. Whether it's Photoshop or
    Fireworks,
    quality loss will happen in a bitmap file. In short, you're
    asking the
    software to make an educated guess about the data in these
    new pixels.
    As for your end results - you did not indicate the original
    size of your
    files (pixel dimensions), nor how much you are upsampling. If
    your
    files are not being upsampled too greatly, and/or there is a
    great deal
    of pixel data to begin with and/or the final upsized images
    are not
    really large then it's possible that you do not notice any
    significant
    loss in quality.
    My assumption was you were working with small files in terms
    of
    resolution. Generally, though, web images are not large to
    begin with
    and do not have a huge pixel count, so resizing them upwards
    would
    usually be noticeable.
    All I am pointing out is that the file would not have the
    same quality
    as the original, even if the option was working. Whether that
    difference
    in quality is noticeable . . .
    For example, I took an image that was 72 x 54 pixels, resized
    it 200 %
    to 144x108 pixels. Bigger image, but quality is low and
    noticeable.
    I do the same thing with a file that is 1024 x 768 and I can
    still see
    some loss, but it doesn't look quite as bad. IT is however,
    noticeably
    more blurry than the original.
    And now how about a possible FW solution? ;-)
    Open ONE file in FW
    Set your jpeg quality to 100 (Type the value, do NOT use the
    slider)
    Go to Modify > Transform > Numeric Transform
    Set your new image size to the desired dimensions
    Click OK
    Go to Modify > Canvas > Fit Canvas
    Find those three steps in the History panel and save it as a
    custom
    command.
    You will now be able to access this step in the Batch Process
    Wizard, in
    the Commands menu. or in the Commands menu in FW.
    Add your other batch steps. You do not need the export option
    because we
    set that up in the custom command, but you might want to use
    the Rename
    operation.
    Click Next
    Choose an export directory if you wish
    Save the script to create a complete custom command that
    handles both
    sizing and exporting and file renaming and a custom location
    for saving
    the file.
    This one script can then be used either from the Batch
    Process Wizard OR
    from the Commands Menu in FW.
    One note, if you choose a custom location for the files to be
    saved,
    that directory gets written into the command, so whenever the
    batch is
    run - that is where the new files will go.
    As for other programs, Photoshop comes to mind. I'm sure
    there are
    other, specialized batch processing programs out there which
    could do
    exactly what you want.
    HTH!
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    Extending Knowledge, Daily
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    news://forums.macromedia.com/macromedia.fireworks
    news://forums.macromedia.com/macromedia.dreamweaver
    JSEVonda wrote:
    > Well if that is the case, they should have notified the
    users to tell them, as
    > that is one of the primary reasons we even use the
    product. On that note, from
    > reading above replies, the upsampling did not degrade
    any image quality if you
    > simply chose "custom", as it allowed you to set the
    image quality to 100% of a
    > jpeg, during the batch routine, if you so desired.
    >
    > That said, what other product will do the task of
    "upsampling" as you call it,
    > in a batch format, as I do not want to have to go thru
    over 1000 images each
    > week and upsize them one at a time.
    >
    > JSEVonda
    >

  • Sample Login Module Not working

    I have configured the sample login module shipped with identity server 6.0 for understanding the configuration of a custome login module.
    As per the instruction when i try to run the example i get an Authentication faliure i have given the following url "http://<domain-name>:58080/amserver/UI/Login?module=LoginModuleSample&org=<my org name>"
    Could anyone plz tell me y this error has occurred and if not then suggest me a way to return back to a state where i was before working with this example as now i cannot open the amconsole as well.
    plz help as fast as possible
    kirtan

    use commandline to remove and then add (again) amauth service. you should be able to log into the console again.... with your amadmin id and password
    for getting the sample auth module to work.. please read the docs carefully, it has a very clear step by step explanation on how to do it...

  • DCNM LAN JAVA Client Not working

    Hi , 
    Recently i installed the DCNM server , we are using nexus 7k in dc environment . I  purchased the DCNM server license and assigned it to  switches thourgh web dcnm client . Login in Java DCNM LAN is  not working , It says check your username/password . Only with SAN its working Fine , Authetication to the dcnm is configured to check the TACACS server  . Can you help on this. 
    Thanks , Vedagiri Gopinath

    Duplicate posts.  :P
    Go here:  http://supportforums.cisco.com/discussion/12164196/dcnm-lan-java-client-not-working

  • Sample java client not running--showing a strange error-- help urgently

    Hi,
    I have followed all the steps, given in JDevloper help, to create and deploy an EJB onto a 9ias server and I have been successful in creating the EJB and deploying it from the JDevloper machine to 9ias machine.My JDevloper is on one machine and 9ias is on another. After deploying when I am creating a sample java client, as given in the JDevloper help file, it gives a very strange error
    java.lang.NullPointerException
         void Samplemypackage1.MySessionEJB1Client.main(java.lang.String[])
    Process exited with exit code 0.
    I have tried a lot but it's not happening. Is it becuase
    1. 9ias and JDevloper should be on the same machine
    2. some configurational changes need to be done in the settings
    3. jdk1.3.1 is not compatible with JDevloper.
    I am enclosing the code snippet for your quick reference.
    package Samplemypackage1;
    import java.util.Hashtable;
    //import javax.rmi.PortableRemoteObject;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import mypackage1.MySessionEJB1;
    import mypackage1.MySessionEJB1Home;
    public class MySessionEJB1Client
    public static void main(String [] args)
    MySessionEJB1Client mySessionEJB1Client = new MySessionEJB1Client();
    try
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "admin");
    env.put(Context.PROVIDER_URL, "ormi://9ias:23791/MySessionEJB1");
    Context ctx = new InitialContext(env);
    MySessionEJB1Home mySessionEJB1Home = (MySessionEJB1Home)ctx.lookup("MySessionEJB1");
    MySessionEJB1 mySessionEJB1;
    // Use one of the create() methods below to create a new instance
    mySessionEJB1 = mySessionEJB1Home.create();
    // Call any of the Remote methods below to access the EJB
    System.out.println(mySessionEJB1.calc("om sri"));
    catch(NullPointerException ne)
    ne.printStackTrace();
    catch(Throwable ex)
    ex.printStackTrace();
    When I tried to debug the program I found that the line " mySessionEJB1 = mySessionEJB1Home.create()" returns a null. I really fail to understand as to why it is happening.
    Please help me.
    Thankx

    That's strange. home.create() should never return a null.
    Do you see any exception trace on the server side?
    Do you have the same version of oc4j.jar on client and server machine? Which version of Jdeveloper and 9iAs are you using?
    Try copying oc4j.jar from the server machine to client machine and use that to connect to the bean.
    HTH
    Dhiraj

  • Oracle 10g Client not working from Vista Business

    Hi,
    I have installed Oracle 10g Rel2 DB on my desktop (OS Vista Ultimate X64 bit) and try to connect from my new laptop (OS Vista business) after installing the client software which does not work, whereas I am able to connect to same database from my other laptop using Windows XP. The tnsnames.ora files on both laptops have the same contents. Moreover, the SQL Plus is also not working on the vista laptop, I mean when I try to login the window closes down itself it doesn't stay open even to give any error message. . . Any ideas would be a great help . . .thx

    Did you install the Vista specific Oracle client?
    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10204_winx64_vista_win2k8.html

  • Lens Correction Batch Application Not Working

    Using LR3, I can set the lens correction then go to 'Develop Settings/Copy Settings' and the option is there for lens correction (I check all of the boxes under lens correction).  If I paste the settings to just one photo, the lens correction applies.  However, if I select multiple images to apply it to, it only applies it to the first image.  So now my fingers are worn out from applying it manually 275 times (with ctrl/shift/v then right arrow, repeat).
    Please let me know if I am doing something wrong.
    TIA!!!
    Jesse

    Thank you for the helpful suggestion Hamish!  I will keep that in mind as an option.
    I did find a way to make the batch changes.
    1.  Click on the photo that you want to copy the settings from, then click the 'Copy' button.  A dialogue box will pop up to let you select what attributes you want to copy.  Select the attributes then click on copy in the dialogue box.
    2.  Highlight all of the other photos in the filmstrip that you want to apply these attributes to.  Be sure to include the photo you used to copy the attributes from, or this will not work.
    3.  Click the Sync button.

  • [T400] Cisco VPN client not working over wireless adapter (but works on cabled connection)

    I have a very strange problem. 
    I need to connect to my work via the cisco vpn client (version 5.0.00.0340). 
    My previous laptop (T43 , windows XP) worked well through both wired / wireless connections.  My desktop machine (vista) works via wired connection (it has no wireless connection). 
    On my new T400, the VPN client works via a wired connection but not via the wireless adapter.  
    On the wireless apapter, the vpn seems to connect OK, but when I try to access resources via the VPN there is little response.
    I get this in the vpn log...
    405   08:56:57.073  04/16/09  Sev=Warning/2 IPSEC/0xE3700003
    Function CniInjectSend() failed with an error code of 0xa4510009 (IPSecDrvCB:846)
     I've tried disabling the firewall (in both the T400 and the router), removed access connections, and disabling tcp v6. I've rebooted everything too. 
    But, nothing seems to work.   I suspect the problem is on the t400 somewhere, because the old laptop used to work OK via wireless.
    I've seen some google links on cisco vpn not working via  wireless but nothing seems to apply to my exact situation yet. 
    Anyone else had this problem or know of a fix? Thanks in advance. 
    Solved!
    Go to Solution.

    all good now, got it working. 
    The Deterministic network thing was not installed on the wireless adapter for some reason.
    So, I installed the latest wireless driver, reinstalled the vpn and all is good now.  

  • Driver to email client not working

    For my class we are attempting to write our own email client. Our professor gave us the following driver. However when I attempt to compile the driver I get these errors:
    MailClient.java:125: cannot find symbol
    symbol  : variable envelope
    location: class MailClient.SendListener
                   SMTPConnection connection = new SMTPConnection(envelope);
                                                                  ^
    MailClient.java:126: cannot find symbol
    symbol  : variable envelope
    location: class MailClient.SendListener
                   connection.send(envelope);Admittedly it could be something with the SMPTConnection code, as that is what we had to write. However I would have expected it to throw some sort of exception in there and it does not. Any help to figure out why the driver is not working would be appreciatted.
    Code:
      import java.io.*;
       import java.net.*;
       import java.awt.*;
       import java.awt.event.*;
    /* $Id: MailClient.java,v 1.7 1999/07/22 12:07:30 kangasha Exp $ */
    * A simple mail client with a GUI for sending mail.
    * @author Jussi Kangasharju
        public class MailClient extends Frame {
        /* The stuff for the GUI. */
          private Button btSend = new Button("Send");
          private Button btClear = new Button("Clear");
          private Button btQuit = new Button("Quit");
          private Label serverLabel = new Label("Local mailserver:");
          private TextField serverField = new TextField("", 40);
          private Label fromLabel = new Label("From:");
          private TextField fromField = new TextField("", 40);
          private Label toLabel = new Label("To:");
          private TextField toField = new TextField("", 40);
          private Label subjectLabel = new Label("Subject:");
          private TextField subjectField = new TextField("", 40);
          private Label messageLabel = new Label("Message:");
          private TextArea messageText = new TextArea(10, 40);
         * Create a new MailClient window with fields for entering all
         * the relevant information (From, To, Subject, and message).
           public MailClient() {
             super("Java Mailclient");
          /* Create panels for holding the fields. To make it look nice,
          create an extra panel for holding all the child panels. */
             Panel serverPanel = new Panel(new BorderLayout());
             Panel fromPanel = new Panel(new BorderLayout());
             Panel toPanel = new Panel(new BorderLayout());
             Panel subjectPanel = new Panel(new BorderLayout());
             Panel messagePanel = new Panel(new BorderLayout());
             serverPanel.add(serverLabel, BorderLayout.WEST);
             serverPanel.add(serverField, BorderLayout.CENTER);
             fromPanel.add(fromLabel, BorderLayout.WEST);
             fromPanel.add(fromField, BorderLayout.CENTER);
             toPanel.add(toLabel, BorderLayout.WEST);
             toPanel.add(toField, BorderLayout.CENTER);
             subjectPanel.add(subjectLabel, BorderLayout.WEST);
             subjectPanel.add(subjectField, BorderLayout.CENTER);
             messagePanel.add(messageLabel, BorderLayout.NORTH);     
             messagePanel.add(messageText, BorderLayout.CENTER);
             Panel fieldPanel = new Panel(new GridLayout(0, 1));
             fieldPanel.add(serverPanel);
             fieldPanel.add(fromPanel);
             fieldPanel.add(toPanel);
             fieldPanel.add(subjectPanel);
          /* Create a panel for the buttons and add listeners to the
          buttons. */
             Panel buttonPanel = new Panel(new GridLayout(1, 0));
             btSend.addActionListener(new SendListener());
             btClear.addActionListener(new ClearListener());
             btQuit.addActionListener(new QuitListener());
             buttonPanel.add(btSend);
             buttonPanel.add(btClear);
             buttonPanel.add(btQuit);
          /* Add, pack, and show. */
             add(fieldPanel, BorderLayout.NORTH);
             add(messagePanel, BorderLayout.CENTER);
             add(buttonPanel, BorderLayout.SOUTH);
             pack();
             show();
           static public void main(String argv[]) {
             new MailClient();
        /* Handler for the Send-button. */
           class SendListener implements ActionListener {
              public void actionPerformed(ActionEvent event) {
                System.out.println("Sending mail");
             /* Check that we have the local mailserver */
                if ((serverField.getText()).equals("")) {
                   System.out.println("Need name of local mailserver!");
                   return;
             /* Check that we have the sender and recipient. */
                if((fromField.getText()).equals("")) {
                   System.out.println("Need sender!");
                   return;
                if((toField.getText()).equals("")) {
                   System.out.println("Need recipient!");
                   return;
             /* Create the message */
                Message mailMessage = new Message(fromField.getText(),
                         toField.getText(),
                         subjectField.getText(),
                         messageText.getText());
             /* Check that the message is valid, i.e., sender and
              recipient addresses look ok. */
                if(!mailMessage.isValid()) {
                   return;
             /* Create the envelope, open the connection and try to send
              the message. */
                try {
                   Envelope envelope = new Envelope(mailMessage, serverField.getText());
                    catch (UnknownHostException e) {
                   /* If there is an error, do not go further */
                      return;
                try {
                   SMTPConnection connection = new SMTPConnection(envelope);
                   connection.send(envelope);
                   connection.close();
                    catch (IOException error) {
                      System.out.println("Sending failed: " + error);
                      return;
                System.out.println("Mail sent succesfully!");
        /* Clear the fields on the GUI. */
           class ClearListener implements ActionListener {
              public void actionPerformed(ActionEvent e) {
                System.out.println("Clearing fields");
                fromField.setText("");
                toField.setText("");
                subjectField.setText("");
                messageText.setText("");
        /* Quit. */
           class QuitListener implements ActionListener {
              public void actionPerformed(ActionEvent e) {
                System.exit(0);
       }

    This is what I mean:
    /* Create the envelope, open the connection and try to send the message. */
               Envelope envelope = null;
                try {
                     envelope = new Envelope(mailMessage, serverField.getText());
                    catch (UnknownHostException e) {
                   /* If there is an error, do not go further */
                      return;
                try {
                   SMTPConnection connection = new SMTPConnection(envelope);
                   connection.send(envelope);
                   connection.close();
                    catch (IOException error) {
                      System.out.println("Sending failed: " + error);
                      return;
                System.out.println("Mail sent succesfully!");

  • "Speak Here" sample code is not working

    Hi,
    I downloaded Speak here iphone sample code from apple site.
    Its not working on simulator. I connected headphone and mic to macbook.
    Crashing at function initWithURL file name is AudioRecorder.m
    Crashing line = OSStatus result = AudioQueueNewInput(.....
    I want to use same code in my application.
    Thanks,
    Ganesh Pisal

    "Speak Here" code is available for iphone or ipod?
    Its not working on my simulator and ipod 2.1.
    Not tried on iphone, I dont have iphone.

Maybe you are looking for

  • Add new fields incu stomer data tab ( transaction BP)

    Hello, I need to add three new fields in the  standard  transaction BP.  I need the  three new fields show in the customer data tab when you have introduced a determinated value in control tab before. Is it possible? Can you tell me the way? Thanks

  • Is there a manual for os7?

    Downloaded OS7- is there a manual online?  Thanks!

  • What to do if iPod has more capacity than computer's HDD?

    I just got myself the 160GB iPod Classic, only to realize some weeks later that how can I fill it up if my MacBook has only 120GB of HDD? Is there a way to fill it up without having to sync back to iTunes? I would mostly use it for videos, either fro

  • Can't connect to 192.168.1.1 with WRT610N

    Hi, i've been trying to add my sister's new laptop to the authorized MAC adress on the router, but i just can't get on the 192.168.1.1 administration page. When i type the adress in, the page loads for minutes, hours and even days with no result. I t

  • ActionForm with Dynamic Fields/#Fields

    I'm new to struts (and JSP for that matter) and I'm having some difficulty setting up particular actionForm and actionForward. What I want to do is based off a value selected from a drop down present the user with different sets of "volumes" to enter