Forum Stats

  • 3,814,232 Users
  • 2,258,846 Discussions
  • 7,892,630 Comments

Discussions

Jdeveloper JSON Interchange format not working

User_7XZN7
User_7XZN7 Member Posts: 2 Employee
edited Jun 20, 2020 5:17AM in SOA Suite Discusssions

I am using Jdeveloper version 12.2.1.4.0.

I have a requirement of converting XML to JSON inside SOA BPEL. I am using Translate activity for this. When i try to use Native Format Builder with type "JSON Interchange Format" to create an XSD for native format, i am getting following error:-

Error creating stream factory

java.lang.noClassDefFoundError:com/fasterXML/jackson/core/jsonFactory

Can someone help me on how to get rid of this error?

«1

Answers

  • Prasanna G
    Prasanna G Member Posts: 96 Blue Ribbon
    edited Mar 5, 2020 11:25PM

    Are you building the SOA BPEL using maven? If yes, please add the following in your project's POM under dependencies section.

    <span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);"><</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">dependency</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">></span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);"><br/>   </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);"><</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">groupId</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">></span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">com</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">fasterxml</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">jackson</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">core</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);"></</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">groupId</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">></span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);"><br/>   </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);"><</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">artifactId</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">></span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">jackson</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">-</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">core</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);"></</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">artifactId</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">></span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);"><br/>   </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);"><</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">version</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">></span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--red-800);">2.9</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">.</span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--red-800);">8</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);"></</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">version</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">></span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);"><br/></span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);"></</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">dependency</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: var(--black-750);">></span>

    Thanks,

    Prasanna

  • User_D92UQ
    User_D92UQ Member Posts: 1 Green Ribbon
    edited Jun 15, 2020 11:32AM

    Is this issue resolved?

    I have a same issue

  • Mr.Enzo
    Mr.Enzo Member Posts: 13
    edited Jun 20, 2020 5:17AM

    The error it's related to the unrecognized or don't found librarie for  'fasterXML/jackson/core/jsonFactory'  >> com.fasterxml.jackson.core lib, Basically this lib isn't found in your working  directory or you have a duplicated librerie that it makes hard for the tool you're using to detect wich to use, please check and download the proper librarie and add it the the class path or as  Prasana G suggest use maven to automatically get the dependency required i f you have maven setted.

    Regards

  • user12068671
    user12068671 Member Posts: 37 Bronze Badge

    Please apply the patch 30482761 described in the note: "Rest Adapter Jdeveloper java.lanf.NoClasDefFoundError: com/fasterxml/jackson/core/JsonFactory (Doc ID 2628833.1)"

  • I am still facing the issues. I had updated POM & JDeveloper Manage Lib but didn't work. I am using the latest Studio Edition Version 12.2.1.4.0.

    Can you please help me where to put the jar lib, such that the error get resolve.



  • user12068671
    user12068671 Member Posts: 37 Bronze Badge

    Did you apply the patch 30482761 on your Jdev environment?

    To solve this issue you should:

    1. Download and review the readme and pre-requisites for Patch.30482761

    2. Ensure that you have taken a backup of your system before applying the recommended patch.

    3. Apply the patch in a test environment.

    4. Clear Jdeveloper cache by starting it with option -clean: jdeveloper\jdev\bin>jdev -clean

    5. Retest the issue.

    6. Migrate the solution as appropriate to other environments. 

  • User_PEOL2
    User_PEOL2 Member Posts: 1 Red Ribbon

    Even after applying the patch still facing same issue, is there any work through other than above solution

  • user8647694
    user8647694 Member Posts: 1 Green Ribbon

    Have applied the patch and am getting the same error. Found another article that say you also need to apply patch 32363659, but when I try to unzip the downloaded file for it I get an error and am unable to extract the files.

  • user12068671
    user12068671 Member Posts: 37 Bronze Badge

    Hi. There is a problem opening the patch 32363659 from oracle support. Please use the right click on the link and please use the "save link as" option of your browser. The size of the file p32363659_122140_Generic.zip is :391.179 bytes.

  • User_V8VSY
    User_V8VSY Member Posts: 2 Red Ribbon

    "save link as" option of your browser is not working. Oracle uses javascript to prevent that option