vCD 5.1.1 error REST API

I use the firefox plugin RESTClient do a few test against my vCD 5.1.1 installation API.  I can connect successfully, but then I always get the following error message, any operation rest I run.  I wonder if there is some stale / expansion of service registered, but I do not know how to remove it.

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <Error xmlns="http://www.vmware.com/vcloud/v1.5" stackTrace="com.vmware.vcloud.api.rest.handlers.exceptions.InternalServerErrorRestApiException: Cannot send message to service with id: bd9bfdf1-0aee-40d9-be1e-243c507234ce. Check your service configuration.
  3.      at com.vmware.vcloud.api.rest.common.handlers.ErrorHandler.getInternalServerErrorRestApiException(ErrorHandler.java:106)
  4.      at com.vmware.vcloud.api.rest.common.handlers.ErrorHandler.errorInternalServer(ErrorHandler.java:63)
  5.      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  6.      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  7.      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  8.      at java.lang.reflect.Method.invoke(Unknown Source)
  9.      at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
  10.      at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
  11.      at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:164)
  12.      at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:91)
  13.      at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
  14.      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
  15.      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
  16.      at java.util.concurrent.FutureTask.run(Unknown Source)
  17.      at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
  18.      at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
  19.      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
  20.      at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:118)
  21.      at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:208)
  22.      at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
  23.      at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:166)
  24.      at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:113)
  25.      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:184)
  26.      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:112)
  27.      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
  28.      at com.vmware.vcloud.api.rest.jaxrs.servlet.CxfServlet.service(CxfServlet.java:161)
  29.      at com.vmware.vcloud.api.rest.jaxrs.servlet.JaxRsDispatcherServlet.doService(JaxRsDispatcherServlet.java:97)
  30.      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
  31.      at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
  32.      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
  33.      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
  34.      at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565)
  35.      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
  36.      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
  37.      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:539)
  38.      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
  39.      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)
  40.      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
  41.      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
  42.      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)
  43.      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
  44.      at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:288)
  45.      at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:115)
  46.      at org.springframework.security.web.firewall.RequestWrapper$FirewalledRequestAwareRequestDispatcher.forward(RequestWrapper.java:132)
  47.      at com.vmware.vcloud.api.framework.web.ExtensibilityFilter.doFilter(ExtensibilityFilter.java:171)
  48.      at sun.reflect.GeneratedMethodAccessor154.invoke(Unknown Source)
  49.      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  50.      at java.lang.reflect.Method.invoke(Unknown Source)
  51.      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  52.      at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
  53.      at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
  54.      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  55.      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
  56.      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
  57.      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  58.      at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
  59.      at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
  60.      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  61.      at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
  62.      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  63.      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
  64.      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
  65.      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  66.      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  67.      at $Proxy733.doFilter(Unknown Source)
  68.      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
  69.      at com.vmware.vcloud.security.filters.ValidityExceptionFilter.doFilterHttp(ValidityExceptionFilter.java:47)
  70.      at com.vmware.vcloud.security.filters.HttpFilterBean.doFilter(HttpFilterBean.java:35)
  71.      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
  72.      at com.vmware.vcloud.security.web.AuthenticationFilter.doFilter(AuthenticationFilter.java:155)
  73.      at com.vmware.vcloud.api.rest.diagnostics.RestApiDiagnosticsInterceptor.doFilter(RestApiDiagnosticsInterceptor.java:129)
  74.      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
  75.      at com.vmware.vcloud.api.rest.versioning.AcceptHeaderFilter.doFilter(AcceptHeaderFilter.java:108)
  76.      at com.vmware.vcloud.api.rest.diagnostics.RestApiDiagnosticsInterceptor.doFilter(RestApiDiagnosticsInterceptor.java:129)
  77.      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
  78.      at com.vmware.vcloud.security.web.ConversationFilter$1.run(ConversationFilter.java:39)
  79.      at com.vmware.vcloud.security.web.ConversationFilter$1.run(ConversationFilter.java:37)
  80.      at com.vmware.vcloud.common.persist.ConversationContextExecutor.execute(ConversationContextExecutor.java:67)
  81.      at com.vmware.vcloud.security.web.ConversationFilter.doFilter(ConversationFilter.java:45)
  82.      at com.vmware.vcloud.api.rest.diagnostics.RestApiDiagnosticsInterceptor.doFilter(RestApiDiagnosticsInterceptor.java:129)
  83.      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
  84.      at com.vmware.vcloud.security.web.ThreadLocalCleanerFilter.doFilter(ThreadLocalCleanerFilter.java:65)
  85.      at com.vmware.vcloud.api.rest.diagnostics.RestApiDiagnosticsInterceptor.doFilter(RestApiDiagnosticsInterceptor.java:129)
  86.      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
  87.      at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169)
  88.      at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
  89.      at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
  90.      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
  91.      at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:77)
  92.      at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:144)
  93.      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
  94.      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477)
  95.      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
  96.      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:521)
  97.      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
  98.      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)
  99.      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
  100.      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
  101.      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)
  102.      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
  103.      at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
  104.      at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
  105.      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
  106.      at org.eclipse.jetty.server.Server.handle(Server.java:349)
  107.      at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:449)
  108.      at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:47)
  109.      at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:910)
  110.      at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:634)
  111.      at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
  112.      at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:66)
  113.      at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:254)
  114.      at org.eclipse.jetty.server.ssl.SslSocketConnector$SslConnectorEndPoint.run(SslSocketConnector.java:665)
  115.      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599)
  116.      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534)
  117.      at java.lang.Thread.run(Unknown Source)
  118. " minorErrorCode="INTERNAL_SERVER_ERROR" message="Cannot send message to service with id: bd9bfdf1-0aee-40d9-be1e-243c507234ce. Check your service configuration." majorErrorCode="500" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://172.17.232.49/api/v1.5/schema/master.xsd">
  119. </Error>

