[ESBJAVA-4420] <publishEvent> Mediator not working inside sequences invoked by inbound endpoints Created: 16/Feb/16  Updated: 12/Jan/18  Resolved: 12/Jan/18

Status: Resolved
Project: WSO2 ESB
Component/s: Inbound Endpoints, Mediators
Affects Version/s: 4.9.0
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Malintha Amarasinghe Assignee: Heshitha Hettihewa
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

1. Build the custom in bound endpoint [1] and copy the jar into lib folder in ESB.
2. Create an event sink "wso2ep" that points to a CEP

Add the following configurations in to ESB source.

    <inboundEndpoint
        class="org.wso2.carbon.inbound.custom.poll.SamplePollingClient"
        name="class2" onError="fault" sequence="request" suspend="false">
        <parameters>
            <parameter name="coordination">true</parameter>
            <parameter name="interval">5000</parameter>
            <parameter name="sequential">true</parameter>
        </parameters>
    </inboundEndpoint>
<sequence name="request" onError="fault">
        <log level="custom">
            <property name="MESSAGE" value="Executing request sequence"/>
        </log>
        <!--log level="full"/-->
        <publishEvent>
            <eventSink>wso2ep</eventSink>
            <streamName>inStream</streamName>
            <streamVersion>1.0.0</streamVersion>
            <attributes>
                <meta/>
                <correlation/>
                <payload>
                    <attribute defaultValue=""
                        expression="$body/m0:getQuote/m0:request/m0:symbol"
                        name="symbol" type="STRING"
                        xmlns:m0="http://services.samples" xmlns:ns="http://org.apache.synapse/xsd"/>
                </payload>
                <arbitrary/>
            </attributes>
        </publishEvent>
    </sequence>

Now a task will start that executes per 5 seconds and it will execute "request" sequence. When it tries to publish event to CEP it will continuously fail with below error.

[2016-02-16 19:39:31,170] ERROR - PublishEventMediator Cannot mediate message. Not an Axis2 service
[2016-02-16 19:39:41,171]  INFO - SamplePollingClient Inside the execute method.
[2016-02-16 19:39:41,171]  INFO - LogMediator MESSAGE = Executing request sequence
[2016-02-16 19:39:41,171] ERROR - PublishEventMediator Cannot mediate message. Not an Axis2 service
[2016-02-16 19:39:51,169]  INFO - SamplePollingClient Inside the execute method.
[2016-02-16 19:39:51,170]  INFO - LogMediator MESSAGE = Executing request sequence
[2016-02-16 19:39:51,170] ERROR - PublishEventMediator Cannot mediate message. Not an Axis2 service
[2016-02-16 19:40:01,170]  INFO - SamplePollingClient Inside the execute method.
[2016-02-16 19:40:01,171]  INFO - LogMediator MESSAGE = Executing request sequence
[2016-02-16 19:40:01,171] ERROR - PublishEventMediator Cannot mediate message. Not an Axis2 service
...

