Send Search request to SearchEngine

Hi,
I want to write an application in Java, which sends a search request to e.g. Yahoo and evaulates the result.
How can I send this request?
One solution:
URL url = new URL("http://de.search.yahoo.com/search?p=wunsch&fr=yfp-t-501&ei=UTF-8&meta=vl%3D");
BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream(), "UTF-8"));With these 2 lines I get the an result, but the html code is encoded in ISO-8859-1 and it contains special signs like the EURO sign. (�)
It is not possible to work with this string, because any XML or HTTP parser throws this Exception an stopps working:
An invalid XML character (Unicode: 0x0) was found in the element content of the document.
Changing the Encoding by using the URLEncoder / URLDecoder classes does not work.
How can I remove the special signs, or how can I change the signs coding to valid UTF-8?
Another solution for the search request could be:
URL url = new URL("http://de.search.yahoo.com:80/");
URLConnection conn = url.openConnection();
conn.setDoOutput(true);
OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream(), "UTF-8");
wr.write("GET /search?p=wunsch&ei=ISO-8859-1&fr=yfp-t-501&x=wrt&meta=vl%3D HTTP/1.0\r\n");
wr.write("Host: de.search.yahoo.com\r\n");
wr.write("Accept: text/html, text/plain, text/css, text/sgml, */*;q=0.01\r\n");
wr.write("Accept-Encoding: gzip\r\n");
wr.write("Accept-Language: en\r\n");
wr.write("User-Agent: Lynx/2.8.6rel.4 libwww-FM/2.14 SSL-MM/1.4.1 GNUTLS/1.6.2\r\n");
wr.write("\r\n");
wr.flush();
BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));But with this HTTP Request I only get the startpage of Yahoo and not the resultpage.
Please can someony help me... I don't know, how to fix the problem...
Thanks.

Actually, the page you reach is encoded in UTF-8, not ISO-8859-1.
Your problem is different: you can not parse HTML with an XML parser. Use an HTML parser for this.