Hello

Use the PUT option which is an update operation. POST is usually for the creation of new objects/execution of actions on objects.

Kind regards

Rajesh Kamal.

Tags: VMware

Similar Questions

  • vCO 5.5.2 and vCAC 6.1 plugin error REST API

    Hello

    I get an error when you try to make applicants vCAC 6.1 REST API calls of vCO 5.5.2 for the items in the catalog.  This same code works very well with the vCAC 6.0.1 plugin.

    Error:

    Data serialization error. (Workflow: Test vCAC remains / Scriptable task (item1) #24)

    Code:

    var point = {'@type': 'CatalogItemRequest',}

    "catalogItemRef": {"id": "3e6c3f13-6ea0-4da5-8bac-d8cb27e64f24"},

    "Organization": {"tenantRef": "vcacadmin"}

    {"subtenantRef": "e931debb-6200-40e5-89a7-01d35d0cc306"},

    "requestedFor": "[email protected]",

    "State": "SUBJECT."

    "requestNumber": 0.

    "requestData": {"items": []}

    {"key": "provider-blueprintId', 'value': {'type': 'string', 'value':"catalogItem.id"}}.

    {"key": "provider-provisioningGroupId', 'value': {'type':"string","value":"e931debb-6200-40e5-89a7-01d35d0cc306"}},

    {"key": "requestedFor', 'value': {'type':"string","value":"[email protected]"}},

    {'key': 'provider - VirtualMachine.CPU.Count', 'value': {'type': 'integer', 'value': 1}},

    {'key': 'provider - VirtualMachine.Memory.Size', 'value': {'type': 'integer', 'value': 1024}},

    {'key': 'provider - VirtualMachine.LeaseDays', 'value': {'type': 'integer', 'value': 0}},

    {"key": "provider-__Notes', 'value': {'type': 'string', 'value': 'Test'}},

    {'key': 'provider - VirtualMachine.Disk0.Size', 'value': {'type': 'string', 'value': '40'}},

    {{[{"key": 'provider - VirtualMachine.Disk1.Size', 'value': {'type': 'string', 'value': '8'}}]}}

    var catalogRest = vcac.createRestClient (vCACCAFEServicesEnum.CATALOG_SERVICE);

    var answer = catalogRest.post("consumer/requests",item);

    vCAC 6.0.x plugin expects a json object in the call to rest.

    6.1 plugin expects a value of json string.

    This will do the trick:

    var response = catalogRest.post ("consumer/queries", JSON.stringify (item));

  • Get the 500 error trying to create a table using the REST API

    Hello

    I tried to create a table using the REST API for Business Intelligence Cloud, but I got 500 Internal Server Error for a while now.

    Here are the details that I use to create a table.

    Capture.JPG

    and the json to create the schema that I use is

    [{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ["ROWID"]}]

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['RELATIONID']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['ID']}

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['RESPONDEDDATE']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [255], 'columnName': ['RESPONSE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_CREATEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_CREATEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_LASTMODIFIEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_LASTMODIFIEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_SYSTEMMODSTAMP']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [10], 'columnName': ['SYS_ISDELETED']},

    [{'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [50], 'columnName': ['TYPE']}]

    I tried this using postman and code, but I always get the following response error:

    Error 500 - Internal server error

    Of RFC 2068 Hypertext Transfer Protocol - HTTP/1.1:

    10.5.1 500 internal Server Error

    The server encountered an unexpected condition which prevented him from meeting the demand.

    I am able to 'get' existing table schemas, delete the tables, but I'm not able to make put them and post operations. Can someone help me to identify the problem, if there is no fault in my approach.

    Thank you

    Romaric

    I managed to create a table successfully using the API - the only thing I see in your JSON which is different from mine is that you have square brackets around your values JSON where I have not. Here is my CURL request and extract my JSON file (named createtable.txt in the same directory as my CURL executable):

    curl u [email protected]: password UPDATED h x ' X-ID-TENANT-NAME: tenantname ' h ' Content-Type: application/json '-binary data @createtable.txt https://businessintell-tenantname.analytics.us2.oraclecloud.com/dataload/v1/tables/TABLE_TO_CREATE k

    [

    {

    'columnName': 'ID',

    'dataType': 'DECIMAL ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': false

    },

    {

    'columnName': 'NAME',

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'STATUS."

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'CREATED_DATE."

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    'columnName': 'UPDATED_DATE ',.

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    }

    ]

  • Calling REST API security token error simple GET method

    Please help me get past this error. I have yet to get a successful REST API request of Eloqua. API is enabled for our sandbox that I managed by instantiating different SOAP request/response.

    This is my test RequestURI

    https://secure.Eloqua.com/API/rest/2.0/data/contact/3

    With the method 'GET' headers appropriate and what I have collected of their API guides, including the very useful

    Eloqua REST API - authentication

    Eloqua REST API - URL parameters

    Eloqua REST API - HTTP request headers

    RequestURI works when typed manually into a authenticated (connected to the Eloqua Sandbox session) tab of the FireFox browser.

    When I try the request in my tools (middleware Tibco integration, acting as a client HTTP request), I always get the answer:

    A security token that is associated with your session became invalid.

    I saw this topic, but this was not useful in my case.

    http://topliners.Eloqua.com/message/20371#20371

    The behavior in my case is pretty consistent, and seems not to care if I even spoil RequestURI making it invalid. The same error persists.

    Help, please! Thank you

    Heath

    A more complete answer follows:

    < RequestActivityOutput >

    < header > HTTP/1.1 200 OK

    Content-Type: text/html; charset = utf-8

    Content-Length: 2355

    Date: Friday, April 19, 2013 19:43:19 GMT

    cache-control: private

    connection: close

    P3P: CP = "IDC DSP COR DEVa TAIa OUR PHY ONL UNI COM NAV CNT STA BUS."

    < / header >

    < statusLine >

    < httpVersion > HTTP/1.1 < / httpVersion >

    < statusCode 200 > < / statusCode >

    < reasonPhrase > OK < / reasonPhrase >

    < / statusLine >

    ....

    A security token that is associated with your session became invalid.

    This can happen if you open multiple instances of Eloqua, in

    different browser Windows or tabs, then the diary of one of

    These instances.  Please either close this window or tab, or

    & lt; a href = "" / FormsLogin.aspx "target ="_top"> click here to connect to new & lt;" /a >. & lt; br >

    Heath,

    I'm not able to simply navigate to this URL in my browser either, even though I am connected to my sandbox (which has access to the API). I don't know how you manage to get there in Firefox.

    That being said, I can hit this page of the REST API very well when I base64 encode my credentials HTTP as described here:

    Eloqua REST API - authentication

    May be useful to take a look at the auth string you use when calling from rest.

    Jim

  • REST api call for the properties of the object in the html bridge provides resource not found (404) error.

    Hello

    I added a bridge Html summary view to our existing plugin (which is in Flex). The html page is displayed in the Summary tab with static data like images and titles. But the .gestJSON of the REST api call fails with the error ' could not load resources: the server responded with a 404 (Not Found) status.

    I followed the bridge Html sample chassisB (chassis - summary.js and html) to create the new page.

    Web.XML of the user interface of the plugin is configured to map/rest / *. bean dataAccessController is defined in the bundle context.

    Java package has the DataAccessController same class as the DataAccessController chassisB class

    This is the URL that I see in the javascript debugger and call API is a failure for this url.  There is no error in the virgo.log.

    https:// /vsphere-client/webui_ui_ns/rest/data/properties/323de5b9-4D2E-4dd7-ae32-98277dd44e90%252Fmf8k-h38?properties=name,model,version < vcenter ip >

    webui_ui_ns-client/vSphere is the value of Web-ContextPath in the plugin MANIFESTO. MF

    I spent a lot of time to understand the issue, but no luck. What I'm doing wrong here? Any help is appreciated.

    version of vCenter server appliance 6.0.0

    SDK - vSphere SDK Web 5.5.0

    1.7.0_79 64-bit JDK

    Thank you

    Deepa

    It was a configuration problem. I missed the tag in the bundle context of spring.

    After you add the 2 lines, it worked.

    Thanks for your time.

  • REST API transport layer error

    Hello. I'm having a bad time in train to deploy openstack. When I click on finish and it starts to deploy, the following message appears: "Deploy Openstack Instance failed. "Internal error: error of transport REST API layer.

    restapierror.png

    The oms.log, despite the mistakes of java, looking at this part caught my attention:

    [2015-07 - 02T 16: 40:35.531 - 0000] Tomcat http ERROR - 32 | com.vmware.openstack.rest.RestResource: com.fasterxml.jackson.core.JsonParseException: Illegal side character (CTRL-CHAR, code 10)): must be escaped using the backslash to be included in the string value to [Source: java.io.FileInputStream@b4b6451, line: 146, column: 31]

    Did anyone had trouble like this?

    Hello everyone, thanks for all of you who have tried to help.

    I tried to mix the two real esxi hosts mixed with esxi embedded to meet the needs of the guests... and maybe I could have configured something wrong in the network.

    Then I saw a post where affinity rules could be changed by editing the file /opt/vmware/vio/etc/omjs.properties change false to true oms.disable_hosts_anti_affinity.

    In doing so I could use only two real esxi hosts, using one in each of the two groups that are needed.

    Thanks again, Marcelo.

  • Error in creating a category with the REST API

    vRO 7.0.1

    I am trying to create a category in the folder root of Workflow using the REST API.

    URL = https://vroserver.fqdn:8281 / vco/api/categories

    Method = POST

    The API documentation suggests that the body should be like this:

    {

    "categoryType": "WorkflowCategory",

    'name': "Test5",.

    'description': 'Testing '.

    }

    However, I always get a 400 response: the request sent by the client is syntactically incorrect.

    reflecting the docs by: category name must be specified

    Can anyone help?

    Body of the request should be:

    {
       "type":"WorkflowCategory",
       "name":"Test5",
       "description":"Testing"
    }
    
  • C#, UCCX, Rest API, PUT (update a resource) and not taken media Type supported

    Hi, I'm developing an application to update the skills of resources with the REST API.

    I can get all the values I want to (GET), but when I try to update a resource using PUT, and then I get a "415 Unsupported Media Type" webException.

    I discovered that c# / UCCX works with demand. MediaType (instead of request. ContentType).

    I got this error when I tried to GET the data. He now works for the GET.

    But to PUT it, I got the error. Method is defined as SAID, MediaType = "application/xml".

    I tried to empty, ' text/xml '...

    Looked on the internet, Web sites, saying always specify ContentType/MediaType = "application/xml", I have already done.

    I also got the same error if I try an application COULD and without sending data.

    Thanks for your help!

    public string MakeRequest()
    {
    var request = (HttpWebRequest) WebRequest.Create (EndPoint);
    request. Credentials = new System.Net.NetworkCredential (login, password);
    request. Method = Method.ToString ();
    request. ContentLength = 0;
    request. Accept = ContentType;
    request. MediaType = ContentType;
                
    #region so PUT
    If (! string.) IsNullOrEmpty (PostData) & method == HttpVerb.PUT)
    {
    encoding of var = new UTF8Encoding();
    PostData = PostData.Replace ("\n", "");
    var bytes = Encoding.UTF8.GetBytes (PostData);
    request. ContentLength = bytes. Length;
                    
    using (var writeStream = request. GetRequestStream())
    {
    writeStream.Write (bytes, 0, bytes.) (Length);
    }
    }
    #endregion

    Try
    {
    assistance (response var = (HttpWebResponse) request. GetResponse())
    {
    var responseValue = string. Empty;

    If (answer. StatusCode! = HttpStatusCode.OK)
    {
    var message = String.Format ("request failed. Received HTTP {0}", response. StatusCode);
    throw new ApplicationException (message);
    }

    Enter the answer
    using (var responseStream = response. GetResponseStream())
    {
    If (responseStream! = null)
    using (var = new StreamReader (responseStream) Player)
    {
    responseValue = reader. ReadToEnd();
    }
    }

    Return responseValue;
    }
    }
    catch (WebException wex)
    {
    error string = wex. Message;
    Return ' ';
    }

    OK you got, in this case, post your request in the Sub forum as well which is sought after by developers and you can you expect a concrete answer/explanation on the same

    https://communities.Cisco.com/community/Developer/Express-configuration-API

    Concerning

    Deepak

  • CPO 3.0 call a REST API

    I try to call a remote REST API that returns a JSON object.

    The call browser API looks like this

    http://IPAM-dev/phpipam/API/?app_id=API&controller=sections&action=read&ID=6

    Returns

    {'success': true, 'data': {'id': '6', 'name': "Telford subnets", 'description': '',' masterSection': '0', 'permissions': "{\"4\":\"1\ ""} strictMode ',' ': '1', 'subnetOrdering': null, 'order': null, "editDate": null, "showVLAN": '0', 'showVRF': '0' "}}

    When I try to use the OPC Web HTTP Request activity it fails with the following error

    Unable to send a content-body with this type of verb.

    I think the problem here is the content type. The default is application/xml; charset = utf - 8 in the activity, I tried to change this text, html and json, but still did not work. I can't let the emty content type in the activity.

    Anyone have any suggestion how to make a REST of CPO call using the activity Web HTTP request

    Try to change GET to POST (in the form of CALL-CPO_REST - RQ.png).  Sends the contents of the body generally requires a POST not a GET.

  • create the document using the CMIS REST API

    Hello! I would like to integrate my java application with Oracle Webcenter via the REST API of CMIS. I can read, delete documents, but have some problem with creating one.

    I get success only when I create document (type = "/ ucmserver / IDC:GlobalProfile") with the name "idcPrimaryFile". In other cases I have the exception:

    oracle.webcenter.content.integration.RepositoryException: November 12, 2015 08:52:06 oracle.webcenter.content.integration.spi.ucm.DocumentManager mapBinaryPropertiesToTransferFile

    GRAVE: Impossible to perform the action on document with binary because the binary name and the name of the node must be the same, but they are not.  The binary name is XXX and the name of the file is idcPrimaryFile

    My properties:

    Properties =]

    (PropertyIds.OBJECT_TYPE_ID): type.

    (PropertyIds.NAME): name,.

    "/ ucmserver / IDC:GlobalProfile.ora:p:dDocType ':"Application. "

    ' / ucmserver / IDC:GlobalProfile.ora:p:dDocTitle ': 'Test ',.

    ' / ucmserver / IDC:GlobalProfile.ora:p:dSecurityGroup ': 'Public ',.

    ]

    I would appreciate help

    Hello! I solved my problem, but with a workaround.

    I will try to explain the problem and how it is possible to create documents via Oracle Webcenter Content Management API REST CMIS:

    For the next POST request:

    POST/rest/api/cmis/children/ucmserver? UID = IDC:Folder / FLD_USERS & versioningState = none HTTP/1.1

    Host: 192.168.32.192:8888

    User-Agent: Mozilla/5.0 (X 11; Linux x86_64; RV:38.0) Gecko/20100101 Firefox/38.0

    Accept-Encoding: gzip, deflate

    Connection: keep-alive

    Accept-Language: en-US, en; q = 0.5

    Content-Type: application/atom + xml; type = entry

    Cache-Control: no cache

    "http://www.w3.org/2005/Atom' xmlns:cmis ="http://docs.oasis-open.org/ns/cmis/core/200908/"xmlns:cmisra ="http://docs.oasis-open.org/ns/cmis/restatom/200908/"xmlns:chemistry ="http://chemistry.apache.org/">."

    urn: uuid:00000000 - 0000-0000-0000-00000000000

    test

    2015 11-13 T 08: 06:27.014Z

    a text

    Public

    test

    Application

    MyTitle

    / ucmserver / IDC:GlobalProfile

    I get the response from the server

    Error 500 - Internal server error

    oracle.webcenter.content.integration.RepositoryException: 18 November 2015 05:24:04 oracle.webcenter.content.integration.spi.ucm.DocumentManager mapBinaryPropertiesToTransferFile

    GRAVE: Impossible to perform the action on document with binary because the binary name and the name of the node must be the same, but they are not.  The binary name is test , and the name of the file is idcPrimaryFile.

    When the test is the document name.

    This request, I checked with an another compatible services of CMIS (IBM FileNet and OpenCMIS InMemory repository). I created the document with name test it.

    Workaround solution:

    POST request:

    POST/rest/api/cmis/children/ucmserver? UID = IDC:Folder / FLD_USERS & versioningState = none HTTP/1.1

    Host: 192.168.32.192:8888

    User-Agent: Mozilla/5.0 (X 11; Linux x86_64; RV:38.0) Gecko/20100101 Firefox/38.0

    Accept-Encoding: gzip, deflate

    Connection: keep-alive

    Accept-Language: en-US, en; q = 0.5

    Host: 192.168.32.192:8888

    Content-Type: application/atomsvc + xml

    Slug: test

    Cache-Control: no cache

    "http://www.w3.org/2005/Atom' xmlns:cmis ="http://docs.oasis-open.org/ns/cmis/core/200908/"xmlns:cmisra ="http://docs.oasis-open.org/ns/cmis/restatom/200908/"xmlns:chemistry ="http://chemistry.apache.org/">."

    urn: uuid:00000000 - 0000-0000-0000-00000000000

    test

    2015 11-13 T 08: 06:27.014Z

    a text

    Public

    test

    Application

    MyTitle

    / ucmserver / IDC:GlobalProfile

    I created the document with the name test in Oracle Webcenter.

    The differences between applications are:

    Content-Type: application/atomsvc + xml

    Slug: test

    So I'm not sure that the Oracle Webcenter Content Management Service STILL provides "correct" implementation of the OASIS CMIS specification, because I found nothing in therehttp://docs.oasis-open.org/cmis/CMIS/v1.0/cmis-spec-v1.0.html on the Slug query parameter and it is not clear to me how the Oracle Webcenter Content Management REST Service works with Content-type application/atom + xml; type = entry (I mean according to CMIS specification().



    It will be very useful for me to get another point of view. Maybe someone could correct me if I'm wrong.

    Thanks in advance.

  • Can not do a query with the REST api

    Hello

    After discovering that the use of the standard SOAP API what is like poking yourself in the eye with a sharp stick, I try to use the REST API. At first, I tried to exercise it through the extension of POSTMAN on Chrome. But I have no joy.

    Can I use caller ID to get the URL, so I know that my authentication is OK. But all other calls give me:

    Failure of 403 XSRF Protection


    Is an example of a call, that I'm trying:

    https://secure.Eloqua.com/API/rest/1.0/data/[email protected] & Count = 1

    I can't find any reference anywhere to this error 403.

    Help!

    Thank you

    Simon

    Hi Simon,.

    Looks like you're client (web browser) might have stored credentials for Eloqua, probably in the cookies collection. If you try to delete your cookies and rerun the query API with basic authentication, it should work.

    Hope this helps and please let us know if you need more information.

    Thank you

    Fred

  • Search REST API by updatedAt?

    Hello

    I tried to do a search by updatedAt through the REST API.  I was not able to run.  Is it possible to do this research?

    I tried using the time at the time, and I tried to use the date mm/dd/yyyy yyyy/mm/dd formats.  Maybe I have not just magical format?

    Also, I tried using both a greater - than > and more-than-or-equal to > =.  So, my parameters could look like:? page = 1 & search = updatedAt > = 1371745091806

    The exact error message is: "invalid query".

    Thoughts?

    .  Topher

    Hello

    I was finally able to find a way to do it.  Thus, for posterity:

    The trick is that you do not use the parameter "search".  There is a separate parameter just to get data updated since a precise timestamp.  It is called lastUpdatedAt (rather than updatedAt).  The value of the parameter is applied as a filter ' greater than or equal to "and is in seconds since the epoch (Jan 1, 1970).

    Thus, for example:

    GET /API/REST/1.0/assets/campaigns?page=1&lastUpdatedAt=1369841921

    The trick who told me there was that I noticed on the campaigns page list call included a separate parameter for lastUpdatedAt.

    http://topliners.Eloqua.com/docs/doc-3091

    .  Topher

  • REST API updates

    I try to get the REST API of emails. I have the system of creating emails OK but when I try and update doing a query PUT with the ID of the email created in the URL and the ID in the JSON data (and noting of also changed) it blows upward with an internal server error.

    Any pointers people can give me?

    Hi Fred, I just went to get a few POST and PUT requests to see if I could spot anything and post it here.

    And this is now, works very well.

    * shrugs *.

    I'll keep an eye on it and post if I have more problems.

  • Uploading images using the REST API from PHP

    Does anyone at - he had success with the download of the images through the Eloqua Rest API using PHP?

    I have the final point, but I can't understand what kind of information needs to go the variable $data.

    That's what I currently have:

    <? PHP

    ini_set ("display_errors", 1);

    include("..) /.. ("/ eloquaRequest.php");

    $eloquaRequest = new EloquaRequest ('Instancename', 'username', 'password', 'https://secure.eloqua.com/API/REST/1.0');

    $data = new stdClass();

    $data-> image = file_get_contents("./easy.jpg");

    $data-> name = 'this is a file name ";

    $data-> filename = "luke.jpg";

    $data-> contentType = "image/jpeg";

    $response = $eloquaRequest-> message (' assets/image/content', $data);

    var_dump ($Response);

    The error I get is the following, but I think that it is a standard response, if your image does not go through correctly:

    Array (1) {[0] = > object (stdClass) #3 (2) {["type"] = > string(9) "FileError" ["requirement"] = > object (stdClass) #4 (3) {["type"] = > string (15) "SizeRequirement" ["maxSize"] = > int (52428800) ["minSize'] = > int (1)}}}

    Thank you

    Hi Phil,

    I had to find that it all the time, it took me several hours. I hope that it allows you to save a headache.

    Eloqua is very strict in dealing with the content-type header; See the comment here for a little explanation; REST API - download Images

    So what you need to do in PHP, is to build the query string for the image of yourself. You can do as follows (to adapt to your needs, not yet tested);

    <>

    [...]

    $img_path = '. / easy.jpg';

    $img_info = getimagesize ($img_path);

    $img_real = realpath ($img_path);

    $data = "-ELOQUA_BOUNDARY\r\n".

    ' Content-Disposition: form-data; name =-"Filedata\"; filename =------"".baseName ($img_real). » \"\r\n ».

    "Content-Type: '. '" $img_info ['mime']. "" \r\n ".

    "\r\n".

    file_get_contents() ($img_real). "" \r\n ".

    ' - ELOQUA_BOUNDARY - ';

    $headers = array ("Content-Length:".strlen ($data),"Content-Type: multipart/form-data;") Boundary = ELOQUA_BOUNDARY");

    $response = $eloquaRequest-> post (' assets/image/content', $data, $headers);

    ?>

    I have also adapted/reconstructed library Eloqua PHP in order to support the "BOLD" part. You must change the executeRequest function and add something like this to support change the request headers;

    curl_setopt ($this-> ch, CURLOPT_HTTPHEADER, $headers);

  • Version of spring with rest api sites webcenter

    Hello world!

    I use other api sites webcenter, with this library: com.fatwire.wem.api.rest 11.1.1.8.0, com.fatwire.wem - sso-api-case - 11.1.1.8.0, com.fatwire.wem - sso-api - 11.1.1.8.0 in an application of spring with the 3.2.10.RELEASE version. And it works very well! I make a list of the assets and all its attributes, but I need use this application with spring version 4.0.6.RELEASE, then when I update the version of spring the rest api that libraries do not work. It's the method that fails:

    SSOSession ssoSession is SSO. getSSOSession (baseUri);

    multiticket = ssoSession.getMultiTicket (username, password); -> Error LINE

    baseResource is baseResource.queryParam ("multiticket", multiticket);.

    This because the application cannot get a mutiticket. I use the same code and the same structure only changes the spring version. Oracle webcenter is updated with all the patches up to this date.

    How can we solve this problem?

    THX

    SOLVED

    Private Sub authenticate() throws {RestConnectionException}

    try {}

    SSOSession ssoSession = SSO.getSSOSession ("CASConfig.xml");

    multiticket = ssoSession.getMultiTicket (username, password);

    baseResource = baseResource.queryParam ("multiticket", multiticket);

    } catch (SSOException e) {}

    throw new RestConnectionException (e);

    }

    }

    CASConfig.xml

    http://www.springframework.org/schema/MVC ".
    "" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
    "xmlns:beans ="http://www.springframework.org/schema/beans"
    "xmlns: jee ="http://www.springframework.org/schema/jee"xmlns:tx ="http://www.springframework.org/schema/tx"
    "xsi: schemaLocation ="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
      http://www.springframework.org/schema/JEE http://www.springframework.org/schema/JEE/spring-JEE.xsd http://www.springframework.org/schema/TX http://www.springframework.org/schema/TX/spring-TX.xsd">."

    ': http://application-tier server: port/AR ' / >

    ': http://application-tier server: port/AR ' / >


    Add the casconfig to the classpath in the spring, set up the server and port in xml and it works!

Maybe you are looking for

  • Satellite A205-P7548 - screen empties and remain a Virgin

    Hello friends! I recently bought a laptop from toshiba A205-p7548 and since the first day, my screen goes off and now stayed blank.But when I connect my laptop to an external monitor I can see my desktop. I changed to 100% power management settings a

  • Headers to the output spreadsheet?

    Hi all. I am quite new to LabVIEW and want to headers for my spreadsheet to exit. I made a table 1 d of channels with appropriate titles. I have difficulties to get the data I want and the headers to be included in the output file. Another task, I wa

  • What is installQ updater?

    What is installQ updater?

  • The Windows 8 operating system upgrade

    I want to improve my hp pavilion dv6 6140 tx (product no.-QC339PA #ACJ) of windows 8 from windows 7.  I surfed on the hp site and discovered this 8 for windows driver my laptop is not yet available.  Its really sad to know that HP does not provide wi

  • Why the page get dim and lock up?

    I search with firefox, then during the use of the page web, page gets dim and lock up, unable to use X.