[ESBJAVA-5283] Throttle policy editor given and HTML popup with latest firefox when using throttle mediator Created: 15/Dec/17  Updated: 15/Dec/17

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

Type: Bug Priority: Highest
Reporter: Samisa Abeysinghe 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   

The documentation mentions to use UI. https://docs.wso2.com/display/EI611/Throttle+Mediator

With Firefox Quantum I get a pop-up with,

<div id='workArea'><div id='popupContent'><div class='ajax-loading-message'> <img src='../resources/images/ajax-loader.gif' align='top'/> <span>Throttle policy editor loading please wait ..</span> </div></div></div>






[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-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-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-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-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-5210] [RabbitMQ] Publisher caching feature is needed to provide high TPS rates Created: 08/Aug/17  Updated: 25/Nov/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: RabbitMQ
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-4836] Rampart exception when response from secured backend service returns HTTP 500 Created: 09/Aug/16  Updated: 27/Nov/17

Status: Open
Project: WSO2 ESB
Component/s: Security
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: 27/Nov/17

Status: Open
Project: WSO2 ESB
Component/s: Mediators
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-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: 27/Nov/17

Status: Open
Project: WSO2 ESB
Component/s: JMS Transport
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-3896] Sample 657 of distributed transaction management is not working properly Created: 13/Jul/15  Updated: 27/Nov/17

Status: Open
Project: WSO2 ESB
Component/s: Samples
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-4606] JMS Sender level cache is not working properly with the stale connections. Created: 09/May/16  Updated: 27/Nov/17

Status: Open
Project: WSO2 ESB
Component/s: JMS Transport
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-4125] Creating a secondary ldap user store in read only mode fails to authenticate users Created: 27/Aug/15  Updated: 29/Nov/17

Status: Open
Project: WSO2 ESB
Component/s: Security
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-4155] Fault sequence not invoked in tenant mode Created: 03/Sep/15  Updated: 29/Nov/17

Status: Open
Project: WSO2 ESB
Component/s: MultiTenancy
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-4844] Kerberos implementaion to secure Rest Proxies Created: 12/Aug/16  Updated: 30/Nov/17

Status: Open
Project: WSO2 ESB
Component/s: API
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-5249] XSLT 3.0 and XPath 3.0 with Saxon Created: 06/Dec/17  Updated: 06/Dec/17

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

Type: New Feature Priority: High
Reporter: Philipp Bruegger Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: xpath, xslt
Remaining Estimate: 1 hour
Time Spent: Not Specified
Original Estimate: 1 hour

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: No

 Description   

WSO2 ESB is still using Saxon 9.4. With Saxon 9.5 and above, XSLT 3.0 and XPath 3.0 would be supported.

Just replacing the saxon9he.jar in the /lib/endorsed does not work - there are plenty of exceptions then like

[2017-12-06 11:27:52,029]  WARN - SynapseXMLConfigurationFactory Sequence configuration: fault cannot be built - Continue in fail-safe mode
java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFctory implementation found for the object model: http://java.sun.com/jaxp/xpath/dom
        at javax.xml.xpath.XPathFactory.newInstance(Unknown Source)
        at org.apache.synapse.util.xpath.SynapseXPath.<init>(SynapseXPath.java:104)
        at org.apache.synapse.config.xml.SynapsePathFactory.getSynapsePath(SynapsePathFactory.java:51)
        at org.apache.synapse.config.xml.MediatorPropertyFactory.getMediatorProperties(MediatorPropertyFactory.java:100)
        at org.apache.synapse.config.xml.LogMediatorFactory.createSpecificMediator(LogMediatorFactory.java:111)
        at org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
        at org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:223)
        at org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:46)
        at org.apache.synapse.config.xml.SequenceMediatorFactory.createSpecificMediator(SequenceMediatorFactory.java:87)
        at org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
        at org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:223)
        at org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.defineSequence(SynapseXMLConfigurationFactory.java:225)
        at org.apache.synapse.config.xml.MultiXMLConfigurationBuilder.createSequences(MultiXMLConfigurationBuilder.java:330)
        at org.apache.synapse.config.xml.MultiXMLConfigurationBuilder.getConfiguration(MultiXMLConfigurationBuilder.java:145)
        at org.apache.synapse.config.SynapseConfigurationBuilder.getConfiguration(SynapseConfigurationBuilder.java:100)
        at org.apache.synapse.Axis2SynapseController.createSynapseConfiguration(Axis2SynapseController.java:471)
        at org.wso2.carbon.mediation.initializer.CarbonSynapseController.createSynapseConfiguration(CarbonSynapseController.java:182)
        at org.apache.synapse.ServerManager.start(ServerManager.java:178)
        at org.wso2.carbon.mediation.initializer.ServiceBusInitializer.initESB(ServiceBusInitializer.java:452)
        at org.wso2.carbon.mediation.initializer.ServiceBusInitializer.activate(ServiceBusInitializer.java:196)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        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.inbound.endpoint.persistence.service.InboundEndpointPersistenceServiceDSComponent.activate(InboundEndpointPersistenceServiceDSComponent.java:49)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        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:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        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: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:748)
  • Please update the Saxon HE version to enable very useful XSLT and XPath features.





[ESBJAVA-5251] datamapper.engine.feature cannot be not installed from P2 repository Created: 15/Feb/17  Updated: 13/Dec/17

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

Type: Bug Priority: High
Reporter: Chamalee De Silva Assignee: Kasun Indrasiri
Resolution: Unresolved Votes: 0
Labels: P2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Carbon mediation 4.6.10
APIM 2.1.0


Estimated Complexity: Moderate
Test cases added: Yes

 Description   

Due to the following two advice file properties added in [1], the org.wso2.carbon.mediator.datamapper.engine.feature is not getting installed when trying to install from P2 repository.
(tried in WSO2 API Manager 2.1.0 and 2.0.0 with mediation version 4.6.6 and 4.6.10)

<adviceFile>
    <properties>
       <propertyDef>org.wso2.carbon.p2.category.type:console</propertyDef>
       <propertyDef>org.eclipse.equinox.p2.type.group:false</propertyDef>
    </properties>
</adviceFile>

When trying to install the datamapper mediator 4.6.10 to APIM 2.1.0 from P2 repository [2], only following two jars has downloaded to the plugins directory in WSO2 API Manager.

org.wso2.carbon.mediator.datamapper.ui_4.6.10.jar
org.wso2.carbon.mediator.datamapper_4.6.10.jar

And the following jar is missing.

org.wso2.carbon.mediator.datamapper.engine_4.6.10.jar

Datamapper features has added to the carbon-feature-repository with following featureArtifactDefs.
e.g. For mediator version 4.6.10

<featureArtifactDef>                                    org.wso2.carbon.mediation:org.wso2.carbon.mediator.datamapper.engine.feature:${carbon.mediation.version.4.6.10}
</featureArtifactDef>                               
<featureArtifactDef>                                    org.wso2.carbon.mediation:org.wso2.carbon.mediator.datamapper.feature:${carbon.mediation.version.4.6.10}</featureArtifactDef> 

(same as for mediator version 4.6.6)

This issue exists for mediator version 4.6.6 as well.

[1] https://github.com/wso2/carbon-mediation/blob/v4.6.10/features/mediator-features/datamapper-mediator/org.wso2.carbon.mediator.datamapper.engine.feature/pom.xml#L77
[2] http://product-dist.wso2.com/p2/carbon/releases/wilkes/






[ESBJAVA-3517] Retrive OM element as parameter in template function always evaluate to String Created: 30/Jan/15  Updated: 14/Dec/17

Status: Open
Project: WSO2 ESB
Component/s: Templates
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: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

please refer the highlighted section

expression="$func:message1/ser:request/xsd:symbol" it always prints null because, evaluation at getEvaluatedParamValue convert property to string regardless of property element type

if '$func:message1' assigned back to another variable with OM type started to evaulate correctly

<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="Moo"
       transports="https,http"
       statistics="disable"
       trace="disable"
       startOnLoad="true">
   <target>
      <inSequence>
         <enrich>
            <source type="body" clone="true"/>
            <target type="property" property="ORGINAL_MSG"/>
         </enrich>
         <property name="api.common.errorEntries"
                   expression="get-property('ORGINAL_MSG')"
                   type="OM"/>
         <clone>
            <target>
               <sequence>
                  <call-template target="HelloWorld_Logger">
                     <with-param name="message" value="Bonjour tout le monde!!!!!!"/>
                     <with-param name="message1" value="{$ctx:api.common.errorEntries}"/>
                  </call-template>
               </sequence>
            </target>
         </clone>
         <drop/>
      </inSequence>
   </target>
   <description/>
</proxy>

<template xmlns="http://ws.apache.org/ns/synapse" name="HelloWorld_Logger">
   <parameter name="message"></parameter>
   <parameter name="message1"></parameter>
   <sequence>
      <log level="custom">
         <property xmlns:ns2="http://org.apache.synapse/xsd" xmlns:ns="http://org.apache.synapse/xsd" name="CLONE-INNNNN" expression="$func:message1"></property>
      </log>
      <property xmlns:ns2="http://org.apache.synapse/xsd" xmlns:ns="http://org.apache.synapse/xsd" name="templateMessage" expression="$func:message1" type="OM"></property>
      <log>
         <property xmlns:xsd="http://services.samples/xsd" xmlns:ns2="http://org.apache.synapse/xsd" xmlns:ns="http://org.apache.synapse/xsd" xmlns:ser="http://services.samples" name="message##########" expression="$func:message1/ser:request/xsd:symbol"></property>
      </log>
   </sequence>
</template>

Please refer the configuration

    private Object getEvaluatedParamValue(MessageContext synCtx, String parameter, Value expression) {
        if (expression != null) {
            if (expression.getExpression() != null) {
                if(expression.hasExprTypeKey()){
                if(expression.hasPropertyEvaluateExpr()){
                //TODO:evalute the string expression get the value
                //String evaluatedPath ="{//m0:getQuote/m0:request}";
                return expression.evalutePropertyExpression(synCtx);
                }
                    return expression.getExpression();
                } else {
                    return expression.evaluateValue(synCtx);
                }

            } else if (expression.getKeyValue() != null) {
                return expression.evaluateValue(synCtx);
            }
        }
        return null;
    }



public String evaluateValue(MessageContext synCtx) {

        if (keyValue != null) {

         return keyValue;

        } else if (expression != null) {

            //if dynamic key return evaluated value

            return expression.stringValueOf(synCtx);

        } else {

            handleException("Can not evaluate the key: " +

                            "key should be static or dynamic key");

            return null;

        }

    }





[ESBJAVA-5049] Support for XSD Schema 1.1 Created: 16/Mar/17  Updated: 16/Mar/17

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

Type: New Feature Priority: Normal
Reporter: Sachini Rajapakse 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




[ESBJAVA-4991] Configuring CRL location manually Created: 06/Jan/17  Updated: 06/Jan/17

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

Type: Task Priority: Normal
Reporter: shafreen anfar 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   

Currently we can do CRL verification as in [1]. However, in this case location CRL is taken from the certificate itself and it is not possible configure the CRL manually by the user.

It would be great if we can make the CRL path configurable. So that one can give a file location.

[1] http://problemsolvedweb.blogspot.fr/2014/03/wso2-esb-ocspcrl-verification.html






[ESBJAVA-4967] Cannot remove API when created by CAPP Created: 08/Dec/16  Updated: 08/Dec/16

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

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

WSO2ESB 5.0.0, RedHat Linux 7, Java 1.8.0_112


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

 Description   

When deployed a CAPP with API, everything works fine, but when I tried delete CAPP ou redeploy CAPP, the API cannot removed, only after restart server, API is removed. These problema only happens with API, sequence, endpoints work fine.

Thank you






[ESBJAVA-4962] InboundEndpoint FileProcessInterval Created: 29/Nov/16  Updated: 29/Nov/16

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

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

All


Attachments: Zip Archive IepCase.zip    
Severity: Minor
Estimated Complexity: Novice
Test cases added: Yes

 Description   

We noticed an issue in the Inbound Endpoints

When combining the FileProcessInterval and the FileNamePattern the FileProcessInterval is also triggerd by files not allowed according to the FileNamePattern.

I added a zip file with the inbound endpoint and used sequences, the log lines and a picture of the directory structure used in the test setup.

Regards,

Tom Dierckx






[ESBJAVA-4959] Failed to start new registry transaction. java.sql.SQLException: Io exception: Got minus one from a read call Created: 23/Nov/16  Updated: 23/Nov/16

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

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

Java version: 1.7.0_80
OS: CentOS 6.
Kernel: Linux 2.6.32-573.el6.x86_64

One Management node and two workers.


Attachments: File esb-config.tar.gz     File esb-log.tar.gz    
Severity: Major
Estimated Complexity: Moderate

 Description   

After succesfully started ESB module on management node occured errors with starting new registry transaction.






[ESBJAVA-5012] Aggregate Mediator Does Not Work If Proxy Service Called As local:// service Created: 05/Feb/17  Updated: 05/Feb/17

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

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

Mac OSX


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

 Description   

Calling a proxy service that has an iterate in the in sequence and an aggregate on an out sequence from another proxy service using the local:// transport results in the aggregate mediator hanging and the call timing out. If I change to use a reference to my machine such as hostname the aggregate mediator works.






[ESBJAVA-5037] Tenant domain has not been set in CarbonContext when caching inside the clone mediator Created: 06/Mar/17  Updated: 06/Mar/17

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

Type: Bug Priority: Normal
Reporter: Uditha Kumara 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
Test cases added: No

 Description   

When collecting the cache inside a clone mediator experience the below error.

[2017-03-03 16:02:39,276] ERROR - SequenceMediator Tenant domain has not been set in CarbonContext
java.lang.NullPointerException: Tenant domain has not been set in CarbonContext
	at org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)
	at org.wso2.carbon.mediator.cache.CacheMediator.getMediatorCache(CacheMediator.java:497)
	at org.wso2.carbon.mediator.cache.CacheMediator.processResponseMessage(CacheMediator.java:280)
	at org.wso2.carbon.mediator.cache.CacheMediator.mediate(CacheMediator.java:208)
	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.MediatorWorker.run(MediatorWorker.java:69)
	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-5026] NullPointerException with two FIX endpoints (both initiator) Created: 22/Feb/17  Updated: 22/Feb/17

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

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

Running on Solaris 11 as a service.


Severity: Major
Estimated Complexity: Unknown
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   

Hello,

I am unable to configure two FIX endpoints which both are initiators towards different FIX servers. Let's call them Endpoints A and B.

The flow is as follows:

  1. Read XML message from JMS queue (MQ) - works perfect
  2. Convert to FIX message - works perfect
  3. Send FIX message towards Endpoint defined in configuration registry. - fails for Endpoint B (works for A)

The endpoints are configured identically, except for port and SenderCompID. Both sessions are heartbeating - I can see that on my remote acceptor FIX servers.

This is the error I see in wso2carbon.log

TID: [-1234] [] [2017-02-21 14:43:11,915]  INFO {org.apache.synapse.mediators.builtin.LogMediator} -  To: , WSAction: urn:mediate, SOAPAction: urn:mediate, MessageID: ID:414d5120434d4453202020202020202058a5c35d2e06ef1f, Direction: request, MESSAGE = LR_TRADES_IN, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><FIXML><FIXMLMessage><header><Sender><CompID>FIXWSO21-T</CompID></Sender><Target><CompID>XXXXX</CompID></Target><SendingTime/></header><ApplicationMessage><Order><ClOrdID>NEPP_CLORID_123123123</ClOrdID><BusinessUnit>LR_MARGIN_TEST</BusinessUnit><Side>1</Side><Currency>EUR</Currency><OrderQtyData><OrderQty>100</OrderQty><LegCalculatedCcyLastQty>745.00</LegCalculatedCcyLastQty></OrderQtyData><Price>7.45</Price><Symbol>EUR/DKK</Symbol><SettlDate>SPOT</SettlDate><SettlDateActual>20170223</SettlDateActual><PaymentDate>20170223</PaymentDate><QuoteID>GPE-Manual</QuoteID><Parties><PartyID>NOCust123456</PartyID></Parties><Country>NO</Country><TransactTime>20170223-13:18:00.000</TransactTime></Order></ApplicationMessage></FIXMLMessage></FIXML></soapenv:Body></soapenv:Envelope> {org.apache.synapse.mediators.builtin.LogMediator}
TID: [-1234] [] [2017-02-21 14:43:11,919]  INFO {org.apache.synapse.mediators.builtin.LogMediator} -  To: , WSAction: urn:mediate, SOAPAction: urn:mediate, MessageID: ID:414d5120434d4453202020202020202058a5c35d2e06ef1f, Direction: request, MESSAGE = LR_TRADES_FORMATTED, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><message><header><field id="35">D</field></header><body><field id="11">NEPP_CLORID_123123123</field><field id="29998">LR_MARGIN_TEST</field><field id="15">EUR</field><field id="117">GPE-Manual</field><field id="54">1</field><field id="38">100</field><field id="1074">745.00</field><field id="44">7.45</field><field id="55">EUR/DKK</field><field id="64">SPOT</field><field id="30001">20170223</field><field id="504">20170223</field><groups id="453"><group><field id="448">NOCust123456</field></group></groups><field id="421">NO</field><field id="60">20170223-13:18:00.000</field></body><trailer/></message></soapenv:Body></soapenv:Envelope> {org.apache.synapse.mediators.builtin.LogMediator}
TID: [-1] [] [2017-02-21 14:43:11,920]  INFO {org.apache.axis2.engine.AxisEngine} -  [MessageContext: logID=f6f16a7e47b76eb09c88f32baf55c63247d65679aadc23cf] null {org.apache.axis2.engine.AxisEngine}
TID: [-1] [] [2017-02-21 14:43:11,921] ERROR {org.apache.synapse.core.axis2.AsyncCallback} -   {org.apache.synapse.core.axis2.AsyncCallback}
java.lang.NullPointerException
        at org.apache.synapse.transport.fix.FIXUtils.compareURLs(FIXUtils.java:557)
        at org.apache.synapse.transport.fix.FIXSessionFactory.getApplication(FIXSessionFactory.java:496)
        at org.apache.synapse.transport.fix.FIXOutgoingMessageHandler.sendToTarget(FIXOutgoingMessageHandler.java:132)
        at org.apache.synapse.transport.fix.FIXOutgoingMessageHandler.sendMessage(FIXOutgoingMessageHandler.java:113)
        at org.apache.synapse.transport.fix.FIXTransportSender.sendUsingEPR(FIXTransportSender.java:310)
        at org.apache.synapse.transport.fix.FIXTransportSender.sendMessage(FIXTransportSender.java:137)
        at org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
        at org.apache.axis2.engine.AxisEngine$TransportNonBlockingInvocationWorker.run(AxisEngine.java:626)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadP

Endpoint A configuration:

<endpoint xmlns="http://ws.apache.org/ns/synapse">
   <address uri="fix://hostname:9997?BeginString=FIXT.1.1&SenderCompID=FIXWSO21-P&TargetCompID=XXXXX">
      <suspendOnFailure>
         <progressionFactor>1.0</progressionFactor>
      </suspendOnFailure>
      <markForSuspension>
         <retriesBeforeSuspension>0</retriesBeforeSuspension>
         <retryDelay>0</retryDelay>
      </markForSuspension>
   </address>
   <property name="transport.fix.InitiatorConfigURL" value="file:/me01/apps/xxxxx/wso2esb-config/quickfix.cfg" scope="transport"/>
   <property name="transport.fix.InitiatorMessageStore" value="file" scope="transport"/>
</endpoint>

Endpoint B configuration:

<endpoint xmlns="http://ws.apache.org/ns/synapse">
   <address uri="fix://hostname:9996?BeginString=FIXT.1.1&SenderCompID=FIXWSO21-T&TargetCompID=XXXXX">
      <suspendOnFailure>
         <progressionFactor>1.0</progressionFactor>
      </suspendOnFailure>
      <markForSuspension>
         <retriesBeforeSuspension>0</retriesBeforeSuspension>
         <retryDelay>0</retryDelay>
      </markForSuspension>
   </address>
   <property name="transport.fix.InitiatorConfigURL" value="file:/me01/apps/xxxxx/wso2esb-config/quickfix.cfg" scope="transport"/>
   <property name="transport.fix.InitiatorMessageStore" value="file" scope="transport"/>
</endpoint>

Endpoint B does not work and throws above exception.

Notice the only difference in endpoint configuration is the target port (9996 vs 9997), and the SenderCompID (FIXWSO21-P vs FIXWSO21-T)

Both sessions are defined in quickfix.cfg referenced by the InitiatorConfigURL. The default settings are set to initiator, and the SocketConnectHost / Port on each session are correctly setup.

If I shutdown WSO2 ESB, then I see the following, where I can see that endpoint B EPR is null. Why is that? That is the cause of the nullpointerexception above.

TID: [-1] [] [2017-02-22 14:34:07,407] INFO

{org.apache.synapse.transport.fix.FIXIncomingMessageHandler} - FIX session logged out: FIXT.1.1:FIXWSO21-T->XXXXX {org.apache.synapse.transport.fix.FIXIncomingMessageHandler} {org.apache.synapse.transport.fix.FIXIncomingMessageHandler}
TID: [-1] [] [2017-02-22 14:34:07,407] INFO {org.apache.synapse.transport.fix.FIXIncomingMessageHandler}

- FIX session logged out: FIXT.1.1:FIXWSO21-P->XXXXX

{org.apache.synapse.transport.fix.FIXIncomingMessageHandler}

TID: [-1234] [] [2017-02-22 14:34:08,658] DEBUG

{org.apache.synapse.transport.fix.FIXSessionFactory} - FIX initiator to the EPR null stopped {org.apache.synapse.transport.fix.FIXSessionFactory}

TID: [-1234] [] [2017-02-22 14:34:08,658] DEBUG

{org.apache.synapse.transport.fix.FIXSessionFactory} - FIX initiator to the EPR fix://hostname:9997?BeginString=FIXT.1.1&SenderCompID=FIXWSO21-P&TargetCompID=XXXX stopped {org.apache.synapse.transport.fix.FIXSessionFactory}




[ESBJAVA-4944] Restore default Log4j configuration doesn't work Created: 03/Nov/16  Updated: 03/Nov/16

Status: Open
Project: WSO2 ESB
Component/s: Administration Console
Affects Version/s: 5.0.0
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: Novice
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   

Go to the administration console of ESB 5.0.0.
Click on button "Restore Defaults" on the Configure Logging page.
A Fail popup open.

In the log the stack trace:

TID: [-1234] [] [2016-11-03 15:46:59,260] ERROR {org.apache.axis2.engine.AxisEngine} -  The endpoint reference (EPR) for the Operation not found is local://services/LoggingAdmin and the WSA Action = urn:restoreDefaults. If this EPR was previously reachable, please contact the server administrator. {org.apache.axis2.engine.AxisEngine}
org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation not found is local://services/LoggingAdmin and the WSA Action = urn:restoreDefaults. If this EPR was previously reachable, please contact the server administrator.
	at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:102)
	at org.apache.axis2.engine.Phase.invoke(Phase.java:329)
	at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
	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.logging.admin.stub.LoggingAdminStub.restoreDefaults(LoggingAdminStub.java:1644)
	at org.wso2.carbon.logging.admin.ui.LoggingAdminClient.restoreToDefaults(LoggingAdminClient.java:194)
	at org.apache.jsp.log_002dadmin.restoreDefaults_002dajaxprocessor_jsp._jspService(restoreDefaults_002dajaxprocessor_jsp.java:159)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)

Check the WSDL of the Admin service https://localhost.lxc:9443/services/LoggingAdmin?wsdl

The operation requested (WSA Action = urn:restoreDefaults) is not present.






[ESBJAVA-5010] API_LOGGER not propagated to iterate mediator Created: 02/Feb/17  Updated: 12/Feb/17

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

Type: Bug Priority: Normal
Reporter: Joe Siponen Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: wso2-esb
Remaining Estimate: 3 days
Time Spent: Not Specified
Original Estimate: 3 days
Environment:

/opt/java/bin/java -version
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)


Severity: Minor
Estimated Complexity: Advanced
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   

File: log4j.properties
{{
log4j.category.API_LOGGER.api_logging_test=INFO, API_LOGGING_TEST_APPENDER
log4j.additivity.API_LOGGER.api_logging_test=false
log4j.appender.API_LOGGING_TEST_APPENDER=org.apache.log4j.DailyRollingFileAppender
log4j.appender.API_LOGGING_TEST_APPENDER.File=$

{carbon.home}

/repository/logs/$

{instance.log}/wso2-esb-api_logging_test${instance.log}

.log
log4j.appender.API_LOGGING_TEST_APPENDER.Append=true
log4j.appender.API_LOGGING_TEST_APPENDER.layout=org.apache.log4j.PatternLayout
log4j.appender.API_LOGGING_TEST_APPENDER.layout.ConversionPattern=%d

{ISO8601}

[%X

{ip}

-%X

{host}

] [%t] %5p %c

{1}

%m%n
}}

File: api_logging_test.xml

<?xml version="1.0" encoding="UTF-8"?>
<api xmlns="http://ws.apache.org/ns/synapse" context="/esb/v1/api_logging_test" name="api_logging_test">
  <resource faultSequence="seq_logging_test_fault" methods="OPTIONS POST" protocol="http" url-mapping="/*">
    <inSequence>
      <sequence key="seq_logging_test"/>
    </inSequence>
    <outSequence/>
  </resource>
</api>

File: seq_logging_test.xml

<?xml version="1.0" encoding="UTF-8"?>
<sequence xmlns="http://ws.apache.org/ns/synapse" name="seq_logging_test" onError="seq_logging_test_fault" trace="disable">
  <log description="Log message" level="custom">
    <property name="Development logging: " value="Message reaching seq_logging_test"/>
  </log>
  <sequence description="Process" key="seq_logging_test_processor"/>
  <header action="remove" name="To" scope="default"/>
  <property name="RESPONSE" scope="default" type="STRING" value="true"/>
  <property name="SC_ACCEPTED" scope="axis2" type="STRING" value="false"/>
  <property name="NO_ENTITY_BODY" scope="axis2" type="BOOLEAN" value="true"/>
  <property name="HTTP_SC" scope="axis2" type="STRING" value="200"/>
  <property name="messageType" scope="axis2" type="STRING" value="application/json"/>
  <payloadFactory media-type="xml">
    <format>
      <response>
        <result>OK</result>
      </response>
    </format>
    <args/>
  </payloadFactory>
  <send/>
</sequence>

File: seq_logging_test_processor.xml

<?xml version="1.0" encoding="UTF-8"?>
<sequence xmlns="http://ws.apache.org/ns/synapse" name="seq_logging_test_processor" onError="seq_logging_test_processor_fault" trace="disable">
  <log description="Log message" level="custom">
    <property name="Development logging: " value="Message reaching seq_logging_test_processor"/>
  </log>
  <iterate continueParent="true" expression="//jsonObject/event" sequential="true">
    <target>
      <sequence>
        <log description="Log message" level="custom">
          <property name="Development logging: " value="Message reaching seq_logging_test_processor iterator sequence"/>
        </log>
      </sequence>
    </target>
  </iterate>
  <log description="Log message" level="custom">
    <property name="Development logging: " value="Ending seq_logging_test_processor"/>
  </log>
</sequence>

The expected outcome (as I see it) would be to see the following output in wso2-esb-api_logging_test.log:
{{
2017-xx-xx xx:xx:xx,xxx [-] [PassThroughMessageProcessor-2] INFO api_logging_test Development logging: = Message reaching seq_logging_test
2017-xx-xx xx:xx:xx,xxx [-] [PassThroughMessageProcessor-2] INFO api_logging_test Development logging: = Message reaching seq_logging_test_processor
2017-xx-xx xx:xx:xx,xxx [-] [PassThroughMessageProcessor-3] INFO api_logging_test Development logging: = Message reaching seq_logging_test_processor iterator sequence
2017-xx-xx xx:xx:xx,xxx [-] [PassThroughMessageProcessor-2] INFO api_logging_test Development logging: = Ending seq_logging_test_processor
}}

However, the actual output is:
{{
2017-xx-xx xx:xx:xx,xxx [-] [PassThroughMessageProcessor-2] INFO api_logging_test Development logging: = Message reaching seq_logging_test
2017-xx-xx xx:xx:xx,xxx [-] [PassThroughMessageProcessor-2] INFO api_logging_test Development logging: = Message reaching seq_logging_test_processor
2017-xx-xx xx:xx:xx,xxx [-] [PassThroughMessageProcessor-2] INFO api_logging_test Development logging: = Ending seq_logging_test_processor
}}

That is, any and all logging appearing within the iterator's sequence is dropped (the message 'Message reaching seq_logging_test_processor iterator sequence' here). This is probably due to the fact that the log context is not (or incorrectly) propagated to the iterator's sequence.



 Comments   
Comment by Joe Siponen [ 02/Feb/17 ]

I can see some formatting errors in the wiki syntax but you should be able to look at the source of the wiki. It does not seem that one can edit issues created by oneself.

Comment by Joe Siponen [ 12/Feb/17 ]

A suggestion is to propagate the service or api specific logger in the following method:

org.apache.synapse.util.MessageHelper.cloneMessageContext(MessageContext, boolean)

That methods seems to set up the cloned context for the iterator's inner sequence.





[ESBJAVA-4964] [UI][RabbitMQ Message store] Not allow to switch to source view while creating message store Created: 01/Dec/16  Updated: 01/Dec/16

Status: Open
Project: WSO2 ESB
Component/s: Message Stores
Affects Version/s: 5.0.0
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 : Linux (ubuntu 15.10)
Java Version : JDK1.8
Packs : ESB 5.0.0
ESB Setup: Standalone


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

 Description   

Preconditions:
ESB should be configured with rabbitmq and running.
Rabbitmq server should be running

Steps to reproduce:
1. Go to "Message Stores"
2. Go to create new Rabbitmq message store
3. While creating switch to source view.

Expected Result:

  • Should switch to source view

Actual Result:

  • Not going to switch





[ESBJAVA-5240] FATAL Error with Sonic MQ JMS Created: 19/Oct/17  Updated: 19/Oct/17

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

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

Attachments: Zip Archive AddJMSSonicMQ.ZIP    
Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

Version: wso2ei-6.1.1
When I try appent libraries for JMS Sonic MQ to WSO2ESB I got the fatal error.
In the attachment you can find axis2 config and three .JAR files and logs.
WSO2CEP with these JARs works fine.

Fatal Error
FATAL

{org.wso2.carbon.core.init.CarbonServerManager} - WSO2 Carbon initialization Failed {org.wso2.carbon.core.init.CarbonServerManager}

java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "javax/jms/TopicSession"






[ESBJAVA-4880] MessageStore executes about 20 seconds for bigger files - 0.5 mb Created: 01/Sep/16  Updated: 01/Sep/16

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

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

Red Hat Enterprise Linux Server release 7.1


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

 Description   

I use a customized JDBCMessageStore.
Message (0.5 mb) executes about 20 seconds.
I measured time in my JDBCMessageStore and there is fine - about 20 ms.
I checked time in internal class org.apache.synapse.mediators.store.MessageStoreMediator and there message executes long time.

When I comment these line, messages got a speed, but some sequences end with error. It depends on structure of message.

// Ensure that the message is fully read
synCtx.getEnvelope().buildWithAttachments();
//Clone the message before sending to the producer
//Fix ESBJAVA-3650
MessageContext newCtx = synCtx;
try

{ newCtx = MessageHelper.cloneMessageContext(synCtx); }

catch (AxisFault af)

{ handleException("Error when cloning the message context", af, synCtx); }

Library: Apache Synapse - Core, version 2.1.3-wso2v11






[ESBJAVA-4875] Support expression as class mediator properties Created: 30/Aug/16  Updated: 30/Aug/16

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

Type: Improvement Priority: Normal
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   

Currently only static values can be passed as properties to a class mediator, suggest an improvement to support expression as class mediator properties .






[ESBJAVA-4919] ConnectionFactoryJNDIName is not picked if it is different than TopicConnectionFactory or QueueConnectionFactory 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: Normal
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: Critical
Estimated Complexity: Moderate
Test cases added: No

 Description   

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

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

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

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

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

Issue

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

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






[ESBJAVA-4890] Exception if database loadbalancing configuration with WSO2 ESB 4.9.0 + MySQL Cluster 7.4.11 + MySQL Connector 5.1.39 Created: 13/Sep/16  Updated: 13/Sep/16

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

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

SUSE ES 11 SP4 + Oracle JDK 8u101 64bits + WSO2 ESB 4.9.0 + MySQL Cluster 7.4.11 + MySQL Connector 5.1.39


Attachments: XML File master-datasources.xml     XML File registry.xml    
Severity: Major
Estimated Complexity: Advanced
Test cases added: Yes

 Description   

I am configuring WSO2 ESB with the registry in MySQL Cluster (see versions and products on environment) with the objective to mount a cluster of ESB's.

Scenario 1: 1 ESB node balancing to 2 MySQL nodes. All folders mapped to the same database
If I configure all the registry folders (local, conf, gov) to the same balanced datasource, it works perfectly. Only needs to modify master-datasource.xml as

Scenario 2: 1 ESB node balancing to 2 MySQL nodes. Local folder mapped to one database, conf and gov mapped to another database
In this case, an exception is produced. I added another datasource (WSO2_CARBON_DB_GREG) to the same 2 MySQL nodes, but different database and user

TID: [-1234] [] [2016-09-12 18:01:16,827] ERROR {org.wso2.carbon.registry.core.utils.RegistryUtils} -  Failed to construct the connectionId. {org.wso2.carbon.registry.core.utils.RegistryUtils}
java.sql.SQLException: PooledConnection has already been closed.
        at org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:86)
        at com.sun.proxy.$Proxy15.getMetaData(Unknown Source)
        at org.wso2.carbon.registry.core.utils.RegistryUtils.getConnectionId(RegistryUtils.java:194)
        at org.wso2.carbon.registry.core.jdbc.dataaccess.JDBCDatabaseTransaction$ManagedRegistryConnection.getConnectionId(JDBCDatabaseTransaction.java:1133)
        at org.wso2.carbon.registry.core.jdbc.dataaccess.JDBCDatabaseTransaction$ManagedRegistryConnection.commit(JDBCDatabaseTransaction.java:1207)
        at org.wso2.carbon.registry.core.jdbc.dataaccess.JDBCTransactionManager.commitTransaction(JDBCTransactionManager.java:159)
        at org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.commitTransaction(EmbeddedRegistry.java:452)
        at org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.resourceExists(EmbeddedRegistry.java:658)
        at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.resourceExists(CacheBackedRegistry.java:293)
        at org.wso2.carbon.registry.core.session.UserRegistry.resourceExistsInternal(UserRegistry.java:770)
        at org.wso2.carbon.registry.core.session.UserRegistry.access$800(UserRegistry.java:60)
        at org.wso2.carbon.registry.core.session.UserRegistry$9.run(UserRegistry.java:753)
        at org.wso2.carbon.registry.core.session.UserRegistry$9.run(UserRegistry.java:750)
        at java.security.AccessController.doPrivileged(Native Method)

Scenario 3: 1 ESB node without balancing to MySQL cluster. Local folder mapped to one database, conf and gov mapped to another database
In this case, the configuration is similar to scenario 2, but the jdbc URL has not the loadbalance feature. each JDBC url points to a different mysql node. In this case, all works perfectly

So, it seems that the problem appears when configuring 2 datasources with loadbalancing.

Attached master-datasource.xml and registry.xml for the problematic scenario 2

Note: each MySQL node allows 400 connections






[ESBJAVA-4899] publishEvent Mediator not working inside sequences invoked by Clone Mediator Created: 21/Sep/16  Updated: 21/Sep/16

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

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

ESB 5.0.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: No

 Description   

publishEvent mediator works fine with a DAS when invoked through a proxy directly. But when tried to invoke it through a clone mediator (proxy->clone->sequence->publishEvent) it gives this error

ERROR - PublishEventMediator Cannot mediate message. Failed to load event sink 'sampleEventSink'. Error: Event sink "sampleEventSink" not found
org.apache.synapse.SynapseException: Event sink "sampleEventSink" not found






[ESBJAVA-4893] CORS Access for restful web services Created: 14/Sep/16  Updated: 14/Sep/16

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

Type: Patch Priority: Normal
Reporter: Martin Licea Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: cors, esb
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

linux RHEL 6.7 64-bit


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 are trying to make calls to our restful web services/APIs using a tool called Swagger-ui. Since CORS configuration is not set at the server level, which should return a header similar to [["Access-Control-Allow-Origin: *]], Google Chrome will not display the results, and the response is lost.






[ESBJAVA-4853] [Intermittent] Exception in the Cluster Environment Created: 19/Aug/16  Updated: 19/Aug/16

Status: Open
Project: WSO2 ESB
Component/s: Administration Console
Affects Version/s: 5.0.0-RC4
Fix Version/s: None

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

Cluster : 1 mgr 3 wrks, Ubuntu 14.04, Java 1.8.0_74


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

 Description   

Below exception can be intermittently seen in the logs of manager node in ESB cluster environment.

TID: [-1234] [] [2016-08-18 09:03:54,506] ERROR {org.apache.axis2.rpc.receivers.RPCMessageReceiver} -  Exception occurred while trying to invoke service method getServerData {org.apache.axis2.rpc.receivers.RPCMessageReceiver}
java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor201.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	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.server.admin.stub.ServerAdminStub.getServerData(ServerAdminStub.java:1621)
	at org.wso2.carbon.server.admin.ui.ServerAdminClient.getServerData(ServerAdminClient.java:131)
	at org.apache.jsp.server_002dadmin.system_005fstatus_005fajaxprocessor_jsp._jspService(system_005fstatus_005fajaxprocessor_jsp.java:165)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:88)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSRFPreventionFilter.java:88)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(CRLFPreventionFilter.java:59)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:120)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
	at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)
	at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
	at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
	at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1749)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1708)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ThreadDeath
	at java.lang.Thread.stop(Thread.java:850)
	at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.handleStuckThread(CarbonStuckThreadDetectionValve.java:125)
	at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.backgroundProcess(CarbonStuckThreadDetectionValve.java:178)
	at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1365)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1543)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1553)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1521)
	... 1 more
TID: [-1234] [] [2016-08-18 09:03:54,553] ERROR {org.wso2.carbon.server.admin.ui.ServerAdminClient} -  Cannot get server data. Backend service may be unavailable {org.wso2.carbon.server.admin.ui.ServerAdminClient}
org.apache.axis2.AxisFault: Exception occurred while trying to invoke service method getServerData
	at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
	at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
	at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
	at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
	at org.wso2.carbon.server.admin.stub.ServerAdminStub.getServerData(ServerAdminStub.java:1621)
	at org.wso2.carbon.server.admin.ui.ServerAdminClient.getServerData(ServerAdminClient.java:131)
	at org.apache.jsp.server_002dadmin.system_005fstatus_005fajaxprocessor_jsp._jspService(system_005fstatus_005fajaxprocessor_jsp.java:165)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:88)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSRFPreventionFilter.java:88)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(CRLFPreventionFilter.java:59)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:120)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
	at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)
	at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
	at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
	at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1749)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1708)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)





[ESBJAVA-4323] NullPointerException: Tenant domain has not been set in CarbonContext. Using hl7 Inbound Created: 20/Nov/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: Normal
Reporter: Adrian Riobo 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

 Description   

Using event mediator in a sequence where the message is received through an hl7 inbound endpoint I got:

DEBUG

{org.wso2.carbon.user.core.common.DefaultRealmService} - Error occurred while getting tenant user realm for tenant id : -1 {org.wso2.carbon.user.core.common.DefaultRealmService}

java.lang.NullPointerException: Tenant domain has not been set in CarbonContext
at org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)
at org.wso2.carbon.user.core.tenant.TenantCache.getTenantCache(TenantCache.java:38)
at org.wso2.carbon.user.core.tenant.TenantCache.getValueFromCache(TenantCache.java:73)
at org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:295)
at org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:53)
at org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:154)
at org.wso2.carbon.event.core.internal.delivery.inmemory.InMemoryDeliveryManager.publish(InMemoryDeliveryManager.java:87)
at org.wso2.carbon.event.core.internal.EventPublisher.run(EventPublisher.java:56)
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: [-1] [] [2015-11-19 10:28:22,971] ERROR

{org.wso2.carbon.event.core.internal.EventPublisher} - Can not publish the message {org.wso2.carbon.event.core.internal.EventPublisher}

org.wso2.carbon.event.core.exception.EventBrokerException: Can not access the user store manager
at org.wso2.carbon.event.core.internal.delivery.inmemory.InMemoryDeliveryManager.publish(InMemoryDeliveryManager.java:109)
at org.wso2.carbon.event.core.internal.EventPublisher.run(EventPublisher.java:56)
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)

Sequence definition:

<?xml version="1.0" encoding="UTF-8"?>
<sequence xmlns="http://ws.apache.org/ns/synapse">
<log category="DEBUG" level="full"/>
<filter xmlns:ns="http://org.apache.synapse/xsd" xpath="//[local-name() = 'ADT_A04' and namespace-uri() = 'urn:hl7-org:v2xml']/[local-name() = 'MSH']/[local-name() = 'MSH.9']/[local-name() = 'CM_MSG.2']/text() = 'A04'">
<then>
<log category="DEBUG" level="full"/>
<event topic="adt_a04"/>
</then>
<else/>
</filter>
</sequence>






[ESBJAVA-4291] [MQTT] Temporary directories created for MQTT not getting deleted when removing inbound EP Created: 29/Oct/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: Normal
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:

OS: CentOS JDK: 1.8 Database : MYSQL Browser : Google Chrome Version 43.0.2357.65 (64-bit) Setup: Standalone | ESB 4.9.0


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

 Description   

When creating a MQTT Inbound EP a directory will be created for each subscription. These directories will be created in ESB_HOME directory by default. So when we delete a MQTT inbound EP these directories should be deleted along with the EP. ATM these folders are not getting deleted.






[ESBJAVA-4303] Inbound Endpoint "switch to source view" Created: 06/Nov/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: Improvement Priority: Normal
Reporter: Philipp Bruegger Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 1
Labels: wso2esb
Remaining Estimate: 1 hour
Time Spent: Not Specified
Original Estimate: 1 hour

Attachments: PNG File wso2_switchtosourceview.png    
Severity: Minor
Estimated Complexity: Novice
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
Affects Docs:
Yes

 Description   

When editing Proxies or Sequences in the Management Console, there is the option "switch to source view". This is a very useful feature.

With the new inbound endpoints the button is missing. Please add the same "switch to source view" button to the edit of inbound endpoints.






[ESBJAVA-4296] Changed not applied by activating an Inbound Endpoint after assigning permission Created: 30/Oct/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: Normal
Reporter: Dilini Gunatilake Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

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


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

 Description   

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

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

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






[ESBJAVA-4368] Unable to use WSDL endpoint with Basic auth, with a username having ''@" character Created: 20/Dec/15  Updated: 06/Aug/16

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

Type: Bug Priority: Normal
Reporter: Rushmin Fernando 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   

Issues observed while fetching the relevant WSDL when using the WSDL endpoint [1]

The reason is the code line at [2] is failing to handle the requirement because of the following reasons.

1) Since the username has special characters they should be URL encoded in the WSDL URL.

e.g. https://user%40foo.com:password@abc.com

But it is not URL decoded in [1] before Base64 encoding.

2) The output of Base64 encoding has a "\r\n" at the end. So the HTTP call fails giving the following error.

Caused by: java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic xxxxxxxxxxxxxxxxxxxx

at sun.net.www.protocol.http.HttpURLConnection.checkMessageHeader(HttpURLConnection.java:482)
at sun.net.www.protocol.http.HttpURLConnection.isExternalMessageHeaderAllowed(HttpURLConnection.java:434)
at sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(HttpURLConnection.java:2753)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestProperty(HttpsURLConnectionImpl.java:316)
at org.apache.synapse.config.SynapseConfigUtils.getOMElementFromURL(SynapseConfigUtils.java:297)

Having the following code line in [1] fixed the issue.

String encoding = StringUtils.removeEnd(new String(new Base64().encode(URLDecoder.decode(url.getUserInfo(), "UTF8").getBytes())), "\r\n")

[1] - https://docs.wso2.com/display/ESB490/WSDL+Endpoint
[2] - https://github.com/wso2/wso2-synapse/blob/Apache-Synapse-2.1.3-wso2v11/modules/core/src/main/java/org/apache/synapse/config/SynapseConfigUtils.java#L296






[ESBJAVA-4360] Wrong error stack/information provided for scenario Created: 15/Dec/15  Updated: 06/Aug/16

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

Type: Bug Priority: Normal
Reporter: Sivajothy Vanjikumaran 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   

1) Create a api
2) Change the namespace with https
3) Error-
Caused by: org.apache.synapse.deployers.SynapseArtifactDeploymentException: API deployment from the file : /etc/opt/wso2am-1.6.0/repository/deployment/server/synapse-configs/default/api/vanji--ServiceSellersAPI.xml : Failed.
at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.handleSynapseArtifactDeploymentError(AbstractSynapseArtifactDeployer.java:471)
at org.apache.synapse.deployers.APIDeployer.deploySynapseArtifact(APIDeployer.java:67)
at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:190)
... 19 more
Caused by: org.apache.synapse.SynapseException: An API must contain at least one resource definition
at org.apache.synapse.config.xml.rest.APIFactory.handleException(APIFactory.java:160)
at org.apache.synapse.config.xml.rest.APIFactory.createAPI(APIFactory.java:86)
at org.apache.synapse.deployers.APIDeployer.deploySynapseArtifact(APIDeployer.java:44)
... 20 more

4) Issue here is in the wrong error stack or message saying that no resource found. Therefore, in production kind environment it is always good to have a right error code.






[ESBJAVA-4352] Problems with the command ./ciphertool.sh -Dchange Created: 04/Dec/15  Updated: 06/Aug/16

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

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

Development, Integration, Production


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

 Description   

We have problems if we want to change one encrypted password.

When I execute:

/opt/soa/wso2esb-4.9.0/bin ./ciphertool.sh -Dchange
[Please Enter Primary KeyStore Password of Carbon Server : ]

Primary KeyStore of Carbon Server is initialized Successfully

[1] Axis2.Https.Sender.TrustStore.Password
.........
[13] Axis2.Https.Listener.KeyStore.KeyPassword
[Please enter the Number which is corresponding to the Password that is needed be changed [Press Enter to Skip] : ]4
[adminsoa@sltcsoa1d bin]$

I don't have option to change the password, after I choose the number of the password that I want change + enter, the ciphertool utility close.

If I execute the same option in esb4.8.1 it is correct:

/var/soa/backups/wso2esb/wso2esb-4.8.1/bin
[adminsoa@sltcsoa1d bin]$ ./ciphertool.sh -Dchange
[Please Enter Primary KeyStore Password of Carbon Server : ]

Primary KeyStore of Carbon Server is initialized Successfully

[1] Carbon.Security.KeyStore.Password
........
[5] Datasources.WSO2_CARBON_DB.Configuration.Password

Please enter the Number which is corresponding to the Password that is needed be changed [Press Enter to Skip] :
2
[Enter Password of Secret Alias - 'Carbon.Security.KeyStore.KeyPassword' :]



 Comments   
Comment by Pedro Díaz [ 09/Dec/15 ]

Please I need a resolution

Comment by Pedro Díaz [ 09/Dec/15 ]

I solve the problem with the ./ciphertool.sh -Dconfigure command:

1- I put the new password in plain text in cipher-text.properties and axis2.xml files
2- ./ciphertool.sh -Dconfigure

The password is encrypted correctly

But the command ./ciphertool.sh -Dchange is wrong in wso2esb-4.9.





[ESBJAVA-4309] ESB can't convert JSON response Created: 11/Nov/15  Updated: 06/Aug/16

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

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

Red Hat Enterprise Linux Server release 7.1


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 to reproduce.

1. Send message to ESB.
2. ESB sends message to WebService.
3. WebService responds in JSON to ESB.
4. One of field has value like this "15436522e358616146417493352498".
5. ESB throws errors.

I found wrong regex "^-?(0|[1-9][0-9]*)(
.[0-9])?([eE][+-]?[0-9])?$" in class org.apache.synapse.commons.staxon.core.json.stream.util.AutoPrimitiveTarget. Maybe this is problem.

Unexpected error sending message back
at org.apache.synapse.core.axis2.Axis2Sender.handleException(Axis2Sender.java:247)
at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:215)
at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444)
at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102)
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
Caused by: org.apache.axis2.AxisFault: Failed to submit the response
at org.apache.synapse.transport.passthru.PassThroughHttpSender.handleException(PassThroughHttpSender.java:610)
at org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:269)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
... 15 more
Caused by: java.lang.NumberFormatException
at java.math.BigDecimal.<init>(BigDecimal.java:490)
at java.math.BigDecimal.<init>(BigDecimal.java:739)
at org.apache.synapse.commons.staxon.core.json.stream.util.AutoPrimitiveTarget.value(AutoPrimitiveTarget.java:54)
at org.apache.synapse.commons.staxon.core.json.JsonXMLStreamWriter.writeEndElementTag(JsonXMLStreamWriter.java:187)
at org.apache.synapse.commons.staxon.core.base.AbstractXMLStreamWriter.writeEndElement(AbstractXMLStreamWriter.java:209)
at org.apache.synapse.commons.staxon.core.event.SimpleXMLEventWriter.add(SimpleXMLEventWriter.java:60)
at org.apache.synapse.commons.staxon.core.event.SimpleXMLEventWriter.add(SimpleXMLEventWriter.java:119)
at org.apache.synapse.commons.json.JsonUtil.writeAsJson(JsonUtil.java:327)
at org.apache.synapse.commons.json.JsonFormatter.writeTo(JsonFormatter.java:84)
at org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:552)
at org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)






[ESBJAVA-4163] When clicked on JMS Stores deployed with a CAR it redirects to a wrong page Created: 04/Sep/15  Updated: 06/Aug/16

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

Type: Bug Priority: Normal
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:

Pack : wso2esb-4.9.0-RC3.zip
Java Version : Java 1.8
Setup : Standalone
Browser : Chrome Version 43.0.2357.130 (64-bit) | FireFox 38.0
DB : H2


Attachments: PNG File in_memory.png     PNG File jms.png    
Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

Steps to reproduce

1. Upload the attached CAR app.
2. Now go to Carbon Application listing page.
3. Click on the JMS message store.

Issue : It will be redirected to an incorrect page.



 Comments   
Comment by Nadeeshaan Gunasinghe [ 05/Sep/15 ]

When clicking on a message store entry it is intended to redirected to a page as in the attached screenshots. So it is the intended behavior.

Comment by Yasassri Rathnayake [ 06/Sep/15 ]

What is the intention of JMS store redirection (jms.png) ? AFAIK this page was removed from JMS stores since the message viewing functionality was removed from JMS stores. Please verify.





[ESBJAVA-4149] Uneccesary Senders/modules started when creating a message processor Created: 03/Sep/15  Updated: 06/Aug/16

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

Type: Bug Priority: Normal
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:

Pack : wso2esb-4.9.0-RC2.zip
Java Version : Java 1.8
Setup : Standalone
Browser : Chrome Version 43.0.2357.130 (64-bit) | FireFox 38.0
DB : H2


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

 Description   

Steps to reproduce

1. Create a message processor.
2. Now check the logs.

Issue : The logs indicate that JMS/MailTo senders are starting and ESB is deploying rampart/addressing modules. Are they required for message processors?

[2015-09-03 08:46:39,967]  INFO - ModuleDeployer Deploying module: addressing-1.6.1-wso2v14 - file:/home/yasassri/Desktop/QA_TESTING/ESB_4.9/RC2/wso2esb-4.9.0-RC2/./repository/deployment/client/modules/addressing-1.6.1-wso2v14.mar
[2015-09-03 08:46:39,969]  INFO - ModuleDeployer Deploying module: rampart-1.6.1-wso2v12 - file:/home/yasassri/Desktop/QA_TESTING/ESB_4.9/RC2/wso2esb-4.9.0-RC2/./repository/deployment/client/modules/rampart-1.6.1-wso2v12.mar
[2015-09-03 08:46:39,971]  INFO - MailTransportSender MAILTO Sender started
[2015-09-03 08:46:39,972]  INFO - JMSSender JMS Sender started
[2015-09-03 08:46:39,972]  INFO - JMSSender JMS Transport Sender initialized...
[2015-09-03 08:46:39,976]  INFO - AbstractQuartzTaskManager Task scheduled: [-1234][ESB_TASK][MSMP_Processor_ActiveMQ_020]
[2015-09-03 08:46:39,977]  INFO - NTaskTaskManager Scheduled task [NTask::-1234::MSMP_Processor_ActiveMQ_020]
[2015-09-03 08:46:39,977]  INFO - ScheduledMessageProcessor Started message processor. [Processor_ActiveMQ_02].





[ESBJAVA-4151] Delete button is enabled for cApp's Local Entries and nothing performed by click on it - UI Created: 03/Sep/15  Updated: 06/Aug/16

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

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

wso2esb-4.9.0-RC1-SNAPSHOT
developer-studio-eclipse-jee-luna-linux-gtk-x86_64-3.8.0


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

 Description   

Steps:
1. Create any type of Local entry and export into CAR and deploy
2. Go to Available Local Entries list
You can see Delete button is enabled for cApp's Local entry and nothing performed once we click on it.






[ESBJAVA-4208] Cannot activate message processors uploaded with a CAR, after updating the source view Created: 10/Sep/15  Updated: 06/Aug/16

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

Type: Bug Priority: Normal
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:

Pack : wso2esb-4.9.0-RC6.zip
Java Version : Java 1.8
Setup : Standalone
Browser : Chrome Version 43.0.2357.130 (64-bit) | FireFox 38.0
DB : H2


Attachments: File Message_Processor_Test_XXX_1.0.0.car    
Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

Steps to reproduce

1. Upload the attache CAR file which has a EP, Store and a MP.
2. Now go to message processor and make sure you can activate and deactivate the MP. (Make the state deactive)
3. Now open the main source view and click on update without changing anything.
4. Now go to MP page and try to activate the processor.

Issue : The message processor doesn't get activated. I also noted that MP is marked as edited without any changes made.






[ESBJAVA-4198] [Tenant][Cluster] JMS Connections are not terminated when Forwarding MP is disabled Created: 08/Sep/15  Updated: 06/Aug/16

Status: In Progress
Project: WSO2 ESB
Component/s: Message Processors
Affects Version/s: 4.9.0 - RC2
Fix Version/s: None

Type: Bug Priority: Normal
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:

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


Attachments: PNG File Selection_273.png    
Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

Steps to recreate

1. In a clustered environment log into a tenant and create the following message processor pointing to activemq.

<messageProcessor name="Message Processor_ActiveMQ" class="org.apache.synapse.message.processor.impl.forwarder.ScheduledMessageForwardingProcessor" targetEndpoint="MP_EP" messageStore="ACTIVEMQ_STORE" xmlns="http://ws.apache.org/ns/synapse">
   <parameter name="interval">3000</parameter>
   <parameter name="client.retry.interval">1000</parameter>
   <parameter name="max.delivery.attempts">4</parameter>
   <parameter name="message.processor.deactivate.sequence">DeActivate</parameter>
   <parameter name="is.active">false</parameter>
   <parameter name="max.delivery.drop">Disabled</parameter>
   <parameter name="member.count">1</parameter>
</messageProcessor>

2. Now activate the processor. In the ActiveMQ console 1 connection will be shown.
3. Now deactivate the processor.

Issue : After deactivating the JMS connection, the connection is not terminated by the ESB. Refer the attached screenshot.



 Comments   
Comment by Yasassri Rathnayake [ 08/Sep/15 ]

Even after removing the MPs the connections were still active.





[ESBJAVA-4185] Cannot deactivate Failover Message Forwarding Processor if the Forwarding interval is small Created: 07/Sep/15  Updated: 07/Sep/15

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

Type: Bug Priority: Normal
Reporter: Yasassri Rathnayake Assignee: prabath ariyarathna
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-SNAPSHOT.zip
Java Version : Java 1.8
Setup : Standalone
Browser : Chrome Version 43.0.2357.130 (64-bit) | FireFox 38.0
DB : MYSQL


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

 Description   

Steps to reproduce

1. Create the following message processor.

<messageProcessor
        class="org.apache.synapse.message.processor.impl.failover.FailoverScheduledMessageForwardingProcessor"
        messageStore="JDBC_STORE" name="FailOver_Processor">
        <parameter name="message.processor.deactivate.sequence">DeactivateSEQ</parameter>
        <parameter name="max.delivery.drop">Enabled</parameter>
        <parameter name="max.delivery.attempts">2</parameter>
        <parameter name="client.retry.interval">4000</parameter>
        <parameter name="member.count">1</parameter>
        <parameter name="interval">50</parameter>
        <parameter name="throttle">true</parameter>
        <parameter name="is.active">false</parameter>
        <parameter name="message.target.store.name">Test</parameter>
    </messageProcessor>

Note : I have specified the interval as 50 ms.

2. Activate the processor.
3. Fom the overview page try to deactivate the processor.

Issue : The processor is not getting deactivated some times, as soon as its deactivated its getting reactivated, refer the following logs (Ceck the time stamp of each log).

[2015-09-07 07:44:56,251]  INFO - ScheduledMessageProcessor Successfully re-activated the message processor [FailOver_Processor]
[2015-09-07 07:44:59,344]  INFO - ScheduledMessageProcessor Successfully deactivated the message processor [FailOver_Processor]
[2015-09-07 07:44:59,356]  INFO - FailoverForwardingService Resuming the service of message processor [FailOver_Processor]
[2015-09-07 07:45:06,700]  INFO - ScheduledMessageProcessor Successfully deactivated the message processor [FailOver_Processor]
[2015-09-07 07:45:06,716]  INFO - FailoverForwardingService Resuming the service of message processor [FailOver_Processor]


 Comments   
Comment by prabath ariyarathna [ 07/Sep/15 ]

Hi Yasassri.

Is this happened while FOMP consuming the messages?

Comment by Yasassri Rathnayake [ 07/Sep/15 ]

Yes when consuming messages





[ESBJAVA-4045] Anonymous Endpoint parameter and Pick From Registry parameter has UI issue in target configuration of clone mediator. Created: 11/Aug/15  Updated: 06/Aug/16

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

Type: Bug Priority: Normal
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-BETA-SNAPSHOT
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 a custom proxy using clone mediator including below instructions.
-Proxy name - clonetest
-In insequence,
add a clone mediator and a target
-In Target, add an anonymous endpoint as below
http://localhost:9000/services/MTOMSwASampleService
-Then save the proxy

2. Then if we, go to source view, the code will display as below, without the endpoint name we mentioned in target.

<proxy xmlns="http://ws.apache.org/ns/synapse"
name="testclone"
transports="https,http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<clone id="12" sequential="true">
<target/>
</clone>
</inSequence>
</target>
<description/>
</proxy>

3. Also when we go to design view of the proxy, the anonymous endpoint of the target configuration has dis-selected.

4.The same scenario happens when referring endpoint via registry for the target config: in clone mediator.






[ESBJAVA-4028] In-Memory store loses ns Created: 06/Aug/15  Updated: 06/Aug/16

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

Type: Bug Priority: Normal
Reporter: John Hawkins 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   

I'm using a MessageStore in a proxy flow. I have a message which I send to a SOAP endpoint. When I use a JMS store it works fine - the correct message gets sent to the endpoint.
However, when I swap that JMSStore for an in-memory store the ns in the message is lost and the message fails to get processed at the EP.

I have copied three versions of the message below: [1] is the message as I sent it before I used a messagestore. [2] is the message that works when I send it through a JMS message store [3] is the failing message as is sent when it comes out of the In-Memory. I'm assuming that the message is serialised in and out of the message store and this is probably where the problem is ?

[1] ORIGINAL MESSAGE
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:cof="http://coffee.suppliers.com/">
<soapenv:Header/>
<soapenv:Body>
<cof:orderSupplies>
<shopName>mylovelyshop</shopName>
<supplyType>morecoffee !!</supplyType>
<quantity>3</quantity>
</cof:orderSupplies>
</soapenv:Body>
</soapenv:Envelope>

[2] WORKING JMS_MESSAGE_STORE MESSAGE
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<cof:orderSupplies xmlns:cof="http://coffee.suppliers.com/">
<shopName>mylovelyshop</shopName>
<supplyType>morecoffee !!</supplyType>
<quantity>3</quantity>
</cof:orderSupplies>
</soapenv:Body>
</soapenv:Envelope>

[3] FAILING IN-MEMORY MESSAGE
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<orderSupplies>
<shopName>mylovelyshop</shopName>
<supplyType>morecoffee !!</supplyType>
<quantity>3</quantity>
</orderSupplies>
</soapenv:Body>
</soapenv:Envelope>






[ESBJAVA-4010] SAMLEntitlementCallbackHandler does not properly return user when SAML created by X.509 authentication Created: 04/Aug/15  Updated: 06/Aug/16

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

Type: Bug Priority: Normal
Reporter: Gregory Streetman Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: 1 day
Time Spent: Not Specified
Original Estimate: 1 day

Severity: Major
Estimated Complexity: Novice
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   

When you get a SAML token using the wso2carbon-sts service secured with Non-redudiation, the nameId field is populated with the Distinguished Name of the certificate. As a simple example, the name could be CN=admin. More complex examples might be CN=greg.streetnan,OU+EagleTG. This username is then returned by the SAMLEntitlementCallbackMediator, and the XACML PDP is not able to handle the username. It is necessary to pull out the Common name (CN) from the nameId and return that. The solution could be to change the line
return (String) msgContext.getProperty("saml.subject.id");
to
String subject = msgContext.getProperty("saml.subject.id");
if (subject.indexOf("CN=" >=0) {
subject = subject.substring(subject.indexOf("CN=") + 3);
if (subject.indexOf(",") > 0)

{ subject = subject.substring(0, subject.indexOf(",") -1) }

}
return subject;






[ESBJAVA-3668] Issue Processing JSON with Embedded XML Created: 04/May/15  Updated: 25/Jul/15

Status: Open
Project: WSO2 ESB
Component/s: Logging and Tracing
Affects Version/s: 4.9.0 - M7
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Chanaka Fernando 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   

SUMMARY
=======
I need to convert a JSON payload containing embedded XHTML to XML.

I can get this to work, but addding a <log> mediator to the sequence causes the output to be incorrect.

I want to know if there is a recommended and better way to handle this situation, or what can be done to improve the reliability of my solution.

DESCRIPTION
===========
A simplified example of the source payload is:
{
"type":"article",
"revision":"revision1",
"id":"id1",
"wordCount": "33",
"body":

{"text":"<!DOCTYPE html><html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"><head><meta charset=\"UTF-8\"/><title>Some Text</title></head><body><p><a href=\"http://www.example.com\" title=\"Example Company\">Example Company Ltd.</a>said it will report earnings late Friday. The stock slumped.</p></body></html>"}

,
"tags":

{"tag1": "tag1_value"}

}

An expected result is:

<xml>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8"/>
<title>Some Text</title>
</head>
<body>
<p>
<a href="http://www.example.com" title="Example Company">Example Company Ltd.</a>said it will report earnings late Friday. The stock slumped.</p>
</body>
</html>
</xml>

I have been able to get this to work by using a custom mediator:
o that converts the embedded XML string to an OMElement
o and attaches it as a child of jsonObject in the built message
and then using an XSLT mediator to generate the XML.

The results look like:
$ curl -H 'Content-Type: application/json' -H 'Accept: application/xml' -d @payload.json http://localhost:8280/services/ExampleProxy.ExampleProxyHttpEndpoint

<xml>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8"/>
<title>Some Text</title>
</head>
<body>
<html xml:lang="en" lang="en">
<head>
<meta charset="UTF-8"/>
<title>Some Text</title>
</head>
<body>
<p>
<a href="http://www.example.com" title="Example Company">Example Company Ltd.</a>said it will report earnings late Friday. The stock slumped.</p>
</body>
</html>
</body>
</html>
</xml>

However, if I make a single change to the sequence:
$ diff ExampleProxy.xml ExampleProxy2.xml
3c3
< name="ExampleProxy"

> name="ExampleProxy2"
13a14
> <log level="full"/>

The output becomes:
$ curl -H 'Content-Type: application/json' -H 'Accept: application/xml' -d @payload.json http://localhost:8280/services/ExampleProxy2.ExampleProxy2HttpEndpoint
<xml>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8"/>
<title>Some Text</title>
</head>
<body/>
</html>
</xml>

i.e., it is missing the html body content.






[ESBJAVA-3633] No user value in rampart config error , when implementing Scatter-Gather EIP Created: 01/Apr/15  Updated: 06/Aug/16

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

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

Windows 8.1 , Latest versions of AS and DSS


Attachments: File Pepkor_Integration.7z    
Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Comments   
Comment by Vernon Osborne [ 01/Apr/15 ]

Steps to reproduce :
Create MySql DB with scripts
Upload BE Services to DSS(offset = 2) + AS(offset = 1)
Upload ESB Product Search CarbonApp
Apply UT scenario 1 , with admin , admin.
Test in soap.

Error message :
TID: [0] [ESB] [2015-04-01 11:42:17,372] WARN

{org.apache.synapse.FaultHandler} - ERROR_DETAIL : org.apache.synapse.SynapseException: Unexpected error during sending message out : : : : Caused by: org.apache.axis2.AxisFault: No user value in the rampart configuration policy at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:76) 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.send(AxisEngine.java:426) 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) ... 12 more Caused by: org.apache.rampart.RampartException: No user value in the rampart configuration policy at org.apache.rampart.builder.BindingBuilder.addUsernameToken(BindingBuilder.java:212) 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:65) ... 21 more {org.apache.synapse.FaultHandler}
Comment by Vernon Osborne [ 01/Apr/15 ]

Also see http://stackoverflow.com/questions/29387898/how-to-persist-rampart-data-when-service-chaining-in-wso2-esb





[ESBJAVA-3699] support dynamic xpath expression generation in ESB Created: 19/May/15  Updated: 06/Aug/16

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

Type: New Feature Priority: Normal
Reporter: Rajith Vitharana 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   

Current ESB doesn't support dynamic xpath expression generation.
Requirement is to generate the xpath expression at runtime

example would be as follows

<property name="sampleCode4"
expression="//sfobject[en_US='$ctx:sample']/externalCode/text()"/>



 Comments   
Comment by Kesavan Yogarajah [ 21/Mar/16 ]

We can dynamically evaluate the xpath expression as follows. It worked with ESB 4.9.0.

curl -X POST http://localhost:8280/services/test -H "Content-Type:application/json" -d '

{ "param":"elt3" }

'

<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="test"
transports="http,https"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<property name="param" expression="json-eval($.param)"/>
<payloadFactory media-type="xml">
<format>
<urn:elts xmlns:urn="wso2.esb.test">
<urn:elt1>a</urn:elt1>
<urn:elt2>b</urn:elt2>
<urn:elt3>c</urn:elt3>
</urn:elts>
</format>
<args/>
</payloadFactory>
<log level="custom">
<property xmlns:urn="wso2.esb.test"
name="paramValue"
expression="evaluate(fn:concat("//urn:",get-property('param')))"/>
</log>
<respond/>
</inSequence>
<outSequence>
<log/>
<send/>
</outSequence>
</target>
<description/>
</proxy>





[ESBJAVA-3631] Connection timeout duration is not serializing correctly in the source view when it has a value like $timeDuration instead of an integer Created: 31/Mar/15  Updated: 20/Jul/15

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

Type: Bug Priority: Normal
Reporter: Sohani Weerasinghe Assignee: Senduran Balasubramaniyam
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 creating an Address Endpoint Template if we define a parameter as $timeDuration and if we are going to use that value for the duration in Connection Timeout it is not displaying properly.

The source view will look like

<template xmlns="http://ws.apache.org/ns/synapse" name="testTemplate">
<axis2ns12:parameter xmlns:axis2ns12="http://ws.apache.org/ns/synapse" name="timeDuration"></axis2ns12:parameter>
<endpoint name="$name">
<address uri="$uri">
<suspendOnFailure>
<progressionFactor>1.0</progressionFactor>
</suspendOnFailure>
<markForSuspension>
<retriesBeforeSuspension>0</retriesBeforeSuspension>
<retryDelay>0</retryDelay>
</markForSuspension>
<timeout>
<duration>30000</duration>
<responseAction>discard</responseAction>
</timeout>
</address>
</endpoint>
</template>

The duration tag should be <duration>$timeDuration</duration>

If we check in the file system, the source is getting serialized properly and the main source view also updates properly but the source view of the Address Endpoint Template is not getting updated






[ESBJAVA-3693] ClassCastException when combining inline HeaderMediator with WS-Security Created: 15/May/15  Updated: 25/Jul/15

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

Type: Bug Priority: Normal
Reporter: Stijn Arnauts Assignee: madhuranga bandara
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Zip Archive BugTestCase.zip    
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   

Adding a custom inline SOAP header with the HeaderMediator results in the following exception when the response is send, whenever WS-Security is enabled:

[2015-05-15 11:28:36,390] ERROR - Axis2Sender Accept-Encoding:gzip,deflate,Connection:Keep-Alive,Content-Length:2798,Content-Type:text/xml;charset=UTF-8,Host:localhost.localdomain:8280,SOAPAction:"urn:mediate",User-Agent:Apache-HttpClient/4.1.1 (java 1.5),<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><test>TEST</test></soapenv:Header><soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="id-48"></soapenv:Body></soapenv:Envelope> Unexpected error sending message back
org.apache.axis2.AxisFault: Error in extracting message properties
	at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:76)
	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.send(AxisEngine.java:426)
	at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:163)
	at org.apache.synapse.mediators.builtin.RespondMediator.mediate(RespondMediator.java:23)
	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:745)
Caused by: org.apache.rampart.RampartException: Error in extracting message properties
	at org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:414)
	at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:61)
	at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:65)
	... 17 more
Caused by: org.apache.ws.security.WSSecurityException: Error in converting SOAP Envelope to Document; nested exception is: 
	java.lang.ClassCastException: org.apache.axiom.om.impl.llom.OMElementImpl cannot be cast to org.apache.axiom.soap.SOAPHeaderBlock
	at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:149)
	at org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:268)
	... 19 more
Caused by: java.lang.ClassCastException: org.apache.axiom.om.impl.llom.OMElementImpl cannot be cast to org.apache.axiom.soap.SOAPHeaderBlock
	at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:99)
	... 20 more

TESTCASE: A testcase is included as an attachment. To run this testcase, first deploy the provided Proxy and secure it using scenario 2 with the default carbon truststore. Next, open the provided SoapUI project and point the security to the same keystore file. Finally, call the proxy and observe that the server does not respond. In the logs, you will see that the exception described above occured.

WORKAROUND: The exception doesn't occur for literal headers, only for inline headers. So as a temporary workaround, you can avoid the error by changing:

<header scope="default" description="AddHeader">
  <test xmlns="https://mynamespace.com">TEST</test>
</header>

to:

<header xmlns:tst="https://mynamespace.com" name="tst:test" scope="default" value="TEST"/>

If you need a more complex header than the literal header demonstrated above, you can use the EnrichMediator to add additional child elements without triggering the bug.






[ESBJAVA-3605] NullPointerException when mediation data publisher configuration is changed without server restart Created: 12/Mar/15  Updated: 25/Jul/15

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

Type: Bug Priority: Normal
Reporter: Dumidu Handakumbura Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: ESB
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

JDK 1.7, Ubuntu 13.10, MySQL, BAM 2.5.0


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

 Description   

If Mediation Data Publisher Configuration is changed(nickname, adding properties) following error is observed on server. Stats are not published to BAM. Please not that if the esb is restarted after the changes the error is not observed.

to reproduce,
1) fill mediation data publisher configuration and publish proxy stats to bam
2) change mediation data publisher configuration(add property)
3) increment stream version
4) invoke proxy service

ERROR - AsyncDataPublisher
java.lang.NullPointerException
at org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$DataPublishWorker.run(AsyncDataPublisher.java:700)
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:744)
[2015-03-09 16:53:03,310] ERROR - AsyncDataPublisher Not Supported stream definition type
[2015-03-09 16:53:03,310] ERROR - AsyncDataPublisher
java.lang.NullPointerException
at org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$DataPublishWorker.run(AsyncDataPublisher.java:700)
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:744)






[ESBJAVA-4121] I am unable to access properties set in my Proxy service from the fault sequence in WSO2 ESB Created: 26/Aug/15  Updated: 06/Aug/16

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

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

Windows 7


Attachments: XML File ProxyAndSequence.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   

I have set some functions in my proxy service but whenever I try to access those in the fault sequence it returns null. I am trying to set a logger in my service I need the details of the proxies and need to send the error to a queue from which I will have to send it to a Cloud server.

Attached is my Proxy service and sequences.






[ESBJAVA-4110] Listed cApp endpoint navigating to editable page without warning. Created: 25/Aug/15  Updated: 06/Aug/16

Status: Open
Project: WSO2 ESB
Component/s: Carbon Applications
Affects Version/s: 4.9.0 - RC1
Fix Version/s: None

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

ESB 490
devStudio 380


Severity: Minor
Estimated Complexity: Moderate

 Description   

Steps:
-> Create Endpoint artifact from devStudio
-> Deploy a CAR into ESB
-> Goto List Carbon Applications
-> Click on App and click on EP artifact name
it is directly navigating to edit page (can be to list page) without warning popup (can be given warning like other place).






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

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

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

Windows 7 32 bit.


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

 Description   

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



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

Also getting this error:

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




[ESBJAVA-4068] Unable to delete faulty service Created: 19/Aug/15  Updated: 06/Aug/16

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

Type: Bug Priority: Normal
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:

Pack : wso2esb-4.9.0-RC1.zip
Java Version : Java 1.8
Setup : Standalone
Browser : Chrome Version 43.0.2357.130 (64-bit) | FireFox 38.0
DB : H2


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

 Description   

Steps to reproduce

1. Install HL7 features and enable all the senders/receivers/formatters/builders.
2. Enable VFS as well.
3. Now create the folowing proxy service.

<proxy name="HL7ToFileSystem2" startOnLoad="true" trace="disable" transports="https http hl7">
        <description/>
        <target>
            <inSequence>
                <log level="full"/>
                <property name="HL7_RESULT_MODE" scope="axis2" value="ACK"/>
                <property name="OUT_ONLY" value="true"/>
                <send>
                    <endpoint>
                        <address uri="vfs:file:///tmp/out"/>
                    </endpoint>
                </send>
            </inSequence>
        </target>
    </proxy>

4. A faulty service will be created with the following WARNs

[2015-08-19 09:04:42,343]  INFO - ProxyService Building Axis service for Proxy service : HL7ToFileSystem2
[2015-08-19 09:04:42,344]  INFO - ProxyService Adding service HL7ToFileSystem2 to the Axis2 configuration
[2015-08-19 09:04:42,420]  INFO - DeploymentInterceptor Deploying Axis2 service: HL7ToFileSystem2 {super-tenant}
[2015-08-19 09:04:42,420]  WARN - HL7TransportListener Unable to configure the service HL7ToFileSystem2 for the HL7 transport: Service doesn't have configuration information for transport hl7. This service is being marked as faulty and will not be available over the HL7 transport.
[2015-08-19 09:04:42,420]  WARN - HL7TransportListener Disabling the hl7 transport for the service HL7ToFileSystem2, because it is not configured properly for the service
[2015-08-19 09:04:42,421]  WARN - PollTableEntry transport.vfs.FileURI parameter is missing in the proxy service configuration
[2015-08-19 09:04:42,421]  WARN - VFSTransportListener Unable to configure the service HL7ToFileSystem2 for the VFS transport: Service doesn't have configuration information for transport vfs. This service is being marked as faulty and will not be available over the VFS transport.
[2015-08-19 09:04:42,421]  WARN - VFSTransportListener Disabling the vfs transport for the service HL7ToFileSystem2, because it is not configured properly for the service
[2015-08-19 09:04:42,421]  INFO - ProxyService Successfully created the Axis2 service for Proxy service : HL7ToFileSystem2

5. Now try to delete the faulty service.

Issue : Unable to delete the created service from the management console. Only workaround is to delete the service from the file system.






[ESBJAVA-4076] [File Inbound] Exception thrown when large files are moved after processing Created: 20/Aug/15  Updated: 06/Aug/16

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

Type: Bug Priority: Normal
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:

Pack : wso2esb-4.9.0-RC1.zip (Pre-RC)
Java Version : Java 1.8
Setup : Standalone
Browser : Chrome Version 43.0.2357.130 (64-bit) | FireFox 38.0
DB : H2


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

 Description   

Steps to reproduce

1. Create the following Inbound Endpoint.

<inboundEndpoint name="FileInBound" onError="fault" protocol="file"
        sequence="FileIN_SEQ" suspend="false">
        <parameters>
            <parameter name="interval">5</parameter>
            <parameter name="transport.vfs.ActionAfterErrors">DELETE</parameter>
            <parameter name="coordination">true</parameter>
            <parameter name="transport.vfs.ContentType">application/xml</parameter>
            <parameter name="transport.vfs.LockReleaseSameNode">false</parameter>
            <parameter name="transport.vfs.ActionAfterFailure">DELETE</parameter>
            <parameter name="transport.vfs.AutoLockRelease">false</parameter>
            <parameter name="transport.vfs.MaxRetryCount">3</parameter>
            <parameter name="transport.vfs.CreateFolder">true</parameter>
            <parameter name="sequential">true</parameter>
            <parameter name="transport.vfs.ActionAfterProcess">MOVE</parameter>
            <parameter name="transport.vfs.FileURI">ftp://ftpusr:ftpusr@192.168.xx.xx/VFS/IN</parameter>
            <parameter name="transport.vfs.DistributedLock">false</parameter>
            <parameter name="transport.vfs.Streaming">true</parameter>
            <parameter name="transport.vfs.MoveAfterProcess">/home/yasassri/Desktop/QA_TESTING/ESB_4.9/HL7/vfs/out</parameter>
            <parameter name="transport.vfs.Locking">enable</parameter>
            <parameter name="transport.vfs.FileSortAscending">true</parameter>
            <parameter name="transport.vfs.FileSortAttribute">NONE</parameter>
            <parameter name="transport.vfs.Build">false</parameter>
        </parameters>
    </inboundEndpoint>

2. Add a large file to the FTP IN directory. (I added 35mb file).

Issue : Following exception is thrown after processing the file. The file successfully moves after processing.

[2015-08-20 09:14:07,922] ERROR - FilePollingConsumer Error moving file : ftp://ftpuser:ftpuser@192.168.18.77/VFS/IN/testxml.xml to /home/yasassri/Desktop/QA_TESTING/ESB_4.9/HL7/vfs/out
org.apache.commons.vfs2.FileSystemException: Could not delete "ftp://ftpuser:***@192.168.18.77/VFS/IN/testxml.xml".
	at org.apache.commons.vfs2.provider.AbstractFileObject.deleteSelf(AbstractFileObject.java:849)
	at org.apache.commons.vfs2.provider.AbstractFileObject.moveTo(AbstractFileObject.java:1139)
	at org.wso2.carbon.inbound.endpoint.protocol.file.FilePollingConsumer.moveOrDeleteAfterProcessing(FilePollingConsumer.java:838)
	at org.wso2.carbon.inbound.endpoint.protocol.file.FilePollingConsumer.directoryHandler(FilePollingConsumer.java:564)
	at org.wso2.carbon.inbound.endpoint.protocol.file.FilePollingConsumer.poll(FilePollingConsumer.java:214)
	at org.wso2.carbon.inbound.endpoint.protocol.file.FilePollingConsumer.execute(FilePollingConsumer.java:134)
	at org.wso2.carbon.inbound.endpoint.protocol.file.FileTask.taskExecute(FileTask.java:45)
	at org.wso2.carbon.inbound.endpoint.common.InboundTask.execute(InboundTask.java:50)
	at org.wso2.carbon.mediation.ntask.NTaskAdapter.execute(NTaskAdapter.java:81)
	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)
Caused by: org.apache.commons.vfs2.FileSystemException: Could not delete FTP file "ftp://ftpuser:***@192.168.18.77/VFS/IN/testxml.xml".
	at org.apache.commons.vfs2.provider.ftp.FtpFileObject.doDelete(FtpFileObject.java:496)
	at org.apache.commons.vfs2.provider.AbstractFileObject.deleteSelf(AbstractFileObject.java:838)
	... 15 more






[ESBJAVA-3720] Carbon Applications folders not cleaned up correctly Created: 27/May/15  Updated: 09/Jul/15

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

Type: Bug Priority: Normal
Reporter: Loic Juillerat Assignee: Nadeeshaan Gunasinghe
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows x64


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

 Description   

The cleanup of Carbon Applications in the work directory is done during shutdown. If the server is crashing, the cleanup is not done and after startup, all existing folders are not removed until a new clean shutdown will be performed.

The cleanup job is so not done at the right place (better at startup).



 Comments   
Comment by Loic Juillerat [ 28/May/15 ]

Deployment of corrupted CAPP (unresolved custom mediators, synthax errors in XSLT local entries, ...) create duplicate folders into work





[ESBJAVA-3713] custom LoadBalanceMembershipHandler causes Caused by: java.lang.ClassNotFoundException: org.apache.synapse.core.LoadBalanceMembershipHandler Created: 25/May/15  Updated: 06/Aug/16

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

Type: Bug Priority: Normal
Reporter: Jose Luis Pedrosa 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 all
if you implement a synapse custom LoadBalanceMembershipHandler,
causes



 Comments   
Comment by Jose Luis Pedrosa [ 25/May/15 ]

Sorry, I hit enter by accident,

This is the proper description:

if you implement a synapse custom LoadBalanceMembershipHandler,
causes java.lang.ClassNotFoundException: org.apache.synapse.core.LoadBalanceMembershipHandler when used in dynamicLoadbalance

<syn:endpoint  xmlns:syn="http://ws.apache.org/ns/synapse" syn:name="LocalHostDynamicEndpoint">
   <syn:dynamicLoadbalance  syn:failover="true" syn:algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin">
		 <syn:membershipHandler class=".....HttpLoadBalanceMembershipHandler" >
			<syn:property name="CheckURL" value="/check.txt"/>
			<syn:property name="HttpPort" value="80"/>
			<syn:property name="EndPoints" value="127.0.0.1,127.0.0.1"/>
		</syn:membershipHandler>
	</syn:dynamicLoadbalance>
</syn:endpoint> 

I created a class HttpLoadBalanceMembershipHandler that implements: LoadBalanceMembershipHandler, then no matter where I drop my jar,
the HttpLoadBalanceMembershipHandler class is read correctly (I'm positive about that because if I put a incorrect class name, then it's not loaded and I see the incorrect class name in the error).

This is the stack trace:

java.lang.NoClassDefFoundError: org/apache/synapse/core/LoadBalanceMembershipHandler
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at org.wso2.carbon.server.ChildFirstURLClassLoader.loadClass(ChildFirstURLClassLoader.java:62)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at org.eclipse.osgi.internal.loader.SystemBundleLoader.findLocalClass(SystemBundleLoader.java:117)
        at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:471)
        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)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:190)
        at org.apache.synapse.config.xml.endpoints.DynamicLoadbalanceEndpointFactory.createEndpoint(DynamicLoadbalanceEndpointFactory.java:136)
        at org.apache.synapse.config.xml.endpoints.EndpointFactory.createEndpointWithName(EndpointFactory.java:143)
        at org.apache.synapse.config.xml.endpoints.EndpointFactory.getEndpointFromElement(EndpointFactory.java:80)
        at org.apache.synapse.deployers.EndpointDeployer.deploySynapseArtifact(EndpointDeployer.java:53)
        at org.wso2.carbon.endpoint.EndpointDeployer.deploySynapseArtifact(EndpointDeployer.java:36)
        at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:192)
        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:79)
        at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)
        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: java.lang.ClassNotFoundException: org.apache.synapse.core.LoadBalanceMembershipHandler

Obviously the class org.apache.synapse.core.LoadBalanceMembershipHandler is in the jar synapse-core_2.1.2.wso2v4.jar, provided by wso2.

By the way there's something strange in synapse sources, I had to put two two namespaces to satisfy this (DynamicLoadbalanceEndpointFactory.java):
String clazz = eventHandler.getAttributeValue(new QName(XMLConfigConstants.NULL_NAMESPACE, "class")).trim();

Anyway, As i mentioned before, I'm sure my class is read correctly from the XML and loaded because if I put a non existing class I get a completely different error, like:

<?xml version="1.0" encoding="UTF-8"?>
<syn:endpoint  xmlns:syn="http://ws.apache.org/ns/synapse" syn:name="LocalHostDynamicEndpoint">
   <syn:dynamicLoadbalance  syn:failover="true" syn:algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin">
		 <syn:membershipHandler class="this.name.space.does.not.exist.MyClass" >
			<syn:property name="CheckURL" value="/check.txt"/>
			<syn:property name="HttpPort" value="80"/>
			<syn:property name="EndPoints" value="127.0.0.1,127.0.0.1"/>
		</syn:membershipHandler>
	</syn:dynamicLoadbalance>
</syn:endpoint> 

[2015-05-25 14:46:15,309] ERROR - DynamicLoadbalanceEndpointFactory Could not instantiate LoadBalanceMembershipHandler implementation this.name.space.does.not.exist.MyClass
java.lang.ClassNotFoundException: this.name.space.does.not.exist.MyClass
        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)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:190)
        at org.apache.synapse.config.xml.endpoints.DynamicLoadbalanceEndpointFactory.createEndpoint(DynamicLoadbalanceEndpointFactory.java:136)

Thanks in advance.

JL





[ESBJAVA-4795] ThrottleMediator - error in dynamic reload of throttling policy Created: 26/Jul/16  Updated: 26/Jul/16

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

Type: Bug Priority: Normal
Reporter: Michal Horváth Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: ESB
Remaining Estimate: 4 hours
Time Spent: Not Specified
Original Estimate: 4 hours

Attachments: Text File wso2_bad.java     Text File wso2_repaired.java    
Severity: Major
Estimated Complexity: Moderate
Test cases added: No

 Description   

I used ThrottleMediator with dynamic policy. I was a problem, that policy was not reload. I identified problem in ThrottleMediator.java file in method: private void doInitializeThrottleDynamicPolicy(MessageContext synCtx, SynapseLog synLog)

There is a this original section of code in this method:

