[ESBJAVA-4152] MessageID returned as Null when a proxy is invoked via a scheduled task Created: 03/Sep/15  Updated: 03/Sep/15

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

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

ESB 4.9.0
Ubuntu 13.04
JDK 1.7.0


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

 Description   

When a proxy is invoked by a scheduled task the message ID is returned as Null in the insequence.

1) <property name="MESSAGE_ID" expression="get-property('MessageID')"/>

[2015-09-02 17:59:58,725] INFO - LogMediator To: http://localhost:9773/services/HelloService/, WSAction: urn:greet, SOAPAction: urn:greet, Direction: request, MESSAGE_ID = , Envelope: <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><p:greet xmlns: p= "http://www.wso2.org/types"><!-0 to 1 occurrence-><name>test</name>
</p:greet></soapenv:Body></soapenv:Envelope>

2) <property name="MESSAGE_ID" expression="get-property('axis2','MessageID')"/>

[2015-09-02 17:57:05,755] INFO - CarbonAuthenticationUtil 'admin@carbon.super [-1234]' logged in at [2015-09-02 17:57:05,755+0530]
[2015-09-02 17:57:14,111] INFO - LogMediator To: http://localhost:9773/services/HelloService/, WSAction: urn:greet, SOAPAction: urn:greet, Direction: request, MESSAGE_ID = null, Envelope: <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><p:greet xmlns: p="http://www.wso2.org/types"><!-0 to 1 occurrence-><name>test</name>

Proxy -------------------------------------------------------------

<proxy name="test_scheduled"
transports="https http"
startOnLoad="true"
trace="disable">
<description/>
<target>
<inSequence>
<log level="full">
<property name="MESSAGE_ID" expression="get-property('axis2','MessageID')"/>
</log>
<send/>
</inSequence>
<outSequence>
<log level="full">
<property name="MESSAGE_ID" expression="get-property('axis2','MessageID')"/>
</log>
<store messageStore="test_store"/>
</outSequence>
</target>
</proxy>

Task --------------------------------------------------------------
<task name="test2"
class="org.apache.synapse.startup.tasks.MessageInjector"
group="synapse.simple.quartz">
<trigger count="1" interval="5"/>
<property xmlns:task="http://www.wso2.org/products/wso2commons/tasks"
name="proxyName"
value="test_scheduled"/>
<property xmlns:task="http://www.wso2.org/products/wso2commons/tasks"
name="to"
value="http://localhost:5050/services/HelloService/"/>
<property xmlns:task="http://www.wso2.org/products/wso2commons/tasks"
name="injectTo"
value="proxy"/>
<property xmlns:task="http://www.wso2.org/products/wso2commons/tasks" name="message">
<p:greet xmlns="http://www.wso2.org/types"><!-0 to 1 occurrence-><name xmlns="">test</name>
</p:greet>
</property>
<property xmlns:task="http://www.wso2.org/products/wso2commons/tasks"
name="soapAction"
value="urn:greet"/>
</task>
<messageStore name="test_store"/>






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

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: Kasun Indrasiri
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-4150] initClientOptions in Callout Mediator not working properly Created: 03/Sep/15  Updated: 03/Sep/15  Resolved: 03/Sep/15

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

Type: Bug Priority: High
Reporter: Isuru Udana Loku Narangoda Assignee: Isuru Udana Loku Narangoda
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

When initClientOptions is set to false, message is not delivered to the backend



 Comments   
Comment by Isuru Udana Loku Narangoda [ 03/Sep/15 ]

Fixed with https://github.com/wso2/wso2-synapse/pull/348





[ESBJAVA-4149] Uneccesary Senders/modules started when creating a message processor Created: 03/Sep/15  Updated: 03/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: Kasun Indrasiri
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-4148] Message is getting built when comments are placed in the synapse configuration Created: 03/Sep/15  Updated: 02/Sep/15  Resolved: 02/Sep/15

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

Type: Bug Priority: Highest
Reporter: Isuru Udana Loku Narangoda Assignee: Isuru Udana Loku Narangoda
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Comments   
Comment by Isuru Udana Loku Narangoda [ 02/Sep/15 ]

Fixed with https://github.com/wso2/wso2-synapse/pull/347





[ESBJAVA-4147] Better error handling for message processor task execution when referring message store is not available Created: 02/Sep/15  Updated: 02/Sep/15

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

Type: Bug Priority: Low
Reporter: Evanthika Amarasiri Assignee: Kasun Indrasiri
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System : Mac OS X 10.9.2, x86_64
Java Version/Java VM :Java HotSpot(TM) 64-Bit Server VM 24.60-b09,Oracle Corporation
Packs : wso2esb-4.9.0-RC1
DBMS/DBMS Driver :Server version: 5.6.19 MySQL Community Server (GPL)
Browser : Firefox 37.0.2
Setup : Standalone


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

 Description   

Steps to reproduce

1. Create a message store
2. Create a message processor and refer the above created message store
3. Delete the message store from the configuration
4. The following NPE would get printed since the message store is missing. This is a simple user error but it would be great it better error handling is provided

[2015-09-02 18:21:45,412] DEBUG - ThreadingView Thread state summary for PassthroughHttpServerWorker threads - Blocked: 0.0%, Unblocked: 100.0%
[2015-09-02 18:21:46,375] ERROR - TaskQuartzJobAdapter Error in executing task: null
java.lang.NullPointerException
at org.apache.synapse.message.processor.impl.forwarder.ForwardingService.setMessageConsumer(ForwardingService.java:760)
at org.apache.synapse.message.processor.impl.forwarder.ForwardingService.init(ForwardingService.java:321)
at org.apache.synapse.message.processor.impl.forwarder.ForwardingService.execute(ForwardingService.java:195)
at org.wso2.carbon.mediation.ntask.NTaskAdapter.execute(NTaskAdapter.java:88)
at org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)






[ESBJAVA-4146] When we try to edit a proxy service using management console, which is already created through the file system, the security policy will change. Created: 02/Sep/15  Updated: 03/Sep/15  Resolved: 03/Sep/15

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

Type: Bug Priority: Normal
Reporter: Sanjaya Halwala Assignee: prabath ariyarathna
Resolution: Fixed Votes: 0
Labels: ESB
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7, WSO2 ESB 4.8.1


Attachments: File UTOverTransport    
Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

Steps to reproduce the behavior.
1) Start ESB 4.8.1
2) Go to "$ESB_HOME/repository/deployment/server/synapse-configs/default/proxy-services" directory
3) Copy a security policy file to registry location "/_system/governance/UT/UTOverTransport" (attached the sample UTOverTransport policy I used).
4) Create a proxy (Proxy.xml file) with following content (Make sure to update endpoint URLs properly)

<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="proxy"
transports="https"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<outSequence>
<send/>
</outSequence>
<endpoint>
<address uri="http://localhost:8285/services/echo"/>
</endpoint>
</target>
<publishWSDL uri="http://localhost:8285/services/echo?wsdl"/>
<policy key="gov:/UT/UTOverTransport"/>
<parameter name="allowRoles">admin</parameter>
<description/>
</proxy>

5) Now proxy service called "proxy" should deployed properly.
6) Then go to management console and select source view of newly create proxy.
7) Then click on save button. Following is the proxy service content I can see after the above step. (Note : New policy added to proxy).

<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="proxy"
transports="https"
startOnLoad="true"
trace="disable">
<description/>
<target>
<endpoint>
<address uri="http://localhost:8285/services/echo"/>
</endpoint>
<outSequence>
<send/>
</outSequence>
</target>
<publishWSDL uri="http://localhost:8285/services/echo?wsdl"/>
<policy key="gov:/UT/UTOverTransport"/>
<policy key="conf:/repository/axis2/service-groups/proxy/services/proxy/policies/UTOverTransport"/>
<parameter name="allowRoles">admin</parameter>
</proxy>



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

Check mentioned behavior in the 4.8.1 and latest 4.9.0-RC2 pack. This could be reproduce in the 4.8.1 pack but not in latest RC2 pack, hence marked as resolved.





[ESBJAVA-4145] Prepare about page for the ESB 4.9.0 release Created: 02/Sep/15  Updated: 02/Sep/15  Resolved: 02/Sep/15

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

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

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

 Comments   
Comment by Chanaka Fernando [ 02/Sep/15 ]

This is fixed with PR[1]

[1] https://github.com/wso2/product-esb/commit/af20558bbde191517c6bb8390bd5a956498675e6





[ESBJAVA-4144] when attempting to connect to a db2 with ESB 490 the startup fails Created: 02/Sep/15  Updated: 02/Sep/15  Resolved: 02/Sep/15

Status: Closed
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.9.0 - RC1
Fix Version/s: 4.9.0

Type: Bug Priority: High
Reporter: Shavantha Weerasinghe Assignee: Kasun Indrasiri
Resolution: Not a bug Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System : Linux
Java Version/Java VM : JDK1.7.0_67
DBMS: db2
Browser : Firefox 27.0
Set up :ESB490


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

 Description   

when attempting to connect to a db2 with ESB 490 the startup fails

preconditions
===========================
following jars should be in repository/components/lib
db2jcc_license_cu.jar
db2jcc.jar

Error occurs for both steps below
===========================
1.first start with -Dsetup
2.shut down and start in sh wso2server.sh

JAVA_HOME environment variable is set to /home/shavantha/projects/software/java/jdk1.8.0_25
CARBON_HOME environment variable is set to /home/shavantha/projects/esb/490/zip/wso2esb-4.9.0-RC1
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[2015-09-02 11:20:44,789]  INFO - CarbonCoreActivator Starting WSO2 Carbon...
[2015-09-02 11:20:44,810]  INFO - CarbonCoreActivator Operating System : Linux 3.5.0-17-generic, amd64
[2015-09-02 11:20:44,810]  INFO - CarbonCoreActivator Java Home        : /home/shavantha/projects/software/java/jdk1.8.0_25/jre
[2015-09-02 11:20:44,811]  INFO - CarbonCoreActivator Java Version     : 1.8.0_25
[2015-09-02 11:20:44,811]  INFO - CarbonCoreActivator Java VM          : Java HotSpot(TM) 64-Bit Server VM 25.25-b02,Oracle Corporation
[2015-09-02 11:20:44,811]  INFO - CarbonCoreActivator Carbon Home      : /home/shavantha/projects/esb/490/zip/wso2esb-4.9.0-RC1
[2015-09-02 11:20:44,811]  INFO - CarbonCoreActivator Java Temp Dir    : /home/shavantha/projects/esb/490/zip/wso2esb-4.9.0-RC1/tmp
[2015-09-02 11:20:44,811]  INFO - CarbonCoreActivator User             : shavantha, en-US, Asia/Colombo
[2015-09-02 11:20:44,978]  WARN - ValidationResultPrinter Carbon is configured to use the default keystore (wso2carbon.jks). To maximize security when deploying to a production environment, configure a new keystore with a unique password in the production server profile.
[2015-09-02 11:20:45,011]  INFO - AgentHolder Agent created !
[2015-09-02 11:20:45,075]  INFO - AgentDS Successfully deployed Agent Client
[2015-09-02 11:20:54,582] ERROR - DatabaseUtil Database Error - [jcc][t4][10199][10462][3.50.152] Required character converter is not available. ERRORCODE=-4220, SQLSTATE=null
com.ibm.db2.jcc.b.SqlException: [jcc][t4][10199][10462][3.50.152] Required character converter is not available. ERRORCODE=-4220, SQLSTATE=null
	at com.ibm.db2.jcc.b.wc.a(wc.java:55)
	at com.ibm.db2.jcc.b.wc.a(wc.java:119)
	at com.ibm.db2.jcc.b.bc.a(bc.java:1758)
	at com.ibm.db2.jcc.b.bc.n(bc.java:496)
	at com.ibm.db2.jcc.b.bc.F(bc.java:1263)
	at com.ibm.db2.jcc.b.jk.d(jk.java:939)
	at com.ibm.db2.jcc.b.jk.getString(jk.java:917)
	at org.wso2.carbon.user.core.claim.dao.ClaimDAO.loadClaimMappings(ClaimDAO.java:291)
	at org.wso2.carbon.user.core.claim.builder.ClaimBuilder.buildClaimMappingsFromDatabase(ClaimBuilder.java:86)
	at org.wso2.carbon.user.core.common.DefaultRealm.populateProfileAndClaimMaps(DefaultRealm.java:443)
	at org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:105)
	at org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:230)
	at org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:96)
	at org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:109)
	at org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:68)
	at org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
[2015-09-02 11:20:54,592] ERROR - ClaimBuilder Database Error - [jcc][t4][10199][10462][3.50.152] Required character converter is not available. ERRORCODE=-4220, SQLSTATE=null
org.wso2.carbon.user.core.UserStoreException: Database Error - [jcc][t4][10199][10462][3.50.152] Required character converter is not available. ERRORCODE=-4220, SQLSTATE=null
	at org.wso2.carbon.user.core.claim.dao.ClaimDAO.loadClaimMappings(ClaimDAO.java:352)
	at org.wso2.carbon.user.core.claim.builder.ClaimBuilder.buildClaimMappingsFromDatabase(ClaimBuilder.java:86)
	at org.wso2.carbon.user.core.common.DefaultRealm.populateProfileAndClaimMaps(DefaultRealm.java:443)
	at org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:105)
	at org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:230)
	at org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:96)
	at org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:109)
	at org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:68)
	at org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: com.ibm.db2.jcc.b.SqlException: [jcc][t4][10199][10462][3.50.152] Required character converter is not available. ERRORCODE=-4220, SQLSTATE=null
	at com.ibm.db2.jcc.b.wc.a(wc.java:55)
	at com.ibm.db2.jcc.b.wc.a(wc.java:119)
	at com.ibm.db2.jcc.b.bc.a(bc.java:1758)
	at com.ibm.db2.jcc.b.bc.n(bc.java:496)
	at com.ibm.db2.jcc.b.bc.F(bc.java:1263)
	at com.ibm.db2.jcc.b.jk.d(jk.java:939)
	at com.ibm.db2.jcc.b.jk.getString(jk.java:917)
	at org.wso2.carbon.user.core.claim.dao.ClaimDAO.loadClaimMappings(ClaimDAO.java:291)
	... 23 more
[2015-09-02 11:20:54,791] ERROR - DefaultRealm nullType class java.lang.reflect.InvocationTargetException
org.wso2.carbon.user.core.UserStoreException: nullType class java.lang.reflect.InvocationTargetException
	at org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:382)
	at org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:203)
	at org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:108)
	at org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:230)
	at org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:96)
	at org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:109)
	at org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:68)
	at org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
	at org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:336)
	... 22 more
Caused by: org.wso2.carbon.user.core.UserStoreException: Using sql : SELECT UM_ROLE_NAME FROM UM_USER_ROLE, UM_ROLE, UM_USER WHERE UM_USER.UM_USER_NAME=? AND UM_USER.UM_ID=UM_USER_ROLE.UM_USER_ID AND UM_ROLE.UM_ID=UM_USER_ROLE.UM_ROLE_ID AND UM_USER_ROLE.UM_TENANT_ID=? AND UM_ROLE.UM_TENANT_ID=? AND UM_USER.UM_TENANT_ID=? [jcc][t4][10199][10462][3.50.152] Required character converter is not available. ERRORCODE=-4220, SQLSTATE=null
	at org.wso2.carbon.user.core.util.DatabaseUtil.getStringValuesFromDatabase(DatabaseUtil.java:269)
	at org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.getStringValuesFromDatabase(JDBCUserStoreManager.java:975)
	at org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doGetExternalRoleListOfUser(JDBCUserStoreManager.java:2614)
	at org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doCheckIsUserInRole(JDBCUserStoreManager.java:421)
	at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addInitialAdminData(AbstractUserStoreManager.java:3332)
	at org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.<init>(JDBCUserStoreManager.java:276)
	at org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.<init>(JDBCUserStoreManager.java:215)
	... 27 more
Caused by: com.ibm.db2.jcc.b.SqlException: [jcc][t4][10199][10462][3.50.152] Required character converter is not available. ERRORCODE=-4220, SQLSTATE=null
	at com.ibm.db2.jcc.b.wc.a(wc.java:55)
	at com.ibm.db2.jcc.b.wc.a(wc.java:119)
	at com.ibm.db2.jcc.b.bc.a(bc.java:1758)
	at com.ibm.db2.jcc.b.bc.n(bc.java:496)
	at com.ibm.db2.jcc.b.bc.F(bc.java:1263)
	at com.ibm.db2.jcc.b.jk.d(jk.java:939)
	at com.ibm.db2.jcc.b.jk.getString(jk.java:917)
	at org.wso2.carbon.user.core.util.DatabaseUtil.getStringValuesFromDatabase(DatabaseUtil.java:257)
	... 33 more
[2015-09-02 11:20:54,799] ERROR - Activator Cannot start User Manager Core bundle
org.wso2.carbon.user.core.UserStoreException: Cannot initialize the realm.
	at org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:240)
	at org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:96)
	at org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:109)
	at org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:68)
	at org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: org.wso2.carbon.user.core.UserStoreException: nullType class java.lang.reflect.InvocationTargetException
	at org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:303)
	at org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:108)
	at org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:230)
	... 19 more
Caused by: org.wso2.carbon.user.core.UserStoreException: nullType class java.lang.reflect.InvocationTargetException
	at org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:382)
	at org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:203)
	... 21 more
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
	at org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:336)
	... 22 more
Caused by: org.wso2.carbon.user.core.UserStoreException: Using sql : SELECT UM_ROLE_NAME FROM UM_USER_ROLE, UM_ROLE, UM_USER WHERE UM_USER.UM_USER_NAME=? AND UM_USER.UM_ID=UM_USER_ROLE.UM_USER_ID AND UM_ROLE.UM_ID=UM_USER_ROLE.UM_ROLE_ID AND UM_USER_ROLE.UM_TENANT_ID=? AND UM_ROLE.UM_TENANT_ID=? AND UM_USER.UM_TENANT_ID=? [jcc][t4][10199][10462][3.50.152] Required character converter is not available. ERRORCODE=-4220, SQLSTATE=null
	at org.wso2.carbon.user.core.util.DatabaseUtil.getStringValuesFromDatabase(DatabaseUtil.java:269)
	at org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.getStringValuesFromDatabase(JDBCUserStoreManager.java:975)
	at org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doGetExternalRoleListOfUser(JDBCUserStoreManager.java:2614)
	at org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doCheckIsUserInRole(JDBCUserStoreManager.java:421)
	at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addInitialAdminData(AbstractUserStoreManager.java:3332)
	at org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.<init>(JDBCUserStoreManager.java:276)
	at org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.<init>(JDBCUserStoreManager.java:215)
	... 27 more
