Hi Sinthuja,
I have checked the META_KS keyspace.
I see the event definitions there.
org_wso2_apimgt_statistics_request-1.0.0-f8a23a9c-bc45-4625-b594-882104e3f51b
{"streamId":"org_wso2_apimgt_statistics_request-1.0.0-f8a23a9c-bc45-4625-b594-882104e3f51b","name":"org_wso2_apimgt_statistics_request","version":"1.0.0","nickName":"API
Manager Request Data","description":"Request
Data","metaData":[{"name":"clientType","type":"STRING"}],"payloadData":[{"name":"consumerKey","type":"STRING"},{"name":"context","type":"STRING"},{"name":"api_version","type":"STRING"},{"name":"api","type":"STRING"},{"name":"resource","type":"STRING"},{"name":"method","type":"STRING"},{"name":"version","type":"STRING"},{"name":"request","type":"INT"},{"name":"requestTime","type":"LONG"},{"name":"userId","type":"STRING"},{"name":"hostName","type":"STRING"}]}
And there are definitions for org_wso2_apimgt_statistics_response and
org_wso2_apimgt_statistics_fault as well.
Why bam cannot find them?
I removed the stream definitions responsible and restarted BAM server. Then
restarted API manager as well.
But still problem exists.
I think Stream definitions were recreated.
Thanks.
On Thu, Jul 18, 2013 at 12:15 PM, Sinthuja Ragendran <[email protected]>wrote:
>
>
>
> On Thu, Jul 18, 2013 at 4:54 AM, Lalaji Sureshika <[email protected]> wrote:
>
>> Hi Hasitha,
>>
>> This error could occur if the event data sent by WSO2 APIManager doesn't
>> match with the related payload defined in thestream definition of the hive
>> script deployedwith BAM toolbox.
>> Since you have mentioned this is a RC pack.did the BAM integration works
>> successfully for this pack earlier..?Then this could be due to a
>> customization done to hive script or to publisher code.
>>
>
> And also, if the agent sends the events for the stream definition which is
> not defined, then also you may be getting this exception. First the stream
> should be defined, this can be confirmed by connecting the Cassandra
> META_KS keyspace, and check the available stream definitions. Are you using
> one BAM receiver here? or many receivers? Did you try check restart the BAM
> server?
>
> Thanks,
> Sinthuja.
>
>>
>> Thanks;
>>
>>
>> On Wed, Jul 17, 2013 at 2:50 PM, Hasitha Hiranya <[email protected]>wrote:
>>
>>>
>>> Hi all,
>>>
>>> I am trying to integrate WSO2 BAM 2.1.0 with WSO2 API Manager 1.4.0 RC .
>>> When trying to invoke an API it publishes data to BAM without issues.
>>>
>>> But when event is received by BAM it complains that it is wrongly
>>> formatted.
>>> Following are the logs.
>>>
>>> TID: [0] [BAM] [2013-07-17 19:28:17,208] ERROR
>>> {org.wso2.carbon.databridge.core.internal.queue.QueueWorker} - Wrongly
>>> formatted event sent for carbon.super
>>> {org.wso2.carbon.databridge.core.internal.queue.QueueWorker}
>>> org.wso2.carbon.databridge.core.exception.EventConversionException:
>>> Error when converting
>>> org.wso2.apimgt.statistics.response-1.0.0-d89b9192-23f7-456e-861f-f7a638880632
>>> of event bundle with events 1
>>> at
>>> org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:117)
>>> at
>>> org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.toEventList(ThriftEventConverter.java:87)
>>> at
>>> org.wso2.carbon.databridge.core.internal.queue.QueueWorker.run(QueueWorker.java:72)
>>> at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>> at java.lang.Thread.run(Thread.java:722)
>>> Caused by: java.lang.NullPointerException
>>> at
>>> org.wso2.carbon.databridge.core.StreamTypeHolder.getDataType(StreamTypeHolder.java:55)
>>> at
>>> org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:109)
>>> ... 8 more
>>>
>>>
>>> I believe API manager data publishing cannot be customized by
>>> configurations without code changes. So how does it become wrongly
>>> formatted suddenly? Can it be wrongly formatted according to what stats
>>> collected?
>>>
>>> Thanks.
>>> --
>>> *Hasitha Abeykoon*
>>> Software Engineer; WSO2, Inc.; http://wso2.com
>>> *cell:* *+94 719363063*
>>> *blog: **abeykoon.blogspot.com* <http://abeykoon.blogspot.com>* *
>>> *
>>> *
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lalaji Sureshika
>> WSO2, Inc.; http://wso2.com/
>> email: [email protected]; cell: +94 71 608 6811
>> blog: http://lalajisureshika.blogspot.com
>>
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Sinthuja Rajendran*
>
> Software Engineer <http://wso2.com/>
> WSO2, Inc.:http://wso2.com
>
> Blog: http://sinthu-rajan.blogspot.com/
> Mobile: +94774273955
>
>
>
--
*Hasitha Abeykoon*
Software Engineer; WSO2, Inc.; http://wso2.com
*cell:* *+94 719363063*
*blog: **abeykoon.blogspot.com* <http://abeykoon.blogspot.com>* *
*
*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev