Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-1487

rest-endpoint quickstart returns HTTP response code: 406

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • JDG 7.2 ER3
    • JDG 7.2 ER2
    • JDG Quickstarts
    • None
    • ER3
    • Hide

      Followed the steps from README.md with small change:
      updated to
      subsystem xmlns="urn:infinispan:server:core:8.5"

      Show
      Followed the steps from README.md with small change: updated to subsystem xmlns="urn:infinispan:server:core: 8.5 "

    Description

      Rest-endpoint quickstart is possible to build but execution lead to the errors:

      [WARNING] 
      java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 406 for URL: http://localhost:8080/rest/teams/teams
      	at org.jboss.as.quickstarts.datagrid.rest.RESTCache.doOperation(RestCache.java:79)
      	at org.jboss.as.quickstarts.datagrid.rest.RESTCache.get(RestCache.java:124)
      	at org.jboss.as.quickstarts.datagrid.rest.FootballManager.<init>(FootballManager.java:56)
      	at org.jboss.as.quickstarts.datagrid.rest.FootballManager.main(FootballManager.java:137)
      	... 6 more
      Caused by: java.io.IOException: Server returned HTTP response code: 406 for URL: http://localhost:8080/rest/teams/teams
      	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1894)
      	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
      	at org.jboss.as.quickstarts.datagrid.rest.RESTCache.doOperation(RestCache.java:67)
      	... 9 more
      
      

      Attachments

        Issue Links

          Activity

            People

              gfernand@redhat.com Gustavo Fernandes (Inactive)
              gbabcan Gabriel Babčan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: