{"action":"created","issue":{"url":"https://api.github.com/repos/IBMStreams/streamsx.inet/issues/106","labels_url":"https://api.github.com/repos/IBMStreams/streamsx.inet/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/IBMStreams/streamsx.inet/issues/106/comments","events_url":"https://api.github.com/repos/IBMStreams/streamsx.inet/issues/106/events","html_url":"https://github.com/IBMStreams/streamsx.inet/issues/106","id":59161267,"number":106,"title":"TupleViewer does not seem to work if operator is in a composite","user":{"login":"chanskw","id":5995019,"avatar_url":"https://avatars.githubusercontent.com/u/5995019?v=3","gravatar_id":"","url":"https://api.github.com/users/chanskw","html_url":"https://github.com/chanskw","followers_url":"https://api.github.com/users/chanskw/followers","following_url":"https://api.github.com/users/chanskw/following{/other_user}","gists_url":"https://api.github.com/users/chanskw/gists{/gist_id}","starred_url":"https://api.github.com/users/chanskw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chanskw/subscriptions","organizations_url":"https://api.github.com/users/chanskw/orgs","repos_url":"https://api.github.com/users/chanskw/repos","events_url":"https://api.github.com/users/chanskw/events{/privacy}","received_events_url":"https://api.github.com/users/chanskw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-26T23:15:53Z","updated_at":"2015-02-27T02:31:08Z","closed_at":null,"body":"I have this testcase.\r\n\r\nI tried the following URLs to try to see the tuples being generated...\r\n\r\nhttp://127.0.0.1:8080/MapData2/ports/input/0/info - This URL will always get back some data\r\nhttp://127.0.0.1:8080/MapData/ports/input/0/info - This will also result in a not found error.\r\n\r\nThe only difference is that the second URL is related to the TupleViewer operator that is placed inside a composite.  If I move the operator to my main composite, then the second URL will work.\r\n\r\n\r\ncomposite Main\r\n{\r\n\tgraph\r\n\t\t(stream<float64 latitude, float64 longitude> Custom_1_out0) as Custom_1 =\r\n\t\t\tCustom()\r\n\t\t{\r\n\t\t\tlogic\r\n\t\t\t\tonProcess :\r\n\t\t\t\t{\r\n\t\t\t\t\twhile(! isShutdown())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfloat64 latitude = randomLatitude() ;\r\n\t\t\t\t\t\tfloat64 longitude = randomLongitude() ;\r\n\t\t\t\t\t\tsubmit({ latitude = latitude, longitude = longitude }, Custom_1_out0) ;\r\n\t\t\t\t\t\tblock(0.5) ;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t() as MapViewer_2 = MapViewer(Custom_1_out0)\r\n\t\t{\r\n\t\t}\r\n\r\n\t\t() as MapData2 = HTTPTupleView(Custom_1_out0 as inPort0Alias)\r\n\t\t{\r\n\t\t\twindow\r\n\t\t\t\tinPort0Alias : tumbling, count(1) ;\r\n\t\t\tconfig\r\n\t\t\t\tplacement : partitionColocation(\"jetty\") ;\r\n\t\t}\r\n\r\n}\r\n\r\npublic composite MapViewer(input stream<float64 latitude, float64 longitude> In0 )\r\n{\r\n\tgraph\r\n\t\t() as MapData = HTTPTupleView(In0 as inPort0Alias)\r\n\t\t{\r\n\t\t\twindow\r\n\t\t\t\tinPort0Alias : tumbling, count(1) ;\r\n\t\t\tconfig\r\n\t\t\t\tplacement : partitionColocation(\"jetty\") ;\r\n\t\t}\r\n\r\n\t\t() as Map = HTTPTupleView(In0 as inPort0Alias)\r\n\t\t{\r\n\t\t\twindow\r\n\t\t\t\tinPort0Alias : tumbling, count(1) ;\r\n\t\t\tparam\r\n\t\t\t\tcontextResourceBase : getThisToolkitDir() + \"/etc\" ;\r\n\t\t\t\tcontext : \"map\" ;\r\n\t\t\tconfig\r\n\t\t\t\tplacement : partitionColocation(\"jetty\") ;\r\n\t\t}\r\n\r\n}"},"comment":{"url":"https://api.github.com/repos/IBMStreams/streamsx.inet/issues/comments/76320154","html_url":"https://github.com/IBMStreams/streamsx.inet/issues/106#issuecomment-76320154","issue_url":"https://api.github.com/repos/IBMStreams/streamsx.inet/issues/106","id":76320154,"user":{"login":"hildrum","id":5419652,"avatar_url":"https://avatars.githubusercontent.com/u/5419652?v=3","gravatar_id":"","url":"https://api.github.com/users/hildrum","html_url":"https://github.com/hildrum","followers_url":"https://api.github.com/users/hildrum/followers","following_url":"https://api.github.com/users/hildrum/following{/other_user}","gists_url":"https://api.github.com/users/hildrum/gists{/gist_id}","starred_url":"https://api.github.com/users/hildrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hildrum/subscriptions","organizations_url":"https://api.github.com/users/hildrum/orgs","repos_url":"https://api.github.com/users/hildrum/repos","events_url":"https://api.github.com/users/hildrum/events{/privacy}","received_events_url":"https://api.github.com/users/hildrum/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T02:31:08Z","updated_at":"2015-02-27T02:31:08Z","body":"I'm a little confused by the formatting, but the MapData URL you gave above shouldn't work as I read the documentation.  For the first HTTPTupleView (without the context), the URL should be `http://127.0.0.1:8080/MapViewer_2.MapData/ports/input/0/info` (ie, you need the full operator name, since no context is specified) for the second HTTPTupleView, I'd think `http://127.0.0.1:8080/map/Map/ports/input/0/info` would be the URL (the URL contains `context/baseopname`)."}}