Error loading model: Missing chain 'vespa'












-1














I have my custom Searcher and my custom DocumenetProcessor in my vespa app.My service.xml is given below:



<services version="1.0">

<container id="default" version="1.0">
<document-api/>
<search>
<chain id="default" inherits="vespa">
<searcher id="com.example.test.CustomSearcher" bundle="example-vespa-app"/>
</chain>
</search>
<nodes>
<node hostalias="node1" />
</nodes>
<document-processing>
<chain id="default" inherits="vespa">
<documentprocessor id="com.example.test.CustomDocumentProcessor"/>
</chain>
</document-processing>
</container>


<content id="test_user" version="1.0">
<redundancy>1</redundancy>
<documents>
.....
</documents>
<nodes>
<node hostalias="node1" distribution-key="0" />
</nodes>
</content>
</services>


My CustomDocumentProcessor is given below:



public class CustomDocumentProcessor  extends DocumentProcessor {

@Override
public Progress process(Processing processing) {
for (DocumentOperation op : processing.getDocumentOperations()) {
if (op instanceof DocumentPut) {
DocumentPut put = (DocumentPut) op;
Document document = put.getDocument();
document.setFieldValue("documentType",
String.valueOf(document.getDataType()));
}
}
return Progress.DONE;
}

}


When I remove CustomDocumentProcessor from service.xml, my app works .When I add it , It gives an error:



Request failed. HTTP status code: 400
Invalid application package: default.default: Error loading model: Missing chain 'vespa'.



Why is that? Please help.










