[ESBJAVA-3587] Explicitly Disable Chunking for Callout Mediator Created: 27/Feb/15  Updated: 27/Feb/15

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

Type: Bug Priority: Normal
Reporter: dushan abeyruwan Assignee: Kasun Indrasiri
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   

It seems we do not have direct approach to explicitly disable chunking when using callout mediator, however can be disable globally via CommonsHTTPTransportSender setting.
I guess this can do with enhancement to callout

public static final String CHUNKED = "__CHUNKED__";

 sender = new HTTPSender();

            boolean chunked;
            if (messageContext.getProperty(HTTPConstants.CHUNKED) != null) {
                chunked = JavaUtils.isTrueExplicitly(messageContext
                        .getProperty(HTTPConstants.CHUNKED));
            } else {
                chunked = defaultChunked;
            }

so proxy should be as,

<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="CalloutMediator"
       transports="https,http"
       statistics="disable"
       trace="disable"
       startOnLoad="true">
   <target>
      <inSequence>
         <property name="__CHUNKED__" value="false" scope="axis2"/>
         <callout serviceURL="http://localhost:9000/services/SimpleStockQuoteService"
private static String[] allowedProperties = {"JSON_OBJECT",
                                                 "JSON_STRING",
                                                 Constants.Configuration.HTTP_METHOD,
                                                 Constants.Configuration.MESSAGE_TYPE,
                                                 Constants.Configuration.CONTENT_TYPE,
                                                 NhttpConstants.REST_URL_POSTFIX, "__CHUNKED__"};





[ESBJAVA-3584] When you restart ESB, policy applied for a proxy will be reset Created: 26/Feb/15  Updated: 26/Feb/15

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

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

Standalone, H2


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   

Steps
====
1. Create a proxy.
2. Apply a policy for that proxy.
E.g.,

<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="ec88c45bb94ad3ee4148a34684c258a64b1f5dbfe62d4dca">
<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="ec88c45bb94ad3ee4148a34684c258a64b1f5dbfe62d4dca">
<wsp:ExactlyOne>
<wsp:All>
<wsoma:OptimizedMimeSerialization xmlns:wsoma="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization"></wsoma:OptimizedMimeSerialization>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>

3. Enable security.
4. Step ESB and restart

Policy will be gone/reset






[ESBJAVA-3586] When you try to provide a value within < > in a property Management console will be unstable Created: 26/Feb/15  Updated: 26/Feb/15

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

Type: Bug Priority: Normal
Reporter: Ushani Balasooriya Assignee: Kasun Indrasiri
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Standalone, H2 Chrome Version 40.0.2214.115 (64-bit)


Attachments: PNG File error.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

 Description   

When you try to provide a value within < > in a property Management console will be unstable.

Provide the below value via UI and try to save it as given in the attachment.

<123>






[ESBJAVA-3585] During sending attachements with WSO2 ESB via MTOM, the Content-Id of the attachment goes to the backend is considered as null when you apply a policy to the proxy Created: 26/Feb/15  Updated: 26/Feb/15

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

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

Standalone


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   

Steps
====
1. Followed the steps given in this blog.
http://hi-my-world.blogspot.com/2015/01/sending-attachements-with-with-esb-via.html

2. Apply the below policy to the proxy and enable security as explained in https://wso2.org/jira/browse/ESBJAVA-3184.

<wsoma:OptimizedMimeSerialization xmlns:wsoma="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization"></wsoma:OptimizedMimeSerialization>

3. When you invoke,
TID: [0] [ESB] [2015-02-26 14:42:28,933] DEBUG

{org.apache.synapse.transport.http.wire} - << "18[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,933] DEBUG

{org.apache.synapse.transport.http.wire} - << "RmKHrOiJu2ta0rb61sbUztSR[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,933] DEBUG

{org.apache.synapse.transport.http.wire} - << "bd4[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,933] DEBUG

