[ESBJAVA-4681] No error when we calling a nonexistent endpoint Created: 15/Jun/16  Updated: 29/Jun/17

Status: In Progress
Project: WSO2 ESB
Component/s: Endpoints Management, Registry
Affects Version/s: 4.9.0
Fix Version/s: None

Type: Bug Priority: Highest
Reporter: gregory eve Assignee: Isuru Udana Loku Narangoda
Resolution: Unresolved 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   

Test case:

  • create a proxy service or an api
  • in the end sequence add a send mediator and set a nonexistent registry entry
  • test the flow

no error log generated
message pass through faultSequence but ERROR_MESSAGE, ERROR_CODE, etc. are empty.

Same problem if xml in registry ressource is not well formated.






[ESBJAVA-5198] Get the Inbound Endpoint parameters from environment variables Created: 20/Mar/17  Updated: 11/Jul/17

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Highest
Reporter: Shakila Sasikaran Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Severity: Major
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0
Test cases added: Yes

 Description   

It would be great to implement the feature to get the Inbound Endpoint parameter values from environment variables as we get from the registry properties.



 Comments   
Comment by Thilini Ishaka [ 20/Mar/17 ]

Hi Shakila,

As we have multi-car upload functionality in the integration cloud, we can suggest the below approach.
1. [CAR1] Create a car with the application logic. You'll be defining the registry resource key within the application logic wherever necessary.
2. [CAR2] Separate car file per environment with registry resources. There you define the value for aforementioned keys.

If there's a change to a certain property, you'll only need to alter [CAR2] while [CAR1] remains unchanged.

We hope this approach will work for you.

Regards,
Thilini

Comment by Shakila Sasikaran [ 20/Mar/17 ]

Hi Thilini,

If we have the registry resources and other synapse configs in one car also, we are going to change the registry resource only in case of the value change. IMHO, using the environment variables instead of the registry resources is more flexible to the end users.

Thank you,
Shakila





[ESBJAVA-5145] "org.apache.axis2.AxisFault: No permission to access the server buffer error thrown when there are 2 CG servers and published to server which is added later Created: 30/Jan/14  Updated: 11/Jul/17

Status: Open
Project: WSO2 ESB
Component/s: Cloud Gateway
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Highest
Reporter: Shashika Ubhayaratne Assignee: Rajika Kumarasiri
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CGAgent 1.0.0 + ESB 4.8.1


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

 Description   

1. Create a ESB proxy service
2. Create CGAgent 2 connections to different ports (2 CG servers shouls run on different ports)
3. Publish proxy service to 2nd CGAgent.
4. Send request to CG end point

Issue: Nothing prints on ESB logs yet CG contains following errors:
Also, request npot forwarded to backend. (Here I used App server echo service as the backend)

[2014-01-30 11:51:38,294] INFO - CarbonAuthenticationUtil 'admin@carbon.super [-1234]' logged in at [2014-01-30 11:51:38,294+0530]
[2014-01-30 11:51:38,550] INFO - ProxyService Building Axis service for Proxy service : ptProxy1
[2014-01-30 11:51:38,561] INFO - ProxyService Adding service ptProxy1 to the Axis2 configuration
[2014-01-30 11:51:38,687] INFO - DeploymentInterceptor Deploying Axis2 service: ptProxy1

{super-tenant}

[2014-01-30 11:51:38,720] INFO - ProxyService Successfully created the Axis2 service for Proxy service : ptProxy1
[2014-01-30 11:51:40,157] INFO - CarbonAuthenticationUtil 'admin@carbon.super [-1234]' logged in at [2014-01-30 11:51:40,157+0530]
[2014-01-30 11:51:41,529] INFO - CarbonAuthenticationUtil 'admin@carbon.super [-1234]' logged in at [2014-01-30 11:51:41,529+0530]
[2014-01-30 11:52:03,073] INFO - TimeoutHandler This engine will expire all callbacks after : 86400 seconds, irrespective of the timeout action, after the specified or optional timeout
[2014-01-30 11:52:03,080] ERROR - CGTransportSender No permission to access the server buffers
[2014-01-30 11:52:03,081] ERROR - CGTransportSender Could not process the request message
org.apache.axis2.AxisFault: No permission to access the server buffers
at org.apache.axis2.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:231)
at org.wso2.carbon.cloud.gateway.transport.CGTransportSender.sendMessage(CGTransportSender.java:236)
at org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:193)
at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:175)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:445)
at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:57)
at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:286)
at org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:297)
at org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:59)
at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:175)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:416)
at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:268)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
[2014-01-30 11:52:03,081] ERROR - Axis2Sender Unexpected error during sending message out
org.apache.axis2.AxisFault: Could not process the request message
at org.apache.axis2.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:226)
at org.wso2.carbon.cloud.gateway.transport.CGTransportSender.sendMessage(CGTransportSender.java:272)
at org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:193)
at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:175)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:445)
at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:57)
at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:286)
at org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:297)
at org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:59)
at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:175)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:416)
at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:268)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.axis2.AxisFault: No permission to access the server buffers
at org.apache.axis2.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:231)
at org.wso2.carbon.cloud.gateway.transport.CGTransportSender.sendMessage(CGTransportSender.java:236)
... 19 more
[2014-01-30 11:52:03,084] ERROR - ServerWorker Error processing POST request
org.apache.axis2.AxisFault: Error reading data handler
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:180)
at org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:416)
at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:268)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.axiom.om.OMException: Error reading data handler
at org.apache.axiom.om.impl.llom.OMTextImpl.internalSerialize(OMTextImpl.java:411)
at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:555)
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:875)
at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:555)
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:875)
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:230)
at org.apache.axiom.om.impl.llom.OMSerializableImpl.serialize(OMSerializableImpl.java:125)
at org.apache.axiom.om.impl.llom.OMSerializableImpl.serialize(OMSerializableImpl.java:113)
at org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:988)
at java.lang.String.valueOf(String.java:2826)
at java.lang.StringBuffer.append(StringBuffer.java:219)
at org.apache.synapse.mediators.builtin.LogMediator.getFullLogMessage(LogMediator.java:184)
at org.apache.synapse.mediators.builtin.LogMediator.getLogMessage(LogMediator.java:123)
at org.apache.synapse.mediators.builtin.LogMediator.mediate(LogMediator.java:91)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114)
at org.apache.synapse.mediators.MediatorFaultHandler.onFault(MediatorFaultHandler.java:81)
at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:54)
at org.apache.synapse.endpoints.AbstractEndpoint.invokeNextFaultHandler(AbstractEndpoint.java:564)
at org.apache.synapse.endpoints.AbstractEndpoint.onFault(AbstractEndpoint.java:413)
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.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:183)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
... 6 more
Caused by: java.io.IOException: Input stream has being already consumed
at org.wso2.carbon.relay.StreamingOnRequestDataSource.getInputStream(StreamingOnRequestDataSource.java:63)
at javax.activation.DataHandler.writeTo(DataHandler.java:290)
at org.apache.axiom.util.stax.XMLStreamWriterUtils.writeBase64(XMLStreamWriterUtils.java:62)
at org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler(XMLStreamWriterUtils.java:138)
at org.apache.axiom.om.impl.llom.OMTextImpl.internalSerialize(OMTextImpl.java:408)
... 30 more

Note: Once the published proxy is unpublished and publish again to CG server 1 created.
Request is success.






[ESBJAVA-4432] Remove Old Stats configurations and feature Created: 23/Feb/16  Updated: 30/Aug/17

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 5.0.0-M1
Fix Version/s: None

Type: Task Priority: Highest
Reporter: Yasassri Rathnayake Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ESB 5


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

 Description   

In ESB 5 we can still see old stats related configuration in caron.xml etc. These should be removed along with UI options.

e.g :

<!--Disabling statistics reporter by default-->
    <StatisticsReporterDisabled>false</StatisticsReporterDisabled>





[ESBJAVA-5214] Cache mediator tends to OOM due Hazelcast Memory Leaks Created: 25/Aug/17  Updated: 25/Aug/17

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Highest
Reporter: Vijitha Ekanayake Assignee: Chanaka Fernando
Resolution: Unresolved 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




[ESBJAVA-4763] NullPointerException while sending IDOC to SAP Created: 16/Jul/16  Updated: 28/Sep/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.8.1
Fix Version/s: None

Type: Bug Priority: High
Reporter: Muralidharan Balanandan Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File DebuggingWithWSO2SuggestedParameters_sapDebugEnabled.txt     Text File Test_SAP_XSLT.txt     XML File idocTestXSLT.xslt     File sapdelts.dest     Text File test_sap.txt    
Severity: Blocker
Estimated Complexity: Advanced
Test cases added: No

 Description   

Facing the following error while sending the IDOC to SAP.

Transport configurations are fine (Even BAPI message to SAP is successful)

TID: [0] [ESB] [2016-07-12 13:50:39,213] ERROR

{org.wso2.carbon.transports.sap.SAPTransportSender} - Error while sending an IDoc to the EPR : idoc:/sapdelts {org.wso2.carbon.transports.sap.SAPTransportSender}

java.lang.NullPointerException
at org.wso2.carbon.transports.sap.idoc.DefaultIDocXMLMapper.closeStream(DefaultIDocXMLMapper.java:68)
at org.wso2.carbon.transports.sap.idoc.DefaultIDocXMLMapper.getDocumentList(DefaultIDocXMLMapper.java:59)
at org.wso2.carbon.transports.sap.SAPTransportSender.getIDocs(SAPTransportSender.java:163)
at org.wso2.carbon.transports.sap.SAPTransportSender.sendMessage(SAPTransportSender.java:103)
at org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:185)
at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:167)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:482)
at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:59)
at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:338)
at org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:333)
at org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:59)
at org.apache.synapse.mediators.builtin.CallMediator.mediate(CallMediator.java:114)
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.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:166)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
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)
TID: [0] [ESB] [2016-07-12 13:50:39,215] ERROR

{org.apache.synapse.core.axis2.Axis2Sender} - Unexpected error during sending message out {org.apache.synapse.core.axis2.Axis2Sender}

org.apache.axis2.AxisFault: Error while sending an IDoc to the EPR : idoc:/sapdelts
at org.apache.axis2.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:226)
at org.wso2.carbon.transports.sap.SAPTransportSender.sendMessage(SAPTransportSender.java:136)
at org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:185)
at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:167)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:482)
at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:59)
at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:338)
at org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:333)
at org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:59)
at org.apache.synapse.mediators.builtin.CallMediator.mediate(CallMediator.java:114)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)



 Comments   
Comment by Muralidharan Balanandan [ 19/Jul/16 ]

Proxy used to send IDOC to SAP

Comment by Muralidharan Balanandan [ 19/Jul/16 ]

the .dest file used to connect to SAP

Comment by Chanaka Fernando [ 20/Jul/16 ]

This looks like an issue with the connectivity from the ESB to SAP over IDOC transport or an error with the IDOC message. Could you please enable the error handler with the following parameters for this proxy and attach the resulting log.

<parameter name="transport.sap.enableTIDHandler">enabled</parameter>
<parameter name="transport.sap.enableErrorListener">enabled</parameter>

Another thing you can do is to check the validity of the IDOC message which you are sending to the SAP system from ESB. If the message is not formatted properly, you will get this kind of error.

Comment by Chanaka Fernando [ 20/Jul/16 ]

Reducing the priority since this looks like a configuration issue.

Comment by Muralidharan Balanandan [ 20/Jul/16 ]

Thanks Chanaka Fernando.. Can you please share some reference to valid IDOC message or message content. It would be very helpful.

Comment by Muralidharan Balanandan [ 21/Jul/16 ]

We validated the IDOC message and its fine. As you suggested, added the above parameters and tried. Attaching the latest proxy. XSLT used and the logs.
Kindly have a look and let us know your findings.

Comment by Muralidharan Balanandan [ 26/Jul/16 ]

Receive the following error code in trace.

TID: [0] [ESB] [2016-07-26 10:09:29,255] WARN

{org.apache.synapse.FaultHandler} - ERROR_CODE : 8001 {org.apache.synapse.FaultHandler}

TID: [0] [ESB] [2016-07-26 10:09:29,255] WARN

{org.apache.synapse.FaultHandler} - ERROR_MESSAGE : null {org.apache.synapse.FaultHandler}

TID: [0] [ESB] [2016-07-26 10:09:29,255] WARN

{org.apache.synapse.FaultHandler} - ERROR_DETAIL : null {org.apache.synapse.FaultHandler}

TID: [0] [ESB] [2016-07-26 10:09:29,255] WARN

{org.apache.synapse.FaultHandler} - ERROR_EXCEPTION : null {org.apache.synapse.FaultHandler}

TID: [0] [ESB] [2016-07-26 10:09:29,256] WARN

{org.apache.synapse.FaultHandler} - FaultHandler : Endpoint [sapidocendpoint] {org.apache.synapse.FaultHandler}

TID: [0] [ESB] [2016-07-26 10:09:29,256] WARN

{org.apache.synapse.endpoints.EndpointContext} - Endpoint : sapidocendpoint will be marked SUSPENDED as it failed {org.apache.synapse.endpoints.EndpointContext}

TID: [0] [ESB] [2016-07-26 10:09:29,256] WARN

{org.apache.synapse.endpoints.EndpointContext} - Suspending endpoint : sapidocendpoint - current suspend duration is : 30000ms - Next retry after : Tue Jul 26 10:09:59 CLT 2016 {org.apache.synapse.endpoints.EndpointContext}

TID: [0] [ESB] [2016-07-26 10:09:29,256] ERROR

{org.wso2.carbon.transports.sap.SAPTransportSender} - Error while sending an IDoc to the EPR : idoc:/sapdelts {org.wso2.carbon.transports.sap.SAPTransportSender}

java.lang.NullPointerException
at org.wso2.carbon.transports.sap.idoc.DefaultIDocXMLMapper.closeStream(DefaultIDocXMLMapper.java:86)
at org.wso2.carbon.transports.sap.idoc.DefaultIDocXMLMapper.getDocumentList(DefaultIDocXMLMapper.java:79)
at org.wso2.ca

Comment by Evanthika Amarasiri [ 28/Sep/16 ]

I too faced the same issue. The reason was that the IDOC message was not correct. When I used a correct IDOC message, the NPE disappeared and the IDOC was sent properly.





[ESBJAVA-4606] JMS Sender level cache is not working properly with the stale connections. Created: 09/May/16  Updated: 27/Jul/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.9.0, 5.0.0-M1
Fix Version/s: None

Type: Bug Priority: High
Reporter: prabath ariyarathna Assignee: Chanaka Fernando
Resolution: Unresolved 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   

JMS Sender level cache is not working properly with the stale connections.
We need to check this for the session and producer cache levels.
We can reproduce this issue easily with setup JMS broker as the backend and send some requests to fill the JMS connection factory. Then need to restart the JMS broker. You can see the failures in the next subsequent requests.



 Comments   
Comment by Jagath Ariyarathne [ 27/Jul/16 ]

This is fixed for connection caching with following PR. Need to do the same for session and producer caching.

https://github.com/wso2/wso2-axis2-transports/commit/1b738f0e2d2d6dd8d7b48fe326c4d517b6346f1b





[ESBJAVA-4435] Unable to execute EDI to database insertion with smooks mediator Created: 23/Feb/16  Updated: 09/Jun/16

Status: Open
Project: WSO2 ESB
Component/s: Mediators
Affects Version/s: 5.0.0-M2
Fix Version/s: None

Type: Bug Priority: High
Reporter: Chathurika De Silva Assignee: Isuru Udana Loku Narangoda
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: Ubuntu 14.04
JDK: 1.8.0


Attachments: XML File Smooks6.xml     File edi.edi     XML File edimapping.xml     XML File smooks_edi_db_config.xml    
Severity: Major
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0
Test cases added: Yes

 Description   

Using the given configuration files, and using [1] as the guide line i have tried in executing this using WSO2 ESB, but failed with the following error

[2016-02-23 18:14:50,191] ERROR - SequenceMediator Failed to set paramater configuration value on 'org.milyn.db.DirectDataSource#driver'.
org.milyn.cdr.SmooksConfigurationException: Failed to set paramater configuration value on 'org.milyn.db.DirectDataSource#driver'.
	at org.milyn.cdr.annotation.Configurator.applyConfigParam(Configurator.java:336)
	at org.milyn.cdr.annotation.Configurator.processFieldConfigParamAnnotations(Configurator.java:146)
	at org.milyn.cdr.annotation.Configurator.processFieldConfigAnnotations(Configurator.java:126)
	at org.milyn.cdr.annotation.Configurator.configure(Configurator.java:82)
	at org.milyn.cdr.annotation.Configurator.configure(Configurator.java:66)
	at org.milyn.delivery.JavaContentHandlerFactory.create(JavaContentHandlerFactory.java:69)
	at org.milyn.delivery.ContentDeliveryConfigBuilder$ContentHandlerExtractionStrategy.addCDU(ContentDeliveryConfigBuilder.java:642)
	at org.milyn.delivery.ContentDeliveryConfigBuilder$ContentHandlerExtractionStrategy.applyCDUStrategy(ContentDeliveryConfigBuilder.java:568)
	at org.milyn.delivery.ContentDeliveryConfigBuilder$ContentHandlerExtractionStrategy.applyStrategy(ContentDeliveryConfigBuilder.java:556)
	at org.milyn.delivery.ContentDeliveryConfigBuilder$SmooksResourceConfigurationTableIterator.iterate(ContentDeliveryConfigBuilder.java:730)
	at org.milyn.delivery.ContentDeliveryConfigBuilder$SmooksResourceConfigurationTableIterator.access$300(ContentDeliveryConfigBuilder.java:709)
	at org.milyn.delivery.ContentDeliveryConfigBuilder.extractContentHandlers(ContentDeliveryConfigBuilder.java:494)
	at org.milyn.delivery.ContentDeliveryConfigBuilder.load(ContentDeliveryConfigBuilder.java:356)
	at org.milyn.delivery.ContentDeliveryConfigBuilder.getConfig(ContentDeliveryConfigBuilder.java:147)
	at org.milyn.container.standalone.StandaloneExecutionContext.<init>(StandaloneExecutionContext.java:91)
	at org.milyn.container.standalone.StandaloneExecutionContext.<init>(StandaloneExecutionContext.java:65)
	at org.milyn.Smooks.createExecutionContext(Smooks.java:418)
	at org.milyn.Smooks.createExecutionContext(Smooks.java:376)
	at org.wso2.carbon.mediator.transform.SmooksMediator.mediate(SmooksMediator.java:115)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:86)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:49)
	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:163)
	at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:211)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
	at org.apache.axis2.transport.base.AbstractTransportListener.handleIncomingMessage(AbstractTransportListener.java:328)
	at org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFSTransportListener.java:753)
	at org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:407)
	at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:177)
	at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:124)
	at org.apache.axis2.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:67)
	at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
	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)
Caused by: org.milyn.javabean.DataDecodeException: Failed to decode 'com.mysql.jdbc.Driver' as a Java Class.
	at org.milyn.javabean.decoders.ClassDecoder.decode(ClassDecoder.java:36)
	at org.milyn.cdr.annotation.Configurator.applyConfigParam(Configurator.java:334)
	... 33 more
Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at org.milyn.util.ClassUtil.forName(ClassUtil.java:95)
	at org.milyn.javabean.decoders.ClassDecoder.decode(ClassDecoder.java:34)
	... 34 more
[2016-02-23 18:14:50,208]  INFO - LogMediator To: , WSAction: urn:mediate, SOAPAction: urn:mediate, MessageID: urn:uuid:66E5DBEE35D675C51B1456231489841, Direction: request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 0, ERROR_MESSAGE = Failed to set paramater configuration value on 'org.milyn.db.DirectDataSource#driver'., Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><text xmlns="http://ws.apache.org/commons/ns/payload">MLS*Wed Nov 15 13:45:28 EST 2006
HDR*1*0*59.97*64.92*4.95
CUS*user1*Harry^Fletcher*SD
ORD*1*1*364*HarryPorter*28.98
ORD*2*1*299*Pulp Fiction*30.99
HDR*2*0*81.30*91.06*9.76
CUS*user2*George^Hook*SD
ORD*3*2*983*Gone with The Wind*25.80
ORD*4*3*299*Lethal Weapon 2*55.50
</text></soapenv:Body></soapenv:Envelope>

Followed [2] to get the namespaces for smooks 1.5.

[1] https://github.com/smooks/smooks/blob/v1.5.1/smooks-examples/db-extract-transform-load/smooks-configs/datasources.xml
[2] http://www.smooks.org/mediawiki/index.php?title=V1.5:Smooks_v1.5_User_Guide_c6_c11



 Comments   
Comment by Isuru Udana Loku Narangoda [ 08/Jun/16 ]

Can you please explain the issue in detail.

From the error log it seems it fails to find mysql driver.

Comment by Chathurika De Silva [ 08/Jun/16 ]

Hi Isuru

I have the mysql connector in <Product_Home>/repository/components/lib. There is no WSO2 ESB documentation to follow in this as well.
If you have such a sample documented, please be kind enough to point it to me, so I can verify my configs.

Thank You
Erandi





[ESBJAVA-3896] Sample 657 of distributed transaction management is not working properly Created: 13/Jul/15  Updated: 06/Aug/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.9.0 - Alpha
Fix Version/s: None

Type: Bug Priority: High
Reporter: Nayomi Dayarathne Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Pack : wso2esb-4.9.0-ALPHA3 - 22.06.2015 pack
Java version : Oracle jdk 1.7.0
DB Version : embedded H2
OS : Ubuntu 14.04 LTS


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

 Description   

Steps to recreate :

1.Create two data sources using management console.
2.Create two derby databases.
3.Insert values into tables as transaction mediator example.(https://docs.wso2.com/display/ESB490/Transaction+Mediator+Example)

4.Since there was no 657 synapse config file, copy the given synapse config to synapse.xml file in ESB_HOME/repository/samples/ location.

5.Invoke the clients as stated in document.

But when we invoke client using commands stated in document, nothing happening to values of database tables as stated.

The successful scenario and failure scenario are not effecting to any of the database table values we have created.






[ESBJAVA-4355] Required Transaction support for the RabbitMQ transport Created: 08/Dec/15  Updated: 11/Jul/17

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: High
Reporter: Krishan Malan Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: ESB, RabbitMQ, Transaction
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

In JMS, it is possible to do transactions with the following parameters, but in Rabbitmq transport couldn't find anything similar to this.
<parameter name="transport.jms.SessionTransacted">true</parameter>
<parameter name="transport.jms.SessionAcknowledgement" locked="true">CLIENT_ACKNOWLEDGE</parameter>

Also couldn't find any OOTB solution to do transaction sessions.

Please consider this in future development.



 Comments   
Comment by Senduran Balasubramaniyam [ 11/Jul/17 ]

Possible related issue: https://wso2.org/jira/browse/ESBJAVA-5059





[ESBJAVA-4353] Script mediator cannot handle messages bigger than 64kb Created: 07/Dec/15  Updated: 11/May/17

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.9.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: Jayanga Dissanayake Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

Script mediator cannot handle messages bigger than 64kb.
The Rhino engine converts the script to a method inside a Java class. Java has a limitation "code_lenght must be less than 65536" [1].

Because of the above mentioned reasons, Script mediator fails with [2].

[1] https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.9.1

[2]
TID: [-1234] [] [2015-11-24 12:28:28,936] ERROR

{org.apache.axis2.transport.base.threads.NativeWorkerPool} - Uncaught exception {org.apache.axis2.transport.base.threads.NativeWorkerPool}

java.lang.ClassFormatError: Invalid method Code length 76520 in class file org/mozilla/javascript/gen/c40445
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at org.mozilla.javascript.DefiningClassLoader.defineClass(DefiningClassLoader.java:62)
at org.mozilla.javascript.optimizer.Codegen.defineClass(Codegen.java:126)
at org.mozilla.javascript.optimizer.Codegen.createScriptObject(Codegen.java:81)
at org.mozilla.javascript.Context.compileImpl(Context.java:2361)
at org.mozilla.javascript.Context.compileReader(Context.java:1310)
at org.mozilla.javascript.Context.compileReader(Context.java:1282)
at org.mozilla.javascript.Context.evaluateReader(Context.java:1224)
at com.sun.phobos.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:172)



 Comments   
Comment by Ushani Balasooriya [ 11/May/17 ]

Increasing the priority since its occurrence is high.





[ESBJAVA-4199] zookeeper.session.timeout.ms and zookeeper.connection.timeout.ms parameters in kafka inbound endpoint are not working properly Created: 08/Sep/15  Updated: 06/Aug/16

Status: Open
Project: WSO2 ESB
Component/s: Inbound Endpoints
Affects Version/s: 4.9.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: Nayomi Dayarathne Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Pack : wso2esb-4.9.0-RC4
Java version : Oracle jdk 1.7.0
DB Version : embedded H2
OS : Ubuntu 14.04 LTS


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

 Description   

Create a kafka inbound endpoint and give values for zookeeper.session.timeout.ms and zookeeper.connection.timeout.ms parameters.

Timeouts are not performing within the given time durations.






[ESBJAVA-4200] FORCE_SC_ACCEPTED not working as expected when ESB cannot connect to the backend IP. Created: 08/Sep/15  Updated: 06/Aug/16

Status: Open
Project: WSO2 ESB
Component/s: Properties Management
Affects Version/s: 4.9.0 - RC2
Fix Version/s: None

Type: Bug Priority: High
Reporter: Sandapa Handakumbura Assignee: Nadeeshaan Gunasinghe
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Pack : WSO2 ESB-4.9.0-RC4 (standalone)
Java version : jdk1.8.0_45


Severity: Critical
Estimated Complexity: Moderate
Test cases added: Not-applicable

 Description   

When we invoke this proxy we do not get the 202 Accepted. This occurs only when the log mediator is present. When we remove the log mediator we get the 202 Accepted as expected.

<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="mypx"
transports="http https"
startOnLoad="true"
trace="disable">
<description/>
<target>
<inSequence>
<property name="OUT_ONLY" value="true" scope="default" type="STRING"/>
<property name="FORCE_SC_ACCEPTED"
value="true"
scope="axis2"
type="STRING"/>
<log>
<property name="**** IN ******" value="AAAAAAAAAAAAA"/>
</log>
<send>
<endpoint>
<address uri="http://10.10.10.10:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</inSequence>
</target>
</proxy>



 Comments   
Comment by Nadeeshaan Gunasinghe [ 06/Aug/16 ]

When sending the request content the thread will wait until it's been notified after submit request or any error occurred. After that the particular thread will be released according to the current implementation.





[ESBJAVA-4155] Fault sequence not invoked in tenant mode Created: 03/Sep/15  Updated: 06/Aug/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.9.0 - Beta
Fix Version/s: None

Type: Bug Priority: High
Reporter: Jason De Silva Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Pack : wso2esb-4.9.0-RC2.zip
Message broker - Apache activemq 5.12.0
OS: Ubuntu 14.04
JDK: 1.7.0_79
Browser : Google Chrome Version 43.0.2357.65 (64-bit)
Setup: Standalone


Attachments: XML File activemq.xml     XML File api.xml     XML File store.xml    
Severity: Major
Estimated Complexity: Moderate
Test cases added: No

 Description   

Steps
1. Create a user in activemq with read / write permissions ( this user does not have admin permission(queue creation) in activemq)
2. Disable anonymous access in activemq
3. Add the activemq jars to esb and create jms message store by giving credentials of the user created in step 1.
4. Create a Tenant and login to esb from that tenant
4. Create a simple api with "post" method and set the in sequence to the message store and set the fault sequence to the default fault sequence.
5. When the api is called the below exception is thrown which is correct but the fault sequence is not called.

In super tenant mode the exact scenario will invoke the fault sequence correctly.

[2015-09-03 18:59:57,743] ERROR - JmsStore Could not create a Message Producer for Store [NewRC1]. Error:User jason is not authorized to create: queue://idntink
javax.jms.JMSSecurityException: User jason is not authorized to create: queue://idntink
	at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:52)
	at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1398)
	at org.apache.activemq.ActiveMQSession.syncSendPacket(ActiveMQSession.java:2085)
	at org.apache.activemq.ActiveMQMessageProducer.<init>(ActiveMQMessageProducer.java:124)
	at org.apache.activemq.ActiveMQSession.createProducer(ActiveMQSession.java:1116)
	at org.apache.synapse.message.store.impl.jms.JmsStore.newProducer(JmsStore.java:361)
	at org.apache.synapse.message.store.impl.jms.JmsStore.getProducer(JmsStore.java:140)
	at org.apache.synapse.mediators.store.MessageStoreMediator.mediate(MessageStoreMediator.java:119)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
	at org.apache.synapse.rest.Resource.process(Resource.java:297)
	at org.apache.synapse.rest.API.process(API.java:378)
	at org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:97)
	at org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:65)
	at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:266)
	at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
	at org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.processRESTRequest(MultitenantMessageReceiver.java:611)
	at org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.doNhttpREST(MultitenantMessageReceiver.java:555)
	at org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.doREST(MultitenantMessageReceiver.java:366)
	at org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.processRequest(MultitenantMessageReceiver.java:224)
	at org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.receive(MultitenantMessageReceiver.java:78)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
	at org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:317)
	at org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:363)
	at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:142)
	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)
Caused by: java.lang.SecurityException: User jason is not authorized to create: queue://idntink
	at org.apache.activemq.security.AuthorizationBroker.addDestination(AuthorizationBroker.java:115)
	at org.apache.activemq.broker.MutableBrokerFilter.addDestination(MutableBrokerFilter.java:177)
	at org.apache.activemq.broker.region.RegionBroker.addProducer(RegionBroker.java:398)
	at org.apache.activemq.broker.jmx.ManagedRegionBroker.addProducer(ManagedRegionBroker.java:267)
	at org.apache.activemq.broker.BrokerFilter.addProducer(BrokerFilter.java:107)
	at org.apache.activemq.advisory.AdvisoryBroker.addProducer(AdvisoryBroker.java:188)
	at org.apache.activemq.broker.CompositeDestinationBroker.addProducer(CompositeDestinationBroker.java:56)
	at org.apache.activemq.broker.BrokerFilter.addProducer(BrokerFilter.java:107)
	at org.apache.activemq.broker.BrokerFilter.addProducer(BrokerFilter.java:107)
	at org.apache.activemq.broker.BrokerFilter.addProducer(BrokerFilter.java:107)
	at org.apache.activemq.security.AuthorizationBroker.addProducer(AuthorizationBroker.java:201)
	at org.apache.activemq.broker.MutableBrokerFilter.addProducer(MutableBrokerFilter.java:112)
	at org.apache.activemq.broker.TransportConnection.processAddProducer(TransportConnection.java:618)
	at org.apache.activemq.command.ProducerInfo.visit(ProducerInfo.java:108)
	at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:338)
	at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:188)
	at org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)
	at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
	at org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(AbstractInactivityMonitor.java:300)
	at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
	at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:214)
	at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)
	... 1 more
[2015-09-03 18:59:57,746]  WARN - JmsProducer [NewRC1-P-2]. Ignored MessageID : urn:uuid:3b254fc3-8979-4829-85e9-05b7383ff84d
[2015-09-03 18:59:57,746] ERROR - MessageStoreMediator Failed to store message [urn:uuid:aecb1192-a044-4b7b-aea1-abe49b81951c] in store [NewRC1].
[2015-09-03 18:59:57,746] ERROR - bbb Failed to store message [urn:uuid:aecb1192-a044-4b7b-aea1-abe49b81951c] in store [NewRC1].
[2015-09-03 18:59:57,747]  INFO - LogMediator To: local://axis2services/aaa, MessageID: urn:uuid:aecb1192-a044-4b7b-aea1-abe49b81951c, Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><text xmlns="http://ws.apache.org/commons/ns/payload">abdef</text></soapenv:Body></soapenv:Envelope>
[2015-09-03 19:02:57,929]  WARN - SourceHandler Connection time out after request is read: http-incoming-3


 Comments   
Comment by Jason De Silva [ 03/Sep/15 ]

Attached the activemq.xml xml (broker user configuration) and the ESB api and store configurations.





[ESBJAVA-4125] Creating a secondary ldap user store in read only mode fails to authenticate users Created: 27/Aug/15  Updated: 09/Aug/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.9.0 - Beta
Fix Version/s: None

Type: Bug Priority: High
Reporter: Jason De Silva Assignee: Jason De Silva
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Pack : wso2esb-4.9.0-RC1.zip
ldap : default wso2is-5.0.0 with sp
OS: Ubuntu 14.04
JDK: 1.7.0_79
Browser : Google Chrome Version 43.0.2357.65 (64-bit)
Setup: Standalone


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

 Description   

Steps
1. Started WSO2 IS500 with SP with port off set to use as the ldap user store
2. Created secondary read only ldap user store in esb by filling mandatory fields pointing to IS ldap
3. The secondary user store was created successfully and the ldap users were shown.
4. Login to ESB with the a secondary user store user after applying login and home page permission for the internal/everyone user role

Issue - invalid user name / password popup is shown

Enabled debug log and found the below exception

javax.naming.directory.InvalidSearchFilterException: Unbalanced parenthesis; remaining name 'ou=Users,dc=WSO2,dc=ORG'
	at com.sun.jndi.ldap.Filter.findRightParen(Filter.java:694)
	at com.sun.jndi.ldap.Filter.encodeFilterList(Filter.java:733)
	at com.sun.jndi.ldap.Filter.encodeComplexFilter(Filter.java:657)
	at com.sun.jndi.ldap.Filter.encodeFilter(Filter.java:104)
	at com.sun.jndi.ldap.Filter.encodeFilterString(Filter.java:74)
	at com.sun.jndi.ldap.LdapClient.search(LdapClient.java:547)
	at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1985)
	at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1847)
	at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1772)
	at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:386)
	at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:356)
	at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:339)
	at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:267)
	at org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager.getNameInSpaceForUserName(ReadOnlyLDAPUserStoreManager.java:2047)
	at org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager.getNameInSpaceForUserName(ReadOnlyLDAPUserStoreManager.java:2015)
	at org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager.doAuthenticate(ReadOnlyLDAPUserStoreManager.java:409)
	at org.wso2.carbon.user.core.common.AbstractUserStoreManager.authenticate(AbstractUserStoreManager.java:419)
	at org.wso2.carbon.user.core.common.AbstractUserStoreManager.authenticate(AbstractUserStoreManager.java:375)
	at org.wso2.carbon.user.core.common.AbstractUserStoreManager.authenticate(AbstractUserStoreManager.java:358)
	at org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:100)
	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.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.authenticator.stub.AuthenticationAdminStub.login(AuthenticationAdminStub.java:659)
	at org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient.login(AuthenticationAdminClient.java:64)
	at org.wso2.carbon.ui.DefaultCarbonAuthenticator.doAuthentication(DefaultCarbonAuthenticator.java:119)
	at org.wso2.carbon.ui.AbstractCarbonUIAuthenticator.handleSecurity(AbstractCarbonUIAuthenticator.java:218)
	at org.wso2.carbon.ui.BasicAuthUIAuthenticator.authenticate(BasicAuthUIAuthenticator.java:83)
	at org.wso2.carbon.ui.CarbonUILoginUtil.handleLogin(CarbonUILoginUtil.java:377)
	at org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(CarbonSecuredHttpContext.java:244)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:60)
	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.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: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)
TID: [-1234] [] [2015-08-27 14:56:20,018] DEBUG {org.wso2.carbon.user.core.common.AbstractUserStoreManager} -  Authentication failure. Wrong username or password is provided. {org.wso2.carbon.user.core.common.AbstractUserStoreManager}



 Comments   
Comment by Jason De Silva [ 27/Aug/15 ]

Uploaded the config file(recreate.xml) created for the secondary user store and observed that below elements have an "amp" removing that and restated the server led ldap users also to successfully login

<Property name="UserNameSearchFilter">(&amp;amp;(objectClass=person)(uid=?))</Property>
<Property name="GroupNameSearchFilter">(&amp;amp;(objectClass=groupOfNames)(cn=?))</Property>
Comment by Chanaka Fernando [ 09/Aug/16 ]

Can you check with ESB 5.0.0 RC2 pack and let us know the result?





[ESBJAVA-3837] RequestSecurityTokenTemplate from IssuedToken policy isn't used Created: 22/Jun/15  Updated: 06/Aug/16

Status: Open
Project: WSO2 ESB
Component/s: Core Engine, Registry
Affects Version/s: 4.8.1
Fix Version/s: None

Type: Bug Priority: High
Reporter: Alexey Smirnov Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: ESB, IS
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

RedHat Linux


Attachments: File STS.rar     XML File STSPolicy.xml    
Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

We use STS in WSO2 IS to secure echo service on WSO2ESB. We use non-secure NewTestSTS proxy (attached in archive STS.rar) to access this secured service. STSPolicy.xml (attached) is used to secure echo service. It's stored in configuration registry (or can be stored in governance registry).
First attempt of service call works fine, STS is being got from WSO2IS and is sent to echo service. But all the following attempts end with error "Requested KeyType is missing" on the IS side.
In debug log of ESB we see this message:
[2015-06-22 17:02:12,051] DEBUG - Using RSTTemplate: <spn:RequestSecurityTokenTemplate xmlns:spn="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" xmlns:t="http://schemas.xmlsoap.org/ws/2005/02/trust">

</spn:RequestSecurityTokenTemplate>

{org.apache.rahas.client.STSClient}

After re-saving of policy, service call can be performed again






[ESBJAVA-5064] SOAP to JSON Integration broken with JSONStreamBuilder/Formatter Created: 29/Mar/17  Updated: 29/Mar/17

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: dushan abeyruwan Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Severity: Blocker
Estimated Complexity: Novice
Test cases added: Yes

 Description   

Just test with simple scenario with the following proxy, The BE must be JSON, and client should be SOAP

<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="WorkflowCallbackService"
       transports="https http"
       startOnLoad="true"
       trace="disable">
   <description/>
   <target>
      <inSequence>
         <property name="messageType"
                   value="application/x-www-form-urlencoded"
                   scope="axis2"
                   type="STRING"/>
         <send>
            <endpoint>
               <address uri="https://localhost:9443/store/site/blocks/workflow/workflow-listener/ajax/workflow-listener.jag"
                        format="rest"/>
            </endpoint>
         </send>
      </inSequence>
      <outSequence>
         <property name="messageType" value="text/xml" scope="axis2" type="STRING"/>
         <send/>
      </outSequence>
   </target>
</proxy>
[19:46:51,245{GMT}] DEBUG - headers http-outgoing-2 >> Connection: Keep-Alive
[19:46:51,245{GMT}] DEBUG - headers http-outgoing-2 >> User-Agent: Synapse-PT-HttpComponents-NIO
[19:46:51,245{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 << "POST /foo HTTP/1.1[\r][\n]"
[19:46:51,245{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 << "Content-Type: application/x-www-form-urlencoded[\r][\n]"
[19:46:51,245{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 << "SOAPAction: urn:getFullQuote[\r][\n]"
[19:46:51,245{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 << "Transfer-Encoding: chunked[\r][\n]"
[19:46:51,246{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 << "Host: localhost:8080[\r][\n]"
[19:46:51,246{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 << "Connection: Keep-Alive[\r][\n]"
[19:46:51,246{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 << "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
[19:46:51,246{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 << "[\r][\n]"
[19:46:51,246{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 << "74[\r][\n]"
[19:46:51,246{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 << "request=%0A%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20[\r][\n]"
[19:46:51,247{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 << "0[\r][\n]"
[19:46:51,247{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 << "[\r][\n]"
[19:46:51,254{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 >> "HTTP/1.1 200 OK[\r][\n]"
[19:46:51,254{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 >> "Content-Type: application/json[\r][\n]"
[19:46:51,254{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 >> "Transfer-Encoding: chunked[\r][\n]"
[19:46:51,254{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 >> "Server: Jetty(6.1.26)[\r][\n]"
[19:46:51,254{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 >> "[\r][\n]"
[19:46:51,254{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 >> "35[\r][\n]"
[19:46:51,254{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 >> "{"workflowCallbackResponse" : {"error" : "false"}}   [\r][\n]"
[19:46:51,254{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 >> "0[\r][\n]"
[19:46:51,254{GMT}] DEBUG - wire HTTP-Sender I/O dispatcher-1 >> "[\r][\n]"
[19:46:51,254{GMT}] DEBUG - headers http-outgoing-2 << HTTP/1.1 200 OK
[19:46:51,255{GMT}] DEBUG - headers http-outgoing-2 << Content-Type: application/json
[19:46:51,255{GMT}] DEBUG - headers http-outgoing-2 << Transfer-Encoding: chunked
[19:46:51,255{GMT}] DEBUG - headers http-outgoing-2 << Server: Jetty(6.1.26)
[19:46:51,256{GMT}]  INFO - LogMediator To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , MessageID: urn:uuid:c9265bc9-1993-47c4-a93f-e16d86bf9e77, Direction: response, sss = ssss222222, Payload: {"workflowCallbackResponse" : {"error" : "false"}}
[19:46:51,257{GMT}] ERROR - PassThroughHttpSender Failed to submit the response
org.apache.axis2.AxisFault: Can not output XML declaration, after other output has already been done.
	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
	at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:78)
	at org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:555)
	at org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:264)
	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
	at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:222)
	at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:531)
	at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:118)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator






[ESBJAVA-5003] Errors when executing identity migration client scripts for ESB 481/490 to 500 migration Created: 24/Jan/17  Updated: 25/Jan/17

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 5.0.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: Sashika Wijesinghe Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS - Ubuntu
DB - mysql 5.6


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

 Description   

Observed below "table not found" exception when upgrading the user management database schema in ESB481 to ESB500 migration using the "-Dmigrate -DmigrateUMData -Dcomponent=identity" command as mentioned in [1].

[2017-01-24 11:57:51,560]  INFO - RuleEngineConfigDS Successfully registered the Rule Config service
[2017-01-24 11:57:51,603] ERROR - MigrateFrom5to510 Error while migrating databases
org.wso2.carbon.identity.base.IdentityException: Error while migrating user management data
	at org.wso2.carbon.identity.base.IdentityException.error(IdentityException.java:162)
	at org.wso2.carbon.is.migration.client.MigrateFrom5to510.migrateUMData(MigrateFrom5to510.java:655)
	at org.wso2.carbon.is.migration.client.MigrateFrom5to510.databaseMigration(MigrateFrom5to510.java:197)
	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.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent.activate(IdentityCoreServiceComponent.java:119)
	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.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
	at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
	at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
	at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
	at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
	at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
	at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
	at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:514)
	at org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
	at org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:94)
	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.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
	at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
	at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
	at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
	at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
	at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
	at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
	at org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81)
	at org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40)
	at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38)
	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1282)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1195)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1085)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5318)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5610)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	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)
Caused by: org.h2.jdbc.JdbcSQLException: Table "SP_APP" not found; SQL statement:
SELECT APP_NAME, TENANT_ID FROM SP_APP [42102-140]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
	at org.h2.message.DbException.get(DbException.java:167)
	at org.h2.message.DbException.get(DbException.java:144)
	at org.h2.command.Parser.readTableOrView(Parser.java:4498)
	at org.h2.command.Parser.readTableFilter(Parser.java:1011)
	at org.h2.command.Parser.parseSelectSimpleFromPart(Parser.java:1577)
	at org.h2.command.Parser.parseSelectSimple(Parser.java:1682)
	at org.h2.command.Parser.parseSelectSub(Parser.java:1571)
	at org.h2.command.Parser.parseSelectUnion(Parser.java:1416)
	at org.h2.command.Parser.parseSelect(Parser.java:1404)
	at org.h2.command.Parser.parsePrepared(Parser.java:392)
	at org.h2.command.Parser.parse(Parser.java:275)
	at org.h2.command.Parser.parse(Parser.java:247)
	at org.h2.command.Parser.prepare(Parser.java:201)
	at org.h2.command.Parser.prepareCommand(Parser.java:214)
	at org.h2.engine.Session.prepareLocal(Session.java:434)
	at org.h2.engine.Session.prepareCommand(Session.java:384)
	at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1071)
	at org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:71)
	at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:234)
	at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126)
	at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
	at org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51)
	at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
	at org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:67)
	at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
	at org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153)
	at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
	at org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41)
	at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
	at org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:80)
	at com.sun.proxy.$Proxy18.prepareStatement(Unknown Source)
	at org.wso2.carbon.is.migration.client.MigrateFrom5to510.migrateUMData(MigrateFrom5to510.java:637)
	... 66 more

db scripts included in the "migration-5.0.0SP1_to_5.1.0" directory contains some alter statements for "SP_APP" table, but could not find a create table query.

Note: Verified the dbscripts in IS500 SP1 pack and it contains the SP_APP create table query.

[1] https://docs.wso2.com/display/ESB500/Upgrading+from+a+Previous+Release






[ESBJAVA-5032] ESB using a large heap memory when processing files through VFS proxy, using an iterator mediator Created: 01/Mar/17  Updated: 01/Mar/17

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: High
Reporter: Sameera Ramasinghe Assignee: Chanaka Fernando
Resolution: Unresolved 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   

When trying to process files > 200mb through a VFS proxy, which uses an iterator mediator. If the number of tags in the input xml, matching the iterator expression is too large, a java heap OOM exception occurs.






[ESBJAVA-5015] java.util.EmptyStackException Created: 09/Feb/17  Updated: 09/Feb/17

Status: Open
Project: WSO2 ESB
Component/s: Mediators, Message Processors, Message Stores, Sequences Management
Affects Version/s: 4.8.1
Fix Version/s: None

Type: Bug Priority: High
Reporter: Nagamohan Borra Assignee: Chanaka Fernando
Resolution: Unresolved 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   

We have a cluster of ESB servers and each server has a message store pointing to same JMS queue. Each server has a message processor for each message store configured.

Before we have two ESB servers and everything was fine but when we deploy the same code to another X servers then previous applications got affected .

here by iam giving the wso2-error-log found .

2017-01-27 19:29:22,087 [-] [Axis2 Task] ERROR AsyncCallback
java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:102)
at org.apache.synapse.continuation.ContinuationStackManager.addReliantContinuationState(ContinuationStackManager.java:103)
at org.apache.synapse.mediators.eip.splitter.CloneMediator.mediate(CloneMediator.java:100)
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.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:166)
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.apache.axis2.transport.local.LocalTransportSender.finalizeSendWithToAddress(LocalTransportSender.java:102)
at org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
at org.apache.axis2.engine.AxisEngine$TransportNonBlockingInvocationWorker.run(AxisEngine.java:626)
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)






[ESBJAVA-4987] HTTP request with a query string parameter is routed to an incorrect API resource Created: 02/Jan/17  Updated: 27/Jun/17

Status: In Progress
Project: WSO2 ESB
Component/s: None
Affects Version/s: 5.0.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: Jarkko Kallio Assignee: Chanika Geeganage
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Alpinelinux
jdk-8u102


Attachments: XML File test-api.xml    
Severity: Major
Estimated Complexity: Unknown
Test cases added: Yes

 Description   

GIVEN attached API configuration
WHEN curl -X GET "http://localhost:8280/test-api/test?param=fuu"
THEN resource with /test?param=

{param}

should run

Instead the request is routed to the resource WITHOUT the query string parameter.



 Comments   
Comment by Chanika Geeganage [ 27/Jun/17 ]

According to the current code implementation,

1. At the deployment type all the resources are kept in a LinkedHashMap in the order of they are appeared in the API
2. At the request time, it first check whether each resource in the map are in the state of 'can process' (the protocol of the incoming request and the resource's protocol are same, the methods are same.. etc). As both the resources are in that condition, it passes.
3. Then out of all 'can process' resources, it first get the resource which matches based on the URLMappingBasedDispatcher, next URITemplateBasedDispatcher and finally DefaultDispatcher. As both the resources are under URITemplateBasedDispatcher, there is no difference on that.
4. Therefore, the first resource which matches all those conditions will be executed.





[ESBJAVA-4897] VFS InboundEndpoint onError/Exception Created: 15/Sep/16  Updated: 15/Sep/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.9.0, 5.0.0
Fix Version/s: None

Type: Improvement Priority: High
Reporter: Malaka Silva Assignee: Chanaka Fernando
Resolution: Unresolved 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   

Hi,
We are using an inbound endpoint to pull from a sftp location.
We have set the attributes 'sequence' and 'onError' to point at different sequences.
We have specified the Content-Type as application/xml.
When something is successfully pulled from the file location, we expect the `sequence` sequence to be used, when a failure occurs, we expect the `onError` sequence to be used.
When adding xml to the sftp, the inbound endpoint passes the payload to `sequence` but if we add something else (eg. json or malformed xml) to the location, we see an exception thrown on the ESB but the `onError` sequence is not used. This also results in us losing the message entirely.
Could you tell my why the onError sequence isn't used when this failure occurs and so that we can capture and deal with this kind of fault.
I have attached the inbound-endpoint and the exception from esb.

Thanks,
Malaka






[ESBJAVA-4889] Issue In Sending Message through HAPi Test Panel Created: 09/Sep/16  Updated: 09/Sep/16

Status: Open
Project: WSO2 ESB
Component/s: Mediators
Affects Version/s: 5.0.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: Amutheezan Sivagnanam Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: ESB
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Severity: Major
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0
Test cases added: Yes

 Description   

When I tried to send Messages using HAPi Test Panel, It shows following error
[2016-09-09 09:22:46,573] ERROR - ApplicationRouterImpl Attempting to send error message to remote system.
ca.uhn.hl7v2.HL7Exception: java.lang.NoClassDefFoundError: org/wso2/carbon/bam/data/publisher/util/PublisherUtil
at ca.uhn.hl7v2.protocol.impl.ApplicationRouterImpl.processMessage(ApplicationRouterImpl.java:157)
at ca.uhn.hl7v2.protocol.impl.ApplicationRouterImpl.processMessage(ApplicationRouterImpl.java:79)
at ca.uhn.hl7v2.app.Responder.processMessage(Responder.java:90)
at ca.uhn.hl7v2.app.Receiver$Grunt.run(Receiver.java:121)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
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)
Caused by: java.lang.NoClassDefFoundError: org/wso2/carbon/bam/data/publisher/util/PublisherUtil
at org.wso2.carbon.business.messaging.hl7.common.data.conf.HL7MessagePublisherConfig.createMessage(HL7MessagePublisherConfig.java:55)
at org.wso2.carbon.business.messaging.hl7.common.HL7ProcessingContext.publishMessage(HL7ProcessingContext.java:315)
at org.wso2.carbon.business.messaging.hl7.common.HL7ProcessingContext.initMessageContext(HL7ProcessingContext.java:302)
at org.wso2.carbon.business.messaging.hl7.transport.utils.HL7MessageProcessor.processMessage(HL7MessageProcessor.java:96)
at ca.uhn.hl7v2.protocol.impl.AppWrapper.processMessage(AppWrapper.java:40)
at ca.uhn.hl7v2.protocol.impl.ApplicationRouterImpl.processMessage(ApplicationRouterImpl.java:146)
... 8 more
Caused by: java.lang.ClassNotFoundException: org.wso2.carbon.bam.data.publisher.util.PublisherUtil cannot be found by org.wso2.carbon.business.messaging.hl7.common_4.6.6
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 14 more

[2016-09-09 09:25:30,237] ERROR - ApplicationRouterImpl Attempting to send error message to remote system.
ca.uhn.hl7v2.HL7Exception: java.lang.NoClassDefFoundError: org/wso2/carbon/bam/data/publisher/util/PublisherUtil
at ca.uhn.hl7v2.protocol.impl.ApplicationRouterImpl.processMessage(ApplicationRouterImpl.java:157)
at ca.uhn.hl7v2.protocol.impl.ApplicationRouterImpl.processMessage(ApplicationRouterImpl.java:79)
at ca.uhn.hl7v2.app.Responder.processMessage(Responder.java:90)
at ca.uhn.hl7v2.app.Receiver$Grunt.run(Receiver.java:121)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
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)
Caused by: java.lang.NoClassDefFoundError: org/wso2/carbon/bam/data/publisher/util/PublisherUtil
at org.wso2.carbon.business.messaging.hl7.common.data.conf.HL7MessagePublisherConfig.createMessage(HL7MessagePublisherConfig.java:55)
at org.wso2.carbon.business.messaging.hl7.common.HL7ProcessingContext.publishMessage(HL7ProcessingContext.java:315)
at org.wso2.carbon.business.messaging.hl7.common.HL7ProcessingContext.initMessageContext(HL7ProcessingContext.java:302)
at org.wso2.carbon.business.messaging.hl7.transport.utils.HL7MessageProcessor.processMessage(HL7MessageProcessor.java:96)
at ca.uhn.hl7v2.protocol.impl.AppWrapper.processMessage(AppWrapper.java:40)
at ca.uhn.hl7v2.protocol.impl.ApplicationRouterImpl.processMessage(ApplicationRouterImpl.java:146)
... 8 more



 Comments   
Comment by Amutheezan Sivagnanam [ 09/Sep/16 ]

It worked sucessfully when,
1. Clone the repository https://github.com/wso2/carbon-mediation/tree/v4.6.6
2. Go to <dir>/component/business-adaptors/hl7/org.wso2.carbon.business.messaging.hl7.common/main/java/org/wso2/carbon/business/messaging/hl7/common/data/conf/ and edit HL7MessagePublisherConfig.java file, by replacing bam by das
that is include import org.wso2.carbon.das.data.publisher.util.PublisherUtil; instead of import org.wso2.carbon.bam.data.publisher.util.PublisherUtil;
then edit the pom.xml related to <dir>/component/business-adaptors/hl7/org.wso2.carbon.business.messaging.hl7.common/
by adding dependency for das
<dependency>
<groupId>org.wso2.carbon.mediation</groupId>
<artifactId>org.wso2.carbon.das.data.publisher.util</artifactId>
</dependency>
instead of
<dependency>
<groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.bam.data.publisher.util</artifactId>
</dependency>
3. Then build the total project and get the required jar file for the patch, and added patch to your downloaded ESB directory and restart the ESB Server.





[ESBJAVA-4881] Error trying to consume message from message store Created: 01/Sep/16  Updated: 01/Sep/16

Status: Open
Project: WSO2 ESB
Component/s: Message Processors, Message Stores
Affects Version/s: 5.0.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: Joao Melo Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: ESB, MB
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

I'm using WSO2 ESB 5.0 with MB as a feature, on the same instance.

I'm getting an error StorableMessage cannot be found:

[2016-09-01 14:35:38,739] ERROR - SourceHandler I/O error: Foi forçado o cancelamento de uma conexão existente pelo host remoto
java.io.IOException: Foi forçado o cancelamento de uma conexão existente pelo host remoto
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:225)
at sun.nio.ch.IOUtil.read(IOUtil.java:198)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:359)
at org.apache.http.impl.nio.reactor.SessionInputBufferImpl.fill(SessionInputBufferImpl.java:164)
at org.apache.http.impl.nio.codecs.AbstractMessageParser.fillBuffer(AbstractMessageParser.java:136)
at org.apache.synapse.transport.http.conn.LoggingNHttpServerConnection$LoggingNHttpMessageParser.fillBuffer(LoggingNHttpServerConnection.java:379)
at org.apache.http.impl.nio.DefaultNHttpServerConnection.consumeInput(DefaultNHttpServerConnection.java:261)
at org.apache.synapse.transport.http.conn.LoggingNHttpServerConnection.consumeInput(LoggingNHttpServerConnection.java:112)
at org.apache.synapse.transport.passthru.ServerIODispatch.onInputReady(ServerIODispatch.java:82)
at org.apache.synapse.transport.passthru.ServerIODispatch.onInputReady(ServerIODispatch.java:39)
at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:113)
at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:159)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:338)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:316)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:277)
at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:105)
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:586)
at java.lang.Thread.run(Thread.java:722)
[2016-09-01 14:35:41,794] ERROR - JmsConsumer [msg-store-C-1] cannot receive message from store. Error:Could not deserialize message: java.lang.ClassNotFoundException: org.apache.synapse.message.store.impl.commons.StorableMessage cannot be found by andes_3.1.1
[2016-09-01 14:35:41,796] INFO - ChannelCloseHandler Received channel close for id 1 citing class 0 and method 0

Probably It's missing some .jar on lib, or it has wrong version, but I have no idea which is.






[ESBJAVA-4874] Unable to recover Local Registry in Script Mediator Created: 30/Aug/16  Updated: 30/Aug/16

Status: Open
Project: WSO2 ESB
Component/s: Registry
Affects Version/s: 4.9.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: Joao Melo Assignee: Chanaka Fernando
Resolution: Unresolved 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   

Scenario: carbonContext.getRegistry(RegistryType.LOCAL_REPOSITORY) returns null.

I've a sequence with the following script code:

<sequence name="scenario-sequence" trace="disable" xmlns="http://ws.apache.org/ns/synapse">
<script language="js"><![CDATA[
importPackage(Packages.org.wso2.carbon.context);
importPackage(Packages.org.wso2.carbon.registry.api);

var carbonContext = CarbonContext.getThreadLocalCarbonContext();
var registry = carbonContext.getRegistry(RegistryType.LOCAL_REPOSITORY);

if (registry == null)
mc.getServiceLog().info("+++++ Fail! Unable to recover Local Registry in Script Mediator ");
else
mc.getServiceLog().info("+++++ Success! I love WSO2 ESB! ");
]]></script>
</sequence>

The problem is that depending on "who" is calling the scenario sequence, getRegistry returns a null instance.
Through a service proxy, it's all good:
<proxy name="file-listener-test-proxy"
startOnLoad="true" trace="disable" transports="vfs" xmlns="http://ws.apache.org/ns/synapse">
<target>
<inSequence>
<sequence key="scenario-sequence"/>
</inSequence>
<outSequence/>
<faultSequence/>
</target>
<parameter name="transport.vfs.FileURI">file:///C:/TEMP/WSO2/integrator/in</parameter>
<parameter name="transport.vfs.ContentType">application/xml</parameter>
<parameter name="transport.vfs.FileNamePattern">.*\.xml</parameter>
</proxy>

Through a service proxy, it's not ok:
<messageProcessor
class="org.apache.synapse.message.processor.impl.sampler.SamplingProcessor"
messageStore="request-msg-store"
name="request-msg-processor" xmlns="http://ws.apache.org/ns/synapse">
<parameter name="sequence">scenario-sequence</parameter>
<parameter name="interval">1</parameter>
<parameter name="is.active">true</parameter>
<parameter name="concurrency">1</parameter>
</messageProcessor>



 Comments   
Comment by Joao Melo [ 30/Aug/16 ]

typo at description:
Through a message processor, it's not ok:





[ESBJAVA-4866] WSO2ESB js script mediator error on big payload Created: 23/Aug/16  Updated: 23/Aug/16

Status: Open
Project: WSO2 ESB
Component/s: Mediators
Affects Version/s: 4.9.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: andrey ivanov Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

win


Severity: Major
Estimated Complexity: Moderate

 Description   

have a seq (WSO2ESb 4.9) calls REST and receives JSON. Then I map JSON to XML via script mediator (JS), here is my configuration:

<case regex="urn:mta:navigation:getMarshes">
<property xmlns:ns="http://ws.apache.org/ns/synapse" name="uri.var.service"
value="getMarshes" scope="default" type="STRING" />
<call>
<endpoint key="adapter.navigation.asu.GetData.Endpoint" />
</call>
<script language="js"><![CDATA[
var array = mc.getPayloadJSON();
var payload = <getMarshesRS/>;

for (i = 0; i < array.length; ++i) {
var elem = array[i];
payload.Marshes += <marsh id=

{elem.mr_id}

num=

{elem.mr_num}

title=

{elem.mr_title}

note=

{elem.mr_note}

mt_id=

{elem.mrt_id}

/>
}
mc.setPayloadXML(payload);
]]></script>
</case>
If I receive not much objects from REST service (10 for example), it works fine. But if I receive 1280 objects, I have an exception

[2016-08-23 16:31:35,799] ERROR - Uncaught exception

{org.apache.axis2.transport.base.threads.NativeWorkerPool}

java.lang.ClassFormatError: Invalid method Code length 186472 in class file org/mozilla/javascript/gen/c187 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:763) at org.mozilla.javascript.DefiningClassLoader.defineClass(DefiningClassLoader.java:62) at org.mozilla.javascript.optimizer.Codegen.defineClass(Codegen.java:126) at org.mozilla.javascript.optimizer.Codegen.createScriptObject(Codegen.java:81) at org.mozilla.javascript.Context.compileImpl(Context.java:2361) at org.mozilla.javascript.Context.compileReader(Context.java:1310) at org.mozilla.javascript.Context.compileReader(Context.java:1282) at org.mozilla.javascript.Context.evaluateReader(Context.java:1224) at com.sun.phobos.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:172) at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249) at org.apache.synapse.mediators.bsf.ScriptMediator.processJSONPayload(ScriptMediator.java:322) at org.apache.synapse.mediators.bsf.ScriptMediator.mediateForInlineScript(ScriptMediator.java:294) at org.apache.synapse.mediators.bsf.ScriptMediator.invokeScript(ScriptMediator.java:239) at org.apache.synapse.mediators.bsf.ScriptMediator.mediate(ScriptMediator.java:207) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81) at org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:178) at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:267) at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:679) at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:244) at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529) at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247) at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) 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)






[ESBJAVA-5210] [RabbitMQ] Publisher caching feature is needed to provide high TPS rates Created: 08/Aug/17  Updated: 15/Aug/17

Status: Open
Project: WSO2 ESB
Component/s: RabbitMQ Transport
Affects Version/s: 4.9.0
Fix Version/s: None

Type: New Feature Priority: High
Reporter: Jason De Silva Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Severity: Major
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0
Test cases added: Yes

 Description   

Currently, there is no publisher caching feature when ESB publishes as a RabbitMQ producer. This results in lower rate of tps due to connections are created for each message produced. Hence connection caching will help to achieve high tps numbers.






[ESBJAVA-5209] Shows an error which doesn't helpful to figure out exact reason when backend returns "401 Unauthorized" Created: 07/Aug/17  Updated: 15/Aug/17

Status: Open
Project: WSO2 ESB
Component/s: Security
Affects Version/s: 5.0.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: Asanka Vithanage Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

Steps:
1. Try to invoke the secured DSS service without providing the required Credential

Issue:
ESB shows following exception[1] which doesn't give actual reason of the exception. Once we enable the wire log It shows the details required to figure out actual error. See wire log [2]

[1]
[2017-08-07 14:32:44,049] ERROR - RelaySecuirtyMessageBuilderDispatchandler Error while executing the message at relaySecurity handler
java.lang.NullPointerException
at org.apache.axis2.handlers.addressing.AddressingInHandler.doInvoke(AddressingInHandler.java:129)
at org.apache.axis2.handlers.AbstractTemplatedHandler.invoke(AbstractTemplatedHandler.java:44)
at org.apache.synapse.transport.passthru.util.RelayUtils.processAddressing(RelayUtils.java:200)
at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:155)
at org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:100)
at org.apache.synapse.transport.passthru.util.RelaySecuirtyMessageBuilderDispatchandler.build(RelaySecuirtyMessageBuilderDispatchandler.java:166)
at org.apache.synapse.transport.passthru.util.RelaySecuirtyMessageBuilderDispatchandler.invoke(RelaySecuirtyMessageBuilderDispatchandler.java:102)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:261)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[2017-08-07 14:32:44,051] ERROR - NativeWorkerPool Uncaught exception
java.lang.NullPointerException
at org.apache.axis2.handlers.addressing.AddressingInHandler.doInvoke(AddressingInHandler.java:129)
at org.apache.axis2.handlers.AbstractTemplatedHandler.invoke(AbstractTemplatedHandler.java:44)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:261)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

[2]
[2017-08-07 14:32:44,040] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "POST /services/ABC_v1.1/ HTTP/1.1[\r][\n]"
[2017-08-07 14:32:44,042] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "Authorization: Basic Og==[\r][\n]"
[2017-08-07 14:32:44,042] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "Accept-Encoding: gzip,deflate[\r][\n]"
[2017-08-07 14:32:44,042] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "Content-Type: application/soap+xml;action="urn:searchPharmacies"; charset=UTF-8[\r][\n]"
[2017-08-07 14:32:44,042] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "Transfer-Encoding: chunked[\r][\n]"
[2017-08-07 14:32:44,042] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "Host: localhost:9444[\r][\n]"
[2017-08-07 14:32:44,042] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "Connection: Keep-Alive[\r][\n]"
[2017-08-07 14:32:44,042] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
[2017-08-07 14:32:44,043] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "[\r][\n]"
[2017-08-07 14:32:44,043] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "39c[\r][\n]"
[2017-08-07 14:32:44,043] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><v1:searchPharmacies xmlns:v1="http://service.wso2.com/dataservices/ABC/v1/"><v1:memberId/><v1:Id>A </v1:Id><v1:City/><v1:State/><v1:ZipCode/><v1:clientCode/><v1:BenefitPlanId>MDLBCBSALX</v1:BenefitPlanId><v1:esnNetworkID/><v1:MinLatitude>44.72642964902131</v1:MinLatitude><v1:MaxLatitude>45.01628472148508</v1:MaxLatitude><v1:MinLongitude>-93.40020151506295</v1:MinLongitude><v1:MaxLongitude>-92.9912018115565</v1:MaxLongitude><v1:carrierID>22</v1:carrierID><v1:vaccineNetwork>PTVAC</v1:vaccineNetwork><v1:info>EIS</v1:info><v1:log>N</v1:log><v1:futureDate>2117-0712</v1:futureDate></v1:searchPharmacies></soapenv:Body></soapenv:Envelope>[\r][\n]"
[2017-08-07 14:32:44,043] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "0[\r][\n]"
[2017-08-07 14:32:44,043] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "[\r][\n]"
[2017-08-07 14:32:44,046] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "HTTP/1.1 401 Unauthorized[\r][\n]"
[2017-08-07 14:32:44,046] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "X-Frame-Options: DENY[\r][\n]"
[2017-08-07 14:32:44,046] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "X-Content-Type-Options: nosniff[\r][\n]"
[2017-08-07 14:32:44,046] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "X-XSS-Protection: 1; mode=block[\r][\n]"
[2017-08-07 14:32:44,046] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "WWW-Authenticate: BASIC realm="WSO2 Data Services Server"[\r][\n]"
[2017-08-07 14:32:44,046] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "Content-Type: text/html;charset=UTF-8[\r][\n]"
[2017-08-07 14:32:44,047] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "Content-Length: 0[\r][\n]"
[2017-08-07 14:32:44,047] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "Date: Mon, 07 Aug 2017 19:32:44 GMT[\r][\n]"
[2017-08-07 14:32:44,047] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "Server: WSO2 Carbon Server[\r][\n]"
[2017-08-07 14:32:44,047] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "[\r][\n]"
[2017-08-07 14:32:44,049] ERROR - RelaySecuirtyMessageBuilderDispatchandler Error while executing the message at relaySecurity handler
java.lang.NullPointerException
at org.apache.axis2.handlers.addressing.AddressingInHandler.doInvoke(AddressingInHandler.java:129)
at org.apache.axis2.handlers.AbstractTemplatedHandler.invoke(AbstractTemplatedHandler.java:44)
at org.apache.synapse.transport.passthru.util.RelayUtils.processAddressing(RelayUtils.java:200)
at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:155)
at org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:100)
at org.apache.synapse.transport.passthru.util.RelaySecuirtyMessageBuilderDispatchandler.build(RelaySecuirtyMessageBuilderDispatchandler.java:166)
at org.apache.synapse.transport.passthru.util.RelaySecuirtyMessageBuilderDispatchandler.invoke(RelaySecuirtyMessageBuilderDispatchandler.java:102)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:261)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[2017-08-07 14:32:44,051] ERROR - NativeWorkerPool Uncaught exception
java.lang.NullPointerException
at org.apache.axis2.handlers.addressing.AddressingInHandler.doInvoke(AddressingInHandler.java:129)
at org.apache.axis2.handlers.AbstractTemplatedHandler.invoke(AbstractTemplatedHandler.java:44)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:261)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[2017-08-07 14:34:47,032] WARN - TimeoutHandler Expiring message ID : urn:uuid:46d0b7eb-154b-4a38-b255-2aaf7304d345; dropping message after GLOBAL_TIMEOUT of : 120 seconds for Endpoint [ABCDataServiceEndpoint_v1.1], URI : https://localhost:9444/services/ABC_v1.1/, Received through API : ABC-api_v1.0
[2017-08-07 14:35:43,935] WARN - SourceHandler Connection time out after request is read: http-incoming-8 Socket Timeout : 180000 Remote Address : 127.0.0.1/127.0.0.1:53007






[ESBJAVA-5120] Failover Endpoint in ESB4.9.0 not retrying when there is a Connection Reset Exception Created: 07/Jun/17  Updated: 07/Jun/17

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.9.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: ajanthan e Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: esb, failoverendpoint
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Severity: Major
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0
Test cases added: Yes

 Description   

Reproducing Steps
-------------------------

1) In a fresh ESB4.9.0 create a proxy service as below:

<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="FailoverCheckProxy"
       transports="https,http"
       statistics="disable"
       trace="disable"
       startOnLoad="true">
   <target>
      <inSequence onError="fault_sequence">
         <log level="custom">
            <property name="STATUS"
                      value="-----------------FailoverCheckProxy Invoked----------------------"/>
         </log>
         <call>
            <endpoint name="CBSSPersonServiceBackendEP_failover">
               <failover>
                  <endpoint name="EP1">
                     <address uri="http://localhost:8290">
                        <timeout>
                           <responseAction>fault</responseAction>
                        </timeout>
                        <suspendOnFailure>
                           <initialDuration>1000</initialDuration>
                           <progressionFactor>1.0</progressionFactor>
                           <maximumDuration>1000</maximumDuration>
                        </suspendOnFailure>
                        <markForSuspension>
                           <errorCodes>101500,101503,101504</errorCodes>
                           <retriesBeforeSuspension>4</retriesBeforeSuspension>
                           <retryDelay>1</retryDelay>
                        </markForSuspension>
                     </address>
                  </endpoint>
               </failover>
            </endpoint>
         </call>
         <log level="full"/>
      </inSequence>
      <outSequence>
         <send/>
      </outSequence>
   </target>
   <description/>
</proxy>
                                

2) Up the below Java Application to reproduce the Connection Reset Exception ( http://localhost:8290 ).

package com.custom.connection.peer;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.ObjectOutputStream;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;

public class EchoServer {
	public static void main(String[] args) throws IOException {
		int portNumber = 8290;
		ServerSocket serverSocket = new ServerSocket(portNumber);
		while (true) {
			try {
				Socket clientSocket = serverSocket.accept();
				clientSocket.setSoLinger(true, 0);
				PrintWriter out = new PrintWriter(
						clientSocket.getOutputStream(), true);
				BufferedReader in = new BufferedReader(new InputStreamReader(
						clientSocket.getInputStream()));
				String inputLine;

				while ((inputLine = in.readLine()) != null) {
					System.out.println("test..");
					System.out.println(inputLine);
					clientSocket.close();					
				}
			} catch (Exception ex) {
				System.out.println("error");
			}
		}
	}
	
}

3) Send a request to proxy service and we can see that the retry is not happening and ESB will wait after the lat line of this log.

[2017-06-07 12:20:52,886] DEBUG - SourceHandler http-incoming-1: Connected
[2017-06-07 12:20:52,888] DEBUG - wire >> "POST /services/FailoverCheckProxy HTTP/1.1[\r][\n]"
[2017-06-07 12:20:52,888] DEBUG - wire >> "Accept-Encoding: gzip,deflate[\r][\n]"
[2017-06-07 12:20:52,888] DEBUG - wire >> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
[2017-06-07 12:20:52,888] DEBUG - wire >> "SOAPAction: urn:echoString[\r][\n]"
[2017-06-07 12:20:52,888] DEBUG - wire >> "Content-Length: 319[\r][\n]"
[2017-06-07 12:20:52,889] DEBUG - wire >> "Host: ajanthan-ThinkPad-T440p:8280[\r][\n]"
[2017-06-07 12:20:52,889] DEBUG - wire >> "Connection: Keep-Alive[\r][\n]"
[2017-06-07 12:20:52,889] DEBUG - wire >> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
[2017-06-07 12:20:52,889] DEBUG - wire >> "[\r][\n]"
[2017-06-07 12:20:52,889] DEBUG - wire >> "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:echo="http://echo.services.core.carbon.wso2.org">[\n]"
[2017-06-07 12:20:52,889] DEBUG - wire >> "   <soapenv:Header/>[\n]"
[2017-06-07 12:20:52,889] DEBUG - wire >> "   <soapenv:Body>[\n]"
[2017-06-07 12:20:52,889] DEBUG - wire >> "      <echo:echoString>[\n]"
[2017-06-07 12:20:52,890] DEBUG - wire >> "         <!--Optional:-->[\n]"
[2017-06-07 12:20:52,890] DEBUG - wire >> "         <in>Test From Client</in>[\n]"
[2017-06-07 12:20:52,890] DEBUG - wire >> "      </echo:echoString>[\n]"
[2017-06-07 12:20:52,890] DEBUG - wire >> "   </soapenv:Body>[\n]"
[2017-06-07 12:20:52,890] DEBUG - wire >> "</soapenv:Envelope>"
[2017-06-07 12:20:52,895] DEBUG - SourceHandler http-incoming-1: POST /services/FailoverCheckProxy HTTP/1.1
[2017-06-07 12:20:52,905] DEBUG - SourceHandler http-incoming-1: Input ready
[2017-06-07 12:20:52,906] DEBUG - ServerWorker Starting a new Server Worker instance
[2017-06-07 12:20:52,906] DEBUG - SourceHandler http-incoming-1: Content decoder [content length: 319; pos: 319; completed: true]
[2017-06-07 12:20:52,915] DEBUG - RelayUtils Content Type is text/xml;charset=UTF-8
[2017-06-07 12:20:52,921]  INFO - LogMediator STATUS = -----------------FailoverCheckProxy Invoked----------------------
[2017-06-07 12:20:52,922]  INFO - FailoverEndpoint [AJAN] Endpoint Name New: EP1
[2017-06-07 12:20:52,923]  INFO - FailoverEndpoint [AJAN] endpoint.readyToSend() Value: true
[2017-06-07 12:20:52,923]  INFO - FailoverEndpoint [AJAN] Inside if endpoint.readyToSend() value: true
[2017-06-07 12:20:52,923] DEBUG - RelayUtils Content Type is text/xml;charset=UTF-8
[2017-06-07 12:20:52,929]  INFO - TimeoutHandler This engine will expire all callbacks after : 120 seconds, irrespective of the timeout action, after the specified or optional timeout
[2017-06-07 12:20:52,934] DEBUG - TargetConnections Trying to get a connection {}->http://localhost:8290
[2017-06-07 12:20:52,935] DEBUG - HostConnections Creating new connection pool: {}->http://localhost:8290
[2017-06-07 12:20:52,936] DEBUG - ConnectCallback Connected to remote address: localhost/127.0.0.1:8290 from local address: /127.0.0.1:24747
[2017-06-07 12:20:52,941] DEBUG - TargetHandler http-outgoing-1: Connected (org.apache.synapse.transport.passthru.connections.HostConnections@6ddc1846)
[2017-06-07 12:20:52,942] DEBUG - HostConnections New connection {}->http://localhost:8290 is added to the free list
[2017-06-07 12:20:52,942] DEBUG - DeliveryAgent Submitting new request to the connection: http-outgoing-1
[2017-06-07 12:20:52,946] DEBUG - TargetHandler http-outgoing-1: Request ready
[2017-06-07 12:20:52,950] DEBUG - TargetHandler http-outgoing-1: Output ready
[2017-06-07 12:20:52,951] DEBUG - TargetHandler http-outgoing-1: Content encoder [chunk-coded; completed: true]
[2017-06-07 12:20:52,951] DEBUG - wire << "POST  HTTP/1.1[\r][\n]"
[2017-06-07 12:20:52,951] DEBUG - wire << "Accept-Encoding: gzip,deflate[\r][\n]"
[2017-06-07 12:20:52,951] DEBUG - wire << "Content-Type: text/xml; charset=UTF-8[\r][\n]"
[2017-06-07 12:20:52,951] DEBUG - wire << "SOAPAction: "urn:echoString"[\r][\n]"
[2017-06-07 12:20:52,952] DEBUG - wire << "Transfer-Encoding: chunked[\r][\n]"
[2017-06-07 12:20:52,952] DEBUG - wire << "Host: localhost:8290[\r][\n]"
[2017-06-07 12:20:52,952] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
[2017-06-07 12:20:52,952] DEBUG - wire << "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
[2017-06-07 12:20:52,952] DEBUG - wire << "[\r][\n]"
[2017-06-07 12:20:52,952] DEBUG - wire << "14b[\r][\n]"
[2017-06-07 12:20:52,952] DEBUG - wire << "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:echo="http://echo.services.core.carbon.wso2.org"><soapenv:Body>[\n]"
[2017-06-07 12:20:52,952] DEBUG - wire << "      <echo:echoString>[\n]"
[2017-06-07 12:20:52,953] DEBUG - wire << "         <!--Optional:-->[\n]"
[2017-06-07 12:20:52,953] DEBUG - wire << "         <in>Test From Client</in>[\n]"
[2017-06-07 12:20:52,953] DEBUG - wire << "      </echo:echoString>[\n]"
[2017-06-07 12:20:52,954] DEBUG - wire << "   </soapenv:Body></soapenv:Envelope>[\r][\n]"
[2017-06-07 12:20:52,954] DEBUG - wire << "0[\r][\n]"
[2017-06-07 12:20:52,955] DEBUG - wire << "[\r][\n]"
[2017-06-07 12:20:53,234] ERROR - TargetHandler http-outgoing-1: Connection reset by peer
java.io.IOException: Connection reset by peer
	at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
	at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
	at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
	at sun.nio.ch.IOUtil.read(IOUtil.java:197)
	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:384)
	at org.apache.synapse.transport.http.conn.LoggingIOSession$LoggingByteChannel.read(LoggingIOSession.java:188)
	at org.apache.http.impl.nio.reactor.SessionInputBufferImpl.fill(SessionInputBufferImpl.java:164)
	at org.apache.http.impl.nio.codecs.AbstractMessageParser.fillBuffer(AbstractMessageParser.java:136)
	at org.apache.synapse.transport.http.conn.LoggingNHttpClientConnection$LoggingNHttpMessageParser.fillBuffer(LoggingNHttpClientConnection.java:214)
	at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:241)
	at org.apache.synapse.transport.http.conn.LoggingNHttpClientConnection.consumeInput(LoggingNHttpClientConnection.java:108)
	at org.apache.synapse.transport.passthru.ClientIODispatch.onInputReady(ClientIODispatch.java:83)
	at org.apache.synapse.transport.passthru.ClientIODispatch.onInputReady(ClientIODispatch.java:41)
	at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:113)
	at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:159)
	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:338)
	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:316)
	at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:277)
	at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:105)
	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:586)
	at java.lang.Thread.run(Thread.java:745)
[2017-06-07 12:20:53,236]  WARN - TargetHandler Exception occured while before reading the response
[2017-06-07 12:20:53,236] DEBUG - TargetHandler http-outgoing-1: I/O error (Probably the keep-alive connection was closed):Connection reset by peer
[2017-06-07 12:20:53,237] DEBUG - TargetHandler http-outgoing-1: Closed
[2017-06-07 12:20:53,238] DEBUG - TargetHandler Connection closed by target host while in state REQUEST_READY. Response code : 2
[2017-06-07 12:20:53,238] DEBUG - TargetHandler http-outgoing-1: Keep-Alive Connection closed
[2017-06-07 12:20:53,241] DEBUG - TargetErrorHandler Sending Fault for Request with Message ID : urn:uuid:6723af35-74fb-48a7-bf19-1c4cfb0011f0
[2017-06-07 12:20:53,242]  WARN - EndpointContext Endpoint : EP1 is marked as TIMEOUT and will be retried : 3 more time/s after : Wed Jun 07 12:20:53 IST 2017 until its marked SUSPENDED for failure
[2017-06-07 12:20:53,243]  WARN - FailoverEndpoint Endpoint [CBSSPersonServiceBackendEP_failover] Detect a Failure in a child endpoint : Endpoint [EP1]
[2017-06-07 12:20:53,243]  INFO - FailoverEndpoint [AJAN] Endpoint Name New: EP1
[2017-06-07 12:20:53,243]  INFO - FailoverEndpoint [AJAN] endpoint.readyToSend() Value: true
[2017-06-07 12:20:53,243]  INFO - FailoverEndpoint [AJAN] Inside if endpoint.readyToSend() value: true
[2017-06-07 12:20:53,244] DEBUG - RelayUtils Content Type is text/xml;charset=UTF-8
[2017-06-07 12:20:53,245] DEBUG - TargetConnections Trying to get a connection {}->http://localhost:8290
[2017-06-07 12:20:53,245] DEBUG - ConnectCallback Connected to remote address: localhost/127.0.0.1:8290 from local address: /127.0.0.1:24749
[2017-06-07 12:20:53,246] DEBUG - TargetHandler http-outgoing-2: Connected (org.apache.synapse.transport.passthru.connections.HostConnections@6ddc1846)
[2017-06-07 12:20:53,246] DEBUG - HostConnections New connection {}->http://localhost:8290 is added to the free list
[2017-06-07 12:20:53,246] DEBUG - DeliveryAgent Submitting new request to the connection: http-outgoing-2

Thanks.
Ajanthan.






[ESBJAVA-4848] Unable to remotely deploy CApps from Dev Studio due to CSRF Guard Created: 16/Aug/16  Updated: 28/Apr/17

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 5.0.0-RC3
Fix Version/s: None

Type: Bug Priority: High
Reporter: Joseph Fonseka Assignee: Dulanja Liyanage
Resolution: Unresolved 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   

Hi

I created a CApp with a esb config containing a simple proxy server. then I added ESB as a remote server and tried to deploy the CApp using maven deploy plugin.

CApp deployment fails with WSB printing a warning informing about a CSRF attack. IMO This is a generic problem with the OWASP CSRF Guard filter which will prevent any service calls made with 3rd party apps.

Possible suggestions use double submit cookies which will only apply CSRF for browser based requests.

Thanks
Jo

Ps. Following is the warning.
WARN - JavaLogger potential cross-site request forgery (CSRF) attack thwarted (user:<anonymous>, ip:127.0.0.1, method:POST, uri://services/CarbonAppUploader, error:required token is missing from the request)



 Comments   
Comment by Dulanja Liyanage [ 18/Aug/16 ]

Hi Jo,

Could you please check whether following entry is there in Owasp.CsrfGuard.Carbon.properties?

org.owasp.csrfguard.unprotected.Services=%servletContext%/services/*

Thanks,
Dulanja

Comment by Tharindu Edirisinghe [ 08/Feb/17 ]

Adding above won't be enough, because here the request comes as HTTP POST.

With above, it only works for HTTP GET.

So the solution is to add following property as well.

org.owasp.csrfguard.UnprotectedMethods=POST

Comment by Anupama Pathirage [ 08/Feb/17 ]

Small correction for the Tharindu's comment.

The property should be added as follows. Otherwise GET will skipped and only post will be unprotected which will result in Management console UI login is getting denied.

org.owasp.csrfguard.UnprotectedMethods=GET,POST
Comment by Tharindu Edirisinghe [ 28/Apr/17 ]

Anyway, the above config would complete remove CSRF protection from all the POST requests, which is not recommended.

Correct way is only to skip CSRF protection for the particular URL/s as in following config.

org.owasp.csrfguard.unprotected.Services=%servletContext%/xxxxxxxx/*

If above is not working, then we need to check why it is not working.





[ESBJAVA-4844] Kerberos implementaion to secure Rest Proxies Created: 12/Aug/16  Updated: 12/Aug/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: High
Reporter: Iranga Muthuthanthri Assignee: Chanaka Fernando
Resolution: Unresolved 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   

Support Kerberos implementation to secure Rest Proxies.






[ESBJAVA-4843] ESB build the message as text/plain when the jms header content-type in not there in the incoming JMS message Created: 11/Aug/16  Updated: 11/Aug/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.9.0
Fix Version/s: None

Type: Task Priority: High
Reporter: Randika Perera Assignee: Chanaka Fernando
Resolution: Unresolved 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   

ESB build the message as text/plain when the jms header content-type in not there in the incoming JMS message. There is no configuration to select the particular builder at the moment. We encountered this scenario in JMS dual channel when the third party application publish messages to the reply queue without the content type header.






[ESBJAVA-4836] Rampart exception when response from secured backend service returns HTTP 500 Created: 09/Aug/16  Updated: 13/Sep/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.9.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: undefined undefined Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: ESB, rampart
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: XML File FaceDigitalSignature.xml     XML File Face_PS.xml     XML File FacturaSSPP2.xml    
Severity: Blocker
Estimated Complexity: Moderate
Test cases added: No

 Description   

When trying a security scenario (like scenario number 100) in which the backend service is secured by signing the body, but we want the client not to use security, if the backend service returns an HTTP 500 without any soap message, the Rampart produces an exception, that don't returns the process neither to out-sequence nor the fault-sequence, so the client is waiting the response until time-out is produced.

Stack-trace

[2016-08-09 12:00:17,486] ERROR - AxisEngine Missing wsse:Security header in request
org.apache.axis2.AxisFault: Missing wsse:Security header in request
at org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:99)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
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)
Caused by: org.apache.rampart.RampartException: Missing wsse:Security header in request
at org.apache.rampart.RampartEngine.process(RampartEngine.java:146)
at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
... 9 more
[2016-08-09 12:00:17,488] ERROR - ClientWorker Fault processing response message through Axis2
org.apache.axis2.AxisFault: Missing wsse:Security header in request
at org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:99)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
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)
Caused by: org.apache.rampart.RampartException: Missing wsse:Security header in request
at org.apache.rampart.RampartEngine.process(RampartEngine.java:146)
at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
... 9 more



 Comments   
Comment by Chanaka Fernando [ 09/Aug/16 ]

Did you define the fault handler in your synapse configuration? If possible, please attach the synapse configuration which you have tried.

Comment by undefined undefined [ 09/Aug/16 ]

Attached proxy-service, endpoint and policy configurations.

I also have a PasswordCallback to get the key password. The message is generated correctoly and send to the backend, but if the backend sends an empty HTTP 500, the exception is produced

Thank you

Comment by undefined undefined [ 12/Aug/16 ]

Debugging the code, I can give more information about the case. The received response from the server has a SoapFault:

<?xml version='1.0' encoding='utf-8'?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>Call to a member function load() on null</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

The policy indicates that a security header is required in the response (at least timestamp), so the RampartEngine.process method produces a RampartExcemption with "missingSecurityHeader".

The problem is that the exception is not propagated to the proxyservice's out-sequence, neither fault-sequence, so it is not possible to notify the client with any message

Comment by undefined undefined [ 13/Sep/16 ]

Debugging the code I saw that Rampart stops processing (with the exception) if the response doesn't satisfy the security policy. I have added a timeout to the endpoint, but i think it could be interesting to return an error to the proxy-service





[ESBJAVA-4834] Error with a large script in script mediator when processing large payloads Created: 08/Aug/16  Updated: 13/Aug/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 5.0.0-Beta2
Fix Version/s: None

Type: Bug Priority: High
Reporter: Vinuri Perera Assignee: Nuwan Wimalasekara
Resolution: Unresolved Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Tested in the 5.0.0 Beta pack


Attachments: XML File SendOutSequence3Changed.xml     XML File sendSequence.xml     XML File testApi.xml    
Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

Backend response which has 93509 lines ( 3.3MB ) and with a large script mediator file. Script will go through all the lines in the response and modify the payload(Script mediator contain few parseInt which converts the string values to integer). After modifying it will use the SetPayloadJson[1] to set the payload. when trying to set the payload it give the bellow error[2].

Please note this worked with a small script mediator which only contain one parseInt function but failed for the large script file.

[1]
mc.setPayloadJSON(payLoad.testOutParams);

[2]
==================Error Log =========================
ERROR

{org.apache.synapse.mediators.bsf.ScriptMediator} - The script engine returned an error executing the inlined js script function mediate {org.apache.synapse.mediators.bsf.ScriptMediator}

com.sun.phobos.script.util.ExtendedScriptException: org.mozilla.javascript.WrappedException: Wrapped java.lang.IllegalArgumentException: out of range index (<Unknown Source>#43) in <Unknown Source> at line number 43
at com.sun.phobos.script.javascript.RhinoCompiledScript.eval(RhinoCompiledScript.java:68)
at javax.script.CompiledScript.eval(CompiledScript.java:92)
at org.apache.synapse.mediators.bsf.ScriptMediator.mediateForInlineScript(ScriptMediator.java:333)
at org.apache.synapse.mediators.bsf.ScriptMediator.invokeScript(ScriptMediator.java:265)
at org.apache.synapse.mediators.bsf.ScriptMediator.mediate(ScriptMediator.java:233)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:95)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:57)
at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
at org.apache.synapse.rest.Resource.process(Resource.java:338)
at org.apache.synapse.rest.API.process(API.java:338)
at org.apache.synapse.rest.RESTRequestHandler.apiProcess(RESTRequestHandler.java:125)
at org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:101)
at org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:56)
at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:300)
at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:554)
at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:188)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:255)
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)
Caused by: org.mozilla.javascript.WrappedException: Wrapped java.lang.IllegalArgumentException: out of range index (<Unknown Source>#43)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen.Unknown_Source_38._c_script_0(<Unknown Source>:43)
at org.mozilla.javascript.gen.Unknown_Source_38.call(<Unknown Source>)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.mozilla.javascript.gen.Unknown_Source_38.call(<Unknown Source>)
at org.mozilla.javascript.gen.Unknown_Source_38.exec(<Unknown Source>)
at com.sun.phobos.script.javascript.RhinoCompiledScript.eval(RhinoCompiledScript.java:55)
... 21 more
Caused by: java.lang.IllegalArgumentException: out of range index
at org.mozilla.classfile.ClassFileWriter.add(ClassFileWriter.java:579)
at org.mozilla.classfile.ClassFileWriter.addLoadConstant(ClassFileWriter.java:647)
at org.mozilla.classfile.ClassFileWriter.addPush(ClassFileWriter.java:884)
at org.mozilla.javascript.optimizer.Codegen.emitConstantDudeInitializers(Codegen.java:1038)
at org.mozilla.javascript.optimizer.Codegen.generateCode(Codegen.java:321)
at org.mozilla.javascript.optimizer.Codegen.compileToClassFile(Codegen.java:166)
at org.mozilla.javascript.optimizer.Codegen.compile(Codegen.java:75)
at org.mozilla.javascript.Context.compileImpl(Context.java:2377)
at org.mozilla.javascript.Context.compileReader(Context.java:1296)
at org.mozilla.javascript.Context.compileReader(Context.java:1268)
at org.mozilla.javascript.Context.evaluateReader(Context.java:1107)
at com.sun.phobos.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:172)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249)
at org.apache.synapse.mediators.bsf.ScriptMessageContext.setPayloadJSON(ScriptMessageContext.java:724)
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.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
... 30 more
TID: [-1234] [] [2016-08-04 19:25:36,964] ERROR

{API_LOGGER.testApi} - The script engine returned an error executing the inlined js script function mediate {API_LOGGER.testApi}

com.sun.phobos.script.util.ExtendedScriptException: org.mozilla.javascript.WrappedException: Wrapped java.lang.IllegalArgumentException: out of range index (<Unknown Source>#43) in <Unknown Source> at line number 43
at com.sun.phobos.script.javascript.RhinoCompiledScript.eval(RhinoCompiledScript.java:68)
at javax.script.CompiledScript.eval(CompiledScript.java:92)
at org.apache.synapse.mediators.bsf.ScriptMediator.mediateForInlineScript(ScriptMediator.java:333)
at org.apache.synapse.mediators.bsf.ScriptMediator.invokeScript(ScriptMediator.java:265)
at org.apache.synapse.mediators.bsf.ScriptMediator.mediate(ScriptMediator.java:233)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:95)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:57)
at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
at org.apache.synapse.rest.Resource.process(Resource.java:338)
at org.apache.synapse.rest.API.process(API.java:338)
at org.apache.synapse.rest.RESTRequestHandler.apiProcess(RESTRequestHandler.java:125)
at org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:101)
at org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:56)
at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:300)
at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:554)
at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:188)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:255)
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)
Caused by: org.mozilla.javascript.WrappedException: Wrapped java.lang.IllegalArgumentException: out of range index (<Unknown Source>#43)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen.Unknown_Source_38._c_script_0(<Unknown Source>:43)
at org.mozilla.javascript.gen.Unknown_Source_38.call(<Unknown Source>)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.mozilla.javascript.gen.Unknown_Source_38.call(<Unknown Source>)
at org.mozilla.javascript.gen.Unknown_Source_38.exec(<Unknown Source>)
at com.sun.phobos.script.javascript.RhinoCompiledScript.eval(RhinoCompiledScript.java:55)
... 21 more
Caused by: java.lang.IllegalArgumentException: out of range index
at org.mozilla.classfile.ClassFileWriter.add(ClassFileWriter.java:579)
at org.mozilla.classfile.ClassFileWriter.addLoadConstant(ClassFileWriter.java:647)
at org.mozilla.classfile.ClassFileWriter.addPush(ClassFileWriter.java:884)
at org.mozilla.javascript.optimizer.Codegen.emitConstantDudeInitializers(Codegen.java:1038)
at org.mozilla.javascript.optimizer.Codegen.generateCode(Codegen.java:321)
at org.mozilla.javascript.optimizer.Codegen.compileToClassFile(Codegen.java:166)
at org.mozilla.javascript.optimizer.Codegen.compile(Codegen.java:75)
at org.mozilla.javascript.Context.compileImpl(Context.java:2377)
at org.mozilla.javascript.Context.compileReader(Context.java:1296)
at org.mozilla.javascript.Context.compileReader(Context.java:1268)
at org.mozilla.javascript.Context.evaluateReader(Context.java:1107)
at com.sun.phobos.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:172)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249)
at org.apache.synapse.mediators.bsf.ScriptMessageContext.setPayloadJSON(ScriptMessageContext.java:724)
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.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
... 30 more



 Comments   
Comment by Vinuri Perera [ 08/Aug/16 ]

Added the API Which used for testing and the Payload





[ESBJAVA-4283] wso2esb is unable to create xa datasource for postgressql Created: 22/Jan/14  Updated: 24/May/16

Status: In Progress
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: faisal shaik Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: ESB
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ubuntu,wso2esb4.8.0


Attachments: XML File master-datasources.xml    
Severity: Critical
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0
Test cases added: Yes
Affects Docs:
Yes

 Description   

Hi
I am working with wso2esb 4.8.0 and postgressql9.1
I wish to do a simple transaction based insert in wso2esb .If we want to do a transaction need to use xa data source but wso2esb and dss default using non xa data source.So i created a xa data source but its showing errors even i tried wso2dss box carring but no result we are unable maintain a same JSESSONID in to proxy so now i am trying with DBLOOKUP and DB REPORT for that i am trying create xa datasource using below
configuration in repository/config/master-datasource.xmll
<datasource>
<name>DS2</name>
<jndiConfig>
<name>DS2</name>
</jndiConfig>
<definition type="RDBMS">
<configuration>
<dataSourceClassName>com.atomikos.jdbc.AtomikosDataSourceBean</dataSourceClassName>
<dataSourceProps>
<property name="xaDataSourceClassName">org.postgresql.xa.PGXADataSource</property>
<property name="uniqueResourceName">TXUSCProduction</property>
<property name="xaProperties.user">youtilitydba</property>
<property name="xaProperties.password">Youtility11</property>
<property name="xaProperties.URL">jdbc:postgresql://localhost:5432/USCProduction</property>
<property name="poolSize">10</property>
</dataSourceProps>
</configuration>
</definition>
</datasource>
its creating and showing in UI also when i am trying with DBREPORT giving pool errors are AtomikosDataSourceBean errors
really fed up with wso2 no proper docs are no proper example even no reply for any question



 Comments   
Comment by faisal shaik [ 20/Feb/14 ]

is it bug in wso2.

Comment by dushan abeyruwan [ 27/Jun/14 ]

This should be a bug related to carbon components.





[ESBJAVA-5165] Soap Body part missing when a proxy published to CG Created: 29/Jan/14  Updated: 11/Jul/17

Status: Open
Project: WSO2 ESB
Component/s: Cloud Gateway
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Shashika Ubhayaratne Assignee: Rajika Kumarasiri
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ESB 4.8.1 + CG 1.0.0.


Severity: Major
Test cases added: Yes

 Description   

1. Add CG server to ESB
2. Publish proxy service to ESB
3. Send following request to CG end point:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:echo="http://echo.services.core.carbon.wso2.org">
<soapenv:Header/>
<soapenv:Body>
<echo:echoInt>
<!-Optional:->
<in>1</in>
</echo:echoInt>
</soapenv:Body>
</soapenv:Envelope>

Response:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Date: Wed, 29 Jan 2014 13:22:28 GMT
Server: Synapse-HttpComponents-NIO
Transfer-Encoding: chunked
Connection: Keep-Alive

<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body></soapenv:Body></soapenv:Envelope>

Note:
Same proxy request send to ESB endpoint:
HTTP/1.1 200 OK
Content-Type: application/soap+xml;charset=UTF-8
Date: Wed, 29 Jan 2014 13:26:54 GMT
Server: WSO2-PassThrough-HTTP
Transfer-Encoding: chunked
Connection: Keep-Alive

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><ns:echoIntResponse xmlns:ns="http://echo.services.core.carbon.wso2.org"><return>1</return></ns:echoIntResponse></soapenv:Body></soapenv:Envelope>

Note:
Bosy related details removed by CGAgent.






[ESBJAVA-2914] wso2ESB 4.8.0 not working for transactions Created: 16/Jan/14  Updated: 24/May/16

Status: Open
Project: WSO2 ESB
Component/s: Proxy Services Management
Affects Version/s: 4.8.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: faisal shaik Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: ESB
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ubuntu,wso2dss3.0.1 ,wso2esb4.8.0


Attachments: File Transaction.dbs     XML File TransactionProxy.xml     PNG File ibx4q.png    
Severity: Major
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0
Test cases added: Yes
Affects Docs:
Yes

 Description   

Hi
I am using wso2esb4.8.0 and wso2dss3.0.1.My issue is i wish to insert the data into 2 tables its working nicely but i wish to applay transaction for my tables both table exist in same DB.If my 2nd table going fail on any moment that time my 1 st table should be rollback for that my DSS data source configuration is
and my dataservice is like this and i enabled boxcar for transaction

<data disableStreaming="true" enableBoxcarring="true" name="Transaction" serviceNamespace="http://ws.wso2.org/dataservice">
<config id="default">
<property name="carbon_datasource_name">USCProduction</property>
</config>
<query id="insertinto_mclient" useConfig="default">
<sql>insert into mclient(clientcode,clientname,createdbyid,modifiedbyid) values(?,?,?,?)</sql>
<param name="clientcode" ordinal="1" sqlType="STRING"/>
<param name="clientname" ordinal="2" sqlType="STRING"/>
<param name="createdbyid" ordinal="3" sqlType="BIGINT"/>
<param name="modifiedbyid" ordinal="4" sqlType="BIGINT"/>
</query>
<query id="insertinto_mcompany" useConfig="default">
<sql>insert into mcompany(companycode,companyname,createdbyid,modifiedbyid,clientid) values(?,?,?,?,?)</sql>
<param name="companycode" ordinal="1" sqlType="STRING"/>
<param name="comapnyname" ordinal="2" sqlType="STRING"/>
<param name="createdbyid" ordinal="3" sqlType="BIGINT"/>
<param name="modifiedbyid" ordinal="4" sqlType="BIGINT"/>
<param name="clientid" ordinal="5" sqlType="BIGINT"/>
</query>
<operation disableStreaming="true" name="insertinto_mclient_OP" returnRequestStatus="true">
<call-query href="insertinto_mclient">
<with-param name="clientcode" query-param="clientcode"/>
<with-param name="clientname" query-param="clientname"/>
<with-param name="createdbyid" query-param="createdbyid"/>
<with-param name="modifiedbyid" query-param="modifiedbyid"/>
</call-query>
</operation>
<operation disableStreaming="true" name="insertinto_mcompany_OP" returnRequestStatus="true">
<call-query href="insertinto_mcompany">
<with-param name="companycode" query-param="companycode"/>
<with-param name="comapnyname" query-param="comapnyname"/>
<with-param name="createdbyid" query-param="createdbyid"/>
<with-param name="modifiedbyid" query-param="modifiedbyid"/>
<with-param name="clientid" query-param="clientid"/>
</call-query>
</operation>
</data>
and my proxy service is
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="TransactionProxy"
transports="https,http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<log level="full">
<property name="M1" value="************HITTING Transaction PROXY************"/>
</log>
<property name="OUT_ONLY" value="true"/>
<property name="companycode" expression="//companycode/text()"/>
<property name="companyname" expression="//companyname/text()"/>
<property name="clientcode" expression="//clientcode/text()"/>
<property name="clientname" expression="//clientname/text()"/>
<payloadFactory media-type="xml">
<format>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:dat="http://ws.wso2.org/dataservice">
<soapenv:Header/>
<soapenv:Body/>
</soapenv:Envelope>
</format>
<args/>
</payloadFactory>
<log level="full">
<property name="M2" value="************HITTING Transaction PROXY************"/>
</log>
<header name="Action" value="urn:begin_boxcar"/>
<callout serviceURL="http://192.168.1.201:9764/services/Transaction/begin_boxcar"
action="urn:begin_boxcar">
<source type="envelope"/>
<target xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
xpath="s11:Body/child::[fn:position()=1] | s12:Body/child::[fn:position()=1]"/>
</callout>
<payloadFactory media-type="xml">
<format>
<p:insertinto_mclient_OP xmlns="http://ws.wso2.org/dataservice">
<xs:clientcode xmlns:xs="http://ws.wso2.org/dataservice">$1</xs:clientcode>
<xs:clientname xmlns:xs="http://ws.wso2.org/dataservice">$2</xs:clientname>
<xs:createdbyid xmlns:xs="http://ws.wso2.org/dataservice">-1</xs:createdbyid>
<xs:modifiedbyid xmlns:xs="http://ws.wso2.org/dataservice">-1</xs:modifiedbyid>
</p:insertinto_mclient_OP>
</format>
<args>
<arg evaluator="xml" expression="get-property('clientcode')"/>
<arg evaluator="xml" expression="get-property('clientname')"/>
</args>
</payloadFactory>
<header name="Action" value="urn:insertinto_mclient_OP"/>
<callout serviceURL="http://192.168.1.201:9764/services/Transaction/"
action="urn:insertinto_mclient_OP">
<source xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
xpath="s11:Body/child::[fn:position()=1] | s12:Body/child::[fn:position()=1]"/>
<target xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
xpath="s11:Body/child::[fn:position()=1] | s12:Body/child::[fn:position()=1]"/>
</callout>
<payloadFactory media-type="xml">
<format>
<p:insertinto_mcompany_OP xmlns="http://ws.wso2.org/dataservice">
<xs:companycode xmlns:xs="http://ws.wso2.org/dataservice">$1</xs:companycode>
<xs:comapnyname xmlns:xs="http://ws.wso2.org/dataservice">$2</xs:comapnyname>
<xs:createdbyid xmlns:xs="http://ws.wso2.org/dataservice">-1</xs:createdbyid>
<xs:modifiedbyid xmlns:xs="http://ws.wso2.org/dataservice">-1</xs:modifiedbyid>
<xs:clientid xmlns:xs="http://ws.wso2.org/dataservice">-1</xs:clientid>
</p:insertinto_mcompany_OP>
</format>
<args>
<arg evaluator="xml" expression="get-property('companycode')"/>
<arg evaluator="xml" expression="get-property('companyname')"/>
</args>
</payloadFactory>
<log level="full">
<property name="M5" value="*************hitting2nd dss****"/>
</log>
<header name="Action" value="urn:insertinto_mcompany_OP"/>
<callout serviceURL="http://192.168.1.201:9764/services/Transaction/"
action="urn:insertinto_mcompany_OP">
<source xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
xpath="s11:Body/child::[fn:position()=1] | s12:Body/child::[fn:position()=1]"/>
<target xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
xpath="s11:Body/child::[fn:position()=1] | s12:Body/child::[fn:position()=1]"/>
</callout>
<payloadFactory media-type="xml">
<format>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:dat="http://ws.wso2.org/dataservice">
<soapenv:Header/>
<soapenv:Body/>
</soapenv:Envelope>
</format>
<args/>
</payloadFactory>
<log level="full">
<property name="M3" value="************HITTING Transaction PROXY************"/>
</log>
<header name="Action" value="urn:end_boxcar"/>
<callout serviceURL="http://192.168.1.201:9764/services/Transaction/end_boxcar"
action="urn:end_boxcar">
<source type="envelope"/>
<target xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
xpath="s11:Body/child::[fn:position()=1] | s12:Body/child::[fn:position()=1]"/>
</callout>
<log level="full">
<property name="M4" value="************HITTING Transaction PROXY************"/>
</log>
</inSequence>
<outSequence>
<send/>
</outSequence>
</target>
<description/>
</proxy>
box_carying is working in wso2dss but not in wso2esb is there any session management is there
i started with begin_boxcar and end with end_boxcar.BUt while i am doing this with dss if i start with begin_boxcar then 1st insert after that i checked the table but ther is no data insertion if i insert into 2nd table and end with end_boxcar then only data inserting into 2 tables.Where as i checked with proxy service configuration like above strted with begin_boxcar and inserted 1st table and checked the table dat is there means with out end_boxcar also data inserted properly
and
how can i get DSS session into proxy.what is this JSESSIONID



 Comments   
Comment by faisal shaik [ 17/Jan/14 ]

how to get the boxcarying session id in to proxy?

Comment by faisal shaik [ 20/Jan/14 ]

wso2esb support for transactions are not.

<payloadFactory media-type="xml">
<format>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:dat="http://ws.wso2.org/dataservice">
<soapenv:Header/>
<soapenv:Body/>
</soapenv:Envelope>
</format>
<args/>
</payloadFactory>
<log level="full">
<property name="M2" value="************HITTING Transaction PROXY************"/>
</log>
<header name="Action" value="urn:begin_boxcar"/>
<property name="setCookieHeader"
expression="$trp:Set-Cookie"
scope="default"
type="STRING"/>
<callout serviceURL="http://1localhost:9764/services/Transaction/begin_boxcar"
action="urn:begin_boxcar">
<source type="envelope"/>
<target xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
xpath="s11:Body/child::[fn:position()=1] | s12:Body/child::[fn:position()=1]"/>
</callout>
<property name="setCookieHeader5" expression="$trp:JSESSIONID"/>
<log level="full">
<property name="JSession" expression="get-property('setCookieHeader')"/>
</log>

how to get dss JSESSIONID in to wso2esb proxy





[ESBJAVA-5171] ESB trying to add user role during the server startup either it's connected to the READ ONLY ldap. Created: 18/Feb/14  Updated: 11/Jul/17

Status: Open
Project: WSO2 ESB
Component/s: Cloud Gateway
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Chamara Silva Assignee: Kevin Ratnasekera
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File patch-ESBJAVA-3012.txt     XML File user-mgt.xml    
Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

1. enable readonly ldap config and start esb server.
2. ESB trying to create new admin role.
ERROR - CGAgentServiceComponent Cloud not activated the CGAgentServiceComponent.
org.wso2.carbon.user.core.UserStoreException: Cannot add role to Read Only user store unless it is primary
at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addRole(AbstractUserStoreManager.java:2070)
at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addRole(AbstractUserStoreManager.java:3391)
at org.wso2.carbon.cloud.gateway.agent.internal.CGAgentServiceComponent.activate(CGAgentServiceComponent.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517)
at org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
at org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81)
at org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40)
at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1267)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1186)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)



 Comments   
Comment by Asela Pathberiya [ 29/May/14 ]

We can avoid this issue.. This does not effect to ESB.

However you can avoid this error by creating a role called "cg_publisher" and "cg_unpublisher" in your LDAP. You can do it manually.

As a proper fix, these role must be created as internal roles.

Comment by Amila Maharachchi [ 27/Aug/14 ]

Attaching the fix for this

Comment by Amila Maharachchi [ 27/Aug/14 ]

I still cannot resolve this because the patch is not applied to the public branch. It can only be done after migrating the cloud gateway agent component to github wso2 repo.





[ESBJAVA-5147] NPE thrown when CGServer is restarted when proxy service is publihsed to CG Created: 30/Jan/14  Updated: 11/Jul/17

Status: Open
Project: WSO2 ESB
Component/s: Cloud Gateway
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Shashika Ubhayaratne Assignee: Kasun Indrasiri
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ESB 4.8.1 stand alone pack + CG Agent 1.0.0


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

 Description   

1. Create a proxy service
2. Add CGSever (There should be running CG Server)
3. Publish the created proxy service
4. Restart CGAgent

Issue:
[2014-01-30 12:21:09,375] INFO - CarbonUIServiceComponent Mgt Console URL : https://10.100.0.33:9443/carbon/

[2014-01-30 12:28:04,845] INFO - CarbonAuthenticationUtil 'admin@carbon.super [-1234]' logged in at [2014-01-30 12:28:04,845+0530]
[2014-01-30 12:28:39,513] INFO - ProxyService Building Axis service for Proxy service : proxy1
[2014-01-30 12:28:39,515] INFO - ProxyService Adding service proxy1 to the Axis2 configuration
[2014-01-30 12:28:39,520] INFO - DeploymentInterceptor Deploying Axis2 service: proxy1

{super-tenant}

[2014-01-30 12:28:39,562] INFO - ProxyService Successfully created the Axis2 service for Proxy service : proxy1
[2014-01-30 12:28:54,877] INFO - TimeoutHandler This engine will expire all callbacks after : 120 seconds, irrespective of the timeout action, after the specified or optional timeout
[2014-01-30 12:29:23,460] INFO - TCPTransportSender TCP Sender started
[2014-01-30 12:29:35,783] INFO - TCPTransportSender TCP Sender started
[2014-01-30 12:29:35,813] INFO - TCPTransportSender TCP Sender started
[2014-01-30 12:29:35,880] INFO - CGPollingTransportSender CGPOLLING Sender started
[2014-01-30 12:29:35,885] INFO - CGPollingTransportReceiver CGThrift transport receiver started
[2014-01-30 12:29:35,885] INFO - CGPollingTransportReceiver CGPOLLING listener started
[2014-01-30 12:29:35,891] INFO - CGPollingTransportReceiver CGThrift polling task started for service 'proxy1'
[2014-01-30 12:29:37,668] INFO - TCPTransportSender TCP Sender started
[2014-01-30 12:29:37,695] INFO - TCPTransportSender TCP Sender started
[2014-01-30 12:29:39,107] INFO - TCPTransportSender TCP Sender started
[2014-01-30 12:29:39,138] INFO - TCPTransportSender TCP Sender started
[2014-01-30 12:30:22,806] ERROR - CGPollingTransportTaskManager Polling Task Manager encountered an error..
org.apache.thrift.transport.TTransportException: java.net.SocketException: Connection reset
at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:129)
at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:378)
at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:297)
at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:204)
at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69)
at org.wso2.carbon.cloud.gateway.common.thrift.gen.CloudGatewayService$Client.recv_exchange(CloudGatewayService.java:114)
at org.wso2.carbon.cloud.gateway.common.thrift.gen.CloudGatewayService$Client.exchange(CloudGatewayService.java:99)
at org.wso2.carbon.cloud.gateway.common.thrift.CGThriftClient.exchange(CGThriftClient.java:63)
at org.wso2.carbon.cloud.gateway.agent.transport.CGPollingTransportTaskManager$MessageExchangeTask.run(CGPollingTransportTaskManager.java:309)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:798)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:755)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:127)
... 13 more
[2014-01-30 12:30:22,812] INFO - CGAgentHeartBeatTask A heart beat task for the remote server '10.100.0.33:15001' has been added
[2014-01-30 12:30:22,812] INFO - CGAgentHeartBeatTask Remote server '10.100.0.33:15001' is not alive. Next re-attempt is after '20' seconds
[2014-01-30 12:30:42,813] INFO - CGAgentHeartBeatTask Hear beat task detected remote server '10.100.0.33:15001', is alive. Observers will be notified
[2014-01-30 12:30:42,813] ERROR - CGAgentAdminService Could not retrieve the service publish flag for service 'proxy1'
java.lang.NullPointerException
at org.wso2.carbon.cloud.gateway.agent.service.CGAgentAdminService.getServiceStatus(CGAgentAdminService.java:357)
at org.wso2.carbon.cloud.gateway.agent.observer.CGAgentObserverImpl.update(CGAgentObserverImpl.java:48)
at org.wso2.carbon.cloud.gateway.agent.observer.CGAgentSubjectImpl.notifyObservers(CGAgentSubjectImpl.java:45)
at org.wso2.carbon.cloud.gateway.agent.observer.CGAgentSubjectImpl.connected(CGAgentSubjectImpl.java:38)
at org.wso2.carbon.cloud.gateway.agent.heartbeat.CGAgentHeartBeatTask.run(CGAgentHeartBeatTask.java:60)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
[2014-01-30 12:30:42,814] ERROR - CGAgentObserverImpl Error while re-publishing the service 'proxy1' via received publish notification. You may need to re-publish the service manually!






[ESBJAVA-5173] [CG]Error occurred when publishing the service Created: 28/Nov/12  Updated: 11/Jul/17

Status: Open
Project: WSO2 ESB
Component/s: Cloud Gateway
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Aparna Karunarathna Assignee: Rajika Kumarasiri
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Browser:
Env: Dev setup


Attachments: JPEG File CG_Publishing_issue.jpg    
Severity: Critical
Estimated Complexity: Moderate
Test cases added: No

 Description   

Following error occurred when publishing the service and now ESB server is not allowing to publish any services.

steps to reproduce
login to Appserver & deploy a simplestockquoteservice to appserver
then logout from AppServer
login to ESB and create proxy service for simplestockquoteservice
add CG server details to ESB (Home> Configure > Cloud Gateway Agent> Add/Edit Server )
go to Home > Configure > Cloud Gateway Agent > Publish/Unpublish Service
select the manual option and publish the service to CG server

Note: Screenshot is attached for your reference.

************************************************
TID: [0] [ESB] [2012-11-28 15:19:17,893] ERROR

{org.wso2.carbon.cloud.gateway.agent.service.CGAgentAdminService} - Error while retrieving the meta data of the service 'SimpleStockQuoteService' {org.wso2.carbon.cloud.gateway.agent.service.CGAgentAdminService}

org.wso2.carbon.cloud.gateway.common.CGException: Invalid instance type detected when parsing the WSDL 'http://esb.stratosdev.private.wso2.com:8280/services/t/ank.com/SimpleStockQuoteService?wsdl'. Required OMElement type!
at org.wso2.carbon.cloud.gateway.agent.CGAgentUtils.getWSDLElement(CGAgentUtils.java:287)
at org.wso2.carbon.cloud.gateway.agent.CGAgentWsdlDependencyResolver.parseWsdlDependencies(CGAgentWsdlDependencyResolver.java:110)
at org.wso2.carbon.cloud.gateway.agent.service.CGAgentAdminService.getCGServiceMetaData(CGAgentAdminService.java:732)
at org.wso2.carbon.cloud.gateway.agent.service.CGAgentAdminService.publishService(CGAgentAdminService.java:99)
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:601)
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:398)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at org.wso2.carbon.cloud.gateway.agent.stub.CGAgentAdminServiceStub.publishService(CGAgentAdminServiceStub.java:393)
at org.wso2.carbon.cloud.gateway.agent.ui.CGAgentAdminClient.publish(CGAgentAdminClient.java:73)
at org.apache.jsp.cg.publish_002dservice_005fajaxprocessor_jsp._jspService(publish_002dservice_005fajaxprocessor_jsp.java:100)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:161)
at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:36)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:690)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:477)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
at org.wso2.carbon.redirector.servlet.ui.filters.AllPagesFilter.doFilter(AllPagesFilter.java:156)
at org.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAdaptor.java:37)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:172)
at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
TID: [0] [ESB] [2012-11-28 15:19:17,898] ERROR

{org.wso2.carbon.cloud.gateway.agent.service.CGAgentAdminService} - Could not publish service 'SimpleStockQuoteService'. Error while retrieving the meta data of the service 'SimpleStockQuoteService' {org.wso2.carbon.cloud.gateway.agent.service.CGAgentAdminService}

org.wso2.carbon.cloud.gateway.common.CGException: Error while retrieving the meta data of the service 'SimpleStockQuoteService'
at org.wso2.carbon.cloud.gateway.agent.service.CGAgentAdminService.handleException(CGAgentAdminService.java:598)
at org.wso2.carbon.cloud.gateway.agent.service.CGAgentAdminService.getCGServiceMetaData(CGAgentAdminService.java:756)
at org.wso2.carbon.cloud.gateway.agent.service.CGAgentAdminService.publishService(CGAgentAdminService.java:99)
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:601)
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:398)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at org.wso2.carbon.cloud.gateway.agent.stub.CGAgentAdminServiceStub.publishService(CGAgentAdminServiceStub.java:393)
at org.wso2.carbon.cloud.gateway.agent.ui.CGAgentAdminClient.publish(CGAgentAdminClient.java:73)
at org.apache.jsp.cg.publish_002dservice_005fajaxprocessor_jsp._jspService(publish_002dservice_005fajaxprocessor_jsp.java:100)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:161)
at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:36)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:690)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:477)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
at org.wso2.carbon.redirector.servlet.ui.filters.AllPagesFilter.doFilter(AllPagesFilter.java:156)
at org.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAdaptor.java:37)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:172)
at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.wso2.carbon.cloud.gateway.common.CGException: Invalid instance type detected when parsing the WSDL 'http://esb.stratosdev.private.wso2.com:8280/services/t/ank.com/SimpleStockQuoteService?wsdl'. Required OMElement type!
at org.wso2.carbon.cloud.gateway.agent.CGAgentUtils.getWSDLElement(CGAgentUtils.java:287)
at org.wso2.carbon.cloud.gateway.agent.CGAgentWsdlDependencyResolver.parseWsdlDependencies(CGAgentWsdlDependencyResolver.java:110)
at org.wso2.carbon.cloud.gateway.agent.service.CGAgentAdminService.getCGServiceMetaData(CGAgentAdminService.java:732)
... 71 more






[ESBJAVA-5156] [CG]TryIt is not working for very first invoke in the CG server Created: 27/Nov/12  Updated: 11/Jul/17

Status: Open
Project: WSO2 ESB
Component/s: Cloud Gateway
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Aparna Karunarathna Assignee: Rajika Kumarasiri
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Browser: Firefox
Env: Dev setup


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

 Description   

TryIt is not working in the CG server( this is happening to its very first invoke after tenant gets loading)

Steps to Reproduce
login to Appserver & deploy a simplestockquoteservice to appserver
then logout from AppServer
login to ESB and create proxy service for simplestockquoteservice
add CG server details to ESB (Home> Configure > Cloud Gateway Agent> Add/Edit Server )
Publish the service to CG server
Logout from ESB and login to CG server and invoke the service via Tryit

*******************************************************************************
TID: [0] [CG] [2012-11-28 10:48:57,667] INFO

{org.apache.axis2.transport.http.HTTPSender} - Unable to sendViaPost to urlhttp://cloudgateway.stratosdev.private.wso2.com:8280/services/t/ank.com/SimpleStockQuoteService.SimpleStockQuoteServiceHttpSoap12Endpoint {org.apache.axis2.transport.http.HTTPSender}

java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:621)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:450)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:277)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531)
at org.apache.jsp.admin.jsp.WSRequestXSSproxy_005fajaxprocessor_jsp._jspService(WSRequestXSSproxy_005fajaxprocessor_jsp.java:272)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:161)
at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:36)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:172)
at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)






[ESBJAVA-5182] [CG] Info messages can be seen when starting the server Created: 28/Nov/12  Updated: 11/Jul/17

Status: Open
Project: WSO2 ESB
Component/s: Cloud Gateway
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Aparna Karunarathna Assignee: Rajika Kumarasiri
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Browser: Firefox
Env: Dev setup


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

 Description   

Following info messages cab seen when starting the server and continuously displayed in the backend.

steps to reproduce
Unpublished all services from ESB
then restart the CG server

*************************************
TID: [0] [CG] [2012-11-28 14:47:25,092] INFO

{org.apache.synapse.mediators.builtin.LogMediator} - To: local://axis2services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpSoap11Endpoint, WSAction: urn:getQuote, SOAPAction: urn:getQuote, MessageID: urn:uuid:EA559E736AA18E3D3A1354094245112, Direction: request {org.apache.synapse.mediators.builtin.LogMediator}

TID: [0] [CG] [2012-11-28 14:47:25,092] INFO

{org.apache.synapse.mediators.builtin.LogMediator} - To: local://axis2services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpSoap11Endpoint, WSAction: urn:getQuote, SOAPAction: urn:getQuote, MessageID: urn:uuid:EA559E736AA18E3D3A1354094245112, Direction: request {org.apache.synapse.mediators.builtin.LogMediator}

TID: [0] [CG] [2012-11-28 14:47:25,093] INFO

{SERVICE_LOGGER.__SynapseService} - To: local://axis2services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpSoap11Endpoint, WSAction: urn:getQuote, SOAPAction: urn:getQuote, MessageID: urn:uuid:EA559E736AA18E3D3A1354094245112, Direction: request {SERVICE_LOGGER.__SynapseService}




[ESBJAVA-5174] Dashboard links are not working on Cloud Gateway Created: 04/Mar/13  Updated: 11/Jul/17

Status: Open
Project: WSO2 ESB
Component/s: Cloud Gateway
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Shashika Ubhayaratne Assignee: Sanjaya Ratnaweera
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

stratos 1.6.0


Severity: Major
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0
Test cases added: Not-applicable

 Description   

1. start ELB, managre and cg
2. Login to CG mgt console

Issue: dashboard links are not working






[ESBJAVA-3361] Inconsistence fault handling for users and tenants Created: 30/Oct/12  Updated: 24/May/16

Status: Open
Project: WSO2 ESB
Component/s: Stratos ESB
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Nuwan Wimalasekara Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: XML File soap11_fault_code_Server_synapse.xml    
Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

same fault handling synapse configuration behave differently for users and tenant.

attached soap11_fault_code_Server_synapse.xml configuration make different fault messages for receiver. It works fine for users, but tenants It sees not.

Same configuration send fault message for users
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode xmlns:soap11Env="http://schemas.xmlsoap.org/soap/envelope/">soap11Env:Server</faultcode>
<faultstring>Soap11FaultCodeServerTestCase</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

for tenants
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>Connection refused or failed for : localhost/127.0.0.1:9020, IO Exception occured : Connection refused</faultstring>
<detail>Connection refused or failed for : localhost/127.0.0.1:9020, IO Exception occured : Connection refused</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>



 Comments   
Comment by Kasun Indrasiri [ 09/Dec/12 ]

This is not a blocker, hence lowering the priority.





[ESBJAVA-4953] Improve permissions to create a read-only User Created: 15/Nov/16  Updated: 15/Nov/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: High
Reporter: Chanaka Cooray Assignee: Chanaka Fernando
Resolution: Unresolved 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   

In the user creation process, there is no option to add read only permission for a user. We can only control the permissions of a role to disable some functionalities for a user who assigned to that particular role. For example, if we set mediation permission, then the user can view and change the configurations from the management console. There is no separate option to set edit or view permission. So Read only user is needed when there is a requirement to create a user to review the configurations, artifacts and without the capability to change anything.






[ESBJAVA-4954] API calls are not reflecting in system statistics Created: 15/Nov/16  Updated: 27/Jun/17

Status: Open
Project: WSO2 ESB
Component/s: Stratos ESB
Affects Version/s: 4.9.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: Muralidharan Balanandan Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Severity: Critical
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0
Test cases added: Yes

 Description   

In monitor -> system statistics, the API calls are not reflected in the number of request / response served and thereby in the service response times.
Need your help on this. Whether this is not supported or some configuration to be enabled.



 Comments   
Comment by Chanika Geeganage [ 27/Jun/17 ]

System statistics displays statistics on data collected from sequences, endpoints and proxy services. In order to get API statistics, In EI (or ESB from 5.0.0 onwards), we can use EI Analytics. For that the analytics profile can to be used and statistics should be enabled for the APIs.
ESB analytics was introduced from ESB 5.0.0 and have to download ESB analytics server. From EI 6.0.0 onwards the analytics profile is shipped with the product it self. More info can be found from [1] [2]

[1] https://docs.wso2.com/display/EI611/Prerequisites+to+Publish+Statistics
[2] https://docs.wso2.com/display/EI611/Analyzing+WSO2+EI+via+the+Analytics+Dashboard





[ESBJAVA-4932] RabbitMQ AMQP Inbound Endpoint exchange parameters are ignored Created: 25/Oct/16  Updated: 25/Oct/16

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

Type: Bug Priority: High
Reporter: Joao Mallmann Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: XML File RabbitMqInbound.xml    
Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

The exchange type, duration and auto deletion parameters from a Rabbitmq Inbound Endpoint are ignored when configurated on the inbound endpoint.






[ESBJAVA-4922] Car deployment failure error thrown is not clear when serverRole of security policy is set to GovernanceRegistry Created: 11/Oct/16  Updated: 11/Oct/16

Status: Open
Project: WSO2 ESB
Component/s: Carbon Applications
Affects Version/s: 5.0.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: Evanthika Amarasiri Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System : Mac OS X El Capitan 10.11.2 (15C50), x86_64
Java Version/Java VM :1.7.0_79/Java(TM) SE Runtime Environment (build 1.7.0_79-b15)/Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
Packs : wso2esb-5.0.0
DBMS/DBMS Driver :H2
Setup : Standalone
Dev Studio : 3.8.0


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

 Description   

I have a car which refers a UT policy stored in the registry.
I had the serverRole of the policy set to GovernanceRegistry by mistake (I forgot to change it to EnterpriseServiceBus). So when I deploy this car, I get the following exception.
This error is not descriptive enough and I has to spend some considerable time to figure out what the actual issue is.
So can we make these errors more descriptive?

[2016-10-11 16:54:23,997] ERROR - ProxyServiceDeployer ProxyService Deployment from the file : /Users/evanthika/WSO2/CARBON/ESB/5.0.0/wso2esb-5.0.0/tmp/carbonapps/-1234/1476185063826aaaaa_1.7.5-SNAPSHOT.car/registry_resource_properties_wss_v1_1.0.0/registry_resource_properties_wss_v1-1.0.0.xml : Failed.
org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
	at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:580)
	at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:81)
	at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:831)
	at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:624)
	at org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:81)
	at org.wso2.carbon.proxyadmin.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:46)
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:194)
	at org.wso2.carbon.application.deployer.synapse.SynapseAppDeployer.deployArtifacts(SynapseAppDeployer.java:131)
	at org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
	at org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)
	at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
	at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
	at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
	at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
	at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
	at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:93)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:138)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	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)
[2016-10-11 16:54:23,998] ERROR - AbstractSynapseArtifactDeployer Deployment of the Synapse Artifact from file : /Users/evanthika/WSO2/CARBON/ESB/5.0.0/wso2esb-5.0.0/tmp/carbonapps/-1234/1476185063826aaaaa1.7.5-SNAPSHOT.car/registry_resource_properties_wss_v1_1.0.0/registry_resource_properties_wss_v1-1.0.0.xml : Failed!
org.apache.synapse.deployers.SynapseArtifactDeploymentException: ProxyService Deployment from the file : /Users/evanthika/WSO2/CARBON/ESB/5.0.0/wso2esb-5.0.0/tmp/carbonapps/-1234/1476185063826aaaaa1.7.5-SNAPSHOT.car/registry_resource_properties_wss_v1_1.0.0/registry_resource_properties_wss_v1-1.0.0.xml : Failed.
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.handleSynapseArtifactDeploymentError(AbstractSynapseArtifactDeployer.java:474)
	at org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:120)
	at org.wso2.carbon.proxyadmin.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:46)
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:194)
	at org.wso2.carbon.application.deployer.synapse.SynapseAppDeployer.deployArtifacts(SynapseAppDeployer.java:131)
	at org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
	at org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)
	at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
	at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
	at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
	at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
	at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
	at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:93)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:138)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	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)
Caused by: org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
	at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:580)
	at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:81)
	at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:831)
	at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:624)
	at org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:81)
	... 22 more





[ESBJAVA-4918] Created inbound endpoint with client acknowledgement for queue is auto acknowledging Created: 07/Oct/16  Updated: 07/Oct/16

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

Type: Bug Priority: High
Reporter: Jason De Silva Assignee: Chanaka Fernando
Resolution: Unresolved 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: Major
Estimated Complexity: Moderate
Test cases added: No

 Description   

If an inbound endpoint is created for a queue using WSO2 MB type with the transport.jms.SessionAcknowledgement set as CLIENT_ACK. Published messages are consumed no redelivery seems to occur.

Steps

1) Create an inbound endpoint using WSO2 MB type with the transport.jms.SessionAcknowledgement set as CLIENT_ACK. (The sequence consists only a log mediator)
2) Publish one message to the queue

Issue

The published message is consumed.

Expected Result

The message should be redelivered since the acknowledgement is not set explicitly and affect the retry period is over the message should be in DLC






[ESBJAVA-4917] [Inbound endpoint] WSO2 MB - queue inbound endpoint with cache level set to 2 fails to consume messages Created: 07/Oct/16  Updated: 07/Oct/16

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

Type: Bug Priority: High
Reporter: Jason De Silva Assignee: Chanaka Fernando
Resolution: Unresolved 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: Major
Estimated Complexity: Moderate
Test cases added: No

 Description   

Created an inbound endpoint using the WSO2 MB type to subscribe to a queue. The transport.jms.CacheLevel was set to 2.

Issue
The ESB throws the below exception and fails to consume the published messages from the queue.

TID: [-1234] [] [2016-10-07 08:21:27,709] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory} -  JMS Exception while creating consumer. Object org.wso2.andes.client.AMQSession_0_8@5caaf5c2 has been closed {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}
javax.jms.IllegalStateException: Object org.wso2.andes.client.AMQSession_0_8@5caaf5c2 has been closed
	at org.wso2.andes.client.Closeable.checkNotClosed(Closeable.java:70)
	at org.wso2.andes.client.AMQSession.checkNotClosed(AMQSession.java:648)
	at org.wso2.andes.client.AMQSession$6.execute(AMQSession.java:2089)
	at org.wso2.andes.client.AMQSession$6.execute(AMQSession.java:2086)
	at org.wso2.andes.client.AMQConnectionDelegate_8_0.executeRetrySupport(AMQConnectionDelegate_8_0.java:342)
	at org.wso2.andes.client.AMQConnection$3.run(AMQConnection.java:655)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.wso2.andes.client.AMQConnection.executeRetrySupport(AMQConnection.java:652)
	at org.wso2.andes.client.failover.FailoverRetrySupport.execute(FailoverRetrySupport.java:102)
	at org.wso2.andes.client.AMQSession.createConsumerImpl(AMQSession.java:2084)
	at org.wso2.andes.client.AMQSession.createConsumer(AMQSession.java:1063)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory.createMessageConsumer(JMSConnectionFactory.java:368)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.factory.CachedJMSConnectionFactory.createMessageConsumer(CachedJMSConnectionFactory.java:124)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.factory.CachedJMSConnectionFactory.getMessageConsumer(CachedJMSConnectionFactory.java:116)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer.poll(JMSPollingConsumer.java:172)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer.execute(JMSPollingConsumer.java:119)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.JMSTask.taskExecute(JMSTask.java:47)
	at org.wso2.carbon.inbound.endpoint.common.InboundTask.execute(InboundTask.java:45)
	at org.wso2.carbon.mediation.ntask.NTaskAdapter.execute(NTaskAdapter.java:98)
	at org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	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)
TID: [-1234] [] [2016-10-07 08:21:27,715] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} -  Error while receiving JMS message. null {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}
java.lang.NullPointerException
	at org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer.receiveMessage(JMSPollingConsumer.java:307)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer.poll(JMSPollingConsumer.java:173)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer.execute(JMSPollingConsumer.java:119)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.JMSTask.taskExecute(JMSTask.java:47)
	at org.wso2.carbon.inbound.endpoint.common.InboundTask.execute(InboundTask.java:45)
	at org.wso2.carbon.mediation.ntask.NTaskAdapter.execute(NTaskAdapter.java:98)
	at org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	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)





[ESBJAVA-4916] [Inbound endpoint] WSO2 MB - queue inbound endpoint with cache level set to 1 fails to consume messages Created: 06/Oct/16  Updated: 06/Oct/16

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

Type: Bug Priority: High
Reporter: Jason De Silva Assignee: Chanaka Fernando
Resolution: Unresolved 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


Attachments: PNG File CacheLevelOne.png    
Severity: Major
Estimated Complexity: Moderate
Test cases added: No

 Description   

Created an inbound endpoint using the WSO2 MB type to subscribe to a queue. The transport.jms.CacheLevel was set to 1.

Issue
Published 100 messages to the queue. But the inbound endpoint fails to consume the messages from the queue.

Refer attachment for inbound endpoint configuration.






[ESBJAVA-4906] Message Processor Unable to process message after restarting ESB Created: 27/Sep/16  Updated: 27/Sep/16

Status: Open
Project: WSO2 ESB
Component/s: Message Processors
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Sudipta Saha Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: ESB
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

UNIX


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

 Description   

If Messages are being queued in Message Stores and the Processor is disables (Use Case - Outage in Downstream) and before activating the Processor the Server crashes for some reason or the ESB is to be restarted for some reason then the Processor picks up the message post restart however the processing is not successful. PFB the generated exception -

TID: [-1] [] [2016-09-27 15:02:06,214] INFO

{org.apache.synapse.core.axis2.TimeoutHandler} - This engine will expire all callbacks after : 120 seconds, irrespective of the timeout action, after the specified or optional timeout {org.apache.synapse.core.axis2.TimeoutHandler}

TID: [-1234] [] [2016-09-27 15:02:06,851] ERROR

{org.apache.synapse.continuation.ContinuationStackManager} - Resource : ba373039034328a55d49f5a1591e8161d0d8fb6b2c08f04d not found {org.apache.synapse.continuation.ContinuationStackManager}

TID: [-1234] [] [2016-09-27 15:02:06,853] ERROR

{org.apache.synapse.core.axis2.SynapseCallbackReceiver} - Synapse encountered an exception, No error handlers found - [Message Dropped]
Resource : ba373039034328a55d49f5a1591e8161d0d8fb6b2c08f04d not found {org.apache.synapse.core.axis2.SynapseCallbackReceiver}




[ESBJAVA-4271] [MB] ESB becomes inaccessible when a user tries to subscribe to a queue without permission Created: 16/Oct/15  Updated: 30/May/16

Status: Open
Project: WSO2 ESB
Component/s: Proxy Services Management
Affects Version/s: 4.9.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: Dilini Gunatilake Assignee: Dilini Gunatilake
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: Ubuntu 14.04
JDK: 1.7.0_79
Database : H2
Browser : Firefox 40.0
Setup : Standalone


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

 Description   

Steps to reproduce
--------------------------------------------------------------------------------------------------------
1. Login as the admin user (admin/admin)
2. Create a queue - test
3. Create another user in MB with only login, queue and topic permissions.
4. Create a JMS Proxy to consume messages from test queue by the user created at step 3

Issue
--------------------------------------------------------------------------------------------------------
Exception is logged continuously as follows mentioning permission is denied. Also, Management console will not be accessible and need to restart ESB to work again.

[2015-10-16 11:10:18,256]  INFO - ProxyService Successfully created the Axis2 service for Proxy service : SimpleStockTopicSub2
[2015-10-16 11:10:20,772]  WARN - ServiceTaskManager Unable to shutdown all polling tasks of service : SimpleStockTopicSub2
[2015-10-16 11:10:20,773]  INFO - ServiceTaskManager Task manager for service : SimpleStockTopicSub2 shutdown
[2015-10-16 11:10:20,773]  INFO - ServiceTaskManager Task manager for service : SimpleStockTopicSub2 [re-]initialized
[2015-10-16 11:10:21,212]  INFO - ConnectionCloseMethodHandler ConnectionClose frame received
[2015-10-16 11:10:21,214]  INFO - ConnectionCloseMethodHandler Error :403: access refused:Thread-32
[2015-10-16 11:10:21,214] ERROR - AMQStateManager No Waiters for error saving as last error:org.wso2.andes.AMQSecurityException: Permission denied: binding SimpleStockTopicSub2 [error code 403: access refused]
[2015-10-16 11:10:21,215] ERROR - ServiceTaskManager Error creating JMS consumer for service : SimpleStockTopicSub2. Error registering consumer: org.wso2.andes.AMQSecurityException: org.wso2.andes.AMQSecurityException: Permission denied: binding SimpleStockTopicSub2 [error code 403: access refused] [error code 403: access refused]
[2015-10-16 11:10:21,215] ERROR - ServiceTaskManager Error reciving the message.
[2015-10-16 11:10:21,215] ERROR - ServiceTaskManager JMS Connection failed : 403 - shutting down worker tasks
[2015-10-16 11:10:21,217]  INFO - ServiceTaskManager Reconnection attempt : 1 for service : SimpleStockTopicSub2
[2015-10-16 11:10:25,775] ERROR - ServiceTaskManager Reconnection attempt : 1 for service : SimpleStockTopicSub2 failed. Next retry in 20 seconds
[2015-10-16 11:10:26,218]  WARN - ServiceTaskManager Unable to shutdown all polling tasks of service : SimpleStockTopicSub2
[2015-10-16 11:10:26,218]  INFO - ServiceTaskManager Task manager for service : SimpleStockTopicSub2 shutdown
[2015-10-16 11:10:26,219]  INFO - ServiceTaskManager Task manager for service : SimpleStockTopicSub2 [re-]initialized
[2015-10-16 11:10:26,571]  INFO - ConnectionCloseMethodHandler ConnectionClose frame received
[2015-10-16 11:10:26,572]  INFO - ConnectionCloseMethodHandler Error :403: access refused:Thread-36
[2015-10-16 11:10:26,572] ERROR - AMQStateManager No Waiters for error saving as last error:org.wso2.andes.AMQSecurityException: Permission denied: binding SimpleStockTopicSub2 [error code 403: access refused]
[2015-10-16 11:10:26,573] ERROR - ServiceTaskManager Error creating JMS consumer for service : SimpleStockTopicSub2. Error registering consumer: org.wso2.andes.AMQSecurityException: org.wso2.andes.AMQSecurityException: Permission denied: binding SimpleStockTopicSub2 [error code 403: access refused] [error code 403: access refused]
[2015-10-16 11:10:26,574] ERROR - ServiceTaskManager Error reciving the message.
[2015-10-16 11:10:26,573] ERROR - ServiceTaskManager JMS Connection failed : 403 - shutting down worker tasks
[2015-10-16 11:10:26,575]  INFO - ServiceTaskManager Reconnection attempt : 1 for service : SimpleStockTopicSub2
[2015-10-16 11:10:31,220] ERROR - ServiceTaskManager Reconnection attempt : 1 for service : SimpleStockTopicSub2 failed. Next retry in 20 seconds
[2015-10-16 11:10:31,576]  WARN - ServiceTaskManager Unable to shutdown all polling tasks of service : SimpleStockTopicSub2
[2015-10-16 11:10:31,577]  INFO - ServiceTaskManager Task manager for service : SimpleStockTopicSub2 shutdown
[2015-10-16 11:10:31,577]  INFO - ServiceTaskManager Task manager for service : SimpleStockTopicSub2 [re-]initialized
[2015-10-16 11:10:31,821]  INFO - ConnectionCloseMethodHandler ConnectionClose frame received
[2015-10-16 11:10:31,822]  INFO - ConnectionCloseMethodHandler Error :403: access refused:Thread-40
[2015-10-16 11:10:31,823] ERROR - AMQStateManager No Waiters for error saving as last error:org.wso2.andes.AMQSecurityException: Permission denied: binding SimpleStockTopicSub2 [error code 403: access refused]
[2015-10-16 11:10:31,824] ERROR - ServiceTaskManager Error creating JMS consumer for service : SimpleStockTopicSub2. Error registering consumer: org.wso2.andes.AMQSecurityException: org.wso2.andes.AMQSecurityException: Permission denied: binding SimpleStockTopicSub2 [error code 403: access refused] [error code 403: access refused]
[2015-10-16 11:10:31,824] ERROR - ServiceTaskManager Error reciving the message.
[2015-10-16 11:10:31,824] ERROR - ServiceTaskManager JMS Connection failed : 403 - shutting down worker tasks
[2015-10-16 11:10:31,825]  INFO - ServiceTaskManager Reconnection attempt : 1 for service : SimpleStockTopicSub2
[2015-10-16 11:10:36,579] ERROR - ServiceTaskManager Reconnection attempt : 1 for service : SimpleStockTopicSub2 failed. Next retry in 20 seconds
[2015-10-16 11:10:36,827]  WARN - ServiceTaskManager Unable to shutdown all polling tasks of service : SimpleStockTopicSub2
[2015-10-16 11:10:36,827]  INFO - ServiceTaskManager Task manager for service : SimpleStockTopicSub2 shutdown
[2015-10-16 11:10:36,828]  INFO - ServiceTaskManager Task manager for service : SimpleStockTopicSub2 [re-]initialized
[2015-10-16 11:10:37,116]  INFO - ConnectionCloseMethodHandler ConnectionClose frame received
[2015-10-16 11:10:37,117]  INFO - ConnectionCloseMethodHandler Error :403: access refused:Thread-37
[2015-10-16 11:10:37,118] ERROR - AMQStateManager No Waiters for error saving as last error:org.wso2.andes.AMQSecurityException: Permission denied: binding SimpleStockTopicSub2 [error code 403: access refused]
[2015-10-16 11:10:37,118] ERROR - ServiceTaskManager Error creating JMS consumer for service : SimpleStockTopicSub2. Error registering consumer: org.wso2.andes.AMQSecurityException: org.wso2.andes.AMQSecurityException: Permission denied: binding SimpleStockTopicSub2 [error code 403: access refused] [error code 403: access refused]

[2015-10-16 11:11:18,960] ERROR - ServiceTaskManager Error reciving the message.
[2015-10-16 11:11:18,959] ERROR - ServiceTaskManager JMS Connection failed : 403 - shutting down worker tasks
[2015-10-16 11:11:18,961]  INFO - ServiceTaskManager Reconnection attempt : 1 for service : SimpleStockTopicSub2
[2015-10-16 11:11:23,676] ERROR - ServiceTaskManager Reconnection attempt : 2 for service : SimpleStockTopicSub2 failed. Next retry in 40 seconds
[2015-10-16 11:11:23,962]  WARN - ServiceTaskManager Unable to shutdown all polling tasks of service : SimpleStockTopicSub2
[2015-10-16 11:11:23,963]  INFO - ServiceTaskManager Task manager for service : SimpleStockTopicSub2 shutdown
[2015-10-16 11:11:23,963]  INFO - ServiceTaskManager Task manager for service : SimpleStockTopicSub2 [re-]initialized
[2015-10-16 11:11:24,405]  INFO - ConnectionCloseMethodHandler ConnectionClose frame received
[2015-10-16 11:11:24,406]  INFO - ConnectionCloseMethodHandler Error :403: access refused:Thread-33
[2015-10-16 11:11:24,406] ERROR - AMQStateManager No Waiters for error saving as last error:org.wso2.andes.AMQSecurityException: Permission denied: binding SimpleStockTopicSub2 [error code 403: access refused]
[2015-10-16 11:11:24,407] ERROR - ServiceTaskManager Error creating JMS consumer for service : SimpleStockTopicSub2. Error registering consumer: org.wso2.andes.AMQSecurityException: org.wso2.andes.AMQSecurityException: Permission denied: binding SimpleStockTopicSub2 [error code 403: access refused] [error code 403: access refused]
[2015-10-16 11:11:24,407] ERROR - ServiceTaskManager JMS Connection failed : 403 - shutting down worker tasks
[2015-10-16 11:11:24,408] ERROR - ServiceTaskManager Error reciving the message.
[2015-10-16 11:11:24,408]  INFO - ServiceTaskManager Reconnection attempt : 1 for service : SimpleStockTopicSub2
[2015-10-16 11:11:28,965] ERROR - ServiceTaskManager Reconnection attempt : 1 for service : SimpleStockTopicSub2 failed. Next retry in 20 seconds
[2015-10-16 11:11:29,410]  WARN - ServiceTaskManager Unable to shutdown all polling tasks of service : SimpleStockTopicSub2
[2015-10-16 11:11:29,411]  INFO - ServiceTaskManager Task manager for service : SimpleStockTopicSub2 shutdown
[2015-10-16 11:11:29,411]  INFO - ServiceTaskManager Task manager for service : SimpleStockTopicSub2 [re-]initialized
[2015-10-16 11:11:34,412] ERROR - ServiceTaskManager Reconnection attempt : 1 for service : SimpleStockTopicSub2 failed. Next retry in 20 seconds
[2015-10-16 11:11:37,623]  INFO - ServiceTaskManager Reconnection attempt : 3 for service : SimpleStockTopicSub2
[2015-10-16 11:11:42,764]  INFO - ServiceTaskManager Reconnection attempt : 3 for service : SimpleStockTopicSub2
[2015-10-16 11:11:48,053]  INFO - ServiceTaskManager Reconnection attempt : 3 for service : SimpleStockTopicSub2
[2015-10-16 11:11:48,966]  INFO - ServiceTaskManager Reconnection attempt : 2 for service : SimpleStockTopicSub2
[2015-10-16 11:11:53,324]  INFO - ServiceTaskManager Reconnection attempt : 3 for service : SimpleStockTopicSub2
[2015-10-16 11:11:54,413]  INFO - ServiceTaskManager Reconnection attempt : 2 for service : SimpleStockTopicSub2
[2015-10-16 11:11:58,611]  INFO - ServiceTaskManager Reconnection attempt : 3 for service : SimpleStockTopicSub2
[2015-10-16 11:11:58,840]  INFO - DeploymentInterceptor Removing Axis2 Service: SimpleStockTopicSub2 {super-tenant}
[2015-10-16 11:11:59,422]  INFO - AMQConnection Unable to connect to broker at tcp://192.168.48.140:5672?connectdelay='10'&retries='5'
org.wso2.andes.AMQTimeoutException: Server did not respond in a timely fashion [error code 408: Request Timeout]
	at org.wso2.andes.client.util.BlockingWaiter.block(BlockingWaiter.java:176)
	at org.wso2.andes.client.state.StateWaiter.await(StateWaiter.java:112)
	at org.wso2.andes.client.state.StateWaiter.await(StateWaiter.java:89)
	at org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:126)
	at org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:615)
	at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:397)
	at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:327)
	at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:38)
	at org.apache.axis2.transport.jms.JMSUtils.createConnection(JMSUtils.java:690)
	at org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.createConnection(ServiceTaskManager.java:868)
	at org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.getConnection(ServiceTaskManager.java:750)
	at org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.receiveMessage(ServiceTaskManager.java:533)
	at org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.run(ServiceTaskManager.java:447)
	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)
[2015-10-16 11:11:59,425]  INFO - FailoverRoundRobinServers ==== Checking failoverAllowed() ====
[2015-10-16 11:11:59,425]  INFO - FailoverRoundRobinServers Cycle Servers:
Cycle Retries:2
Current Cycle:0
Server Retries:0
Current Retry:0
Current Broker:0
>tcp://192.168.48.140:5672?connectdelay='10'&retries='5'
tcp://192.168.48.142:5672?connectdelay='10'&retries='5'

[2015-10-16 11:11:59,425]  INFO - FailoverRoundRobinServers ====================================
[2015-10-16 11:11:59,426]  INFO - FailoverRoundRobinServers Delay between connect retries:10
[2015-10-16 11:12:03,677]  INFO - ServiceTaskManager Reconnection attempt : 3 for service : SimpleStockTopicSub2

[2015-10-16 11:12:29,448]  INFO - AMQConnection Unable to connect to broker at tcp://192.168.48.142:5672?connectdelay='10'&retries='5'
org.wso2.andes.AMQTimeoutException: Server did not respond in a timely fashion [error code 408: Request Timeout]
	at org.wso2.andes.client.util.BlockingWaiter.block(BlockingWaiter.java:176)
	at org.wso2.andes.client.state.StateWaiter.await(StateWaiter.java:112)
	at org.wso2.andes.client.state.StateWaiter.await(StateWaiter.java:89)
	at org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:126)
	at org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:615)
	at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:397)
	at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:327)
	at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:38)
	at org.apache.axis2.transport.jms.JMSUtils.createConnection(JMSUtils.java:690)
	at org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.createConnection(ServiceTaskManager.java:868)
	at org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.getConnection(ServiceTaskManager.java:750)
	at org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.receiveMessage(ServiceTaskManager.java:533)
	at org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.run(ServiceTaskManager.java:447)
	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)
[2015-10-16 11:12:29,451]  INFO - FailoverRoundRobinServers ==== Checking failoverAllowed() ====
[2015-10-16 11:12:29,451]  INFO - FailoverRoundRobinServers Cycle Servers:
Cycle Retries:2
Current Cycle:0
Server Retries:5
Current Retry:0
Current Broker:1
tcp://192.168.48.140:5672?connectdelay='10'&retries='5'
>tcp://192.168.48.142:5672?connectdelay='10'&retries='5'

[2015-10-16 11:12:29,452]  INFO - FailoverRoundRobinServers ====================================
[2015-10-16 11:12:29,452]  INFO - FailoverRoundRobinServers Trying tcp://192.168.48.142:5672?connectdelay='10'&retries='5'
[2015-10-16 11:12:29,452]  INFO - FailoverRoundRobinServers Delay between connect retries:10
[2015-10-16 11:12:59,475]  INFO - AMQConnection Unable to connect to broker at tcp://192.168.48.142:5672?connectdelay='10'&retries='5'
org.wso2.andes.AMQTimeoutException: Server did not respond in a timely fashion [error code 408: Request Timeout]
	at org.wso2.andes.client.util.BlockingWaiter.block(BlockingWaiter.java:176)
	at org.wso2.andes.client.state.StateWaiter.await(StateWaiter.java:112)
	at org.wso2.andes.client.state.StateWaiter.await(StateWaiter.java:89)
	at org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:126)
	at org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:615)
	at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:397)
	at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:327)
	at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:38)
	at org.apache.axis2.transport.jms.JMSUtils.createConnection(JMSUtils.java:690)
	at org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.createConnection(ServiceTaskManager.java:868)
	at org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.getConnection(ServiceTaskManager.java:750)
	at org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.receiveMessage(ServiceTaskManager.java:533)
	at org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.run(ServiceTaskManager.java:447)
	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)
[2015-10-16 11:12:59,478]  INFO - FailoverRoundRobinServers ==== Checking failoverAllowed() ====
[2015-10-16 11:12:59,479]  INFO - FailoverRoundRobinServers Cycle Servers:
Cycle Retries:2
Current Cycle:0
Server Retries:5
Current Retry:1
Current Broker:1
tcp://192.168.48.140:5672?connectdelay='10'&retries='5'
>tcp://192.168.48.142:5672?connectdelay='10'&retries='5'

[2015-10-16 11:12:59,480]  INFO - FailoverRoundRobinServers ====================================
[2015-10-16 11:12:59,480]  INFO - FailoverRoundRobinServers Trying tcp://192.168.48.142:5672?connectdelay='10'&retries='5'
[2015-10-16 11:12:59,481]  INFO - FailoverRoundRobinServers Delay between connect retries:10


 Comments   
Comment by Ravindra Ranwala [ 30/May/16 ]

The given information is not cleat for us to reproduce the issue. Please clearly state the necessary steps to reproduce the issue. If you are sharing the user store etc please state those specific information that will facilitate us to replicate the issue here.





[ESBJAVA-4234] The Throttle Mediator doesn't work correctly when using Respond Mediator without sending message out to an endpoint Created: 24/Sep/15  Updated: 06/Aug/16

Status: Postponed
Project: WSO2 ESB
Component/s: Mediators
Affects Version/s: 4.9.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: shmily wen Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: ESB
Remaining Estimate: 8 hours
Time Spent: Not Specified
Original Estimate: 8 hours
Environment:

windows7 64bit, Developer Studio 3.7.1, JDK 8


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

 Description   

The Throttle Mediator doesn't treats the Respond Mediator as a response, so that the count for concurrent access number is not increase after Respond Mediator send message back to client. When digging into the code, I found ThrottleMediator.java has decrease the rest count for concurrent access number in line 129,
if (concurrentAccessController != null)

{ canAccess = doThrottleByConcurrency(isResponse, synLog); }

and only when SynapseCallbackReceiver.java line 501 is called,
int available = concurrentAccessController.incrementAndGet();
the number will be added back.

But when I use Respond Mediator, it doesn't involve SynapseCallbackReceiver since it doesn't send request to real service, so it doesn't add the number back. After a few invocation, all my request will fail.



 Comments   
Comment by Chanaka Fernando [ 06/Aug/16 ]

This needs a major revamp in the throttle mediator. Hence postponing for future release.





[ESBJAVA-2867] Inconsistency in filter mediator Created: 06/Jan/14  Updated: 09/Jul/15

Status: Open
Project: WSO2 ESB
Component/s: Message Stores
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Chandana Napagoda Assignee: Jagath Ariyarathne
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: XML File config.xml    
Severity: Critical
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

Filter mediator shows an inconsistent behavior after messages passed via message store processor. Please refer below synapse config. With out store processor it prints below log[1] and with store processor it prints log[2]

[1]. RESULT = Found a SOAP fault, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.generalException</faultcode><faultstring>java.io.IOException Message being parsed: </faultstring></soapenv:Fault></soapenv:Body></soapenv:Envelope>

[2]. RESULT = All is well, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.generalException</faultcode><faultstring>java.io.IOException Message being parsed: </faultstring></soapenv:Fault></soapenv:Body></soapenv:Envelope>



 Comments   
Comment by Kasun Indrasiri [ 23/Jan/14 ]

Lowering the priority as this is not a L1.





[ESBJAVA-2753] [EntitlementMediator] Once did some change in esb side, it took nearly 15min to update and execute the correct result for a XACML policy Created: 26/Nov/13  Updated: 25/Jul/15

Status: Open
Project: WSO2 ESB
Component/s: Mediators
Affects Version/s: 4.8.0 Alpha
Fix Version/s: None

Type: Improvement Priority: High
Reporter: Suneth Ranasinghe Assignee: madhuranga bandara
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

I have changed the XACML policy (role) and try to invoke the given service which should not be permitted for the given user. But its allowing the user to access the service for nearly like 15mins.






[ESBJAVA-5175] Cannot access the secured service from CG Created: 21/Sep/12  Updated: 11/Jul/17

Status: Open
Project: WSO2 ESB
Component/s: Cloud Gateway
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Aparna Karunarathna Assignee: Rajika Kumarasiri
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Server: wso2cg-1.0.0(https://svn.wso2.org/repos/wso2/people/rajika/cg/release/19-10-2012)
OS: Win 7
Java: 1.6.29


Attachments: Zip Archive SecurityClient.zip    
Severity: Critical
Estimated Complexity: Moderate
Test cases added: No

 Description   

cannot access the secured service from CG and following error message was displayed when access via Tryit tool

Steps to reproduce
Start CG & Appserver
Login to AppServer and do the basic CG configuration and publish a service
login to CG server and secure the service using Username token
then access via tryit tool by giving the usename/Password
observe the backend error

[2012-09-21 12:40:35,343] ERROR - Axis2Sender Unexpected error during sending message out
org.apache.axis2.AxisFault: No user value in the rampart configuration policy
at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:117)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:427)
at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:193)
at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:175)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:445)
at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:57)
at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:281)
at org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:297)
at org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:59)
at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:175)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:409)
at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:261)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.rampart.RampartException: No user value in the rampart configuration policy
at org.apache.rampart.builder.BindingBuilder.addUsernameToken(BindingBuilder.java:210)
at org.apache.rampart.builder.TransportBindingBuilder.build(TransportBindingBuilder.java:95)
at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:140)
at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:106)
... 21 more



 Comments   
Comment by Aparna Karunarathna [ 21/Sep/12 ]

Following error were thrown when access the secured services from client

[2012-09-21 19:04:46,384] ERROR - AxisEngine Missing wsse:Security header in request
org.apache.axis2.AxisFault: Missing wsse:Security header in request
at org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:198)
at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:111)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:409)
at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:261)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.rampart.RampartException: Missing wsse:Security header in request
at org.apache.rampart.RampartEngine.process(RampartEngine.java:141)
at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:104)
... 11 more
[2012-09-21 19:04:46,390] ERROR - ServerWorker Error processing POST request
org.apache.axis2.AxisFault: Missing wsse:Security header in request
at org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:198)
at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:111)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:409)
at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:261)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.rampart.RampartException: Missing wsse:Security header in request
at org.apache.rampart.RampartEngine.process(RampartEngine.java:141)
at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:104)
... 11 more
[2012-09-21 19:04:46,795] ERROR - HttpCoreNIOSender General Error sending response message to : 10.100.3.176
java.lang.NullPointerException
at org.wso2.carbon.relay.ExpandingMessageFormatter.writeTo(ExpandingMessageFormatter.java:92)
at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:540)
at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:315)
at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:526)
at org.apache.synapse.transport.nhttp.ServerWorker.handleException(ServerWorker.java:488)
at org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:418)
at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:261)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
[2012-09-21 19:04:46,798] ERROR - ServerHandler Unexpected HTTP protocol error : Transfer-encoding header already present
org.apache.http.ProtocolException: Transfer-encoding header already present
at org.apache.http.protocol.ResponseContent.process(ResponseContent.java:63)
at org.apache.http.protocol.BasicHttpProcessor.process(BasicHttpProcessor.java:211)
at org.apache.synapse.transport.nhttp.ServerHandler.commitResponseHideExceptions(ServerHandler.java:367)
at org.apache.synapse.transport.nhttp.ServerWorker.handleException(ServerWorker.java:494)
at org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:418)
at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:261)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
[2012-09-21 19:04:46,801] ERROR - NativeWorkerPool Uncaught exception
java.lang.IllegalStateException: Buffer already closed for writing
at org.apache.http.nio.util.SharedOutputBuffer.write(SharedOutputBuffer.java:181)
at org.apache.http.nio.entity.ContentOutputStream.write(ContentOutputStream.java:71)
at org.apache.synapse.transport.nhttp.ServerWorker.handleException(ServerWorker.java:511)
at org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:418)
at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:261)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

Comment by Rajika Kumarasiri [ 01/Oct/12 ]

This is reported here https://wso2.org/jira/browse/ESBJAVA-1613 and https://wso2.org/jira/browse/ESBJAVA-1604

Rajika

Comment by Rajika Kumarasiri [ 01/Oct/12 ]

I have reduced the priority since you can invoke the secured CG service via an client. The try it will be fixed as part of the above two issues.

Rajika





[ESBJAVA-5180] CG server is not responding for curl request Created: 27/Sep/12  Updated: 11/Jul/17

Status: Open
Project: WSO2 ESB
Component/s: Cloud Gateway
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Aparna Karunarathna Assignee: Rajika Kumarasiri
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Server: wso2cg-1.0.0(http://builder1.us1.wso2.org/~lakmali/26-10-12/cg/)
OS: Ubuntu
Java: 1.6.29
----------------------------------
Server: AppServer (Released pack)
OS: Win 7
Java: 1.6.31


Attachments: File MobileDirectoryService.aar    
Severity: Critical
Estimated Complexity: Moderate
Test cases added: No

 Description   

CG server is not responding for curl request

Steps to reproduce
Start CG & AppServer
login to the CG server and create tenant user
Login to AppServer and configure the CG setting in AppServer for tenant user
then upload the MobileDirectoryService.aar service and publish the service
then post a service via curl and the invoke the get method, both requests got the following error

C:\>curl --data "user=ccc&mobileNumber=33333" -X POST -H "Content-Type: application/x-www-form-urlencoded" http://10.100.3.136:8280/services/t/ank.com/MobileDirectoryService/mobile/
curl: (52) Empty reply from server

C:\>curl -X GET http://10.100.3.136:8280/services/t/ank.com/MobileDirectoryService/mobile/bbb
curl: (52) Empty reply from server



 Comments   
Comment by Rajika Kumarasiri [ 28/Sep/12 ]

Did you try using <parameter name="disableRestServiceDispatching" locked="false">true</parameter> parameter in nhttp transport receiver section as in https://wso2.org/jira/browse/ESBJAVA-1469.

Rajika





[ESBJAVA-5183] CGAgent generates the invalid location in the generated WSDL for certain services Created: 17/Sep/12  Updated: 11/Jul/17

Status: Open
Project: WSO2 ESB
Component/s: Cloud Gateway
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Rajika Kumarasiri Assignee: Rajika Kumarasiri
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File UserManagementDS.dbs    
Severity: Blocker
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

Deploy the attach services and check the WSDL with normal case and when published to CG.

Rajika






[ESBJAVA-5157] Page is getting refresh after getting the successful message Created: 19/Sep/12  Updated: 11/Jul/17

Status: Open
Project: WSO2 ESB
Component/s: Cloud Gateway
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Aparna Karunarathna Assignee: Rajika Kumarasiri
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

AS/ESB - Release pack
Java: 1.6.29


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

 Description   

Page is getting refresh after getting the successful message

Steps to Reproduce
Start Appserver & ESB
Deploy a service in the Appserver and create proxy service for appserver service
Then add CG server to ESB server
Go to the Publish/Unpublish Service page and publish the service
Then click the switch to manual option and you'll get two messages
2nd one is successful message and then whole page is getting refresh again






[ESBJAVA-5231] WSO2 EI-6.1.1 inbound endpoint not working with IBM MQ-8. Created: 22/Sep/17  Updated: 22/Sep/17

Status: Open
Project: WSO2 ESB
Component/s: Inbound Endpoints, JMS Transport
Affects Version/s: EI-611
Fix Version/s: None

Type: Task Priority: High
Reporter: Siddu K Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: 1 day
Time Spent: Not Specified
Original Estimate: 1 day
Environment:

AWS


Severity: Critical
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0
Test cases added: No

 Description   

WSO2 EI-6.1.1 inbound endpoint not working with IBM MQ-8, getting following exception "JMS Inbound transport support JMS TextMessage type only. Found message type javax.jms.BytesMessage"

Inbound endpoint:
-----------------------
<?xml version="1.0" encoding="UTF-8"?>
<inboundEndpoint name="inboundiep" onError="error_details_seq" protocol="jms" sequence="inboundvalidate_seq" suspend="true" xmlns="http://ws.apache.org/ns/synapse">
<parameters>
<parameter name="interval">1</parameter>
<parameter name="sequential">true</parameter>
<parameter name="coordination">true</parameter>
<parameter name="transport.jms.Destination">TEST.QUEUE</parameter>
<parameter name="transport.jms.CacheLevel">3</parameter>
<parameter name="transport.jms.ConnectionFactoryJNDIName">MyQueueConnectionFactory</parameter>
<parameter name="java.naming.factory.initial">com.sun.jndi.fscontext.RefFSContextFactory</parameter>
<parameter name="java.naming.provider.url">file:/home/binding</parameter>
<parameter name="transport.jms.SessionAcknowledgement">AUTO_ACKNOWLEDGE</parameter>
<parameter name="transport.jms.SessionTransacted">false</parameter>
<parameter name="transport.jms.SubscriptionDurable">false</parameter>
<parameter name="transport.jms.ConnectionFactoryType">queue</parameter>
<parameter name="transport.jms.ContentType">application/xml</parameter>
<parameter name="transport.jms.SharedSubscription">false</parameter>
</parameters>
</inboundEndpoint>






[ESBJAVA-5237] ERROR - Deadlock found when trying to get lock; try restarting transaction Created: 06/Oct/17  Updated: 06/Oct/17

Status: Open
Project: WSO2 ESB
Component/s: Mediators
Affects Version/s: 4.9.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: Kasun Senevirathne Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: ESB
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Centos7


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

 Description   

ataSource : jdbc:mysql://***********:3306/database

{org.apache.synapse.mediators.db.DBReportMediator}

com.mysql.jdbc.exceptions.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:941)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3256)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1313)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1585)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1500)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1485)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.synapse.mediators.db.DBReportMediator.processStatement(DBReportMediator.java:73)
at org.apache.synapse.mediators.db.AbstractDBMediator.mediate(AbstractDBMediator.java:143)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:61)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:214)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at org.apache.synapse.config.xml.AnonymousListMediator.mediate(AnonymousListMediator.java:30)
at org.apache.synapse.config.xml.SwitchCase.mediate(SwitchCase.java:66)
at org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:123)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at org.apache.synapse.config.xml.AnonymousListMediator.mediate(AnonymousListMediator.java:30)
at org.apache.synapse.config.xml.SwitchCase.mediate(SwitchCase.java:66)
at org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:123)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:61)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:175)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:395)
at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:142)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
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)
TID: [-1234] [] [2017-10-06 10:59:55,964] WARN

{org.apache.synapse.FaultHandler} - ERROR_CODE : 0 {org.apache.synapse.FaultHandler}

TID: [-1234] [] [2017-10-06 10:59:55,964] WARN

{org.apache.synapse.FaultHandler} - ERROR_MESSAGE : SQL Error while executing insert statement : INSERT INTO cfc_requests(tablesvalues) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); against DataSource : jdbc:mysql://****************:3306/database {org.apache.synapse.FaultHandler}

TID: [-1234] [] [2017-10-06 10:59:55,964] WARN

{org.apache.synapse.FaultHandler} - ERROR_DETAIL : org.apache.synapse.SynapseException: SQL Error while executing insert statement : INSERT INTO cfc_requests(tablesvalues) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); against DataSource : jdbc:mysql://*************:3306/database
at org.apache.synapse.mediators.AbstractMediator.handleException(AbstractMediator.java:325)
at org.apache.synapse.mediators.db.DBReportMediator.processStatement(DBReportMediator.java:94)
at org.apache.synapse.mediators.db.AbstractDBMediator.mediate(AbstractDBMediator.java:143)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:61)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:214)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at org.apache.synapse.config.xml.AnonymousListMediator.mediate(AnonymousListMediator.java:30)
at org.apache.synapse.config.xml.SwitchCase.mediate(SwitchCase.java:66)
at org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:123)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at org.apache.synapse.config.xml.AnonymousListMediator.mediate(AnonymousListMediator.java:30)
at org.apache.synapse.config.xml.SwitchCase.mediate(SwitchCase.java:66)
at org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:123)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:61)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:175)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:395)
at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:142)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
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)
Caused by: com.mysql.jdbc.exceptions.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:941)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3256)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1313)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1585)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1500)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1485)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.synapse.mediators.db.DBReportMediator.processStatement(DBReportMediator.java:73)
... 32 more
{org.apache.synapse.FaultHandler}

TID: [-1234] [] [2017-10-06 10:59:55,965] WARN

{org.apache.synapse.FaultHandler} - ERROR_EXCEPTION : org.apache.synapse.SynapseException: SQL Error while executing insert statement : INSERT INTO cfc_requests(tablesvalues) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); against DataSource : jdbc:mysql://**************:3306/databse {org.apache.synapse.FaultHandler}

TID: [-1234] [] [2017-10-06 10:59:55,965] WARN

{org.apache.synapse.FaultHandler} - FaultHandler : org.apache.synapse.mediators.MediatorFaultHandler@7c8c9b3b {org.apache.synapse.FaultHandler}

TID: [-1234] [] [2017-10-06 10:59:55,965] WARN

{org.apache.synapse.mediators.MediatorFaultHandler} - Executing fault handler mediator : fault {org.apache.synapse.mediators.MediatorFaultHandler}

TID: [-1234] [] [2017-10-06 10:59:55,984] INFO

{org.apache.synapse.mediators.builtin.LogMediator}

- To: /services/***********12Endpoint, WSAction: http://www.*****.lk/CFCIntergrator/TransferCFCInfo, SOAPAction: http://www.*****.lk/CFCIntergrator/TransferCFCInfo, MessageID: urn:uuid:7813e2f0-84fc-4f6f-aaf0-70822d9152bd, Direction: request, ASKPI-WBInSequenceWithPayload = MESSAGE RECEIVED, Content-Type = application/soap+xml; charset=UTF-8; action="http://www.****.lk/CFCIntergrator/TransferCFCInfo", forwardinstid_code = P104, Envelope: }






[ESBJAVA-3988] [Tenant] 202 - Accepted, Not sent when invoking APIs in Tenant environment Created: 29/Jul/15  Updated: 30/Aug/17

Status: Reopened
Project: WSO2 ESB
Component/s: API
Affects Version/s: 4.9.0 - Alpha
Fix Version/s: None

Type: Bug Priority: High
Reporter: Yasassri Rathnayake Assignee: Chanika Geeganage
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Pack : wso2esb-4.9.0-BETA-SNAPSHOT
Java Version : Java 1.8.0_05
Setup : Standalone
Browser : Chrome Version 43.0.2357.130 (64-bit) | FireFox 38.0
DB : H2


Issue Links:
Duplicate
duplicates ESBJAVA-4194 [Tenant] Transport properties are not... Resolved
Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

Steps to Recreate

1. Login to a tenant and create the following API.

<api xmlns="http://ws.apache.org/ns/synapse" name="API01" context="/t/test.com/api">
   <resource methods="POST GET">
      <inSequence>
 <property name="FORCE_SC_ACCEPTED" value="true" scope="axis2" type="STRING"/>
         <log/>
      </inSequence>
   </resource>
</api>

2. Now invoke the API.

Issue : When the message is accepted ESB should send a 202. This is never sent and client keeps on waiting. Wire logs are as follows.

[2015-07-29 21:12:47,116] DEBUG - wire >> "POST /t/test.com/api HTTP/1.1[\r][\n]"
[2015-07-29 21:12:47,116] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
[2015-07-29 21:12:47,116] DEBUG - wire >> "Content-Type: application/json[\r][\n]"
[2015-07-29 21:12:47,116] DEBUG - wire >> "Content-Length: 575[\r][\n]"
[2015-07-29 21:12:47,116] DEBUG - wire >> "Host: 10.100.5.112:8280[\r][\n]"
[2015-07-29 21:12:47,116] DEBUG - wire >> "User-Agent: Apache-HttpClient/4.2.6 (java 1.5)[\r][\n]"
[2015-07-29 21:12:47,116] DEBUG - wire >> "[\r][\n]"
[2015-07-29 21:12:47,116] DEBUG - wire >> "{[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "    "menu": {[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "        "id": "file",[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "        "value": "File",[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "        "popup": {[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "            "menuitem": [[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "                {[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "                    "value": "New",[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "                    "onclick": "XXXXXXXXXXXXXXXXXXXXXXXXXXX"[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "                },[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "                {[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "                    "value": "Open",[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "                    "onclick": "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY"[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "                },[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "                {[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "                    "value": "Close",[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "                    "onclick": "ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ"[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "                }[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "            ][\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "        }[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "    }[\r][\n]"
[2015-07-29 21:12:47,117] DEBUG - wire >> "}"
[2015-07-29 21:12:47,195]  INFO - LogMediator To: local://axis2services/api, MessageID: urn:uuid:64bbdc9e-3c01-4f76-8247-be1bd507097d, Direction: request


 Comments   
Comment by Chanika Geeganage [ 30/Aug/17 ]

The real issue reported in ESBJAVA-4194 is not resolved yet.





[ESBJAVA-5038] Error when creating a role in WSO2 IS RemoteUserStoreManagerService from a call blocking="true" in WSO2 ESB Created: 07/Mar/17  Updated: 07/Mar/17

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.9.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: ajanthan e Assignee: Chanaka Fernando
Resolution: Unresolved 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   

Follow the below steps to reproduce the issue.
1) Enable admin services and up the WSO2 IS.
2) create a proxy service as below:

<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="test3"
       transports="http"
       startOnLoad="true"
       trace="disable">
   <description/>
   <target>
      <inSequence>
         <log level="custom">
            <property name="LOG3" value="--- before call test33 ---"/>
         </log>
         <payloadFactory media-type="xml">
            <format>
               <ser:addRole xmlns:ser="http://service.ws.um.carbon.wso2.org">
                  <ser:roleName>demo325</ser:roleName>
               </ser:addRole>
            </format>
            <args/>
         </payloadFactory>
         <header name="Action" value="urn:addRole"/>
         <property name="HTTP_METHOD" value="POST" scope="axis2"/>
         <property name="Authorization"
                   expression="fn:concat('Basic ', base64Encode('admin:admin'))"
                   scope="transport"/>
         <property name="messageType" value="application/xml" scope="axis2"/>
         <log level="full"/>
         <call blocking="true">
            <endpoint>
               <address uri="https://localhost:9444/services/RemoteUserStoreManagerService"/>
            </endpoint>
         </call>
         <log level="custom">
            <property name="LOG3" value="--- after call test333 ---"/>
         </log>
         <respond/>
      </inSequence>
      <faultSequence>
         <log level="custom">
            <property name="LOG3" value="--- inside faultSequence - test3333 ---"/>
         </log>
         <sequence key="fault"/>
      </faultSequence>
   </target>
</proxy>

3) Send a request to test3.xml.

4) Will get the below error.

[2017-03-07 09:43:29,306] ERROR - ServerWorker Error processing GET reguest for : /services/test3. Error detail: org.apache.synapse.SynapseException: Could not build full log message: null. 
java.lang.RuntimeException: org.apache.synapse.SynapseException: Could not build full log message: null
	at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:110)
	at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:214)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
	at org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:317)
	at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:149)
	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)
Caused by: org.apache.synapse.SynapseException: Could not build full log message: null
	at org.apache.synapse.mediators.AbstractMediator.handleException(AbstractMediator.java:285)
	at org.apache.synapse.mediators.builtin.LogMediator.getFullLogMessage(LogMediator.java:207)
	at org.apache.synapse.mediators.builtin.LogMediator.getLogMessage(LogMediator.java:131)
	at org.apache.synapse.mediators.builtin.LogMediator.mediate(LogMediator.java:95)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:214)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
	at org.apache.synapse.mediators.MediatorFaultHandler.onFault(MediatorFaultHandler.java:86)
	at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:102)
	... 8 more






[ESBJAVA-5126] PATCH request not working in blocking mode. Created: 19/Jun/17  Updated: 04/Sep/17

Status: In Progress
Project: WSO2 ESB
Component/s: None
Affects Version/s: 5.0.0
Fix Version/s: None

Type: Bug Priority: High
Reporter: Kanapriya Kuleswararajan Assignee: Rukshani Athapathu
Resolution: Unresolved 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   

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






[ESBJAVA-4683] [ESB500][JMS][Topics]ESB Subscription will not have proper name in IBM MQ Created: 16/Jun/16  Updated: 16/Jun/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 5.0.0-Beta
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Dilshani Subasinghe Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System : Windows server-2012-R2
Java Version : JDK1.8
Packs : ESB 5.0.0 Beta
ESB Setup: Standalone
JMS Broker: IBM MQ (8.0.0.2)


Attachments: PNG File WMQ.png    
Severity: Major
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0

 Description   

Preconditions:
1. ESB should be configured with IBM MQ.
Sample Axis2.xml config:

<transportReceiver name="jms" class="org.apache.axis2.transport.jms.JMSListener">
  <parameter name="default" locked="false">
 <parameter name="java.naming.factory.initial" locked="false">com.sun.jndi.fscontext.RefFSContextFactory</parameter>
    <parameter name="java.naming.provider.url" locked="false">file:/C:/Users/Administrator/Documents/jndidirectory</parameter>
    <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">myQueueConnectionFactory</parameter>
    <parameter name="transport.jms.ConnectionFactoryType" locked="false">queue</parameter>
    <parameter name="transport.jms.UserName" locked="false">Administrator</parameter>
    <parameter name="transport.jms.Password" locked="false">wso2321#qa</parameter>
  </parameter>

  <parameter name="myQueueConnectionFactory1" locked="false">
    <parameter name="java.naming.factory.initial" locked="false">com.sun.jndi.fscontext.RefFSContextFactory</parameter>
    <parameter name="java.naming.provider.url" locked="false">file:/C:/Users/Administrator/Documents/jndidirectory</parameter>
    <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">myQueueConnectionFactory</parameter>
    <parameter name="transport.jms.ConnectionFactoryType" locked="false">queue</parameter>
    <parameter name="transport.jms.UserName" locked="false">Administrator</parameter>
    <parameter name="transport.jms.Password" locked="false">wso2321#qa</parameter>
	 </parameter>
	
	<parameter name="myTopicConnectionFactory1" locked="false">
    <parameter name="java.naming.factory.initial" locked="false">com.sun.jndi.fscontext.RefFSContextFactory</parameter>
    <parameter name="java.naming.provider.url" locked="false">file:/C:/Users/Administrator/Documents/jndidirectory</parameter>
    <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">myTopicConnectionFactory</parameter>
    <parameter name="transport.jms.ConnectionFactoryType" locked="false">topic</parameter>
	<parameter name="transport.jms.DestinationType" locked="false">topic</parameter>
    <parameter name="transport.jms.UserName" locked="false">Administrator</parameter>
    <parameter name="transport.jms.Password" locked="false">wso2321#qa</parameter>
  </parameter>
</transportReceiver>

2. IBM MQ should be up and running
3.ESB should be up and running

Steps to reproduce:
1. Created a proxy which will subscribe to a JMS topic
Sample Configuration:

 <proxy name="testProxy" startOnLoad="true" transports="http https jms">
        <description/>
        <target>
            <inSequence>
                <send>
                    <endpoint>
                        <address uri="jms:/jmsTopic?transport.jms.ConnectionFactory=myTopicConnectionFactory1"/>
                    </endpoint>
                </send>
            </inSequence>
        </target>
        <parameter name="transport.jms.Destination">testTopic</parameter>
        <parameter name="transport.jms.ConnectionFactory">myTopicConnectionFactory1</parameter>
    </proxy>

Expected Result:

  • Subscription should be created within IBM MQ.

Actual Result:

  • Subscription will be created, but without proper name. (Refer attachment)

Note: When adding durable subscriber, it will show the subscriber name properly. When not adding subscriber name, this will be happen






[ESBJAVA-4693] [Intermittent] Response transformation is not working properly in Pre-RC pack which was used Created: 21/Jun/16  Updated: 21/Jun/16

Status: Open
Project: WSO2 ESB
Component/s: Mediators
Affects Version/s: 5.0.0-Pre-RC
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Chathurika De Silva Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: Ubuntu 14.04
JDK: 1.8.0
Pack


Attachments: File OrderService.aar     File TestCaseCAR_1.0.0.car    
Severity: Major
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0
Test cases added: Yes

 Description   

Used the attached proxy service (Test_TransformerProxy_2), sequence (test_seq_4) and xslt (ResponseTransformation.xslt )for response transformation in Pre-RC but failed with the following error

Note: This occurred in a pack that was used for some time

[2016-06-21 12:19:57,260] DEBUG - wire HTTP-Listener I/O dispatcher-11 >> "POST /services/Test_TransformerProxy_2.Test_TransformerProxy_2HttpSoap11Endpoint HTTP/1.1[\r][\n]"
[2016-06-21 12:19:57,261] DEBUG - wire HTTP-Listener I/O dispatcher-11 >> "Accept-Encoding: gzip,deflate[\r][\n]"
[2016-06-21 12:19:57,261] DEBUG - wire HTTP-Listener I/O dispatcher-11 >> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
[2016-06-21 12:19:57,261] DEBUG - wire HTTP-Listener I/O dispatcher-11 >> "SOAPAction: "urn:getOrderDetails"[\r][\n]"
[2016-06-21 12:19:57,261] DEBUG - wire HTTP-Listener I/O dispatcher-11 >> "Content-Length: 318[\r][\n]"
[2016-06-21 12:19:57,261] DEBUG - wire HTTP-Listener I/O dispatcher-11 >> "Host: erandi-Latitude-E6540:8280[\r][\n]"
[2016-06-21 12:19:57,261] DEBUG - wire HTTP-Listener I/O dispatcher-11 >> "Connection: Keep-Alive[\r][\n]"
[2016-06-21 12:19:57,261] DEBUG - wire HTTP-Listener I/O dispatcher-11 >> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
[2016-06-21 12:19:57,261] DEBUG - wire HTTP-Listener I/O dispatcher-11 >> "[\r][\n]"
[2016-06-21 12:19:57,261] DEBUG - wire HTTP-Listener I/O dispatcher-11 >> "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sam="http://sample.wso2.org">[\n]"
[2016-06-21 12:19:57,262] DEBUG - wire HTTP-Listener I/O dispatcher-11 >> "   <soapenv:Header/>[\n]"
[2016-06-21 12:19:57,262] DEBUG - wire HTTP-Listener I/O dispatcher-11 >> "   <soapenv:Body>[\n]"
[2016-06-21 12:19:57,262] DEBUG - wire HTTP-Listener I/O dispatcher-11 >> "      <sam:getOrderDetails>[\n]"
[2016-06-21 12:19:57,262] DEBUG - wire HTTP-Listener I/O dispatcher-11 >> "         <!--Optional:-->[\n]"
[2016-06-21 12:19:57,262] DEBUG - wire HTTP-Listener I/O dispatcher-11 >> "         <sam:requestID>icoo2</sam:requestID>[\n]"
[2016-06-21 12:19:57,262] DEBUG - wire HTTP-Listener I/O dispatcher-11 >> "      </sam:getOrderDetails>[\n]"
[2016-06-21 12:19:57,262] DEBUG - wire HTTP-Listener I/O dispatcher-11 >> "   </soapenv:Body>[\n]"
[2016-06-21 12:19:57,262] DEBUG - wire HTTP-Listener I/O dispatcher-11 >> "</soapenv:Envelope>"
[2016-06-21 12:19:57,262] DEBUG - headers http-incoming-3 >> POST /services/Test_TransformerProxy_2.Test_TransformerProxy_2HttpSoap11Endpoint HTTP/1.1
[2016-06-21 12:19:57,263] DEBUG - headers http-incoming-3 >> Accept-Encoding: gzip,deflate
[2016-06-21 12:19:57,263] DEBUG - headers http-incoming-3 >> Content-Type: text/xml;charset=UTF-8
[2016-06-21 12:19:57,263] DEBUG - headers http-incoming-3 >> SOAPAction: "urn:getOrderDetails"
[2016-06-21 12:19:57,263] DEBUG - headers http-incoming-3 >> Content-Length: 318
[2016-06-21 12:19:57,263] DEBUG - headers http-incoming-3 >> Host: erandi-Latitude-E6540:8280
[2016-06-21 12:19:57,263] DEBUG - headers http-incoming-3 >> Connection: Keep-Alive
[2016-06-21 12:19:57,263] DEBUG - headers http-incoming-3 >> User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
[2016-06-21 12:19:57,268] DEBUG - headers http-outgoing-2 >> POST /services/OrderDetailsRetriever/ HTTP/1.1
[2016-06-21 12:19:57,268] DEBUG - headers http-outgoing-2 >> Accept-Encoding: gzip,deflate
[2016-06-21 12:19:57,268] DEBUG - headers http-outgoing-2 >> Content-Type: text/xml;charset=UTF-8
[2016-06-21 12:19:57,268] DEBUG - headers http-outgoing-2 >> SOAPAction: "urn:getOrderDetails"
[2016-06-21 12:19:57,268] DEBUG - headers http-outgoing-2 >> Transfer-Encoding: chunked
[2016-06-21 12:19:57,269] DEBUG - headers http-outgoing-2 >> Host: 10.100.5.63:9793
[2016-06-21 12:19:57,269] DEBUG - headers http-outgoing-2 >> Connection: Keep-Alive
[2016-06-21 12:19:57,269] DEBUG - headers http-outgoing-2 >> User-Agent: Synapse-PT-HttpComponents-NIO
[2016-06-21 12:19:57,270] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "POST /services/OrderDetailsRetriever/ HTTP/1.1[\r][\n]"
[2016-06-21 12:19:57,270] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "Accept-Encoding: gzip,deflate[\r][\n]"
[2016-06-21 12:19:57,270] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "Content-Type: text/xml;charset=UTF-8[\r][\n]"
[2016-06-21 12:19:57,270] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "SOAPAction: "urn:getOrderDetails"[\r][\n]"
[2016-06-21 12:19:57,270] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "Transfer-Encoding: chunked[\r][\n]"
[2016-06-21 12:19:57,271] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "Host: 10.100.5.63:9793[\r][\n]"
[2016-06-21 12:19:57,271] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "Connection: Keep-Alive[\r][\n]"
[2016-06-21 12:19:57,271] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
[2016-06-21 12:19:57,271] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "[\r][\n]"
[2016-06-21 12:19:57,271] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "13e[\r][\n]"
[2016-06-21 12:19:57,271] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sam="http://sample.wso2.org">[\n]"
[2016-06-21 12:19:57,271] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "   <soapenv:Header/>[\n]"
[2016-06-21 12:19:57,271] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "   <soapenv:Body>[\n]"
[2016-06-21 12:19:57,272] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "      <sam:getOrderDetails>[\n]"
[2016-06-21 12:19:57,272] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "         <!--Optional:-->[\n]"
[2016-06-21 12:19:57,272] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "         <sam:requestID>icoo2</sam:requestID>[\n]"
[2016-06-21 12:19:57,272] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "      </sam:getOrderDetails>[\n]"
[2016-06-21 12:19:57,272] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "   </soapenv:Body>[\n]"
[2016-06-21 12:19:57,272] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "</soapenv:Envelope>[\r][\n]"
[2016-06-21 12:19:57,273] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "0[\r][\n]"
[2016-06-21 12:19:57,273] DEBUG - wire HTTP-Sender I/O dispatcher-2 << "[\r][\n]"
[2016-06-21 12:19:57,275] DEBUG - wire HTTP-Sender I/O dispatcher-2 >> "HTTP/1.1 200 OK[\r][\n]"
[2016-06-21 12:19:57,276] DEBUG - wire HTTP-Sender I/O dispatcher-2 >> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
[2016-06-21 12:19:57,276] DEBUG - wire HTTP-Sender I/O dispatcher-2 >> "Transfer-Encoding: chunked[\r][\n]"
[2016-06-21 12:19:57,276] DEBUG - wire HTTP-Sender I/O dispatcher-2 >> "Date: Tue, 21 Jun 2016 06:49:57 GMT[\r][\n]"
[2016-06-21 12:19:57,276] DEBUG - wire HTTP-Sender I/O dispatcher-2 >> "Server: WSO2 Carbon Server[\r][\n]"
[2016-06-21 12:19:57,276] DEBUG - wire HTTP-Sender I/O dispatcher-2 >> "[\r][\n]"
[2016-06-21 12:19:57,276] DEBUG - wire HTTP-Sender I/O dispatcher-2 >> "215[\r][\n]"
[2016-06-21 12:19:57,276] DEBUG - wire HTTP-Sender I/O dispatcher-2 >> "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:getOrderDetailsResponse xmlns:ns="http://sample.wso2.org"><ns:return xmlns:ax2439="http://sample.wso2.org/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax2439:OrderDetails"><ax2439:orderAmount>2000</ax2439:orderAmount><ax2439:orderId>12345</ax2439:orderId><ax2439:orderName>Test Order</ax2439:orderName></ns:return></ns:getOrderDetailsResponse></soapenv:Body></soapenv:Envelope>[\r][\n]"
[2016-06-21 12:19:57,277] DEBUG - headers http-outgoing-2 << HTTP/1.1 200 OK
[2016-06-21 12:19:57,277] DEBUG - headers http-outgoing-2 << Content-Type: text/xml;charset=UTF-8
[2016-06-21 12:19:57,277] DEBUG - headers http-outgoing-2 << Transfer-Encoding: chunked
[2016-06-21 12:19:57,277] DEBUG - headers http-outgoing-2 << Date: Tue, 21 Jun 2016 06:49:57 GMT
[2016-06-21 12:19:57,277] DEBUG - headers http-outgoing-2 << Server: WSO2 Carbon Server
[2016-06-21 12:19:57,277] DEBUG - wire HTTP-Sender I/O dispatcher-2 >> "0[\r][\n]"
[2016-06-21 12:19:57,277] DEBUG - wire HTTP-Sender I/O dispatcher-2 >> "[\r][\n]"
[2016-06-21 12:19:57,279]  WARN - SynapseConfigUtils Cannot convert null to a StreamSource
[2016-06-21 12:19:57,280] ERROR - XSLTMediator Error creating XSLT transformer using : Value {name ='null', keyValue ='conf:myresources/ResponseTransformation.xslt'}
org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
	at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:580)
	at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:81)
	at org.apache.synapse.mediators.transform.XSLTMediator.createTemplate(XSLTMediator.java:394)
	at org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMediator.java:243)
	at org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMediator.java:202)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:54)
	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:215)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:54)
	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
	at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:332)
	at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:554)
	at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:188)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
	at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:255)
	at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
	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)
[2016-06-21 12:19:57,281] ERROR - XSLTMediator Unable to perform XSLT transformation using : Value {name ='null', keyValue ='conf:myresources/ResponseTransformation.xslt'} against source XPath : s11:Body/child::*[position()=1] | s12:Body/child::*[position()=1] reason : Error creating XSLT transformer using : Value {name ='null', keyValue ='conf:myresources/ResponseTransformation.xslt'}
org.apache.synapse.SynapseException: Error creating XSLT transformer using : Value {name ='null', keyValue ='conf:myresources/ResponseTransformation.xslt'}
	at org.apache.synapse.mediators.AbstractMediator.handleException(AbstractMediator.java:365)
	at org.apache.synapse.mediators.transform.XSLTMediator.createTemplate(XSLTMediator.java:404)
	at org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMediator.java:243)
	at org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMediator.java:202)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:54)
	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:215)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:54)
	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
	at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:332)
	at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:554)
	at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:188)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
	at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:255)
	at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
	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)
Caused by: org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
	at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:580)
	at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:81)
	at org.apache.synapse.mediators.transform.XSLTMediator.createTemplate(XSLTMediator.java:394)
	... 18 more







[ESBJAVA-4682] Car file log appender does not append car file name for connectors deployed with the same car file Created: 15/Jun/16  Updated: 15/Jun/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Maheeka Jayasuriya Assignee: Chanaka Fernando
Resolution: Unresolved 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   

Similar to https://wso2.org/jira/browse/ESBJAVA-4643






[ESBJAVA-4675] JMS Inbound endpoints connection options missing Created: 13/Jun/16  Updated: 24/Jun/16

Status: Open
Project: WSO2 ESB
Component/s: Inbound Endpoints
Affects Version/s: 4.9.0, 5.0.0-Beta
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: gregory eve Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Severity: Major
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0
Test cases added: Yes

 Description   

JMS inbound endpoint restrict the list of connection parameters which can be used, but they are missing parameters.

For example take the parameters which can be used with ActiveMQ: http://activemq.apache.org/connection-configuration-uri.html

Half of the parameters can't be used.

A custom field list could be a solution to allow all the parameters fo all the MQ on the market.

The problem is in the admin console and in the ESB tool.



 Comments   
Comment by gregory eve [ 24/Jun/16 ]

for example we can't add:
<parameter name="transport.jms.ConcurrentConsumers">10</parameter>
<parameter name="transport.jms.MaxConcurrentConsumers">12</parameter>





[ESBJAVA-4756] Add synapse variables for system and operation scopes Created: 14/Jul/16  Updated: 14/Jul/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Normal
Reporter: Nadeeshaan Gunasinghe Assignee: Chanaka Fernando
Resolution: Unresolved 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   

We need add the synapse variables for operation and system scopes as well



 Comments   
Comment by Nadeeshaan Gunasinghe [ 14/Jul/16 ]

Fix added with https://github.com/wso2/wso2-synapse/pull/575

Thanks,
Nadeeshaan.





[ESBJAVA-4750] [ESB][JSON][Message Forwarding Processor] Missing square brackets of array when define one value Created: 12/Jul/16  Updated: 25/Nov/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.9.0, 5.0.0-Beta
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Dilshani Subasinghe Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System : Linux (ubuntu 15.10)
Java Version : JDK1.8
Packs : ESB 4.9.0
ESB Setup: Standalone
JMS Broker: MB (3.1.0)


Attachments: PNG File postmanScreen.png     PNG File responses.png    
Severity: Major
Estimated Complexity: Moderate

 Description   

Prerequisites:

  • ESB should be configured with MB.
  • ESB and MB should be up and running.

Steps to reproduce:
1. Add a proxy (which will accept json messages) and jms message store.

<proxy name="InformationIncome" startOnLoad="true" trace="disable" transports="http https">
        <description/>
        <target>
            <inSequence>
                <log level="full"/>
                <property name="FORCE_SC_ACCEPTED" scope="axis2" value="true"/>
                <property name="OUT_ONLY" value="true"/>
                <property name="content-Type" scope="transport"
                    type="STRING" value="application/json"/>
                <property name="messageType" scope="axis2" type="STRING" value="application/json"/>
                <log level="full"/>
                <store messageStore="InformationIncomeMS"/>
            </inSequence>
        </target>
    </proxy>

 <messageStore
        class="org.apache.synapse.message.store.impl.jms.JmsStore" name="InformationIncomeMS">
        <parameter name="store.jms.destination">JMSQueue</parameter>
        <parameter name="store.producer.guaranteed.delivery.enable">false</parameter>
        <parameter name="java.naming.factory.initial">org.wso2.andes.jndi.PropertiesFileInitialContextFactory</parameter>
        <parameter name="java.naming.provider.url">repository/conf/jndi.properties</parameter>
        <parameter name="store.jms.JMSSpecVersion">1.1</parameter>
    </messageStore>

2. Add message processor to retrieve messages. And added endpoint.

<messageProcessor
        class="org.apache.synapse.message.processor.impl.forwarder.ScheduledMessageForwardingProcessor"
        messageStore="InformationIncomeMS" name="testP" targetEndpoint="aspnet">
        <parameter name="client.retry.interval">1000</parameter>
        <parameter name="throttle">false</parameter>
        <parameter name="max.delivery.attempts">4</parameter>
        <parameter name="member.count">1</parameter>
        <parameter name="max.delivery.drop">Enabled</parameter>
        <parameter name="interval">1000</parameter>
        <parameter name="is.active">true</parameter>
        <parameter name="target.endpoint">aspnet</parameter>
    </messageProcessor>

 <endpoint name="aspnet">
        <address uri="http://localhost:9001/services/SimpleStockQuoteService"/>
    </endpoint>
  • Note: endpoint point to tcpmon to identify the response.

3. Send message to proxy service with json content (used POSTMAN). [1]

{
    "name" : "farzam",
    "lastname" : "vatanzadeh",
    "age" : "1000",
    "nested" : {
        "id" : "cd12334dasc",
        "group" : "asd",
        "list" : ["salam"]
    }
}

Expected Result:

  • It should contain square brackets in the message.

Actual Result:

  • It will not contain square bractes in the message when coming after MB

Note: This situation common for JMS brokers as same issue reported through activemq. And also this will be only seen through scheduled message forwarding processor. This working properly with message sampling processor.

When adding two parameters, it takes correctly.[2]

  "list" : ["salam","hello"]

This issue was reported in Stack-overflow [3,4]

[1] Refer attachment: postmanScreen.png
[2] Refer attachment: responses
[3] http://stackoverflow.com/questions/38202892/wso2-esb-array-with-single-element-json-to-json-conversion-brackets-missing
[4] http://stackoverflow.com/questions/38321898/wso2-esb-json-missing-quotes-and-brackets-when-using-scheduld-forwarding-message



 Comments   
Comment by Zygi Mantus [ 29/Jul/16 ]

We have the same bug using DSS and ESB, any clues how to solve this issue?

Comment by Mohamed Amghari [ 25/Nov/16 ]

Exactly the same issue when iterating on JSON payload!

<payloadFactory media-type="json">
            <format>{"addresses" : [{    "addressType":"DD", "addressLines":[{"addressLine":"123"}], "postalCode":"", "countryCode":"GR", "addressAlias":"alias"},{    "addressType":"DD", "addressLines":[{"addressLine":"123"}], "postalCode":"ABC", "countryCode":"", "addressAlias":"alias"},{    "addressType":"Importer", "addressLines":[{"addressLine":"123"}], "postalCode":"ABC", "countryCode":"", "addressAlias":"alias"},{    "addressType":"DD", "addressLines":[{"addressLine":"123"}], "postalCode":"", "countryCode":"DES", "addressAlias":"alias"}] }</format>
            <args/>
         </payloadFactory>
         <iterate continueParent="true" expression="//addresses" sequential="true">
            <target>
               <sequence>
                  <property name="ItemFromList" expression="json-eval($.addresses)"/>
                  <filter source="boolean(get-property('operation','concat-data'))" regex="false">
                     <then>
                        <property name="concat-data" expression="fn:concat(get-property('ItemFromList'),',')" scope="operation" type="STRING"/>
                     </then>
                     <else>
                        <property name="concat-data" expression="fn:concat(get-property('operation','concat-data'), get-property('ItemFromList'), ',')" scope="operation" type="STRING"/>
                     </else>
                  </filter>
                  <log>
                     <property name="-------------ItemFromList----------" expression="json-eval($.addresses)"/>
                  </log>
               </sequence>
            </target>
         </iterate>
         <payloadFactory media-type="json">
            <format>{ "addressType":"ZZ",  "addressLines":[{"addressLine":"123"}],  "postalCode":"MK0A1",  "countryCode":"AZ",  "addressAlias":""  }</format>
            <args/>
         </payloadFactory>
         <property name="AddressToAdd" expression="json-eval($.)"/>
         <payloadFactory media-type="json">
            <format>{ "addresses": $1  }</format>
            <args>
               <arg evaluator="xml" expression="fn:concat('[',get-property('operation','concat-data'), get-property('AddressToAdd') , ']')"/>
            </args>
         </payloadFactory>
         <log level="custom">
            <property name="-------------- ADDRESSES ----------------" expression="json-eval($.)"/>
         </log>

The AddressLines should be

addressLines":[{"addressLine":"123"}]

AND NOT

"addressLines": {
			"addressLine": 123
		},




[ESBJAVA-4749] [WebSocket] dispatch.sequence and dispatch.fault.sequence can be optional Created: 12/Jul/16  Updated: 12/Jul/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Normal
Reporter: Senduran Balasubramaniyam Assignee: Kevin Ratnasekera
Resolution: Unresolved 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   

Since we can only receive the ws messages and log it or process. i.e without sending it to anther server and receiver the message back.
ws.outflow.dispatch.sequence , ws.outflow.dispatch.fault.sequence can be empty. but currently it is marked as mandatory fields.

Also similar to the Sequence and the Error sequence, adding the functionality to get the sequence from config registry / governance registry would be better.

Parameter names are not consistent eg: "Error Sequence" and "ws.outflow.dispatch.fault.sequence" (i.e space separated and dot separated)






[ESBJAVA-4732] [REST / Tenant ] API invocation URL is displayed incorrectly in management console for tenant mode Created: 06/Jul/16  Updated: 06/Jul/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 5.0.0-Beta
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Pubudu D.P Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Pack - wso2esb-5.0.0-pre-RC2.zip
JDK - IBM 1.8
DB- MySql 5.7


Attachments: JPEG File Selection_005.jpg    
Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

1. Create a tenant domain in ESB
2. Login as tenant admin
3. Create a REST API and save
4. Click on API section from the right-hand side
5. Check the API Invocation URL displayed

Expected results:-

Actual Results:-






[ESBJAVA-4800] API source doesn't show <handlers> tag Created: 27/Jul/16  Updated: 24/Oct/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 5.0.0-Pre-Beta2
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Manu Perea Assignee: Isuru Udana Loku Narangoda
Resolution: Unresolved 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   

API source doesn't show <handlers> tag. (Yet, it is shown in full source view)



 Comments   
Comment by Charini Nanayakkara [ 24/Oct/16 ]

Related to https://wso2.org/jira/browse/ESBJAVA-3395





[ESBJAVA-4767] Upgrading Saxon-HE to 9.7 Created: 18/Jul/16  Updated: 18/Jul/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Normal
Reporter: Nuwan Wimalasekara Assignee: Chanaka Fernando
Resolution: Unresolved 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




[ESBJAVA-4674] JMS inbound endpoint CacheLevel param Created: 13/Jun/16  Updated: 13/Jun/16

Status: Open
Project: WSO2 ESB
Component/s: Inbound Endpoints
Affects Version/s: 4.9.0, 5.0.0-Beta
Fix Version/s: None

Type: Improvement Priority: Normal
Reporter: gregory eve Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

Create a JMS inbound endpoint in the management console.

the parameter transport.jms.CacheLevel* is not explicit we have the choice between

{1,2,3}

.

The solution is to read the documentation to find what are these numbers.

A better solution is to replace the numbers by the JMS constants

{conn = 1, session = 2, consumer = 3,none = 0}




[ESBJAVA-4672] New Inbound Endpoint parameters not mandatory Created: 13/Jun/16  Updated: 13/Jun/16

Status: Open
Project: WSO2 ESB
Component/s: Inbound Endpoints
Affects Version/s: 5.0.0-Beta
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: gregory eve Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Severity: Minor
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0
Test cases added: Yes

 Description   

got to the admin console.

Add a new inbound endpoint.
sequence and error sequence are not compulsory.
validate the the form without these params.
An error occured: "Error initializing inbound endpoint test"






[ESBJAVA-4662] Error can be seen when set Multi Receivers / Load Balancing urls in DAS Configuration in ESB Created: 08/Jun/16  Updated: 09/Jun/16

Status: Open
Project: WSO2 ESB
Component/s: Analytics
Affects Version/s: 5.0.0-Beta
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Chankami Maddumage Assignee: Chankami Maddumage
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Java version: 1.8.0_45
Setup:standalone
Database : h2


Attachments: PNG File DASPub.png    
Severity: Major
Estimated Complexity: Moderate

 Description   

Steps

1 Logging to ESB console
2 Go to Configure then DAS Configuration and add Add Server.
3 Enter the 2 urls (In this case use ESB analytics urls of failover cluster . Details explanation can be found in [1] )
4 Click Test Server

Below error can be seen *DAS Server cannot be connected! *. Please refer the attached screeshot

[1] https://docs.wso2.com/display/DAS310/Setting+up+Multi+Receiver+and+Load+Balancing+Data+Agent



 Comments   
Comment by Buddhima Wijeweera [ 09/Jun/16 ]

Hi,
Could you please try with a latest ESB pack and see? (Because we had to adopt across product behavior of using OSGi service for publishing data to analytic server)

Thanks,
Buddhima





[ESBJAVA-4655] Lost data in ESB stats Created: 06/Jun/16  Updated: 06/Jun/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Normal
Reporter: Amal Gunatilake Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Severity: Major
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0
Test cases added: Yes

 Description   

Since ESB statistics cleaning thread and mediation data collection thread are concurrent threads, having the ESB statistics cleaning thread enabled will cause cleaning the data randomly before the mediation data collection thread collects it.

The cause of the problem is enabling both configurations on a given instance. We only should enable either stat-publisher or stat-cleaner. If we enable both, there is a risk of losing data. And if we disable both there is the risk of going OOM.

This looks like an error prone configuration and we can certainly look into how to improve this.

Please refer mail thread: "LOST DATA IN DAS FROM ESB"






[ESBJAVA-4653] [ESB][JMS][Sender] Did not create queue in broker when add configuration in axis2.xml Created: 03/Jun/16  Updated: 07/Dec/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 5.0.0-Beta
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Dilshani Subasinghe Assignee: Eranda Rajapakshe
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System : Linux (ubuntu 15.10)
Java Version : JDK1.7
Packs : ESB 5.0.0 Alpha
ESB Setup: Standalone
JMS Broker: MB (3.1.0)


Severity: Major
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0

 Description   

Preconditions:
1. ESB should be configured with MB.
Sample configuration in axis2.xml

 <transportSender name="jms" class="org.apache.axis2.transport.jms.JMSSender">
<parameter name="myQueueConnectionFactory" locked="false">
            <parameter name="java.naming.factory.initial" locked="false">org.wso2.andes.jndi.PropertiesFileInitialContextFactory</parameter>
            <parameter name="java.naming.provider.url" locked="false">repository/conf/jndi.properties</parameter>
            <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">QueueConnectionFactory</parameter>
            <parameter name="transport.jms.ConnectionFactoryType" locked="false">queue</parameter>
</transportSender>

2. MB should be up and running
3. ESB should be up and running

Steps to reproduce:
1. Create a proxy in ESB.
Sample configuration:

 <proxy name="StockQuoteProxy" startOnLoad="true" transports="http">
        <description/>
        <target>
            <inSequence>
                <property name="OUT_ONLY" value="true"/>
                <send>
                    <endpoint>
                        <address uri="jms:/StockQuotesQueue?&amp;transport.jms.ConnectionFactory=myQueueConnectionFactory"/>
                    </endpoint>
                </send>
            </inSequence>
            <outSequence>
                <send/>
            </outSequence>
        </target>
    </proxy>

2. Publish messages to proxy

Expected Result:

  • Creating queue in MB side and publishing messages to it

Actual Result:

  • Giving an error indicating missing listener in broker side.
[2016-06-03 00:36:43,425] ERROR - AMQConnection Throwable Received but no listener set: org.wso2.andes.client.AMQNoRouteException: Error: No Route for message [error code 312: no route]

Note: when created queue in MB, it doesn't give any error. But according to other configurations, it may create queue automatically.



 Comments   
Comment by Eranda Rajapakshe [ 07/Dec/16 ]

WSO2 Message Broker doesn't support queue creation for messages sent from JMS Sender, it only creates queues when a JMS Consumer subscribes to a new queue. In other scenarios, user will have to create queues manually before sending anything.

This use-case is valid for most of other JMS brokers, but with WSO2 MB this is the intended behavior.

A workaround is added to ESB for previous JMS version ("1.0.2b") but its no longer supported in JMS 1.1 API with WSO2 MB.

Thanks,
Eranda





[ESBJAVA-4577] Error when creating a WSDL PROXY Service with wsdl imported into registry Created: 28/Apr/16  Updated: 28/Apr/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Raffaele Carotenuto Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: ESB
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Severity: Major
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0
Test cases added: Not-applicable

 Description   

Currently (ESB version 4.9.0) if we build a proxy service using a wsdl imported from Governance Registry (version 5.1.0) with xsd included (format in schemaLocation .. /.. /file.xsd) we obtain an error (filenotfound exception .. /.. /file.xsd). Why ESB can not resolve the file with governance registry?



 Comments   
Comment by Raffaele Carotenuto [ 28/Apr/16 ]

Hi, I explain my problem better:

I have a wsdl in the Governance Registry with an import of a xsd:

<xsd:import namespace="http://schemas.datacontract.org/2004/07/SoapService.Net" schemaLocation="../../../../schemas/org/datacontract/schemas/_2004/_07/soapservice_net/1.0.0/TestSoap.svc.xsd"/>

If I try to create a WSDL Proxy Service from this wsdl I obtain this exception:

javax.wsdl.WSDLException: WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema): faultCode=PARSER_ERROR: Problem parsing '../../../../schemas/org/datacontract/schemas/_2004/_07/soapservice_net/1.0.0/TestSoap.svc.xsd'.: java.io.FileNotFoundException: ../../../../schemas/org/datacontract/schemas/_2004/_07/soapservice_net/1.0.0/TestSoap.svc.xsd (No such file or directory).

Thanks





[ESBJAVA-4628] Log Messages when they have Special Characters Created: 23/May/16  Updated: 23/May/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Normal
Reporter: Nadeeshaan Gunasinghe Assignee: Chanaka Fernando
Resolution: Unresolved 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   

When we try to log a full message when there are special characters in the message, ESB throws the following exception

ERROR - LogMediator Could not build full log message: Can not serialize OM Element Envelope






[ESBJAVA-4620] Esb 4.9.0 automatically add charset encoring to the Content-Type header and not allowed to remove Created: 13/May/16  Updated: 16/May/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.9.0
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Randika Perera Assignee: viraj senevirathne
Resolution: Unresolved 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   

ESB 4.9.0 is automatically adds charset encoding to the Content-Type header.

"Content-Type: application/json; charset=UTF-8"

But whenever the back end is not supported for the charset encoding it should be able to modify this and remove.
But it's not allowed to remove this with property or header mediator.






[ESBJAVA-4605] Support xpath and jsonpath in connector operation parameters Created: 09/May/16  Updated: 24/May/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Maheeka Jayasuriya Assignee: Chanaka Fernando
Resolution: Unresolved 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   

xpath and json path values are not supported in connector operation invocations.
E.g. :

            
<salesforce.query configKey="salesforce">
                <batchSize>200</batchSize>
                <queryString>{//salesforce}</queryString>
</salesforce.query>


 Comments   
Comment by Maheeka Jayasuriya [ 24/May/16 ]

Fixed with https://github.com/maheeka/wso2-synapse/commit/58d390e8e50d9de7a74a2fc65bf710dbca660c5d





[ESBJAVA-4604] Issue with CallOut Mediator in ESB 4.9.0 Created: 06/May/16  Updated: 06/May/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.9.0
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Dinesh Jayanath Weerakkody Arachchi Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Standalone ESB 4.9.0


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

 Description   

According to the documentation [1], I should be able to use callout mediator as follows.

<property name="Payload" value="some_payload" />
<callout action="urn:get_data_operation" serviceURL="http://localhost:9763/services/BE">
<source property="Payload"/>
<target property="Response"/>
</callout>

Issues:
Cannot use property (in source and target elements) attribute in DevStudio and also ESB Admin console. ESB doesn't allow to deploy a car file with above configurations since it validates the source and target elements to have either xpath or key attributes. In this case I don't have any of those.

Also it is better to add a sample with property attributes to the documentation [1].

[1] https://docs.wso2.com/display/ESB490/Callout+Mediator






[ESBJAVA-4589] Incoperate thread pool to Kafka Inbound Created: 03/May/16  Updated: 03/Aug/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Normal
Reporter: viraj senevirathne Assignee: Kathees Rajendram
Resolution: Unresolved 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   

Introducing thread pool for Kafka Inbound. Currently, Kafka inbound only uses one stream when it provided List of streams to consume from [1]. But in this Kafka page [2] it has thread pool implementation for Kafka to read from multiple streams it passes on the list. In my opinion, if we use thread pool like this we can give users to fine tune Kafka inbound as they want. It says that "The first thing to know about using a High Level Consumer is that it can (and should!) be a multi-threaded application.".

[1] https://github.com/wso2/carbon-mediation/blob/8f66d42c1a0fed945fc8fc6046e7ecb86a5a5366/components/inbound-endpoints/org.wso2.carbon.inbound.endpoint/src/main/java/org/wso2/carbon/inbound/endpoint/protocol/kafka/KAFKAMessageListener.java#L145

[2] https://cwiki.apache.org/confluence/display/KAFKA/Consumer+Group+Example



 Comments   
Comment by viraj senevirathne [ 03/May/16 ]

Related to https://wso2.org/jira/browse/ESBJAVA-4520





[ESBJAVA-4584] Support High availability for MailTo Transport listen proxies Created: 02/May/16  Updated: 02/May/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Normal
Reporter: Madhawa Gunasekara Assignee: Chanaka Fernando
Resolution: Unresolved 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




[ESBJAVA-4541] [ESB500M2][LongRun] Error observed with jms Created: 07/Apr/16  Updated: 07/Apr/16

Status: Open
Project: WSO2 ESB
Component/s: Message Processors, Message Stores
Affects Version/s: 5.0.0-M2
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Chathurika De Silva Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ESB500M2 Pack | Clustered Setup with 1 Manager & 3 Workers | NginX | MSSQL | Java8 | Long Running Test


Attachments: File ESB481SP2LongRunninTest.jmx     XML File sourceview.xml    
Severity: Major
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0
Test cases added: Not-applicable

 Description   

When run with the attached services (please see sourceview.xml) with the given parameters (please see the attached jmeter script). Following error is observed in backend

TID: [-1234] [] [2016-03-16 10:13:51,210] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory} -  JMS Exception while obtaining session for factory 'QueueConnectionFactory' The connection is already closed {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}
TID: [-1234] [] [2016-03-16 10:13:51,210] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} -  Error while receiving JMS message. null {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}
java.lang.NullPointerException
	at org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory.createMessageConsumer(JMSConnectionFactory.java:370)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.factory.CachedJMSConnectionFactory.createMessageConsumer(CachedJMSConnectionFactory.java:124)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.factory.CachedJMSConnectionFactory.getMessageConsumer(CachedJMSConnectionFactory.java:116)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer.poll(JMSPollingConsumer.java:134)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer.execute(JMSPollingConsumer.java:98)
	at org.wso2.carbon.inbound.endpoint.protocol.jms.JMSTask.taskExecute(JMSTask.java:45)
	at org.wso2.carbon.inbound.endpoint.common.InboundTask.execute(InboundTask.java:44)
	at org.wso2.carbon.mediation.ntask.NTaskAdapter.execute(NTaskAdapter.java:90)
	at org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	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)
TID: [-1234] [] [2016-03-16 10:14:13,644] ERROR {org.apache.synapse.transport.passthru.PassThroughHttpSSLSender} -  Failed to submit the response {org.apache.synapse.transport.passthru.PassThroughHttpSSLSender}
java.lang.NullPointerException
	at org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)
	at org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)
--
	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:163)
	at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:347)
	at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:542)
	at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:180)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
	at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:251)
	at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
	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)
Caused by: java.lang.NullPointerException
	at org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)
	at org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)
	at org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:263)
	... 16 more
TID: [-1234] [] [2016-03-16 10:14:17,822]  WARN {org.apache.synapse.message.store.impl.jms.JmsProducer} -  [JMSStore-P-403908]. Ignored MessageID : urn:uuid:8efe0901-e2b8-473e-92b5-e069cf4521f7 {org.apache.synapse.message.store.impl.jms.JmsProducer}
TID: [-1234] [] [2016-03-16 10:14:17,859] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.CachedJMSConnectionFactory} -  JMS Exception while starting connection for factory 'QueueConnectionFactory' The JMS connection has failed: java.io.EOFException {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.CachedJMSConnectionFactory}
TID: [4] [] [2016-03-16 10:14:17,863] @test.com [4] [ESB]ERROR {org.apache.synapse.message.store.impl.jms.JmsConsumer} -  [TenantJMSStore-C-1] cannot receive message from store. Error:The Consumer is closed {org.apache.synapse.message.store.impl.jms.JmsConsumer}
TID: [-1234] [] [2016-03-16 10:14:17,908] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory} -  JMS Exception while obtaining session for factory 'QueueConnectionFactory' The connection is already closed {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}
TID: [-1234] [] [2016-03-16 10:14:17,909] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory} -  JMS Exception while obtaining session for factory 'QueueConnectionFactory' The connection is already closed {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}
TID: [-1234] [] [2016-03-16 10:14:17,909] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} -  Error while receiving JMS message. null {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}
java.lang.NullPointerException
TID: [-1234] [] [2016-03-16 10:14:18,200]  INFO {org.apache.synapse.mediators.builtin.LogMediator} -  To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , MessageID: urn:uuid:c47ee826-5068-48cb-b196-7bfdf4c4e3fe, Direction: response, ESB500ERROR = PROXY-transformproxyXSLT, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-7018595"><wsu:Created>2016-03-16T10:13:52.043Z</wsu:Created><wsu:Expires>2016-03-16T10:18:52.043Z</wsu:Expires></wsu:Timestamp></wsse:Security></soapenv:Header><soapenv:Body><m:echoStringResponse xmlns:m="http://service.carbon.wso2.org">
   <m:return>Hi-Response</m:return>
</m:echoStringResponse></soapenv:Body></soapenv:Envelope> {org.apache.synapse.mediators.builtin.LogMediator}
      <typ:greet> 
         <name>-----------Hello JMS MSMP---------</name>
      </typ:greet>
   </soapenv:Body></soapenv:Envelope> {org.apache.synapse.mediators.builtin.LogMediator}
TID: [-1234] [] [2016-03-16 10:14:18,849]  WARN {org.apache.synapse.message.store.impl.jms.JmsProducer} -  [JMSStore-P-403909]. Ignored MessageID : urn:uuid:b6b780c7-e70b-4aca-bf66-f60f87ef715f {org.apache.synapse.message.store.impl.jms.JmsProducer}
TID: [-1234] [] [2016-03-16 10:14:19,298]  WARN {org.apache.synapse.message.store.impl.jms.JmsProducer} -  [JMSStore-P-403910]. Ignored MessageID : urn:uuid:db301c0f-445c-466c-8267-d646751b231c {org.apache.synapse.message.store.impl.jms.JmsProducer}
TID: [-1234] [] [2016-03-16 10:14:19,683] ERROR {org.apache.synapse.message.store.impl.jms.JmsConsumer} -  [SamplingStore-C-1] cannot receive message from store. Error:The Consumer is closed {org.apache.synapse.message.store.impl.jms.JmsConsumer}
      <typ:greet> 
         <name>-----------Hello JMS MSMP---------</name>
      </typ:greet>
   </soapenv:Body></soapenv:Envelope> {org.apache.synapse.mediators.builtin.LogMediator}
      <typ:greet> 
         <name>-----------Hello JMS MSMP---------</name>
      </typ:greet>
   </soapenv:Body></soapenv:Envelope> {org.apache.synapse.mediators.builtin.LogMediator}






[ESBJAVA-4534] transformed JSON message not correctly stored in JMS store Created: 06/Apr/16  Updated: 06/Apr/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Waruna Perera Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Severity: Major
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0
Test cases added: Yes

 Description   

When we use a xslt transformation and build a JSON inside a proxy it does not stored as expected in pure JSOn format in JMS message store. It works correctly only if we send it out to another proxy and store it in a message store. Issue occurred when we have processing instructions in xslt.






[ESBJAVA-4528] <session type="statefull"/> doesn't work in rule mediator Created: 04/Apr/16  Updated: 04/Apr/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.6.0, 5.0.0
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: shafreen anfar Assignee: Buddhima Wijeweera
Resolution: Unresolved 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   

When we set the parameter in the rule mediator. One would expect it to maintain states among multiple request. However, according to the implementation, rule mediator keeps on creating a new rule engine per each request. It does not use the existing sessions.






[ESBJAVA-4523] Inconsistency in get-property when retrieving null values Created: 28/Mar/16  Updated: 28/Mar/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Madhawa Gunasekara Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Severity: Major
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0
Test cases added: Yes

 Description   

Normally In, property mediator we send Empty Strings for null values but when we use db lookup mediator to set properties it will send null for null values rather sending empty strings.

This null value is occurring only when statement retrieves 0 rows






[ESBJAVA-4522] Configuring an Inbound MQTT endpoint which consume multiple indexed (positioned) topics Created: 28/Mar/16  Updated: 28/Mar/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Normal
Reporter: Asitha Dias Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: ESB
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Severity: Major
Estimated Complexity: Moderate

 Description   

It is better if ESB has a functionality of configuring an Inbound MQTT endpoint which consumes multiple indexed topics names as follows only by changing a single character, in this case just “3” and “6”

"/abcd/3//testxyz" and "/abcd/6//testxyz"






[ESBJAVA-4517] [ Iterate Mediator ] Support iterate mediator to exit in the middle of iterations without having to wait for all the iterations to be comepleted Created: 25/Mar/16  Updated: 25/Mar/16

Status: Open
Project: WSO2 ESB
Component/s: Mediators
Affects Version/s: 4.9.0
Fix Version/s: None

Type: Improvement Priority: Normal
Reporter: Pubudu D.P Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ESB 4.9.0


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

 Description   

Currently, in iterator mediator, it is not supported to exit in the middle of iterations if needed. In other words, support break statement like functionality in iterate mediator. Please consider the following scenario

1. Iterate mediator splits the message into 10 pieces
2. For each message, some operations occur (eg:- update a db record)
3. 6th operation fails

Expected Result:-

  • In step 3 user needs to exit the loop and send the response up to the 6th operation. I.e five successes and one failure

Current behavior:-

  • Currently, how this works is by using aggregate mediator user will have to collect all ten responses and then send the response to the client.





[ESBJAVA-4514] Error Code and Error Message is not getting When Invalid End Point Key Created: 24/Mar/16  Updated: 24/Mar/16

Status: Open
Project: WSO2 ESB
Component/s: Proxy Services Management
Affects Version/s: 4.8.1
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Vinoth Chandran Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: ESB
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

Error Code and Error Message is not getting When Invalid End Point Key

I have a below proxy Code
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="TesAppPro"
transports="https,http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence onError="FaultSequenceHandler">
<property name="FORCE_ERROR_ON_SOAP_FAULT"
value="true"
scope="default"
type="STRING"/>
<sequence key="CallSeqOne"/>
<sequence key="CallSeqTwo"/>
<respond/>
</inSequence>
<outSequence>
<respond/>
</outSequence>
</target>
<description/>
</proxy>
-------------
CallSeqOne Code
----------------------
<sequence xmlns="http://ws.apache.org/ns/synapse" name="CallSeqOne">
<call>
<endpoint key="ProxyOne"></endpoint>
</call>
</sequence>
-------------
CallSeqTwo Code
----------------------
<sequence xmlns="http://ws.apache.org/ns/synapse" name="CallSeqTwo">
<call>
<endpoint key="InvalidProxyKey"></endpoint>
</call>
</sequence>
---------------------------
When i used invalid call Enpoint Key in first Sequence, i am getting the correct error code 305100 and error message Couldn't find the endpoint with the key.
but it is not working for second Sequence. if i used invalid call Endpoint key in second sequence , not getting any error_code and Error_Detail . getting as null.

Can you pleas let me know am i miss any configuration?

Thanks,
Vinoth






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

Status: Open
Project: WSO2 ESB
Component/s: Properties Management
Affects Version/s: 4.8.1
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Randika Perera Assignee: Chanaka Fernando
Resolution: Unresolved 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>






[ESBJAVA-4487] [ESB500][ScheduledMessageForwardingProcessor] When giving direct endpoint link,processor deactivated Created: 10/Mar/16  Updated: 08/Jun/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: 5.0.0-M2
Fix Version/s: None

Type: Improvement Priority: Normal
Reporter: Dilshani Subasinghe Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

pack: ESB 5.0.0 M2
java: jdk1.8.0_72


Attachments: XML File synapse.xml    
Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

Steps to reproduce:

1) When I am configuring Store mediator, I created an On Store Sequence called "registrySeq".

<sequence name="onstoreSeq" xmlns="http://ws.apache.org/ns/synapse">
    <axis2ns17:store messageStore="reg" sequence="conf:/registrySeq" xmlns:axis2ns17="http://ws.apache.org/ns/synapse"/>
</sequence>

2) Created another sequence with a store mediator (Store mediator used On Store Sequence)

<sequence name="onstoreSeq">
        <property name="FORCE_SC_ACCEPTED" scope="axis2" value="true"/>
        <property name="OUT_ONLY" value="true"/>
        <store messageStore="reg" sequence="conf:/registrySeq"/>
    </sequence>

3) Created a proxy and invoked it using axis2Client.

 <proxy name="regProxy" startOnLoad="true" trace="disable" transports="http https">
        <description/>
        <target inSequence="onstoreSeq"/>
    </proxy>

4) Add a Scheduled Message Forwarding Processor to send messages in the message store.
It gave following error.

ForwardingService Deactivating the message processor [storeProce]
java.lang.NullPointerException
    at org.apache.synapse.message.processor.impl.forwarder.ForwardingService.dispatch(ForwardingService.java:431)
    at org.apache.synapse.message.processor.impl.forwarder.ForwardingService.execute(ForwardingService.java:204)
    at org.wso2.carbon.mediation.ntask.NTaskAdapter.execute(NTaskAdapter.java:90)
    at org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    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)
[2016-03-09 23:58:51,712]  WARN - ForwardingService Failed to send the message through the deactivate sequence. Sequence name does not Exist.

5) Then "Drop message after maximum delivery attempts" made "Enabled" (As it giving a warning about missing deactivate sequence name)

6) When publishing messages, it again give same error and processor deactivated.

[2016-03-10 11:12:57,676] FATAL - ForwardingService Deactivating the message processor [storeProce]
java.lang.NullPointerException
	at org.apache.synapse.message.processor.impl.forwarder.ForwardingService.dispatch(ForwardingService.java:431)
	at org.apache.synapse.message.processor.impl.forwarder.ForwardingService.execute(ForwardingService.java:204)
	at org.wso2.carbon.mediation.ntask.NTaskAdapter.execute(NTaskAdapter.java:90)
	at org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	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)

Error:
Indicated error as giving direct link of "http://127.0.0.1:9000/services/SimpleStockQuoteService" as "Endpoint name." In here, it has to give predefined endpoint name.

With the error it can't identify exact issue is about an endpoint mismatch.

Improvement:
It will be helpful, validating endpoint while entering.
And handle error and give a proper error message indicating endpoint mismatch.



 Comments   
Comment by Isuru Udana Loku Narangoda [ 08/Jun/16 ]

For the design time, we won't be able have a validation logic for the endpoint name as it is just a string.

It is highly unlikely that someone get that confused with the endpoint url due to following reasons.

  • In both ESB Tool and mgt console design view it clearly show the field text as "Endpoint name *"
  • In mgt console design view, in the right of the field we have pick from registry options, in the Tool "Browse" is there for search for an available endpoint

However in the runtime, we need to give a better error message. Throwing a NPE is not acceptable.





[ESBJAVA-4548] XML to Text transformation fails with exceptions Created: 08/Apr/16  Updated: 08/Apr/16

Status: Open
Project: WSO2 ESB
Component/s: Mediators
Affects Version/s: 5.0.0-M2
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Chathurika De Silva Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: Ubuntu 14.04
JDK: 1.8.0


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

 Description   

Steps
1. Created attached xsl to map below request to text

xsl

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sam="http://sample.wso2.org" xmlns:xsd="http://sample.wso2.org/xsd"> 
   <xsl:template match="/sam:placeOrder">
    <xsl:text>Price | ProductId | quantity | reference;</xsl:text>
    <xsl:for-each select="sam:placeOrder/sam:order">
        <xsl:value-of select="str:align(../xsd:price, '          | ', 'left')" />
        <xsl:value-of select="str:align(../xsd:productid, '            | ', 'left')" />
        <xsl:value-of select="str:align(../xsd:quantity, '   | ', 'left')" />
        <xsl:value-of select="str:align(../xsd:reference, '   | ', 'left')" />
        <xsl:if test="position()!=last()">
            <xsl:text>&#10;</xsl:text>
        </xsl:if>
        <xsl:if test="position()!=last()">
          <xsl:text>&#10;</xsl:text>
      </xsl:if>
    </xsl:for-each>
</xsl:template>
</xsl:stylesheet>

Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sam="http://sample.wso2.org" xmlns:xsd="http://sample.wso2.org/xsd">
   <soapenv:Header/>
   <soapenv:Body>
      <sam:placeOrder>
         <!--Optional:-->
         <sam:order>
            <!--Optional:-->
            <xsd:price>10</xsd:price>
            <!--Optional:-->
            <xsd:productid>IC0002</xsd:productid>
            <!--Optional:-->
            <xsd:quantity>1</xsd:quantity>
            <!--Optional:-->
            <xsd:reference>test</xsd:reference>
         </sam:order>
      </sam:placeOrder>
   </soapenv:Body>
</soapenv:Envelope>

When executed the following error was thrown. Tried this with some other samples, but same error got thrown as well

2016-04-08 12:08:27,930] ERROR - XSLTMediator Fatal error occurred in stylesheet parsing : net.sf.saxon.trans.XPathException: Undeclared namespace prefix {str}
[2016-04-08 12:08:27,931] ERROR - XSLTMediator Fatal error occurred in stylesheet parsing : net.sf.saxon.trans.XPathException: Undeclared namespace prefix {str}
[2016-04-08 12:08:27,931] ERROR - XSLTMediator Fatal error occurred in stylesheet parsing : net.sf.saxon.trans.XPathException: Undeclared namespace prefix {str}
[2016-04-08 12:08:27,932] ERROR - XSLTMediator Fatal error occurred in stylesheet parsing : net.sf.saxon.trans.XPathException: Undeclared namespace prefix {str}
[2016-04-08 12:08:27,933] ERROR - XSLTMediator Error creating XSLT transformer using : Value {name ='null', keyValue ='conf:/XMLToText.xsl'}
javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 4 errors detected.
	at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:220)
	at net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:132)
	at org.apache.synapse.mediators.transform.XSLTMediator.createTemplate(XSLTMediator.java:394)
	at org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMediator.java:243)
	at org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMediator.java:202)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:86)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:49)
	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:163)
	at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:201)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
	at org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:395)
	at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:142)
	at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
	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)
[2016-04-08 12:08:27,933] ERROR - XSLTMediator Unable to perform XSLT transformation using : Value {name ='null', keyValue ='conf:/XMLToText.xsl'} against source XPath : s11:Body/child::*[position()=1] | s12:Body/child::*[position()=1] reason : Error creating XSLT transformer using : Value {name ='null', keyValue ='conf:/XMLToText.xsl'}
org.apache.synapse.SynapseException: Error creating XSLT transformer using : Value {name ='null', keyValue ='conf:/XMLToText.xsl'}
	at org.apache.synapse.mediators.AbstractMediator.handleException(AbstractMediator.java:358)
	at org.apache.synapse.mediators.transform.XSLTMediator.createTemplate(XSLTMediator.java:404)
	at org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMediator.java:243)
	at org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMediator.java:202)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:86)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:49)
	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:163)
	at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:201)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
	at org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:395)
	at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:142)
	at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
	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)
Caused by: javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 4 errors detected.
	at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:220)
	at net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:132)
	at org.apache.synapse.mediators.transform.XSLTMediator.createTemplate(XSLTMediator.java:394)
	... 13 more






[ESBJAVA-4547] Message Processor status not displaying correctly Created: 08/Apr/16  Updated: 16/May/16

Status: Open
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Rajith Vitharana Assignee: Chanaka Fernando
Resolution: