Host name not derived as FQDN (TH_GET_PLUGIN_INFO )

Hello,
we've got a problem in the CRM web UI, however, I assume it is more related to general BSP settings.
When testing a CRM component ICCMP_HEADER which is a BSP application in the component workbench
(tcode BSP_WD_CMPWB). The browser tells that an exception
CX_BSP_WD_HTTP_RESPONSE_ERROR is thrown in class
CL_BSP_WD_STREAM_LOADER, method LOAD_FROM_URL.
I did some debugging and found out that in this method in line 20,
function module TH_PLUGINS_ACTIVE is called. It returns that both HTTP
and HTTPS are active. Due to this, in line 31 the system calls method
CL_HTTP_CLIENT=>CREATE_BY_DESTINATION. In this method function module
TH_GET_PLUGIN_INFO is called. It returns the host name (uxsapl07)
without FQDN (.mobilkom.at). I tested the function module on our
development system (MSD) and it returns the full hostname
(vssapk08.mobilkom.at).
I've checked the host name buffer in tcode SMICM and it shows only the
hostname (no FQDN). If refreshing the buffer, it gets filled again with
only the hostname.
I've compared settings on productive system MSP with development system
MSD:
parameter: SAPLOCALHOSTFULL
MSP: uxsapl07.mobilkom.at
MSD: vssapk08.mobilkom.at
parameter: icm/host_name_full
MSP: empty
MSD: empty
However, in tcode SMICM --> paramters, both systems show the FQDN for
parameter icm/host_name_full.
I don't know why it works then on MSD and not on MSP.
Many thanks & regards
Wolfgang

parameter: icm/host_name_full
MSP: empty
MSD: empty
try setting the above parameter with the FQDN (RZ10) and restart the ICM
after restart run program RSPARAM to check whether the changes had taken effect
Regards
Raja