{org.apache.synapse.transport.http.wire} - << "LrziLMabrejRmJBapbO5d1z53y603xt3rM0+SOaou/Y9lbzy48tYXkk9J/dsO9qVMH1MPnOcbTymds/CrP7rvB6/d8/2zgmVz7/yPufGSnTX30nh+ev+5W1ZvtFpvzFeX3VklmzE45/uPznn/uVtvXOUMTM688ZFLJ6fcVDJ53gV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YtGozk5OVLAUUcfvfTuu30+n5PNNAzGWMIcAEhUtQ+FwX9JHwq1SJqr0F/kj/MRMmj/YNtbjkxN0+bMW/DhPz94v662p6dneKumUCgURwy5OXnHnHD8xImT1DiIQqFQDB1H8bcW9Eynsib5AfJy81pb9+bmHiU/IqLX63UEImJHZ7svENAhM4fF77cVigoAfY79ZxP5Iz8yZ+djF4yxSZOrJ02uHqFaKBQKhUKhUCgUbtxj/1JBhf5sgFD5qN07Phk9eqzH40kVyDlvbWkqDZWz1HOHF86KpEkqu/Mx6SCT9i/zuBv6gBRfoVAoFAqFQqFIA7dHpd1mgDyVyQYoLinJL8h/v26LaZqQqANzIXZ+ss0XyAkEcvryABweyMD7lDH+1DV/nBCgtNo/prDkrrsOSoUUCoVCoVAoFApn4D9VTYXMNsC4o46p372z5t23xx99TFlZ0Ov1xaLRjo72lqaGvPz8ktIgAPx/MnoevM2TL0oAAAAASUVORK5CYII=</ser:image> </ser:request>[\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,933] DEBUG

{org.apache.synapse.transport.http.wire} - << " </ser:uploadFileUsingMTOM>[\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,933] DEBUG

{org.apache.synapse.transport.http.wire} - << " </soapenv:Body></soapenv:Envelope>[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,933] DEBUG

{org.apache.synapse.transport.http.wire} - << "-MIMEBoundary_4461016dc84e3d4663ceeb2e7d9abb7da657af443d81cb20-[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,933] DEBUG

{org.apache.synapse.transport.http.wire} - << "[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,933] DEBUG

{org.apache.synapse.transport.http.wire} - << "0[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,933] DEBUG

{org.apache.synapse.transport.http.wire} - << "[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,938] DEBUG

{org.apache.synapse.transport.http.wire} - >> "HTTP/1.1 500 Internal Server Error[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,938] DEBUG

{org.apache.synapse.transport.http.wire} - >> "Content-Type: text/xml; charset=UTF-8[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,938] DEBUG

{org.apache.synapse.transport.http.wire} - >> "Date: Thu, 26 Feb 2015 09:12:28 GMT[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,938] DEBUG

{org.apache.synapse.transport.http.wire} - >> "Transfer-Encoding: chunked[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,938] DEBUG

{org.apache.synapse.transport.http.wire} - >> "Connection: Keep-Alive[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,938] DEBUG

{org.apache.synapse.transport.http.wire} - >> "[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,939] DEBUG

{org.apache.synapse.transport.http.wire} - >> "11b[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,939] DEBUG

{org.apache.synapse.transport.http.wire} - >> "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>ContentID is null</faultstring><detail/></soapenv:Fault></soapenv:Body></soapenv:Envelope>[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,939] DEBUG

{org.apache.synapse.transport.http.wire} - >> "0[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,939] DEBUG

{org.apache.synapse.transport.http.wire} - >> "[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,943] DEBUG

{org.apache.synapse.transport.http.wire} - << "HTTP/1.1 500 Internal Server Error[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,943] DEBUG

{org.apache.synapse.transport.http.wire} - << "Content-Type: multipart/related; boundary="MIMEBoundary_4461016dc84e3d46fb2deb2e7d9abb7d5657af443d81cb20"; type="application/xop+xml"; start="<0.5461016dc84e3d46fb2deb2e7d9abb7d5657af443d81cb20@apache.org>"; start-info="text/xml"[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,943] DEBUG