Similar Messages

  • OIM should send spmlv2 requests via java code to service provider

    Hi,
    We have the situation in which OIM acts as Requesting authority,Spml provider acts as service provider.
    Oim should send spml requests from custom java code.Spml2Client is used.We are not using genericc technology connector.
    Require sample java code for Search operation.
    I had done for modify request.
    The request and response is as follows
    PSO ID returned after searching: org.openspml.v2.msg.spml.PSOIdentifier@5c32a864
    <deleteRequest xmlns='urn:oasis:names:tc:SPML:2:0' recursive='false'/>
    <deleteResponse xmlns='urn:oasis:names:tc:SPML:2:0' status='success'/>
    <modifyRequest xmlns='urn:oasis:names:tc:SPML:2:0' returnData='identifier'>
    <psoID ID='cn=TPS User8,ou=TPS,dc=fosterstechodc,dc=com'/>
    <modification modificationMode='replace'>
    <data>
    <dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='otherHomePhone' operation='replace'>
    <dsml:value>999999</dsml:value>
    </dsml:modification>
    </data>
    </modification>
    <modification modificationMode='delete'>
    <data>
    <dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='description' operation='delete'>
    </dsml:modification>
    </data>
    </modification>
    <modification modificationMode='add'>
    <data>
    <dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='firstname' operation='add'>
    <dsml:value>Barbara</dsml:value>
    </dsml:modification>
    </data>
    </modification>
    </modifyRequest>
    SpmlClient: sending to http://10.101.151.209/ARServerSPML/SPMLProvider.asmx
    <modifyRequest xmlns='urn:oasis:names:tc:SPML:2:0' returnData='identifier'>
    <psoID ID='cn=TPS User8,ou=TPS,dc=fosterstechodc,dc=com'/>
    <modification modificationMode='replace'>
    <data>
    <dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='otherHomePhone' operation='replace'>
    <dsml:value>999999</dsml:value>
    </dsml:modification>
    </data>
    </modification>
    <modification modificationMode='delete'>
    <data>
    <dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='description' operation='delete'>
    </dsml:modification>
    </data>
    </modification>
    <modification modificationMode='add'>
    <data>
    <dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='firstname' operation='add'>
    <dsml:value>Barbara</dsml:value>
    </dsml:modification>
    </data>
    </modification>
    </modifyRequest>
    SpmlClient: received
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><modifyResponse status="failure" xmlns="urn:oasis:names:tc:SPML:2:0"><error>malformedRequest</error><errorMessage>At least one &lt;modification&gt; element must be specified.</errorMessage></modifyResponse></soap:Body></soap:Envelope>
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><modifyResponse status="failure" xmlns="urn:oasis:names:tc:SPML:2:0"><error>malformedRequest</error><errorMessage>At least one &lt;modification&gt; element must be specified.</errorMessage></modifyResponse></soap:Body></soap:Envelope>
    org.openspml.v2.util.Spml2ExceptionWithResponse: At least one <modification
    The response says the modifaction tag is not present.
    The code for this request is
    Modification[] modifications =
                   { newModWithDSMLMod("otherHomePhone", "999999", ModificationMode.REPLACE),
                             newModWithDSMLMod("description", null, ModificationMode.DELETE),
                             newModWithDSMLMod("cn", "Barbara", ModificationMode.REPLACE)};
                   modifyResp = customSPMLClient.modifyUser(client,searchPSOId,modifications);
    method:
    public ModifyResponse modifyUser(Spml2Client client,PSOIdentifier psoId,Modification[] modifications) throws Exception {
              client.setTrace(true);
              ReflectiveXMLMarshaller marshaller = new ReflectiveXMLMarshaller();
              ModifyRequest modReq = new ModifyRequest(null, // String requestId,
                        null, // ExecutionMode executionMode,
                        psoId, // PSOIdentifier psoID
                        modifications, // Modification[] modifications
                        ReturnData.IDENTIFIER // ReturnData returnData
              System.out.println(modReq.toXML(marshaller));
              ModifyResponse modResp = (ModifyResponse) client.send(modReq);
              System.out.println(modResp.toXML(marshaller));
              return modResp;
    private static Modification newModWithDSMLMod(String modName, String modValue, ModificationMode modMode)
         throws DSMLProfileException
              /*DSMLModification dsmlMod = null;
              dsmlMod = new DSMLModification(modName, modValue, modMode);
              Extensible data = new Extensible();
              data.addOpenContentElement(dsmlMod);
              Selection component = null;
              return new Modification(component, data, null, modMode);
    Please help me out.
    I need sample java code for search operation tooo.
    regards,
    Sindhu.M

    the sample JAVA codes are provided for sending SPML requests, HTTPClient and one more (i dont remember rite now) within the OIM installation folders itself. It's in the 'SampleHttpClient' folder. Check it once. WSDL, sample XML's and the JAVA codes all are there. You just need to set the classpath and run it.
    - oidm.

  • Weblogic War application sending the requests every 3 minuts

    HI,
    There are 2 managed servers in one unix box.
    i have one war application deployed in cluster level. This war application will search the logs and will give particular content as a result.
    The Jsp page will send the request and it is able to get the correct results within 3 minutes. if there are so many logs, it is giving unrealiable results as war application is sending the request again and in the interval of 3 mins.
    Request parametes are get by servlet and this servlet will create the unix shellscript in background and it will execute in a box.
    0-3 mins 1st .sh creating and executing..
    3-6 mins 2nd .sh creats and starts the execution, once the 1 one is completed...
    its becomes infinite loop...
    after some time Browser is going to diagnostic error state..
    to avoid this i tried to give some parameters in weblogic.xml file...but its not working..
    please fine below weblogic.xml file
    ====================================
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">
    <session-descriptor>
    </session-descriptor>
    <jsp-descriptor>
    <page-check-seconds>-1</page-check-seconds>
    <debug>true</debug>
    </jsp-descriptor>
    <container-descriptor>
    <resource-reload-check-secs>-1</resource-reload-check-secs>
    <servlet-reload-check-secs>-1</servlet-reload-check-secs>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    <logging>
    <log-filename>/wls_domains/b2borap2/application_MT/logs/messagetracker.log</log-filename>
    </logging>
    </weblogic-web-app>
    =======================================================
    and web.xml file is
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:javaee="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <listener>
    <listener-class>
    com.tm.messagetracker.listeners.MTrackerSession
    </listener-class>
    </listener>
    <servlet>
    <servlet-name>Controller</servlet-name>
    <servlet-class>com.tm.messagetracker.Controller</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Controller</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>htm</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    </web-app>
    =========================================
    anyone please help me on above......Thanks in advance..

    How is it related to Oracle B2B? If you need help on Weblogic front then please post your query in Weblogic Webapp forum -
    WebLogic Server - WebApp / Servlet / JSP / Plugin
    Regards,
    Anuj

  • Games centre: Cannot Send Friend Requests

    When I try to add a friend on my iphone 4 I get this:
    "Games centre: Cannot Send Friend Requests
    You are not allowed to send friend requests on this device"
    Why not? How can I play a game against a friend?! How can I invite my friend?
    Help please!!!!

    I've done that. Now if I go to General>Settings>Game Centre I can only see:
    Apple ID
    Allow Invites
    Nearby Players
    Game Centre Profile
    Contacts
    Facebook
    I swear before I reset I had an option to add friends but I can't find it now. If I go the the app (in this case "Fourinarow" and select the multiplayer online option and then try to invite a friend, firstly I can' see a list of anyone - but that's fine I presume as I've never used it before, but then if I search for my friends username ... nothing happens!

  • PPP LCP Send Termination Request

    On HH5
    According to VDSL my line held up for 11 days
    And then, 2 days on the trot, this sort of thing happens
    03:56:45, 29 Dec. (14179435.000000) PPP LCP Send Termination Request [User request]
    10 seconds later, back up again.
    03:56:55, 29 Dec. (14179444.910000) WAN operating mode is VDSL
    It was at 03:56 in the morning, I am not using, my PC is OFF!
    What is [User request] when it's not ME!
    Lines 1-12

    Hi David
    Could there be festive lights near the line / indoor or outdoor ?
    Flashing lights can be especially  troublesome this time of year.
    If not, I'd raise  fault & see if the line checks come back with anything that might need an openreach visit.
    https://www.bt.com/consumerFaultTracking/public/faults/reporting.do?pageId=21
    Also check if there is anything up locally with openreach's new checker tool.
    http://www.homeandwork.openreach.co.uk/problems-with-your-phone-or-broadband/search.aspx
    If the test come back with no fault found;
    Then possibly research using a openreach modem with the hh5 or get a 3rd party non-bt all-in-one.
    These are the two main fixes people use on here for the hh5's mischief.

  • Can Skype send contact requests without your knowl...

    My daughter received a contact request from a man that I know. He is denying any knowledge or that he sent it. Does skype ever send contact requests without your knowledge? For example, could it access your email contacts and then search for linked skype accounts and send them contact requests without you knowing? Need to know if this is possible before reporting this person. Thank you.

    Mjm28 wrote:
    1. Does skype ever send contact requests without your knowledge?
    2. For example, could it access your email contacts and then search for linked skype accounts and send them contact requests without you knowing?
    Hello
    1. Absolutely NOT!
    2. No. These are private to the users. You should consider reporting this matter to the Police without delay.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Adobe Creative Cloud connectivity issue on Websense run network; Failed to send the request to server to get the response - 12002

    Hi all,
    I am able to install the Windows Adobe Creative Cloud application fine on Windows 7 box but the application fails to establish a connection with Adobe server/-s.
    We use a proxy with Websense as our network security solution. Proxy configuration script is set in Internet Options. We have not tried to whitelist anything as per http://helpx.adobe.com/creative-cloud/kb/proxy-authentication-support-creative-cloud.html as the errors suggest the application does not even connect to the proxy server/Websense at all.
    Please see below snippet from that DLM.log file that contains the error messages - please have a look. Could anybody tell me what it means or advise how to resolve this please? I don't see the Adobe Creative Cloud tool to have any options where manual proxy settings can be setup to try that.
    <snip>
    11/05/14 08:50:48:184 | [INFO] | |  |  |  |  |  | 5236 | **File download complete.**
    11/05/14 08:50:52:145 | [INFO] | |  |  |  |  |  | 3732 | **File download complete.**
    11/05/14 08:51:05:327 | [INFO] | |  |  |  |  |  | 1784 | **File download complete.**
    11/05/14 08:51:06:968 | [ERROR] |  | |  |  |  |  | 3452 | The windows error code is - 12002
    11/05/14 08:51:06:968 | [ERROR] |  | |  |  |  |  | 3452 | Failed to send the request to server to get the response - 12002
    11/05/14 08:51:06:968 | [ERROR] |  | |  |  |  |  | 3452 | the download job (0) failed to execute. The job state is STOPPED_STATE
    11/05/14 08:51:06:992 | [INFO] | |  |  |  |  |  | 6844 | some intermittent error. Retrying now. Error code is 12002 and error type is -45
    11/05/14 08:51:11:514 | [INFO] | |  |  |  |  |  | 6844 | incrementing the thread. now the active thread count is 2
    11/05/14 08:51:12:519 | [INFO] | |  |  |  |  |  | 6648 | **File download complete.**
    11/05/14 08:51:16:541 | [INFO] | |  |  |  |  |  | 6844 | decrementing the thread count. now the active thread count is 1
    11/05/14 08:51:22:281 | [INFO] |  | |  |  |  |  | 3452 | resetting intermitent error 9 from to 1 to 0
    11/05/14 08:51:29:022 | [INFO] | |  |  |  |  |  | 1836 | **File download complete.**
    11/05/14 08:52:22:381 | [INFO] | |  |  |  |  |  | 7220 | incrementing the thread. now the active thread count is 2
    11/05/14 08:52:26:971 | [ERROR] |  | |  |  |  |  | 6756 | The windows error code is - 12002
    11/05/14 08:52:26:971 | [ERROR] |  | |  |  |  |  | 6756 | Failed to send the request to server to get the response - 12002
    11/05/14 08:52:26:971 | [ERROR] |  | |  |  |  |  | 6756 | the download job (5) failed to execute. The job state is STOPPED_STATE
    11/05/14 08:52:27:383 | [INFO] | |  |  |  |  |  | 7220 | some intermittent error. Retrying now. Error code is 12002 and error type is -45
    11/05/14 08:52:27:663 | [INFO] |  | |  |  |  |  | 4908 | resetting intermitent error 9 from to 1 to 0
    11/05/14 08:52:28:733 | [INFO] | |  |  |  |  |  | 6064 | **File download complete.**
    11/05/14 08:52:42:810 | [INFO] | |  |  |  |  |  | 7220 | **File download complete.**
    11/05/14 08:52:45:570 | [INFO] | |  |  |  |  |  | 3788 | **File download complete.**
    </snip>
    There is also an INFO class message that talks about resetting an ‘error 9’ from 1 to 0.

    Hi all,
    I am able to install the Windows Adobe Creative Cloud application fine on Windows 7 box but the application fails to establish a connection with Adobe server/-s.
    We use a proxy with Websense as our network security solution. Proxy configuration script is set in Internet Options. We have not tried to whitelist anything as per http://helpx.adobe.com/creative-cloud/kb/proxy-authentication-support-creative-cloud.html as the errors suggest the application does not even connect to the proxy server/Websense at all.
    Please see below snippet from that DLM.log file that contains the error messages - please have a look. Could anybody tell me what it means or advise how to resolve this please? I don't see the Adobe Creative Cloud tool to have any options where manual proxy settings can be setup to try that.
    <snip>
    11/05/14 08:50:48:184 | [INFO] | |  |  |  |  |  | 5236 | **File download complete.**
    11/05/14 08:50:52:145 | [INFO] | |  |  |  |  |  | 3732 | **File download complete.**
    11/05/14 08:51:05:327 | [INFO] | |  |  |  |  |  | 1784 | **File download complete.**
    11/05/14 08:51:06:968 | [ERROR] |  | |  |  |  |  | 3452 | The windows error code is - 12002
    11/05/14 08:51:06:968 | [ERROR] |  | |  |  |  |  | 3452 | Failed to send the request to server to get the response - 12002
    11/05/14 08:51:06:968 | [ERROR] |  | |  |  |  |  | 3452 | the download job (0) failed to execute. The job state is STOPPED_STATE
    11/05/14 08:51:06:992 | [INFO] | |  |  |  |  |  | 6844 | some intermittent error. Retrying now. Error code is 12002 and error type is -45
    11/05/14 08:51:11:514 | [INFO] | |  |  |  |  |  | 6844 | incrementing the thread. now the active thread count is 2
    11/05/14 08:51:12:519 | [INFO] | |  |  |  |  |  | 6648 | **File download complete.**
    11/05/14 08:51:16:541 | [INFO] | |  |  |  |  |  | 6844 | decrementing the thread count. now the active thread count is 1
    11/05/14 08:51:22:281 | [INFO] |  | |  |  |  |  | 3452 | resetting intermitent error 9 from to 1 to 0
    11/05/14 08:51:29:022 | [INFO] | |  |  |  |  |  | 1836 | **File download complete.**
    11/05/14 08:52:22:381 | [INFO] | |  |  |  |  |  | 7220 | incrementing the thread. now the active thread count is 2
    11/05/14 08:52:26:971 | [ERROR] |  | |  |  |  |  | 6756 | The windows error code is - 12002
    11/05/14 08:52:26:971 | [ERROR] |  | |  |  |  |  | 6756 | Failed to send the request to server to get the response - 12002
    11/05/14 08:52:26:971 | [ERROR] |  | |  |  |  |  | 6756 | the download job (5) failed to execute. The job state is STOPPED_STATE
    11/05/14 08:52:27:383 | [INFO] | |  |  |  |  |  | 7220 | some intermittent error. Retrying now. Error code is 12002 and error type is -45
    11/05/14 08:52:27:663 | [INFO] |  | |  |  |  |  | 4908 | resetting intermitent error 9 from to 1 to 0
    11/05/14 08:52:28:733 | [INFO] | |  |  |  |  |  | 6064 | **File download complete.**
    11/05/14 08:52:42:810 | [INFO] | |  |  |  |  |  | 7220 | **File download complete.**
    11/05/14 08:52:45:570 | [INFO] | |  |  |  |  |  | 3788 | **File download complete.**
    </snip>
    There is also an INFO class message that talks about resetting an ‘error 9’ from 1 to 0.

  • The search request was unable to connect to the Search Service

    I have upgraded from WSS 3.0 to SharePoint Foundation 2010. So far everything appears to be OK apart from my search.
    When I attempt a search I get the following:
    The search request was unable to connect to the Search Service.
    I checked the Manage Database Update Status in Central Admin and noticed the following(an upgrade is required):
    Also, I checked Manage Services on Server and noticed that the only search related service is 'SharePoint Foundation Help Search'.
    If I go into Manage Service Applications and click new there is no option to add a search service.
    Finally I tried PSConfig:
    PS C:\Users\administrator.ACHESON> PSConfig.exe -cmd upgrade -inplace b2b -force
    -cmd applicationcontent -install -cmd installfeatures
    SharePoint Products Configuration Wizard version 14.0.6009.1000. Copyright (C) M
    icrosoft Corporation 2010. All rights reserved.
    Performing configuration task 1 of 6
    Initializing SharePoint Products upgrade...
    Waiting to get a lock to upgrade the farm.
    Successfully initialized SharePoint Products upgrade.
    Performing configuration task 2 of 6
    Initiating the upgrade sequence...
    Successfully initiated the upgrade sequence.
    Performing configuration task 3 of 6
    Registering SharePoint features...
    Feature installation has determined that there are no new features that require
    installation.
    Successfully registered SharePoint features.
    Performing configuration task 4 of 6
    Installing the application content files...
    Installing the SharePoint Central Administration Web Application content files..
    Installing the SharePoint Web Application content files...
    Successfully installed the application content files.
    Performing configuration task 5 of 6
    Upgrading SharePoint Products...
    10.00%Failed to upgrade SharePoint Products.
    An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfig
    urationTaskException was thrown. Additional exception information: The upgrade
    command is invalid or a failure has been encountered.
    Failed to upgrade SharePoint Products.
    Total number of configuration settings run: 5
    Total number of successful configuration settings: 4
    Total number of unsuccessful configuration settings: 1
    Successfully stopped the configuration of SharePoint Products.
    Configuration of SharePoint Products failed. Configuration must be performed be
    fore you use SharePoint Products. For further details, see the diagnostic log l
    ocated at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\1
    4\LOGS\PSCDiagnostics_10_9_2013_12_47_54_528_1859316720.log and the application
    event log.
    This is the warnings and errors that the log contained:
    10/09/2013 12:48:16 10 WRN Found registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\Web Server Extensions\14.0\WSS\ComponentsToRegister, but the SubKeyCount is zero
    10/09/2013 12:48:24 10 WRN Failed to add the service connection point for this farm
    10/09/2013 12:48:24 10 WRN Unable to create a Service Connection Point in the current Active Directory domain. Verify that the SharePoint container exists in the current domain and that you have rights to write to it.
    Microsoft.SharePoint.SPException: The object LDAP://CN=Microsoft SharePoint Products,CN=System,DC=acheson-glover,DC=com doesn't exist in the directory.
    at Microsoft.SharePoint.Administration.SPServiceConnectionPoint.Ensure(String serviceBindingInformation)
    at Microsoft.SharePoint.PostSetupConfiguration.UpgradeTask.Run()
    10/09/2013 12:48:40 10 ERR The exclusive inplace upgrader timer job failed.
    10/09/2013 12:48:40 10 ERR Task upgrade has failed with a PostSetupConfigurationTaskException An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown. Additional exception information: The upgrade command is invalid or a failure has been encountered.
    Failed to upgrade SharePoint Products.
    10/09/2013 12:48:40 10 ERR An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown. Additional exception information: The upgrade command is invalid or a failure has been encountered.
    Failed to upgrade SharePoint Products.
    Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException: Exception of type 'Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException' was thrown.
    at Microsoft.SharePoint.PostSetupConfiguration.UpgradeTask.Run()
    at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()
    10/09/2013 12:48:40 10 ERR Task upgrade has failed
    10/09/2013 12:48:40 1 ERR Task upgrade SharePoint Products failed, so stopping execution of the engine
    10/09/2013 12:48:40 1 ERR Failed to upgrade SharePoint Products.
    An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown. Additional exception information: The upgrade command is invalid or a failure has been encountered.
    Failed to upgrade SharePoint Products.
    Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException: Exception of type 'Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException' was thrown.
    at Microsoft.SharePoint.PostSetupConfiguration.UpgradeTask.Run()
    at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()
    10/09/2013 12:48:41 1 ERR One or more configuration tasks has failed or some tasks were not run
    10/09/2013 12:48:41 1 ERR One or more configuration tasks has failed to execute
    10/09/2013 12:48:41 1 ERR Configuration of SharePoint Products failed. Configuration must be performed in order for this product to operate properly. To diagnose the problem, review the extended error information located at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS\PSCDiagnostics_10_9_2013_12_47_54_528_1859316720.log, fix the problem, and run this configuration wizard again.
    10/09/2013 12:48:41 1 ERR Post setup configuration was not run successfully when using the command line task driver module
    How do I resolve this?
    Cheers
    Paul

    Hi,
    SharePoint Foundation the search service should be installed by default.  It's not the same as with 2010 Standard or Enterprise where you can create a "Service Application" for it.
    Follow this article to configure SharePoint Foundation Search:
    http://plexhosted.blogspot.com/2011/11/how-to-configure-sharepoint-foundation.html
    Meanwhile, here is a thread which discusses the similar question:
    Configuration of SharePoint Foundation 2010 Search
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/af57728f-ae20-477b-8c67-2b594a1a72de/configuration-of-sharepoint-foundation-2010-search?forum=sharepointadminprevious
    Thanks.
    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.

  • HT204407 my 2 daughters and I are sharing one icloud.  I am trying to set up and use find my friends with them, but it won't let me.  It says I can't send a request to myself when I send one to her email address, which is different than mine.  What am I d

    my two daughters and I have iphones.  I am trying to set up and use find my friends with them. We have 1 icloud, but different emails.  When I send a request it states that I can't send a request to myself.  What am I doing wrong

    Sharing an Apple ID is never recommended for these reasons.
    They can create their own: http://appleid.apple.com and you can add them at the addresses they use for their ID.
    Sharing an Apple ID is not recommended because all of your data gets merged and when it gets deleted from one device, it deletes from them all, such as Contacts.
    iCloud Guide

  • Problem in sending HTTP request to the server.

    Hi,
    i dveloped an ant script for sar deployment.
    i deployed a sar to my local soa server with ant script. it got deployed succesfully..
    but when i try to deploy to a remote server, getting the below error..
    "Problem in sending HTTP request to the server. Please make sure the server is up and/or check standard HTTP response code for 404"
    but the server is up and runnig and i am able to ping it from my machine and also access the console...
    below is my script
    build.properties
    wn.bea.home=C:/Oracle/Middleware
    all.needed.jars.path=D:/SourceCode/neededJAR
    oracle.soa.home=C:/Oracle/Middleware/Oracle_SOA1
    java.passed.home=C:/Oracle/Middleware/jdk160_24
    #Deployment environment
    deployment.plan.environment=DEV
    #Deploy Action
    deployAction =redeploy
    #credentials
    user=weblogic
    password=welcome1
    #For Composite deployment
    serverURL=http://10.177.154.6:7001
    forceDefault=true
    server=10.177.154.6
    port=7001
    sarLocation=D:/SourceCode/JAR
    build.xml
    <?xml version="1.0" encoding="iso-8859-1"?>
    <project name="soaDeployAll" default="deployAll">
         <echo>basedir ${basedir}</echo>
         <property environment="env"/>
    <echo>current folder ${basedir}</echo>
         <property file="${basedir}/build.properties"/>
         <taskdef resource="net/sf/antcontrib/antlib.xml">
         <classpath>
              <pathelement location="${all.needed.jars.path}/ant-contrib.jar"/>           
         </classpath>
         </taskdef>
         <target name="init">
              <tstamp>
                   <format property="timestamp" pattern="yyyy-MM-dd_HH-mm-ss"/>
              </tstamp>
              <property name="build.log.dir" location="${basedir}/buildlogs"/>
              <mkdir dir="${build.log.dir}"/> <property name="build.log.filename" value="build_${timestamp}.log"/>
              <record name="${build.log.dir}/${build.log.filename}" loglevel="verbose" append="false"/>
              <echo message="Build logged to ${build.log.filename}"/>
         </target>
         <target name="deployAll" depends="init">
         <echo>Deploy for environment ${deployment.plan.environment}</echo>
         <antcall target="deployAllComposites"/>
    </target>
    <!-- Following Actions are performed for Composite files in Managed Server - Deploy,Redeploy -->
         <target name="deployAllComposites" depends="init">
         <foreach target="deployComposites" param="Files">
              <fileset dir="${sarLocation}" casesensitive="no" includes="*.jar"/>
         </foreach>
         </target>
         <target name="deployComposites" depends="init">
         <basename file="${Files}" property="basename"/>
    <echo>Deploy Project ${basename} for environment ${deployment.plan.environment}</echo>
              <if>
                   <equals arg1="${deployAction}" arg2="deploy" />
                   <then>
                        <echo message="Deploying composites in Managed server........." />
                        <ant antfile="${oracle.soa.home}/bin/ant-sca-deploy.xml" inheritAll="true" target="deploy">
                             <property name="serverURL" value="${serverURL}"/>
                             <property name="user" value="${user}"/>
                             <property name="password" value="${password}"/>
                             <property name="overwrite" value="false"/>
                             <property name="forceDefault" value="${forceDefault}"/>
                             <property name="sarLocation" value="${sarLocation}/${basename}"/>
                        </ant>
                   </then>
                   <else>
                        <echo message="ReDeploying composites in Managed server........." />
                        <ant antfile="${oracle.soa.home}/bin/ant-sca-deploy.xml" inheritAll="true" target="deploy">
                             <property name="serverURL" value="${serverURL}"/>
                             <property name="user" value="${user}"/>
                             <property name="password" value="${password}"/>
                             <property name="overwrite" value="true"/>
                             <property name="forceDefault" value="${forceDefault}"/>
                             <property name="sarLocation" value="${sarLocation}/${basename}"/>                         
                        </ant>
                   </else>
              </if>
    </target>
    </project>
    please help....

    Hi,
    Give the serverURL as http://<host>:<managed.server.port>/soa-infra/deployer and try.
    e.g . http://10.177.154.6:8001/soa-infra/deployer
    Regards,
    Neeraj Sehgal

  • PPP LCP Send Termination Request [User request] - ...

    Had this problem now for a very long time, and recently came back in touch with it after I was forced to use my HH5 as my TPLINK ADSL router got bricked. 
    The problem only persists when using any BT issues router whether it be a HH3-5. 
    The event log is filled with firewall packet loss and blocked entries which I understand that is the firewall doing it's job which is fine. The line that keeps popping up is the one in the title of this thread (PPP LCP Send Termination Request [User request]) this pops up every time the connection drops.

    this was raised before  https://community.bt.com/t5/BT-Infinity-Speed-Connection/PPP-LCP-Send-Termination-Request-User-reque...
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Azure Sql DB Export to Storage Container fails with "An error occurred while sending the request"

    I've built a new VM from which I'm running PowerShell scripts to backup my databases.  It had worked before on an old server for several months, and worked once on the new server, then I upgraded my Azure PowerShell cmdlets, and haven't been able to
    get it to work again.  The new version is 0.8.10.1.
    Below is my source code, with sensitive stuff replaced with ?'s.  When I display the $stctx and $dbctx, they seem to have reasonable values.  I added the IP address of the server as an exception to the db firewall, and I've installed SQL Server
    Mangement Studio and verified that I can connect to the database.  I have a feeling there's something simple I've overlooked.
    Here's are both error messages:
    Start-AzureSqlDatabaseExport : An error occurred while sending the request.
    At C:\Users\Public\PublicCmds\test.ps1:29 char:1
    + Start-AzureSqlDatabaseExport -SqlConnectionContext $dbctx -StorageContext $stctx ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Start-AzureSqlDatabaseExport], HttpRequestException
        + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.SqlDatabase.Database.Cmdlet.StartAzureSqlDatabaseExport
    Start-AzureSqlDatabaseExport : Error while copying content to a stream.
    At C:\Users\Public\PublicCmds\test.ps1:29 char:1
    + Start-AzureSqlDatabaseExport -SqlConnectionContext $dbctx -StorageContext $stctx ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Start-AzureSqlDatabaseExport], HttpRequestException
        + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.SqlDatabase.Database.Cmdlet.StartAzureSqlDatabaseExport
    Here is the source code:
    param($dbname)
    if ($dbname -eq $null) {
    write-host "Database code must be specified"
    return
    $password = "????"| ConvertTo-SecureString -asPlainText -Force
    $servercredential = new-object System.Management.Automation.PSCredential("????", $password) 
    $dbsize = 1
    $dbrestorewait = 10
    $dbserver = "????"
    $stacct = $dbname
    $stkey = "????"
    $stctx = New-AzureStorageContext -StorageAccountName $stacct -StorageAccountKey $stkey
    $dbctx = New-AzureSqlDatabaseServerContext -ServerName $dbserver -Credential $servercredential 
    $dt = Get-Date
    $timestamp = "_" + $dt.Year + "-" + ("{0:D2}" -f $dt.Month) + "-" + ("{0:D2}" -f $dt.Day) + "-" + ("{0:D2}" -f $dt.Hour) + ("{0:D2}" -f $dt.Minute)
    $bkupname = $dbname + $timestamp + ".bacpac"
    write-host "db context"
    $dbctx
    write-host "storage context"
    $stctx
    write-host "Backup $dbname to $bkupname"
    Start-AzureSqlDatabaseExport -SqlConnectionContext $dbctx -StorageContext $stctx -StorageContainerName databasebackup -DatabaseName $dbname -BlobName $bkupname

    Hi Brad,
    Mentioned script, with appropriate values, works on my system.
    I'm able to export an Azure SQL database to blob storage. Am using version 0.8.10.1 of cmdlets, so this the same version mentioned in this problem description.
    Can you please try using Add-AzureAccount and check if that helps. This is indicated in a different third-party blog.
    http://answers.flyppdevportal.com/categories/azure/azuretroubleshooting.aspx?ID=8aee89fe-430e-45fe-af54-7c8ed3ac60e1%29."http://answers.flyppdevportal.com/categories/azure/azuretroubleshooting.aspx?ID=8aee89fe-430e-45fe-af54-7c8ed3ac60e1
    Does it work from a different machine with newly downloaded credentials.
    Does it work for a newly created database (so minimal database size).
    If above do not work, we may require additional details like RequestID, StorageAccountName, ServerName so an MS ticket may be more appropriate.
    Girish Prajwal

  • I have a new company and I am running everything on my Mac(s). I would like to set up my iCal to send calendar requests from my company address. Right now it is sending through iCloud which is not the email that I want to be sending the calendar requests.

    I have built the business website using WordPress. I have BlueHost as my email client and everything is working fine. I am now faced with a problem setting up my iCal appointments. Does anyone have a work-around? Right now my iCloud (gMail address) is what is sending the requests.

    I don't remember in 10.4.11, but Parental Controls did allow OKing Mail or not in 10.5.8...
    BTW, 10.5.8 can be installed on slower Macs, I have it on a 450 MHz G4...
    Leopard requirements/10.5.x...
        *  Mac computer with an Intel, PowerPC G5, or PowerPC G4 (867MHz or faster) processor
    minimum system requirements
        * 512MB of memory (I say 1.5GB for PPC at least, 2-3GB minimum for IntelMacs)
        * DVD drive for installation
        * 9GB of available disk space (I say 30GB at least)
    Classic/OS9 Apps no longer supported.
    Trouble is Apple no longer sells it, check eBay & such for the Retail version, not the Gray Discs...
    http://www.ebay.com/sch/i.html?_nkw=mac+os+x+leopard+retail+10.5
    There are workarounds if the 867MHz CPU is the only hangup...
    http://sourceforge.net/projects/leopardassist/
    http://lowendmac.com/osx/leopard/unsupported.html

  • Send a request to a conversation that has already been finished

    This error continually occurs. Any idea why?
              An attempt was made to send a request to conversation id []:169.254.17.244-b61346.100533c48f4.-7fea-gend.
              This is not a valid conversation id. The most common cause of this exception is an attempt to send a request to a conversation that has already been finished.
              Work around is to restart WLS and maybe this time it will not happen. WLS 8.1SP3.
              From: [email protected] ([email protected])
              Subject: Weblogic Tutorial Question - Need help
              This is the only article in this thread
              View: Original Format
              Newsgroups: weblogic.developer.interest.jms
              Date: 2004-09-17 09:12:33 PST
              Hi guys,
              I'm a Weblogic newbie. I have started working with Weblogic Workshop's
              Tutorial. I find them interesting and easy to follow. All was going
              well until I reached the Step 4 (Add a JMS Control). The url to this
              page is:
              http://edocs.bea.com/workshop/docs81/doc/en/workshop/reference/navResources.html
              After completing this tutorial to the end I get all the results
              mentioned, but I get additional error messages like these in my
              InvestigateTest.jws Web Service client:
              1095373714829
              investigate:creditScoreJMS:listener.onMessage
              External Service Callback investigate:creditScoreJMS:listener.onMessage
              Submitted at Friday, September 17, 2004 10:25:52 AM EDT
              Executable Request:Callback.onMessage
              ConversationNotFound Exception
              Submitted at Friday, September 17, 2004 10:25:52 AM EDT
              An attempt was made to send a request to conversation id 1095373714829.
              This is not a valid conversation id. The most common cause of this
              exception is an attempt to send a request to a conversation that has
              already been finished.
              Request Cancelled
              Submitted at Friday, September 17, 2004 10:25:52 AM EDT
              Processing Request
              Submitted at Friday, September 17, 2004 10:25:53 AM EDT
              Request Complete
              Submitted at Friday, September 17, 2004 10:25:53 AM EDT
              I cannot figure out why I'm getting these. I'm doing everything as
              described in the Tutorial. Can somebody tell me what I'm doing wrong.
              I would greatly appreciate.
              Thanks.
              Adnan

    hi
              We just encountered this problem while load testing using JMeter. While it may not be the same scenario, we have found that we can consistently trigger this error if:
              a) multiple threads from the same client are invoking the service (i.e. a JMeter using JavaSamplerClient can do this)
              b) the web service is conversational according to the polling design pattern recommended in the WLW doco: i.e.
              startQuery()(one-way) conversation phase = start
              checkQueryStatus() conversation phase = continue
              fetchQueryResponse()conversation phase = finish
              c) buffering is enabled for the startQuery() operation.
              d) the number of threads > 3 (might occur very infrequently <= 3 - cant remember)
              This is reproducable in our WLS/WLW 8.1 SP2/SP3 environment.
              With buffering enabled - errors occur
              With buffering not enabled - no errors
              On reflection, buffering isn't really needed for our usage so we removed it, however the errors might indicate a bug or unsupported use case
              Regards
              Jim Nicolson

  • Is there a way to force firefox to send ajax-request when user clicks on a link and redirect occurs?

    I'm trying to send ajax-request with web-analytics data when user clicks on a link. But Firefox cancels the request and moves to the link location. Sync requests or waiting for response is not an option because performance is critical.

    Correct me if I'm wrong here:
    <code>jQuery.data()</code> saves the <code>{"foo": "bar"}</code> JSON object to variable <code>data</code>, and then the <code>s.tl()</code> call sends <code>data</code> to the server, right?
    You could use jQuery's [http://api.jquery.com/event.preventDefault/ <code>event.preventDefault()</code>] method to stop the browser from automatically following the link on click. You could wait until the Ajax request was finished before following the link.
    <hr>
    I hope that solved your problem!
    <i>If it did, would you please choose this answer as your solution? It would help other Firefox users to find help on the forums faster and more efficiently. Thanks!</i>
    And of course, feel free to post back if you need more help!
    Happy browsing!

Maybe you are looking for

  • Javascript that worked in CS4 not working in CC

    I wrote a Javascript tool that creates perspective grids in Photoshop a while ago.  It works fine in Photoshop CS4.  However, I've been getting a few emails complaining that it does not work in CC.  I've checked the CC release of the Javascript in Ph

  • Display screen is reduced

    I have a new PowerBook Pro with Windows & Parallels. Somehow, I have reduced the size of my Mac screen. There are black strips on either side of the blue desktop. How do I get it back to full size? Thanks. Lynn

  • Setting partition count globally

    Hi, I have the following questions about distributed services 1. I understand that the recommended value for partition count for distributed caches is the first prime number higher than the square of the number of JVMs. Is it possible to set this val

  • I have deleted one query from production server

    some one have deleted one query from production server. i would like to know who has deleted that query. pls let me ASAP. regards raja

  • Little confused by Syncing and Streaming

    I got my Apple TV yesterday. Everything appeared fine when I set it up. Except when I tried to play music, it was "skipping" and sounded kind of weird. I assumed it was because the Apple TV was syncing. So, I left it alone overnight expecting to find