org.jaggeryjs.scriptengine.exceptions.ScriptException: org.mozilla.javascript.WrappedException: Wrapped org.wso2.carbon.registry.core.secure.AuthorizationFailedException: User wso2.anonymous.user is not authorized to read the resource /_system/governance/apimgt/applicationdata/provider/store//api-docs/swagger.json. (/store/site/blocks/api-doc/ajax/get.jag#90)

Stack Overflow | afgd | 2 months ago
  1. 0

    WSO2 API Manager 2.0 Swagger Console not working

    Stack Overflow | 2 months ago | afgd
    org.jaggeryjs.scriptengine.exceptions.ScriptException: org.mozilla.javascript.WrappedException: Wrapped org.wso2.carbon.registry.core.secure.AuthorizationFailedException: User wso2.anonymous.user is not authorized to read the resource /_system/governance/apimgt/applicationdata/provider/store//api-docs/swagger.json. (/store/site/blocks/api-doc/ajax/get.jag#90)
  2. 0

    API Manager Publisher Exception when publishing an API

    Stack Overflow | 3 years ago | grbonk
    org.wso2.carbon.governance.api.exception.GovernanceException: Error in updating the artifact, artifact id: 75bbe8ef-c0d4-426e-be9b-703468026d9e.Resource update failed. User publisher is not authorized to update the resource /_system/governance/apimgt/applicationdata/provider/creator/ItemService/3.0/api..

    Root Cause Analysis

    1. org.wso2.carbon.registry.core.secure.AuthorizationFailedException

      User wso2.anonymous.user is not authorized to read the resource /_system/governance/apimgt/applicationdata/provider/store//api-docs/swagger.json.

      at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.get()
    2. org.wso2.carbon
      UserRegistry$5.run
      1. org.wso2.carbon.registry.core.caching.CacheBackedRegistry.get(CacheBackedRegistry.java:195)
      2. org.wso2.carbon.registry.core.session.UserRegistry.getInternal(UserRegistry.java:617)
      3. org.wso2.carbon.registry.core.session.UserRegistry.access$400(UserRegistry.java:61)
      4. org.wso2.carbon.registry.core.session.UserRegistry$5.run(UserRegistry.java:597)
      5. org.wso2.carbon.registry.core.session.UserRegistry$5.run(UserRegistry.java:594)
      5 frames
    3. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    4. org.wso2.carbon
      UserRegistry.get
      1. org.wso2.carbon.registry.core.session.UserRegistry.get(UserRegistry.java:594)
      2. org.wso2.carbon.registry.core.session.UserRegistry.get(UserRegistry.java:61)
      2 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    6. Rhino
      OptRuntime.call1
      1. org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
      2. org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
      3. org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
      3 frames
    7. org.jaggeryjs.rhino
      c0.call
      1. org.jaggeryjs.rhino.store.site.blocks.api_doc.ajax.c0._c_anonymous_1(/store/site/blocks/api-doc/ajax/get.jag:90)
      2. org.jaggeryjs.rhino.store.site.blocks.api_doc.ajax.c0.call(/store/site/blocks/api-doc/ajax/get.jag)
      2 frames
    8. Rhino
      OptRuntime.call0
      1. org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
      1 frame
    9. org.jaggeryjs.rhino
      c0.call
      1. org.jaggeryjs.rhino.store.site.blocks.api_doc.ajax.c0._c_script_0(/store/site/blocks/api-doc/ajax/get.jag:11)
      2. org.jaggeryjs.rhino.store.site.blocks.api_doc.ajax.c0.call(/store/site/blocks/api-doc/ajax/get.jag)
      2 frames
    10. Rhino
      ScriptRuntime.doTopCall
      1. org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
      2. org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
      2 frames
    11. org.jaggeryjs.rhino
      c0.exec
      1. org.jaggeryjs.rhino.store.site.blocks.api_doc.ajax.c0.call(/store/site/blocks/api-doc/ajax/get.jag)
      2. org.jaggeryjs.rhino.store.site.blocks.api_doc.ajax.c0.exec(/store/site/blocks/api-doc/ajax/get.jag)
      2 frames
    12. org.jaggeryjs.scriptengine
      RhinoEngine.exec
      1. org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
      2. org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
      2 frames
    13. org.jaggeryjs.jaggery
      JaggeryServlet.doGet
      1. org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:588)
      2. org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:508)
      3. org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
      3 frames
    14. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      2 frames
    15. Glassfish Core
      ApplicationDispatcher.forward
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)
      4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
      5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:377)
      6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
      6 frames
    16. org.jaggeryjs.jaggery
      JaggeryFilter.doFilter
      1. org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
      1 frame
    17. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      2 frames
    18. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      1 frame
    19. Glassfish Core
      ErrorReportValve.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      3. org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:120)
      4. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      5. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      6. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      7. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      8. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
      9. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
      10. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      10 frames
    20. org.wso2.carbon
      CarbonStuckThreadDetectionValve.invoke
      1. org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
      2. org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
      3. org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
      4. org.wso2.carbon.event.receiver.core.internal.tenantmgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:48)
      5. org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
      6. org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
      7. org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
      7 frames
    21. Glassfish Core
      AccessLogValve.invoke
      1. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
      1 frame
    22. org.wso2.carbon
      CarbonContextCreatorValve.invoke
      1. org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
      1 frame
    23. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      2. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
      2 frames
    24. Grizzly HTTP
      NioEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
      3. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1749)
      4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1708)
      4 frames
    25. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2 frames
    26. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      1 frame
    27. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame