Question

When I am trying to upload the registry extension file (RXT) as Add resource - Create text content, I am getting the following error

Failed to add resource with text based content to path /_system/governance/repository/components/org.w so2.carbon.governance/types/myuri.rxt. An exception occurred while executing han dler chain. java.lang.String cannot be cast to [B

I even tried to copy the same contents from an exisitng RXT for API or URI and tried to upload it and got the same error

I also referred to the Issue Tracker sample around creating extensions, still got the same error
Was it helpful?

Solution

Do you get this error when trying to upload the RXT file via the management console? If so, please try adding the RXT file to the following location: G-Reg_home/repository/resources/rxts

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top