Please note the same <publishEvent> mediator with configuration works in main sequence without any issue (invoked using GET http://localhost:8280).

[1] https://github.com/wso2-docs/ESB/tree/master/ESB-Artifacts/inbound/custom_inbound



 Comments   
Comment by Heshitha Hettihewa [ 12/Jan/18 ]

This is already fixed with https://github.com/wso2/carbon-mediation/pull/598/files and https://github.com/wso2/wso2-synapse/pull/552/files





[ESBJAVA-5228] ESB TCP transport does not support TLS Created: 19/Sep/17  Updated: 12/Jan/18  Resolved: 12/Jan/18

Status: Closed
Project: WSO2 ESB
Component/s: Transport
Affects Version/s: 5.0.0, EI-611
Fix Version/s: FUTURE

Type: Improvement Priority: Normal
Reporter: Supun Perera Assignee: Vijitha Ekanayake
Resolution: Duplicate Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ESB 5.0


Severity: Minor
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

Currently, ESB does not support TLS with TCP transport. Appreciate If you could check on the same and consider this feature as an improvement for future releases.



 Comments   
Comment by Vijitha Ekanayake [ 12/Jan/18 ]

This will be tracked with https://github.com/wso2/product-ei/issues/1720





[ESBJAVA-4765] OutOfMemory Error if SSL Port overloaded with connnections Created: 18/Jul/16  Updated: 12/Jan/18  Resolved: 12/Jan/18

Status: Closed
Project: WSO2 ESB
Component/s: Transport
Affects Version/s: 4.9.0
Fix Version/s: FUTURE

Type: Bug Priority: High
Reporter: isuru ranawaka Assignee: Vijitha Ekanayake
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

Create sockets with SSL port around (100000 sockets) and close as soon as accepted.



 Comments   
Comment by Vijitha Ekanayake [ 12/Jan/18 ]

Tried to reproduce the issue in several ways but it is not reproducible in latest implementation.





[ESBJAVA-5004] Validate Mediator: handle access source element exception as validation fail Created: 25/Jan/17  Updated: 12/Jan/18  Resolved: 12/Jan/18

Status: Resolved
Project: WSO2 ESB
Component/s: Mediators
Affects Version/s: 5.0.0
Fix Version/s: EI-620

Type: Improvement Priority: Normal
Reporter: Jochen Traunecker Assignee: Milan Perera
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

It would be helpful to optionally treat a "handle access source element exception" as validation fail and not as exception handled by fault-sequence.

In quite a lot use cases one has to check if a specific element is in a message and validate that element against some schema. Even the "non existence" of this element is considered in that case a validation failure and not an error.

Having this option available would reduce the overall complexity of sequences as the pre-check about the existence of an element before validate mediator could get avoided.



 Comments   
Comment by Milan Perera [ 12/Jan/18 ]

This is fixed in [1]. Previously, when the source element is given and if it is not accessible from the request body, logic was written to throw a synapse exception and handle it inside the validate mediator by forwarding to fault sequence of the validate mediator. Now this fix catches that synapse exception and invokes the on-fail sequence since it is a validation error.

[1] https://github.com/wso2/wso2-synapse/pull/1007





[ESBJAVA-5126] PATCH request not working in blocking mode. Created: 19/Jun/17  Updated: 12/Jan/18  Resolved: 12/Jan/18

Status: Resolved
Project: WSO2 ESB
Component/s: Transport
Affects Version/s: 5.0.0
Fix Version/s: EI-620

Type: Bug Priority: High
Reporter: Kanapriya Kuleswararajan Assignee: Vijitha Ekanayake
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Severity: Major
Estimated Complexity: Advanced
Test cases added: Yes

 Description   

1. PATCH request not working with blocking mode. If the request is PATCH , then it execute the sendViaPost [1] and it gives following error.

Non - blocking

[2017-06-14 14:58:36,476] DEBUG - wire HTTPS-Sender I/O dispatcher-3 << "PATCH /api/data/v8.2/accounts(91618256718-8a4e-e711-80f7-c4346bad279c)?$select=name,creditonhold,address1_latitude HTTP/1.1[\r][\n]"
[2017-06-14 14:58:36,476] DEBUG - wire HTTPS-Sender I/O dispatcher-3 << "Prefer: return=representation[\r][\n]"
[2017-06-14 14:58:36,476] DEBUG - wire HTTPS-Sender I/O dispatcher-3 << "Accept-Language: en-US,en;q=0.8[\r][\n]"
[2017-06-14 14:58:36,476] DEBUG - wire HTTPS-Sender I/O dispatcher-3 << "Authorization: Bearer SUzI1NiIsIng1dCI6IjlGWERwYmZNRlQyU3ZRdVhoODQ2WVR3RUlCdyIsImtpZCI6IjlGWERwYmZNRlQyU3ZRdVhoODQ2WVR3RUlCdyJ9.eyJhdWQiOiJodHRwczovL3dzbzIxMjM0LmNybTUuZHluYW1pY3MuY29tLyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzIxMzliNDZmLWE3ZjQtNGJiMS1iNDU4LWE0OWFmYWNjY2QwNS8iLCJpYXQiOjE0OTc0MzA0MzAsIm5iZiI6MTQ5NzQzMDQzMCwiZXhwIjoxNDk3NDM0MzMwLCJhY3IiOiIxIiwiYWlvIjoiQVNRQTIvOERBQUFBbWV5QitsbXdTUXJCM3luSTBsMVRtY250blNHOUJjQzh6MEZhOUVOYzUrMD0iLCJhbXIiOlsicHdkIl0sImFwcGlkIjoiYzEyZWM1YmUtODM1Ni00ZWRmLWI5YTQtY2Q1NjNlZDA5MTVhIiwiYXBwaWRhY3IiOiIxIiwiZmFtaWx5X25hbWUiOiJwcml5YSIsImdpdmVuX25hbWUiOiJrYW5hIiwiaXBhZGRyIjoiMjAzLjk0Ljk1LjQiLCJuYW1lIjoia2FuYSBwcml5YSIsIm9pZCI6ImZlNmY4ODVlLTk5ZWItNGJjMC1hMmRhLTZkYzU2ZmMxNDYxNiIsInBsYXRmIjoiMTQiLCJwdWlkIjoiMTAwMzAwMDBBMUJDRTk1RiIsInNjcCI6InVzZXJfaW1wZXJzb25hdGlvbiIsInN1YiI6IkJub3c0T2JEcEoyWElGSWJVR1hfZ2VlaWRDRWV5WC13NFQzYU1WNWRBZjAiLCJ0aWQiOiIyMTM5YjQ2Zi1hN2Y0LTRiYjEtYjQ1OC1hNDlhZmFjY2NkMDUiLCJ1bmlxdWVfbmFtZSI6ImthbmFAd3NvMjEyMzQub25taWNyb3NvZnQuY29tIiwidXBuIjoia2FuYUB3c28yMTIzNC5vbm1pY3Jvc29mdC5jb20iLCJ2ZXIiOiIxLjAiLCJ3aWRzIjpbIjYyZTkwMzk0LTY5ZjUtNDIzNy05MTkwLTAxMjE3NzE0NWUxMCJdfQ.bKyHO4wmp5JFBJb-0OI7OdeHguF37Zd3z2vgfgstn9iF7uP_PtuEO6Rxdtp07mVKZmNqP50GeZm62FZ74VgB8eDnxQP9mQXEe2rBU94oLVzc9r0bQ1YGqF88RQVcXoM-Q4U3J9rtyuZD1iEog1UsS43krG22YHQ5c-1234Cwbc1noz_bSpx798A1p5-KSD3mckVabkpxn__OU1lyygEfY6FiieuHQ0iT8nxmguGdH371XesxLzyJFOfZLDPHierLMUctQj7e2d_ClbA5nV7CjPfx7PitNVM1owxdnbtSRzkIUKn1gr8cI_0SY7hA4NGF3IrVxoIGcQ1tXaJKDPBqZ2FtozQgvfi61g[\r][\n]"
[2017-06-14 14:58:36,476] DEBUG - wire HTTPS-Sender I/O dispatcher-3 << "Action: urn:updateEntityWithDataReturnedOrSinglePropertyValue[\r][\n]"
[2017-06-14 14:58:36,477] DEBUG - wire HTTPS-Sender I/O dispatcher-3 << "Accept-Encoding: gzip, deflate[\r][\n]"
[2017-06-14 14:58:36,477] DEBUG - wire HTTPS-Sender I/O dispatcher-3 << "Origin: chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop[\r][\n]"
[2017-06-14 14:58:36,477] DEBUG - wire HTTPS-Sender I/O dispatcher-3 << "Postman-Token: c1e955d9-5307-7369-6fd3-8c4cdefd56da[\r][\n]"
[2017-06-14 14:58:36,477] DEBUG - wire HTTPS-Sender I/O dispatcher-3 << "Content-Type: application/json[\r][\n]"
[2017-06-14 14:58:36,477] DEBUG - wire HTTPS-Sender I/O dispatcher-3 << "Accept: /[\r][\n]"
[2017-06-14 14:58:36,477] DEBUG - wire HTTPS-Sender I/O dispatcher-3 << "Cache-Control: no-cache[\r][\n]"
[2017-06-14 14:58:36,477] DEBUG - wire HTTPS-Sender I/O dispatcher-3 << "Content-Length: 33[\r][\n]"
[2017-06-14 14:58:36,477] DEBUG - wire HTTPS-Sender I/O dispatcher-3 << "Host: wso21234.crm5.dynamics.com[\r][\n]"
[2017-06-14 14:58:36,477] DEBUG - wire HTTPS-Sender I/O dispatcher-3 << "Connection: Keep-Alive[\r][\n]"
[2017-06-14 14:58:36,477] DEBUG - wire HTTPS-Sender I/O dispatcher-3 << "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
[2017-06-14 14:58:36,478] DEBUG - wire HTTPS-Sender I/O dispatcher-3 << "[\r][\n]"
[2017-06-14 14:58:36,478] DEBUG - wire HTTPS-Sender I/O dispatcher-3 << "

{"name":"Updated Sample Account"}

"
[2017-06-14 14:58:37,828] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >> "HTTP/1.1 200 OK[\r][\n]"

Blocking

[2017-06-14 15:00:13,791] DEBUG - header >> "POST /api/data/v8.2/accounts(91618256718-8a4e-e711-80f7-c4346bad279c)?$select=name,creditonhold,address1_latitude HTTP/1.1[\r][\n]"
[2017-06-14 15:00:13,795] DEBUG - header >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
[2017-06-14 15:00:13,795] DEBUG - header >> "Accept: /[\r][\n]"
[2017-06-14 15:00:13,795] DEBUG - header >> "Accept-Encoding: gzip, deflate[\r][\n]"
[2017-06-14 15:00:13,795] DEBUG - header >> "Accept-Language: en-US,en;q=0.8[\r][\n]"
[2017-06-14 15:00:13,795] DEBUG - header >> "Action: urn:updateEntityWithDataReturnedOrSinglePropertyValue[\r][\n]"
[2017-06-14 15:00:13,795] DEBUG - header >> "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IjlGWERwYmZNRlQyU3ZRdVhoODQ2WVR3RUlCdyIsImtpZCI6IjlGWERwYmZNRlQyU3ZRdVhoODQ2WVR3RUlCdyJ9.eyJhdWQiOiJodHRwczovL3dzbzIxMjM0LmNybTUuZHluYW1pY3MuY29tLyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzIxMzliNDZmLWE3ZjQtNGJiMS1iNDU4LWE0OWFmYWNjY2QwNS8iLCJpYXQiOjE0OTc0MzA0MzAsIm5iZiI6MTQ5NzQzMDQzMCwiZXhwIjoxNDk3NDM0MzMwLCJhY3IiOiIxIiwiYWlvIjoiQVNRQTIvOERBQUFBbWV5QitsbXdTUXJCM3luSTBsMVRtY250blNHOUJjQzh6MEZhOUVOYzUrMD0iLCJhbXIiOlsicHdkIl0sImFwcGlkIjoiYzEyZWM1YmUtODM1Ni00ZWRmLWI5YTQtY2Q1NjNlZDA5MTVhIiwiYXBwaWRhY3IiOiIxIiwiZmFtaWx5X25hbWUiOiJwcml5YSIsImdpdmVuX25hbWUiOiJrYW5hIiwiaXBhZGRyIjoiMjAzLjk0Ljk1LjQiLCJuYW1lIjoia2FuYSBwcml5YSIsIm9pZCI6ImZlNmY4ODVlLTk5ZWItNGJjMC1hMmRhLTZkYzU2ZmMxNDYxNiIsInBsYXRmIjoiMTQiLCJwdWlkIjoiMTAwMzAwMDBBMUJDRTk1RiIsInNjcCI6InVzZXJfaW1wZXJzb25hdGlvbiIsInN1YiI6IkJub3c0T2JEcEoyWElGSWJVR1hfZ2VlaWRDRWV5WC13NFQzYU1WNWRBZjAiLCJ0aWQiOiIyMTM5YjQ2Zi1hN2Y0LTRiYjEtYjQ1OC1hNDlhZmFjY2NkMDUiLCJ1bmlxdWVfbmFtZSI6ImthbmFAd3NvMjEyMzQub25taWNyb3NvZnQuY29tIiwidXBuIjoia2FuYUB3c28yMTIzNC5vbm1pY3Jvc29mdC5jb20iLCJ2ZXIiOiIxLjAiLCJ3aWRzIjpbIjYyZTkwMzk0LTY5ZjUtNDIzNy05MTkwLTAxMjE3NzE0NWUxMCJdfQ.bKyHO4wmp5JFBJb-0OI7OdeHguF37Zd3z2stn9iF7uP_PtuEO6Rxdtp07mVKZmNqP50GeZm62FZ74VgB8eDnxQP9mQXEe2rBU94oLVzc9r0bQ1YGqF88RQVcXoM-Q4U3J9ZD1iEog1UsS43krG22YHQ5c-Cwbc1noz_bSpx798A1p5-KSD3mckVabkpxn__OU1lyygEfY6FiieuHQ0iT8nxmguGdH371XesxLzyJFOfZLDPHierLMUctQj7e2d_ClbA5nV7CjPfx7PitNVM1owxdnbtSRzkIUKn1gr8cI_0SY7hA4NGF3IrVxoIGcQ1tXaJKDPBqZ2FtozQgvfi61g[\r][\n]"
[2017-06-14 15:00:13,796] DEBUG - header >> "Cache-Control: no-cache[\r][\n]"
[2017-06-14 15:00:13,796] DEBUG - header >> "Origin: chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop[\r][\n]"
[2017-06-14 15:00:13,796] DEBUG - header >> "Postman-Token: 5adbade0-eb4c-d552-202a-54ff19ee0dfa[\r][\n]"
[2017-06-14 15:00:13,796] DEBUG - header >> "Prefer: return=representation[\r][\n]"
[2017-06-14 15:00:13,796] DEBUG - header >> "User-Agent: Axis2[\r][\n]"
[2017-06-14 15:00:13,796] DEBUG - header >> "Host: wso21234.crm5.dynamics.com[\r][\n]"
[2017-06-14 15:00:13,796] DEBUG - header >> "Content-Length: 33[\r][\n]"
[2017-06-14 15:00:13,797] DEBUG - header >> "[\r][\n]"
[2017-06-14 15:00:13,797] DEBUG - content >> "

{"name":"Updated Sample Account"}

"
[2017-06-14 15:00:13,953] DEBUG - header << "HTTP/1.1 405 Method Not Allowed[\r][\n]"
[2017-06-14 15:00:13,953] DEBUG - header << "HTTP/1.1 405 Method Not Allowed[\r][\n]"
[2017-06-14 15:00:13,954] DEBUG - header << "Cache-Control: no-cache[\r][\n]"
[2017-06-14 15:00:13,954] DEBUG - header << "Pragma: no-cache[\r][\n]"
[2017-06-14 15:00:13,954] DEBUG - header << "Allow: GET,PUT,PATCH,DELETE[\r][\n]"
[2017-06-14 15:00:13,955] DEBUG - header << "Content-Type: application/json; odata.metadata=minimal[\r][\n]"
[2017-06-14 15:00:13,955] DEBUG - header << "Expires: -1[\r][\n]"
[2017-06-14 15:00:13,955] DEBUG - header << "Server: Microsoft-IIS/8.5[\r][\n]"
[2017-06-14 15:00:13,955] DEBUG - header << "REQ_ID: 8ba04189-7459-4837-86e7-dce8df6a9ac1[\r][\n]"
[2017-06-14 15:00:13,955] DEBUG - header << "Set-Cookie: ReqClientId=582ab259-22e7-4130-81af-02700cf96a92; expires=Tue, 14-Jun-2067 09:30:13 GMT; path=/; secure; HttpOnly[\r][\n]"
[2017-06-14 15:00:13,956] DEBUG - header << "Access-Control-Allow-Origin: *[\r][\n]"
[2017-06-14 15:00:13,956] DEBUG - header << "Access-Control-Expose-Headers: Preference-Applied,OData-EntityId,Location,ETag,OData-Version,Content-Encoding,Transfer-Encoding,Content-Length,Retry-After[\r][\n]"
[2017-06-14 15:00:13,956] DEBUG - header << "OData-Version: 4.0[\r][\n]"
[2017-06-14 15:00:13,956] DEBUG - header << "X-AspNet-Version: 4.0.30319[\r][\n]"
[2017-06-14 15:00:13,956] DEBUG - header << "X-Powered-By: ASP.NET[\r][\n]"
[2017-06-14 15:00:13,957] DEBUG - header << "Date: Wed, 14 Jun 2017 09:30:13 GMT[\r][\n]"
[2017-06-14 15:00:13,957] DEBUG - header << "Content-Length: 2149[\r][\n]"
[2017-06-14 15:00:13,957] DEBUG - header << "Set-Cookie: crmf5cookie=!CJwKVxgHGYXTSBLJGlBgYdD3j/Njchy9e3PTBiqxdXWXGrr92QWgIIwdtlLOkedogQKJlLfUu515Fyg=;secure; path=/[\r][\n]"
[2017-06-14 15:00:13,957] DEBUG - header << "Strict-Transport-Security: max-age=31536000; includeSubDomains[\r][\n]"
[2017-06-14 15:00:13,957] DEBUG - header << "[\r][\n]"
[2017-06-14 15:00:13,962] DEBUG - content << "{[\r][\n]"
[2017-06-14 15:00:13,962] DEBUG - content << " "error":{[\r][\n]"
[2017-06-14 15:00:13,962] DEBUG - content << " "code":"","message":"Unmapped Request found, PathTemplate:~/entityset/key, HttpVerb:POST","innererror":

{[\r][\n]" [2017-06-14 15:00:13,962] DEBUG - content << " "message":"Unmapped Request found, PathTemplate:~/entityset/key, HttpVerb:POST","type":"Microsoft.Crm.CrmHttpException","stacktrace":" at Microsoft.Crm.Extensibility.OData.EntityController.HandleUnmappedRequest(ODataPath path)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Objec" [2017-06-14 15:00:13,963] DEBUG - content << "t instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Controllers.ActionFilterResult.<Exe" [2017-06-14 15:00:13,963] DEBUG - content << "cuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()"[\r][\n]" [2017-06-14 15:00:13,963] DEBUG - content << " }

[\r][\n]"
[2017-06-14 15:00:13,964] DEBUG - content << " }[\r][\n]"
[2017-06-14 15:00:13,964] DEBUG - content << "}"
[2017-06-14 15:00:13,966] INFO - HTTPSender Unable to sendViaPost to urlhttps://wso21234.crm5.dynamics.com/api/data/v8.2/accounts(31618218-8a4e-e711-80f7-c4346bad279c)?$select=name,creditonhold,address1_latitude
org.apache.axis2.AxisFault: Transport error: 405 Error: Method Not Allowed
at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:326)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:196)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at org.apache.synapse.message.senders.blocking.BlockingMsgSender.sendReceive(BlockingMsgSender.java:293)
at org.apache.synapse.message.senders.blocking.BlockingMsgSender.send(BlockingMsgSender.java:194)
at org.apache.synapse.mediators.builtin.CallMediator.handleBlockingCall(CallMediator.java:125)
at org.apache.synapse.mediators.builtin.CallMediator.mediate(CallMediator.java:97)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:59)
at org.apache.synapse.mediators.filters.FilterMediator.mediate(FilterMediator.java:169)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:59)
at org.apache.synapse.mediators.filters.FilterMediator.mediate(FilterMediator.java:169)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:59)
at org.apache.synapse.mediators.template.TemplateMediator.mediate(TemplateMediator.java:104)
at org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:148)
at org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:84)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:59)
at org.apache.synapse.config.xml.AnonymousListMediator.mediate(AnonymousListMediator.java:37)
at org.apache.synapse.config.xml.SwitchCase.mediate(SwitchCase.java:69)
at org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:134)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:59)
at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:210)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:325)
at org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:371)
at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:151)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
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:745)
[2017-06-14 15:00:13,988] INFO - LogMediator To: https://wso21234.crm5.dynamics.com/api/data/v8.2/accounts(31618218-8a4e-e711-80f7-c4346bad279c)?$select=name,creditonhold,address1_latitude, MessageID: urn:uuid:73a06200-8cf2-4b5d-a03e-d19ee4ff5bdd, Direction: request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 401001, ERROR_MESSAGE = Transport error: 405 Error: Method Not Allowed, Payload:

