SOA 12.1.3: REST Adapter generates run time "unknown media type" Exception

HI All,
We are workig with a client who are looking to migrate from BPEL 10g to Oracle 12c. The current implementation integrates with a number of RESTFUL services via JAVA components that are invoked via BPEL. As part of the migration we are looking to migrate and simplify these with use of the new REST Adapters. The use case and issue is as follows:
We have a client who exposes a REST service via the usual principles. This service is provided by a 3rd Party provider as an external service for out clients 3rd party application. The REST service provides a number of Resources and Operations (GET, PUT, DELETE) to manipluate and retrieve data as per the interface provided.
Based on one of the Simple GET operations, we have attempted to create a new REST adapter based on the interface. The provider does not supply a WADL, hence the REST adapter has been generated by using the REST Adapter within JDeveloper and configuring the resources, operations and request/ response types as required. This generates the required WADL file (see attached).
When testing the WADL via JDeveloper, the response is returned as expected. However when deploying this to SOA Suite 12.1.3, the adapter errors a runtime. The error that is encountered is as follows:
<summary>oracle.fabric.common.FabricInvocationException: java.lang.RuntimeException: Unknown media type : application/atom+xml; charset=utf-8; type=feed</summary>
When reviewing the HHTP response from the service through SOAP Ui I can see the content type is set to application/atom+xml.
After reviewing the Oracle Documentation it does not seem to provide any insight into this issue or any possible reasons for its occurence.
Has anyone had similar issues or provide any insight into this issue? It appears on face value the Adapters are not compatiable with this media type, which may prove to be a big limitation
Regards Dave

Hi Dave,
REST Adapter in SOA 12.1.3 currently only supports the following media types...
1. application/json
2. application/xml
3. application/www-form-urlencoded
Since the service you are calling is using application/atom+xml, hence you are getting the error.
Regards,
Ankur

