Host parameter null.

Hi,
We are trying to fire a SOAP request and print the response but its throwing this error �host parameter null�.
hc.executeMethod(post) is failing. the strXMLRequest seems to be correct
Exception in thread "main" java.lang.IllegalArgumentException: host parameter is null
The piece of code iim using is:
String strURL = "http://athenec:47112/oms/XMLAPI/login";
URI u = new URI(strURL);
PostMethod post = new PostMethod();
String strXMLRequest = new String(baos.toByteArray());
post.setRequestBody(strXMLRequest);
post.setURI(u);
post.setPath("/");
post.setRequestHeader("Content-type", "text/xml");
System.out.println("post url is " post.getURI() " post is " +post.getQueryString());     
HttpClient hc = new HttpClient();
System.out.println("Came here");
int iResultCode = hc.executeMethod(post);
System.out.println("passed here");
The logs are as follows
post url is http://athenec:47112/ post is null_
Came here
passed here
iResultCode = 404
Can anybody help me out ??

your PostMethod takes the Url as the parameter. Check you are using the proper URl i.e like http://host:port/name?params like that

Similar Messages

  • Host parameter null and convert SOAP to HTTPUrl

    Hi,
    We are trying to fire a SOAP request and print the response but its throwing this error
    Exception in thread "main" java.lang.IllegalArgumentException: host parameter is null
    The piece of code is:
    HttpClient hc = new HttpClient();
    System.out.println("Came here");
    int iResultCode = hc.executeMethod(post);
    executeMethod(post) is failing but when I print the value of post, its �org.apache.commons.httpclient.methods.PostMethod@fd54d6�
    Can anybody throw some light on this error and how to solve it??
    Also, there�s another issue.
    We are upgrading from Weblogic 7.2 to 9.1
    Earlier we were able to pass the request and get the response in HTTPUrl form but now after upgrading, its getting passed in SOAP format. Is there any way to bypass the SOAP and get it in HTTPUrl format or what are the configurations to be made to adapt to the SOAP format?
    connection =(HttpURLConnection) url.openConnection();
         This line was returning HTTPUrl format, now its coming in SOAP format

    your PostMethod takes the Url as the parameter. Check you are using the proper URl i.e like http://host:port/name?params like that

  • HT3311 Problem submitting podcast (hosted on GoDaddy) to i Tunes Store - host parameter null

    Why do I get following reply from iTunes Store when I attempt to publish my podcast:
    "We had difficulty reading this feed. Host parameter is null." ?
    This is my podcast website:
    http://www.einarpetterson.org/Ars_et_Medicina/Podcast/Podcast.html
    I have validated the following feed with Feed Validator.  It is ok.  (there are some minor suggestions for changes which should not be criical)
    http://www.einarpetterson.org/Ars_et_Medicina/Podcast/rss.xml
    When I write this feed URL in the box for suscribing to podcasts in ITunes  (Advanced/Suscribe to podcast menues),  iTunes finds my podcasts and downloads them successfully (and fast).  All the podcasts downloaded that way work fine.
    So, if the rss reed is validated, and works in iTunes,  why am I not able to publish my podcasts in iTunes Store?
    My hosting service is GoDaddy.com.   I see from other articles on this support forum (Apple) and on GoDaddy´s support forum, that other people have had the same problem.   Sometimes their problem apparently just disappeared (and iTunes Store finally just stopped writing "We had difficulty reading this feed.  Host parameter is null"  everytime they tried to submit their podcasts to iTunes.  I have now tried submitting this and other podcasts (hosted on GoDaddy) many, many times for several days, but always get the same irritating negative message.
    Does anyone out there understand what the problem could be?   As far as I can see from reading other descriptions of this same problem, no one has yet provided an adequate explanation of what is causing this "glitch" (as some call it). 
    I want to publish several podcast series on iTunes Store which are now hosted on GoDaddy.com.   Many other MobileMe users like me, will in the next 30 days have to move their websites from MobileMe to other hosting services.   GoDaddy.com is a large hosting service.   This problem might appear often during the next month.  I therefore believe that Apple and GoDaddy should attempt to find out why this problem occurs, and do something about it.   It seems from other descriptions of this problem, that it often occurs with people using GoDaddy hosting service.  Have not read or analyzed all descriptions of this problem on the net, but there are enough descriptions to support a hypothesis that there is some communication difficulty between iTunes Store and GoDaddy hosting service. (? - at least some others have made this hypothesis, like I do)

    TEST OF SUBMISSION OF 16 RSS FEEDS TO ITUNES STORE "SUBMIT PODCAST" PAGE
    I have now tested all my podcast rss feeds which are now stored on GoDaddycom hosting service in three ways:
    1) Feed validator
    2) iTunes (Menu: Advanced/suscribe to podcast)
    3) iTunes Store "Submit Podcast Page"
    Results:
    All 16 rss feeds are valid according to Feed Validator.  There are some small insignifcant suggestions for improvements which are not critical.
    All 16 rss feeds function in iTunes (Advanced/suscribe to podcasts)
    None of the 16 rss feeds can be successfully submitted to iTunes Store "submit podcast" page.  The same error occurs in all cases:
    "We had difficulty reading this feed. host parameter is null"
    The following 5 of these 16 podcasts were submitted while the websites were hosted by MobileMe.  No problems with submission.  All accepted and now on iTunes.  These podcast sites are now transferred to GoDaddy.com (with same domain as earlier  - einarpetterson.org - and all function.  I can change pages, make alterations etc.
    Here are the 5 rss feeds.
    http://www.einarpetterson.org/New_Perspectives_on_Baroque_Art_and_Culture/Podcas ts/rss.xml
    http://www.einarpetterson.org/Utopia/Podcast/rss.xml
    http://www.einarpetterson.org/Dystopia/Video_Podcast/rss.xml
    http://www.einarpetterson.org/Dystopia/Podcast/rss.xml
    http://www.einarpetterson.org/Ekskursjonsemner/Podcast/rss.xml
    The following 11 podcasts now hosted on GoDaddy webhosting service can not be submitted successfully to iTunes Store despite the fact that their rss feeds are validated by Feed Validator and work on iTunes (and probably on most  other rss readers)
    http://www.einarpetterson.org/Orientering_utenlandskurs_VS2011/Podcast/rss.xml
    http://www.einarpetterson.org/ViK_VS2009/Verk_i_Kontekst_VS2009/rss.xml
    http://www.einarpetterson.org/ViK_VS2010/Podcast/rss.xml
    http://www.einarpetterson.org/KUN2_4009_tidlig_kristen_kunst_HS2009/Podcast/rss. xml
    http://www.einarpetterson.org/KUN2_4011_Middelalderen_i_Italia_HS2009/Podcast/rs s.xml
    http://www.einarpetterson.org/KUN2_4092_New_York_VS2010/Podcast/rss.xml
    http://www.einarpetterson.org/PropFide_VS2009/Propaganda_Fide_VS2009/rss.xml
    http://www.einarpetterson.org/PropFide_VS2009/Propaganda_Fide_VS2009/rss.xml
    http://www.einarpetterson.org/Propaganda_Fide_VS2012/Podcast/rss.xml
    http://www.einarpetterson.org/Ars_et_Medicina/Video_Podcast/rss.xml
    http://www.einarpetterson.org/Ars_et_Medicina/Podcast/rss.xml
    THIS PROBABLY MEANS THAT IT IS EITHER VERY DIFFICULT, OR IMPOSSIBLE FOR ANYONE WHO IS USING GODADDY.COM AS A WEBHOSTING SERVICE (WITHOUT USING THEIR VIRTUAL OR DEDICATED SERVER OPTIONS WHICH ARE VERY EXPENSIVE) TO PUBLISH ANY PODCASTS ON ITUNES STORE.
    I may have made some error in my submission to ITunes Store, but do not think so.  If anyone discovers that I have made a simple and stupid error, please tell me.  If I have not made an error, one should probably not use GoDaddy.com as a webhosting service if one ever wants to publish podcasts to iTunes Store.
    It would be interesting to hear if anyone in this forum who is using GoDaddy.com webhosting service has recently (or ever) managed to succesfully submit a rss feed to iTunes Store submit page.  If so, I would like to hear about it.

  • 'we had difficulty reading this feed. host parameter is null' I am getting no where here, help!?

    I've had an RSS feed created for an online video podcast but keep getting the message: 'we had difficulty reading this feed. host parameter is null' i've looked at the forums but none of them make any sense. My IT team say the RSS feed is valid and it should work and that is more like down to an itunes error, any help?

    This will be our first podcast so do not currently have a page. Below is the feed.
    Thank you Roger.
    <?xml version="1.0" encoding="utf-8"?>
    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
    <atom:link href="http://dmsukltd.com/rss/rss.xml" rel="self" type="application/rss+xml" />
    <title>The Big Picture</title>
    <link>http://www.dmsukltd.com/hawk/dms_big_picture/</link>
    <description>A brand new monthly movie show produced by DMS</description>
    <language>en-gb</language>
    <item>
    <title>The Big Picture: Mission: Impossible-Ghost Protocol first podcast</title>
    <link>http://dmsukltd.com/dl/paramount/tbp_mi4gp_uk_premiere_v1_qt_hires.mov</link>
    <guid>http://dmsukltd.com/dl/paramount/tbp_mi4gp_uk_premiere_v1_qt_hires.mov</guid>
    <pubDate>15 Dec 2011 12:00:00 GMT</pubDate>
    <description>[CDATA[The cast of Mission Impossible - Ghost Protocol joined The Big Picture on the red carpet for the films UK Premiere! Tom Cruise, Simon Pegg, Paula Patton and Samuli Edelmann were on hand to talk about this latest chapter of the popular series!]]</description>
    </item>
    </channel>
    </rss>

  • We had difficulty reading this feed. host parameter is null

    Hi,
    I'm fairly new to creating podcasts and have come across the 'host parameter is null' error when submitting my podcast to itunes.
    The RSS feed validates )bar the <itunes:link> tag to which I understand Feed Validator doesn't yet support due to previous errors. (correct me if i'm wrong)
    I've tried linking copying the source code and uploading a XML file to the server and linking to that, but still get the same error in itunes.
    Any help is welcome
    link to Feed - http://www.spinoutrecords.co.uk/index.php?page=temp

    itunes error - restarted and all ok.

  • Error Message from ITS "host parameter is null" - Huh?

    I am having trouble submitting a podcast to the iTunes Store.
    I have a podcast that I can access directly through my blog: blog.mindthegap.us
    The RSS2 feed to my podcast is: http://blog.mindthegap.us/podcasts-only/rss2.aspx
    I have subscribed to my podcast through the "Advanced" menu in iTunes. It finds my podcast and adds them to my podcast library.
    BUT, when I submit my podcast to the iTunes Store, I get this message:
    We had difficulty reading this feed. host parameter is null
    I just spent an hour with tech support from godaddy determining that the feed is legit.
    Can someone help me resolve why iTS won't take it?
    Thanks

    I had sumitted the same (or variations of the same) for nearly a week and after submitting the question to iTunes Technical Support, tried one more time.
    Eureka! It was accepted. The only thing that I could possibly have changed was to have added some episode descriptions. The error message "host parameter is null" isn't very helpful if that WAS the solution.
    Now, I can get back to my podcasts.

  • RSS Help - iTunes Error - "host parameter is null"

    hello all,
    I checked the history and there seems to be no answer why iTunes is giving this error, but that it some how fixes itself. I am trying to submit a new podcast (and podcast series) to iTunes. The error that I am getting is "host parameter is null". I am not creating the xml myself i am using Feeder and I have checked it again the FeedValidator.org. I am pretty sure that I have all the fields filled out. Any ideas?
    Thanks
    http://flixmakers.net/feeds/NoBudgetMovieMaking(MP4).xml
    http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fflixmakers.net%2Ffeeds%2FNoB udgetMovieMaking%28MP4%29.xml

    I'd start by taking those parentheses out of the URL - they might be the cause of trouble. If you want to let people know that this is an MP4 version of your feed, put the (MP4) in the podcast title.
    Hope this helps.

  • Iweb/itunes problem - host parameter is null

    i use iweb to publish and host our website. everything works fine, except... i have never been able to successfully publish a podcast to itunes through iweb. the error message in itunes is that the host parameter is null. i'm really scratching my head on this, because why would iweb offer an application that does not sync up with itunes automatically? please help!

    The feed appears to be OK: it references a media file:
    http://www.undergroundfellowship.info/undergroundfellowship/Media/uftv.intro.m4v
    However making this URL into a link in an html page and then downloading from the the link produces not the m4v file but an html file called uftv.intro.m4v.html which references the media file:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title>www.undergroundfellowship.info </title>
    </head>
    <frameset rows="100%,*" border="0">
    <frame src="http://web.me.com/growingdeeper/undergroundfellowship/Media/uftv.intro.m4v " frameborder="0" />
    <frame frameborder="0" noresize />
    </frameset>
    <!-- pageok -->
    <!-- 02 -->
    <!-- 7.9-->
    </html>
    I don't know how this is happening, or how this page is being generated, but it's what is causing the problem.

  • Host Parameter is null / Podcast submission

    Hi there!
    I'm starting a new podcast, in the hope that it will be avaliable via iTunes soon! but I hit a brick wall when I submitted my XML/rss feed to itunes and the following error message occured...
    "We had difficulty reading this feed. host parameter is null"
    What does it mean and how do i get rid of it?
    here is my xml file >>> http://www.intfi.in/rss/intfi.xml
    Any info wouldbe greatly appreciated!
    +The Squire+ ^_^

    pyrotech13 - your feed appears to be valid.
    LBesquire: there are some minor errors in your feed. The 'lastpubdate' doesn't have a timezone (and is earlier than the date of the last episode) - also your dates are variously GMT or +0100. The 'itunes:subtitle' for both episodes is too long - they should be limited to 255 characters.
    None of these errors is likely to be serious. Both feeds can be subscribed to manually from the 'Advanced' menu and work OK. I can't say why submitting them is failing, unless perhaps there is a temporary glitch in the system. Certainly the error message doesn't make much sense - it would suggest a failure to communicate with your servers. I should leave it for a day and try again. Do come back if you continue to have failures.

  • Host Parameter is Null Error

    So i'm trying to publish my podcast on itunes, but all i get is ''Host Parameter is Null''. The rss feed has been created following itunes instructions, and it has been 100% validated on the feed validator. If you also paste our feed manually it works. this is the feed http://www.someguysonemic.com/rss.php

    I had sumitted the same (or variations of the same) for nearly a week and after submitting the question to iTunes Technical Support, tried one more time.
    Eureka! It was accepted. The only thing that I could possibly have changed was to have added some episode descriptions. The error message "host parameter is null" isn't very helpful if that WAS the solution.
    Now, I can get back to my podcasts.

  • SOAP Axis receiver: host parameter is null

    Hello,
    we are on a PI 7.11 (SP06) system & we are trying to setup a scenario SOAP - SOAP (Axis) where we initiate a third party webservice. To connect to this service we are obliged to go through our proxy, which we defined in our JVM parameters:
    http.nonProxyHosts: [*.ont.local|*.val.local|*.mon.local]
    http.proxyHost: [proxypac.mon.local]
    http.proxyPort: [8080]
    http.proxySet: true
    When we execute our scenario via soapUI we get following error:
    com.sap.engine.interfaces.messaging.api.exception.MessagingException:
    com.sap.engine.interfaces.messaging.api.exception.MessagingException:
    XIAdapterFramework:GENERAL:com.sap.engine.interfaces.messaging.api.exception.MessagingException:
    java.lang.IllegalArgumentException: host parameter is null
    We already tried with http://proxypac.mon.local as parameter as well but still we get this error.
    Furthermore we are able to make a connection to the service via a SM59 connection.
    Axis details:
    Adapter Common Library Version: 1.7.1106.20110202095400.0000, NW711_06_REL
    Adapter Application Version: 1.7.1106.20110202095400.0000, NW711_06_REL
    Axis Version: Apache Axis version: 1.4 Built on Apr 22, 2006 (06:55:48 PDT)
    Many thanks in advance for your help,
    Frédéric.

    Hello Mark,
    we get this last error when connecting with SOAP receiver instead of Axis receiver.
    We are sending different headers (wsa & wsse) in our soapUI request:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:klip="http://ws.agiv.be/klipws" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Header>
    <wsa:Action xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://ws.agiv.be/klipws/ListKLB</wsa:Action>
    <wsa:MessageID>urn:uuid:2a46571e-d5a7-4b33-a4a1-a174330cd36c</wsa:MessageID>
    <wsa:ReplyTo> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address></wsa:ReplyTo>
    <wsa:To>http://wsklip.beta.agiv.be/**********.asmx</wsa:To>
    <wsse:Security soapenv:mustUnderstand="1" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:klip="http://ws.agiv.be/klipws" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
    <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
      <wsu:Created>2011-09-27T10:00:31Z</wsu:Created>
      <wsu:Expires>2011-09-30T18:01:31Z</wsu:Expires>
      </wsu:Timestamp>
    <wsse:UsernameToken>
      <wsse:Username>*********</wsse:Username>
      <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">***************************************wsse:Password>
      <wsse:Nonce>****************************************</wsse:Nonce>
      <wsu:Created xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2011-09-12T14:01:31Z</wsu:Created>
      </wsse:UsernameToken>
      </wsse:Security>
    </soapenv:Header>
       <soapenv:Body> <klip:ListKLB xmlns="http://ws.agiv.be/klipws"/>
       </soapenv:Body>
    </soapenv:Envelope>
    For the Axis receiver it looks like one of the handlers can't get the value of our host parameter.
    Any help or tips would be really appreciated!
    Regards,
    Frédéric.

  • System call failed. Error 2 (The system cannot find the file specified. ) in execution of system call 'CreateProcessAsUser' with parameter ( , NULL,  Program Files/sapinst_instdir/BS2011/ERP606/AS-ABAP/SYB/HA/DB, &StartupInfo, &ProcessInfo),

    Dear All,
    I am getting a below error while doing ehp6 installation on sybase (high availbility )
    can any one help me on this..?
    An error occurred while processing option SAP Business Suite 7i 2011 > Enhancement Package 6 for SAP ERP 6.0 > SAP Application Server ABAP > SAP ASE > High-Availability System > Database Instance( Last error reported by the step: System call failed. Error 2 (The system cannot find the file specified. ) in execution of system call 'CreateProcessAsUser' with parameter ( , NULL,  Program Files/sapinst_instdir/BS2011/ERP606/AS-ABAP/SYB/HA/DB, &StartupInfo, &ProcessInfo), line (646) in file (d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp), stack trace: d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\ejs\ejscontroller.cpp: 181: EJSControllerImpl::executeScript() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\ejs\jsextension.hpp: 1059: CallFunctionBase::call() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\osmod\iaxxbprocess.cpp: 423: CIaOsProcess::start_impl() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp: 238: CSyChildApplicationImpl::start(false) d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp: 262: CSyChildApplicationImpl::doStart() .). You can no
    Regards,
    Letz..

    Hello Mauricio.
    Thanks
    Two Thinks:
    1.- This error appears precisely in the process of creating SAP users including you mention sidadm:
          A.- Execute sapinst
          B.- Installation option is chosen
                SAP NetWeaver CE Production Edition
                        Installation Options
                            High-Availability System
                                  Central Service  Instance (SCS)
           c.- System ID, Next and appear message error
    2.- However, the user manually create sidadm, I gave the permissions you indicate, and the error message is the same
    Thanks

  • How to change the value of data supplier host parameter in PI7.1

    Hi Frnds,
    I want to change the data supplier host parameter to Hostname,when i checked in SLD Administration its pointing to local host,so i wnat to change it.
    What is the procedure to change the value to host?? i am working on PI7.1 EHP1.
    THANKS,
    Raj

    thanks

  • Error when submitting podcast: We had difficulty reading this feed. host parameter is null

    I'm attempting to submit a podcast through iTunes and keep getting this error. I've tried on two computers, one being a Mac and one PC. My RSS feed is here: http://www.whitewolfdental.com/wp-content/media/rss.xml
    If I go to File -> Subscribe to Podcast... in iTunes and type in the feed URL it allows me to subscribe just fine and the items do play. The feed also validated according to feedvalidator.org.
    Any ideas?

    iTunes really likes to see the GUID tag.
    If you manaually can edit your feed go into each epsiode and add in a unique GUID tag.
    http://www.podcast411.com/howto_1.html
    Here is a tutorial that goes over editing your RSS feed.
    Good luck.
    Rob W
    podCast411

  • Report Builder 2.0 loses parameter Null default value when deployed

    When a parameter is set to a default value of (Null) and the report is saved to the sever, the default is lost when the report is re-opened in RB2.  This problem doesn't seem to occur in BIDS.  I've tried to use an expression to set the value to System.DBNull but this can no longer be done.
    Any ideas for a work-around?
    Is there a bug report open for this?  I couldn't find an open bug on the Connections site and there's an issue on that site right now when submitting feedback.Paul Turley [Hitachi Consulting]
    SQLServerBIBlog.com

    Hi All,
    I just had an almost identical issue using report builder 3.0 so I don't believe it is fixed. I had 4 parameters set to default to (Null) and I added a new one with identical settings but it would continually come up blank and not check the null box automatically
    when going into my sub report.
    To make matters worse I experimented changing one of the old parameters and it then started exhibiting the same behaviour. Using Luke's post above solved the issue (though it was Manage in my version not Administrate).
    Using System.DBNull.Value resulted in it being treated as a literal string "System.DBNull.Value" and putting that in the filter for me.
    Hope it helps.

Maybe you are looking for