Thanks for the reply and I have tried suggested method and yet nothing
works for me. Another approach  we could take client-trustStore key path
from log4j.property file and then setup the system property inside the log
appender. Since we are in the development stage of this log appender, so
now we have decided to proceed with this approach.


Please let me know if you have any suggestions on above methods.

Thanks.

On Tue, Mar 8, 2016 at 10:36 AM, Omindu Rathnaweera <[email protected]> wrote:

> You can try pointing them to trust-stores in respective products.
> Generally it's located at <PRODUCT_HOME>/repository/resources/security/
> directory.
>
> Regards,
> Omindu.
>
> On Tue, Mar 8, 2016 at 10:09 AM, Sajith Perera <[email protected]> wrote:
>
>> Hi Omindu,
>>
>> Thanks for the suggestions.
>> I have checked the following configuration files [1],[2],
>>
>> [1] wso2cep-4.1.0/repository/conf/data-bridge/data-agent-config.xml
>> [2] wso2am-1.10.0/repository/conf/data-bridge/thrift-agent-config.xml
>>
>> And observed that by default they were commented as on product cep [3]
>> and product apim [4]:
>>
>> [3] <!--<TrustSore>src/test/resources/client-truststore.jks</TrustSore>-->
>>         <!--<TrustSorePassword>wso2carbon</TrustSorePassword>-->
>>
>> [4] <!--<trustStore>
>>
>> .../wso2cep-1.0.0/repository/resources/security/client-truststore.jks
>>     </trustStore>
>>     <trustStorePassword>wso2carbon</trustStorePassword>-->
>>
>> From looking at those commented paths, it seems they are pointing to
>> the different locations.
>> Do i need mannualy configuer on properties for the correct location ?
>>
>> Regards,
>> sajithD
>>
>> On Tue, Mar 8, 2016 at 2:10 AM, Omindu Rathnaweera <[email protected]>
>> wrote:
>>
>>> Hi Sajith,
>>>
>>> From looking at [1], it seems the AgentHolder first tries to load the
>>> truststore property from the data-agent-config.xml and then from
>>> the system property javax.net.ssl.trustStore if it's not there in the
>>> config file. The error seems to occur because the property is not set in
>>> either of these places. Better to check the data-agent-config file and
>>> see whether you have the property there (may be it's commented).
>>>
>>>
>>> [1] -
>>> https://github.com/wso2/carbon-analytics-common/blob/master/components/data-bridge/org.wso2.carbon.databridge.agent/src/main/java/org/wso2/carbon/databridge/agent/AgentHolder.java#L93
>>>
>>> Regards,
>>> Omindu.
>>>
>>> On Mon, Mar 7, 2016 at 3:01 PM, Sajith Perera <[email protected]> wrote:
>>>
>>>> Hi all,
>>>> I'm currently working on log4j log appender for log analyzer works, In
>>>> there i used thrift publisher using
>>>> org.wso2.carbon.databridge.agent.DataPublisher.
>>>> But getting below error while initiating the data publisher instance.
>>>>
>>>> [2016-03-07 14:13:51,516] ERROR
>>>> {org.wso2.carbon.databridge.agent.AgentHolder} -  Unable to complete
>>>> initialization of agents.No trustStore found
>>>> org.wso2.carbon.databridge.agent.exception.DataEndpointAgentConfigurationException:
>>>> No trustStore found
>>>>     at
>>>> org.wso2.carbon.databridge.agent.AgentHolder.loadConfiguration(AgentHolder.java:110)
>>>>     at
>>>> org.wso2.carbon.databridge.agent.AgentHolder.<init>(AgentHolder.java:59)
>>>>     at
>>>> org.wso2.carbon.databridge.agent.AgentHolder.getInstance(AgentHolder.java:73)
>>>>     at
>>>> org.wso2.carbon.databridge.agent.DataPublisher.<init>(DataPublisher.java:108)
>>>>     at
>>>> org.wso2.analytics.data.agent.logging.service.appender.LogEventAppender$LogPublisherTask.publishLogEvent(LogEventAppender.java:310)
>>>>     at
>>>> org.wso2.analytics.data.agent.logging.service.appender.LogEventAppender$LogPublisherTask.run(LogEventAppender.java:254)
>>>>     at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>>>>     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
>>>>     at
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>>>>     at
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>>>>     at
>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>>>     at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>>>     at java.lang.Thread.run(Thread.java:745)
>>>>
>>>> Any suggestion on this is greatly appreciated.
>>>>
>>>> Best Regards,
>>>>
>>>> --
>>>> Sajith Dimal
>>>> Software Engineer
>>>> Mobile : +94783101496
>>>> WSO2 Inc. | http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> [email protected]
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Omindu Rathnaweera
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94 771 197 211
>>>
>>
>>
>>
>> --
>> Sajith Dimal
>> Software Engineer
>> Mobile : +94783101496
>> WSO2 Inc. | http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> Omindu Rathnaweera
> Software Engineer, WSO2 Inc.
> Mobile: +94 771 197 211
>



-- 
Sajith Dimal
Software Engineer
Mobile : +94783101496
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to