share|improve this question



























    -1














    I have my custom Searcher and my custom DocumenetProcessor in my vespa app.My service.xml is given below:



    <services version="1.0">

    <container id="default" version="1.0">
    <document-api/>
    <search>
    <chain id="default" inherits="vespa">
    <searcher id="com.example.test.CustomSearcher" bundle="example-vespa-app"/>
    </chain>
    </search>
    <nodes>
    <node hostalias="node1" />
    </nodes>
    <document-processing>
    <chain id="default" inherits="vespa">
    <documentprocessor id="com.example.test.CustomDocumentProcessor"/>
    </chain>
    </document-processing>
    </container>


    <content id="test_user" version="1.0">
    <redundancy>1</redundancy>
    <documents>
    .....
    </documents>
    <nodes>
    <node hostalias="node1" distribution-key="0" />
    </nodes>
    </content>
    </services>


    My CustomDocumentProcessor is given below:



    public class CustomDocumentProcessor  extends DocumentProcessor {

    @Override
    public Progress process(Processing processing) {
    for (DocumentOperation op : processing.getDocumentOperations()) {
    if (op instanceof DocumentPut) {
    DocumentPut put = (DocumentPut) op;
    Document document = put.getDocument();
    document.setFieldValue("documentType",
    String.valueOf(document.getDataType()));
    }
    }
    return Progress.DONE;
    }

    }


    When I remove CustomDocumentProcessor from service.xml, my app works .When I add it , It gives an error:



    Request failed. HTTP status code: 400
    Invalid application package: default.default: Error loading model: Missing chain 'vespa'.



    Why is that? Please help.










    share|improve this question

























      -1












      -1








      -1







      I have my custom Searcher and my custom DocumenetProcessor in my vespa app.My service.xml is given below:



      <services version="1.0">

      <container id="default" version="1.0">
      <document-api/>
      <search>
      <chain id="default" inherits="vespa">
      <searcher id="com.example.test.CustomSearcher" bundle="example-vespa-app"/>
      </chain>
      </search>
      <nodes>
      <node hostalias="node1" />
      </nodes>
      <document-processing>
      <chain id="default" inherits="vespa">
      <documentprocessor id="com.example.test.CustomDocumentProcessor"/>
      </chain>
      </document-processing>
      </container>


      <content id="test_user" version="1.0">
      <redundancy>1</redundancy>
      <documents>
      .....
      </documents>
      <nodes>
      <node hostalias="node1" distribution-key="0" />
      </nodes>
      </content>
      </services>


      My CustomDocumentProcessor is given below:



      public class CustomDocumentProcessor  extends DocumentProcessor {

      @Override
      public Progress process(Processing processing) {
      for (DocumentOperation op : processing.getDocumentOperations()) {
      if (op instanceof DocumentPut) {
      DocumentPut put = (DocumentPut) op;
      Document document = put.getDocument();
      document.setFieldValue("documentType",
      String.valueOf(document.getDataType()));
      }
      }
      return Progress.DONE;
      }

      }


      When I remove CustomDocumentProcessor from service.xml, my app works .When I add it , It gives an error:



      Request failed. HTTP status code: 400
      Invalid application package: default.default: Error loading model: Missing chain 'vespa'.



      Why is that? Please help.










      share|improve this question













      I have my custom Searcher and my custom DocumenetProcessor in my vespa app.My service.xml is given below:



      <services version="1.0">

      <container id="default" version="1.0">
      <document-api/>
      <search>
      <chain id="default" inherits="vespa">
      <searcher id="com.example.test.CustomSearcher" bundle="example-vespa-app"/>
      </chain>
      </search>
      <nodes>
      <node hostalias="node1" />
      </nodes>
      <document-processing>
      <chain id="default" inherits="vespa">
      <documentprocessor id="com.example.test.CustomDocumentProcessor"/>
      </chain>
      </document-processing>
      </container>


      <content id="test_user" version="1.0">
      <redundancy>1</redundancy>
      <documents>
      .....
      </documents>
      <nodes>
      <node hostalias="node1" distribution-key="0" />
      </nodes>
      </content>
      </services>


      My CustomDocumentProcessor is given below:



      public class CustomDocumentProcessor  extends DocumentProcessor {

      @Override
      public Progress process(Processing processing) {
      for (DocumentOperation op : processing.getDocumentOperations()) {
      if (op instanceof DocumentPut) {
      DocumentPut put = (DocumentPut) op;
      Document document = put.getDocument();
      document.setFieldValue("documentType",
      String.valueOf(document.getDataType()));
      }
      }
      return Progress.DONE;
      }

      }


      When I remove CustomDocumentProcessor from service.xml, my app works .When I add it , It gives an error:



      Request failed. HTTP status code: 400
      Invalid application package: default.default: Error loading model: Missing chain 'vespa'.



      Why is that? Please help.







      vespa






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 20 at 10:56









      Mohammad Sunny

      949




      949
























          1 Answer
          1






          active

          oldest

          votes


















          2














          Remove "inherits=vespa" from the document-processing chain.



          There is no "vespa document processing chain like there is for search chains.






          share|improve this answer





















          • After removing "inherits=vespa", I got this error. ERROR : container Container.com.yahoo.jdisc.core.StandaloneMain JDisc exiting: Throwable caught: nexception=njava.lang.IllegalArgumentException: Could not create a component with id 'com.example.test.CustomDocumentProcessor'. Tried to load class directly, since no bundle was found for spec: com.example.test.CustomDocumentProcessor. If a bundle with the same name is installed, there is a either a version mismatch or the installed bundle's version contains a qualifier string.
            – Mohammad Sunny
            Nov 21 at 10:39










          • Any other solution please!!
            – Mohammad Sunny
            Nov 22 at 6:18










          • You're missing the bundle attribute.
            – Jon
            Nov 22 at 11:08











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53391478%2ferror-loading-model-missing-chain-vespa%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          Remove "inherits=vespa" from the document-processing chain.



          There is no "vespa document processing chain like there is for search chains.






          share|improve this answer





















          • After removing "inherits=vespa", I got this error. ERROR : container Container.com.yahoo.jdisc.core.StandaloneMain JDisc exiting: Throwable caught: nexception=njava.lang.IllegalArgumentException: Could not create a component with id 'com.example.test.CustomDocumentProcessor'. Tried to load class directly, since no bundle was found for spec: com.example.test.CustomDocumentProcessor. If a bundle with the same name is installed, there is a either a version mismatch or the installed bundle's version contains a qualifier string.
            – Mohammad Sunny
            Nov 21 at 10:39










          • Any other solution please!!
            – Mohammad Sunny
            Nov 22 at 6:18










          • You're missing the bundle attribute.
            – Jon
            Nov 22 at 11:08
















          2














          Remove "inherits=vespa" from the document-processing chain.



          There is no "vespa document processing chain like there is for search chains.






          share|improve this answer





















          • After removing "inherits=vespa", I got this error. ERROR : container Container.com.yahoo.jdisc.core.StandaloneMain JDisc exiting: Throwable caught: nexception=njava.lang.IllegalArgumentException: Could not create a component with id 'com.example.test.CustomDocumentProcessor'. Tried to load class directly, since no bundle was found for spec: com.example.test.CustomDocumentProcessor. If a bundle with the same name is installed, there is a either a version mismatch or the installed bundle's version contains a qualifier string.
            – Mohammad Sunny
            Nov 21 at 10:39










          • Any other solution please!!
            – Mohammad Sunny
            Nov 22 at 6:18










          • You're missing the bundle attribute.
            – Jon
            Nov 22 at 11:08














          2












          2








          2






          Remove "inherits=vespa" from the document-processing chain.



          There is no "vespa document processing chain like there is for search chains.






          share|improve this answer












          Remove "inherits=vespa" from the document-processing chain.



          There is no "vespa document processing chain like there is for search chains.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 20 at 12:07









          Jon

          58137




          58137












          • After removing "inherits=vespa", I got this error. ERROR : container Container.com.yahoo.jdisc.core.StandaloneMain JDisc exiting: Throwable caught: nexception=njava.lang.IllegalArgumentException: Could not create a component with id 'com.example.test.CustomDocumentProcessor'. Tried to load class directly, since no bundle was found for spec: com.example.test.CustomDocumentProcessor. If a bundle with the same name is installed, there is a either a version mismatch or the installed bundle's version contains a qualifier string.
            – Mohammad Sunny
            Nov 21 at 10:39










          • Any other solution please!!
            – Mohammad Sunny
            Nov 22 at 6:18










          • You're missing the bundle attribute.
            – Jon
            Nov 22 at 11:08


















          • After removing "inherits=vespa", I got this error. ERROR : container Container.com.yahoo.jdisc.core.StandaloneMain JDisc exiting: Throwable caught: nexception=njava.lang.IllegalArgumentException: Could not create a component with id 'com.example.test.CustomDocumentProcessor'. Tried to load class directly, since no bundle was found for spec: com.example.test.CustomDocumentProcessor. If a bundle with the same name is installed, there is a either a version mismatch or the installed bundle's version contains a qualifier string.
            – Mohammad Sunny
            Nov 21 at 10:39










          • Any other solution please!!
            – Mohammad Sunny
            Nov 22 at 6:18










          • You're missing the bundle attribute.
            – Jon
            Nov 22 at 11:08
















          After removing "inherits=vespa", I got this error. ERROR : container Container.com.yahoo.jdisc.core.StandaloneMain JDisc exiting: Throwable caught: nexception=njava.lang.IllegalArgumentException: Could not create a component with id 'com.example.test.CustomDocumentProcessor'. Tried to load class directly, since no bundle was found for spec: com.example.test.CustomDocumentProcessor. If a bundle with the same name is installed, there is a either a version mismatch or the installed bundle's version contains a qualifier string.
          – Mohammad Sunny
          Nov 21 at 10:39




          After removing "inherits=vespa", I got this error. ERROR : container Container.com.yahoo.jdisc.core.StandaloneMain JDisc exiting: Throwable caught: nexception=njava.lang.IllegalArgumentException: Could not create a component with id 'com.example.test.CustomDocumentProcessor'. Tried to load class directly, since no bundle was found for spec: com.example.test.CustomDocumentProcessor. If a bundle with the same name is installed, there is a either a version mismatch or the installed bundle's version contains a qualifier string.
          – Mohammad Sunny
          Nov 21 at 10:39












          Any other solution please!!
          – Mohammad Sunny
          Nov 22 at 6:18




          Any other solution please!!
          – Mohammad Sunny
          Nov 22 at 6:18












          You're missing the bundle attribute.
          – Jon
          Nov 22 at 11:08




          You're missing the bundle attribute.
          – Jon
          Nov 22 at 11:08


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53391478%2ferror-loading-model-missing-chain-vespa%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Costa Masnaga

          Fotorealismo

          Sidney Franklin