This discussion is archived
4 Replies Latest reply: Jul 1, 2013 11:56 PM by 11d76386-fc07-4e20-8b7c-2f1b939680e1 RSS

Not able to search in Inquira

tcs oracle centre of excellence Newbie
Currently Being Moderated
We have installed InQuira , now also we can retrieve channels, node, record using client api.
To retrieve clent we have written:
IQServiceClient client = IQServiceClientManager.connect("SUPER", "admin", "BOOK_CATALOG", "BOOK_CATALOG",

"http://xxx:8226/imws/WebObjects/imws.woa/ws/RequestProcessor","http://xxx:8223/inquiragw/services/RequestProcessor",true,6000);
But when we hit http://xxx:8226/imws/WebObjects/imws.woa/ws/RequestProcessor
in browser it is throwing exception:
[Fatal Error] :-1:-1: Premature end of file. Connection refused.
Then we hit http://xxx:8223/inquiragw/services/RequestProcessor , it is showing : Internet Explorar can not display the webpage.

So in our code, we got exception here:
IQSearchRequest iqSR = client.getSearchRequest();
String query = "abcd";
GIML answers = iqSR.askQuestion(query, true);


When I hit http://xxx:8226/imws/WebObjects/imws.woa/ws/RequestProcessor

it is throwing:


<?xml version="1.0" encoding="UTF-8" ?>
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Body>
- <soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>org.xml.sax.SAXParseException: Premature end of file.</faultstring>
- <detail>
<ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">org.xml.sax.SAXParseException: Premature end of file. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at com.webobjects.appserver._private.WOServerSessionHandler.doServer(WOServerSessionHandler.java:95) at com.webobjects.appserver._private.WOServerSessionHandler.invoke(WOServerSessionHandler.java:34) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:249) at com.webobjects.appserver._private.WOWebService.performActionNamed(WOWebService.java:437) at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259) at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:161) at com.webobjects.appserver._private.WOWebServiceRequestHandler.handleRequest(WOWebServiceRequestHandler.java:109) at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1698) at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1737) at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1702) at com.webobjects.jspservlet._WOApplicationWrapper.servletDispatchRequest(_WOApplicationWrapper.java:131) at com.webobjects.jspservlet.WOServletAdaptor._handleRequest(WOServletAdaptor.java:727) at com.webobjects.jspservlet.WOServletAdaptor.doGet(WOServletAdaptor.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.inquira.imwows.filters.ForceUTF8RequestEncodingFilter.doFilter(ForceUTF8RequestEncodingFilter.java:30) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:619)</ns1:stackTrace>
<ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">entsol9</ns2:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>


I am new in InQuira, please anybody help me.
  • 1. Re: Not able to search in Inquira
    tcs oracle centre of excellence Newbie
    Currently Being Moderated
    Hi,
    Now we are able to bring the server (running on 8223 port) up. But we still got exception :
    Exception in thread "Main Thread" com.inquira.client.serviceclient.IQServiceClientException
    at com.inquira.client.serviceclient.request.IQSearchRequest.askQuestion(IQSearchRequest.java:193)
    at com.tcs.test.Test.main(Test.java:28)

    I am getting exception at the following line:
    GIML answers = iqSR.askQuestion(query, false);

    When I hit http://xxx:8226/imws/WebObjects/imws.woa/ws/RequestProcessor still I got same exception..



    Please help...
  • 2. Re: Not able to search in Inquira
    958796 Newbie
    Currently Being Moderated
    Please pass the valid user name and password
  • 3. Re: Not able to search in Inquira
    904921 Newbie
    Currently Being Moderated
    Hi All,

    I am trying to use the OOTB mobile search. But somehow i am not able to open the content or search using the OOTB page=mobile.

    Is there any other setup or configuration to be done in Information or System Manager to utilize or enable this Inquira's Mobile Search?


    Please assist me on this. Thanks in advance.



    ---
    Best Regards,
    Hariharan
  • 4. Re: Not able to search in Inquira
    11d76386-fc07-4e20-8b7c-2f1b939680e1 Newbie
    Currently Being Moderated

    Hi,

     

    I'm referring to the ORACLE KNOWLEDGE CLIENT LIBRARY API IMPLEMENTATION GUIDE which tells the method to connect to Inquira using client libraries.

    I've used

    itoobjects-8.5.1.jar

    javaServiceClient-8.5.1.jar

    infra.jar

    as libraries in my Jdeveloper

    The code to connect to Inquira as found in the documentation is

        IQServiceClient client = IQServiceClientManager.connect("abc", "abc", "", "abc", "abc", "abc",true);
        client.getSearchInfo().setResultLanguages("en-US,de-DE,fr-FR");
        client.getSearchInfo().setLanguage("en-US");
      
        IQSearchRequest iqSR = client.getSearchRequest();
        //submit query
        String query = "How do I play the piano?";
        GIML answers = iqSR.askQuestion(searchQ, true);
        System.out.println(answers.toString());

     

     

    But I'm getting the following error

     

    INFO: Cannot find iqclientlibrary.properties in classpath to load.

    Client Library properties file:iqclientlibrary.properties cannot be loaded.

    AxisFault

    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

    faultSubcode:

    faultString: org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages

    faultActor:

    faultNode:

    faultDetail:

        {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages

        at org.apache.axis.encoding.DeserializationContext.startDTD(DeserializationContext.java:1161)

        at oracle.xml.parser.v2.NonValidatingParser.parseDoctypeDecl(NonValidatingParser.java:574)

        at oracle.xml.parser.v2.NonValidatingParser.parseProlog(NonValidatingParser.java:429)

        at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:387)

        at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:232)

        at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:173)

        at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)

        at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)

        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)

        at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)

        at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)

        at org.apache.axis.client.AxisClient.invoke(AxisClient.

    org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages

     

     

    Please help me

     

     

    Regards

    Sri Lakshmi

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points