{"name":"Updated Sample Account"}

[2017-06-14 15:00:13,996] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "HTTP/1.1 202 Accepted[\r][\n]"
[2017-06-14 15:00:13,997] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "Date: Wed, 14 Jun 2017 09:30:13 GMT[\r][\n]"
[2017-06-14 15:00:13,997] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "Transfer-Encoding: chunked[\r][\n]"
[2017-06-14 15:00:13,997] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "Connection: keep-alive[\r][\n]"
[2017-06-14 15:00:13,997] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "[\r][\n]"
[2017-06-14 15:00:13,997] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "0[\r][\n]"
[2017-06-14 15:00:13,998] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "[\r][\n]"

[1] https://github.com/wso2/wso2-axis2/blob/master/modules/transport/http/src/org/apache/axis2/transport/http/HTTPSender.java#L77



 Comments   
Comment by Vijitha Ekanayake [ 12/Jan/18 ]

Fixed with https://github.com/wso2/wso2-axis2/pull/131





[ESBJAVA-4202] [Cluster][JMS Inbound] When editing a JMS inbound endpoint, multiple connections are made Created: 08/Sep/15  Updated: 11/Jan/18  Resolved: 11/Jan/18

Status: Resolved
Project: WSO2 ESB
Component/s: Inbound Endpoints
Affects Version/s: 4.9.0 - RC2
Fix Version/s: EI-620

Type: Bug Priority: High
Reporter: Yasassri Ratnayake Assignee: Heshitha Hettihewa
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Pack : wso2esb-4.9.0-RC4.zip
Java Version : Java 1.8
Setup : Cluster 3 Node
Browser : Chrome Version 43.0.2357.130 (64-bit) | FireFox 38.0
DB : MYSQL


Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

Steps to reproduce

1. In clustered environment create a JMS inbound pointing to activeMQ similar to following

<inboundEndpoint name="FileInBound_SuperTenant" onError="fault"
        protocol="jms" sequence="main" suspend="false">
        <parameters>
            <parameter name="sequential">true</parameter>
            <parameter name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter>
            <parameter name="java.naming.provider.url">tcp://10.100.5.112:61616</parameter>
            <parameter name="transport.jms.Password">admin</parameter>
            <parameter name="coordination">true</parameter>
            <parameter name="transport.jms.SessionAcknowledgement">AUTO_ACKNOWLEDGE</parameter>
            <parameter name="transport.jms.Destination">QUEUE02</parameter>
            <parameter name="transport.jms.CacheLevel">3</parameter>
            <parameter name="transport.jms.UserName">admin</parameter>
            <parameter name="transport.jms.ConnectionFactoryType">queue</parameter>
            <parameter name="transport.jms.SubscriptionDurable">false</parameter>
            <parameter name="transport.jms.ConnectionFactoryJNDIName">QueueConnectionFactory</parameter>
            <parameter name="transport.jms.ContentType">text/plain</parameter>
            <parameter name="interval">1000</parameter>
            <parameter name="transport.jms.SessionTransacted">false</parameter>
        </parameters>
    </inboundEndpoint>