boolean reCreate = false;
// if the key refers to a dynamic resource
if (entry.isDynamic()) {
if ((!entry.isCached() || entry.isExpired()) && version != entry.getVersion())

{ reCreate = true; version = entry.getVersion(); }

}
//we ignore the static initialization case
if (reCreate || throttle == null) {
Object entryValue = synCtx.getEntry(policyKey);
if (entryValue == null)

{ handleException( "Null throttling policy returned by Entry : " + policyKey, synCtx); }

else {
if (!(entryValue instanceof OMElement))

{ handleException("Policy returned from key : " + policyKey + " is not an OMElement", synCtx); }

else

{ ... }

Problem is in this IF section:
if (entry.isDynamic()) {
if ((!entry.isCached() || entry.isExpired()) && version != entry.getVersion()) { ... }
-> this part of IF: version != entry.getVersion() is for dynamic reloading always FALSE, so reloading of throttling policy never come. Reason is, that reload of policy is made by this part of code:
Object entryValue = synCtx.getEntry(policyKey);
-> but this line of code is never call after first call because parameter reCreate is always FALSE. This line is called only first time, because parameter throttle is NULL, but after first call is never called, so policy is never reload after first time.

I changed code to this:
boolean reCreate = false;
// if the key refers to a dynamic resource
if (entry.isDynamic()) {

if ((!entry.isCached() || entry.isExpired())) { // need reload policy file after expiry or if not cached reCreate = true; }
}
// we ignore the static initialization case
if (reCreate) {
Object entryValue = synCtx.getEntry(policyKey); // policy reload
if (entryValue == null) { handleException("Null throttling policy returned by Entry : " + policyKey, synCtx); } else if (version != entry.getVersion()) { // have new version of policy, recreate throttle
version = entry.getVersion();

if (!(entryValue instanceof OMElement)) { handleException("Policy returned from key : " + policyKey + " is not an OMElement", synCtx); } else { ... }

and now dynamic policy reload work correctly. Can you test and repair ThrottleMediator class? Thanks.



 Comments   
Comment by Michal Horváth [ 26/Jul/16 ]

ThrottleMediator.java, method doInitializeDynamicPolicy()
wso2_bad.java -> bad part of method
wso2_repaired.java -> my repair to part of method

Comment by Michal Horváth [ 26/Jul/16 ]

I attached parts of code as java files because in comment it is not readable.





[ESBJAVA-4814] Unable to specify regex flags Created: 03/Aug/16  Updated: 03/Aug/16

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

Type: Task Priority: Normal
Reporter: Uditha Kumara 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
Test cases added: No

 Description   

In ESB mediators, unable to specify regex modifiers as [1].

[1] http://www.w3schools.com/jsref/jsref_obj_regexp.asp






[ESBJAVA-4827] Introduce NONE option for ActionAfterProcess and ActionAfterFailure on file Inbound Created: 06/Aug/16  Updated: 08/Aug/16

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

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

N/A


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

 Description   

Currently, we have only DELETE and MOVE options for below[1] vfs properties on Inbound Endpoint. Better to implement NONE option as well. This is already implemented for Synapse VFS.
[1]
transport.vfs.ActionAfterProcess
transport.vfs.ActionAfterFailure



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

Reducing the priority since there is a clear workaround to achieve the same result with VFS transport.





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

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

Type: Improvement Priority: Normal
Reporter: Supun Perera Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ESB 5.0


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

 Description   

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






[ESBJAVA-5203] API URI parameters are appended to endpoint URL when the HTTP_METHOD is not set in the HTTP endpoint Created: 14/Jul/17  Updated: 14/Jul/17

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

Type: Bug Priority: Normal
Reporter: Dileepa Dissanayake 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   

I have an API with the below configuration.

<api context="/context" name="SimpleESBAPI">
        <resource methods="GET" uri-template="/{world}">
            <inSequence>
                <log level="full"/>
                <send>
                    <endpoint>
                        <http uri-template="http://10.100.7.37:8080/hello"/>
                    </endpoint>
                </send>
            </inSequence>
            <outSequence>
                <send/>
            </outSequence>
        </resource>
    </api>

So I'm trying to invoke this api from the url

curl http://192.168.54.152:8282/context/mydream

I'm not specifying any HTTP method in the endpoint and I used following back-end service URL in the API configuration.

http://10.100.7.37:8080/hello

When the above request is sent, it should match the context and the URL template and pass the message on to the backend without appending the value we pass (i.e.; myworld) as the URL template.
So when we look through wire logs, the backend URL endpoint invoked would be something like http://10.100.7.37:8080/hello/myworld. (note that the myworld text is appended to the end of the URL)

This behavior is incorrect. If the endpoint does not have the HTTP method specified, it should set the HTTP method to whatever is sent in from the request.






[ESBJAVA-5062] Add Amazon Linux AMI to tested operative systems Created: 27/Mar/17  Updated: 27/Mar/17

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

Type: Wish Priority: Normal
Reporter: Miguel Lorono 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   

I would like to know if Amazon Linux AMI is tested with following WSO2 Products:

  • WSO2 ESB 5.0.0
  • WSO2 ESB-Analitics 5.0.0 (DAS 3.1.0)

Thanks.






[ESBJAVA-5091] Empty Optional Objects on Datamapper Created: 02/May/17  Updated: 02/May/17

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

Type: Improvement 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   

Data Mapper is not removing the optional elements from the output mapping. Suppose we are doing xml to json transformation using Data Mapper.
Consider the below input and the output.

scenario 1

input

<input>
<id>1</id>
<repeatingValues>
<value>1</value>
</repeatingValues>
<repeatingValues>
<value>3</value>
</repeatingValues>
<singleValue>
<value>4</value>
</singleValue>
</input>

output

{
"id": "1",
"repeatingValues": [

{ "value": "1" }

,

{ "value": "3" }

],
"singleValue":

{ "value": "4" }

}

scenario 2

input

<input>
<id>2</id>
</input>

output

{
"id": "2",
"repeatingValues": [],
"singleValue": {}
}

According to the above, the empty elements are coming in the scenario 2.






[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-4647] Getting null point exception in the payload factory mediator when using $ctx Created: 02/Jun/16  Updated: 02/Jun/16

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

Type: Bug Priority: Normal
Reporter: Kesavan Yogarajah 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 using $ctx directly in the payload factory mediator if the property is not set, it throws the null point exception [1].This can be reproduced with proxy [2].

[1]
[2016-06-02 11:47:43,471] ERROR - SequenceMediator Runtime error occurred while mediating the message
java.lang.NullPointerException
at org.apache.synapse.mediators.transform.PayloadFactoryMediator.replaceCTX(PayloadFactoryMediator.java:236)
at org.apache.synapse.mediators.transform.PayloadFactoryMediator.regexTransformCTX(PayloadFactoryMediator.java:213)
at org.apache.synapse.mediators.transform.PayloadFactoryMediator.mediate(PayloadFactoryMediator.java:155)
at org.apache.synapse.mediators.transform.PayloadFactoryMediator.mediate(PayloadFactoryMediator.java:104)
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:164)
at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:215)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:398)
at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:145)
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-02 11:47:43,474] INFO - LogMediator To: /services/11test.11testHttpSoap12Endpoint, WSAction: urn:mediate, SOAPAction: urn:mediate, MessageID: urn:uuid:f933dae8-06ed-42a2-b008-8b829ebbb65e, Direction: request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 0, ERROR_MESSAGE = Runtime error occurred while mediating the message, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body/></soapenv:Envelope>

[2]
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="11test"
transports="http,https"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<property name="param1" value="111111"/>
<property name="param2" value="222222"/>
<payloadFactory media-type="xml">
<format>
<urn:elts xmlns:urn="wso2.esb.test">
<urn:elt1>$1</urn:elt1>
<urn:elt2>$ctx:param2</urn:elt2>
<urn:elt3>$2</urn:elt3>
<urn:elt4>$ctx:param4</urn:elt4>
</urn:elts>
</format>
<args>
<arg evaluator="xml" expression="get-property('param1')"/>
<arg evaluator="xml" expression="get-property('param3')"/>
</args>
</payloadFactory>
<log level="custom"/>
<respond/>
</inSequence>
<outSequence>
<log/>
<send/>
</outSequence>
</target>
<description/>
</proxy>






[ESBJAVA-4426] Observed errors when creating a proxy service with ForEach mediator and the UI becomes unusable Created: 17/Feb/16  Updated: 06/Aug/16

Status: Open
Project: WSO2 ESB
Component/s: Proxy Services Management
Affects Version/s: 5.0.0-M2, 5.0.0-M3
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


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   

Observed the following error when creating a proxy service with ForEach mediator with namespaces and the UI became unusable after that

Xpath expression tried: //ax2445:myValue
Namespaces
xmlns:ax2445="http://sample.wso2.org/xsd
xmlns:ns="http://sample.wso2.org

[2016-02-17 14:57:27,909] ERROR - RPCMessageReceiver com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ':' (code 58) expected '='
 at [row,col {unknown-source}]: [1,74]
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	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.proxyadmin.stub.ProxyServiceAdminStub.addProxy(ProxyServiceAdminStub.java:1272)
	at org.wso2.carbon.proxyadmin.ui.client.ProxyServiceAdminClient.addProxy(ProxyServiceAdminClient.java:102)
	at org.apache.jsp.proxyservices.submit_jsp._jspService(submit_jsp.java:125)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
	at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)
	at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682)
	at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
	at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
	at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
	at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
	at org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_005finsertAttribute_005f7(template_jsp.java:640)
	at org.apache.jsp.admin.layout.template_jsp._jspService(template_jsp.java:356)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.forward(ContextPathServletAdaptor.java:362)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
	at org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ':' (code 58) expected '='
 at [row,col {unknown-source}]: [1,74]
	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:296)
	at org.apache.axiom.om.impl.llom.OMSerializableImpl.build(OMSerializableImpl.java:78)
	at org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:722)
	at org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:700)
	at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:105)
	at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:296)
	at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:212)
	at org.wso2.carbon.proxyadmin.ProxyData.retrieveOM(ProxyData.java:358)
	at org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin.addProxy(ProxyServiceAdmin.java:687)
	... 127 more
Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ':' (code 58) expected '='
 at [row,col {unknown-source}]: [1,74]
	at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:639)
	at com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:3030)
	at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2961)
	at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2837)
	at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1072)
	at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:681)
	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:214)
	... 135 more
[2016-02-17 14:57:27,915] ERROR - ProxyServiceAdminClient com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ':' (code 58) expected '='
 at [row,col {unknown-source}]: [1,74]
org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminProxyAdminException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ':' (code 58) expected '='
 at [row,col {unknown-source}]: [1,74]
	at org.wso2.carbon.proxyadmin.ui.client.ProxyServiceAdminClient.addProxy(ProxyServiceAdminClient.java:105)
	at org.apache.jsp.proxyservices.submit_jsp._jspService(submit_jsp.java:125)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
	at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)
	at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682)
	at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
	at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
	at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
	at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
	at org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_005finsertAttribute_005f7(template_jsp.java:640)
	at org.apache.jsp.admin.layout.template_jsp._jspService(template_jsp.java:356)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.forward(ContextPathServletAdaptor.java:362)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
	at org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
[2016-02-17 14:57:31,826] ERROR - RPCMessageReceiver com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ':' (code 58) expected '='
 at [row,col {unknown-source}]: [1,74]
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	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.proxyadmin.stub.ProxyServiceAdminStub.addProxy(ProxyServiceAdminStub.java:1272)
	at org.wso2.carbon.proxyadmin.ui.client.ProxyServiceAdminClient.addProxy(ProxyServiceAdminClient.java:102)
	at org.apache.jsp.proxyservices.submit_jsp._jspService(submit_jsp.java:125)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
	at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)
	at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682)
	at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
	at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
	at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
	at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
	at org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_005finsertAttribute_005f7(template_jsp.java:640)
	at org.apache.jsp.admin.layout.template_jsp._jspService(template_jsp.java:356)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.forward(ContextPathServletAdaptor.java:362)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
	at org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ':' (code 58) expected '='
 at [row,col {unknown-source}]: [1,74]
	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:296)
	at org.apache.axiom.om.impl.llom.OMSerializableImpl.build(OMSerializableImpl.java:78)
	at org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:722)
	at org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:700)
	at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:105)
	at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:296)
	at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:212)
	at org.wso2.carbon.proxyadmin.ProxyData.retrieveOM(ProxyData.java:358)
	at org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin.addProxy(ProxyServiceAdmin.java:687)
	... 127 more
Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ':' (code 58) expected '='
 at [row,col {unknown-source}]: [1,74]
	at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:639)
	at com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:3030)
	at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2961)
	at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2837)
	at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1072)
	at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:681)
	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:214)
	... 135 more
[2016-02-17 14:57:31,831] ERROR - ProxyServiceAdminClient com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ':' (code 58) expected '='
 at [row,col {unknown-source}]: [1,74]
org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminProxyAdminException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ':' (code 58) expected '='
 at [row,col {unknown-source}]: [1,74]
	at org.wso2.carbon.proxyadmin.ui.client.ProxyServiceAdminClient.addProxy(ProxyServiceAdminClient.java:105)
	at org.apache.jsp.proxyservices.submit_jsp._jspService(submit_jsp.java:125)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
	at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)
	at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682)
	at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
	at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
	at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
	at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
	at org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_005finsertAttribute_005f7(template_jsp.java:640)
	at org.apache.jsp.admin.layout.template_jsp._jspService(template_jsp.java:356)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.forward(ContextPathServletAdaptor.java:362)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
	at org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
[2016-02-17 14:57:58,715] ERROR - ApplicationDispatcher Servlet.service() for servlet bridgeservlet threw exception
java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key Unable to build sequence object from the given sequence information
	at java.util.ResourceBundle.getObject(ResourceBundle.java:450)
	at java.util.ResourceBundle.getString(ResourceBundle.java:407)
	at org.apache.jsp.proxyservices.anonSequenceHandler_jsp._jspService(anonSequenceHandler_jsp.java:193)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
	at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)
	at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682)
	at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
	at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
	at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
	at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
	at org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_005finsertAttribute_005f7(template_jsp.java:640)
	at org.apache.jsp.admin.layout.template_jsp._jspService(template_jsp.java:356)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.forward(ContextPathServletAdaptor.java:362)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
	at org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
[2016-02-17 14:57:58,717] ERROR - ApplicationDispatcher Servlet.service() for servlet bridgeservlet threw exception
java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key Unable to build sequence object from the given sequence information
	at java.util.ResourceBundle.getObject(ResourceBundle.java:450)
	at java.util.ResourceBundle.getString(ResourceBundle.java:407)
	at org.apache.jsp.proxyservices.anonSequenceHandler_jsp._jspService(anonSequenceHandler_jsp.java:193)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
	at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:656)
	at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:98)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
	at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
	at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
	at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
	at org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_005finsertAttribute_005f7(template_jsp.java:640)
	at org.apache.jsp.admin.layout.template_jsp._jspService(template_jsp.java:356)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.forward(ContextPathServletAdaptor.java:362)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
	at org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
[2016-02-17 14:57:58,719] ERROR - JspTilesRequestContext JSPException while including path '/proxyservices/anonSequenceHandler.jsp'. 
javax.servlet.jsp.JspException: ServletException while including page.
	at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:102)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
	at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
	at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
	at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
	at org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_005finsertAttribute_005f7(template_jsp.java:640)
	at org.apache.jsp.admin.layout.template_jsp._jspService(template_jsp.java:356)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.forward(ContextPathServletAdaptor.java:362)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
	at org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.jasper.JasperException: An exception occurred processing JSP page /proxyservices/anonSequenceHandler.jsp at line 112

109:                     seq.build(elem);
110:                 } catch (Exception e) {
111:                     removeCommonSessionAttributes(session);
112:                     CarbonUIMessage.sendCarbonUIMessage(bundle.getString(bundle.getString(
113:                             "unable.to.build.sequence.object.from.the.given.sequence.information")),
114:                             CarbonUIMessage.ERROR, request);
115:                     return;


Stacktrace:
	at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
	at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:656)
	at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:98)
	... 78 more
Caused by: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key Unable to build sequence object from the given sequence information
	at java.util.ResourceBundle.getObject(ResourceBundle.java:450)
	at java.util.ResourceBundle.getString(ResourceBundle.java:407)
	at org.apache.jsp.proxyservices.anonSequenceHandler_jsp._jspService(anonSequenceHandler_jsp.java:193)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	... 100 more
[2016-02-17 14:57:58,722] ERROR - RoleSecurityTagSupport IO Error executing tag: JSPException while including path '/proxyservices/anonSequenceHandler.jsp'. ServletException while including page.
java.io.IOException: JSPException while including path '/proxyservices/anonSequenceHandler.jsp'. ServletException while including page.
	at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:91)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
	at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
	at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
	at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
	at org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_005finsertAttribute_005f7(template_jsp.java:640)
	at org.apache.jsp.admin.layout.template_jsp._jspService(template_jsp.java:356)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.forward(ContextPathServletAdaptor.java:362)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
	at org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
[2016-02-17 14:57:58,724] ERROR - RenderTagSupport Error during rendering
javax.servlet.jsp.JspException: IO Error executing tag: JSPException while including path '/proxyservices/anonSequenceHandler.jsp'. ServletException while including page.
	at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:84)
	at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
	at org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_005finsertAttribute_005f7(template_jsp.java:640)
	at org.apache.jsp.admin.layout.template_jsp._jspService(template_jsp.java:356)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.forward(ContextPathServletAdaptor.java:362)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
	at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
	at org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: JSPException while including path '/proxyservices/anonSequenceHandler.jsp'. ServletException while including page.
	at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:91)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
	at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
	at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
	at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
	... 71 more




 Comments   
Comment by Chathurika De Silva [ 26/Feb/16 ]

This happens when wrong namespaces are included in the for each mediator
Ideally at least the UI should be usable even after a human error





[ESBJAVA-4515] wso2esb dead letter channel example does not work in version 4.9.0 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: Erick Audet 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: Novice
Test cases added: Yes
Affects Docs:
Yes

 Description   

Using a vanilla wso2esb 4.9.0 and trying out the dead letter channel design. It fails! The message that is stored in the queue is the soap fault error received from by endpoint. The example that I am following is: https://docs.wso2.com/display/IntegrationPatterns/Dead+Letter+Channel

Need to change the documentation to have a working as design.

Details and solution: http://stackoverflow.com/questions/36194681/wso2esb-dead-letter-channel-does-not-work-in-version-4-9-0

{no_format}
<proxy xmlns="http://ws.apache.org/ns/synapse" name="Proxy1"
transports="https,http" statistics="disable" trace="disable"
startOnLoad="true">
<target>
<inSequence>
<log level="full" />
</inSequence>
<outSequence>
<log level="full">
<property name="MSG" value="Response...." />
</log>
<send />
</outSequence>
<faultSequence>
<log level="full">
<property name="MSG" value="++++++++++FAULT---------...." />
</log>
<property name="target.endpoint" value="ReportDataTransferServiceEp" />
<store messageStore="ReportMessageStore" />
</faultSequence>
<endpoint>
<address uri="http://localhost:8080/TestSoapESB/webservices/ReportDataTransferService" />
</endpoint>
</target>
<publishWSDL
uri="http://localhost:8080/TestSoapESB/webservices/ReportDataTransferService?wsdl" />
<description></description>{no_format}




[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-4454] NullPointer observed when messages are sent and read by message processor. Created: 29/Feb/16  Updated: 06/Aug/16

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

Type: Bug Priority: Normal
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.0
Cluster : 4 Node cluster


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

 Description   

Following error and NullPointer was observed.

ERROR {org.wso2.carbon.mediation.ntask.NTaskTaskManager} -  Cannot pause task [MSMP_TestProcessor0]. Error: The task server cannot be located for task: MSMP_TestProcessor0 {org.wso2.carbon.mediation.ntask.NTaskTaskManager}
org.wso2.carbon.ntask.common.TaskException: The task server cannot be located for task: MSMP_TestProcessor0
	at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.getMemberIdFromTaskName(ClusteredTaskManager.java:285)
	at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.pauseTask(ClusteredTaskManager.java:163)
	at org.wso2.carbon.mediation.ntask.NTaskTaskManager.pause(NTaskTaskManager.java:197)
	at org.apache.synapse.message.processor.impl.ScheduledMessageProcessor.pauseService(ScheduledMessageProcessor.java:371)
	at org.apache.synapse.message.processor.impl.ScheduledMessageProcessor.deactivate(ScheduledMessageProcessor.java:325)
	at org.apache.synapse.message.processor.impl.forwarder.ForwardingService.deactivateMessageProcessor(ForwardingService.java:730)
	at org.apache.synapse.message.processor.impl.forwarder.ForwardingService.sendThroughReplySeq(ForwardingService.java:638)
	at org.apache.synapse.message.processor.impl.forwarder.ForwardingService.dispatch(ForwardingService.java:521)
	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)
TID: [-1234] [] [2016-02-29 16:24:26,854]  INFO {org.apache.synapse.message.processor.impl.ScheduledMessageProcessor} -  Successfully deactivated the message processor [TestProcessor] {org.apache.synapse.message.processor.impl.ScheduledMessageProcessor}
TID: [-1234] [] [2016-02-29 16:24:26,869] ERROR {org.apache.synapse.message.processor.impl.forwarder.ForwardingService} -  Failed to send the out message. Reply sequence does not Exist. Deactivated the message processor {org.apache.synapse.message.processor.impl.forwarder.ForwardingService}
TID: [-1234] [] [2016-02-29 16:24:26,869]  WARN {org.apache.synapse.message.store.impl.jms.JmsConsumer} -  JMS Session is in an illegal state. Recovering session. {org.apache.synapse.message.store.impl.jms.JmsConsumer}
TID: [-1234] [] [2016-02-29 16:24:26,870] ERROR {org.apache.synapse.message.processor.impl.forwarder.ForwardingService} -  Message processor [TestProcessor] failed to send the message to client {org.apache.synapse.message.processor.impl.forwarder.ForwardingService}
java.lang.NullPointerException
	at org.apache.synapse.message.store.impl.jms.JmsConsumer$CachedMessage.ack(JmsConsumer.java:282)
	at org.apache.synapse.message.store.impl.jms.JmsConsumer.ack(JmsConsumer.java:130)
	at org.apache.synapse.message.processor.impl.forwarder.ForwardingService.dispatch(ForwardingService.java:522)
	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)



 Comments   
Comment by Roussel Jean-michel [ 07/Jul/16 ]

I've had the same NullPointer in org.apache.synapse.message.store.impl.jms.JmsConsumer$CachedMessage.ack(JmsConsumer.java:282) with ESB v5.0.0 Beta2 without cluster config (standalone node) : This NullPointer disapears when I add reply and fault sequences in Scheduled Message Processor configuration





[ESBJAVA-4440] Failed to build sample project. Created: 24/Feb/16  Updated: 06/Aug/16

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

Type: Bug Priority: Normal
Reporter: Yeiniel Suarez Sosa 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
Affects Docs:
Yes

 Description   

If you try to build the example https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk07/products/esb/4.8.1/modules/samples/integration-scenarios/starbucks_sample/BasicAuth-handler using the command `maven clean install` as described at https://docs.wso2.com/display/ESB481/Securing+APIs#SecuringAPIs-BasicAutho it fails because dependencies are missing from the local maven repo. Is not a good idea to add a repo to the pom or improve referenced documentation?






[ESBJAVA-4509] XPath expressions by using variable is giving exception in XSLT mediator. Created: 22/Mar/16  Updated: 08/Jun/16

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

Type: Bug Priority: Normal
Reporter: Sajith Abeywardhana 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   

We must be able to apply XPath expressions (selectors) to the introduced parameter (as that parameter represents a complex XML-Structure) inside of the XSLT mediator.
like this artificial example:
<xsl:value-of select="$var-node//SomeEntity"/> and that does not work and ends in an exception:

[2016-03-17 09:20:54,412] ERROR - XSLTMediator Fatal error occurred in XSLT transformation : net.sf.saxon.trans.XPathException: Required item type of first operand of '/' is node(); supplied value has item type xs:string
[2016-03-17 09:20:54,416] ERROR - XSLTMediator Error performing XSLT transformation using : Value

{name ='null', keyValue ='myxslt'}
; SystemID: ; Line#: 10; Column#: -1
net.sf.saxon.trans.XPathException: Required item type of first operand of '/' is node(); supplied value has item type xs:string
at net.sf.saxon.expr.ItemTypeCheckingFunction.testConformance(ItemTypeCheckingFunction.java:65)
at net.sf.saxon.expr.ItemTypeCheckingFunction.mapItem(ItemTypeCheckingFunction.java:41)
at net.sf.saxon.expr.ItemMappingIterator.next(ItemMappingIterator.java:90)
at net.sf.saxon.expr.ContextMappingIterator.next(ContextMappingIterator.java:52)
at net.sf.saxon.value.SequenceExtent.<init>(SequenceExtent.java:105)
at net.sf.saxon.expr.sort.DocumentOrderIterator.<init>(DocumentOrderIterator.java:31)
at net.sf.saxon.expr.sort.DocumentSorter.iterate(DocumentSorter.java:101)
at net.sf.saxon.expr.SlashExpression.iterate(SlashExpression.java:700)
at net.sf.saxon.expr.sort.DocumentSorter.iterate(DocumentSorter.java:101)
at net.sf.saxon.expr.SlashExpression.iterate(SlashExpression.java:700)
at net.sf.saxon.expr.sort.DocumentSorter.iterate(DocumentSorter.java:101)
at net.sf.saxon.expr.Atomizer.iterate(Atomizer.java:230)
at net.sf.saxon.expr.AtomicSequenceConverter.iterate(AtomicSequenceConverter.java:281)
at net.sf.saxon.functions.StringJoin.evaluateItem(StringJoin.java:90)
at net.sf.saxon.expr.Expression.evaluateAsString(Expression.java:505)
at net.sf.saxon.expr.instruct.SimpleNodeConstructor.processLeavingTail(SimpleNodeConstructor.java:194)
at net.sf.saxon.expr.instruct.ValueOf.processLeavingTail(ValueOf.java:245)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:131)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:301)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:254)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:615)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:131)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:301)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:254)
at net.sf.saxon.expr.instruct.Template.applyLeavingTail(Template.java:212)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:1034)
at net.sf.saxon.Controller.transformDocument(Controller.java:1957)
at net.sf.saxon.Controller.transform(Controller.java:1803)
at org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMediator.java:289)
at org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMediator.java:191)
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:745)
[2016-03-17 09:20:54,424] ERROR - XSLTMediator Unable to perform XSLT transformation using : Value {name ='null', keyValue ='myxslt'}

against source XPath : s11:Body/child::[position()=1] | s12:Body/child::[position()=1] reason : Error performing XSLT transformation using : Value

{name ='null', keyValue ='myxslt'}
org.apache.synapse.SynapseException: Error performing XSLT transformation using : Value {name ='null', keyValue ='myxslt'}

at org.apache.synapse.mediators.AbstractMediator.handleException(AbstractMediator.java:313)
at org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMediator.java:361)
at org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMediator.java:191)
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:745)
Caused by: net.sf.saxon.trans.XPathException: Required item type of first operand of '/' is node(); supplied value has item type xs:string
at net.sf.saxon.expr.ItemTypeCheckingFunction.testConformance(ItemTypeCheckingFunction.java:65)
at net.sf.saxon.expr.ItemTypeCheckingFunction.mapItem(ItemTypeCheckingFunction.java:41)
at net.sf.saxon.expr.ItemMappingIterator.next(ItemMappingIterator.java:90)
at net.sf.saxon.expr.ContextMappingIterator.next(ContextMappingIterator.java:52)
at net.sf.saxon.value.SequenceExtent.<init>(SequenceExtent.java:105)
at net.sf.saxon.expr.sort.DocumentOrderIterator.<init>(DocumentOrderIterator.java:31)
at net.sf.saxon.expr.sort.DocumentSorter.iterate(DocumentSorter.java:101)
at net.sf.saxon.expr.SlashExpression.iterate(SlashExpression.java:700)
at net.sf.saxon.expr.sort.DocumentSorter.iterate(DocumentSorter.java:101)
at net.sf.saxon.expr.SlashExpression.iterate(SlashExpression.java:700)
at net.sf.saxon.expr.sort.DocumentSorter.iterate(DocumentSorter.java:101)
at net.sf.saxon.expr.Atomizer.iterate(Atomizer.java:230)
at net.sf.saxon.expr.AtomicSequenceConverter.iterate(AtomicSequenceConverter.java:281)
at net.sf.saxon.functions.StringJoin.evaluateItem(StringJoin.java:90)
at net.sf.saxon.expr.Expression.evaluateAsString(Expression.java:505)
at net.sf.saxon.expr.instruct.SimpleNodeConstructor.processLeavingTail(SimpleNodeConstructor.java:194)
at net.sf.saxon.expr.instruct.ValueOf.processLeavingTail(ValueOf.java:245)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:131)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:301)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:254)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:615)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:131)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:301)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:254)
at net.sf.saxon.expr.instruct.Template.applyLeavingTail(Template.java:212)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:1034)
at net.sf.saxon.Controller.transformDocument(Controller.java:1957)
at net.sf.saxon.Controller.transform(Controller.java:1803)
at org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMediator.java:289)
... 12 more



 Comments   
Comment by Sajith Abeywardhana [ 22/Mar/16 ]

Sample XSLT mediator

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/02/xpath-functions" xmlns:m0="http://services.samples" version="2.0" exclude-result-prefixes="m0 fn">
      <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"></xsl:output>
      <xsl:param name="PARAM_PAYLOAD_A"></xsl:param>
      <xsl:param name="PARAM_PAYLOAD_B"></xsl:param>
      <xsl:variable name="var-node-a" select="$PARAM_PAYLOAD_A"></xsl:variable>
      <xsl:variable name="var-node-b" select="$PARAM_PAYLOAD_B"></xsl:variable>
      <xsl:template match="/">
         <MyRoot xmlns="http://ws.apache.org/ns/synapse">
            <STUFF_FROM_PROPERTY_A>
               <xsl:value-of select="$var-node-a" disable-output-escaping="yes"></xsl:value-of>
            </STUFF_FROM_PROPERTY_A>
            <STUFF_FROM_PROPERTY_B>
               <xsl:value-of select="$var-node-a//DataAS/Data/Name" disable-output-escaping="yes"></xsl:value-of>
            </STUFF_FROM_PROPERTY_B>
         </MyRoot>
      </xsl:template>
   </xsl:stylesheet>

Sample SOAP request

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
   <soap:Header/>
   <soap:Body>
	   <DataAS>
	    <Header>
	        <CreatedDate>2015-10-09T16:00:00</CreatedDate>
	        <ASId>ABCD</ASId>
	    </Header>
	    <Data>
	        <DBKMID>0000000000</DBKMID>
	        <Name>Test Name</Name>
	        <Strasse>Test Strasse</Strasse>
	    </Data>
	   </DataAS>
   </soap:Body>
</soap:Envelope>

Sample proxy service

<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="laks"
       transports="https,http"
       statistics="disable"
       trace="disable"
       startOnLoad="true">
   <target>
      <inSequence>
         <property name="payload" expression="//DataAS" scope="default" type="OM"/>
         <log>
            <property name="payload" expression="get-property('payload')"/>
         </log>
         <xslt key="myxslt">
            <property name="PARAM_PAYLOAD_A" expression="get-property('payload')"/>
            <property name="PARAM_PAYLOAD_B" expression="get-property('payload')"/>
         </xslt>
         <respond/>
      </inSequence>
      <outSequence/>
      <faultSequence>
         <log level="full"/>
      </faultSequence>
   </target>
   <description/>
</proxy>




[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-4480] WSS PasswordDigest implementation Created: 09/Mar/16  Updated: 09/Mar/16

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

Type: Task Priority: Normal
Reporter: Maksym Khalin Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: WSS
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ESB 3.0.1/4.9.0, Red Hat Enterprise Linux Server release 6, Java(TM) SE Runtime Environment 1.6.0_45


Severity: Major
Estimated Complexity: Moderate

 Description   

Hi,

We have implemented WSS with PasswordText according to http://docs.oasis-open.org/wss/v1.1/wss-v1.1-spec-os-UsernameTokenProfile.pdf without optinal tags <wsse:Nonce> and <wsu:Created>. But now our security officer insist on implementing Password_Digest = Base64 ( SHA-2 ( nonce + created + password ) ). As per standard lines 196-197:

"Note that PasswordDigest can only be used if the plain text password (or password equivalent) is available to both the requestor and the recipient."

but as we know ESB 3/4 stores only SHA2 hashed passwords + salt. So questions are:
1. Can we configure ESB 3/4 for using PasswordDigest and Nonce validation to defend from replay attacks? If yes, please send us step by step instructions.
2. Where will be stored plain text passwords?
3. Is it recommended by WSO2 to use PasswordDigest and Nonce?
4. Is it more secure then PasswordText without Nonce if we are using TLS 1.2?
5. What are performance overheads?

Thank you in advance.






[ESBJAVA-4462] [MSMP] Message processor is shown as deactivated in cluster environment after some time Created: 03/Mar/16  Updated: 08/Mar/16

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

Type: Bug Priority: Normal
Reporter: Yasassri Rathnayake Assignee: Buddhima Wijeweera
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Worker Manager Cluster | MSSQL DB | NGINX Fronted | AD Primary Userstore | JAVA 8 | Pack ESB-500-M2


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

 Description   

Scenario.

In a 4 node ESB cluster with 3 worker nodes. had a Sampling message processor, after running the test for some time the message processor is indicated at Deactive. And the Activate/Deactivate option becomes unresponsive when this happens.






[ESBJAVA-4542] [ESB500M2][LongRun] Error observed with jms: failed to store message 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 jmeter script (please see the attached jmeter script) following error is observed

TID: [-1234] [] [2016-04-05 00:34:34,138]  WARN {org.apache.synapse.message.store.impl.jms.JmsProducer} -  [JMSStore-P-941456]. Ignored MessageID : urn:uuid:50e2c142-d4a7-4740-8d90-ceee1fc8feed {org.apache.synapse.message.store.impl.jms.JmsProducer}
TID: [-1234] [] [2016-04-05 00:34:34,138] ERROR {org.apache.synapse.mediators.store.MessageStoreMediator} -  Failed to store message [urn:uuid:652bad3a-2acc-4fa1-b103-89ccff677844] in store [JMSStore]. {org.apache.synapse.mediators.store.MessageStoreMediator}
TID: [-1234] [] [2016-04-05 00:34:34,138] ERROR {API_LOGGER.JMSStoreAPI} -  Failed to store message [urn:uuid:652bad3a-2acc-4fa1-b103-89ccff677844] in store [JMSStore]. {API_LOGGER.JMSStoreAPI}
TID: [-1234] [] [2016-04-05 00:34:34,138]  INFO {org.apache.synapse.mediators.builtin.LogMediator} -  To: /jmsstore, WSAction: , SOAPAction: , MessageID: urn:uuid:652bad3a-2acc-4fa1-b103-89ccff677844, Direction: request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 0, ERROR_MESSAGE = Failed to store message [urn:uuid:652bad3a-2acc-4fa1-b103-89ccff677844] in store [JMSStore]., Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://www.wso2.org/types"><soapenv:Body>
      <typ:greet> 
         <name>-----------Hello JMS MSMP---------</name>
      </typ:greet>
   </soapenv:Body></soapenv:Envelope> {org.apache.synapse.mediators.builtin.LogMediator}
	at org.wso2.carbon.context.internal.CarbonContextDataHolder.setTenantDomain(CarbonContextDataHolder.java:1390)
	at org.wso2.carbon.context.PrivilegedCarbonContext.setTenantDomain(PrivilegedCarbonContext.java:152)
	at org.wso2.carbon.context.PrivilegedCarbonContext.setTenantDomain(PrivilegedCarbonContext.java:141)
	at org.wso2.carbon.mediation.registry.WSO2Registry.setTenantInfo(WSO2Registry.java:754)
	at org.wso2.carbon.mediation.registry.WSO2Registry.lookup(WSO2Registry.java:130)
	at org.apache.synapse.registry.AbstractRegistry.getResource(AbstractRegistry.java:66)
--
	at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
	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:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)






[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-4495] java script mediator parsing error for some XML files Created: 14/Mar/16  Updated: 14/Mar/16

Status: Open
Project: WSO2 ESB
Component/s: Mediators
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   

In this issue a soap request which containing the xml[1] is sent to the proxy service[2] having the inline java script mediation.

[1]
<ForPnrHandling version="14" release="1" agency="1A" domain="PNR"><messageAction><business><function>REG</function></business></messageAction><activePNRimage><amadeusId><reservation><controlNumber>4OK7UF</controlNumber></reservation></amadeusId><pnrHeader><technicalData><pnrPurgeDate>160316</pnrPurgeDate><number>36</number></technicalData><reservationInfo><reservation><companyId>1A</companyId><controlNumber>4OK7UF</controlNumber><controlType>A</controlType><date>190415</date><time>1048</time></reservation></reservationInfo><securityInformation><responsibilityInformation><typeOfPnrElement>RP</typeOfPnrElement><agentId>TFRM</agentId><officeId>NYC1S21DD</officeId><iataCode>33895934</iataCode></responsibilityInformation><queueingInformation><queueingOfficeId>NYC1S21DD</queueingOfficeId></queueingInformation><cityCode>NYC</cityCode><secondRpInformation><creationOfficeId>NYC1S21DD</creationOfficeId><agentSignature>9999WS</agentSignature><creationDate>170415</creationDate><creatorIataCode>33895934</creatorIataCode><creationTime>1916</creationTime></secondRpInformation></securityInformation><relatedProduct><quantity>1</quantity></relatedProduct><creditLine><officeData><officeId>MMATF</officeId></officeData><receiveFrom>MMARMTF 191048</receiveFrom></creditLine><sbrPosDetails><pointOfSaleInformationType><pointOfSale><partyCodeQualifier>OWN</partyCodeQualifier></pointOfSale></pointOfSaleInformationType><sbrUserIdentification><originIdentification><originatorId>33895934</originatorId><inHouseIdentification1>NYC1S21DD</inHouseIdentification1></originIdentification><originatorTypeCode>T</originatorTypeCode></sbrUserIdentification><sbrSystemDetails><deliveringSystem><companyId>1A</companyId><locationId>NYC</locationId></deliveringSystem></sbrSystemDetails><sbrPreferences><userPreferences><codedCountry>US</codedCountry></userPreferences></sbrPreferences></sbrPosDetails><sbrPosDetails><pointOfSaleInformationType><pointOfSale><partyCodeQualifier>CRE</partyCodeQualifier></pointOfSale></pointOfSaleInformationType><sbrUserIdentification><originIdentification><originatorId>33895934</originatorId><inHouseIdentification1>NYC1S21DD</inHouseIdentification1></originIdentification><originatorTypeCode>T</originatorTypeCode></sbrUserIdentification><sbrSystemDetails><deliveringSystem><companyId>1A</companyId><locationId>NYC</locationId></deliveringSystem></sbrSystemDetails><sbrPreferences><userPreferences><codedCountry>US</codedCountry></userPreferences></sbrPreferences></sbrPosDetails><sbrPosDetails><pointOfSaleInformationType><pointOfSale><partyCodeQualifier>UPD</partyCodeQualifier></pointOfSale></pointOfSaleInformationType><sbrUserIdentification><originIdentification><originatorId>33895934</originatorId><inHouseIdentification1>MUC1A1TTY</inHouseIdentification1></originIdentification><originatorTypeCode>T</originatorTypeCode></sbrUserIdentification><sbrSystemDetails><deliveringSystem><companyId>1A</companyId><locationId>NYC</locationId></deliveringSystem></sbrSystemDetails><sbrPreferences><userPreferences><codedCountry>US</codedCountry></userPreferences></sbrPreferences></sbrPosDetails></pnrHeader><travellerInfo><elementManagementPassenger><elementReference><qualifier>PT</qualifier><number>2</number></elementReference><segmentName>NM</segmentName></elementManagementPassenger><passengerData><travellerInformation><traveller><surname>AHLMAN GLAHDER</surname><quantity>1</quantity></traveller><passenger><firstName>MARIANNE</firstName><type>ADT</type></passenger></travellerInformation></passengerData></travellerInfo><dataElementsMaster><marker2></marker2><marker3></marker3><dataElementsStruct><elementManagementStructData><elementReference><qualifier>OT</qualifier><number>8</number></elementReference><segmentName>UCI</segmentName></elementManagementStructData><referenceForStructDataElement><reference><qualifier>PT</qualifier><number>2</number></reference></referenceForStructDataElement><idElements><idsValue><idSection><referenceQualifier>UCI</referenceQualifier><primeId>200306700013B612</primeId></idSection></idsValue></idElements></dataElementsStruct></dataElementsMaster></activePNRimage><actMarker><actionRequestCode>0</actionRequestCode></actMarker></ForPnrHandling>