Caused by: com.ibm.db2.jcc.b.SqlException: [jcc][t4][10199][10462][3.50.152] Required character converter is not available. ERRORCODE=-4220, SQLSTATE=null
	at com.ibm.db2.jcc.b.wc.a(wc.java:55)
	at com.ibm.db2.jcc.b.wc.a(wc.java:119)
	at com.ibm.db2.jcc.b.bc.a(bc.java:1758)
	at com.ibm.db2.jcc.b.bc.n(bc.java:496)
	at com.ibm.db2.jcc.b.bc.F(bc.java:1263)
	at com.ibm.db2.jcc.b.jk.d(jk.java:939)
	at com.ibm.db2.jcc.b.jk.getString(jk.java:917)
	at org.wso2.carbon.user.core.util.DatabaseUtil.getStringValuesFromDatabase(DatabaseUtil.java:257)
	... 33 more
[2015-09-02 11:21:00,143]  INFO - TaglibUriRule TLD skipped. URI: http://tiles.apache.org/tags-tiles is already defined


 Comments   
Comment by Shavantha Weerasinghe [ 02/Sep/15 ]

tables are created on db2 as shown below

Table/View Schema Type Creation time
------------------------------- --------------- ----- --------------------------
HYBRID_ROLE DUMIDUH T 2015-09-01-12.36.52.961442
HYBRID_USER_ROLE DUMIDUH T 2015-09-01-12.36.53.212543
REG_ASSOCIATION DUMIDUH T 2015-09-01-12.36.50.382730
REG_CLUSTER_LOCK DUMIDUH T 2015-09-01-12.36.48.157719
REG_COMMENT DUMIDUH T 2015-09-01-12.36.49.326063
REG_CONTENT DUMIDUH T 2015-09-01-12.36.48.660729
REG_CONTENT_HISTORY DUMIDUH T 2015-09-01-12.36.48.858630
REG_LOG DUMIDUH T 2015-09-01-12.36.48.349197
REG_PATH DUMIDUH T 2015-09-01-12.36.48.541197
REG_PROPERTY DUMIDUH T 2015-09-01-12.36.50.113102
REG_RATING DUMIDUH T 2015-09-01-12.36.49.624517
REG_RESOURCE DUMIDUH T 2015-09-01-12.36.49.041390
REG_RESOURCE_COMMENT DUMIDUH T 2015-09-01-12.36.49.461361
REG_RESOURCE_HISTORY DUMIDUH T 2015-09-01-12.36.49.193205
REG_RESOURCE_PROPERTY DUMIDUH T 2015-09-01-12.36.50.239266
REG_RESOURCE_RATING DUMIDUH T 2015-09-01-12.36.49.727738
REG_RESOURCE_TAG DUMIDUH T 2015-09-01-12.36.49.961240
REG_SNAPSHOT DUMIDUH T 2015-09-01-12.36.50.506229
REG_TAG DUMIDUH T 2015-09-01-12.36.49.855301
UM_ACCOUNT_MAPPING DUMIDUH T 2015-09-01-12.36.52.654759
UM_CLAIM DUMIDUH T 2015-09-01-12.36.53.727753
UM_CLAIM_BEHAVIOR DUMIDUH T 2015-09-01-12.36.54.330876
UM_DIALECT DUMIDUH T 2015-09-01-12.36.53.434019
UM_DOMAIN DUMIDUH T 2015-09-01-12.36.50.954688
UM_HYBRID_REMEMBER_ME DUMIDUH T 2015-09-01-12.36.55.905823
UM_HYBRID_ROLE DUMIDUH T 2015-09-01-12.36.54.863569
UM_HYBRID_USER_ROLE DUMIDUH T 2015-09-01-12.36.55.099637
UM_MODULE DUMIDUH T 2015-09-01-12.36.51.634717
UM_MODULE_ACTIONS DUMIDUH T 2015-09-01-12.36.51.767074
UM_PERMISSION DUMIDUH T 2015-09-01-12.36.51.918099
UM_PROFILE_CONFIG DUMIDUH T 2015-09-01-12.36.54.116757
UM_ROLE DUMIDUH T 2015-09-01-12.36.51.487414
UM_ROLE_PERMISSION DUMIDUH T 2015-09-01-12.36.52.125781
UM_SHARED_USER_ROLE DUMIDUH T 2015-09-01-12.36.52.783729
UM_SYSTEM_ROLE DUMIDUH T 2015-09-01-12.36.55.348955
UM_SYSTEM_USER DUMIDUH T 2015-09-01-12.36.51.234320
UM_SYSTEM_USER_ROLE DUMIDUH T 2015-09-01-12.36.55.576332
UM_TENANT DUMIDUH T 2015-09-01-12.36.50.716277
UM_USER DUMIDUH T 2015-09-01-12.36.51.096682
UM_USER_ATTRIBUTE DUMIDUH T 2015-09-01-12.36.51.371521
UM_USER_PERMISSION DUMIDUH T 2015-09-01-12.36.52.322152
UM_USER_ROLE DUMIDUH T 2015-09-01-12.36.52.520520

42 record(s) selected.

db2 => select * from UM_USER

UM_ID UM_USER_NAME UM_USER_PASSWORD UM_SALT_VALUE UM_REQUIRE_CHANGE UM_CHANGED_TIME UM_TENANT_ID
--------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------- ----------------- -------------------------- ---------------------------------
2. admin 72NWBdSW8Yz6tdfO+av1DkE0Vpb9qaEDh6AHiNdxrKE= 0uNWJaCvvW1T696zrejWww== 0 2015-09-01-18.07.34.995000 -1234.

1 record(s) selected.

Comment by Shavantha Weerasinghe [ 02/Sep/15 ]

Followed the document :https://docs.wso2.com/display/ESB490/Setting+up+IBM+DB2

Comment by Chanaka Fernando [ 02/Sep/15 ]

Hi Shavantha,

This error is occurring due to some issue with the db2 client libraries and permissions. You can find more information on [1] and [2]

[1] https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014780922

[2] http://forum.spring.io/forum/spring-projects/roo/99065-spring-roo-db2-introspection-fails

Comment by Shavantha Weerasinghe [ 02/Sep/15 ]

closing this ticket. I added an updated library and started ESB and the issue was resolved. I will be reporting a document jira to get the documentation updated it was identified that db2jcc4.jar was the required jira and not db2jcc.jar and db2jcc_license_c0u.jar as mentioned on https://docs.wso2.com/display/ESB490/Setting+up+IBM+DB2





[ESBJAVA-4143] Client side TCP connection is not closed for the string recordDelimiter Created: 01/Sep/15  Updated: 01/Sep/15  Resolved: 01/Sep/15

Status: Resolved
Project: WSO2 ESB
Component/s: Transport
Affects Version/s: 4.9.0 - RC1
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: prabath ariyarathna Assignee: Kasun Indrasiri
Resolution: Not a bug 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   

Followed the 3rd proxy sample which mentioned in the sample documentation[1]. Request is successfully sent to the back-end but no response return to the client side.

[1] = https://wso2.org/jira/browse/DOCUMENTATION-1461






[ESBJAVA-4142] First request sent for tenants (after tenant unloading/ server restart) fails. Created: 01/Sep/15  Updated: 02/Sep/15  Resolved: 02/Sep/15

Status: Resolved
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.9.0 - RC1
Fix Version/s: None

Type: Bug Priority: High
Reporter: Sandapa Handakumbura Assignee: Chanaka Fernando
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Pack : ESB 4.9.0 RC1 (standalone)
Java version : jdk1.7.0_79


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

 Description   
[2015-09-01 14:23:03,052]  INFO - TenantAxisUtils Loaded tenant moon.com in 908 ms
[2015-09-01 14:23:03,064]  INFO - TimeoutHandler This engine will expire all callbacks after : 120 seconds, irrespective of the timeout action, after the specified or optional timeout
[2015-09-01 14:23:03,073] ERROR - ServerWorker Error processing POST reguest for : /services/t/moon.com/Test1. Error detail: null. 
java.util.EmptyStackException
	at java.util.Stack.peek(Stack.java:102)
	at java.util.Stack.pop(Stack.java:84)
	at org.wso2.carbon.context.internal.CarbonContextDataHolder.endTenantFlow(CarbonContextDataHolder.java:1291)
	at org.wso2.carbon.context.PrivilegedCarbonContext.endTenantFlow(PrivilegedCarbonContext.java:75)
	at org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.processRequest(MultitenantMessageReceiver.java:229)
	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.processEntityEnclosingRequest(ServerWorker.java:395)
	at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:142)
	at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
[2015-09-01 14:23:03,115] ERROR - PassThroughHttpSender Failed to submit the response
java.lang.NullPointerException
	at org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)
	at org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)
	at org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)
	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
	at org.wso2.carbon.core.multitenancy.transports.TenantTransportSender.invoke(TenantTransportSender.java:231)
	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
	at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:208)
	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.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:297)
	at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:525)
	at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
	at org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.processResponse(MultitenantMessageReceiver.java:166)
	at org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.receive(MultitenantMessageReceiver.java:82)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
	at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
	at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
[2015-09-01 14:23:03,118] ERROR - Axis2Sender Content-Type:text/xml; charset=UTF-8,<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body/></soapenv:Envelope> Unexpected error sending message back
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.wso2.carbon.core.multitenancy.transports.TenantTransportSender.invoke(TenantTransportSender.java:231)
	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
	at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:208)
	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.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:297)
	at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:525)
	at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
	at org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.processResponse(MultitenantMessageReceiver.java:166)
	at org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.receive(MultitenantMessageReceiver.java:82)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
	at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
	at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
	at org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)
	at org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)
	at org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)
	... 21 more


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