Note : I have set coordination to true. So only one worker should start the task.

3. Now after the EP is synced in the cluster, edit the created JMS Inbound. (Do this several times if required.)
5. Now observe the consumer count in ActiveMQ. (Consumer count should increase)
6. Now add some messages to ActiveMQ

Issue : The consumer count grows when editing the inbound EP, and eventually Inbound EP stops consuming messages. (Only consumes some messages, some messages get blocked)



 Comments   
Comment by Heshitha Hettihewa [ 11/Jan/18 ]

This was already fixed with https://github.com/wso2/carbon-commons/commit/bfd2763959c1103243cee299ceb49710e91714a7 and https://github.com/wso2/carbon-mediation/commit/f70206be62e3a2370917e7f09f550b30babe3147 by Sasikala





[ESBJAVA-4296] Changed not applied by activating an Inbound Endpoint after assigning permission Created: 30/Oct/15  Updated: 10/Jan/18  Resolved: 10/Jan/18

Status: Resolved
Project: WSO2 ESB
Component/s: Inbound Endpoints
Affects Version/s: 4.9.0
Fix Version/s: EI-620

Type: Bug Priority: Normal
Reporter: Dilini Gunatilake Assignee: Heshitha Hettihewa
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: CentOS 6.5
JDK: 1.8
Database : H2
Browser : Firefox 40.0
Setup : Standalone