[2]
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="TestProxy"
transports="https,http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence onError="FaultMessageListenerSequence">
<script language="js">mc.setProperty('MessageContent',mc.getPayloadXML());</script>
</inSequence>
<outSequence/>
</target>
<description/>
</proxy>

When we invoked the service, following error[3] is logged on the console.
[3]

[2016-03-03 15:01:30,614] ERROR - ScriptMediator The script engine returned an error executing the inlined js script function mediate
com.sun.phobos.script.util.ExtendedScriptException: org.mozilla.javascript.WrappedException: Wrapped org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,39]
Message: Content is not allowed in prolog. (<Unknown Source>#2) in <Unknown Source> at line number 2
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:291)
at org.apache.synapse.mediators.bsf.ScriptMediator.invokeScript(ScriptMediator.java:235)

But if we do the followings to the xml[1], it is parsed without any error.
1. If we format XML before sending it.
2. If we remove one attribute (any of them) or add another attribute in the root element or changed the character length of the attribute by adding or deleting a character.
3. If we put space between any of the tag before </dataElementsMaster> tag.

Further we observed if we put "print(mc.getPayloadXML())" in JS mediator, it prints the xml without any error.So seems the issue comes, when trying to mc.setProperty('MessageContent',mc.getPayloadXML()).






[ESBJAVA-4436] [MSMP] Can add the same store as the source and the destination in Scheduled Failover Message Forwarding Processor Created: 24/Feb/16  Updated: 06/Aug/16

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

Type: Bug Priority: Normal
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.0 M1


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

 Description   

Can add the same store as the source and the destination in Scheduled Failover Message Forwarding Processor.

Since this is not valid this should be validated. The processor gets created without any error.






[ESBJAVA-4391] ERROR - SourceHandler Unexpected I/O error: java.nio.channels.ClosedChannelException Created: 22/Jan/16  Updated: 03/May/17

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

Type: Bug Priority: Normal
Reporter: Pedro Díaz Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: ESB
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CarbonCoreActivator Operating System : Linux 2.6.32-504.8.1.el6.x86_64, amd64
CarbonCoreActivator Java Home : /opt/soa/jdk1.7.0_51/jre
CarbonCoreActivator Java Version : 1.7.0_51
CarbonCoreActivator Java VM : Java HotSpot(TM) 64-Bit Server VM 24.51-b03,Oracle Corporation
CarbonCoreActivator Carbon Home : /opt/soa/wso2esb-4.9.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: Yes

 Description   

We have a lot of these errors in wso2-esb-errors.log file

2016-01-21 02:36:12,203 [-] [HTTPS-Listener I/O dispatcher-2] WARN SourceHandler Trying to write response body while the handler is in an inconsistent state REQUEST_READY
2016-01-21 02:36:12,201 [-] [PassThroughMessageProcessor-133] ERROR NativeWorkerPool Uncaught exception
java.nio.BufferOverflowException
at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:183)
at org.apache.http.nio.util.SimpleOutputBuffer.write(SimpleOutputBuffer.java:76)
at org.apache.http.nio.entity.ContentOutputStream.write(ContentOutputStream.java:72)
at org.wso2.carbon.mediation.transport.handlers.PassThroughNHttpGetProcessor.generateServicesList(PassThroughNHttpGetProcessor.java:367)
at org.wso2.carbon.mediation.transport.handlers.PassThroughNHttpGetProcessor.process(PassThroughNHttpGetProcessor.java:257)
at org.apache.synapse.transport.passthru.ServerWorker.processHttpRequestUri(ServerWorker.java:688)
at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:129)
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:744)
2016-01-21 02:36:12,204 [-] [HTTPS-Listener I/O dispatcher-2] ERROR SourceHandler Unexpected I/O error: java.nio.channels.ClosedChannelException
java.nio.channels.ClosedChannelException
at sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:265)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:474)
at org.apache.http.nio.reactor.ssl.SSLIOSession.sendEncryptedData(SSLIOSession.java:343)
at org.apache.http.nio.reactor.ssl.SSLIOSession.outboundTransport(SSLIOSession.java:431)
at org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(AbstractIODispatch.java:152)
at org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:180)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:342)
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:744)
2016-01-21 03:15:06,282 [-] [HTTPS-Listener I/O dispatcher-1] WARN SourceHandler Illegal incoming connection state: REQUEST_READY . Possibly two send backs are happening for the same request
2016-01-21 03:15:06,283 [-] [HTTPS-Listener I/O dispatcher-1] WARN SourceHandler Trying to write response body while the handler is in an inconsistent state REQUEST_READY
2016-01-21 03:15:06,283 [-] [HTTPS-Listener I/O dispatcher-1] ERROR SourceHandler Unexpected I/O error: java.nio.channels.ClosedChannelException
java.nio.channels.ClosedChannelException
at sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:265)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:474)
at org.apache.http.nio.reactor.ssl.SSLIOSession.sendEncryptedData(SSLIOSession.java:343)
at org.apache.http.nio.reactor.ssl.SSLIOSession.outboundTransport(SSLIOSession.java:431)
at org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(AbstractIODispatch.java:152)
at org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:180)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:342)
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:744)
2016-01-21 06:26:14,628 [-] [HTTPS-Listener I/O dispatcher-1] WARN SourceHandler Illegal incoming connection state: REQUEST_READY . Possibly two send backs are happening for the same request
2016-01-21 06:26:14,628 [-] [HTTPS-Listener I/O dispatcher-1] WARN SourceHandler Trying to write response body while the handler is in an inconsistent state REQUEST_READY
2016-01-21 06:26:14,629 [-] [HTTPS-Listener I/O dispatcher-1] ERROR SourceHandler Unexpected I/O error: java.nio.channels.ClosedChannelException
java.nio.channels.ClosedChannelException
at sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:265)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:474)
at org.apache.http.nio.reactor.ssl.SSLIOSession.sendEncryptedData(SSLIOSession.java:343)
at org.apache.http.nio.reactor.ssl.SSLIOSession.outboundTransport(SSLIOSession.java:431)
at org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(AbstractIODispatch.java:152)
at org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:180)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:342)
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:744)



 Comments   
Comment by Kasun Senevirathne [ 15/Mar/16 ]

In my case i have using wso2esb-4.9.0 ESB version in cent OS 7 & Java version jdk1.7.0_55 but similar closed channel issues are promote.

TID: [-1] [] [2016-03-01 11:37:14,317] ERROR

{org.apache.synapse.transport.passthru.SourceHandler} - Unexpected I/O error: java.nio.channels.ClosedChannelException {org.apache.synapse.transport.passthru.SourceHandler}

java.nio.channels.ClosedChannelException
at sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:265)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:474)
at org.apache.http.impl.nio.reactor.SessionOutputBufferImpl.flush(SessionOutputBufferImpl.java:167)
at org.apache.http.impl.nio.DefaultNHttpServerConnection.produceOutput(DefaultNHttpServerConnection.java:315)
at org.apache.synapse.transport.http.conn.LoggingNHttpServerConnection.produceOutput(LoggingNHttpServerConnection.java:114)
at org.apache.synapse.transport.passthru.ServerIODispatch.onOutputReady(ServerIODispatch.java:87)
at org.apache.synapse.transport.passthru.ServerIODispatch.onOutputReady(ServerIODispatch.java:39)
at org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(AbstractIODispatch.java:143)
at org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:180)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:342)
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)

Comment by Isuru Udana Loku Narangoda [ 13/Jun/16 ]

This usually happens while sending a response back to the client if the connection (channel) has already closed.

Comment by Chanaka Fernando [ 04/Aug/16 ]

Could you please provide more information about the issue? Without knowing your use case, it is hard to find the root cause for this issue.

Thanks,
Chanaka

Comment by sewmini jayaweera [ 03/May/17 ]

This issue could be seen in API manager 1.10.0 when invoking an API using concurrent users, given an invalid resource path (e.g. <baseurl>/context//reource1).





[ESBJAVA-4310] Need to implement a way to manually trigger to refresh the ESB registry cache Created: 11/Nov/15  Updated: 06/Aug/16

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

Type: Improvement Priority: Normal
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




[ESBJAVA-5244] FastXSLT Mediator error when mediate file content read from VFS Inbound end point Created: 20/Nov/17  Updated: 27/Nov/17

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

Type: Bug Priority: Normal
Reporter: Manoj Gunawardena Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: mediator
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ESB 5.0
Jdk 1.8


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

 Description   

XML file reads via VFS inbound endpoint. The transport.vfs.ContentType is set to application./xml in inbound end point.
File transforms using FastXSLT mediator. Following error occurred.

java.lang.RuntimeException: ContentID is null
at org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(OMTextImpl.java:381)
at org.wso2.carbon.mediator.fastXSLT.FastXSLTMediator.getMessageInputStreamBinaryRelay(FastXSLTMediator.java:301)
at org.wso2.carbon.mediator.fastXSLT.FastXSLTMediator.mediate(FastXSLTMediator.java:163)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:89)
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.Axis2SynapseEnvironment.injectInbound(Axis2SynapseEnvironment.java:446)
at org.wso2.carbon.inbound.endpoint.protocol.file.FileInjectHandler.invoke(FileInjectHandler.java:163)
at org.wso2.carbon.inbound.endpoint.protocol.file.FilePollingConsumer.processFile(FilePollingConsumer.java:763)
at org.wso2.carbon.inbound.endpoint.protocol.file.FilePollingConsumer.directoryHandler(FilePollingConsumer.java:543)
at org.wso2.carbon.inbound.endpoint.protocol.file.FilePollingConsumer.poll(FilePollingConsumer.java:214)
at org.wso2.carbon.inbound.endpoint.protocol.file.FilePollingConsumer.execute(FilePollingConsumer.java:134)
at org.wso2.carbon.inbound.endpoint.protocol.file.FileTask.taskExecute(FileTask.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: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)






[ESBJAVA-5239] JSON builder to support primitive types Created: 17/Oct/17  Updated: 27/Nov/17

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

Type: Improvement Priority: Normal
Reporter: Buddhima Wijeweera Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: ESB, JSON
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

WSO2 ESB 5.0.0


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

 Description   

Hi,
According to the old JSON spec [1], " A JSON text is a serialized object or array."
Later with the spec [2], that has been redefined and current spec says "A JSON text is a serialized value.", which mean JSON builder needs to support primitive types such as Strings, numbers, null & boolean values (See examples at [2]).
Since newest version of serializes (Java libraries etc.) have implemented the latest spec, we have seen ESB returnining error while trying to build the response from backend.
Appreciate if you can consider implementing latest spec[2] in future versions of JSON builders and formatters.

[1] https://tools.ietf.org/html/rfc4627
[2] https://tools.ietf.org/html/rfc7159#appendix-A

Thanks,






[ESBJAVA-5219] Misleading warning is logged when maximum message size and/or maximum size is exceeded in cache mediator Created: 04/Sep/17  Updated: 27/Nov/17

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

Type: Improvement Priority: Normal
Reporter: Charini Nanayakkara Assignee: Chanaka Fernando
Resolution: Unresolved Votes: 0
Labels: ESB-500
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

When the actual request message size exceeds the maximum message size specified with 'maxMessageSize' parameter, the following warning is displayed on the console.

[2017-09-04 10:12:08,966]  WARN - CacheMediator A response message without a valid mapping to the request hash found. Unable to store the response in cache

To view the actual error message, following debug log must be enabled in in <ESB_HOME>/repository/conf/log4j.properties file.

log4j.logger.org.apache.synapse.mediators.builtin.CacheMediator=DEBUG

Then the actual problem would be conveyed to the user with the following log entry

[2017-09-04 11:31:10,594] DEBUG - CacheMediator Message size exceeds the upper bound for caching, request will not be cached

Similarly, the same misleading warning is displayed when the number of unique request messages exceeds the maximum size depicted with maxSize property. When the debug log is enabled as above, the correct log is displayed as follows.

[2017-09-04 14:15:43,714] DEBUG - CacheMediator In-memory cache is full. Unable to cache

It's best to change the above logs to log.info level (currently it's in log.debug level) in the code since otherwise, users cannot know that the issue is with message size/ cache being full (since they would generally not enable the relevant debug log).

Method to reproduce

  1. The 'SimpleStockQuoteService' is used to demonstrate this problem.
    • To build the SimpleStockQuoteService sample, go to <ESB_HOME>/samples/axis2Server/src/SimpleStockQuoteService and run 'ant' command. The 'BUILD SUCCESSFUL' message would be displayed.
    • To start the SimpleStockQuoteService, go to <ESB_HOME>/samples/axis2Server location and run ./axis2server.sh command
  2. Start the ESB pack (Run ./wso2server.sh command from <ESB_HOME>/bin)
  3. Log on to the management console and create a proxy with the following configuration. Note that maxMessageSize is set to 5 (5 bytes).
    <?xml version="1.0" encoding="UTF-8"?>
    <proxy xmlns="http://ws.apache.org/ns/synapse"
           name="Test"
           startOnLoad="true"
           statistics="disable"
           trace="disable"
           transports="http,https">
       <target faultSequence="faultSequence">
          <inSequence>
             <cache collector="false"
                    hashGenerator="org.wso2.caching.digest.DOMHASHGenerator"
                    maxMessageSize="5"
                    scope="per-host"
                    timeout="20">
                <implementation maxSize="1000" type="memory"/>
             </cache>
             <send>
                <endpoint>
                   <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
                </endpoint>
             </send>
          </inSequence>
          <outSequence>
             <cache collector="true" scope="per-host"/>
             <send/>
          </outSequence>
       </target>
       <description/>
    </proxy>                      
    
  4. Call the 'Test' proxy with SoapUI. The following request message was sent.
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.samples">
      <soapenv:Header/>
      <soapenv:Body>
         <ser:getSimpleQuote>
            <ser:symbol>IBM</ser:symbol>
         </ser:getSimpleQuote>
      </soapenv:Body>
    </soapenv:Envelope>
    
  5. The misleading warning message would be displayed on the console, due to the request message size being larger than 5 bytes.
  6. Now change the maxSize value to 2. (Set maxMessageSize to 500 and timeout to 50000)
  7. Send 3 request messages, by changing symbol as 'IBM', 'WSO2' and 'MSFT' respectively.
  8. When request for 'MSFT' is sent, the misleading warning would be displayed, due to cache being full (cache can only hold two messages)

In both instances, to see the actual issue, relevant debug log (log4j.logger.org.apache.synapse.mediators.builtin.CacheMediator=DEBUG) has to be enabled as specified above.






[ESBJAVA-5236] Can not add namespaces to the property mediator using UI when trying to extract the Xpath value Created: 05/Oct/17  Updated: 27/Nov/17

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

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

Attachments: PNG File namespace.png    
Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

Hi all,

Use case is described below,

1. Send a SOAP 11 request using below payload,

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.samples" xmlns:xsd="http://services.samples/xsd">
   <soapenv:Header/>
   <soapenv:Body>
     <student xmlns="http://ws.apache.org/ns/synapse">
      	<name>Dileepa</name>
     </student>
   </soapenv:Body>
</soapenv:Envelope>

2. Try to extract the name element from the above payload using property mediator as below,

<property expression="$body/student/name/text()" name="xpathvalue" scope="default" type="STRING"/>

3. Above expression is not working because of the namespace in the payload. So I have tried to add the namespace with the prefix with the UI as below,

please refer attached image "namespace.png"

4. The issue is it is not adding to the property mediator through the UI.

We can add the namespace by editing the proxy service from the synapse configurations by manually or we can add it through the car file.

But when we adding the namespace through the UI, changes (namespace) won't apply to the property mediator.

Thanks,
Dileepa






[ESBJAVA-5229] Aggregate Mediator fails to send the response back intermittently when min and max message count set to 1 Created: 21/Sep/17  Updated: 27/Nov/17

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

Type: Bug Priority: Normal
Reporter: Dileepa Dissanayake 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,

Scenario :

  • The request message is split by iterate mediator and send to the back-ends using call mediator.
  • The aggregate mediator is placed after iterate mediator in order to send the response to the client at least one backend has responded.

Observed :

ESB throwing following error intermittently,

[2017-09-15 02:44:24,040] WARN - SourceHandler Illegal incoming connection state: REQUEST_READY . Possibly two send backs are happening for the same request
[2017-09-15 02:44:24,041] WARN - SourceHandler Trying to write response body while the handler is in an inconsistent state REQUEST_READY

Further analyzed:

When I observed the code it happens because when the first response comes from the back-end. Aggregate mediator sends the response to the client and removes the registered aggregator from the registered aggregator's list. So it causes the two send backs are happening for the same request.

Thanks,
Dileepa






[ESBJAVA-5218] When proxy contains CDATA management console fails to list proxies Created: 01/Sep/17  Updated: 27/Nov/17

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

Type: Bug Priority: Normal
Reporter: Fazlan Nazeem 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