Similar Messages

  • How can i set dynamic properties in HTTP Binding adapter  at run time

    Hi,
    I am trying to put dynamic properties in HTTP Binding adapter at run time. I am able to Set endpointURI, UserName and Password dynamically using below code.
    Is it possible to set Version , Retry Count, timeout, authentication type at run time.
    below is code for setting endpointURI, UserName and Password dynamically.
    <invoke name="HttpInvoke" bpelx:invokeAsDetail="no"
    partnerLink="SACS_Http_Adapter"
    portType="ns1:Request_Response_ptt" operation="Request-Response"
    inputVariable="HttpInvoke_Request-Response_InputVariable"
    outputVariable="HttpInvoke_Request-Response_OutputVariable">
    <bpelx:toProperties>
    <bpelx:toProperty name="endpointURI" variable="inputVariable"
    part="payload" query="@endpoint"/>
    <bpelx:toProperty name="javax.xml.ws.security.auth.username"
    variable="inputVariable" part="payload"
    query="@username"/>
    <bpelx:toProperty name="javax.xml.ws.security.auth.password"
    variable="inputVariable" part="payload"
    query="@password"/>
    </bpelx:toProperties>
    </invoke>
    Thanks,
    Siva
    Edited by: 929920 on Apr 25, 2012 7:45 AM

    Hi Bastain,
    Assuming your using the Batch Process Model, you can programatically insert a new SN into the correct parameter in the postUUT callback sequence.
    This sequence has access to the UUT.SerialNumber parameter so you can use a File Global to pass the SN from the main sequence to the postUUT callback. 
    Here is an example of what I mean. 
    Adam
    Attachments:
    set SN within Main Sequence.seq ‏80 KB

  • ADAPTER.HTTP_EXCEPTION - HTTP 415 Unsupported Media Type

    Hi All,
    We have a Proxy to SOAP scenario which is throwing the below response.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 415 Unsupported Media Type</SAP:AdditionalText>
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    We have used XSLT mapping and also used the Message transform bean (ocalejbs/AF_Modules/MessageTransformBean) with the module parameters.
    Please help.

    this is the Audit log... Just in case this helps..
    20.10.2011 09:57:34 Information Transform: successfully transformed
    20.10.2011 09:57:34 Information MP: processing local module localejbs/sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean
    20.10.2011 09:57:34 Information SOAP: request message entering the adapter with user J2EE_GUEST
    20.10.2011 09:57:34 Information SOAP: completed the processing
    20.10.2011 09:57:34 Information SOAP: continuing to response message 765df5dd-fb23-11e0-a52b-0000124b6826
    20.10.2011 09:57:34 Error SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 500 Internal Server Error
    20.10.2011 09:57:34 Error MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 500 Internal Server Error
    20.10.2011 09:57:34 Error Adapter Framework caught exception: SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 500 Internal Server Error
    20.10.2011 09:57:34 Error Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 500 Internal Server Error. Setting message to status failed.
    20.10.2011 09:57:34 Error The message status was set to FAIL.

  • Run-time error '13':  Type mismatch

    There are A and B excel files.
    And two different POV-dimension in two excel files
    VBA code below:
    Dim vtGrid As Variant
    Dim vtDimNames As Variant
    Dim vtPOVNames As Variant
    x = HypRetrieve("sheet1")
    x = HypUseLinkMacro(True)
    Range("b10").Select
    x = HypGetSourceGrid("sheet1", vtGrid)
    ref = HypMenuVRefresh()
    x = HypGetPOVItems(vtDimNames, vtPOVNames)
    MsgBox (vtPOVNames(6))
    Range("a3").Value = "date: " & vtPOVNames(6) & " - " & vtPOVNames(3)
    Range("a4").Value = "dep : " & vtPOVNames(0)
    There is not any attribute dimension in pov A excel file.
    There is one attribute dimension in pov B excel file.
    The same VBA code excute is normal in A excel file.
    But the same VBA code excute is "run-time error '13': Type mismatch " in B excel file.
    The error '13' in the row of MsgBox (vtPOVNames(6)).
    Is attribute dimension in pov cause this question?
    And how did I solve this question?

    Based on where the error is occurring, it looks like the value returned by vtPOVNames(6) is not defaulting to a string datatype for the msgbox.
    Try 'cstr(vtPOVNames(6))' to force conversion of the value into a string. Also, you may want to test for nulls using IsNull() and empty variant values using IsEmpty().
    It doesn't look like the code you posted shows vtPOVNames being populated. If you're populating the names yourself, you could always use a string array instead of a variant array. Just dim the string array using a statement such as, "Dim strPOVNames(6) as String" or "Dim strPOVNames() as String" in case you need to ReDim the array later to size it for a non-fixed set of POV names.
    Hope this helps.

  • MS VB Run-Time Error '13': Type Mismatch

    Hi,
    I'm new to the forum, and just starting a trial of RH7 as my
    company decides whether we'll upgrade from our X4 product or switch
    to a different HAT. Before attempting to import my existing HPJ
    project, I opened the sample Application Help project. Frequently
    when I switch among topics, I get a Microsoft Visual Basic dialog
    box that says Run-Time Error '13': Type Mismatch. I have to click
    the End button to close the dialog box. Does anyone have any idea
    what causes the error? I got that error also in X4 when switching
    among topics in my own project (on a different computer).

    Hello Brian,
    I'm thrilled!!! Your clue was enough to set me in the right
    direction, so after spending many hours searching for the solution
    to this problem lately and in the past, it appears to finally be
    solved. Initially just unchecking the other add-ins didn't do the
    trick, and the situation seemed to get worse and worse--I couldn't
    save files because Word kept giving me error messages that macros
    were disabled (which I didn't know how to rectify), and RH kept
    freezing. I noticed after a while that the RoboHelp menu in Word
    would have disappeared when RH froze, and that the template would
    have changed to Normal.dot. If I reattached the RoboHelp.dot
    template, RH would unfreeze, but later the template would switch
    back to Normal and RH would freeze again. I was initimidated to
    edit the registry. Finally I came upon this page
    http://personal-computer-tutor.com/NNTWord.htm
    where the author Linda gave the path to the Word startup folder
    where I found some templates whose filenames were preceded by
    tildes (corrupt?). I deleted those and other junk and I temporarily
    deleted the normal.dot template at Linda's suggestion. Since then,
    the run-time errors have no longer occurred and the other problems
    have not recurred. I THINK I'm back on track! I'm thrilled because
    my boss encouraged me to uninstall and re-install Office and
    migrate to different HAT, a time-consuming process I'd rather avoid
    at least until the current release is completed. Thank you so much
    for your help!!

  • Bex : Run-time Error '13' - Type Mismatch

    Dear,
    I have a trouble with BEX. With some user, they can not start BEX.
    When They start BEX, they have the Run-Time Error '13'  type mismatch.
    With a administrator account, we have not problem.
    When I go in the debug, it stop on "addIn.RunAutoMacros (xlAutoOpen)"
    Could you help me ?
    Thank you,
    Philippe Dupriez

    Phillipe, did you solve this issue. I have a similar issue
    AddIn.RunAutoMacros(xlAutoOpen).
    I appreciate your reply.
    Thanks,
    Parvathi.

  • Run Time Error '13' Type Mismatch in SAP BEx

    Hello, SAP World!
    If i try to see "Query Properties" in Excel 2007 in BEx Analyzer, getting the error:
    Run-time error '13'
    Type Mismatch.
    Plz, Help!
    For Excel 2003 this error is not occured.
    GUI 6.40
    File Ver. 6405.5.27.3058
    Patch Level: 27
    SAP BW 3500.4.020

    are you using BW 3.5 or 7.0 (BI nw2004as) ?
    have you installed both BW add-on (3.5 and 7.0) ?

  • SBO Run-time error '13' Type mismatch

    Hello,
    I'm currently using SBO 2005 SP1 (PL11)
    After installing SBO DTW (2005A PL11 as well), i'm facing this issue : Run-time Error '13' Type mismatch
    I've been trying to modify my regional settings as per the previous discussions but this didn't work (first of all, i'm located in France, and try to apply the french regional settings).
    I've uninstalled and reinstalled DTW and my DI API but unfortunately, this didn't"t work either.
    Any other advise on this problem ?
    Thanks,
    Stephane

    Stephane,
    Here are some links to SAP Notes on the SAP PartnerEdge Portal that may help.  Please read the note carefully as the first note has your remove the Windows User Profile.
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=0000873864
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=0000884234
    If these do not help I recommend that you log a message with SAP Technical Support as the forum you have posted your question in is for questions related to the SAP Business One SDK and your question is application related to the DTW.
    HTH,
    Eddy

  • How to build the "Path Prefix" HTTP Adapter at run time

    Hi All,
    I have a scenario wherein I have to call the HTTP Url of a thiird party system from R/3 via PI.
    The third party url looks liike this:
    http://gis/ias/cgi-bin/siscgi.exe?request=batch&command=<requests><request><name>sis_neighbouring_knos_for_sambandh_service</name><buffer>20</buffer><same_premise_kno>123</same_premise_kno><l
    eft_kno>331</left_kno><gis_id>4019589</gis_id><priority>same_premise_kno,left_kno,right_kno,gis_id</priority></request></requests>&user_name=sambandh.sias&pa
    ssword=sambandhsias
    I have successfully created a HTTP Recevier comm channel and provided the following in the "Path Prefix"
    /ias/cgi-bin/siscgi.exe?request=batch&command=<requests><request><name>sis_neighbouring_knos_for_sambandh_service</name><buffer>20</buffer><same_premise_kno>123</same_premise_kno><l
    eft_kno>331</left_kno><gis_id>4019589</gis_id><priority>same_premise_kno,left_kno,right_kno,gis_id</priority></request></requests>&user_name=sambandh.sias&pa
    ssword=sambandhsias
    But If I need to pass the values inside the xml tags specified above e.g. "name" at run time, How do I do that?
    I have explored the "Apply URL Parameters" option in the HTTP Comm channel but it has fixed names for the HTTP URL parameter.
    Please let me know how is this possible hopefully without a UDF
    thanks,
    Piyush

    Hi Piyush,
    Have you checked the option of ASMA of the adapter?
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm
    Also see Note 1101338 - Dynamic configuration of HTTP adapter
    Regards
    Suraj

  • Error in generating Run time version of the KB Object of a VC Product

    Hi All
    There is a VC Product which needs to be transported to the CRM server via Middleware.
    Hence I need to create a Knowledge Base (KB Object) and generate a Run-Time version of the same.
    I am getting an error while generating the Run Time version. The description of the error is as follows:
    Object characteristic COSTING_LOT_SIZE is supported in IPC scnearios 3,5
    and
    Object characteristic PRICE_LIST is not supported in IPC scnearios.
    The exceptions raised are STPO-MENGE (Component Quantity) and SDCOM-VKOND (Variant Condition)
    Please provide your inputs and suggestions in this regard.
    P.S: Once I generate the run time version successfully, the CRM Middleware Consultant needs to download the VC Product to CRM.
    Thanks in Advance
    Regards
    Chaitanya

    Hi Mike,
    It likely is the viewer causing the problem. 2008 now has cascading parameters and the activex viewer does not support them.
    All I can suggest is you try CR XI R2 which you can upgrade for free, you have to contact CIC to get a keycode to deploy your app, and test again.
    R2 is out of support now so no fixes available...
    http://downloads.businessobjects.com/akdlm/crystalreports/crxir2_sp4_full_bld_0-20008684.exe
    http://downloads.businessobjects.com/akdlm/crystalreports/CRYSTALREPORTS06_0-20008684.EXE
    Thanks
    Don

  • Passing the queue name to the sender JMS adapter at run time..

    Hello Experts,
    I have a scenario where PI is to pick data from MQ queues. The message type coming from queues is same and the procession needs to be done with PI is also the same.That's the reason why we want to have only one interface processing the data for all the queues.
    My question here is that is there any way where I do not put the queue name in the sender adapter at design time and based on the data availability in the queue let the sender adapter know the queue name to be processed at run time.
    Any suggestions will be greatly appreciated.
    - Rajan

    > My question here is that is there any way where I do not put the queue name in the sender adapter at design time and based on the data availability in the queue let the sender adapter know the queue name to be processed at run time.
    Unfortunately for JMS Sender CC it is not possible, but other way around is possible. I.e. you can dynamically choose the receving queue names by using ASMA "JMSReplyTo" in JMS Sender CC.
    Regards,
    Sarvesh

  • Connectivity from ejb to Resource Adapter at run time

              I am facing a problem regarding the look-up of the Resource Adapter from the Ejb.
              To explain :
              1.I have The <resource-ref> tag in ejb-jar.xml set at follows :
              <resource-ref>
              <description>The Resource Adapter</description>
              <res-ref-name>eis/RitResourceAdapter</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
              and the <resource-description> tag in weblogic-ejb-jar.xml as follows:
              <resource-description>
              <res-ref-name>eis/RitResourceAdapter</res-ref-name>
              <jndi-name>eis/RitResourceAdapterConnectorJNDINAME</jndi-name>
              </resource-description>
              2.Even though I have mentioned the res-ref-type as javax.sql.Datasource , in my
              code I have done :
              rcf = (RitConnectionFactory) c.lookup ("java:comp/env/eis/RitResourceAdpapter");
              Where rcf is the my Resource Adapter specific Connection Factory (one which
              I have prepared and not
              the javax.resource.cci.ConnectionFactory). So this means the connection
              object which I get is casted to
              get my own application specific connection object.
              3.When I run my servlet (which looks up the Ejb and which in turn looks-up the
              Resource Adapter) it works fine to the point that it looks-up the bean successfully
              but fails when it tries to do so for Resource Adapter. The Server exception is
              as follows :
                        javax.ejb.EJBException
                        - with nested exception:
              [javax.naming.NameNotFoundException: Unable to resolve comp/env/eis/RitResourceAdpapter/
              Resolved: 'comp/env/eis' Unresolved:'RitResourceAdpapter' ; remaining name '']
              It will be great to hear about any solution from you people.
              For your information :
              I am using Weblogic 6.1, both the ejb jar and the RitResourceAdapter.rar has been
              deployed and the relevant portion of the weblogic-ra. xml is :
              <connection-factory-name>LogicalNameOfRitResourceAdapter</connection-factory-name>
              <jndi-name>eis/RitResourceAdapterConnectorJNDINAME</jndi-name>
              Regards,
              Ritwik
              

    > My question here is that is there any way where I do not put the queue name in the sender adapter at design time and based on the data availability in the queue let the sender adapter know the queue name to be processed at run time.
    Unfortunately for JMS Sender CC it is not possible, but other way around is possible. I.e. you can dynamically choose the receving queue names by using ASMA "JMSReplyTo" in JMS Sender CC.
    Regards,
    Sarvesh

  • No 'order by' selection for cluster tables generates run-time

    Hi together,
    Basically I want to use a "select...order by" statement with table mhnd.
    Since mhnd is a cluster table you can not use "...order by".
    So, I use a select ... into table. I then sort this table and finally read it (index = 1)
    Unfortunatly this approach generates huge run-time.
    What can be done to minimize run-time?
    Thanks for any help

    Hi Gerd,
    Which cluster table you are using and what`s data you wanted? Maybe there are some FM to extract data from it.
    regards,
    Archer

  • How to get report (SQL Query) generating Run Time

    There is a Standard report of Payroll which show employee transfer information on the bases of location, grade job or organization, now to get actual query which is generated by run time in report builder including whether single column parameter or lexical parameter " because currently the query in not complicate but the parameter and lexical parameter is much more due to this not quite easy to under stand just copy past it into toad or pl/sql developer,
    Kindly share your experience to get such kind of query in you working time.
    thanks

    Here i try to explain contain of query.
    Parameter
    P_DEPTNO = 10
    P_WHERE_CLAUSE := ' AND EMPNO IS NOT NULL AND SALARY > 100'
    SELECT * FROM EMP
    WHERE DEPTNO = P_DEPTNO
    &P_WHERE_CLAUSE
    REPROT WILL GENERATE QUERY AT RUN TIME IS LIKE THAT
    SELECT * FROM EMP
    WHERE DEPTNO = 10
    AND EMPNO IS NOT NULL AND SALARY > 100
    Now i want to get this query out(Run time) by doing any oracle database feature or sth similar.
    thanks

  • Fatal Run-Time - Unknown Fault - on any CVI program close

    I have been trying to track down a few what seem like phantom Fatal Run Time Errors on my program closes.
    I am running LabWindows/CVI 2010 Full 10.0.1 (419)
    I originally posted here -> http://forums.ni.com/t5/LabWindows-CVI/EasyTab-ConvertFromCanvas-memory-leak/m-p/3084769#M69465
    As I thought this was related to tabs, where my resource tracker shows 'unclosed' resources.
    Now I am opening a different program and have found that even though I put my return 0; at the top of my main loop, I still get a fatal run time error.
    The error is exactly:
    FATAL RUN-TIMe ERROR
    Unknown source position, thread id 0x00001BB4 
    The program has caused a 'Unknown' fault at 0x748A4F11
    This occurs every time I run my program in the CVI IDE.
    There are no allocated resources in my resources window.
    Searching for either address in my map file brings no results.
    Thanks,
    Nick

    Hi ngay528,
    I have attached a link below to one of our discussion forums that walks through using the Resource Tracking feature of LabWindows/CVI. Again, sometimes this particular error is caused by leaving resources open at the end of an application, so this feature can help us identify those resources if that is the case. Please follow the steps listed in the solution of the thread (message number 4, marked in green). 
    FATAL RUN-TIME ERROR: Unknown source position, thread id 0x00000EB4: The program has caused a 'General Protection' fault at 0x00459B9D:
    http://forums.ni.com/t5/LabWindows-CVI/FATAL-RUN-TIME-ERROR-Unknown-source-position-thread-id/m-p/16...
    Thomas N.
    Applications Engineer
    National Instruments

Maybe you are looking for

  • Issue while accessing two web-dynpro application, ESS/MSS and Payroll

    Hi All, We are facing one Critical Server Issue in our systems. Following is the scenerio:- Our Portal system was having one Application known as German Payroll application. Before last two week one more application of ESS/MSS i.e. Time Management ha

  • Excise duty capturing for returned goods

    i have created the normal sales order,outbound delivery,billing,excise invoice. then i have created the return order with reference to the billing ,and then inbound delivery,PGR ,then credit memo.Now i have capture the excise duty what i have to do??

  • How to check error whilce creating a package

    Hi, I am getting an error while creating a package, individually query is running ok but in package it is showing an error. is there any way to check the error. I am using in TOAD Quest Scriptrunner

  • Raid shows up in /Volumes/ and can be shared, doesn't show in Finder

    The left side of this raid is fine, but the right side is doing something odd. This is running on a G4 Xserve with 10.4.11 Server, and has been running fine for a year or so. 1.33 Firmware hooked up with fibre channel directly to server. A few days a

  • JDeveloper & JDK 1.5 ?

    Hello, When oracle is supposed to release JDK 1.5 & J2EE 1.4 version supported JDeveloper, any idea?