{org.apache.synapse.transport.http.wire} - << "Date: Thu, 26 Feb 2015 09:12:28 GMT[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,943] DEBUG

{org.apache.synapse.transport.http.wire} - << "Server: WSO2-PassThrough-HTTP[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,943] DEBUG

{org.apache.synapse.transport.http.wire} - << "Transfer-Encoding: chunked[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,943] DEBUG

{org.apache.synapse.transport.http.wire} - << "Connection: Keep-Alive[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,943] DEBUG

{org.apache.synapse.transport.http.wire} - << "[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,944] DEBUG

{org.apache.synapse.transport.http.wire} - << "409[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,944] DEBUG

{org.apache.synapse.transport.http.wire} - << "--MIMEBoundary_4461016dc84e3d46fb2deb2e7d9abb7d5657af443d81cb20[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,944] DEBUG

{org.apache.synapse.transport.http.wire} - << "Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,944] DEBUG

{org.apache.synapse.transport.http.wire} - << "Content-Transfer-Encoding: binary[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,944] DEBUG

{org.apache.synapse.transport.http.wire} - << "Content-ID: <0.5461016dc84e3d46fb2deb2e7d9abb7d5657af443d81cb20@apache.org>[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,944] DEBUG

{org.apache.synapse.transport.http.wire} - << "[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,944] DEBUG

{org.apache.synapse.transport.http.wire} - << "<?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-6"><wsu:Created>2015-02-26T09:12:28.941Z</wsu:Created><wsu:Expires>2015-02-26T09:17:28.941Z</wsu:Expires></wsu:Timestamp></wsse:Security></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>ContentID is null</faultstring><detail/></soapenv:Fault></soapenv:Body></soapenv:Envelope>[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,944] DEBUG

{org.apache.synapse.transport.http.wire} - << "-MIMEBoundary_4461016dc84e3d46fb2deb2e7d9abb7d5657af443d81cb20-[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,944] DEBUG

{org.apache.synapse.transport.http.wire} - << "[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,944] DEBUG

{org.apache.synapse.transport.http.wire} - << "0[\r][\n]" {org.apache.synapse.transport.http.wire}

TID: [0] [ESB] [2015-02-26 14:42:28,944] DEBUG

{org.apache.synapse.transport.http.wire} - << "[\r][\n]" {org.apache.synapse.transport.http.wire}

In the axis2 server backend :

15/02/26 15:32:20 ERROR nhttp.ServerWorker: Error processing POST request
org.apache.axis2.AxisFault: ContentID is null
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:419)
at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:108)
at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:459)
at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:279)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
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: java.lang.RuntimeException: ContentID is null
at org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(OMTextImpl.java:360)
at samples.services.MTOMSwASampleService.uploadFileUsingMTOM(MTOMSwASampleService.java:44)
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.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:97)
... 10 more

Issue reported in https://wso2.org/jira/browse/ESBJAVA-3184, is fixed. but the Content-Id issue will be there.

Without the policy/security this works fine.






[ESBJAVA-3583] MB ESB Integration Issue when using :: in queue/topic name Created: 26/Feb/15  Updated: 26/Feb/15

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

Type: Bug Priority: Normal
Reporter: Hasitha Abeykoon Assignee: Kasun Indrasiri
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   

We need to create a topic in the name "wm::is::uni5::SchedNotify_quale" and publish messages to MB from a ESB publisher proxy.

Here exception [1] is thrown by ESB. This issue is reproducible. I am attaching configuration files herewith I used to check this out.

Here issue is NOT with WSO2 Message Broker. Because when I create a row JMS subscriber with the name "wm::is::uni5::SchedNotify_quale" and publish messages it works.

Thus the issue should be with the ESB or JMS Transport.

Note: as a side note when i saved wm::is::uni5::SchedNotify_quale as the location for listener proxy ESB has divided it into separate parameters, which is wrong.

EG:

<parameter name="transport.jms.Destination">wm::is::uni5::SchedNotify_quale</parameter>

becomes

<parameter name="transport.jms.Destination">wm</parameter>
<parameter name="is">undefined</parameter>
<parameter name="uni5">undefined</parameter>
<parameter name="SchedNotify_quale">undefined</parameter>

[1].

[2015-02-25 17:17:14,734] WARN - JMSUtils Cannot locate destination : wm::is::uni5::SchedNotify_quale
javax.naming.NamingException: scheme wm not recognized
at org.wso2.andes.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:250)
at javax.naming.InitialContext.lookup(InitialContext.java:411)
at org.apache.axis2.transport.jms.JMSUtils.lookup(JMSUtils.java:583)
at org.apache.axis2.transport.jms.JMSUtils.lookupDestination(JMSUtils.java:789)
at org.apache.axis2.transport.jms.JMSOutTransportInfo.getDestination(JMSOutTransportInfo.java:184)
at org.apache.axis2.transport.jms.JMSOutTransportInfo.loadConnectionFactoryFromProperties(JMSOutTransportInfo.java:132)
at org.apache.axis2.transport.jms.JMSOutTransportInfo.createJMSSender(JMSOutTransportInfo.java:330)
at org.apache.axis2.transport.jms.JMSSender.sendMessage(JMSSender.java:127)
at org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:297)
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.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:187)
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:745)



 Comments   
Comment by Hasitha Abeykoon [ 26/Feb/15 ]

Use a JMS sender proxy and a listener proxy to reproduce.
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="TestProxy"
transports="https http"
startOnLoad="true"
trace="disable">
<description/>
<target>
<endpoint>
<address uri="jms:/wm::is::uni5::SchedNotify_quale?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory&java.naming.provider.url=repository/conf/jndi.properties&transport.jms.DestinationType=topic"/>
</endpoint>
<inSequence>
<log level="custom">
<property name="STATE" value="message is sent to queue"/>
</log>
<property name="OUT_ONLY" value="true"/>
<property name="FORCE_SC_ACCEPTED" value="true" scope="axis2"/>
</inSequence>
<outSequence/>
</target>
</proxy>





[ESBJAVA-3582] Local Entries with text values have trailing whitespace and newline character added Created: 26/Feb/15  Updated: 26/Feb/15

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

Type: Bug Priority: Normal
Reporter: Darshana Akalanka Pagoda Arachchi Assignee: Kasun Indrasiri
Resolution: Unresolved Votes: 0
Labels: ESB
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   

After adding a local entry with text value, when printing the local entry using log mediator, a trailing whitespace and newline character can be observed.
If we navigate to the local entry edit view in the UI also after creating a local entry we can identify this.

To recreate:

Define a local registry entry called pbtest as text (not xml) and containing only the string b2s:3000.

<inSequence>
<log>
<property name="testval" expression="fn:concat('xxx',get-property('registry','pbtest'),'yyy')"></property>
</log>
</inSequence>

xxx and yyy are added to clearly observe the local entry printed value.

If you look in the log after this insequence is triggered, you will see

.... Direction: request, testval = xxxb2s:3000
yyy

This happens to any text local entry not only strings containing colon.






[ESBJAVA-3581] User transaction not get commit or rollback Created: 25/Feb/15  Updated: 25/Feb/15

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

Type: Bug Priority: Normal
Reporter: dhanuka ranasinghe Assignee: Kasun Indrasiri
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File Proxy-JMS     XML File master-datasources.xml    
Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

Even though use XA and non-XA datasource within a transaction context , transaction not get commit or rollback. I have attached sample ESB proxy service and datasource configuration here with.






Generated at Sat Feb 28 21:23:54 IST 2015 using JIRA 6.0.1#6096-sha1:e4a48bd73c6b8a4d99c824976ce5808b4c85857d.