Severity: Major
Estimated Complexity: Moderate
Test cases added: No

 Description   

This issue is observed when ESB is integrated with MB 3.0.0 Beta.

Steps to reproduce
--------------------------------------------------------------------------------------------------------
1. Create a JMS inbound endpoint for a Queue. The subscriber should not have permission to the given queue.
When you save the inbound endpoint errors will be logged saying the user does not have permission
2. Suspend the inbound endpoint
3. Navigate to MB management console and assign permission to the user for that particular queue.
3. Activate the endpoint again from ESB

Issue
-------------------------------------------------------------------------------------------------------
ESB will continuously log saying the user does not permission even though the user has. You have to create a new inbound endpoint to subscribe to the queue. Cannot reuse the existing endpoint



 Comments   
Comment by Heshitha Hettihewa [ 10/Jan/18 ]

Tried with EI 611 and this issue is fixed.





[ESBJAVA-4919] ConnectionFactoryJNDIName is not picked if it is different than TopicConnectionFactory or QueueConnectionFactory Created: 07/Oct/16  Updated: 10/Jan/18  Resolved: 10/Jan/18

Status: Resolved
Project: WSO2 ESB
Component/s: Inbound Endpoints
Affects Version/s: 5.0.0
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Jason De Silva Assignee: Heshitha Hettihewa
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ESB
Standalone ESB 5.0.0
JDK - 1.7.0_79
DB - h2
MB
Set up - 3 node MB cluster with rdbmsBasedCoordination enabled
JDK - IBM-JDK 8
OS - Node 1- RedHat 7.0 , Node 2- RedHat 6.6 , Node 3- RedHat 5.8
DB - MSSQL 2014


Severity: Critical
Estimated Complexity: Moderate
Test cases added: No

 Description   

Configured couple of connection factories in jndi.properties file to point inbound endpoints to different MB nodes. But ESB fails to pick it.

Steps
1) Add couple of entries in jndi.properties file to connect to different MB nodes with different jndi connection factory names.

connectionfactory.QueueConnectionFactory = amqp://admin:admin@carbon/carbon?brokerlist='tcp://192.168.48.138:5672'
connectionfactory.TopicConnectionFactory = amqp://admin:admin@carbon/carbon?brokerlist='tcp://192.168.48.100:5672'

connectionfactory.TopicConnectionFactoryNodeTwoSub = amqp://admin:admin@carbon/carbon?brokerlist='tcp://192.168.48.100:5672'
connectionfactory.QueueConnectionFactoryNodeThreeSub = amqp://admin:admin@carbon/carbon?brokerlist='tcp://192.168.48.144:5672'

2) Create a queue or topic connection factory using a name other than QueueConnectionFactory & TopicConnectionFactory

Issue

The inbound endpoint fails to subscribe to the MB node. Find the stacktrace below

TID: [-1234] [] [2016-10-07 11:48:38,542]  INFO {org.wso2.carbon.mediation.dependency.mgt.DependencyTracker} -  Inbound Endpoint : diffConnecFact was added to the Synapse configuration successfully {org.wso2.carbon.mediation.dependency.mgt.DependencyTracker}
TID: [-1234] [] [2016-10-07 11:48:38,543]  INFO {org.apache.synapse.inbound.InboundEndpoint} -  Initializing Inbound Endpoint: diffConnecFact {org.apache.synapse.inbound.InboundEndpoint}
TID: [-1234] [] [2016-10-07 11:48:38,543]  INFO {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSProcessor} -  Initializing inbound JMS listener for inbound endpoint diffConnecFact {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSProcessor}
TID: [-1234] [] [2016-10-07 11:48:38,544] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory} -  Naming exception while obtaining connection factory for 'TopicConnectionFactoryNodeTwoSub' {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}
javax.naming.NameNotFoundException: TopicConnectionFactoryNodeTwoSub
	at org.wso2.andes.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:271)
	at javax.naming.InitialContext.lookup(InitialContext.java:411)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory.createConnectionFactory(JMSConnectionFactory.java:185)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory.<init>(JMSConnectionFactory.java:160)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.factory.CachedJMSConnectionFactory.<init>(CachedJMSConnectionFactory.java:38)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer.<init>(JMSPollingConsumer.java:62)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.JMSProcessor.init(JMSProcessor.java:88)
	at org.apache.synapse.inbound.InboundEndpoint.init(InboundEndpoint.java:79)
	at org.wso2.carbon.inbound.CarbonInboundManagementService.addInboundEndpoint(CarbonInboundManagementService.java:131)
	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.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66)
	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.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
	at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
	at org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
	at org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
	at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
	at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
	at org.wso2.carbon.inbound.stub.InboundAdminStub.addInboundEndpoint(InboundAdminStub.java:989)
	at org.wso2.carbon.inbound.ui.internal.InboundManagementClient.addInboundEndpoint(InboundManagementClient.java:152)
	at org.apache.jsp.inbound.saveInbound_jsp._jspService(saveInbound_jsp.java:266)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	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:731)
	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.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:603)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:542)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:955)
	at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)
	at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682)
	at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
	at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
	at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
	at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
	at org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_005finsertAttribute_005f7(template_jsp.java:661)
	at org.apache.jsp.admin.layout.template_jsp._jspService(template_jsp.java:377)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	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:731)
	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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.forward(ContextPathServletAdaptor.java:362)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
	at org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	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:731)
	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.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:88)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSRFPreventionFilter.java:88)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(CRLFPreventionFilter.java:59)
	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.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:120)
	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:505)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	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.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)
	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:956)
	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:436)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1749)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1708)
	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)