Similar Messages

  • Web Dynpro Application URL Host Name Not Correct

    Hello,
    I am developing a web dynpro application in our development system but when I activate the application it gets a URL that points to our test system.  When I test the application in HTTP Service (SICF) the URL for the development system is passed to the browser.  WHere do you maintain the host that is being used to build the URL for the web dynpro application when it is activated.
    Thanks,
    Jim N.

    Hello,
    To configure the FQDN (host name full), please take a look at these:
    [http://help.sap.com/saphelp_nw2004s/helpdata/en/67/be9442572e1231e10000000a1550b0/content.htm] and
    [http://help.sap.com/saphelp_nw2004s/helpdata/en/43/e86de5008b4d9ae10000000a155369/frameset.htm].
    Regards,

  • Full qualified host name not appearing in url within WSDL generated from PI

    Hi
       We are on PI711  ( AIX OS ) and are stuck with an issue of the fully qualifed hostname not appearing within WSDL file  generated in PI71 for a webservice it exposes using the Integration builder
    We changed the host name in exchange profile ( all locations ) from hostname to hostname.companyname.intra and also in the ABAP stack as recommended in all OSS notes.
    We use the Integration Directory --> Sender Agreement --> Display WSDL option to generate the WSDL.
    Its to be noted that all locations ( including url for WSDL ) have the fully qualified hostname except the url within the WSDL.
    Dioes anyone come across this issue/ know which parameters to be updated on the PI server to make the url within the WSDL for the PI webservice to have the fully qualified host name ?

    HI Karthik,
    As Mentioned by Baskar donu2019t use proposed URL .. while creating WSDL in Id.. but instead provide URL in following format and use it in that place and create WSDL.. details about URL format..
    the URL format is fix. and it is simple.
    http://host:HTTPPort/XISOAPAdapter/MessagingServlet?channel=party:sendersystem:CC_sender
    in above URL provide your sender service component name instead of sender system.
    and provide SOAP sender communication channel name in place of CC_sender
    provide your PI system host and http name in place of host and https and use this..
    for more details about URL..
    Propose URL when Configuring Sender SOAP Adpater
    soap url
    Thanks,
    Bhupesh

  • Host name not showing up under Active Clients

    When I go into my router and check active connections, I can see all host names like "Acer Laptop", "IPhone" etc..., IP and MAC address' that are connected to router. Today, when I was in there looking, I saw an asterisk where host name should be for the TouchPad. (it took me a while to figure out it was the TouchPad) Is there a reason why Host name would not show up?
    I have gone into "Device Settings" and set "Name" as "Chucks TouchPad". Is that the host name that should be showing on router?
    Thank You for any assistance.
    Post relates to: HP TouchPad (WiFi)

    Sure is, but it will involve some commandline work. First, you're going to need to install the SDK. You only need the Novacom part of the SDK, but AFAIK there's no seperate download for Windows... you have to get the whole thing. The SDK is available here: https://developer.palm.com/content/resources/devel​op/sdk_pdk_download.html
    Next, you're going to need to enable Developer mode on your TouchPad, here's how to do that:
    Start a Just Type search and enter webos20090606
    A Developer Mode icon will display, tap it
    Tap the toggle switch to turn it On
    Leave the password blank and tap Sumbit
    Close the Developer Mode app
    Now, connect your TouchPad to your computer. Next, you're going to find a file called Novaterm.bat. It's buried in the install directory of the SDK. I don't remember the exact path (I don't use Windows anymore) but it's something like C:\Program Files\Palm SDK\Current\bin (keep digging around for bin folders in the C:\Program Files\Palm SDK path and you'll find it eventually). Doubleclick that to start a nice little terminal app. Choose your TouchPad from the drop down list and click connect.
    Now, time for some command line stuff. Run the following commands in the terminal:
    mount -o remount,rw /
    cd /etc/dhcp
    vi dhclient.conf
    Press the I key on your keyboard to go into edit mode (this is a Vi specific thing)
    Remove the # at the beginning of line 14 and change the andare.fugue.com inside the quotes to whatever you want your TouchPad reporting as. For example: #send host-name "andare.fugue.com"; would become send host-name "RidiusTouchPad";
    To save your changes, hit the ESC key (to exit edit mode), then type :wq and hit enter. Note there is a colon in there. Again, this is Vi specific stuff.
    sync
    mount -o remount,ro /
    Once you've done this, disable and re-enable your Wi-Fi and your TouchPad should be reporting a hostname. Kind of a lot of work if you ask me (unless you already have the SDK installed).

  • Host name not pinging

    Hi All ,
    One of the system has been removed from AD and today i was trying to add the system domian and AD and i am succeed,but issue is i am facing now that  system is getting IP and i am abble to ping the system from ip but its not pinging from host name ,and
    its a laptop so i am unable to synchronize the safe boot 
    please help me whats need to do 

    Some issue with DNS. 
    Run these command and check the results after 15-20 mins:
    ipconfig /flushdns
    ipconfig /registerdns
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • VM Creation - host name not set

    Hi,
    I'm creating vm using createVmTemplate api where i assign the hostname in NICConfig
    But i see that the given hostname is not set in the vm.
    Default hosname - "localhost.localdomain" is seen in the vm.
    how to resolve this

    Sure is, but it will involve some commandline work. First, you're going to need to install the SDK. You only need the Novacom part of the SDK, but AFAIK there's no seperate download for Windows... you have to get the whole thing. The SDK is available here: https://developer.palm.com/content/resources/devel​op/sdk_pdk_download.html
    Next, you're going to need to enable Developer mode on your TouchPad, here's how to do that:
    Start a Just Type search and enter webos20090606
    A Developer Mode icon will display, tap it
    Tap the toggle switch to turn it On
    Leave the password blank and tap Sumbit
    Close the Developer Mode app
    Now, connect your TouchPad to your computer. Next, you're going to find a file called Novaterm.bat. It's buried in the install directory of the SDK. I don't remember the exact path (I don't use Windows anymore) but it's something like C:\Program Files\Palm SDK\Current\bin (keep digging around for bin folders in the C:\Program Files\Palm SDK path and you'll find it eventually). Doubleclick that to start a nice little terminal app. Choose your TouchPad from the drop down list and click connect.
    Now, time for some command line stuff. Run the following commands in the terminal:
    mount -o remount,rw /
    cd /etc/dhcp
    vi dhclient.conf
    Press the I key on your keyboard to go into edit mode (this is a Vi specific thing)
    Remove the # at the beginning of line 14 and change the andare.fugue.com inside the quotes to whatever you want your TouchPad reporting as. For example: #send host-name "andare.fugue.com"; would become send host-name "RidiusTouchPad";
    To save your changes, hit the ESC key (to exit edit mode), then type :wq and hit enter. Note there is a colon in there. Again, this is Vi specific stuff.
    sync
    mount -o remount,ro /
    Once you've done this, disable and re-enable your Wi-Fi and your TouchPad should be reporting a hostname. Kind of a lot of work if you ask me (unless you already have the SDK installed).

  • HOW TO DEFINE VIRTUAL HOST NAME IN HPIA64 + SAP R/3 ENTERPRISES 4.7

    Hi all,
    I am trying to install sap r/3 enterprises 4.7 with OS as HP-UX and Database as Oracle in a cluster environment.
    In cluster environment sap installation should be done on virtual hostname ( package id ). I'm using the env variable SAPINST_USE_HOSTNAME=<VIRTUAL HOSTNAME>.
    My cluster is running and I'm able to ping it from network, but at the time of SAP Installation my sapinst starts with the physical host name not with the virtual host name.
    What can be the solution ..?
    Thanks,
    Chandresh Pranami.

    Hi Chandresh,
    Try executing sapinst with virtual hostname.
    eg. ./sapinst SAPINST_USE_HOSTNAME=<VIRTUAL HOSTNAME>.
    This should work.
    -Pinkle

  • Email host name for mailbean

    Hi, I have a problem about finding my own email host name when I am trying to send an email within JSP. I have tried many names such as: "mail.gmail.com"," yahoo.com", and the one included in the code blow. I think I have a misunderstanding about this host name, could anyone explain for me please? Thanks a lot.
    Blow is my code
    * Mail.java
    * Created on 2006&#24180;8&#26376;14&#26085;, &#19979;&#21320;2:59
    package myclass;
    import java.io.*;
    import java.util.*;
    import javax.mail.*;
    import javax.mail.event.*;
    import javax.mail.internet.*;
    * @author weiming514
    public final class MailBean extends Object implements Serializable{
    private String to = null;
    private String from = null;
    private String subject = null;
    private String message = null;
    public static Properties props = null;
    public static Session session = null;
    static{
    /** Setting Properties for STMP host **/
    props = System.getProperties();
    props.put("mail.smtp.host", "hostname");
    session = Session.getDefaultInstance(props, null);
         /* Setter Methods */
         public void setTo(String to) {
              this.to = to;
         public void setFrom(String from) {
              this.from = from;
         public void setSubject(String subject) {
              this.subject = subject;
         public void setMessage(String message) {
              this.message = message;
    /* Sends Email */
    public void sendMail() throws Exception{
    if(!this.everythingIsSet())
    throw new Exception("Could not send email.");
    try{
    MimeMessage message = new MimeMessage(session);
    message.setRecipient(Message.RecipientType.TO, new InternetAddress(this.to));
    message.setFrom(new InternetAddress(this.from));
    message.setSubject(this.subject);
    message.setText(this.message);
    Transport.send(message);
    catch(MessagingException e){
    throw new Exception(e.getMessage());
    /* Checks whether all propertises have been set or not */
         private boolean everythingIsSet() {
              if((this.to == null) || (this.from == null) ||
              (this.subject == null) || (this.message == null))
                   return false;
              if((this.to.indexOf("@") == -1) ||
                   (this.to.indexOf(".") == -1))
                   return false;
              if((this.from.indexOf("@") == -1) ||
                   (this.from.indexOf(".") == -1))
                   return false;
              return true;
    Error:
    unknown smtp host: hostname

    and the one included in the code blow.You have written "hostname" in the code below. Since "hostname" is certainly NOT a valid SMTP host name,
    that's why you get the error: unknown smtp host: hostname.
    What did you expect? You must provide a valid SMTP host name, NOT "hostname". You see the difference right?
    Try with your ISP (Internet Service Provider) SMTP host name.
    It should be something like: stmp.somename.com.
    That's the one you must set in your email client (Outlook, Thunderbird, Eudora, Lotus Notes, whatever) to send your emails.
    Next time please paste your code between &#91;code&#93; tags with the help of the code button just above the edit message area.
    Regards

  • Lists: domain name host name?

    In the 'General' tab of the Mail service window in Server Admin I've got the following:
    Domain name: subdomain.mydomain.com
    Host name: mail.mydomain.com
    So my e-mail addresses like [email protected] work fine. But what's weird is that when I'm creating mailing lists , the internal users get added to it like this: [email protected]!? Why is it that? Why don't they get added with [email protected]?
    Because the problem is if they send something to the list, it gets denied because the mailing list considers them non-members!
    Any ideas what the problem could be and how to correct that?
    Thanks.
    Xserve   Mac OS X (10.4.3)  

    All,
    From the Mail Service PDF Manual;
    "Adding a Subscriber to an Existing List
    This is the same procedure as adding a user to a newly created list.
    To add a subscriber to an existing list:
    1 In Server Admin, select Mail in the Computer & Services list.
    2 Click Settings.
    3 Select the Lists tab.
    4 Select the List to which you want to add a subscriber.
    5 Click the Add button under the Members pane.
    6 Enter the recipient’s email address.
    The email address must match the return address of the recipient to post messages
    without administrator approval.
    If a user was added via the “Users and Groups” button, the email address in the list will
    be in the form of “[email protected]”. If necessary, change the email address in
    the mailing lists panel of Server Admin to match the return address used by the client.
    7 Assign the subscriber privileges.
    8 Click OK."
    In other words, click in the user's email field and edit the address to suit - by default Mailman treats the list as belonging to the machine's host name, not to the email domain/sub-domain, which is the most logical since you could have multiple domains/sub-domains configured.
    Regards,
    Ian

  • Cannot DNS resolve across networks using host name only (not fqdn)

    Evening all,
     I currently run domain network (MS Server 08 - dhcp) on my firewall interface1 and WiFi network on interface2 (dhcp provided by router itself). On my Wifi dhcp I am advertising as DNS server that of the domain, but wifi clients can resolve only FQDN domain
    client names not host names ("domainclient.domain.local" - not "domainclient").
    If on my wifi client I change NIC properties -> IPV4->Advance->DNS-> append these suffixes, and put the domain.local, then it works but need to be able to work without manual changes to each client.
    Any ideas?
    Many thanks,
    Argyris

    Hi,
    Additional, please confirm your DHCP option have configure the correct WINS server.
    The related KB:
    Understanding DNS Client Settings
    http://technet.microsoft.com/en-us/library/cc754152.aspx
    Configuring TCP/IP networking
    http://msdn.microsoft.com/en-us/library/dd163570.aspx
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Postfix relay=none, ... status=deferred (Host or domain name not found...

    Hi,
    I actually posted this question 2 weeks ago but under the wrong topic. So, first of all wanted to apologise for double-posting... but since no one replied, I thought I'd try again under the right topic.
    I've been trying to solve this all day today (that was Feb 26th). I used to be able to send emails but for some reason it does not work anymore. At first I thought it was a problem with php (I use entropy pack php 5.2.6) but after searching the topic, I think it is a problem with my network. BTW OS is 10.5.5 and Postfix version 2.4.3
    First of all, after computer restart, I don't think postfix starts automatically
    Running 'sudo postfix start' gives me:
    postfix/postfix-script: starting the Postfix mail system
    Looking at '/var/log/mail.log' I find:
    Feb 27 12:51:04 AMs-MBP postfix/qmgr331: AA70A7A7C77: from=<[email protected]>, size=842, nrcpt=1 (queue active)
    Feb 27 12:52:19 AMs-MBP postfix/smtp456: AA70A7A7C77: to=<[email protected]>, relay=none, delay=3437, delays=3362/0.02/75/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=email.com type=MX: Host not found, try again)
    Running 'sudo postfix check' does not give me any errors
    Checking my '/etc/resolv.conf' it has nameserver 192.168.1.1
    Running 'ifconfig | grep netmask | grep -v 127.0.0.1 | awk {'print $2'}L' gives:
    192.168.1.5
    Checking http://switch.richard5.net/2006/08/19/fatal-open-lock-file-pidmasterpid/ and running 'launchctl list' gives me a long list but no item matches org.postfix.master
    Running 'ps aux|grep postfix' gives
    AM 546 0.3 0.0 599820 468 s000 S+ 1:41pm 0:00.00 grep postfix
    _postfix 331 0.0 0.0 599816 824 ?? S 11:56am 0:00.04 qmgr -l -t fifo -u
    root 329 0.0 0.0 600784 752 ?? Ss 11:56am 0:00.11 /usr/libexec/postfix/master
    _postfix 519 0.0 0.0 599768 752 ?? S 1:36pm 0:00.01 pickup -l -t fifo -u
    Running 'postconf inet_interfaces' at first gave me
    inet_interfaces = localhost
    which I changed to All in '/etc/postfix/main.cf'
    I looked at http://www.postfix-book.com/debugging.html
    Running 'telnet localhost 25' gives me
    Trying ::1...
    telnet: connect to address ::1: Connection refused
    Trying fe80::1...
    telnet: connect to address fe80::1: Connection refused
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    220 AMs-MBP.local ESMTP Postfix
    quit
    221 2.0.0 Bye
    Connection closed by foreign host.
    But running 'telnet 10.1.2.233 25' gives me
    Trying 10.1.2.233...
    telnet: connect to address 10.1.2.233: Operation timed out
    telnet: Unable to connect to remote host
    Running 'ping 134.169.9.107' takes a long time. After a while I stop it and get:
    PING 134.169.9.107 (134.169.9.107): 56 data bytes
    ^C
    o
    + 134.169.9.107 ping statistics ---
    28 packets transmitted, 0 packets received, 100% packet loss
    I have not idea what the problem is and/or how to fix it. I know the messages get to the postfix daemon but for some reason they do not continue on their way.
    Please, does anyone have an idea of how to fix this?
    TIA,
    Elle

    Dynamic IP addresses with DynDNS Updater (or equivalent) makes it pretty darned reliable, particularly if you buy DynDNS' Mailhop Forward service, which prevents the likes of roadrunner.com and aol.com from blocking mail coming from your server just because it lives in dynamicIP-land. Way cheaper than paying your ISP extra for a static IPA, too, and totally acceptable for low-volume, residential-based servers for personal not-for-profit use.
    Regarding reliable delivery to a dynIPA server, you are only at risk of non-receipt for perhaps a few minutes immediately following when your ISP rotates your WAN IPA, until DynDNS Updater (or equivalent) updates the DynDNS (or equivalent) servers with your new WAN IPA. But that's really not a problem because I think all, well, okay, most, smtp servers will queue for a redelivery attempt if the initial delivery attempt just happens to occur at that time.
    I wouldn't suggest this practice for high-volume enterprise-class servers or for people trying to run a bootleg mail server business for profit (besides, the ISP would shut it down as an abuse of terms of service, anyways), but for low-volume, residential-based servers for personal use and enjoyment, which I suspect is the case for the O.P., I can't say that I find anything unreliable about my dynamic IP-based mail server.

  • What's the reason for this message, "A server with the specified host name could not be found" ? I'm using iPhone 4s, 16gB, iOS 7.0.4

    I get a pop-up message saying "A server with the specified host name could not be found", whenever I try to access any streaming websites/apps or even WhatApp over Wi-Fi and I cannot access the specific THING for that moment, and I've tried switching Wi-Fi On and Off both in my Phone and also in the Router. I got an internet connection and a Wi-Fi router just before two days, and it's happening since. I got the internet speed around 80kbps and i can easily stream YouTube videos except sometimes, I receive that annoying message. I can't even browse the internet in Safari, which says "No Internet Connection"(Even though the Wi-Fi is connected), and I can access it after somewhile (say 10 minutes, it'll be perfectly alright). I use iPhone 4s. And everything about the internet connection is totally fine in my Computer, but not in my iPhone, as I've explained the issues, above. If there are any technical settings that I should change/modify, either on my computer(Windows 7 OS) or in my iPhone(iOS 7.0.4), PLEASE let me know
    I hope I've provided enough information for the reader to understand my point. (I apologize for my verbal mistakes, if there are )
    THANKS

    Hello Paneesh,
    Thank you for the details of the issue you are experiencing with Wi-Fi on your iPhone 4s.  I recommend the following steps:
    Be sure you're in range of your Wi-Fi router (access point).
    Tap Settings > Wi-Fi and turn Wi-Fi off and on. If your W-Fi setting is dimmed, follow these steps.
    Confirm that your Wi-Fi router and cable or DSL modem are connected to power, turned on, and connected to the Internet. If not, refer to your network administrator or Internet service provider (ISP) for assistance.
    Restart your iOS device.
    Tap Settings > Wi-Fi and locate the Wi-Fi network to which you're connected.
    Tap and Forget this Network.
    Try to connect to your desired Wi-Fi network.
    Note: You may need to enter your Wi-Fi password again if your network requires one.
    Turn your Wi-Fi router off and on2. If your ISP also provides cable or phone service, check with them before attempting this step to avoid interruption of service.
    Update your device to the latest version of software.
    Update your Wi-Fi router to the latest firmware2. For AirPort Base Stations, install updates using the AirPort Utility.
    If the issue is still unresolved Wi-Fi disconnects or signal strength is less than expected
    Move closer to the Wi-Fi router (access point).
    Check for sources of potential interference.
    Remove any case, stand, or other accessories from your iOS device and see if signal strength improves.
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings. Note: This will reset all network settings including
    previously connected Wi-Fi networks and passwords
    recently used Bluetooth accessories
    VPN and APN settings
    You can find the full article here:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Windows 8.1 will not see the Printers host name or ip address

    I have tried installing an OfficeJet Pro 8615 on two different Windows 8.1 computers (wireless)  but did not connect.  Pirnter is connected to network wireless (192.168.111.153). Router is 192.168.111.1. The printer was installed from a Vista (wired) desktop and it connected and printed fine. Both 8.1s can ping router but not the printer. Host name install does not work either. Router is a new Cisco RV180w. It works fine everywhere else. Printer wireless power is 5 of 6. Have looked for shared devices setting on Win 8.1 but have not found it yet. Win 8.1 computers are both 64bit and the install download showed 64x. I am running out of things to check. Can anyone help me? Win 8.1 computers sees other devices on the network but not the printer. Print & Scan Doctor does not see the printer either.
    Now I am having the same problem with a Win7 (64) install. It can't see it either. Once I plugged this one into the network then it saw the printer and installed and printed. But if I unpluged the network wire and made it wireless then it stopped seeing the printer. So I am having some  kind of a wireless issue.

    Hi @EdEdata ,
    Thank you for visiting the HP Support Forums and Welcome. Thanks for all the details of what you have done and the restuls. (Very helpful) I have read about your HP OfficeJet Pro 8615 Printer not connecting wireless and is not seen by the Print and Scan Dr. Here is a document on printer does not keep a wireless connection.  Try assigning a Static IP address. You might have to change the channel.
    Make sure your computer is connected to 802.11b/g/n wireless router over a 2.4 GHz connection. NOTE: HP Printers are currently not compatible with 802.11n 5.0 GHz networks. This HP document here, explains about a printer wireless.
    If this does not help you, please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link to get the support number for your region.
    Thanks.
    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" on the bottom to say “Thanks” for helping!

  • I am not able to use the ftp export in Muse. When I enter my host, name and password, I get a long interlude of rainbow wheel and finally the message that my ftp host cannot be found. I have verified the name and that it is port 21. I can export to html a

    I am not able to use the ftp export in Muse. When I enter my host, name and password, I get a long interlude of rainbow wheel and finally the message that my ftp host cannot be found. I have verified the name and that it is port 21. I can export to html and use another ftp client to upload (to the same server) but this is tedious and making minor changes is painful. Have you encountered this and found a solution?

    Hi Susan,
    In that case I will recommend that you consult a local technician/IT team and see if there is some network connectivity issue with your machine.
    - Abhishek Maurya

  • Run Into Problem When Trying Not To Hard Code the Host Name

    My code (using the JavaMail API) works fine when the SMTP host name is hard coded in the program:
           props.put( "mail.smtp.host", "TheHostName" );Then, I tried to put the host name in a properties file (smtpServer.properties). The properties file is in the $TOMCATHOME\webapps\AppName\WEB-INF\classes\resources directory. And the properties file has this one single line:
    smtpServer = TheHostName     //Note: The host name has only alpha characters, dots, and dashesIn my program, I did:
       private final String PROPFILE = "resources/smtpServer.properties";
       private Properties oProp = null;
       public SendBatchMails()  // this is the constructor in my class
          try
             oProp = new Properties();
             oProp.load ( getClass().getClassLoader().getResourceAsStream( PROPFILE ) );
          catch( IOException oEx )
             System.out.println("Unable to load the Properties " + PROPFILE + oEx );
           String smtpServer = oProp.getProperty( "smtpServer" );
           Properties props = System.getProperties();
           props.put( "mail.smtp.host", smtpServer );And, I got this runtime error:
    java.lang.IllegalArgumentException: argument type mismatch
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789)
         org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684)
         org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713)
         org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1019)
         org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
         org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
         org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    I would agree with Reply 1. From the stack trace it is apparent that it comes from Struts, where it is failing to set some kind of property in a bean. However the code that you posted doesn't seem to have anything to do with that. Check your Struts configuration.

Maybe you are looking for

  • Error while registering user with owb repository.

    Hi all, I am using owb 10gr2. I am trying to register a user with owb repository. I am getting below error. ORA-00955: name is already used by an existing object But when i try to deploy the mapping, it is showing a message Cannot deploy PL/SQL maps

  • Offline Payment Passphrase doesn't work - Solution

    Just in case anyone else comes up with this issue with another client. We have been having problems with the offline credit card payment file passwords not being accepted in the Adobe Reader password input window when they are copied from the BC Orde

  • 3dmark05 score too low!!!

    my 3dmark05 score is too low. i have a msi 9800 pro(green pcb version.) and i only got 1200 points please help. Also i used to get 6400 points in 3dmark03 but they also dropped to 5000. I also installed the latest chipset drivers and also have cataly

  • Outlook 2007 and IPhone

    I am a new IPhone 3GS user and sync contacts and calendar with Outlook 2007 running on a Vista PC. The sync works fine, but suddenly two weeks ago my Outlook started running so slowly that it is almost unusable. I have tried all the Windows correctio

  • Oracle BI Publisher desktop - insert field does not make absolute path

    Hello everyone, I am using the Oracle BI Publisher desktop 11.1.1.5 Lets have the given demodata <demodata>      <person>      <name>Peter</name>      </person>      <relative>      <name>Mike</name>      </relative> </demodata> As you can see the ta