Hi,

I worked with DAS 3.0.0 and the WSDL used for that (to generate stub via
Eclipse with Axis2) is the one hosted runtime after starting DAS Server via
?wsdl in the browser. So the error should not be due to any version
incompatibilities as I guess.

But to generate the stub via adding pom dependancy, what I used was
https://github.com/wso2/carbon-analytics-common/blob/v5.0.8/service-stubs/org.wso2.carbon.event.receiver.stub/pom.xml
, which is bit older than what you have mentioned. (anyway this worked
successfully so this difference might not count here for the error)

So the difference between the 2 stubs might have caused by that version
difference too. (if that is not because of using Eclipse Axis2 to generate
stub ) Anyway what I'm confused is my current solution which used that pom
generated stub, successfully run with DAS 3.0.0 and also DAS 3.0.1.

And the other fact is that even the .wsdl hosted by running  latest DAS,
generated a different (relative to my pom dependancy imported one) stub
class, by generating stub via Eclipse. The important difference is that
"deployWso2EventReceiverConfiguration" method had different parameters.

I feel this information is not enough to dig the issue exactly, but thanks
for the response.

On Sat, Feb 20, 2016 at 7:20 PM, Sriskandarajah Suhothayan <s...@wso2.com>
wrote:

> Not sure that the issue is.
>
> We work with the WSDL provided in [1] and the sub creation is at [2]. Are
> you sure you used the proper versions when generating them?
>
> [1]
> https://github.com/wso2/carbon-analytics-common/blob/master/service-stubs/org.wso2.carbon.event.receiver.stub/src/main/resources/EventReceiverAdminService.wsdl
>
> [2]
> https://github.com/wso2/carbon-analytics-common/blob/master/service-stubs/org.wso2.carbon.event.receiver.stub/pom.xml
>
> On Sat, Feb 20, 2016 at 7:03 PM, Samitha Chathuranga <sami...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I was able to resolve this issue via a workaround, but cannot clarify the
>> related issue with this. What I did as the workaround was, adding the 
>> "org.wso2.carbon.event.receiver.stub"
>> as a maven dependency in my project and using that stub class (
>> EventReceiverAdminServiceStub.java) to call the required Admin Service.
>> But previously what I did was generating the web service client stub by
>> using Axis2 in Eclipse by giving the giving the url of .wsdl file, after
>> starting WSO2 DAS.
>>
>> Here I found that the stub classes consumed at two occasions (Axis2
>> generated one and maven imported one) are not similar. Specially and
>> necessarily the "deployWso2EventReceiverConfiguration" method which was
>> called to deploy the Event Receiver had different signatures (parameters
>> are different) and that might be the reason for the previous exception "
>> IllegalArgumentException".
>>
>> I even compared the related .wsdl file in the carbon-analytics-commons
>> repository and the.wsdl file which was used to generate the stub with Axis2
>> with eclipse, but found no significant difference.
>>
>> So, what causes this difference in the 2 stub classes or isn't this
>> difference the issue here? Am I missing something here or is there any
>> issue related in generating client stubs via Axis2?
>>
>> Thanks and Regards.
>>
>>
>>
>> On Tue, Feb 16, 2016 at 12:15 PM, Samitha Chathuranga <sami...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I am trying to deploy an event receiver in DAS, via calling Admin
>>> Services, but getting an *IllegalArgumentException*. By the way I
>>> succeeded in creating an Event Stream in DAS by "EventStreamAdminService"
>>> Admin Service, and I followed the same basic procedure to call DAS's
>>> "EventReceiverAdminService", in order to deploy an Event Receiver.
>>>
>>> I set EventReceiverName, StreamNameWithVersion, EventAdapterType (to
>>> "wso2event") and a BasicInputAdapterPropertyDto property
>>> "events.duplicated.in.cluster" as key and "false" as its value for the
>>> DeployTextEventReceiverConfiguration. Does anybody has an idea on the issue?
>>> Am I missing something here?
>>>
>>> Stack trace is mentioned below.
>>>
>>> Thanks & Regards,
>>> Samitha
>>>
>>> TID: [-1234] [] [2016-02-16 11:43:11,125]  INFO
>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>> 'admin@carbon.super [-1234]' logged in at [2016-02-16
>>> 11:43:11,124+0530]
>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
>>> TID: [-1234] [] [2016-02-16 11:43:11,215] ERROR
>>> {org.apache.axis2.rpc.receivers.RPCMessageReceiver} -
>>> {org.apache.axis2.rpc.receivers.RPCMessageReceiver}
>>> java.lang.IllegalArgumentException
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>     at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>     at java.lang.reflect.Method.invoke(Method.java:606)
>>>     at
>>> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
>>>     at
>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
>>>     at
>>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>>>     at
>>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>>>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>>>     at
>>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:173)
>>>     at
>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
>>>     at
>>> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>>     at
>>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>>>     at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>>>     at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>>     at
>>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>     at
>>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>     at
>>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>     at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>>>     at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>>>     at
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
>>>     at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
>>>     at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
>>>     at
>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
>>>     at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>>>     at
>>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
>>>     at
>>> org.wso2.carbon.event.receiver.core.internal.tenantmgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:48)
>>>     at
>>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>>>     at
>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
>>>     at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
>>>     at
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
>>>     at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
>>>     at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
>>>     at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
>>>     at
>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
>>>     at
>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
>>>     at
>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
>>>     at
>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
>>>     at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>     at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>     at
>>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>>     at java.lang.Thread.run(Thread.java:745)
>>>
>>>
>>> --
>>> Samitha Chathuranga
>>> Software Engineer, WSO2 Inc.
>>> lean.enterprise.middleware
>>> Mobile: +94715123761
>>>
>>
>>
>>
>> --
>> Samitha Chathuranga
>> Software Engineer, WSO2 Inc.
>> lean.enterprise.middleware
>> Mobile: +94715123761
>>
>
>
>
> --
>
> *S. Suhothayan*
> Technical Lead & Team Lead of WSO2 Complex Event Processor
> *WSO2 Inc. *http://wso2.com
> * <http://wso2.com/>*
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
> http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>twitter:
> http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in:
> http://lk.linkedin.com/in/suhothayan <http://lk.linkedin.com/in/suhothayan>*
>



-- 
Samitha Chathuranga
Software Engineer, WSO2 Inc.
lean.enterprise.middleware
Mobile: +94715123761
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to