TID: [-1234] [] [2016-10-07 11:48:38,549]  INFO {org.wso2.carbon.inbound.endpoint.common.InboundRequestProcessorImpl} -  Starting the inbound endpoint diffConnecFact, with coordination true. Interval : 10000. Type : JMS--SYNAPSE_INBOUND_ENDPOINT0 {org.wso2.carbon.inbound.endpoint.common.InboundRequestProcessorImpl}
TID: [-1234] [] [2016-10-07 11:48:38,554]  INFO {org.wso2.carbon.ntask.core.impl.AbstractQuartzTaskManager} -  Task scheduled: [-1234][ESB_TASK][diffConnecFact-JMS--SYNAPSE_INBOUND_ENDPOINT0] {org.wso2.carbon.ntask.core.impl.AbstractQuartzTaskManager}
TID: [-1234] [] [2016-10-07 11:48:38,554]  INFO {org.wso2.carbon.mediation.ntask.NTaskTaskManager} -  Scheduled task [NTask::-1234::diffConnecFact-JMS--SYNAPSE_INBOUND_ENDPOINT0] {org.wso2.carbon.mediation.ntask.NTaskTaskManager}
TID: [-1234] [] [2016-10-07 11:48:38,554] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory} -  Connection cannot be establish to the broker. Please check the broker libs provided. {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}
TID: [-1234] [] [2016-10-07 11:48:38,554]  WARN {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} -  Inbound JMS endpoint unable to get a connection. {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}
TID: [-1234] [] [2016-10-07 11:48:38,555] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} -  Reconnection attempt : 0 for JMS Inbound : diffConnecFact failed. Next retry in 2 seconds {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}
TID: [-1234] [] [2016-10-07 11:48:48,554] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory} -  Connection cannot be establish to the broker. Please check the broker libs provided. {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}
TID: [-1234] [] [2016-10-07 11:48:48,555]  WARN {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} -  Inbound JMS endpoint unable to get a connection. {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}
TID: [-1234] [] [2016-10-07 11:48:48,555] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} -  Reconnection attempt : 1 for JMS Inbound : diffConnecFact failed. Next retry in 4 seconds {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}
TID: [-1234] [] [2016-10-07 11:48:58,554] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory} -  Connection cannot be establish to the broker. Please check the broker libs provided. {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}
TID: [-1234] [] [2016-10-07 11:48:58,555]  WARN {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} -  Inbound JMS endpoint unable to get a connection. {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}
TID: [-1234] [] [2016-10-07 11:48:58,556] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} -  Reconnection attempt : 2 for JMS Inbound : diffConnecFact failed. Next retry in 8 seconds {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}
TID: [-1234] [] [2016-10-07 11:49:08,554] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory} -  Connection cannot be establish to the broker. Please check the broker libs provided. {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}
TID: [-1234] [] [2016-10-07 11:49:08,554]  WARN {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} -  Inbound JMS endpoint unable to get a connection. {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}
TID: [-1234] [] [2016-10-07 11:49:08,554] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} -  Reconnection attempt : 3 for JMS Inbound : diffConnecFact failed. Next retry in 16 seconds {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}
TID: [-1234] [] [2016-10-07 11:49:28,553] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory} -  Connection cannot be establish to the broker. Please check the broker libs provided. {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}
TID: [-1234] [] [2016-10-07 11:49:28,553]  WARN {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} -  Inbound JMS endpoint unable to get a connection. {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}
TID: [-1234] [] [2016-10-07 11:49:28,554] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} -  Reconnection attempt : 4 for JMS Inbound : diffConnecFact failed. Next retry in 32 seconds {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}



 Comments   
Comment by Heshitha Hettihewa [ 10/Jan/18 ]

Tried this with ESB 500 and EI 611 pack and it picked the JNDI names correctly with a similar setup.





[ESBJAVA-4952] Missing parameter in inbound JMS UI Created: 14/Nov/16  Updated: 10/Jan/18  Resolved: 10/Jan/18

Status: Resolved
Project: WSO2 ESB
Component/s: Inbound Endpoints
Affects Version/s: 5.0.0
Fix Version/s: EI-620

Type: Bug Priority: Normal
Reporter: Manu Perea Assignee: Heshitha Hettihewa
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

'java.naming.security.credentials' parameter is missing in UI, since full source is also un-editable only way to put this is via manual edit.



 Comments   
Comment by Heshitha Hettihewa [ 10/Jan/18 ]

Fixed with https://github.com/wso2/carbon-mediation/pull/943/





[ESBJAVA-4087] Getting Uncaught exception java.lang.ClassCastException: org.apache.axiom.om.impl.llom.OMElementImpl cannot be cast to org.apache.axiom.soap.SOAPFault in WSo2 ESB 4.8.1 Created: 21/Aug/15  Updated: 10/Jan/18  Resolved: 10/Jan/18

Status: Resolved
Project: WSO2 ESB
Component/s: Mediators
Affects Version/s: 4.8.1
Fix Version/s: EI-620