Checked both (after tenant unloading/ server restart) scenarios with the 4.9.0-RC2 pack but couldn't reproduce. Hence marked as resolved.





[ESBJAVA-4140] NullPointerException seen when server is kept idle (Ghost Deployer is enabled). Created: 01/Sep/15  Updated: 01/Sep/15

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

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

Pack : ESB 4.9.0 RC1 (standalone)
Java version : jdk1.7.0_79


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

 Description   

Occurs during tenant loading as well.

[2015-09-01 12:38:07,247]  INFO - ServiceUnloader Unloading actual Service Group : Echo and adding a Ghost Service Group. Tenant Domain: carbon.super
[2015-09-01 12:38:07,249]  INFO - DeploymentInterceptor Removing Axis2 Service: echo {super-tenant}
[2015-09-01 12:38:07,465] ERROR - CGAgentAdminService Could not retrieve the service publish flag for service 'echo'
java.lang.NullPointerException
	at org.wso2.carbon.cloud.gateway.agent.service.CGAgentAdminService.getServiceStatus(CGAgentAdminService.java:365)
	at org.wso2.carbon.cloud.gateway.agent.observer.CGServiceObserver.serviceUpdate(CGServiceObserver.java:52)
	at org.apache.axis2.engine.AxisConfiguration.notifyObservers(AxisConfiguration.java:666)
	at org.apache.axis2.engine.AxisConfiguration.removeServiceGroup(AxisConfiguration.java:530)
	at org.wso2.carbon.service.mgt.multitenancy.ServiceUnloader.unloadInactiveServices(ServiceUnloader.java:117)
	at org.wso2.carbon.service.mgt.multitenancy.ServiceUnloader.unload(ServiceUnloader.java:71)
	at org.wso2.carbon.core.multitenancy.GenericArtifactUnloader.run(GenericArtifactUnloader.java:44)
	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)
[2015-09-01 12:38:07,467] ERROR - CGServiceObserver Error while updating the service event for the service 'echo'
[2015-09-01 12:38:07,469]  INFO - GhostDeployerUtils Deploying Ghost Axis2 Service: echo
[2015-09-01 12:38:07,470] ERROR - CGAgentAdminService Could not retrieve the service publish flag for service 'echo'
java.lang.NullPointerException
	at org.wso2.carbon.cloud.gateway.agent.service.CGAgentAdminService.getServiceStatus(CGAgentAdminService.java:365)
	at org.wso2.carbon.cloud.gateway.agent.observer.CGServiceObserver.serviceUpdate(CGServiceObserver.java:52)
	at org.apache.axis2.engine.AxisConfiguration.notifyObservers(AxisConfiguration.java:666)
	at org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.java:420)
	at org.wso2.carbon.service.mgt.multitenancy.ServiceUnloader.unloadInactiveServices(ServiceUnloader.java:131)
	at org.wso2.carbon.service.mgt.multitenancy.ServiceUnloader.unload(ServiceUnloader.java:71)
	at org.wso2.carbon.core.multitenancy.GenericArtifactUnloader.run(GenericArtifactUnloader.java:44)
	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)
[2015-09-01 12:38:07,471] ERROR - CGServiceObserver Error while updating the service event for the service 'echo'
[2015-09-01 12:59:04,738]  INFO - TenantAxisUtils Starting to clean tenant : moon.com
[2015-09-01 12:59:04,948]  INFO - TenantServiceBusInitializer Shutting down the persistence manager for the tenant: moon.com
[2015-09-01 12:59:04,953]  INFO - TenantAxisUtils Cleaned up tenant moon.com





[ESBJAVA-4139] Allows to delete proxy services that are deployed via a CApp. For other artifacts 'delete' is disabled. Created: 01/Sep/15  Updated: 01/Sep/15

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

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

Pack : ESB 4.9.0 RC1 (standalone)
Java version : jdk1.7.0_79


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




[ESBJAVA-4138] Traces for runtime exceptions occurred at mediation are not getting logged Created: 01/Sep/15  Updated: 01/Sep/15  Resolved: 01/Sep/15

Status: Resolved
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0 - RC2

Type: Bug Priority: Highest
Reporter: Isuru Udana Loku Narangoda Assignee: Isuru Udana Loku Narangoda
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

Probably due to following code segment in AbstractListMediator

catch (Exception ex) {
       throw new SynapseException(msg, e);
} 


 Comments   
Comment by Isuru Udana Loku Narangoda [ 01/Sep/15 ]

Fixed with
https://github.com/wso2/wso2-synapse/pull/336





[ESBJAVA-4137] Empty POST body with application/json content-type throws an Error Created: 01/Sep/15  Updated: 01/Sep/15

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

Type: Bug Priority: Normal
Reporter: Yasassri Rathnayake Assignee: Kasun Indrasiri
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 recreate

1. Create the following API.

<api xmlns="http://ws.apache.org/ns/synapse" name="api01" context="/api01">
   <resource methods="POST">
      <inSequence>
         <property name="FORCE_POST_PUT_NOBODY" value="true" scope="axis2" type="BOOLEAN"/>
         <log>
            <property name="In Sequence" value="In the API 01 In Seq 11"/>
         </log>
         <send>
            <endpoint>
               <address uri="http://10.100.5.112:8080/postesb"/>
            </endpoint>
         </send>
      </inSequence>
   </resource>
</api>

2. Now send a POST request with Content-type : application/json to this api with an empty post body.

Issue : Following exception is thrown. This works fine for text/xml and application/xml

[2015-09-01 10:12:14,457] DEBUG - wire >> "POST /api01 HTTP/1.1[\r][\n]"
[2015-09-01 10:12:14,457] DEBUG - wire >> "Accept-Encoding: gzip,deflate[\r][\n]"
[2015-09-01 10:12:14,457] DEBUG - wire >> "Content-Type: application/json;charset=UTF-8[\r][\n]"
[2015-09-01 10:12:14,458] DEBUG - wire >> "Content-Length: 24[\r][\n]"
[2015-09-01 10:12:14,458] DEBUG - wire >> "Host: 10.100.5.112:8280[\r][\n]"
[2015-09-01 10:12:14,458] DEBUG - wire >> "Connection: Keep-Alive[\r][\n]"
[2015-09-01 10:12:14,458] DEBUG - wire >> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
[2015-09-01 10:12:14,459] DEBUG - wire >> "[\r][\n]"
[2015-09-01 10:12:14,459] DEBUG - wire >> "<test>TESTCONTENT</test>"
[2015-09-01 10:12:14,461] ERROR - JsonUtil #newJsonPayload. Could not save JSON payload. Invalid input stream found. MessageID: urn:uuid:64d4587b-61b0-4eb7-aab5-ad844c938f8b
[2015-09-01 10:12:14,462] ERROR - DeferredMessageBuilder Error building message
org.apache.axis2.AxisFault: No JSON payload provided.
	at org.apache.synapse.commons.json.JsonStreamBuilder.processDocument(JsonStreamBuilder.java:52)
	at org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:138)
	at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:133)
	at org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:98)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72)
	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.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)
[2015-09-01 10:12:14,463] ERROR - RelayUtils Error while building Passthrough stream
org.apache.axis2.AxisFault: No JSON payload provided.
	at org.apache.synapse.commons.json.JsonStreamBuilder.processDocument(JsonStreamBuilder.java:52)
	at org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:138)
	at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:133)
	at org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:98)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72)
	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.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)
[2015-09-01 10:12:14,464] ERROR - SequenceMediator Error while building message
org.apache.axis2.AxisFault: Error while building Passthrough stream
	at org.apache.synapse.transport.passthru.util.RelayUtils.handleException(RelayUtils.java:283)
	at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:142)
	at org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:98)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72)
	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.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: org.apache.axis2.AxisFault: No JSON payload provided.
	at org.apache.synapse.commons.json.JsonStreamBuilder.processDocument(JsonStreamBuilder.java:52)
	at org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:138)
	at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:133)
	... 18 more
[2015-09-01 10:12:14,465] ERROR - api01 Error while building message
org.apache.axis2.AxisFault: Error while building Passthrough stream
	at org.apache.synapse.transport.passthru.util.RelayUtils.handleException(RelayUtils.java:283)
	at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:142)
	at org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:98)
	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72)
	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.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: org.apache.axis2.AxisFault: No JSON payload provided.
	at org.apache.synapse.commons.json.JsonStreamBuilder.processDocument(JsonStreamBuilder.java:52)
	at org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:138)
	at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:133)
	... 18 more
[2015-09-01 10:12:14,467]  INFO - LogMediator To: /api01, MessageID: urn:uuid:64d4587b-61b0-4eb7-aab5-ad844c938f8b, Direction: request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 0, ERROR_MESSAGE = Error while building message, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body/></soapenv:Envelope>
[2015-09-01 10:12:14,468] DEBUG - wire << "HTTP/1.1 202 Accepted[\r][\n]"
[2015-09-01 10:12:14,468] DEBUG - wire << "Date: Tue, 01 Sep 2015 04:42:14 GMT[\r][\n]"
[2015-09-01 10:12:14,468] DEBUG - wire << "Transfer-Encoding: chunked[\r][\n]"
[2015-09-01 10:12:14,468] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
[2015-09-01 10:12:14,469] DEBUG - wire << "[\r][\n]"
[2015-09-01 10:12:14,469] DEBUG - wire << "0[\r][\n]"
[2015-09-01 10:12:14,469] DEBUG - wire << "[\r][\n]"





[ESBJAVA-4136] ESB BAM/Mediation data publishing does not publish mediation stats data when there is a Iterate/Aggregate mediator in a Proxy service Created: 01/Sep/15  Updated: 01/Sep/15  Resolved: 01/Sep/15

Status: Resolved
Project: WSO2 ESB
Component/s: Statistics
Affects Version/s: 4.9.0 - Beta
Fix Version/s: 4.9.0 - RC2

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

Attachments: PNG File BAM-data-stream.png     XML File BE.xml     PNG File ESB-mediation-data-publisher-config.png     XML File insuranceAgreement.xml     XML File partyService.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   

Create 2 proxy services and backend using given synapse configs. Then configure the BAM data publisher in the ESB side. Send the curl request [1]. In BAM side explore the cassandra cluster and verify that mediation stats data are not published to BAM. Ideally for each request, 2 mediation stats data entries needs to be published to BAM.

When you set this up, start the BAM with default configuration and set the port offset 1 at the ESB side.

[1] curl -v -d "<foo/>" -H "Content-Type: application/xml" http://localhost:8281/services/insuranceAgreement



 Comments   
Comment by Ravindra Ranwala [ 01/Sep/15 ]

All the necessary screen shots are attached which may be useful to reproduce/validate the issue.

Comment by Ravindra Ranwala [ 01/Sep/15 ]

The pull request [1] was sent for review and merge. Please resolve the issue after merging the pull request [1] to the public branch.

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

Comment by Ravindra Ranwala [ 01/Sep/15 ]

Automation test ESBJAVA3269_StatisticsCloneTestCase was executed in tests-other module. Also functionality was tested with ESB and BAM and the scenario was working fine.

Comment by Ravindra Ranwala [ 01/Sep/15 ]

Pull request [1] was merged, hence resolving the issue.

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





[ESBJAVA-4135] Mouse click on cApp link which is deployed with HTTP Endpoint OR Template Endpoint with relevant Template via CAR app giving error at ESB. Created: 31/Aug/15  Updated: 03/Sep/15

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: Kasun Indrasiri
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


Attachments: File template_and_ep2_1.0.0.car     File test555_1.0.0.car    
Severity: Major
Estimated Complexity: Moderate

 Description   

Steps:
1. Create a http endpoint at devS and deploy the CAR into ESB and click deployed cApp link to view the list of artifacts.
OR
2. Create a Template & a Template Endpoint at devS and deploy the CAR into ESB and click on cApp link.

When click on cApp link,

  • ESB page shows nothing
  • Error log displayed like below
[2015-08-31 18:42:28,113] ERROR - JspTilesRequestContext JSPException while including path '/carbonapps/application_info.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: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)
Caused by: org.apache.jasper.JasperException: An exception occurred processing JSP page /carbonapps/application_info.jsp at line 330

327: 
328:                     if (CarbonUIUtil.isContextRegistered(config, "/synapse-apps/")) {
329:                 %>
330:                 <jsp:include page="../synapse-apps/index.jsp"/>
331:                 <%
332:                     }
333: 


Stacktrace:
	at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
	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: org.apache.jasper.JasperException: An exception occurred processing JSP page /synapse-apps/index.jsp at line 136

133:     <tbody>
134:     <%
135:         for (EndpointMetadata epData : endpoints) {
136:             if (epData.getType().equals("WSDL")) {
137:                 epType = "wsdl";
138:             }
139:             else {


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.jsp.carbonapps.application_005finfo_jsp._jspService(application_005finfo_jsp.java:605)
	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
Caused by: java.lang.NullPointerException
	at org.apache.jsp.synapse_002dapps.index_jsp._jspService(index_jsp.java:272)
	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)
	... 124 more
[2015-08-31 18:42:28,118] ERROR - RoleSecurityTagSupport IO Error executing tag: JSPException while including path '/carbonapps/application_info.jsp'. ServletException while including page.
java.io.IOException: JSPException while including path '/carbonapps/application_info.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: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)
[2015-08-31 18:42:28,120] ERROR - RenderTagSupport Error during rendering
javax.servlet.jsp.JspException: IO Error executing tag: JSPException while including path '/carbonapps/application_info.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: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)
Caused by: java.io.IOException: JSPException while including path '/carbonapps/application_info.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





[ESBJAVA-4134] Generic exception when invoking a secured proxy with incorrect credentials Created: 31/Aug/15  Updated: 01/Sep/15

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

Type: Bug Priority: Low
Reporter: Yasassri Rathnayake Assignee: Kasun Indrasiri
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   

Following exception was observed when invoking a secured proxy service with incorrect user credentials, when invoking an nested exception is given with a system error. The error needs to be more specific.

ERROR {org.apache.axis2.engine.AxisEngine} -  The security token could not be authenticated or authorized; nested exception is: 
	javax.security.auth.callback.UnsupportedCallbackException: Check failed : System error {org.apache.axis2.engine.AxisEngine}
org.apache.axis2.AxisFault: The security token could not be authenticated or authorized; nested exception is: 
	javax.security.auth.callback.UnsupportedCallbackException: Check failed : System error
	at org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
	at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
	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.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:395)
	at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:142)
	at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1143)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:618)
	at java.lang.Thread.run(Thread.java:785)
Caused by: org.apache.ws.security.WSSecurityException: The security token could not be authenticated or authorized; nested exception is: 
	javax.security.auth.callback.UnsupportedCallbackException: Check failed : System error
	at org.apache.ws.security.processor.UsernameTokenProcessor.handleUsernameToken(UsernameTokenProcessor.java:180)
	at org.apache.ws.security.processor.UsernameTokenProcessor.handleToken(UsernameTokenProcessor.java:61)
	at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:332)
	at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:249)
	at org.apache.rampart.RampartEngine.process(RampartEngine.java:214)
	at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
	... 10 more
Caused by: javax.security.auth.callback.UnsupportedCallbackException: Check failed : System error
	at org.wso2.carbon.security.util.ServicePasswordCallbackHandler.handle(ServicePasswordCallbackHandler.java:112)
	at org.apache.rampart.TokenCallbackHandler.handle(TokenCallbackHandler.java:116)
	at org.apache.ws.security.processor.UsernameTokenProcessor.handleUsernameToken(UsernameTokenProcessor.java:168)
	... 15 more
TID: [-1234] [] [2015-08-31 12:19:37,428] ERROR {org.apache.synapse.transport.passthru.ServerWorker} -  Error processing POST request for : /services/ProxyService_Secure {org.apache.synapse.transport.passthru.ServerWorker}
org.apache.axis2.AxisFault: The security token could not be authenticated or authorized; nested exception is: 
	javax.security.auth.callback.UnsupportedCallbackException: Check failed : System error
	at org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
	at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
	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.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:395)
	at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:142)
	at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1143)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:618)
	at java.lang.Thread.run(Thread.java:785)
Caused by: org.apache.ws.security.WSSecurityException: The security token could not be authenticated or authorized; nested exception is: 
	javax.security.auth.callback.UnsupportedCallbackException: Check failed : System error
	at org.apache.ws.security.processor.UsernameTokenProcessor.handleUsernameToken(UsernameTokenProcessor.java:180)
	at org.apache.ws.security.processor.UsernameTokenProcessor.handleToken(UsernameTokenProcessor.java:61)
	at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:332)
	at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:249)
	at org.apache.rampart.RampartEngine.process(RampartEngine.java:214)
	at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
	... 10 more
Caused by: javax.security.auth.callback.UnsupportedCallbackException: Check failed : System error
	at org.wso2.carbon.security.util.ServicePasswordCallbackHandler.handle(ServicePasswordCallbackHandler.java:112)
	at org.apache.rampart.TokenCallbackHandler.handle(TokenCallbackHandler.java:116)
	at org.apache.ws.security.processor.UsernameTokenProcessor.handleUsernameToken(UsernameTokenProcessor.java:168)
	... 15 more






[ESBJAVA-4133] Proxy services deployed from File System(Hot Deployed) indicates as deployed from a CAPP Created: 31/Aug/15  Updated: 01/Sep/15  Resolved: 01/Sep/15

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

Type: Bug Priority: Highest
Reporter: Isuru Udana Loku Narangoda Assignee: Nadeeshaan Gunasinghe
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Comments   
Comment by Isuru Udana Loku Narangoda [ 31/Aug/15 ]

Same with the other artifacts as well.

Comment by Sandapa Handakumbura [ 31/Aug/15 ]

Could be the reason for https://wso2.org/jira/browse/ESBJAVA-4128

Comment by Nadeeshaan Gunasinghe [ 01/Sep/15 ]

Fix added with [1] and [2]
[1] https://github.com/wso2/carbon-mediation/pull/423
[2] https://github.com/wso2/wso2-synapse/pull/337





[ESBJAVA-4132] Update the Readme, INSTALL.txt files with Java 1.7 and 1.8 support Created: 31/Aug/15  Updated: 01/Sep/15  Resolved: 01/Sep/15

Status: Resolved
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0 - RC2

Type: Bug Priority: Highest
Reporter: Chanaka Fernando Assignee: Kevin Ratnasekera
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

Need to update all the relevant meta files with this information.



 Comments   
Comment by Kevin Ratnasekera [ 01/Sep/15 ]

fixed with [1]
[1] https://github.com/wso2/product-esb/pull/311





[ESBJAVA-4131] RabbitMQ inbound endpoint - missing properties Created: 30/Aug/15  Updated: 31/Aug/15  Resolved: 31/Aug/15

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

Type: Bug Priority: High
Reporter: Kesavan Yogarajah Assignee: Kesavan Yogarajah
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

Following inbound properties missing in the RabbitMQ inbound endpoint UI.
rabbitmq.connection.retry.count
rabbitmq.connection.retry.interval
rabbitmq.message.content.type



 Comments   
Comment by Kesavan Yogarajah [ 30/Aug/15 ]

Fixed in the PR https://github.com/wso2/carbon-mediation/pull/420





[ESBJAVA-4130] Exception when two proxy services polling from the same ftp location Created: 28/Aug/15  Updated: 02/Sep/15  Resolved: 02/Sep/15

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

Type: Bug Priority: Normal
Reporter: Yasassri Rathnayake Assignee: Kasun Indrasiri
Resolution: Fixed 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   

Setups to Reproduce

1. Create two proxy services similar to the following.

<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="FileTransfer_02"
       transports="https,http,vfs"
       statistics="disable"
       trace="disable"
       startOnLoad="true">
   <target>
      <inSequence>
         <log level="custom">
            <property name="ADI FTP" value="'file 0222222222222222  is Takin place...'"/>
         </log>
         <log level="full"/>
      </inSequence>
      <outSequence/>
      <faultSequence/>
   </target>
   <parameter name="transport.vfs.ActionAfterProcess">MOVE</parameter>
   <parameter name="transport.PollInterval">5</parameter>
   <parameter name="transport.vfs.FileURI">ftp://ftpuser:*******@192.168.18.79/srv/ftp/in</parameter>
   <parameter name="transport.vfs.MoveAfterProcess">file:///home/yasassri/Desktop/QA_TESTING/ESB_4.9/HL7/vfs/out</parameter>
   <parameter name="transport.vfs.MoveAfterFailure">file:///home/yasassri/Desktop/QA_TESTING/ESB_4.9/HL7/vfs/error</parameter>
   <parameter name="transport.vfs.FileNamePattern">.*(xml)</parameter>
   <parameter name="transport.vfs.ContentType">application/xml</parameter>
   <parameter name="transport.vfs.ActionAfterFailure">MOVE</parameter>
   <parameter name="transport.vfs.MaxRetryCount">3</parameter>
   <description/>
</proxy>                              

2. Now add multiple files to the Directory

Issue : Following exceptions were observed. When fils are being processed.

ERROR - VFSTransportListener Error reading file content or attributes : ftp://ftpuser":***@"192.168.18.79/srv/ftp/in/smallxml (9th copy).xml
org.apache.commons.vfs2.FileSystemException: Could not determine the size of "ftp://ftpuser:***@192.168.18.79/srv/ftp/in/smallxml (9th copy).xml" because it is not a file.
	at org.apache.commons.vfs2.provider.DefaultFileContent.getSize(DefaultFileContent.java:131)
	at org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFSTransportListener.java:637)
	at org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:392)
	at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:176)
	at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:123)
	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:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
[2015-08-28 16:50:32,293] ERROR - VFSTransportListener Error processing File URI : ftp://ftpuser":***@"192.168.18.79/srv/ftp/in/smallxml (9th copy).xml
org.apache.axis2.AxisFault: Error reading file content or attributes : ftp://ftpuser":***@"192.168.18.79/srv/ftp/in/smallxml (9th copy).xml
	at org.apache.axis2.transport.base.AbstractTransportListener.handleException(AbstractTransportListener.java:343)
	at org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFSTransportListener.java:750)
	at org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:392)
	at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:176)
	at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:123)
	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: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 determine the size of "ftp://ftpuser:***@192.168.18.79/srv/ftp/in/smallxml (9th copy).xml" because it is not a file.
	at org.apache.commons.vfs2.provider.DefaultFileContent.getSize(DefaultFileContent.java:131)
	at org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFSTransportListener.java:637)
	... 8 more
[2015-08-28 16:50:32,295] ERROR - VFSTransportListener Error moving file : ftp://ftpuser":***@"192.168.18.79/srv/ftp/in/smallxml (9th copy).xml to file:///home/yasassri/Desktop/QA_TESTING/ESB_4.9/HL7/vfs/error
org.apache.commons.vfs2.FileSystemException: Could not copy "ftp://ftpuser:***@192.168.18.79/srv/ftp/in/smallxml (9th copy).xml" because it does not exist.
	at org.apache.commons.vfs2.provider.AbstractFileObject.copyFrom(AbstractFileObject.java:1016)
	at org.apache.commons.vfs2.provider.AbstractFileObject.moveTo(AbstractFileObject.java:1128)
	at org.apache.synapse.transport.vfs.VFSTransportListener.moveOrDeleteAfterProcessing(VFSTransportListener.java:588)
	at org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:414)
	at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:176)
	at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:123)
	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:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
[2015-08-28 16:50:32,296] ERROR - VFSTransportListener File object 'ftp://ftpuser":***@"192.168.18.79/srv/ftp/in/smallxml (9th copy).xml'cloud not be moved, will remain in "locked" state
org.apache.axis2.AxisFault: Error moving file : ftp://ftpuser":***@"192.168.18.79/srv/ftp/in/smallxml (9th copy).xml to file:///home/yasassri/Desktop/QA_TESTING/ESB_4.9/HL7/vfs/error
	at org.apache.axis2.transport.base.AbstractTransportListener.handleException(AbstractTransportListener.java:343)
	at org.apache.synapse.transport.vfs.VFSTransportListener.moveOrDeleteAfterProcessing(VFSTransportListener.java:590)
	at org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:414)
	at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:176)
	at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:123)
	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: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 copy "ftp://ftpuser:***@192.168.18.79/srv/ftp/in/smallxml (9th copy).xml" because it does not exist.
	at org.apache.commons.vfs2.provider.AbstractFileObject.copyFrom(AbstractFileObject.java:1016)
	at org.apache.commons.vfs2.provider.AbstractFileObject.moveTo(AbstractFileObject.java:1128)
	at org.apache.synapse.transport.vfs.VFSTransportListener.moveOrDeleteAfterProcessing(VFSTransportListener.java:588)
	... 8 more
[2015-08-28 16:50:32,366] ERROR - VFSTransportListener Error reading file content or attributes : ftp://ftpuser":***@"192.168.18.79/srv/ftp/in/smallxml (another copy).xml
org.apache.commons.vfs2.FileSystemException: Could not determine the size of "ftp://ftpuser:***@192.168.18.79/srv/ftp/in/smallxml (another copy).xml" because it is not a file.
	at org.apache.commons.vfs2.provider.DefaultFileContent.getSize(DefaultFileContent.java:131)
	at org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFSTransportListener.java:637)
	at org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:392)
	at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:176)
	at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:123)
	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:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
[2015-08-28 16:50:32,366] ERROR - VFSTransportListener Error processing File URI : ftp://ftpuser":***@"192.168.18.79/srv/ftp/in/smallxml (another copy).xml
org.apache.axis2.AxisFault: Error reading file content or attributes : ftp://ftpuser":***@"192.168.18.79/srv/ftp/in/smallxml (another copy).xml
	at org.apache.axis2.transport.base.AbstractTransportListener.handleException(AbstractTransportListener.java:343)
	at org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFSTransportListener.java:750)
	at org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:392)
	at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:176)
	at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:123)
	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: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 determine the size of "ftp://ftpuser:***@192.168.18.79/srv/ftp/in/smallxml (another copy).xml" because it is not a file.
	at org.apache.commons.vfs2.provider.DefaultFileContent.getSize(DefaultFileContent.java:131)
	at org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFSTransportListener.java:637)
	... 8 more
[2015-08-28 16:50:32,367] ERROR - VFSTransportListener Error moving file : ftp://ftpuser":***@"192.168.18.79/srv/ftp/in/smallxml (another copy).xml to file:///home/yasassri/Desktop/QA_TESTING/ESB_4.9/HL7/vfs/error
org.apache.commons.vfs2.FileSystemException: Could not copy "ftp://ftpuser:***@192.168.18.79/srv/ftp/in/smallxml (another copy).xml" because it does not exist.
	at org.apache.commons.vfs2.provider.AbstractFileObject.copyFrom(AbstractFileObject.java:1016)
	at org.apache.commons.vfs2.provider.AbstractFileObject.moveTo(AbstractFileObject.java:1128)
	at org.apache.synapse.transport.vfs.VFSTransportListener.moveOrDeleteAfterProcessing(VFSTransportListener.java:588)
	at org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:414)
	at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:176)
	at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:123)
	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:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
[2015-08-28 16:50:32,368] ERROR - VFSTransportListener File object 'ftp://ftpuser":***@"192.168.18.79/srv/ftp/in/smallxml (another copy).xml'cloud not be moved, will remain in "locked" state
org.apache.axis2.AxisFault: Error moving file : ftp://ftpuser":***@"192.168.18.79/srv/ftp/in/smallxml (another copy).xml to file:///home/yasassri/Desktop/QA_TESTING/ESB_4.9/HL7/vfs/error
	at org.apache.axis2.transport.base.AbstractTransportListener.handleException(AbstractTransportListener.java:343)
	at org.apache.synapse.transport.vfs.VFSTransportListener.moveOrDeleteAfterProcessing(VFSTransportListener.java:590)
	at org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:414)
	at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:176)
	at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:123)
	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: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 copy "ftp://ftpuser:***@192.168.18.79/srv/ftp/in/smallxml (another copy).xml" because it does not exist.
	at org.apache.commons.vfs2.provider.AbstractFileObject.copyFrom(AbstractFileObject.java:1016)
	at org.apache.commons.vfs2.provider.AbstractFileObject.moveTo(AbstractFileObject.java:1128)
	at org.apache.synapse.transport.vfs.VFSTransportListener.moveOrDeleteAfterProcessing(VFSTransportListener.java:588)
	... 8 more


 Comments   
