Adding URL Patterns in Performance Tab throws Error

Hello,

When i try to add a URI pattern to the Performance Section of an API Proxy leaving the defaults , the UI gives me an error saying "Organization: Null does not exist".

Looking at the logs, i do see Edge UI sending organization details and the management server getting them, Any pointers ?

Our Apigee version is 4.17.01 and this is a private cloud deployment

edge-ui-log

[debug] application - [Proxy] POST http://**/organizations/**/environments/**/apipatterns
[debug] application - [Proxy] Request: http://**/v1/organizations/**/environments/**/apipatterns, Response : 404
[error] application - Error response from Gateway:
Action: POST
URL: http://**/v1/organizations/**/environments/**/apipatterns
Headers:
  User-Agent: [Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3)]
  Accept: [application/json, text/plain, */*]
  X-Apigee-Trace-Id: [c57d1ee1-e78b-4f52-90a8-47960c1a1a9c]
  X-Apigee-Current-User: [**]
  Content-Type: [application/json;charset=utf-8]
Response Status Code: 404
Response Body:
  {
    "code" : "organizations.OrganizationDoesNotExist",
    "message" : "Organization : null does not exist",
    "contexts" : [ ]
  }
Headers:
  X-Apigee.fault-code: [organizations.OrganizationDoesNotExist]
  Content-Type: [application/json]
  Date: [Thu, 08 Jun 2017 19:12:04 GMT]
  Content-Length: [127]


[error] p.c.s.n.PlayDefaultUpstreamHandler - Cannot invoke the action
utils.GatewayErrorResponseException: null
        at utils.WsHelper.logAndBuildExceptionForGatewayErrorResponse(WsHelper.java:113) ~[enterpriseui.enterpriseui-4.17.01.01-3557ca4-20170313-172057-sans-externalized.jar:na]
        at controllers.PublicApi$1.apply(PublicApi.java:117) ~[enterpriseui.enterpriseui-4.17.01.01-3557ca4-20170313-172057-sans-externalized.jar:na]
        at controllers.PublicApi$1.apply(PublicApi.java:110) ~[enterpriseui.enterpriseui-4.17.01.01-3557ca4-20170313-172057-sans-externalized.jar:na]
        at play.core.j.FPromiseHelper$$anonfun$map$1.apply(FPromiseHelper.scala:103) ~[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
        at scala.util.Success$$anonfun$map$1.apply(Try.scala:236) ~[org.scala-lang.scala-library-2.11.6.jar:na]
        at scala.util.Try$.apply(Try.scala:191) ~[org.scala-lang.scala-library-2.11.6.jar:na]
        at scala.util.Success.map(Try.scala:236) ~[org.scala-lang.scala-library-2.11.6.jar:na]
        at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235) ~[org.scala-lang.scala-library-2.11.6.jar:na]
        at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235) ~[org.scala-lang.scala-library-2.11.6.jar:na]
        at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32) ~[org.scala-lang.scala-library-2.11.6.jar:na]
utils.GatewayErrorResponseException
        at utils.WsHelper.logAndBuildExceptionForGatewayErrorResponse(WsHelper.java:113)
        at controllers.PublicApi$1.apply(PublicApi.java:117)
        at controllers.PublicApi$1.apply(PublicApi.java:110)
        at play.core.j.FPromiseHelper$$anonfun$map$1.apply(FPromiseHelper.scala:103)
        at scala.util.Success$$anonfun$map$1.apply(Try.scala:236)
        at scala.util.Try$.apply(Try.scala:191)
        at scala.util.Success.map(Try.scala:236)
        at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235)
        at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235)
        at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)
        at play.core.j.HttpExecutionContext$$anon$2.run(HttpExecutionContext.scala:40)
        at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:40)
        at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397)
        at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
        at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
        at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
        at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

management-server-log

WARNING: No operation matching request path "/v1/organizations/**/environments/**/apipatterns" is found on subresource, Relative Path: /organizations/**/environments/**/apipatterns, HTTP Method: GET, ContentType: application/octet-stream, Accept: */*,. Please enable FINE/TRACE log level for more details.
Jun 08, 2017 3:15:37 PM org.apache.cxf.jaxrs.utils.JAXRSUtils findTargetMethod 
WARNING: No operation matching request path "/v1/organizations/**/environments/**/apipatterns" is found on subresource, Relative Path: /organizations/**/environments/**/apipatterns, HTTP Method: GET, ContentType: application/octet-stream, Accept: */*,. Please enable FINE/TRACE log level for more details.
Solved Solved
1 6 415
1 ACCEPTED SOLUTION

Not applicable

@rmishra check this page https://community.apigee.com/articles/23936/alternative-to-business-transactions-api.html

What you are trying to do is not supported and the above link as a workaround.

You can still see that page in private cloud but completely disabled in cloud.

View solution in original post

6 REPLIES 6

Not applicable

@rmishra check this page https://community.apigee.com/articles/23936/alternative-to-business-transactions-api.html

What you are trying to do is not supported and the above link as a workaround.

You can still see that page in private cloud but completely disabled in cloud.

Not applicable

Maruti, the question is for Private cloud where the feature is supported.

I have asked for Oscar to look at this

@padmanabhans Its enabled for Private Clouf but not for cloud?

This page http://docs.apigee.com/analytics-services/content/business-transaction-dashboard says the below but it doesn't say cloud or private cloud.

This dashboard relies on functionality (Proxy Performance paths) that is not currently available. To create a report that provides the same type of information, see the following Apigee Community article: https://community.apigee.com/articles/23936/alternative-to-business-transactions-api.html. 

Should we update it to say it works for Private cloud and fix the bug (Its not working in my aio too)?`

but I think @rmishra can still follow the workaround to get it working for now right?

Thank you.

Not applicable

Yes, the workaround can be used as a custom report.