Type: Bug Priority: Normal
Reporter: Rohan Sharma Assignee: Milan Perera
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7 32 bit.


Attachments: XML File FaultSeq.xml    
Severity: Major
Estimated Complexity: Moderate
Test cases added: No

 Description   

When I am trying to send a message through Fault sequence using a callout mediator I am receiving the above message.
Below is the complete stack trace..
ERROR - NativeWorkerPool Uncaught exception java.lang.ClassCastException: org.apache.axiom.om.impl.llom.OMElementImpl cannot be cast to org.apache.axiom.soap.SOAPFault at org.apache.axiom.soap.impl.llom.SOAPBodyImpl.getFault(SOAPBodyImpl.java:120) at org.apache.synapse.util.MessageHelper.cloneSOAPEnvelope(MessageHelper.java:383) at org.apache.synapse.util.MessageHelper.cloneAxis2MessageContext(MessageHelper.java:233) at org.apache.synapse.util.MessageHelper.cloneMessageContext(MessageHelper.java:86) at org.apache.synapse.mediators.builtin.CalloutMediator.mediate(CalloutMediator.java:144) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47) at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131) at org.apache.synapse.mediators.MediatorFaultHandler.onFault(MediatorFaultHandler.java:85) at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:54) at org.apache.synapse.endpoints.AbstractEndpoint.invokeNextFaultHandler(AbstractEndpoint.java :640) at org.apache.synapse.endpoints.AbstractEndpoint.onFault(AbstractEndpoint.java:475) at org.apache.synapse.endpoints.AddressEndpoint.onFault(AddressEndpoint.java:43) at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:102) at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceive r.java:435) at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java :170) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225) at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) 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:724)



 Comments   
Comment by Scott Bechtel [ 23/Aug/15 ]

Also getting this error:

TID: [0] [ESB] [2015-08-22 23:57:40,905] ERROR {org.apache.synapse.message.processor.impl.forwarder.ForwardingService} -  Message processor [SL_SyncCustomerMessageProcessor] failed to send the message to client {org.apache.synapse.message.processor.impl.forwarder.ForwardingService}
java.lang.ClassCastException: org.apache.axiom.om.impl.llom.OMElementImpl cannot be cast to org.apache.axiom.soap.SOAPFault
	at org.apache.axiom.soap.impl.llom.SOAPBodyImpl.getFault(SOAPBodyImpl.java:120)
	at org.apache.synapse.util.MessageHelper.cloneSOAPEnvelope(MessageHelper.java:383)
	at org.apache.synapse.util.MessageHelper.cloneAxis2MessageContext(MessageHelper.java:233)
	at org.apache.synapse.util.MessageHelper.cloneMessageContext(MessageHelper.java:86)
	at org.apache.synapse.mediators.eip.splitter.CloneMediator.getClonedMessageContext(CloneMediator.java:159)
	at org.apache.synapse.mediators.eip.splitter.CloneMediator.mediate(CloneMediator.java:99)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:196)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
	at org.apache.synapse.config.xml.AnonymousListMediator.mediate(AnonymousListMediator.java:30)
	at org.apache.synapse.mediators.filters.FilterMediator.mediate(FilterMediator.java:197)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
	at org.apache.synapse.message.processor.impl.forwarder.ForwardingService.sendThroughReplySeq(ForwardingService.java:439)
	at org.apache.synapse.message.processor.impl.forwarder.ForwardingService.dispatch(ForwardingService.java:352)
	at org.apache.synapse.message.processor.impl.forwarder.ForwardingService.execute(ForwardingService.java:133)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
Comment by Milan Perera [ 10/Jan/18 ]

This is fixed in [1]. Resolving the ticket after testing the scenario in EI 6.2.0-SNAPSHOT.

[1] https://github.com/wso2/wso2-synapse/commit/15222e9744a0775df627e3950ec3a9fa192892c1





[ESBJAVA-4499] "messageType" property is not taking from the endpoint template Created: 16/Mar/16  Updated: 10/Jan/18  Resolved: 10/Jan/18

Status: Resolved
Project: WSO2 ESB
Component/s: Properties Management
Affects Version/s: 4.8.1
Fix Version/s: EI-620

Type: Bug Priority: Normal
Reporter: Randika Perera Assignee: Milan Perera
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

If we defined the "messageType" property inside the endpoint template it is not take effect.But this is working ESB 4.5.1 without any issue.

<?xml version="1.0" encoding="UTF-8"?>
<template name="sampleTemplate" xmlns="http://ws.apache.org/ns/synapse">
<endpoint name="$name">
<address format="rest" uri="$uri">
<suspendOnFailure>
<errorCodes>101500,101501,101506,101507,101508</errorCodes>
<initialDuration>1000</initialDuration>
<progressionFactor>2.0</progressionFactor>
<maximumDuration>64000</maximumDuration>
</suspendOnFailure>
<markForSuspension>
<errorCodes>101504,101505</errorCodes>
<retriesBeforeSuspension>3</retriesBeforeSuspension>
<retryDelay>1</retryDelay>
</markForSuspension>
<timeout>
<duration>60000</duration>
<responseAction>fault</responseAction>
</timeout>
</address>
<property name="messageType" value="application/json" scope="axis2"/>
</endpoint>
</template>



 Comments   
Comment by Milan Perera [ 10/Jan/18 ]

This is fixed in [1]. The reason for not working this because the "messageType" property is not handled in the mediator property class.

[1] https://github.com/wso2/wso2-synapse/pull/1002





Generated at Wed Jan 17 04:26:49 IST 2018 using JIRA 7.2.2#72004-sha1:9d5132893cc8c728a3601a9034a1f8547ef5c7be.