Comment by viraj senevirathne [ 02/Sep/15 ]

fixed with https://github.com/wso2/wso2-synapse/pull/343





[ESBJAVA-4129] MQTT inbound error log inconsistency Created: 28/Aug/15  Updated: 31/Aug/15  Resolved: 31/Aug/15

Status: Resolved
Project: WSO2 ESB
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0 - RC2, 4.9.0

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

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

 Description   

when trying to deploy mqtt inbound which is bound already existing mqtt inbound port following error log is visible but it does not show the occupied port

Caused by: org.apache.synapse.SynapseException: Client ID: ubuntu.1440065428126 Server Host: 192.168.48.62 Server Port: 192.168.48.62 is bound to existing MQTT Inbound Endpoint.
at org.wso2.carbon.inbound.endpoint.protocol.mqtt.MqttClientManager.getMqttClient(MqttClientManager.java:91)
at org.wso2.carbon.inbound.endpoint.protocol.mqtt.MqttConnectionFactory.createMqttAsyncClient(MqttConnectionFactory.java:214)
at org.wso2.carbon.inbound.endpoint.protocol.mqtt.MqttConnectionFactory.getMqttAsyncClient(MqttConnectionFactory.java:156)
at org.wso2.carbon.inbound.endpoint.protocol.mqtt.MqttListener.initAsyncClient(MqttListener.java:163)
at org.wso2.carbon.inbound.endpoint.protocol.mqtt.MqttListener.init(MqttListener.java:157)
at org.apache.synapse.inbound.InboundEndpoint.init(InboundEndpoint.java:62)
... 19 more



 Comments   
Comment by Kevin Ratnasekera [ 28/Aug/15 ]

fixed with [1]
[1] https://github.com/wso2/carbon-mediation/pull/418





[ESBJAVA-4128] Artifacts that are hot deployed, gets undeployed when updating master source view. Created: 28/Aug/15  Updated: 01/Sep/15  Resolved: 01/Sep/15

Status: Resolved
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.9.0 - RC1
Fix Version/s: None

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

Pack : ESB 4.9.0 RC1 (standalone)
Java version : jdk1.7.0_79


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

 Description   

Steps to reproduce :

1. Copy any artifact (Endpoints, Sequences, etc..) to /repository/deployment/server/synapse-configs/default/ folder and let it get deployed.
2. Check whether above config is available in master source view and Update the master source view.

Copied artifact gets undeployed. Also, cannot hot deploy the same artifact again.

2015-08-28 14:09:34,007]  INFO - SequenceDeployer Sequence named 'DeleteAccountIn' has been deployed from file : /home/sandapa/software/esb/4.9.0/RC1FINAL/wso2esb-4.9.0-RC1/repository/deployment/server/synapse-configs/default/sequences/DeleteAccountIn.xml
[2015-08-28 14:13:19,048]  INFO - EndpointDeployer Endpoint named 'EP001' has been deployed from file : /home/sandapa/software/esb/4.9.0/RC1FINAL/wso2esb-4.9.0-RC1/repository/deployment/server/synapse-configs/default/endpoints/EP001.xml
[2015-08-28 14:13:29,684]  INFO - SynapseTaskManager Shutting down the task manager
[2015-08-28 14:13:29,788]  INFO - XMLConfigurationBuilder Generating the Synapse configuration model by parsing the XML configuration
[2015-08-28 14:13:30,045]  INFO - NTaskTaskManager Initialized task manager. Tenant [-1234]
[2015-08-28 14:13:49,053]  INFO - EndpointDeployer Endpoint named 'EP001' has been undeployed
[2015-08-28 14:13:49,055]  INFO - SequenceDeployer Sequence named 'DeleteAccountIn' has been undeployed


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

Fix added with [1] and [2]
[1] https://github.com/wso2/carbon-mediation/pull/423
[2] https://github.com/wso2/wso2-synapse/pull/337





[ESBJAVA-4127] [CApp] Exception Observed when uploading a CAR file Created: 28/Aug/15  Updated: 03/Sep/15  Resolved: 03/Sep/15

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

Type: Bug Priority: Normal
Reporter: Yasassri Rathnayake Assignee: Ravindra Ranwala
Resolution: Fixed 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


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

 Description   

Following exception was observed when uploading a CAR file. This was observed intermittently. After this exception the CAR was not deployed at all and couldn't re-upload the CAR again, had to restart the server. The CAR file is attached.

ERROR - ProxyServiceDeployer ProxyService Deployment from the file : /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1440606493104SecuredProxy1to5_1.0.0.car/SecuredProxy2_1.0.0/SecuredProxy2-1.0.0.xml : Failed.
org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
	at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:578)
	at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:79)
	at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:811)
	at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:605)
	at org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:80)
	at org.wso2.carbon.proxyadmin.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:46)
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:194)
	at org.wso2.carbon.application.deployer.synapse.SynapseAppDeployer.deployArtifacts(SynapseAppDeployer.java:134)
	at org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
	at org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)
	at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
	at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
	at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
	at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
	at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
	at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:93)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:138)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:309)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1143)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:618)
	at java.lang.Thread.run(Thread.java:785)
[2015-08-26 16:28:13,334] ERROR - AbstractSynapseArtifactDeployer Deployment of the Synapse Artifact from file : /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1440606493104SecuredProxy1to5_1.0.0.car/SecuredProxy2_1.0.0/SecuredProxy2-1.0.0.xml : Failed!
org.apache.synapse.deployers.SynapseArtifactDeploymentException: ProxyService Deployment from the file : /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1440606493104SecuredProxy1to5_1.0.0.car/SecuredProxy2_1.0.0/SecuredProxy2-1.0.0.xml : Failed.
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.handleSynapseArtifactDeploymentError(AbstractSynapseArtifactDeployer.java:475)
	at org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:112)
	at org.wso2.carbon.proxyadmin.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:46)
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:194)
	at org.wso2.carbon.application.deployer.synapse.SynapseAppDeployer.deployArtifacts(SynapseAppDeployer.java:134)
	at org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
	at org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)
	at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
	at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
	at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
	at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
	at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
	at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:93)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:138)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:309)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1143)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:618)
	at java.lang.Thread.run(Thread.java:785)
Caused by: org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
	at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:578)
	at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:79)
	at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:811)
	at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:605)
	at org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:80)
	... 22 more
[2015-08-26 16:28:13,354]  INFO - AbstractSynapseArtifactDeployer The file has been backed up into : NO_BACKUP_ON_WORKER.INFO
[2015-08-26 16:28:13,354] ERROR - AbstractSynapseArtifactDeployer Deployment of synapse artifact failed. Error reading /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1440606493104SecuredProxy1to5_1.0.0.car/SecuredProxy2_1.0.0/SecuredProxy2-1.0.0.xml : ProxyService Deployment from the file : /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1440606493104SecuredProxy1to5_1.0.0.car/SecuredProxy2_1.0.0/SecuredProxy2-1.0.0.xml : Failed.
org.apache.axis2.deployment.DeploymentException: ProxyService Deployment from the file : /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1440606493104SecuredProxy1to5_1.0.0.car/SecuredProxy2_1.0.0/SecuredProxy2-1.0.0.xml : Failed.
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:201)
	at org.wso2.carbon.application.deployer.synapse.SynapseAppDeployer.deployArtifacts(SynapseAppDeployer.java:134)
	at org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
	at org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)
	at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
	at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
	at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
	at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
	at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
	at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:93)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:138)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:309)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1143)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:618)
	at java.lang.Thread.run(Thread.java:785)
Caused by: org.apache.synapse.deployers.SynapseArtifactDeploymentException: ProxyService Deployment from the file : /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1440606493104SecuredProxy1to5_1.0.0.car/SecuredProxy2_1.0.0/SecuredProxy2-1.0.0.xml : Failed.
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.handleSynapseArtifactDeploymentError(AbstractSynapseArtifactDeployer.java:475)
	at org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:112)
	at org.wso2.carbon.proxyadmin.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:46)
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:194)
	... 20 more
Caused by: org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
	at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:578)
	at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:79)
	at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:811)
	at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:605)
	at org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:80)
	... 22 more
[2015-08-26 16:28:13,357] ERROR - ApplicationManager Error occurred while deploying Carbon Application
org.apache.axis2.deployment.DeploymentException: ProxyService Deployment from the file : /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1440606493104SecuredProxy1to5_1.0.0.car/SecuredProxy2_1.0.0/SecuredProxy2-1.0.0.xml : Failed.
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:213)
	at org.wso2.carbon.application.deployer.synapse.SynapseAppDeployer.deployArtifacts(SynapseAppDeployer.java:134)
	at org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
	at org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)
	at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
	at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
	at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
	at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
	at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
	at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:93)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:138)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:309)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1143)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:618)
	at java.lang.Thread.run(Thread.java:785)
Caused by: org.apache.axis2.deployment.DeploymentException: ProxyService Deployment from the file : /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1440606493104SecuredProxy1to5_1.0.0.car/SecuredProxy2_1.0.0/SecuredProxy2-1.0.0.xml : Failed.
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:201)
	... 20 more
Caused by: org.apache.synapse.deployers.SynapseArtifactDeploymentException: ProxyService Deployment from the file : /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1440606493104SecuredProxy1to5_1.0.0.car/SecuredProxy2_1.0.0/SecuredProxy2-1.0.0.xml : Failed.
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.handleSynapseArtifactDeploymentError(AbstractSynapseArtifactDeployer.java:475)
	at org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:112)
	at org.wso2.carbon.proxyadmin.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:46)
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:194)
	... 20 more
Caused by: org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
	at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:578)
	at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:79)
	at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:811)
	at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:605)
	at org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:80)
	... 22 more


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

Observed tha same in a cluster setup, in one worker node,

[-1234] [] [2015-09-01 05:11:58,325] ERROR {org.wso2.carbon.proxyadmin.ProxyServiceDeployer} -  ProxyService Deployment from the file : /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1441084318103Cluster_CAPP_1.0.0.car/ProxyService_Secure_1.0.0/ProxyService_Secure-1.0.0.xml : Failed. {org.wso2.carbon.proxyadmin.ProxyServiceDeployer}
org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
	at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:578)
	at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:79)
	at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:811)
	at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:605)
	at org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:80)
	at org.wso2.carbon.proxyadmin.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:46)
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:194)
	at org.wso2.carbon.application.deployer.synapse.SynapseAppDeployer.deployArtifacts(SynapseAppDeployer.java:134)
	at org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
	at org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)
	at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
	at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
	at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
	at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
	at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
	at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:93)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:138)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:309)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1143)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:618)
	at java.lang.Thread.run(Thread.java:785)
TID: [-1234] [] [2015-09-01 05:11:58,329] ERROR {org.apache.synapse.deployers.AbstractSynapseArtifactDeployer} -  Deployment of the Synapse Artifact from file : /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1441084318103Cluster_CAPP_1.0.0.car/ProxyService_Secure_1.0.0/ProxyService_Secure-1.0.0.xml : Failed! {org.apache.synapse.deployers.AbstractSynapseArtifactDeployer}
org.apache.synapse.deployers.SynapseArtifactDeploymentException: ProxyService Deployment from the file : /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1441084318103Cluster_CAPP_1.0.0.car/ProxyService_Secure_1.0.0/ProxyService_Secure-1.0.0.xml : Failed.
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.handleSynapseArtifactDeploymentError(AbstractSynapseArtifactDeployer.java:475)
	at org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:112)
	at org.wso2.carbon.proxyadmin.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:46)
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:194)
	at org.wso2.carbon.application.deployer.synapse.SynapseAppDeployer.deployArtifacts(SynapseAppDeployer.java:134)
	at org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
	at org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)
	at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
	at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
	at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
	at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
	at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
	at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:93)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:138)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:309)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1143)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:618)
	at java.lang.Thread.run(Thread.java:785)
Caused by: org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
	at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:578)
	at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:79)
	at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:811)
	at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:605)
	at org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:80)
	... 22 more
TID: [-1234] [] [2015-09-01 05:11:58,332]  INFO {org.apache.synapse.deployers.AbstractSynapseArtifactDeployer} -  The file has been backed up into : NO_BACKUP_ON_WORKER.INFO {org.apache.synapse.deployers.AbstractSynapseArtifactDeployer}
TID: [-1234] [] [2015-09-01 05:11:58,333] ERROR {org.apache.synapse.deployers.AbstractSynapseArtifactDeployer} -  Deployment of synapse artifact failed. Error reading /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1441084318103Cluster_CAPP_1.0.0.car/ProxyService_Secure_1.0.0/ProxyService_Secure-1.0.0.xml : ProxyService Deployment from the file : /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1441084318103Cluster_CAPP_1.0.0.car/ProxyService_Secure_1.0.0/ProxyService_Secure-1.0.0.xml : Failed. {org.apache.synapse.deployers.AbstractSynapseArtifactDeployer}
org.apache.axis2.deployment.DeploymentException: ProxyService Deployment from the file : /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1441084318103Cluster_CAPP_1.0.0.car/ProxyService_Secure_1.0.0/ProxyService_Secure-1.0.0.xml : Failed.
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:201)
	at org.wso2.carbon.application.deployer.synapse.SynapseAppDeployer.deployArtifacts(SynapseAppDeployer.java:134)
	at org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
	at org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)
	at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
	at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
	at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
	at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
	at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
	at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:93)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:138)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:309)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1143)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:618)
	at java.lang.Thread.run(Thread.java:785)
Caused by: org.apache.synapse.deployers.SynapseArtifactDeploymentException: ProxyService Deployment from the file : /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1441084318103Cluster_CAPP_1.0.0.car/ProxyService_Secure_1.0.0/ProxyService_Secure-1.0.0.xml : Failed.
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.handleSynapseArtifactDeploymentError(AbstractSynapseArtifactDeployer.java:475)
	at org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:112)
	at org.wso2.carbon.proxyadmin.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:46)
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:194)
	... 20 more
Caused by: org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
	at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:578)
	at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:79)
	at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:811)
	at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:605)
	at org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:80)
	... 22 more
TID: [-1234] [] [2015-09-01 05:11:58,336] ERROR {org.wso2.carbon.application.deployer.internal.ApplicationManager} -  Error occurred while deploying Carbon Application {org.wso2.carbon.application.deployer.internal.ApplicationManager}
org.apache.axis2.deployment.DeploymentException: ProxyService Deployment from the file : /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1441084318103Cluster_CAPP_1.0.0.car/ProxyService_Secure_1.0.0/ProxyService_Secure-1.0.0.xml : Failed.
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:213)
	at org.wso2.carbon.application.deployer.synapse.SynapseAppDeployer.deployArtifacts(SynapseAppDeployer.java:134)
	at org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
	at org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)
	at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
	at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
	at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
	at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
	at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
	at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:93)
	at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:138)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:309)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1143)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:618)
	at java.lang.Thread.run(Thread.java:785)
Caused by: org.apache.axis2.deployment.DeploymentException: ProxyService Deployment from the file : /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1441084318103Cluster_CAPP_1.0.0.car/ProxyService_Secure_1.0.0/ProxyService_Secure-1.0.0.xml : Failed.
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:201)
	... 20 more
Caused by: org.apache.synapse.deployers.SynapseArtifactDeploymentException: ProxyService Deployment from the file : /home/esb490/esb49cl2/esbsetup/wso2esb-4.9.0-RC1/tmp/carbonapps/-1234/1441084318103Cluster_CAPP_1.0.0.car/ProxyService_Secure_1.0.0/ProxyService_Secure-1.0.0.xml : Failed.
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.handleSynapseArtifactDeploymentError(AbstractSynapseArtifactDeployer.java:475)
	at org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:112)
	at org.wso2.carbon.proxyadmin.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:46)
	at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:194)
	... 20 more
Caused by: org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
	at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:578)
	at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:79)
	at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:811)
	at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:605)
	at org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:80)
	... 22 more
TID: [-1234] [] [2015-09-01 05:11:58,339]  INFO {org.wso2.carbon.application.deployer.internal.ApplicationManager} -  Reverting successfully deployed artifcats in this CApp : CarApp01_1.0.0 {org.wso2.carbon.application.deployer.internal.ApplicationManager}

Comment by Ravindra Ranwala [ 03/Sep/15 ]

Tested uploading and removing the given capp 3 times, but could not reproduce the issue in RC2 pack. Therefore I am resolving the issue here. If you get the issue again please reopen this ticket.





[ESBJAVA-4126] Exception when editing Disabled proxy services Created: 28/Aug/15  Updated: 03/Sep/15

Status: Open
Project: WSO2 ESB
Component/s: Proxy Services Management
Affects Version/s: 4.8.1, 4.9.0 - Beta
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-RC1.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 Selection_265.png    
Severity: Major
Estimated Complexity: Moderate
Test cases added: Yes

 Description   

Steps to Reproduce

1. Create a proxy service.
3. Open the created proxy service and disable the proxy service.
4. Now try to edit the service. (You need to click on finish)

Issue :

1. Cannot edit the disabled proxy service.
2. The given error is not specific. (If this is the intended behavior)

ERROR - ProxyServiceAdmin Invalid proxy service definition :: The system is attempting to access an inactive service: trest
org.apache.axis2.AxisFault: The system is attempting to access an inactive service: trest
	at org.apache.axis2.engine.AxisConfiguration.getService(AxisConfiguration.java:1048)
	at org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin.modifyProxyService(ProxyServiceAdmin.java:323)
	at org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin.modifyProxy(ProxyServiceAdmin.java:700)
	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.proxyadmin.stub.ProxyServiceAdminStub.modifyProxy(ProxyServiceAdminStub.java:1548)
	at org.wso2.carbon.proxyadmin.ui.client.ProxyServiceAdminClient.modifyProxy(ProxyServiceAdminClient.java:116)
	at org.apache.jsp.proxyservices.submit_jsp._jspService(submit_jsp.java:127)
	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.GeneratedMethodAccessor42.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: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: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)
[2015-08-28 11:52:01,668] ERROR - ProxyServiceAdminClient Unable to modify proxy service: trest
org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminProxyAdminException: ProxyServiceAdminProxyAdminException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
	at java.lang.Class.newInstance(Class.java:374)
	at org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminStub.modifyProxy(ProxyServiceAdminStub.java:1573)
	at org.wso2.carbon.proxyadmin.ui.client.ProxyServiceAdminClient.modifyProxy(ProxyServiceAdminClient.java:116)
	at org.apache.jsp.proxyservices.submit_jsp._jspService(submit_jsp.java:127)
	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.GeneratedMethodAccessor42.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: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: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)






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

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

Type: Bug Priority: Normal
Reporter: Jason De Silva Assignee: Kasun Indrasiri
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>




Generated at Thu Sep 03 14:18:57 IST 2015 using JIRA 6.0.1#6096-sha1:e4a48bd73c6b8a4d99c824976ce5808b4c85857d.