[Dev] Carbon component writing pom xml error

2014-10-03 Thread Buddhi Senarathna
Hi All,

I wrote pom.xml file to build the stub to create my carbon component. When
i build it, it builds the bundle without giving any error. but it indicates
an error in *execution* tag and it says Plugin execution not covered by
lifecycle configuration. to fix that i had put all the
*plugins../plugins* part inside
*pluginManagement../pluginManagement* tag. after i had done it, it
gives *project build error: Unknown packaging:* bundle in *packaging*
tag. how do i fix that?

find my pom.xml here.

project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd;
modelVersion4.0.0/modelVersion
parent
groupIdorg.wso2.carbon/groupId
artifactIdadd-number-components/artifactId
version4.2.0/version
/parent
artifactIdorg.wso2.carbon.add.num.stub/artifactId
packagingbundle/packaging
nameWSO2 Carbon - Add Number Stub/name

dependencies
dependency
groupIdorg.apache.axis2.wso2/groupId
artifactIdaxis2/artifactId
version1.6.1.wso2v10/version
/dependency
dependency
groupIdorg.apache.ws.commons.axiom.wso2/groupId
artifactIdaxiom/artifactId
version1.2.11.wso2v4/version
/dependency
dependency
groupIdwsdl4j.wso2/groupId
artifactIdwsdl4j/artifactId
version1.6.2.wso2v4/version
/dependency
/dependencies

build
pluginManager
plugins
plugin
groupIdorg.apache.felix/groupId
artifactIdmaven-bundle-plugin/artifactId
extensionstrue/extensions
configuration
instructions

Bundle-SymbolicName${project.artifactId}/Bundle-SymbolicName
Bundle-Name${project.artifactId}/Bundle-Name
Private-Package
/Private-Package
Export-Package
org.wso2.carbon.add.num.*
/Export-Package
Import-Package
!org.wso2.carbon.add.num.*
/Import-Package
DynamicImport-Package*/DynamicImport-Package
/instructions
/configuration
/plugin

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
execution
idsource-code-generation/id
phaseprocess-resources/phase
goals
goalrun/goal
/goals
configuration
tasks
path id=wsdl2java.classpath
pathelement

location=${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar
/
pathelement

location=${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar
/
pathelement

location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar
/
/path
java
classname=org.apache.axis2.wsdl.WSDL2Java fork=true
classpath
refid=wsdl2java.classpath /
arg
line=-uri
src/main/resources/OrderProcessingService.wsdl -u -uw
 -o target/generated-code -p
org.wso2.carbon.add.num.stub /
/java
/tasks
/configuration
/execution
/executions
/plugin

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdbuild-helper-maven-plugin/artifactId
executions
execution
idadd-source/id
phasegenerate-sources/phase
goals
goaladd-source/goal
/goals
configuration
sources

sourcetarget/generated-code/src/source
/sources
/configuration
   

[Dev] BPEL - Error deploying HumanTask package

2014-10-03 Thread Akila Nimantha [IT/EKO/LOITS]
Hi All,

We are trying to create humantask based on sample in 
http://docs.oasis-open.org/bpel4people/ws-humantask-1.1-spec-cs-01.html ( 
I.sample 200 page ).This error coming while I'm trying to deploy this human 
task project to BPS server. What should we do ?

TID: [0] [BPS] [2014-10-03 10:40:34,231] ERROR 
{org.wso2.carbon.humantask.deployer.HumanTaskDeployer} -  Error deploying 
HumanTask package : TesthumanTask_1.0.0.zip 
{org.wso2.carbon.humantask.deployer.HumanTaskDeployer}
org.wso2.carbon.humantask.core.deployment.HumanTaskDeploymentException: Error 
occurred while parsing the human interaction definition
   at 
org.wso2.carbon.humantask.core.deployment.ArchiveBasedHumanTaskDeploymentUnitBuilder.getHumanInteractionsDocument(ArchiveBasedHumanTaskDeploymentUnitBuilder.java:226)
   at 
org.wso2.carbon.humantask.core.deployment.HumanTaskDeploymentUnitBuilder.createNewHumanTaskDeploymentUnit(HumanTaskDeploymentUnitBuilder.java:48)
   at 
org.wso2.carbon.humantask.core.store.HumanTaskStore.createNewDeploymentUnit(HumanTaskStore.java:443)
   at 
org.wso2.carbon.humantask.core.store.HumanTaskStore.deploy(HumanTaskStore.java:421)
   at 
org.wso2.carbon.humantask.deployer.HumanTaskDeployer.deploy(HumanTaskDeployer.java:68)
   at 
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
   at 
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
   at 
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
   at 
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
   at 
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
   at 
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
   at 
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
   at 
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
   at 
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)
   at 
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)
   at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
   at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
   at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
   at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)
Caused by: java.io.CharConversionException: Characters larger than 4 bytes are 
not supported: byte 0x80 implies a length of more than 4 bytes
   at 
org.apache.xmlbeans.impl.piccolo.xml.UTF8XMLDecoder.decode(UTF8XMLDecoder.java:162)
   at 
org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader$FastStreamDecoder.read(XMLStreamReader.java:762)
   at 
org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader.read(XMLStreamReader.java:162)
   at 
org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yy_refill(PiccoloLexer.java:3474)
   at 
org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yylex(PiccoloLexer.java:3958)
   at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yylex(Piccolo.java:1290)
   at 
org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yyparse(Piccolo.java:1400)
   at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:714)
   at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3439)
   at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale
.java:1270)
   at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)
   at 
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
   at 
org.wso2.carbon.humantask.HumanInteractionsDocument$Factory.parse(Unknown 
Source)
   at 
org.wso2.carbon.humantask.core.deployment.ArchiveBasedHumanTaskDeploymentUnitBuilder.getHumanInteractionsDocument(ArchiveBasedHumanTaskDeploymentUnitBuilder.java:222)
   ... 21 more
TID: [0] [BPS] [2014-10-03 10:40:34,232]  INFO 
{org.apache.axis2.deployment.DeploymentEngine} -  
org.apache.axis2.deployment.DeploymentException: Error deploying HumanTask 
package : TesthumanTask_1.0.0.zip {org.apache.axis2.

Best Regards,
Akila

This message (including any attachments) is intended only for
the use of the individual or entity to which it is addressed and
may contain information that is non-public, proprietary,
privileged, confidential, and exempt from disclosure under
applicable law or may constitute as attorney work product.

Re: [Dev] Carbon component writing pom xml error

2014-10-03 Thread Chamin Nalinda
Hi Tharindu,

I tried it, but still it remains. I found the following link[1]. I suppose,
this is because, I did *copy and pasting *the code (and did adjustments
accordingly).

It was quite all right when I follow this tutorial[2] before I started
Order Processing example.

[1] http://stackoverflow.com/questions/1524775/error-reading-settings-xml
[2]
http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

On Fri, Oct 3, 2014 at 10:43 AM, Tharindu Edirisinghe tharin...@wso2.com
wrote:

 Hi Chamin,

 Try adding below to the pom file.


   properties
 project.build.sourceEncodingUTF-8/project.build.sourceEncoding
   /properties


 Seems it's a character encoding issue.




 On Fri, Oct 3, 2014 at 10:17 AM, Chamin Nalinda cha...@wso2.com wrote:

 Hi All,

 When I try to write the carbon component, I get the following error in my
 org.wso2.carbon.process.order/pom.xml

 The error line is in red color

 *Error Message*

 Project build error: Non-parseable POM
 /home/coolck/Carbon/myWS/process-order/process-order-components/org.wso2.carbon.process.order/pom.xml:
 start tag unexpected character \ua0 (position: START_DOCUMENT seen
 ...ing=UTF-8?\nproject xmlns=http://maven.apache.org/POM/4.0.0\n\ua0...
 @3:2)

 --- *Start org.wso2.carbon.process.order/pom.xml *
 -

 ?xml version=1.0 encoding=UTF-8?
 project xmlns=http://maven.apache.org/POM/4.0.0;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/xsd/maven-4.0.0.xsd;
 parent
 artifactIdprocess-order-components/artifactId
 groupIdorg.wso2.carbon/groupId
 version4.2.0/version
 /parent
 modelVersion4.0.0/modelVersion

 artifactIdorg.wso2.carbon.process.order/artifactId

 packagingbundle/packaging
 nameWSO2 Carbon - Process Order Server Component/name

 build
 plugins
 plugin
 groupIdorg.apache.felix/groupId
 artifactIdmaven-bundle-plugin/artifactId
 extensionstrue/extensions
 configuration
 instructions

 Bundle-SymbolicName${pom.artifactId}/Bundle-SymbolicName
 Bundle-Name${pom.artifactId}/Bundle-Name

 Export-Packageorg.wso2.carbon.process.order.*/Export-Package
 /instructions
 /configuration
 /plugin
 /plugins
 /build
 /project


 --- *End org.wso2.carbon.process.order/pom.xml*
 -




 --
 *Chamin Nalinda*

 Intern - Engineering
 WSO2 Inc. http://www.wso2.com
 lean.enterprise.middleware

 Mobile: (+94) 77 241 66 04
 Linkedin: https://www.linkedin.com/in/chaminnalinda
 Web: http://www.ckreativity.com


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --

 Tharindu Edirisinghe
 Software Engineer | WSO2 Inc
 Identity Server Team
 mobile : +94 775 181586




-- 
*Chamin Nalinda*

Intern - Engineering
WSO2 Inc. http://www.wso2.com
lean.enterprise.middleware

Mobile: (+94) 77 241 66 04
Linkedin: https://www.linkedin.com/in/chaminnalinda
Web: http://www.ckreativity.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon component writing pom xml error

2014-10-03 Thread Roshan Deniyage
Hi Chamin,
It seems your pom file contains non-unicode characters. Which IDE are
you using? Make sure that you save your pom files and source files in UTF-8
format. Try that way.

Thanks,

Roshan Deniyage
Associate Technical Lead
WSO2, Inc: http://wso2.com

Mobile:  +94 777636406
Twitter:  *https://twitter.com/roshku https://twitter.com/roshku*
LinkedIn :  https://www.linkedin.com/in/roshandeniyage


On Fri, Oct 3, 2014 at 10:17 AM, Chamin Nalinda cha...@wso2.com wrote:

 Hi All,

 When I try to write the carbon component, I get the following error in my
 org.wso2.carbon.process.order/pom.xml

 The error line is in red color

 *Error Message*

 Project build error: Non-parseable POM
 /home/coolck/Carbon/myWS/process-order/process-order-components/org.wso2.carbon.process.order/pom.xml:
 start tag unexpected character \ua0 (position: START_DOCUMENT seen
 ...ing=UTF-8?\nproject xmlns=http://maven.apache.org/POM/4.0.0\n\ua0...
 @3:2)

 --- *Start org.wso2.carbon.process.order/pom.xml *
 -

 ?xml version=1.0 encoding=UTF-8?
 project xmlns=http://maven.apache.org/POM/4.0.0;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/xsd/maven-4.0.0.xsd;
 parent
 artifactIdprocess-order-components/artifactId
 groupIdorg.wso2.carbon/groupId
 version4.2.0/version
 /parent
 modelVersion4.0.0/modelVersion

 artifactIdorg.wso2.carbon.process.order/artifactId

 packagingbundle/packaging
 nameWSO2 Carbon - Process Order Server Component/name

 build
 plugins
 plugin
 groupIdorg.apache.felix/groupId
 artifactIdmaven-bundle-plugin/artifactId
 extensionstrue/extensions
 configuration
 instructions

 Bundle-SymbolicName${pom.artifactId}/Bundle-SymbolicName
 Bundle-Name${pom.artifactId}/Bundle-Name

 Export-Packageorg.wso2.carbon.process.order.*/Export-Package
 /instructions
 /configuration
 /plugin
 /plugins
 /build
 /project


 --- *End org.wso2.carbon.process.order/pom.xml*
 -




 --
 *Chamin Nalinda*

 Intern - Engineering
 WSO2 Inc. http://www.wso2.com
 lean.enterprise.middleware

 Mobile: (+94) 77 241 66 04
 Linkedin: https://www.linkedin.com/in/chaminnalinda
 Web: http://www.ckreativity.com


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BPEL - Error deploying HumanTask package

2014-10-03 Thread Hasitha Aravinda
According to the exception, you have a invalid humantask definition. Error
occurs, when BPEL engine try to parse the .ht file. Can you validate your
.ht file against [1].

Thanks,
Hasitha.

[1] -
https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/business-processes/humantask/org.wso2.carbon.humantask/src/main/resources/schemas/ws-humantask.xsd

On Fri, Oct 3, 2014 at 4:02 PM, Akila Nimantha [IT/EKO/LOITS] 
aki...@lolctech.com wrote:

  Hi All,



 We are trying to create humantask based on sample in
 http://docs.oasis-open.org/bpel4people/ws-humantask-1.1-spec-cs-01.html (
 I.sample 200 page ).This error coming while I’m trying to deploy this human
 task project to BPS server. What should we do ?



 TID: [0] [BPS] [2014-10-03 10:40:34,231] ERROR
 {org.wso2.carbon.humantask.deployer.HumanTaskDeployer} -  Error deploying
 HumanTask package : TesthumanTask_1.0.0.zip
 {org.wso2.carbon.humantask.deployer.HumanTaskDeployer}

 org.wso2.carbon.humantask.core.deployment.HumanTaskDeploymentException:
 Error occurred while parsing the human interaction definition

at
 org.wso2.carbon.humantask.core.deployment.ArchiveBasedHumanTaskDeploymentUnitBuilder.getHumanInteractionsDocument(ArchiveBasedHumanTaskDeploymentUnitBuilder.java:226)

at
 org.wso2.carbon.humantask.core.deployment.HumanTaskDeploymentUnitBuilder.createNewHumanTaskDeploymentUnit(HumanTaskDeploymentUnitBuilder.java:48)

at
 org.wso2.carbon.humantask.core.store.HumanTaskStore.createNewDeploymentUnit(HumanTaskStore.java:443)

at
 org.wso2.carbon.humantask.core.store.HumanTaskStore.deploy(HumanTaskStore.java:421)

at
 org.wso2.carbon.humantask.deployer.HumanTaskDeployer.deploy(HumanTaskDeployer.java:68)

at
 org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)

at
 org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)

at
 org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)

at
 org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)

at
 org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)

at
 org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)

at
 org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)

at
 org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)

at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)

at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)

at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)

at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)

at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:744)

 Caused by: java.io.CharConversionException: Characters larger than 4 bytes
 are not supported: byte 0x80 implies a length of more than 4 bytes

at
 org.apache.xmlbeans.impl.piccolo.xml.UTF8XMLDecoder.decode(UTF8XMLDecoder.java:162)

at
 org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader$FastStreamDecoder.read(XMLStreamReader.java:762)

at
 org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader.read(XMLStreamReader.java:162)

at
 org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yy_refill(PiccoloLexer.java:3474)

at
 org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yylex(PiccoloLexer.java:3958)

at
 org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yylex(Piccolo.java:1290)

at
 org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yyparse(Piccolo.java:1400)

at
 org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:714)

at
 org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3439)

at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale

 .java:1270)

at
 org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)

at
 org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)

at
 org.wso2.carbon.humantask.HumanInteractionsDocument$Factory.parse(Unknown
 Source)

at
 org.wso2.carbon.humantask.core.deployment.ArchiveBasedHumanTaskDeploymentUnitBuilder.getHumanInteractionsDocument(ArchiveBasedHumanTaskDeploymentUnitBuilder.java:222)

... 21 more

 TID: 

Re: [Dev] Carbon component writing pom xml error

2014-10-03 Thread Amal Gunatilake
Hi Chamin,

Did you copy paste any code from a web page? I think there are hidden
characters placed in your pom file. Best practice is to generate the pom
from your IDE (esclipse, Idea) and then do the updates.

Thank you   Best regards,

*Amal Gunatilake*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

On Fri, Oct 3, 2014 at 11:37 AM, Roshan Deniyage rosh...@wso2.com wrote:

 Hi Chamin,
 It seems your pom file contains non-unicode characters. Which IDE are
 you using? Make sure that you save your pom files and source files in UTF-8
 format. Try that way.

 Thanks,

 Roshan Deniyage
 Associate Technical Lead
 WSO2, Inc: http://wso2.com

 Mobile:  +94 777636406
 Twitter:  *https://twitter.com/roshku https://twitter.com/roshku*
 LinkedIn :  https://www.linkedin.com/in/roshandeniyage


 On Fri, Oct 3, 2014 at 10:17 AM, Chamin Nalinda cha...@wso2.com wrote:

 Hi All,

 When I try to write the carbon component, I get the following error in my
 org.wso2.carbon.process.order/pom.xml

 The error line is in red color

 *Error Message*

 Project build error: Non-parseable POM
 /home/coolck/Carbon/myWS/process-order/process-order-components/org.wso2.carbon.process.order/pom.xml:
 start tag unexpected character \ua0 (position: START_DOCUMENT seen
 ...ing=UTF-8?\nproject xmlns=http://maven.apache.org/POM/4.0.0\n\ua0...
 @3:2)

 --- *Start org.wso2.carbon.process.order/pom.xml *
 -

 ?xml version=1.0 encoding=UTF-8?
 project xmlns=http://maven.apache.org/POM/4.0.0;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/xsd/maven-4.0.0.xsd;
 parent
 artifactIdprocess-order-components/artifactId
 groupIdorg.wso2.carbon/groupId
 version4.2.0/version
 /parent
 modelVersion4.0.0/modelVersion

 artifactIdorg.wso2.carbon.process.order/artifactId

 packagingbundle/packaging
 nameWSO2 Carbon - Process Order Server Component/name

 build
 plugins
 plugin
 groupIdorg.apache.felix/groupId
 artifactIdmaven-bundle-plugin/artifactId
 extensionstrue/extensions
 configuration
 instructions

 Bundle-SymbolicName${pom.artifactId}/Bundle-SymbolicName
 Bundle-Name${pom.artifactId}/Bundle-Name

 Export-Packageorg.wso2.carbon.process.order.*/Export-Package
 /instructions
 /configuration
 /plugin
 /plugins
 /build
 /project


 --- *End org.wso2.carbon.process.order/pom.xml*
 -




 --
 *Chamin Nalinda*

 Intern - Engineering
 WSO2 Inc. http://www.wso2.com
 lean.enterprise.middleware

 Mobile: (+94) 77 241 66 04
 Linkedin: https://www.linkedin.com/in/chaminnalinda
 Web: http://www.ckreativity.com


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Cloud Tenant deletion-Carbon core patches

2014-10-03 Thread Sameera Jayasoma
Hi Amila,

Can we get the necessary pull request for this feature? Please fork the
wso2/carbon4-kernel repo and create pull requests?

Thanks,
Sameera.

On Thu, Oct 2, 2014 at 11:09 PM, Amila Maha Arachchi ami...@wso2.com
wrote:

 Sameera,

 We need this to be committed to 4.3.0 Kernel so that any product release
 which goes with 4.3.0 can support tenant deletion. Godwin et al can send
 pull requests. If you need lets have a chat about this before that.

 Regards,
 Amila.

 On Thu, Oct 2, 2014 at 7:23 PM, Godwin Amila Shrimal god...@wso2.com
 wrote:

 Hi,

 We did Cloud Tenant Deletion as the training project. Out of all patches
 there are three patches related to Carbon core as mentioned below.

 1. *javax.cache *

 We added a method to *CacheManagerFactoryImpl *class which delete the
 global cache for a specific tenant.

 public void removeTenant(String tenantDomain) {   globalCacheManagerMap
 .remove(tenantDomain);

 }
 2. *org.wso2.carbon.user.api*

 Added a method to *TenantManager *interface which allow only delete the
 tenantmanager cache other than persistent storage.

 public void deleteTenant(int tenantId, boolean
 removeFromPersistentStorage)throws UserStoreException;

 2. *org.wso2.carbon.user.core*

 Implemented above deleteTenant method in JDBCTenantManager.


 Please give a feedback on this how we can add this to next carbon release.


 Thanks
 Godwin

 --
 *Godwin Amila Shrimal*
 Senior Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D*
 twitter: https://twitter.com/godwinamila




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://sameera.adahas.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon component writing pom xml error

2014-10-03 Thread Chamila De Alwis
On Fri, Oct 3, 2014 at 11:46 AM, Amal Gunatilake am...@wso2.com wrote:

 Best practice is to generate the pom from your IDE (esclipse, Idea) and
 then do the updates.


+1

When displaying code online, the formatters usually insert HTML tags and
other formatting characters. Create the projects and submodules using the
IDE and then insert the necessary repository and maven plugin information
by hand.


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon component writing pom xml error

2014-10-03 Thread Roshan Deniyage
Hi,
  The problem seems with the pluginManager element. you don't need to
put that element unless the pom is a parent pom which is inherited by other
children poms. maven-bundle-plugin needs to come outside of the
plubinManager tag. Just removing the pluginManager would solve the
issue. Try it.

Thanks,

Roshan Deniyage
Associate Technical Lead
WSO2, Inc: http://wso2.com

Mobile:  +94 777636406
Twitter:  *https://twitter.com/roshku https://twitter.com/roshku*
LinkedIn :  https://www.linkedin.com/in/roshandeniyage


On Fri, Oct 3, 2014 at 11:30 AM, Buddhi Senarathna budd...@wso2.com wrote:

 Hi All,

 I wrote pom.xml file to build the stub to create my carbon component. When
 i build it, it builds the bundle without giving any error. but it indicates
 an error in *execution* tag and it says Plugin execution not covered
 by lifecycle configuration. to fix that i had put all the
 *plugins../plugins* part inside
 *pluginManagement../pluginManagement* tag. after i had done it, it
 gives *project build error: Unknown packaging:* bundle in *packaging*
 tag. how do i fix that?

 find my pom.xml here.

 project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/xsd/maven-4.0.0.xsd;
 modelVersion4.0.0/modelVersion
 parent
 groupIdorg.wso2.carbon/groupId
 artifactIdadd-number-components/artifactId
 version4.2.0/version
 /parent
 artifactIdorg.wso2.carbon.add.num.stub/artifactId
 packagingbundle/packaging
 nameWSO2 Carbon - Add Number Stub/name

 dependencies
 dependency
 groupIdorg.apache.axis2.wso2/groupId
 artifactIdaxis2/artifactId
 version1.6.1.wso2v10/version
 /dependency
 dependency
 groupIdorg.apache.ws.commons.axiom.wso2/groupId
 artifactIdaxiom/artifactId
 version1.2.11.wso2v4/version
 /dependency
 dependency
 groupIdwsdl4j.wso2/groupId
 artifactIdwsdl4j/artifactId
 version1.6.2.wso2v4/version
 /dependency
 /dependencies

 build
 pluginManager
 plugins
 plugin
 groupIdorg.apache.felix/groupId
 artifactIdmaven-bundle-plugin/artifactId
 extensionstrue/extensions
 configuration
 instructions

 Bundle-SymbolicName${project.artifactId}/Bundle-SymbolicName

 Bundle-Name${project.artifactId}/Bundle-Name
 Private-Package
 /Private-Package
 Export-Package
 org.wso2.carbon.add.num.*
 /Export-Package
 Import-Package
 !org.wso2.carbon.add.num.*
 /Import-Package

 DynamicImport-Package*/DynamicImport-Package
 /instructions
 /configuration
 /plugin

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 version1.1/version
 executions
 execution
 idsource-code-generation/id
 phaseprocess-resources/phase
 goals
 goalrun/goal
 /goals
 configuration
 tasks
 path id=wsdl2java.classpath
 pathelement

 location=${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar
 /
 pathelement

 location=${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar
 /
 pathelement

 location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar
 /
 /path
 java
 classname=org.apache.axis2.wsdl.WSDL2Java fork=true
 classpath
 refid=wsdl2java.classpath /
 arg
 line=-uri
 src/main/resources/OrderProcessingService.wsdl -u -uw
  -o target/generated-code -p
 org.wso2.carbon.add.num.stub /
 /java
 /tasks
 /configuration
 /execution
 /executions
 /plugin

 

Re: [Dev] Carbon component writing pom xml error

2014-10-03 Thread Shashika Karunatilaka
Hi Buddhi,
Try to use pluginManagement instead of pluginManager tag

On Fri, Oct 3, 2014 at 12:11 PM, Roshan Deniyage rosh...@wso2.com wrote:

 Hi,
   The problem seems with the pluginManager element. you don't need to
 put that element unless the pom is a parent pom which is inherited by other
 children poms. maven-bundle-plugin needs to come outside of the
 plubinManager tag. Just removing the pluginManager would solve the
 issue. Try it.

 Thanks,

 Roshan Deniyage
 Associate Technical Lead
 WSO2, Inc: http://wso2.com

 Mobile:  +94 777636406
 Twitter:  *https://twitter.com/roshku https://twitter.com/roshku*
 LinkedIn :  https://www.linkedin.com/in/roshandeniyage


 On Fri, Oct 3, 2014 at 11:30 AM, Buddhi Senarathna budd...@wso2.com
 wrote:

 Hi All,

 I wrote pom.xml file to build the stub to create my carbon component.
 When i build it, it builds the bundle without giving any error. but it
 indicates an error in *execution* tag and it says Plugin execution
 not covered by lifecycle configuration. to fix that i had put all the
 *plugins../plugins* part inside
 *pluginManagement../pluginManagement* tag. after i had done it, it
 gives *project build error: Unknown packaging:* bundle in *packaging*
 tag. how do i fix that?

 find my pom.xml here.

 project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/xsd/maven-4.0.0.xsd;
 modelVersion4.0.0/modelVersion
 parent
 groupIdorg.wso2.carbon/groupId
 artifactIdadd-number-components/artifactId
 version4.2.0/version
 /parent
 artifactIdorg.wso2.carbon.add.num.stub/artifactId
 packagingbundle/packaging
 nameWSO2 Carbon - Add Number Stub/name

 dependencies
 dependency
 groupIdorg.apache.axis2.wso2/groupId
 artifactIdaxis2/artifactId
 version1.6.1.wso2v10/version
 /dependency
 dependency
 groupIdorg.apache.ws.commons.axiom.wso2/groupId
 artifactIdaxiom/artifactId
 version1.2.11.wso2v4/version
 /dependency
 dependency
 groupIdwsdl4j.wso2/groupId
 artifactIdwsdl4j/artifactId
 version1.6.2.wso2v4/version
 /dependency
 /dependencies

 build
 pluginManager
 plugins
 plugin
 groupIdorg.apache.felix/groupId
 artifactIdmaven-bundle-plugin/artifactId
 extensionstrue/extensions
 configuration
 instructions

 Bundle-SymbolicName${project.artifactId}/Bundle-SymbolicName

 Bundle-Name${project.artifactId}/Bundle-Name
 Private-Package
 /Private-Package
 Export-Package
 org.wso2.carbon.add.num.*
 /Export-Package
 Import-Package
 !org.wso2.carbon.add.num.*
 /Import-Package

 DynamicImport-Package*/DynamicImport-Package
 /instructions
 /configuration
 /plugin

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 version1.1/version
 executions
 execution
 idsource-code-generation/id
 phaseprocess-resources/phase
 goals
 goalrun/goal
 /goals
 configuration
 tasks
 path id=wsdl2java.classpath
 pathelement

 location=${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar
 /
 pathelement

 location=${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar
 /
 pathelement

 location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar
 /
 /path
 java
 classname=org.apache.axis2.wsdl.WSDL2Java fork=true
 classpath
 refid=wsdl2java.classpath /
 arg
 line=-uri
 src/main/resources/OrderProcessingService.wsdl -u -uw
  -o target/generated-code -p
 org.wso2.carbon.add.num.stub /
 /java
  

Re: [Dev] Carbon component writing pom xml error

2014-10-03 Thread Roshan Deniyage
yes. the element is pluginManagement not  pluginManager (typo). but
same rule applies.

Roshan Deniyage
Associate Technical Lead
WSO2, Inc: http://wso2.com

Mobile:  +94 777636406
Twitter:  *https://twitter.com/roshku https://twitter.com/roshku*
LinkedIn :  https://www.linkedin.com/in/roshandeniyage


On Fri, Oct 3, 2014 at 12:17 PM, Shashika Karunatilaka shashi...@wso2.com
wrote:

 Hi Buddhi,
 Try to use pluginManagement instead of pluginManager tag

 On Fri, Oct 3, 2014 at 12:11 PM, Roshan Deniyage rosh...@wso2.com wrote:

 Hi,
   The problem seems with the pluginManager element. you don't need
 to put that element unless the pom is a parent pom which is inherited by
 other children poms. maven-bundle-plugin needs to come outside of the
 plubinManager tag. Just removing the pluginManager would solve the
 issue. Try it.

 Thanks,

 Roshan Deniyage
 Associate Technical Lead
 WSO2, Inc: http://wso2.com

 Mobile:  +94 777636406
 Twitter:  *https://twitter.com/roshku https://twitter.com/roshku*
 LinkedIn :  https://www.linkedin.com/in/roshandeniyage


 On Fri, Oct 3, 2014 at 11:30 AM, Buddhi Senarathna budd...@wso2.com
 wrote:

 Hi All,

 I wrote pom.xml file to build the stub to create my carbon component.
 When i build it, it builds the bundle without giving any error. but it
 indicates an error in *execution* tag and it says Plugin execution
 not covered by lifecycle configuration. to fix that i had put all the
 *plugins../plugins* part inside
 *pluginManagement../pluginManagement* tag. after i had done it, it
 gives *project build error: Unknown packaging:* bundle in *packaging*
 tag. how do i fix that?

 find my pom.xml here.

 project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/xsd/maven-4.0.0.xsd;
 modelVersion4.0.0/modelVersion
 parent
 groupIdorg.wso2.carbon/groupId
 artifactIdadd-number-components/artifactId
 version4.2.0/version
 /parent
 artifactIdorg.wso2.carbon.add.num.stub/artifactId
 packagingbundle/packaging
 nameWSO2 Carbon - Add Number Stub/name

 dependencies
 dependency
 groupIdorg.apache.axis2.wso2/groupId
 artifactIdaxis2/artifactId
 version1.6.1.wso2v10/version
 /dependency
 dependency
 groupIdorg.apache.ws.commons.axiom.wso2/groupId
 artifactIdaxiom/artifactId
 version1.2.11.wso2v4/version
 /dependency
 dependency
 groupIdwsdl4j.wso2/groupId
 artifactIdwsdl4j/artifactId
 version1.6.2.wso2v4/version
 /dependency
 /dependencies

 build
 pluginManager
 plugins
 plugin
 groupIdorg.apache.felix/groupId
 artifactIdmaven-bundle-plugin/artifactId
 extensionstrue/extensions
 configuration
 instructions

 Bundle-SymbolicName${project.artifactId}/Bundle-SymbolicName

 Bundle-Name${project.artifactId}/Bundle-Name
 Private-Package
 /Private-Package
 Export-Package
 org.wso2.carbon.add.num.*
 /Export-Package
 Import-Package
 !org.wso2.carbon.add.num.*
 /Import-Package

 DynamicImport-Package*/DynamicImport-Package
 /instructions
 /configuration
 /plugin

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 version1.1/version
 executions
 execution
 idsource-code-generation/id
 phaseprocess-resources/phase
 goals
 goalrun/goal
 /goals
 configuration
 tasks
 path id=wsdl2java.classpath
 pathelement

 location=${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar
 /
 pathelement

 location=${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar
 /
 pathelement

 location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar
 /
 /path
 java
 classname=org.apache.axis2.wsdl.WSDL2Java fork=true
  

Re: [Dev] NoHostAvailableException in MB when doing load testing

2014-10-03 Thread Sajini De Silva
Hi Prabath,

This is the error we got while deleting messages.

[2014-10-03 12:16:55,059] ERROR
{org.wso2.andes.store.cassandra.CQLBasedMessageStoreImpl} -  Error while
deleting messages
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s)
tried for query failed (tried: /127.0.0.1 (Timeout during read))
at
com.datastax.driver.core.exceptions.NoHostAvailableException.copy(NoHostAvailableException.java:64)
at
com.datastax.driver.core.ResultSetFuture.extractCauseFromExecutionException(ResultSetFuture.java:269)
at
com.datastax.driver.core.ResultSetFuture.getUninterruptibly(ResultSetFuture.java:183)
at com.datastax.driver.core.Session.execute(Session.java:111)
at
org.wso2.andes.store.cassandra.dao.GenericCQLDAO.batchExecute(GenericCQLDAO.java:207)
at
org.wso2.andes.store.cassandra.CQLBasedMessageStoreImpl.deleteMessageMetadataFromQueue(CQLBasedMessageStoreImpl.java:299)
at
org.wso2.andes.kernel.storemanager.DurableAsyncStoringManager.deleteMessages(DurableAsyncStoringManager.java:327)
at
org.wso2.andes.kernel.storemanager.DurableAsyncStoringManager.processAckReceived(DurableAsyncStoringManager.java:203)
at
org.wso2.andes.kernel.distrupter.AckHandler.onEvent(AckHandler.java:30)
at
org.wso2.andes.kernel.distrupter.AckHandler.onEvent(AckHandler.java:19)
at
com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:113)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException:
All host(s) tried for query failed (tried: /127.0.0.1 (Timeout during read))
at
com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:106)
at
com.datastax.driver.core.RequestHandler$1.run(RequestHandler.java:177)
... 3 more
Oct 3, 2014 12:16:55 PM com.lmax.disruptor.FatalExceptionHandler
handleEventException
SEVERE: Exception processing: 12095
org.wso2.andes.kernel.AndesAckData@5341cc77
org.wso2.andes.kernel.AndesException:
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s)
tried for query failed (tried: /127.0.0.1 (Timeout during read))
at
org.wso2.andes.store.cassandra.CQLBasedMessageStoreImpl.deleteMessageMetadataFromQueue(CQLBasedMessageStoreImpl.java:303)
at
org.wso2.andes.kernel.storemanager.DurableAsyncStoringManager.deleteMessages(DurableAsyncStoringManager.java:327)
at
org.wso2.andes.kernel.storemanager.DurableAsyncStoringManager.processAckReceived(DurableAsyncStoringManager.java:203)
at
org.wso2.andes.kernel.distrupter.AckHandler.onEvent(AckHandler.java:30)
at
org.wso2.andes.kernel.distrupter.AckHandler.onEvent(AckHandler.java:19)
at
com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:113)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException:
All host(s) tried for query failed (tried: /127.0.0.1 (Timeout during read))
at
com.datastax.driver.core.exceptions.NoHostAvailableException.copy(NoHostAvailableException.java:64)
at
com.datastax.driver.core.ResultSetFuture.extractCauseFromExecutionException(ResultSetFuture.java:269)
at
com.datastax.driver.core.ResultSetFuture.getUninterruptibly(ResultSetFuture.java:183)
at com.datastax.driver.core.Session.execute(Session.java:111)
at
org.wso2.andes.store.cassandra.dao.GenericCQLDAO.batchExecute(GenericCQLDAO.java:207)
at
org.wso2.andes.store.cassandra.CQLBasedMessageStoreImpl.deleteMessageMetadataFromQueue(CQLBasedMessageStoreImpl.java:299)
... 8 more
Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException:
All host(s) tried for query failed (tried: /127.0.0.1 (Timeout during read))
at
com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:106)
at
com.datastax.driver.core.RequestHandler$1.run(RequestHandler.java:177)
... 3 more
Exception in thread pool-25-thread-1 java.lang.RuntimeException:
org.wso2.andes.kernel.AndesException:
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s)
tried for query failed (tried: /127.0.0.1 (Timeout during read))
at
com.lmax.disruptor.FatalExceptionHandler.handleEventException(FatalExceptionHandler.java:45)
at
com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.wso2.andes.kernel.AndesException:
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s)
tried 

Re: [Dev] Carbon component writing pom xml error

2014-10-03 Thread Chamin Nalinda
Hi to Chamila and Amal,

Thanks Chamila for the explanation.

Amal, do I have to code manually? What are the recommended options if I
need to use a code that is available on web ?


On Fri, Oct 3, 2014 at 12:09 PM, Chamila De Alwis chami...@wso2.com wrote:


 On Fri, Oct 3, 2014 at 11:46 AM, Amal Gunatilake am...@wso2.com wrote:

 Best practice is to generate the pom from your IDE (esclipse, Idea) and
 then do the updates.


 +1

 When displaying code online, the formatters usually insert HTML tags and
 other formatting characters. Create the projects and submodules using the
 IDE and then insert the necessary repository and maven plugin information
 by hand.


 Regards,
 Chamila de Alwis
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
*Chamin Nalinda*

Intern - Engineering
WSO2 Inc. http://www.wso2.com
lean.enterprise.middleware

Mobile: (+94) 77 241 66 04
Linkedin: https://www.linkedin.com/in/chaminnalinda
Web: http://www.ckreativity.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon component writing pom xml error

2014-10-03 Thread Buddhi Senarathna
Hi all,
Thanks for your support. I did remove pluginManager tag and tested with
pluginManagement. but result was the same. then i tried as Roshan said.
now it is working fine. but again eclipse indicates *Plugin execution not
covered by lifecycle configuration* error in *execution* tag. i have no
issue with building the jar file. maven build it somehow. the problem is
eclipse indicates this error.
i'm using eclipse Luna Release (4.4.0) .

On Fri, Oct 3, 2014 at 12:22 PM, Roshan Deniyage rosh...@wso2.com wrote:

 yes. the element is pluginManagement not  pluginManager (typo). but
 same rule applies.

 Roshan Deniyage
 Associate Technical Lead
 WSO2, Inc: http://wso2.com

 Mobile:  +94 777636406
 Twitter:  *https://twitter.com/roshku https://twitter.com/roshku*
 LinkedIn :  https://www.linkedin.com/in/roshandeniyage


 On Fri, Oct 3, 2014 at 12:17 PM, Shashika Karunatilaka shashi...@wso2.com
  wrote:

 Hi Buddhi,
 Try to use pluginManagement instead of pluginManager tag

 On Fri, Oct 3, 2014 at 12:11 PM, Roshan Deniyage rosh...@wso2.com
 wrote:

 Hi,
   The problem seems with the pluginManager element. you don't need
 to put that element unless the pom is a parent pom which is inherited by
 other children poms. maven-bundle-plugin needs to come outside of the
 plubinManager tag. Just removing the pluginManager would solve the
 issue. Try it.

 Thanks,

 Roshan Deniyage
 Associate Technical Lead
 WSO2, Inc: http://wso2.com

 Mobile:  +94 777636406
 Twitter:  *https://twitter.com/roshku https://twitter.com/roshku*
 LinkedIn :  https://www.linkedin.com/in/roshandeniyage


 On Fri, Oct 3, 2014 at 11:30 AM, Buddhi Senarathna budd...@wso2.com
 wrote:

 Hi All,

 I wrote pom.xml file to build the stub to create my carbon component.
 When i build it, it builds the bundle without giving any error. but it
 indicates an error in *execution* tag and it says Plugin execution
 not covered by lifecycle configuration. to fix that i had put all the
 *plugins../plugins* part inside
 *pluginManagement../pluginManagement* tag. after i had done it, it
 gives *project build error: Unknown packaging:* bundle in *packaging*
 tag. how do i fix that?

 find my pom.xml here.

 project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/xsd/maven-4.0.0.xsd;
 modelVersion4.0.0/modelVersion
 parent
 groupIdorg.wso2.carbon/groupId
 artifactIdadd-number-components/artifactId
 version4.2.0/version
 /parent
 artifactIdorg.wso2.carbon.add.num.stub/artifactId
 packagingbundle/packaging
 nameWSO2 Carbon - Add Number Stub/name

 dependencies
 dependency
 groupIdorg.apache.axis2.wso2/groupId
 artifactIdaxis2/artifactId
 version1.6.1.wso2v10/version
 /dependency
 dependency
 groupIdorg.apache.ws.commons.axiom.wso2/groupId
 artifactIdaxiom/artifactId
 version1.2.11.wso2v4/version
 /dependency
 dependency
 groupIdwsdl4j.wso2/groupId
 artifactIdwsdl4j/artifactId
 version1.6.2.wso2v4/version
 /dependency
 /dependencies

 build
 pluginManager
 plugins
 plugin
 groupIdorg.apache.felix/groupId
 artifactIdmaven-bundle-plugin/artifactId
 extensionstrue/extensions
 configuration
 instructions

 Bundle-SymbolicName${project.artifactId}/Bundle-SymbolicName

 Bundle-Name${project.artifactId}/Bundle-Name
 Private-Package
 /Private-Package
 Export-Package
 org.wso2.carbon.add.num.*
 /Export-Package
 Import-Package
 !org.wso2.carbon.add.num.*
 /Import-Package

 DynamicImport-Package*/DynamicImport-Package
 /instructions
 /configuration
 /plugin

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 version1.1/version
 executions
 execution
 idsource-code-generation/id
 phaseprocess-resources/phase
 goals
 goalrun/goal
 /goals
 configuration
 tasks
 path id=wsdl2java.classpath
 pathelement

 

Re: [Dev] siddhi v2.2.0-SNAPSHOT stop calling callbacks after few seconds

2014-10-03 Thread andresgomez92
Hi Lasantha,

I have changed my storm topology. Now, all stream go to the same
siddhiManager instance and all queries works fine.

But now, I only have 1 instance of siddhiManager without distributed
processing ... How can I get scalability???


Thanks,

Andrés



-
-- 
Andres Gomez
Developer at Eneo Tecnologia.
Website: http://redborder.net
LinkedIn: http://lnkd.in/sHnbJe

--
View this message in context: 
http://wso2-oxygen-tank.10903.n7.nabble.com/siddhi-v2-2-0-SNAPSHOT-stop-calling-callbacks-after-few-seconds-tp103254p104350.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon component writing pom xml error

2014-10-03 Thread Vimalanathan Rajeevan
Hi Buddhi,

You have to remove *pluginManagement../pluginManagement* tag
to successfully build it using maven. After removing that, even though the
line is marked as error in Eclipse, It does not matter. This may be because
of some bug with Eclipse. You can even successfully build the bundle and
deploy in carbon server.

On Fri, Oct 3, 2014 at 12:31 PM, Buddhi Senarathna budd...@wso2.com wrote:

 Hi all,
 Thanks for your support. I did remove pluginManager tag and tested with
 pluginManagement. but result was the same. then i tried as Roshan said.
 now it is working fine. but again eclipse indicates *Plugin execution not
 covered by lifecycle configuration* error in *execution* tag. i have no
 issue with building the jar file. maven build it somehow. the problem is
 eclipse indicates this error.
 i'm using eclipse Luna Release (4.4.0) .

 On Fri, Oct 3, 2014 at 12:22 PM, Roshan Deniyage rosh...@wso2.com wrote:

 yes. the element is pluginManagement not  pluginManager (typo). but
 same rule applies.

 Roshan Deniyage
 Associate Technical Lead
 WSO2, Inc: http://wso2.com

 Mobile:  +94 777636406
 Twitter:  *https://twitter.com/roshku https://twitter.com/roshku*
 LinkedIn :  https://www.linkedin.com/in/roshandeniyage


 On Fri, Oct 3, 2014 at 12:17 PM, Shashika Karunatilaka 
 shashi...@wso2.com wrote:

 Hi Buddhi,
 Try to use pluginManagement instead of pluginManager tag

 On Fri, Oct 3, 2014 at 12:11 PM, Roshan Deniyage rosh...@wso2.com
 wrote:

 Hi,
   The problem seems with the pluginManager element. you don't need
 to put that element unless the pom is a parent pom which is inherited by
 other children poms. maven-bundle-plugin needs to come outside of
 the plubinManager tag. Just removing the pluginManager would solve
 the issue. Try it.

 Thanks,

 Roshan Deniyage
 Associate Technical Lead
 WSO2, Inc: http://wso2.com

 Mobile:  +94 777636406
 Twitter:  *https://twitter.com/roshku https://twitter.com/roshku*
 LinkedIn :  https://www.linkedin.com/in/roshandeniyage


 On Fri, Oct 3, 2014 at 11:30 AM, Buddhi Senarathna budd...@wso2.com
 wrote:

 Hi All,

 I wrote pom.xml file to build the stub to create my carbon component.
 When i build it, it builds the bundle without giving any error. but it
 indicates an error in *execution* tag and it says Plugin execution
 not covered by lifecycle configuration. to fix that i had put all the
 *plugins../plugins* part inside
 *pluginManagement../pluginManagement* tag. after i had done it,
 it gives *project build error: Unknown packaging:* bundle in
 *packaging* tag. how do i fix that?

 find my pom.xml here.

 project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/xsd/maven-4.0.0.xsd;
 modelVersion4.0.0/modelVersion
 parent
 groupIdorg.wso2.carbon/groupId
 artifactIdadd-number-components/artifactId
 version4.2.0/version
 /parent
 artifactIdorg.wso2.carbon.add.num.stub/artifactId
 packagingbundle/packaging
 nameWSO2 Carbon - Add Number Stub/name

 dependencies
 dependency
 groupIdorg.apache.axis2.wso2/groupId
 artifactIdaxis2/artifactId
 version1.6.1.wso2v10/version
 /dependency
 dependency
 groupIdorg.apache.ws.commons.axiom.wso2/groupId
 artifactIdaxiom/artifactId
 version1.2.11.wso2v4/version
 /dependency
 dependency
 groupIdwsdl4j.wso2/groupId
 artifactIdwsdl4j/artifactId
 version1.6.2.wso2v4/version
 /dependency
 /dependencies

 build
 pluginManager
 plugins
 plugin
 groupIdorg.apache.felix/groupId
 artifactIdmaven-bundle-plugin/artifactId
 extensionstrue/extensions
 configuration
 instructions

 Bundle-SymbolicName${project.artifactId}/Bundle-SymbolicName

 Bundle-Name${project.artifactId}/Bundle-Name
 Private-Package
 /Private-Package
 Export-Package
 org.wso2.carbon.add.num.*
 /Export-Package
 Import-Package
 !org.wso2.carbon.add.num.*
 /Import-Package

 DynamicImport-Package*/DynamicImport-Package
 /instructions
 /configuration
 /plugin

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 version1.1/version
 executions
 execution
 idsource-code-generation/id
 

Re: [Dev] Carbon component writing pom xml error

2014-10-03 Thread Amal Gunatilake
Hi Chamin,

If you are badly need to copy pasting a code from web, you can convert the
clipboard text using [1] to make it to the correct standard encoding.

[1]
http://coderstoolbox.net/string/#!encoding=xmlaction=decodecharset=utf_8

Thank you   Best regards,

*Amal Gunatilake*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

On Fri, Oct 3, 2014 at 12:29 PM, Chamin Nalinda cha...@wso2.com wrote:

 Hi to Chamila and Amal,

 Thanks Chamila for the explanation.

 Amal, do I have to code manually? What are the recommended options if I
 need to use a code that is available on web ?


 On Fri, Oct 3, 2014 at 12:09 PM, Chamila De Alwis chami...@wso2.com
 wrote:


 On Fri, Oct 3, 2014 at 11:46 AM, Amal Gunatilake am...@wso2.com wrote:

 Best practice is to generate the pom from your IDE (esclipse, Idea) and
 then do the updates.


 +1

 When displaying code online, the formatters usually insert HTML tags and
 other formatting characters. Create the projects and submodules using the
 IDE and then insert the necessary repository and maven plugin information
 by hand.


 Regards,
 Chamila de Alwis
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Chamin Nalinda*

 Intern - Engineering
 WSO2 Inc. http://www.wso2.com
 lean.enterprise.middleware

 Mobile: (+94) 77 241 66 04
 Linkedin: https://www.linkedin.com/in/chaminnalinda
 Web: http://www.ckreativity.com


___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error when running the Cassandra Docker

2014-10-03 Thread Vishanth Balasubramaniam
Hi,

I'm currently working on creating a cassandra cartridge for apache stratos
using docker. I was able to successfully build the cassandra cartridge in
the virtual machine and the member is getting activated successfully.

When i try to run the cassandra inside the instance, I am getting the
following error.

root@instance-0001:/opt/cassandra/bin# ./cassandra
xss =  -ea -javaagent:./../lib/jamm-0.2.5.jar -XX:+UseThreadPriorities
-XX:ThreadPriorityPolicy=42 -Xms1240M -Xmx1240M -Xmn310M
-XX:+HeapDumpOnOutOfMemoryError
./cassandra: 151: exec: root@instance-0001:/opt/cassandra/bin# java:
not found


Below is the cassandra file from the line 146 to 154
 if [ x$foreground != x ]; then
cassandra_parms=$cassandra_parms -Dcassandra-foreground=yes
exec $NUMACTL $JAVA $JVM_OPTS $cassandra_parms -cp $CLASSPATH
$props $class
# Startup CassandraDaemon, background it, and write the pid.
else
exec $NUMACTL $JAVA $JVM_OPTS $cassandra_parms -cp $CLASSPATH
$props $class - 
[ ! -z $pidpath ]  printf %d $!  $pidpath
true
fi


I would like to know what causes this issue.


Thank you,

-- 
*Vishanth Balasubramaniam*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94771737718*
about me: *http://about.me/vishanth http://about.me/vishanth*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] WSDL error when writing the carbon component

2014-10-03 Thread Nishali Wijesinghe
Hi Shiva,

This what I got when I copied the wsdl file directly from the web browser.

wsdl:definitions targetNamespace=http://mgt.order.carbon.wso2.org
wsdl:documentationOrderProcessor/wsdl:documentation
wsdl:types
xs:schema xmlns:ax299=http://data.mgt.order.carbon.wso2.org/xsd;
attributeFormDefault=qualified elementFormDefault=qualified
targetNamespace=http://mgt.order.carbon.wso2.org;
xs:import namespace=http://data.mgt.order.carbon.wso2.org/xsd
/
xs:element name=getOrder
xs:complexType
xs:sequence/
/xs:complexType
/xs:element
xs:element name=getOrderResponse
xs:complexType
xs:sequence
xs:element maxOccurs=unbounded minOccurs=0
name=return nillable=true type=ax298:Order/
/xs:sequence
/xs:complexType
/xs:element
/xs:schema
xs:schema attributeFormDefault=qualified
elementFormDefault=qualified targetNamespace=
http://data.mgt.order.carbon.wso2.org/xsd;
xs:complexType name=Order
xs:sequence
xs:element minOccurs=0 name=ID type=xs:int/
xs:element minOccurs=0 name=price
type=xs:double/
xs:element minOccurs=0 name=quantity
type=xs:int/
xs:element minOccurs=0 name=type nillable=true
type=xs:string/
/xs:sequence
/xs:complexType
/xs:schema
/wsdl:types
wsdl:message name=getOrderRequest
wsdl:part name=parameters element=ns:getOrder/
/wsdl:message
wsdl:message name=getOrderResponse
wsdl:part name=parameters element=ns:getOrderResponse/
/wsdl:message
wsdl:portType name=OrderProcessorPortType
wsdl:operation name=getOrder
wsdl:input message=ns:getOrderRequest
wsaw:Action=urn:getOrder/
wsdl:output message=ns:getOrderResponse
wsaw:Action=urn:getOrderResponse/
/wsdl:operation
/wsdl:portType
wsdl:binding name=OrderProcessorSoap11Binding
type=ns:OrderProcessorPortType
soap:binding transport=http://schemas.xmlsoap.org/soap/http;
style=document/
wsdl:operation name=getOrder
soap:operation soapAction=urn:getOrder style=document/
wsdl:input
soap:body use=literal/
/wsdl:input
wsdl:output
soap:body use=literal/
/wsdl:output
/wsdl:operation
/wsdl:binding
wsdl:binding name=OrderProcessorSoap12Binding
type=ns:OrderProcessorPortType
soap12:binding transport=http://schemas.xmlsoap.org/soap/http;
style=document/
wsdl:operation name=getOrder
soap12:operation soapAction=urn:getOrder style=document/
wsdl:input
soap12:body use=literal/
/wsdl:input
wsdl:output
soap12:body use=literal/
/wsdl:output
/wsdl:operation
/wsdl:binding
wsdl:binding name=OrderProcessorHttpBinding
type=ns:OrderProcessorPortType
http:binding verb=POST/
wsdl:operation name=getOrder
http:operation location=getOrder/
wsdl:input
mime:content type=text/xml part=parameters/
/wsdl:input
wsdl:output
mime:content type=text/xml part=parameters/
/wsdl:output
/wsdl:operation
/wsdl:binding
wsdl:service name=OrderProcessor
wsdl:port name=OrderProcessorHttpsSoap11Endpoint
binding=ns:OrderProcessorSoap11Binding
soap:address location=
https://10.100.4.38:9443/services/OrderProcessor.OrderProcessorHttpsSoap11Endpoint/
/
/wsdl:port
wsdl:port name=OrderProcessorHttpsSoap12Endpoint
binding=ns:OrderProcessorSoap12Binding
soap12:address location=
https://10.100.4.38:9443/services/OrderProcessor.OrderProcessorHttpsSoap12Endpoint/
/
/wsdl:port
wsdl:port name=OrderProcessorHttpsEndpoint
binding=ns:OrderProcessorHttpBinding
http:address location=
https://10.100.4.38:9443/services/OrderProcessor.OrderProcessorHttpsEndpoint/
/
/wsdl:port
/wsdl:service
/wsdl:definitions




This didn't work. But then I saved the web page as a separate wsdl file in
the desktop (as mentioned by Supun above). The definition tag of that file
is as follows.

wsdl:definitions xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:ns1=
http://org.apache.axis2/xsd; xmlns:ns=http://mgt.order.carbon.wso2.org;
xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; xmlns:http=
http://schemas.xmlsoap.org/wsdl/http/; xmlns:ax298=
http://data.mgt.order.carbon.wso2.org/xsd; xmlns:xs=
http://www.w3.org/2001/XMLSchema; xmlns:soap=
http://schemas.xmlsoap.org/wsdl/soap/; xmlns:mime=
http://schemas.xmlsoap.org/wsdl/mime/; xmlns:soap12=
http://schemas.xmlsoap.org/wsdl/soap12/; targetNamespace=
http://mgt.order.carbon.wso2.org;


Re: [Dev] siddhi v2.2.0-SNAPSHOT stop calling callbacks after few seconds

2014-10-03 Thread Lasantha Fernando
Hi Andrés,

In your earlier query, it seems that you have a sequence with two
predicates running on different threads/nodes. In such a case, synching
between the two threads can be non-trivial AFAIK.

However, you can try to scale first for other usecases (other than
patterns, sequences). Different queries can be scaled in pipeline fashion,
and also partitioning the input stream to scale might be another option. We
are currently writing Siddhi 3.0.0 with more support for distributed cases.
You can find the siddhi-3.0.0 branch at [1]. Please consider this as still
'Work in Progress'.

However, let me dig deeper into your usecase and get back to you on how to
tackle scalability on your usecase.

[1] https://github.com/wso2-dev/siddhi/tree/Siddhi-3.0.0

Thanks,
Lasantha



On 3 October 2014 12:57, andresgomez92 ago...@redborder.net wrote:

 Hi Lasantha,

 I have changed my storm topology. Now, all stream go to the same
 siddhiManager instance and all queries works fine.

 But now, I only have 1 instance of siddhiManager without distributed
 processing ... How can I get scalability???


 Thanks,

 Andrés



 -
 --
 Andres Gomez
 Developer at Eneo Tecnologia.
 Website: http://redborder.net
 LinkedIn: http://lnkd.in/sHnbJe

 --
 View this message in context:
 http://wso2-oxygen-tank.10903.n7.nabble.com/siddhi-v2-2-0-SNAPSHOT-stop-calling-callbacks-after-few-seconds-tp103254p104350.html
 Sent from the WSO2 Development mailing list archive at Nabble.com.
 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
*Lasantha Fernando*
Software Engineer - Data Technologies Team
WSO2 Inc. http://wso2.com

email: lasan...@wso2.com
mobile: (+94) 71 5247551
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon component writing pom xml error

2014-10-03 Thread Chamin Nalinda
Hi Amal,

Thanks for heaps :)

On Fri, Oct 3, 2014 at 1:21 PM, Amal Gunatilake am...@wso2.com wrote:

 Hi Chamin,

 If you are badly need to copy pasting a code from web, you can convert the
 clipboard text using [1] to make it to the correct standard encoding.

 [1]
 http://coderstoolbox.net/string/#!encoding=xmlaction=decodecharset=utf_8

 Thank you   Best regards,

 *Amal Gunatilake*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 On Fri, Oct 3, 2014 at 12:29 PM, Chamin Nalinda cha...@wso2.com wrote:

 Hi to Chamila and Amal,

 Thanks Chamila for the explanation.

 Amal, do I have to code manually? What are the recommended options if I
 need to use a code that is available on web ?


 On Fri, Oct 3, 2014 at 12:09 PM, Chamila De Alwis chami...@wso2.com
 wrote:


 On Fri, Oct 3, 2014 at 11:46 AM, Amal Gunatilake am...@wso2.com wrote:

 Best practice is to generate the pom from your IDE (esclipse, Idea) and
 then do the updates.


 +1

 When displaying code online, the formatters usually insert HTML tags and
 other formatting characters. Create the projects and submodules using the
 IDE and then insert the necessary repository and maven plugin information
 by hand.


 Regards,
 Chamila de Alwis
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Chamin Nalinda*

 Intern - Engineering
 WSO2 Inc. http://www.wso2.com
 lean.enterprise.middleware

 Mobile: (+94) 77 241 66 04
 Linkedin: https://www.linkedin.com/in/chaminnalinda
 Web: http://www.ckreativity.com





-- 
*Chamin Nalinda*

Intern - Engineering
WSO2 Inc. http://www.wso2.com
lean.enterprise.middleware

Mobile: (+94) 77 241 66 04
Linkedin: https://www.linkedin.com/in/chaminnalinda
Web: http://www.ckreativity.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] WSDL error when writing the carbon component

2014-10-03 Thread Shiva Balachandran
So this is resolved right? I'm guessing those attributes are hidden in the
browser view, and are re-factored and added to the document when it is
saved.

On Fri, Oct 3, 2014 at 1:31 PM, Nishali Wijesinghe nisha...@wso2.com
wrote:

 Hi Shiva,

 This what I got when I copied the wsdl file directly from the web browser.

 wsdl:definitions targetNamespace=http://mgt.order.carbon.wso2.org
 wsdl:documentationOrderProcessor/wsdl:documentation
 wsdl:types
 xs:schema xmlns:ax299=http://data.mgt.order.carbon.wso2.org/xsd;
 attributeFormDefault=qualified elementFormDefault=qualified
 targetNamespace=http://mgt.order.carbon.wso2.org;
 xs:import namespace=
 http://data.mgt.order.carbon.wso2.org/xsd/
 xs:element name=getOrder
 xs:complexType
 xs:sequence/
 /xs:complexType
 /xs:element
 xs:element name=getOrderResponse
 xs:complexType
 xs:sequence
 xs:element maxOccurs=unbounded minOccurs=0
 name=return nillable=true type=ax298:Order/
 /xs:sequence
 /xs:complexType
 /xs:element
 /xs:schema
 xs:schema attributeFormDefault=qualified
 elementFormDefault=qualified targetNamespace=
 http://data.mgt.order.carbon.wso2.org/xsd;
 xs:complexType name=Order
 xs:sequence
 xs:element minOccurs=0 name=ID type=xs:int/
 xs:element minOccurs=0 name=price
 type=xs:double/
 xs:element minOccurs=0 name=quantity
 type=xs:int/
 xs:element minOccurs=0 name=type nillable=true
 type=xs:string/
 /xs:sequence
 /xs:complexType
 /xs:schema
 /wsdl:types
 wsdl:message name=getOrderRequest
 wsdl:part name=parameters element=ns:getOrder/
 /wsdl:message
 wsdl:message name=getOrderResponse
 wsdl:part name=parameters element=ns:getOrderResponse/
 /wsdl:message
 wsdl:portType name=OrderProcessorPortType
 wsdl:operation name=getOrder
 wsdl:input message=ns:getOrderRequest
 wsaw:Action=urn:getOrder/
 wsdl:output message=ns:getOrderResponse
 wsaw:Action=urn:getOrderResponse/
 /wsdl:operation
 /wsdl:portType
 wsdl:binding name=OrderProcessorSoap11Binding
 type=ns:OrderProcessorPortType
 soap:binding transport=http://schemas.xmlsoap.org/soap/http;
 style=document/
 wsdl:operation name=getOrder
 soap:operation soapAction=urn:getOrder style=document/
 wsdl:input
 soap:body use=literal/
 /wsdl:input
 wsdl:output
 soap:body use=literal/
 /wsdl:output
 /wsdl:operation
 /wsdl:binding
 wsdl:binding name=OrderProcessorSoap12Binding
 type=ns:OrderProcessorPortType
 soap12:binding transport=http://schemas.xmlsoap.org/soap/http;
 style=document/
 wsdl:operation name=getOrder
 soap12:operation soapAction=urn:getOrder style=document/
 wsdl:input
 soap12:body use=literal/
 /wsdl:input
 wsdl:output
 soap12:body use=literal/
 /wsdl:output
 /wsdl:operation
 /wsdl:binding
 wsdl:binding name=OrderProcessorHttpBinding
 type=ns:OrderProcessorPortType
 http:binding verb=POST/
 wsdl:operation name=getOrder
 http:operation location=getOrder/
 wsdl:input
 mime:content type=text/xml part=parameters/
 /wsdl:input
 wsdl:output
 mime:content type=text/xml part=parameters/
 /wsdl:output
 /wsdl:operation
 /wsdl:binding
 wsdl:service name=OrderProcessor
 wsdl:port name=OrderProcessorHttpsSoap11Endpoint
 binding=ns:OrderProcessorSoap11Binding
 soap:address location=
 https://10.100.4.38:9443/services/OrderProcessor.OrderProcessorHttpsSoap11Endpoint/
 /
 /wsdl:port
 wsdl:port name=OrderProcessorHttpsSoap12Endpoint
 binding=ns:OrderProcessorSoap12Binding
 soap12:address location=
 https://10.100.4.38:9443/services/OrderProcessor.OrderProcessorHttpsSoap12Endpoint/
 /
 /wsdl:port
 wsdl:port name=OrderProcessorHttpsEndpoint
 binding=ns:OrderProcessorHttpBinding
 http:address location=
 https://10.100.4.38:9443/services/OrderProcessor.OrderProcessorHttpsEndpoint/
 /
 /wsdl:port
 /wsdl:service
 /wsdl:definitions




 This didn't work. But then I saved the web page as a separate wsdl file in
 the desktop (as mentioned by Supun above). The definition tag of that file
 is as follows.

 wsdl:definitions xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
 xmlns:ns1=http://org.apache.axis2/xsd; xmlns:ns=
 http://mgt.order.carbon.wso2.org; xmlns:wsaw=
 http://www.w3.org/2006/05/addressing/wsdl; 

[Dev] identity Server : SAMLSSOServiceProviderDO

2014-10-03 Thread Shiva Balachandran
HI,

I am doing some development in IS. I came across a code block where a
 method named .getServiceProviders(), which returns an object of the class
mention in the subject. but when i went through the class and its
attributes i noticed the name of the service provider was not a part of the
attributes.

Further to add to that i tried to use this method
persistenceManager.getServiceProvider(registry, issuer);  to get the
service provider and this to returns an object of the class mentions in the
subject.

Only the issuer is available in both approaches. Can the issuer and the
service provider differ? and  Is there a specific reason to as to why the
name of the service provider is not a part of the attributes of the class?
-- 
Shiva Balachandran
Software Engineer
WSO2 Inc.

Mobile - +94 774445788
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] WSDL error when writing the carbon component

2014-10-03 Thread Nishali Wijesinghe
yes, it is resolved now, that must be the reason for it.

Thanks a lot,
Nishali

On Fri, Oct 3, 2014 at 2:06 PM, Shiva Balachandran sh...@wso2.com wrote:

 So this is resolved right? I'm guessing those attributes are hidden in the
 browser view, and are re-factored and added to the document when it is
 saved.

 On Fri, Oct 3, 2014 at 1:31 PM, Nishali Wijesinghe nisha...@wso2.com
 wrote:

 Hi Shiva,

 This what I got when I copied the wsdl file directly from the web browser.

 wsdl:definitions targetNamespace=http://mgt.order.carbon.wso2.org
 wsdl:documentationOrderProcessor/wsdl:documentation
 wsdl:types
 xs:schema xmlns:ax299=http://data.mgt.order.carbon.wso2.org/xsd;
 attributeFormDefault=qualified elementFormDefault=qualified
 targetNamespace=http://mgt.order.carbon.wso2.org;
 xs:import namespace=
 http://data.mgt.order.carbon.wso2.org/xsd/
 xs:element name=getOrder
 xs:complexType
 xs:sequence/
 /xs:complexType
 /xs:element
 xs:element name=getOrderResponse
 xs:complexType
 xs:sequence
 xs:element maxOccurs=unbounded minOccurs=0
 name=return nillable=true type=ax298:Order/
 /xs:sequence
 /xs:complexType
 /xs:element
 /xs:schema
 xs:schema attributeFormDefault=qualified
 elementFormDefault=qualified targetNamespace=
 http://data.mgt.order.carbon.wso2.org/xsd;
 xs:complexType name=Order
 xs:sequence
 xs:element minOccurs=0 name=ID type=xs:int/
 xs:element minOccurs=0 name=price
 type=xs:double/
 xs:element minOccurs=0 name=quantity
 type=xs:int/
 xs:element minOccurs=0 name=type nillable=true
 type=xs:string/
 /xs:sequence
 /xs:complexType
 /xs:schema
 /wsdl:types
 wsdl:message name=getOrderRequest
 wsdl:part name=parameters element=ns:getOrder/
 /wsdl:message
 wsdl:message name=getOrderResponse
 wsdl:part name=parameters element=ns:getOrderResponse/
 /wsdl:message
 wsdl:portType name=OrderProcessorPortType
 wsdl:operation name=getOrder
 wsdl:input message=ns:getOrderRequest
 wsaw:Action=urn:getOrder/
 wsdl:output message=ns:getOrderResponse
 wsaw:Action=urn:getOrderResponse/
 /wsdl:operation
 /wsdl:portType
 wsdl:binding name=OrderProcessorSoap11Binding
 type=ns:OrderProcessorPortType
 soap:binding transport=http://schemas.xmlsoap.org/soap/http;
 style=document/
 wsdl:operation name=getOrder
 soap:operation soapAction=urn:getOrder style=document/
 wsdl:input
 soap:body use=literal/
 /wsdl:input
 wsdl:output
 soap:body use=literal/
 /wsdl:output
 /wsdl:operation
 /wsdl:binding
 wsdl:binding name=OrderProcessorSoap12Binding
 type=ns:OrderProcessorPortType
 soap12:binding transport=http://schemas.xmlsoap.org/soap/http;
 style=document/
 wsdl:operation name=getOrder
 soap12:operation soapAction=urn:getOrder style=document/
 wsdl:input
 soap12:body use=literal/
 /wsdl:input
 wsdl:output
 soap12:body use=literal/
 /wsdl:output
 /wsdl:operation
 /wsdl:binding
 wsdl:binding name=OrderProcessorHttpBinding
 type=ns:OrderProcessorPortType
 http:binding verb=POST/
 wsdl:operation name=getOrder
 http:operation location=getOrder/
 wsdl:input
 mime:content type=text/xml part=parameters/
 /wsdl:input
 wsdl:output
 mime:content type=text/xml part=parameters/
 /wsdl:output
 /wsdl:operation
 /wsdl:binding
 wsdl:service name=OrderProcessor
 wsdl:port name=OrderProcessorHttpsSoap11Endpoint
 binding=ns:OrderProcessorSoap11Binding
 soap:address location=
 https://10.100.4.38:9443/services/OrderProcessor.OrderProcessorHttpsSoap11Endpoint/
 /
 /wsdl:port
 wsdl:port name=OrderProcessorHttpsSoap12Endpoint
 binding=ns:OrderProcessorSoap12Binding
 soap12:address location=
 https://10.100.4.38:9443/services/OrderProcessor.OrderProcessorHttpsSoap12Endpoint/
 /
 /wsdl:port
 wsdl:port name=OrderProcessorHttpsEndpoint
 binding=ns:OrderProcessorHttpBinding
 http:address location=
 https://10.100.4.38:9443/services/OrderProcessor.OrderProcessorHttpsEndpoint/
 /
 /wsdl:port
 /wsdl:service
 /wsdl:definitions




 This didn't work. But then I saved the web page as a separate wsdl file
 in the desktop (as mentioned by Supun above). The definition tag of that
 file is as follows.

 wsdl:definitions 

Re: [Dev] Error when running the Cassandra Docker

2014-10-03 Thread Manula Chathurika Thantriwatte
Hi Vishanth,

Can you increase the JVM_OPTS values and try again.

Thanks !

On Fri, Oct 3, 2014 at 1:29 PM, Vishanth Balasubramaniam vishan...@wso2.com
 wrote:

 Hi,

 I'm currently working on creating a cassandra cartridge for apache stratos
 using docker. I was able to successfully build the cassandra cartridge in
 the virtual machine and the member is getting activated successfully.

 When i try to run the cassandra inside the instance, I am getting the
 following error.

 root@instance-0001:/opt/cassandra/bin# ./cassandra
 xss =  -ea -javaagent:./../lib/jamm-0.2.5.jar -XX:+UseThreadPriorities
 -XX:ThreadPriorityPolicy=42 -Xms1240M -Xmx1240M -Xmn310M
 -XX:+HeapDumpOnOutOfMemoryError
 ./cassandra: 151: exec: root@instance-0001:/opt/cassandra/bin# java:
 not found


 Below is the cassandra file from the line 146 to 154
  if [ x$foreground != x ]; then
 cassandra_parms=$cassandra_parms -Dcassandra-foreground=yes
 exec $NUMACTL $JAVA $JVM_OPTS $cassandra_parms -cp $CLASSPATH
 $props $class
 # Startup CassandraDaemon, background it, and write the pid.
 else
 exec $NUMACTL $JAVA $JVM_OPTS $cassandra_parms -cp $CLASSPATH
 $props $class - 
 [ ! -z $pidpath ]  printf %d $!  $pidpath
 true
 fi


 I would like to know what causes this issue.


 Thank you,

 --
 *Vishanth Balasubramaniam*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94771737718*
 about me: *http://about.me/vishanth http://about.me/vishanth*


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Regards,
Manula Chathurika Thantriwatte
Software Engineer
WSO2 Inc. : http://wso2.com
lean . enterprise . middleware

email : manu...@wso2.com / man...@apache.org
phone : +94 772492511
blog : http://manulachathurika.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when running the Cassandra Docker

2014-10-03 Thread Sajith Kariyawasam
On Fri, Oct 3, 2014 at 2:26 PM, Manula Chathurika Thantriwatte 
manu...@wso2.com wrote:

 Hi Vishanth,

 Can you increase the JVM_OPTS values and try again.

 Thanks !

 On Fri, Oct 3, 2014 at 1:29 PM, Vishanth Balasubramaniam 
 vishan...@wso2.com wrote:

 Hi,

 I'm currently working on creating a cassandra cartridge for apache
 stratos using docker. I was able to successfully build the cassandra
 cartridge in the virtual machine and the member is getting activated
 successfully.

 When i try to run the cassandra inside the instance, I am getting the
 following error.

 root@instance-0001:/opt/cassandra/bin# ./cassandra
 xss =  -ea -javaagent:./../lib/jamm-0.2.5.jar -XX:+UseThreadPriorities
 -XX:ThreadPriorityPolicy=42 -Xms1240M -Xmx1240M -Xmn310M
 -XX:+HeapDumpOnOutOfMemoryError
 ./cassandra: 151: exec: root@instance-0001:/opt/cassandra/bin# java:
 not found



Seems java bin directory is also not properly set to $PATH
what does echo $JAVA_HOME  and echo $PATH gives you?



 Below is the cassandra file from the line 146 to 154
  if [ x$foreground != x ]; then
 cassandra_parms=$cassandra_parms -Dcassandra-foreground=yes
 exec $NUMACTL $JAVA $JVM_OPTS $cassandra_parms -cp $CLASSPATH
 $props $class
 # Startup CassandraDaemon, background it, and write the pid.
 else
 exec $NUMACTL $JAVA $JVM_OPTS $cassandra_parms -cp $CLASSPATH
 $props $class - 
 [ ! -z $pidpath ]  printf %d $!  $pidpath
 true
 fi


 I would like to know what causes this issue.


 Thank you,

 --
 *Vishanth Balasubramaniam*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94771737718*
 about me: *http://about.me/vishanth http://about.me/vishanth*


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
*Sajith Kariyawasam*


*Committer and PMC member, Apache Stratos,WSO2 Inc., http://wso2.com
http://wso2.comAMIE (SL)Mobile: +94772269575*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] siddhi v2.2.0-SNAPSHOT stop calling callbacks after few seconds

2014-10-03 Thread andresgomez92
Thanks for your help, Lasantha!

-- 
Andres Gomez
Developer at Eneo Tecnologia.
Website: http://redborder.net
LinkedIn: http://lnkd.in/sHnbJe


En 3 de octubre de 2014 en 10:25:06, Lasantha Fernando [via WSO2 Oxygen Tank] 
(ml-node+s10903n104356...@n7.nabble.com) escrito:

Hi Andrés,

In your earlier query, it seems that you have a sequence with two predicates 
running on different threads/nodes. In such a case, synching between the two 
threads can be non-trivial AFAIK.

However, you can try to scale first for other usecases (other than patterns, 
sequences). Different queries can be scaled in pipeline fashion, and also 
partitioning the input stream to scale might be another option. We are 
currently writing Siddhi 3.0.0 with more support for distributed cases. You can 
find the siddhi-3.0.0 branch at [1]. Please consider this as still 'Work in 
Progress'.

However, let me dig deeper into your usecase and get back to you on how to 
tackle scalability on your usecase.

[1] https://github.com/wso2-dev/siddhi/tree/Siddhi-3.0.0

Thanks,
Lasantha



On 3 October 2014 12:57, andresgomez92 [hidden email] wrote:
Hi Lasantha,

I have changed my storm topology. Now, all stream go to the same
siddhiManager instance and all queries works fine.

But now, I only have 1 instance of siddhiManager without distributed
processing ... How can I get scalability???


Thanks,

Andrés



-
--
Andres Gomez
Developer at Eneo Tecnologia.
Website: http://redborder.net
LinkedIn: http://lnkd.in/sHnbJe

--
View this message in context: 
http://wso2-oxygen-tank.10903.n7.nabble.com/siddhi-v2-2-0-SNAPSHOT-stop-calling-callbacks-after-few-seconds-tp103254p104350.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
___
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev



--
Lasantha Fernando
Software Engineer - Data Technologies Team
WSO2 Inc. http://wso2.com

email: [hidden email]
mobile: (+94) 71 5247551

___
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev


If you reply to this email, your message will be added to the discussion below:
http://wso2-oxygen-tank.10903.n7.nabble.com/siddhi-v2-2-0-SNAPSHOT-stop-calling-callbacks-after-few-seconds-tp103254p104356.html
To unsubscribe from siddhi v2.2.0-SNAPSHOT stop calling callbacks after few 
seconds, click here.
NAML



-
-- 
Andres Gomez
Developer at Eneo Tecnologia.
Website: http://redborder.net
LinkedIn: http://lnkd.in/sHnbJe

--
View this message in context: 
http://wso2-oxygen-tank.10903.n7.nabble.com/siddhi-v2-2-0-SNAPSHOT-stop-calling-callbacks-after-few-seconds-tp103254p104367.html
Sent from the WSO2 Development mailing list archive at Nabble.com.___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when running the Cassandra Docker

2014-10-03 Thread Vishanth Balasubramaniam
Hi Manula,

I did try increasing it to JVM_OPTS to Xss280 and Xss380, still I'm getting
that issue.

On Fri, Oct 3, 2014 at 2:32 PM, Sajith Kariyawasam saj...@wso2.com wrote:



 On Fri, Oct 3, 2014 at 2:26 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi Vishanth,

 Can you increase the JVM_OPTS values and try again.

 Thanks !

 On Fri, Oct 3, 2014 at 1:29 PM, Vishanth Balasubramaniam 
 vishan...@wso2.com wrote:

 Hi,

 I'm currently working on creating a cassandra cartridge for apache
 stratos using docker. I was able to successfully build the cassandra
 cartridge in the virtual machine and the member is getting activated
 successfully.

 When i try to run the cassandra inside the instance, I am getting the
 following error.

 root@instance-0001:/opt/cassandra/bin# ./cassandra
 xss =  -ea -javaagent:./../lib/jamm-0.2.5.jar -XX:+UseThreadPriorities
 -XX:ThreadPriorityPolicy=42 -Xms1240M -Xmx1240M -Xmn310M
 -XX:+HeapDumpOnOutOfMemoryError
 ./cassandra: 151: exec: root@instance-0001:/opt/cassandra/bin#
 java: not found



 Seems java bin directory is also not properly set to $PATH
 what does echo $JAVA_HOME  and echo $PATH gives you?



 Below is the cassandra file from the line 146 to 154
  if [ x$foreground != x ]; then
 cassandra_parms=$cassandra_parms -Dcassandra-foreground=yes
 exec $NUMACTL $JAVA $JVM_OPTS $cassandra_parms -cp
 $CLASSPATH $props $class
 # Startup CassandraDaemon, background it, and write the pid.
 else
 exec $NUMACTL $JAVA $JVM_OPTS $cassandra_parms -cp
 $CLASSPATH $props $class - 
 [ ! -z $pidpath ]  printf %d $!  $pidpath
 true
 fi


 I would like to know what causes this issue.


 Thank you,

 --
 *Vishanth Balasubramaniam*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94771737718*
 about me: *http://about.me/vishanth http://about.me/vishanth*


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Sajith Kariyawasam*


 *Committer and PMC member, Apache Stratos,WSO2 Inc., http://wso2.com
 http://wso2.comAMIE (SL)Mobile: +94772269575*




-- 
*Vishanth Balasubramaniam*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94771737718*
about me: *http://about.me/vishanth http://about.me/vishanth*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error while creating database in NDB Mysql Cluster

2014-10-03 Thread Nuwan Silva
$(subject) give the following error;
ERROR 1296 (HY000): Got error 708 'No more attribute metadata records
(increase MaxNoOfAttributes)' from NDBCLUSTER

While searching [1] suggests to increase *MaxNoOfAttributes=4G* and restart
Management node and data nodes respectively. We did but, still the issue
persists.

any idea on how we can resolve this?

[1] http://forums.mysql.com/read.php?25,597554,597554

Regards,
NuwanS.

-- 


*Nuwan Silva*
*Senior Software Engineer - QA*
Mobile: +94779804543

WSO2 Inc.
lean . enterprise . middlewear.
http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Build https://github.com/wso2-dev/carbon-registry repository before building AF components

2014-10-03 Thread Manjula Rathnayake
Hi all,

Please do the $Subject because we have a new dependency for
org.wso2.carbon.registry.metadata
https://github.com/wso2-dev/carbon-registry/tree/master/components/registry/org.wso2.carbon.registry.metadata
 bundle.

thank you.

-- 
Manjula Rathnayaka
Software Engineer
WSO2, Inc.
Mobile:+94 77 743 1987
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API manager - Error while getting Subscriber

2014-10-03 Thread Dinesh J Weerakkody
Akila,

Do you get this error at each and every time when you starts nodes or just
one time error?

On Thu, Oct 2, 2014 at 3:11 PM, Akila Nimantha [IT/EKO/LOITS] 
aki...@lolctech.com wrote:

  Hi Udara and Dinesh,



 I think I solved the problem.. problem was with my oracle ojdbc connector
 I think. What I did was changed the odbc5 to odbc6 and cleared all
 generated files in repository/components/dropins.

 Thank you very much for your instant replies.

 Now all server components working but when starting Publisher it shows a
 error(but anyway server is up and running) regarding
 “CarbonDeploymentSchedulerTask Error while running deployment scheduler”
 check below for full error . also I search in the internet about this and
 it says I need to add some patch to solve this problem. Guys do you have
 any idea about that.



 ERROR - CarbonDeploymentSchedulerTask Error while running
 deployment scheduler..

 java.util.ConcurrentModificationException

 at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)

 at java.util.HashMap$EntryIterator.next(HashMap.java:834)

 at java.util.HashMap$EntryIterator.next(HashMap.java:832)

 at
 org.apache.axis2.deployment.RepositoryListener.loadOtherDirectories(Re
 positoryListener.java:270)

 at
 org.apache.axis2.deployment.RepositoryListener.checkServices(Repositor
 yListener.java:253)

 at
 org.apache.axis2.deployment.RepositoryListener.startListener(Repositor
 yListener.java:371)

 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(Sc
 hedulerTask.java:59)

 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.
 java:67)

 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisD
 eployment(CarbonDeploymentSchedulerTask.java:79)

 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(Carb
 onDeploymentSchedulerTask.java:124)

 at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439
 )

 at
 java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:
 317)

 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.a
 ccess$101(ScheduledThreadPoolExecutor.java:98)

 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.r
 unPeriodic(ScheduledThreadPoolExecutor.java:180)

 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.r
 un(ScheduledThreadPoolExecutor.java:204)

 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecu
 tor.java:895)

 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
 java:918)

 at java.lang.Thread.run(Thread.java:662)



 Regards,

 Akila



 *From:* Dinesh J Weerakkody [mailto:dine...@wso2.com]
 *Sent:* Thursday, October 02, 2014 8:31 AM
 *To:* Udara Rathnayake
 *Cc:* Akila Nimantha [IT/EKO/LOITS]; dev@wso2.org
 *Subject:* Re: [Dev] API manager - Error while getting Subscriber



 Hi Akila,

 If you go down to your error log you will be able to see a database
 connection issue

 Caused by: java.sql.SQLException: ORA-00942: table or view does not exist

  When I go through your database configuration I saw a typo in connection
 URL

 jdbc:oracle:*chin*:@10.20.30.40:50/databasess

 and it should be

 jdbc:oracle:*thin*:@10.20.30.40:50/databasess



 I hope this will help you..

 Thanks.





 On Thu, Oct 2, 2014 at 1:45 AM, Udara Rathnayake uda...@wso2.com wrote:

  Hi Akila,

 Are you getting the same error when you login to store app continuously?



 On Wed, Oct 1, 2014 at 7:46 AM, Akila Nimantha [IT/EKO/LOITS] 
 aki...@lolctech.com wrote:

  Hi all,



 I am trying to deploy api manager in cluster pattern with targeting oracle
 db. I just followed
 https://docs.wso2.com/display/CLUSTER420/Clustering+API+Manager and
 changed to oracle db from mysql. now all four components are up and running
 but in Store node, when I trying to login, in front end it shows nothing.
 But the log gives me following error,(please check attached log.txt for
 more..)



 TID: [0] [AM] [2014-10-01 19:54:17,205] ERROR
 {org.jaggeryjs.scriptengine.engine.RhinoEngine} -
 org.mozilla.javascript.WrappedException: Wrapped
 org.wso2.carbon.apimgt.api.APIManagementException: Error while getting
 Subscriber (/store/modules/user/login.jag#38)
 {org.jaggeryjs.scriptengine.engine.RhinoEngine}

 TID: [0] [AM] [2014-10-01 19:54:17,205] ERROR
 {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
 org.mozilla.javascript.WrappedException: Wrapped
 org.wso2.carbon.apimgt.api.APIManagementException: Error while getting
 Subscriber (/store/modules/user/login.jag#38)
 {org.jaggeryjs.jaggery.core.manager.WebAppManager}

 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.WrappedException: Wrapped
 

Re: [Dev] API manager - Error while getting Subscriber

2014-10-03 Thread Akila Nimantha [IT/EKO/LOITS]
Hi Dinesh,

I get this error each time start nodes. But after starting the node(after 
showing urls to login) it not shows again. And for now it not affected to my 
works AFAIK(but don’t know how will affect in future). Just wanted to clear 
from you guys.

Regards,
Akila

From: Dinesh J Weerakkody [mailto:dine...@wso2.com]
Sent: Friday, October 03, 2014 4:25 PM
To: Akila Nimantha [IT/EKO/LOITS]
Cc: Udara Rathnayake; dev@wso2.org
Subject: Re: [Dev] API manager - Error while getting Subscriber

Akila,
Do you get this error at each and every time when you starts nodes or just one 
time error?

On Thu, Oct 2, 2014 at 3:11 PM, Akila Nimantha [IT/EKO/LOITS] 
aki...@lolctech.commailto:aki...@lolctech.com wrote:
Hi Udara and Dinesh,

I think I solved the problem.. problem was with my oracle ojdbc connector I 
think. What I did was changed the odbc5 to odbc6 and cleared all generated 
files in repository/components/dropins.
Thank you very much for your instant replies.
Now all server components working but when starting Publisher it shows a 
error(but anyway server is up and running) regarding 
“CarbonDeploymentSchedulerTask Error while running deployment scheduler” check 
below for full error . also I search in the internet about this and it says I 
need to add some patch to solve this problem. Guys do you have any idea about 
that.

ERROR - CarbonDeploymentSchedulerTask Error while running 
deployment scheduler..
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
at java.util.HashMap$EntryIterator.next(HashMap.java:834)
at java.util.HashMap$EntryIterator.next(HashMap.java:832)
at 
org.apache.axis2.deployment.RepositoryListener.loadOtherDirectories(Re  
  positoryListener.java:270)
at 
org.apache.axis2.deployment.RepositoryListener.checkServices(Repositor  
  yListener.java:253)
at 
org.apache.axis2.deployment.RepositoryListener.startListener(Repositor  
  yListener.java:371)
at 
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(Sc  
  hedulerTask.java:59)
at 
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.  
  java:67)
at 
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisD  
  eployment(CarbonDeploymentSchedulerTask.java:79)
at 
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(Carb  
  onDeploymentSchedulerTask.java:124)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439  
  )
at 
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:  
  317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.a  
  ccess$101(ScheduledThreadPoolExecutor.java:98)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.r  
  unPeriodic(ScheduledThreadPoolExecutor.java:180)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.r  
  un(ScheduledThreadPoolExecutor.java:204)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecu  
  tor.java:895)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.  
  java:918)
at java.lang.Thread.run(Thread.java:662)

Regards,
Akila

From: Dinesh J Weerakkody [mailto:dine...@wso2.commailto:dine...@wso2.com]
Sent: Thursday, October 02, 2014 8:31 AM
To: Udara Rathnayake
Cc: Akila Nimantha [IT/EKO/LOITS]; dev@wso2.orgmailto:dev@wso2.org
Subject: Re: [Dev] API manager - Error while getting Subscriber

Hi Akila,
If you go down to your error log you will be able to see a database connection 
issue

Caused by: java.sql.SQLException: ORA-00942: table or view does not exist
When I go through your database configuration I saw a typo in connection URL

jdbc:oracle:chin:@10.20.30.40:50/databasesshttp://10.20.30.40:50/databasess

and it should be
jdbc:oracle:thin:@10.20.30.40:50/databasesshttp://10.20.30.40:50/databasess

I hope this will help you..
Thanks.



On Thu, Oct 2, 2014 at 1:45 AM, Udara Rathnayake 
uda...@wso2.commailto:uda...@wso2.com wrote:
Hi Akila,
Are you getting the same error when you login to store app continuously?

On Wed, Oct 1, 2014 at 7:46 AM, Akila Nimantha [IT/EKO/LOITS] 
aki...@lolctech.commailto:aki...@lolctech.com wrote:
Hi all,

I am trying to deploy api manager in cluster pattern with targeting oracle db. 
I just followed https://docs.wso2.com/display/CLUSTER420/Clustering+API+Manager 
and changed to oracle db from mysql. now all four components are up and running 
but in Store node, when I trying to login, in front end it shows nothing. But 
the log gives me following error,(please check attached log.txt for more..)


Re: [Dev] [DSS][3.2.1]Try this service function does not work in Firefox with HTTP endpoints

2014-10-03 Thread Asanka Abeyweera
Hi Sameera,

We had a discussion on a similar issue in mail thread [1]. Please have a
look.

[1] Mail thread: Not getting response in try-it in FF browser

On Fri, Oct 3, 2014 at 5:14 PM, Sameera Kannangara samee...@wso2.com
wrote:

 Hi all,

 In DSS 3.2.1 fresh pack, Try this service function does not display an
 output for HTTP endpoints, for pre packed services (echo,
 samples/RDBMSSamples and Version).

 How to reproduce:

 Unzip a fresh pack of WSO2 DSS 3.2.1
 Start the server.
 log in to admin console using Firefox.
 go to services menu in the main services menu pan in the left hand side.
 Click on Try this service link on a sample service like echo.
 You will be directed to tryit page of the respective service and endpoints
 will be set to HTTP ones.
 Click send and notice that nothing appears in response section.
 Also nothing get printed in the terminal output.

 Note:
 If you enable firebug and check the network traffic you'll notice that
 response get delivered to webpage, but not rendered properly.
 If you change the transport type to HTTPS, correct response get rendered
 in the response section.
 This functionality works fine with Google chrome on both HTTP and HTTPS.

 I've checked Try this service function with ESB 4.8.1 and AS 5.2.1, and
 it works fine with both HTTP and HTTPS in Firefox.
 What could cause the issue here?

 Thank you,
 SameeraK.


 --
 *Sameera Kannangara*
 Software Engineer
 Platform TG; WSO2 Inc. http://wso2.com
 Contact:
 phone: +94719541577
 Lean . Enterprise . Middleware

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Asanka Abeyweera
Software Engineer
WSO2 Inc.

Phone: +94 712228648
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WSO2MB] Cannot start User Manager Core bundle error on server startup

2014-10-03 Thread Asitha Nanayakkara
Hi everyone,

Since the issue is a blocker for us we are making the versions consistent
throughout the platform by using the existing cql-driver. Changes needed in
carbon-storage-management is complete.

@PrabathA: Please review and merge the pull request
https://github.com/wso2-dev/carbon-storage-management/pull/48

Thank you.

On Thu, Oct 2, 2014 at 7:37 AM, Prabath Abeysekera praba...@wso2.com
wrote:

 Hi Everyone,

 AsankaAB and Asitha have finally found the root cause of this issue.
 Excellent stuff guys!

 It appears as if a few different versions of transitive dependencies (i.e
 guava) used within some of the libraries resulted in the package conflicts
 observed. As for the resolutions available, we'd have to make the versions
 of the aforesaid libraries that are being used in other dependencies
 consistent across the platform. This is currently being worked on and We'll
 be updating the thread once done.

 Cheers,
 Prabath

 On Wed, Oct 1, 2014 at 5:29 PM, Asitha Nanayakkara asi...@wso2.com
 wrote:

 adding dev list

 On Wed, Oct 1, 2014 at 9:36 AM, Asanka Abeyweera asank...@wso2.com
 wrote:

 Hi Asitha/Prabath,

 The issue is seems to be a side effect of the switch we made from
 cql-driver to cassandra-driver-core. I reverted back to cql-driver and the
 issue does not occur after that. Therefore I think the issue is with
 cassandra-driver-core bundle.

 Since we use the org.wso2.carbon.cassandra.datareader.feature which
 uses cassandra-driver-core, we cannot switch completely to cql-driver until
 the datareader feature also revert back to cql-driver. What do you think we
 should do to resolve this issue?



 On Wed, Oct 1, 2014 at 5:44 AM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Most probably the proper initialization of the data-source component
 was interrupted as a result of some issue it was hit with while trying to
 register CassandraDaraReader. This might have further gone on to block
 the process of making the data-sources configured in the
 master-datasources.xml JNDI bound, causing the reported problem.

 Why don't you boot up the server with OSGi debugging mode on and see
 what's gone wrong? In the meantime, I too will give it a try and see if I
 can get this reproduced locally.

 Cheers,
 Pravatg

 On Tue, Sep 30, 2014 at 2:49 PM, Asitha Nanayakkara asi...@wso2.com
 wrote:

 Hi,

 When I add
 org.wso2.carbon.cassandra.datareader.datasource.CassandraDataSourceReader
 to the providers list of  master-datasources.xml I get an error[1]
 initialising User Manager Core Bundle due to failure to lookup
 jdbc/WSO2CarbonDB entry in master-datasources.xml.

 When the CassandraDataSourceReader is removed from providers this
 doesn't happen. Due to this we can't connect an external Cassandra data
 source for MB. This is a blocker for WSO2 MB 3.0.0 M1 release. (This 
 worked
 fine earlier)

 Any idea why this is happening?


 [1]
 ERROR {org.wso2.carbon.user.core.internal.Activator} -  Cannot start
 User Manager Core bundle
 java.lang.RuntimeException: Error in looking up data source: Name
 [jdbc/WSO2CarbonDB] is not bound in this Context. Unable to find [jdbc].
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.lookupDataSource(DatabaseUtil.java:86)
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.createRealmDataSource(DatabaseUtil.java:172)
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.getRealmDataSource(DatabaseUtil.java:66)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.init(DefaultRealmService.java:89)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.init(DefaultRealmService.java:114)
 at
 org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:69)
 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
 

Re: [Dev] [WSO2MB] Cannot start User Manager Core bundle error on server startup

2014-10-03 Thread Asanka Abeyweera
Hi all,

I created a pull request [1] in wso2/orbit removing the parent pom
reference in cql-driver bundle. Can we release this as
cql-driver-1.0.5.wso2v2 in wso2/orbit?

[1] https://github.com/wso2/orbit/pull/26


On Fri, Oct 3, 2014 at 6:17 PM, Asitha Nanayakkara asi...@wso2.com wrote:

 Hi everyone,

 Since the issue is a blocker for us we are making the versions consistent
 throughout the platform by using the existing cql-driver. Changes needed in
 carbon-storage-management is complete.

 @PrabathA: Please review and merge the pull request
 https://github.com/wso2-dev/carbon-storage-management/pull/48

 Thank you.

 On Thu, Oct 2, 2014 at 7:37 AM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Hi Everyone,

 AsankaAB and Asitha have finally found the root cause of this issue.
 Excellent stuff guys!

 It appears as if a few different versions of transitive dependencies (i.e
 guava) used within some of the libraries resulted in the package conflicts
 observed. As for the resolutions available, we'd have to make the versions
 of the aforesaid libraries that are being used in other dependencies
 consistent across the platform. This is currently being worked on and We'll
 be updating the thread once done.

 Cheers,
 Prabath

 On Wed, Oct 1, 2014 at 5:29 PM, Asitha Nanayakkara asi...@wso2.com
 wrote:

 adding dev list

 On Wed, Oct 1, 2014 at 9:36 AM, Asanka Abeyweera asank...@wso2.com
 wrote:

 Hi Asitha/Prabath,

 The issue is seems to be a side effect of the switch we made from
 cql-driver to cassandra-driver-core. I reverted back to cql-driver and the
 issue does not occur after that. Therefore I think the issue is with
 cassandra-driver-core bundle.

 Since we use the org.wso2.carbon.cassandra.datareader.feature which
 uses cassandra-driver-core, we cannot switch completely to cql-driver until
 the datareader feature also revert back to cql-driver. What do you think we
 should do to resolve this issue?



 On Wed, Oct 1, 2014 at 5:44 AM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Most probably the proper initialization of the data-source component
 was interrupted as a result of some issue it was hit with while trying to
 register CassandraDaraReader. This might have further gone on to block
 the process of making the data-sources configured in the
 master-datasources.xml JNDI bound, causing the reported problem.

 Why don't you boot up the server with OSGi debugging mode on and see
 what's gone wrong? In the meantime, I too will give it a try and see if I
 can get this reproduced locally.

 Cheers,
 Pravatg

 On Tue, Sep 30, 2014 at 2:49 PM, Asitha Nanayakkara asi...@wso2.com
 wrote:

 Hi,

 When I add
 org.wso2.carbon.cassandra.datareader.datasource.CassandraDataSourceReader
 to the providers list of  master-datasources.xml I get an error[1]
 initialising User Manager Core Bundle due to failure to lookup
 jdbc/WSO2CarbonDB entry in master-datasources.xml.

 When the CassandraDataSourceReader is removed from providers this
 doesn't happen. Due to this we can't connect an external Cassandra data
 source for MB. This is a blocker for WSO2 MB 3.0.0 M1 release. (This 
 worked
 fine earlier)

 Any idea why this is happening?


 [1]
 ERROR {org.wso2.carbon.user.core.internal.Activator} -  Cannot start
 User Manager Core bundle
 java.lang.RuntimeException: Error in looking up data source: Name
 [jdbc/WSO2CarbonDB] is not bound in this Context. Unable to find [jdbc].
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.lookupDataSource(DatabaseUtil.java:86)
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.createRealmDataSource(DatabaseUtil.java:172)
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.getRealmDataSource(DatabaseUtil.java:66)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.init(DefaultRealmService.java:89)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.init(DefaultRealmService.java:114)
 at
 org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:69)
 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
 

Re: [Dev] [WSO2MB] Cannot start User Manager Core bundle error on server startup

2014-10-03 Thread Harsha Kumara
Adding Maheshika.

On Fri, Oct 3, 2014 at 6:23 PM, Asanka Abeyweera asank...@wso2.com wrote:

 Hi all,

 I created a pull request [1] in wso2/orbit removing the parent pom
 reference in cql-driver bundle. Can we release this as
 cql-driver-1.0.5.wso2v2 in wso2/orbit?

 [1] https://github.com/wso2/orbit/pull/26


 On Fri, Oct 3, 2014 at 6:17 PM, Asitha Nanayakkara asi...@wso2.com
 wrote:

 Hi everyone,

 Since the issue is a blocker for us we are making the versions consistent
 throughout the platform by using the existing cql-driver. Changes needed in
 carbon-storage-management is complete.

 @PrabathA: Please review and merge the pull request
 https://github.com/wso2-dev/carbon-storage-management/pull/48

 Thank you.

 On Thu, Oct 2, 2014 at 7:37 AM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Hi Everyone,

 AsankaAB and Asitha have finally found the root cause of this issue.
 Excellent stuff guys!

 It appears as if a few different versions of transitive dependencies
 (i.e guava) used within some of the libraries resulted in the package
 conflicts observed. As for the resolutions available, we'd have to make the
 versions of the aforesaid libraries that are being used in other
 dependencies consistent across the platform. This is currently being worked
 on and We'll be updating the thread once done.

 Cheers,
 Prabath

 On Wed, Oct 1, 2014 at 5:29 PM, Asitha Nanayakkara asi...@wso2.com
 wrote:

 adding dev list

 On Wed, Oct 1, 2014 at 9:36 AM, Asanka Abeyweera asank...@wso2.com
 wrote:

 Hi Asitha/Prabath,

 The issue is seems to be a side effect of the switch we made from
 cql-driver to cassandra-driver-core. I reverted back to cql-driver and the
 issue does not occur after that. Therefore I think the issue is with
 cassandra-driver-core bundle.

 Since we use the org.wso2.carbon.cassandra.datareader.feature which
 uses cassandra-driver-core, we cannot switch completely to cql-driver 
 until
 the datareader feature also revert back to cql-driver. What do you think 
 we
 should do to resolve this issue?



 On Wed, Oct 1, 2014 at 5:44 AM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Most probably the proper initialization of the data-source component
 was interrupted as a result of some issue it was hit with while trying to
 register CassandraDaraReader. This might have further gone on to block
 the process of making the data-sources configured in the
 master-datasources.xml JNDI bound, causing the reported problem.

 Why don't you boot up the server with OSGi debugging mode on and see
 what's gone wrong? In the meantime, I too will give it a try and see if I
 can get this reproduced locally.

 Cheers,
 Pravatg

 On Tue, Sep 30, 2014 at 2:49 PM, Asitha Nanayakkara asi...@wso2.com
 wrote:

 Hi,

 When I add
 org.wso2.carbon.cassandra.datareader.datasource.CassandraDataSourceReader
 to the providers list of  master-datasources.xml I get an error[1]
 initialising User Manager Core Bundle due to failure to lookup
 jdbc/WSO2CarbonDB entry in master-datasources.xml.

 When the CassandraDataSourceReader is removed from providers this
 doesn't happen. Due to this we can't connect an external Cassandra data
 source for MB. This is a blocker for WSO2 MB 3.0.0 M1 release. (This 
 worked
 fine earlier)

 Any idea why this is happening?


 [1]
 ERROR {org.wso2.carbon.user.core.internal.Activator} -  Cannot start
 User Manager Core bundle
 java.lang.RuntimeException: Error in looking up data source: Name
 [jdbc/WSO2CarbonDB] is not bound in this Context. Unable to find [jdbc].
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.lookupDataSource(DatabaseUtil.java:86)
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.createRealmDataSource(DatabaseUtil.java:172)
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.getRealmDataSource(DatabaseUtil.java:66)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.init(DefaultRealmService.java:89)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.init(DefaultRealmService.java:114)
 at
 org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:69)
 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
 

[Dev] org.wso2.carbon.core.util.KeyStoreManager.getDefaultPrivateKey()

2014-10-03 Thread Danushka Fernando
Hi All
I noticed that if I call the method in $subject without
calling KeyStoreManager.getDefaultPrimaryCertificate() its throwing a null
pointer. Is this a bug or the expected behavior. AFAIU when we call
$subject it should internally load the default primary cert. Correct me if
I am wrong.


Thanks  Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WSO2MB] Cannot start User Manager Core bundle error on server startup

2014-10-03 Thread Dhanuka Ranasinghe
Hi,

I don't have permission to merge below pull request, I guess some one who
has permission would need to attend this.

https://github.com/wso2/orbit/pull/26

Cheers,
Dhanuka

*Dhanuka Ranasinghe*

Senior Software Engineer
WSO2 Inc. ; http://wso2.com
lean . enterprise . middleware

phone : +94 715381915

On Fri, Oct 3, 2014 at 6:31 PM, Harsha Kumara hars...@wso2.com wrote:

 Adding Maheshika.

 On Fri, Oct 3, 2014 at 6:23 PM, Asanka Abeyweera asank...@wso2.com
 wrote:

 Hi all,

 I created a pull request [1] in wso2/orbit removing the parent pom
 reference in cql-driver bundle. Can we release this as
 cql-driver-1.0.5.wso2v2 in wso2/orbit?

 [1] https://github.com/wso2/orbit/pull/26


 On Fri, Oct 3, 2014 at 6:17 PM, Asitha Nanayakkara asi...@wso2.com
 wrote:

 Hi everyone,

 Since the issue is a blocker for us we are making the versions
 consistent throughout the platform by using the existing cql-driver.
 Changes needed in carbon-storage-management is complete.

 @PrabathA: Please review and merge the pull request
 https://github.com/wso2-dev/carbon-storage-management/pull/48

 Thank you.

 On Thu, Oct 2, 2014 at 7:37 AM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Hi Everyone,

 AsankaAB and Asitha have finally found the root cause of this issue.
 Excellent stuff guys!

 It appears as if a few different versions of transitive dependencies
 (i.e guava) used within some of the libraries resulted in the package
 conflicts observed. As for the resolutions available, we'd have to make the
 versions of the aforesaid libraries that are being used in other
 dependencies consistent across the platform. This is currently being worked
 on and We'll be updating the thread once done.

 Cheers,
 Prabath

 On Wed, Oct 1, 2014 at 5:29 PM, Asitha Nanayakkara asi...@wso2.com
 wrote:

 adding dev list

 On Wed, Oct 1, 2014 at 9:36 AM, Asanka Abeyweera asank...@wso2.com
 wrote:

 Hi Asitha/Prabath,

 The issue is seems to be a side effect of the switch we made from
 cql-driver to cassandra-driver-core. I reverted back to cql-driver and 
 the
 issue does not occur after that. Therefore I think the issue is with
 cassandra-driver-core bundle.

 Since we use the org.wso2.carbon.cassandra.datareader.feature which
 uses cassandra-driver-core, we cannot switch completely to cql-driver 
 until
 the datareader feature also revert back to cql-driver. What do you think 
 we
 should do to resolve this issue?



 On Wed, Oct 1, 2014 at 5:44 AM, Prabath Abeysekera praba...@wso2.com
  wrote:

 Most probably the proper initialization of the data-source component
 was interrupted as a result of some issue it was hit with while trying 
 to
 register CassandraDaraReader. This might have further gone on to block
 the process of making the data-sources configured in the
 master-datasources.xml JNDI bound, causing the reported problem.

 Why don't you boot up the server with OSGi debugging mode on and see
 what's gone wrong? In the meantime, I too will give it a try and see if 
 I
 can get this reproduced locally.

 Cheers,
 Pravatg

 On Tue, Sep 30, 2014 at 2:49 PM, Asitha Nanayakkara asi...@wso2.com
  wrote:

 Hi,

 When I add
 org.wso2.carbon.cassandra.datareader.datasource.CassandraDataSourceReader
 to the providers list of  master-datasources.xml I get an error[1]
 initialising User Manager Core Bundle due to failure to lookup
 jdbc/WSO2CarbonDB entry in master-datasources.xml.

 When the CassandraDataSourceReader is removed from providers this
 doesn't happen. Due to this we can't connect an external Cassandra data
 source for MB. This is a blocker for WSO2 MB 3.0.0 M1 release. (This 
 worked
 fine earlier)

 Any idea why this is happening?


 [1]
 ERROR {org.wso2.carbon.user.core.internal.Activator} -  Cannot
 start User Manager Core bundle
 java.lang.RuntimeException: Error in looking up data source: Name
 [jdbc/WSO2CarbonDB] is not bound in this Context. Unable to find 
 [jdbc].
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.lookupDataSource(DatabaseUtil.java:86)
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.createRealmDataSource(DatabaseUtil.java:172)
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.getRealmDataSource(DatabaseUtil.java:66)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.init(DefaultRealmService.java:89)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.init(DefaultRealmService.java:114)
 at
 org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:69)
 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
 

Re: [Dev] org.wso2.carbon.core.util.KeyStoreManager.getDefaultPrivateKey()

2014-10-03 Thread Prabath Siriwardena
Yes... need to fix that..

return (PublicKey)
primaryKeyStore.getCertificate(alias).getPublicKey(); should be
replaced as,

return (PublicKey) getPrimaryKeyStore().getCertificate(alias).getPublicKey();

Thanks  regards,
-Prabath

On Fri, Oct 3, 2014 at 9:33 PM, Danushka Fernando danush...@wso2.com wrote:
 Hi All
 I noticed that if I call the method in $subject without calling
 KeyStoreManager.getDefaultPrimaryCertificate() its throwing a null pointer.
 Is this a bug or the expected behavior. AFAIU when we call $subject it
 should internally load the default primary cert. Correct me if I am wrong.


 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729



-- 
Thanks  Regards,
Prabath

Twitter : @prabath
LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

Mobile : +94 71 809 6732

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Signature verification error - Signature length not correct: got 203 but was expecting 128

2014-10-03 Thread Danushka Fernando
Hi All
I am trying to send some singed string from client to the server and in
server side I am trying to verify it. My code is as per below.

*Client Side*

//Get the filesystem keystore default primary certificate
KeyStoreManager keyStoreManager;
keyStoreManager =
KeyStoreManager.getInstance(MultitenantConstants.SUPER_TENANT_ID);
Signature signature;
try {
//Sign the secret
keyStoreManager.getDefaultPrimaryCertificate();
signature = Signature.getInstance(SHA1WithRSA);
signature.initSign(keyStoreManager.getDefaultPrivateKey());
signature.update(serverSecret.getBytes());
String signatureString = new String(signature.sign());
String headerString = new String(username + : + signatureString + : +
serverSecret);

// Set authorization header to service client
List headerList = new ArrayList();
Header header = new Header();
header.setName(HTTPConstants.HEADER_AUTHORIZATION);
header.setValue(CloudLogin  +
Base64Utils.encode(headerString.getBytes()));
headerList.add(header);
serviceClient.getOptions().setProperty(HTTPConstants.HTTP_HEADERS,
headerList);
} catch (Exception e) {
String msg = Failed to get primary default certificate;
log.error(msg, e);
throw new AppFactoryException(msg, e);
}



*Server Side*

//Get the filesystem keystore default primary certificate
KeyStoreManager keyStoreManager =
KeyStoreManager.getInstance(MultitenantConstants.SUPER_TENANT_ID);
X509Certificate cert =
keyStoreManager.getDefaultPrimaryCertificate();

//Authorization: CloudLogin xxx
//header data base64encode(username:signature:secret)
String authorizationHeader =
request.getHeader(HTTPConstants.HEADER_AUTHORIZATION);
String[] headerData =
decodeAuthorizationHeader(authorizationHeader);

Signature signature = Signature.getInstance(SHA1WithRSA);
signature.initVerify(cert.getPublicKey());
signature.update(headerData[2].getBytes());

if (signature.verify(headerData[1].getBytes())) {
   //my logic goes here
}
} catch (Exception e) {
log.error(Error authenticating the user  + e.getMessage(), e);
}
return isAuthenticated;
}

I ended up with the error [1]. Any idea what I am doing wrong. And idea
would be appreciated.
@Prabath: We are going to do what you suggested in M7. For just M6 we are
trying to go with this solution.

[1][2014-10-03 21:40:52,242] ERROR
{org.wso2.carbon.identity.authenticator.cloud.CloudAuthenticator} -  Error
authenticating the user Signature length not correct: got 203 but was
expecting 128
java.security.SignatureException: Signature length not correct: got 203 but
was expecting 128
at sun.security.rsa.RSASignature.engineVerify(RSASignature.java:189)
at java.security.Signature$Delegate.engineVerify(Signature.java:1172)
at java.security.Signature.verify(Signature.java:623)
at
org.wso2.carbon.identity.authenticator.cloud.CloudAuthenticator.isAuthenticated(CloudAuthenticator.java:114)
at
org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.isAuthenticated(AuthenticationHandler.java:187)
at
org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.authenticate(AuthenticationHandler.java:96)
at
org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.invoke(AuthenticationHandler.java:66)
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.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
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:848)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at

Re: [Dev] [WSO2MB] Cannot start User Manager Core bundle error on server startup

2014-10-03 Thread Sameera Jayasoma
Hi Dhanuka,

I noticed few issues in pom.xml of this orbit bundle.

1) Import package section is empty. Please the put correct import package
list.
2) Optional=true is missing from some of the dependencies.
3) Following third-party libraries have been embedded inside this orbit
bundle

netty
metrics-core
guava
jackson-core-as
|jackson-mapper-asl
slf4j-api
slf4j-log4j12
*apache-cassandra*
libthrift;

4) Size of this bundle is around 8.5 MB and all the above embedded
dependencies has contributed to this size.

I know there exists orbit bundles with such issues, but we've started this
effort recently to verify all the new orbit bundles before publishing them
to nexus repository.

I am rejecting this pull request. Please fix these issues and send the PR
again.

Thanks,
Sameera.

On Fri, Oct 3, 2014 at 9:37 PM, Dhanuka Ranasinghe dhan...@wso2.com wrote:

 Hi,

 I don't have permission to merge below pull request, I guess some one who
 has permission would need to attend this.

 https://github.com/wso2/orbit/pull/26

 Cheers,
 Dhanuka

 *Dhanuka Ranasinghe*

 Senior Software Engineer
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 715381915

 On Fri, Oct 3, 2014 at 6:31 PM, Harsha Kumara hars...@wso2.com wrote:

 Adding Maheshika.

 On Fri, Oct 3, 2014 at 6:23 PM, Asanka Abeyweera asank...@wso2.com
 wrote:

 Hi all,

 I created a pull request [1] in wso2/orbit removing the parent pom
 reference in cql-driver bundle. Can we release this as
 cql-driver-1.0.5.wso2v2 in wso2/orbit?

 [1] https://github.com/wso2/orbit/pull/26


 On Fri, Oct 3, 2014 at 6:17 PM, Asitha Nanayakkara asi...@wso2.com
 wrote:

 Hi everyone,

 Since the issue is a blocker for us we are making the versions
 consistent throughout the platform by using the existing cql-driver.
 Changes needed in carbon-storage-management is complete.

 @PrabathA: Please review and merge the pull request
 https://github.com/wso2-dev/carbon-storage-management/pull/48

 Thank you.

 On Thu, Oct 2, 2014 at 7:37 AM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Hi Everyone,

 AsankaAB and Asitha have finally found the root cause of this issue.
 Excellent stuff guys!

 It appears as if a few different versions of transitive dependencies
 (i.e guava) used within some of the libraries resulted in the package
 conflicts observed. As for the resolutions available, we'd have to make 
 the
 versions of the aforesaid libraries that are being used in other
 dependencies consistent across the platform. This is currently being 
 worked
 on and We'll be updating the thread once done.

 Cheers,
 Prabath

 On Wed, Oct 1, 2014 at 5:29 PM, Asitha Nanayakkara asi...@wso2.com
 wrote:

 adding dev list

 On Wed, Oct 1, 2014 at 9:36 AM, Asanka Abeyweera asank...@wso2.com
 wrote:

 Hi Asitha/Prabath,

 The issue is seems to be a side effect of the switch we made from
 cql-driver to cassandra-driver-core. I reverted back to cql-driver and 
 the
 issue does not occur after that. Therefore I think the issue is with
 cassandra-driver-core bundle.

 Since we use the org.wso2.carbon.cassandra.datareader.feature
 which uses cassandra-driver-core, we cannot switch completely to 
 cql-driver
 until the datareader feature also revert back to cql-driver. What do you
 think we should do to resolve this issue?



 On Wed, Oct 1, 2014 at 5:44 AM, Prabath Abeysekera 
 praba...@wso2.com wrote:

 Most probably the proper initialization of the data-source
 component was interrupted as a result of some issue it was hit with 
 while
 trying to register CassandraDaraReader. This might have further gone 
 on
 to block the process of making the data-sources configured in the
 master-datasources.xml JNDI bound, causing the reported problem.

 Why don't you boot up the server with OSGi debugging mode on and
 see what's gone wrong? In the meantime, I too will give it a try and 
 see if
 I can get this reproduced locally.

 Cheers,
 Pravatg

 On Tue, Sep 30, 2014 at 2:49 PM, Asitha Nanayakkara 
 asi...@wso2.com wrote:

 Hi,

 When I add
 org.wso2.carbon.cassandra.datareader.datasource.CassandraDataSourceReader
 to the providers list of  master-datasources.xml I get an error[1]
 initialising User Manager Core Bundle due to failure to lookup
 jdbc/WSO2CarbonDB entry in master-datasources.xml.

 When the CassandraDataSourceReader is removed from providers this
 doesn't happen. Due to this we can't connect an external Cassandra 
 data
 source for MB. This is a blocker for WSO2 MB 3.0.0 M1 release. (This 
 worked
 fine earlier)

 Any idea why this is happening?


 [1]
 ERROR {org.wso2.carbon.user.core.internal.Activator} -  Cannot
 start User Manager Core bundle
 java.lang.RuntimeException: Error in looking up data source: Name
 [jdbc/WSO2CarbonDB] is not bound in this Context. Unable to find 
 [jdbc].
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.lookupDataSource(DatabaseUtil.java:86)
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.createRealmDataSource(DatabaseUtil.java:172)
 at
 

Re: [Dev] Signature verification error - Signature length not correct: got 203 but was expecting 128

2014-10-03 Thread Prabath Siriwardena
I thought we agreed to go ahead with self-issued access tokens?

Thanks  regards,
-Prabath

On Fri, Oct 3, 2014 at 10:04 PM, Danushka Fernando danush...@wso2.com wrote:
 Hi All
 I am trying to send some singed string from client to the server and in
 server side I am trying to verify it. My code is as per below.

 Client Side

 //Get the filesystem keystore default primary certificate
 KeyStoreManager keyStoreManager;
 keyStoreManager =
 KeyStoreManager.getInstance(MultitenantConstants.SUPER_TENANT_ID);
 Signature signature;
 try {
 //Sign the secret
 keyStoreManager.getDefaultPrimaryCertificate();
 signature = Signature.getInstance(SHA1WithRSA);
 signature.initSign(keyStoreManager.getDefaultPrivateKey());
 signature.update(serverSecret.getBytes());
 String signatureString = new String(signature.sign());
 String headerString = new String(username + : + signatureString + : +
 serverSecret);

 // Set authorization header to service client
 List headerList = new ArrayList();
 Header header = new Header();
 header.setName(HTTPConstants.HEADER_AUTHORIZATION);
 header.setValue(CloudLogin  +
 Base64Utils.encode(headerString.getBytes()));
 headerList.add(header);
 serviceClient.getOptions().setProperty(HTTPConstants.HTTP_HEADERS,
 headerList);
 } catch (Exception e) {
 String msg = Failed to get primary default certificate;
 log.error(msg, e);
 throw new AppFactoryException(msg, e);
 }



 Server Side

 //Get the filesystem keystore default primary certificate
KeyStoreManager keyStoreManager =
 KeyStoreManager.getInstance(MultitenantConstants.SUPER_TENANT_ID);
X509Certificate cert =
 keyStoreManager.getDefaultPrimaryCertificate();

//Authorization: CloudLogin xxx
//header data base64encode(username:signature:secret)
String authorizationHeader =
 request.getHeader(HTTPConstants.HEADER_AUTHORIZATION);
String[] headerData = decodeAuthorizationHeader(authorizationHeader);

Signature signature = Signature.getInstance(SHA1WithRSA);
signature.initVerify(cert.getPublicKey());
signature.update(headerData[2].getBytes());

if (signature.verify(headerData[1].getBytes())) {
//my logic goes here
 }
 } catch (Exception e) {
 log.error(Error authenticating the user  + e.getMessage(), e);
 }
 return isAuthenticated;
 }

 I ended up with the error [1]. Any idea what I am doing wrong. And idea
 would be appreciated.
 @Prabath: We are going to do what you suggested in M7. For just M6 we are
 trying to go with this solution.

 [1][2014-10-03 21:40:52,242] ERROR
 {org.wso2.carbon.identity.authenticator.cloud.CloudAuthenticator} -  Error
 authenticating the user Signature length not correct: got 203 but was
 expecting 128
 java.security.SignatureException: Signature length not correct: got 203 but
 was expecting 128
 at sun.security.rsa.RSASignature.engineVerify(RSASignature.java:189)
 at java.security.Signature$Delegate.engineVerify(Signature.java:1172)
 at java.security.Signature.verify(Signature.java:623)
 at
 org.wso2.carbon.identity.authenticator.cloud.CloudAuthenticator.isAuthenticated(CloudAuthenticator.java:114)
 at
 org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.isAuthenticated(AuthenticationHandler.java:187)
 at
 org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.authenticate(AuthenticationHandler.java:96)
 at
 org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.invoke(AuthenticationHandler.java:66)
 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.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
 at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
 at
 org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 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:848)
 at
 org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
 at
 

Re: [Dev] Integrating WSO2 IS with Microsoft Assure AD

2014-10-03 Thread Darshana Gunawardana
Can you please share the metadata file you used here..

On Fri, Oct 3, 2014 at 5:33 PM, Poshitha Dabare poshi...@wso2.com wrote:

 Hi

 I was trying to integrate WSO2 IS with Microsoft Azure AD by adding it as
 an identity provider. It required the fedreation metadata file and i
 created one as said in here
 http://tanyamadurapperuma.blogspot.com/2013/09/configure-wso2-identity-server-saml2.html
 But when i tried to add the xml file to ACS it came with the following
 Error.



 *ACS 20009 while uploading WS-federation meta data document to ACS*
 Can someone sujjest a solution

 Thanks
 --
 Poshitha Dabare
 Software Engineer

 Mob: 075 536 8005




-- 
Regards,


*Darshana Gunawardana*Software Engineer
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com darsh...@wso2.com*
*Mobile: +94718566859 %2B94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Integrating WSO2 IS with Microsoft Assure AD

2014-10-03 Thread Darshana Gunawardana
According to [1],
make sure that your XML document is formatted *without* newlines

[1]
http://social.technet.microsoft.com/Forums/it-IT/4f3eeb5f-44ba-4873-91ff-27b3c3bc50fe/acs-20009-while-uploading-wsfederation-meta-data-document-to-acs?forum=WindowsAzureAD

On Fri, Oct 3, 2014 at 10:37 PM, Darshana Gunawardana darsh...@wso2.com
wrote:

 Can you please share the metadata file you used here..

 On Fri, Oct 3, 2014 at 5:33 PM, Poshitha Dabare poshi...@wso2.com wrote:

 Hi

 I was trying to integrate WSO2 IS with Microsoft Azure AD by adding it as
 an identity provider. It required the fedreation metadata file and i
 created one as said in here
 http://tanyamadurapperuma.blogspot.com/2013/09/configure-wso2-identity-server-saml2.html
 But when i tried to add the xml file to ACS it came with the following
 Error.



 *ACS 20009 while uploading WS-federation meta data document to ACS*
 Can someone sujjest a solution

 Thanks
 --
 Poshitha Dabare
 Software Engineer

 Mob: 075 536 8005




 --
 Regards,


 *Darshana Gunawardana*Software Engineer
 WSO2 Inc.; http://wso2.com

 *E-mail: darsh...@wso2.com darsh...@wso2.com*
 *Mobile: +94718566859 %2B94718566859*Lean . Enterprise . Middleware




-- 
Regards,


*Darshana Gunawardana*Software Engineer
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com darsh...@wso2.com*
*Mobile: +94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to put a file to Carbon Registry from a Java client.

2014-10-03 Thread Supun Sethunga
Hi,

What is the best way to put a file (i.e. text file) to the carbon registry
via a java client? Is there any article/sample-code I can refer to?

Thanks,
Supun

-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WSO2MB] Cannot start User Manager Core bundle error on server startup

2014-10-03 Thread Dhanuka Ranasinghe
Hi Sameera,

The reason for embed third party libraries is osgi cyclic dependency issue.
This has been discussed long time back with Kishanthan and you.

Cheers,
Dhanuka

*Dhanuka Ranasinghe*

Senior Software Engineer
WSO2 Inc. ; http://wso2.com
lean . enterprise . middleware

phone : +94 715381915

On Fri, Oct 3, 2014 at 10:11 PM, Sameera Jayasoma same...@wso2.com wrote:

 Hi Dhanuka,

 I noticed few issues in pom.xml of this orbit bundle.

 1) Import package section is empty. Please the put correct import package
 list.
 2) Optional=true is missing from some of the dependencies.
 3) Following third-party libraries have been embedded inside this orbit
 bundle

 netty
 metrics-core
 guava
 jackson-core-as
 |jackson-mapper-asl
 slf4j-api
 slf4j-log4j12
 *apache-cassandra*
 libthrift;

 4) Size of this bundle is around 8.5 MB and all the above embedded
 dependencies has contributed to this size.

 I know there exists orbit bundles with such issues, but we've started this
 effort recently to verify all the new orbit bundles before publishing them
 to nexus repository.

 I am rejecting this pull request. Please fix these issues and send the PR
 again.

 Thanks,
 Sameera.

 On Fri, Oct 3, 2014 at 9:37 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 Hi,

 I don't have permission to merge below pull request, I guess some one who
 has permission would need to attend this.

 https://github.com/wso2/orbit/pull/26

 Cheers,
 Dhanuka

 *Dhanuka Ranasinghe*

 Senior Software Engineer
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 715381915

 On Fri, Oct 3, 2014 at 6:31 PM, Harsha Kumara hars...@wso2.com wrote:

 Adding Maheshika.

 On Fri, Oct 3, 2014 at 6:23 PM, Asanka Abeyweera asank...@wso2.com
 wrote:

 Hi all,

 I created a pull request [1] in wso2/orbit removing the parent pom
 reference in cql-driver bundle. Can we release this as
 cql-driver-1.0.5.wso2v2 in wso2/orbit?

 [1] https://github.com/wso2/orbit/pull/26


 On Fri, Oct 3, 2014 at 6:17 PM, Asitha Nanayakkara asi...@wso2.com
 wrote:

 Hi everyone,

 Since the issue is a blocker for us we are making the versions
 consistent throughout the platform by using the existing cql-driver.
 Changes needed in carbon-storage-management is complete.

 @PrabathA: Please review and merge the pull request
 https://github.com/wso2-dev/carbon-storage-management/pull/48

 Thank you.

 On Thu, Oct 2, 2014 at 7:37 AM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Hi Everyone,

 AsankaAB and Asitha have finally found the root cause of this issue.
 Excellent stuff guys!

 It appears as if a few different versions of transitive dependencies
 (i.e guava) used within some of the libraries resulted in the package
 conflicts observed. As for the resolutions available, we'd have to make 
 the
 versions of the aforesaid libraries that are being used in other
 dependencies consistent across the platform. This is currently being 
 worked
 on and We'll be updating the thread once done.

 Cheers,
 Prabath

 On Wed, Oct 1, 2014 at 5:29 PM, Asitha Nanayakkara asi...@wso2.com
 wrote:

 adding dev list

 On Wed, Oct 1, 2014 at 9:36 AM, Asanka Abeyweera asank...@wso2.com
 wrote:

 Hi Asitha/Prabath,

 The issue is seems to be a side effect of the switch we made from
 cql-driver to cassandra-driver-core. I reverted back to cql-driver and 
 the
 issue does not occur after that. Therefore I think the issue is with
 cassandra-driver-core bundle.

 Since we use the org.wso2.carbon.cassandra.datareader.feature
 which uses cassandra-driver-core, we cannot switch completely to 
 cql-driver
 until the datareader feature also revert back to cql-driver. What do 
 you
 think we should do to resolve this issue?



 On Wed, Oct 1, 2014 at 5:44 AM, Prabath Abeysekera 
 praba...@wso2.com wrote:

 Most probably the proper initialization of the data-source
 component was interrupted as a result of some issue it was hit with 
 while
 trying to register CassandraDaraReader. This might have further 
 gone on
 to block the process of making the data-sources configured in the
 master-datasources.xml JNDI bound, causing the reported problem.

 Why don't you boot up the server with OSGi debugging mode on and
 see what's gone wrong? In the meantime, I too will give it a try and 
 see if
 I can get this reproduced locally.

 Cheers,
 Pravatg

 On Tue, Sep 30, 2014 at 2:49 PM, Asitha Nanayakkara 
 asi...@wso2.com wrote:

 Hi,

 When I add
 org.wso2.carbon.cassandra.datareader.datasource.CassandraDataSourceReader
 to the providers list of  master-datasources.xml I get an error[1]
 initialising User Manager Core Bundle due to failure to lookup
 jdbc/WSO2CarbonDB entry in master-datasources.xml.

 When the CassandraDataSourceReader is removed from providers this
 doesn't happen. Due to this we can't connect an external Cassandra 
 data
 source for MB. This is a blocker for WSO2 MB 3.0.0 M1 release. (This 
 worked
 fine earlier)

 Any idea why this is happening?


 [1]
 ERROR 

Re: [Dev] How to put a file to Carbon Registry from a Java client.

2014-10-03 Thread Sajith Kariyawasam
Hi Supun,

You can find a sample in GREG distribution. In
G-Reg-home/samples/ws-client

Thanks,
Sajith

On Fri, Oct 3, 2014 at 10:49 PM, Supun Sethunga sup...@wso2.com wrote:

 Hi,

 What is the best way to put a file (i.e. text file) to the carbon registry
 via a java client? Is there any article/sample-code I can refer to?

 Thanks,
 Supun

 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
*Sajith Kariyawasam*


*Committer and PMC member, Apache Stratos,WSO2 Inc., http://wso2.com
http://wso2.comAMIE (SL)Mobile: +94772269575*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Integrating WSO2 IS with Microsoft Assure AD

2014-10-03 Thread Darshana Gunawardana
In the same link i given, mentioning a utility program.. Have you tried
that?

On Fri, Oct 3, 2014 at 11:02 PM, Poshitha Dabare poshi...@wso2.com wrote:

 Hi Darshana.

 I directly coppied the xml from [1] . It is like this

 md:entitydescriptor entityid=https://localhost:9443/samlsso;
 validuntil=2023-09-23T06:57:15.396Z xmlns:ds=
 http://www.w3.org/2000/09/xmldsig#;
 xmlns:md=urn:oasis:names:tc:SAML:2.0:metadata
 xmlns:saml=urn:oasis:names:tc:SAML:2.0:assertion
md:idpssodescriptor
 protocolsupportenumeration=urn:oasis:names:tc:SAML:2.0:protocol
md:keydescriptor use=signing
  ds:keyinfo
 ds:x509data

 ds:x509certificateMIICNTCCAZ6gAwIBAgIES343gjANBgkqhkiG9w0BAQUFADBVMQswCQYDVQQGEwJVUzELMAkGA1UE

 CAwCQ0ExFjAUBgNVBAcMDU1vdW50YWluIFZpZXcxDTALBgNVBAoMBFdTTzIxEjAQBgNVBAMMCWxv

 Y2FsaG9zdDAeFw0xMDAyMTkwNzAyMjZaFw0zNTAyMTMwNzAyMjZaMFUxCzAJBgNVBAYTAlVTMQsw

 CQYDVQQIDAJDQTEWMBQGA1UEBwwNTW91bnRhaW4gVmlldzENMAsGA1UECgwEV1NPMjESMBAGA1UE

 AwwJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCUp/oV1vWc8/TkQSiAvTou

 sMzOM4asB2iltr2QKozni5aVFu818MpOLZIr8LMnTzWllJvvaA5RAAdpbECb+48FjbBe0hseUdN5

 HpwvnH/DW8ZccGvk53I6Orq7hLCv1ZHtuOCokghz/ATrhyPq+QktMfXnRS4HrKGJTzxaCcU7OQID

 AQABoxIwEDAOBgNVHQ8BAf8EBAMCBPAwDQYJKoZIhvcNAQEFBQADgYEAW5wPR7cr1LAdq+IrR44i

 QlRG5ITCZXY9hI0PygLP2rHANh+PYfTmxbuOnykNGyhM6FjFLbW2uZHQTY1jMrPprjOrmyK5sjJR

 O4d1DeGHT/YnIjs9JogRKv4XHECwLtIVdAbIdWHEtVZJyMSktcyysFcvuhPQK8Qc/E/Wq8uHSCo=/ds:x509certificate
 /ds:x509data
  /ds:keyinfo
   /md:keydescriptor
  md:singlelogoutservice
 binding=urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect location=
 https://localhost:9443/samlsso; responselocation=
 https://localhost:9443/samlsso;

  md:singlesignonservice
 binding=urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST location=
 https://localhost:9443/samlsso;

  md:singlesignonservice
 binding=urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect location=
 https://localhost:9443/samlsso;

 /md:singlesignonservice/md:singlesignonservice/md:singlelogoutservice/md:idpssodescriptor
 /md:entitydescriptor


 Also i removed the newline , exept for the one at the end.

 [1]
 http://tanyamadurapperuma.blogspot.com/2013/09/configure-wso2-identity-server-saml2.html



 On Fri, Oct 3, 2014 at 10:42 PM, Darshana Gunawardana darsh...@wso2.com
 wrote:

 According to [1],
 make sure that your XML document is formatted *without* newlines

 [1]
 http://social.technet.microsoft.com/Forums/it-IT/4f3eeb5f-44ba-4873-91ff-27b3c3bc50fe/acs-20009-while-uploading-wsfederation-meta-data-document-to-acs?forum=WindowsAzureAD

 On Fri, Oct 3, 2014 at 10:37 PM, Darshana Gunawardana darsh...@wso2.com
 wrote:

 Can you please share the metadata file you used here..

 On Fri, Oct 3, 2014 at 5:33 PM, Poshitha Dabare poshi...@wso2.com
 wrote:

 Hi

 I was trying to integrate WSO2 IS with Microsoft Azure AD by adding it
 as an identity provider. It required the fedreation metadata file and i
 created one as said in here
 http://tanyamadurapperuma.blogspot.com/2013/09/configure-wso2-identity-server-saml2.html
 But when i tried to add the xml file to ACS it came with the following
 Error.



 *ACS 20009 while uploading WS-federation meta data document to ACS*
 Can someone sujjest a solution

 Thanks
 --
 Poshitha Dabare
 Software Engineer

 Mob: 075 536 8005




 --
 Regards,


 *Darshana Gunawardana*Software Engineer
 WSO2 Inc.; http://wso2.com

 *E-mail: darsh...@wso2.com darsh...@wso2.com*
 *Mobile: +94718566859 %2B94718566859*Lean . Enterprise . Middleware




 --
 Regards,


 *Darshana Gunawardana*Software Engineer
 WSO2 Inc.; http://wso2.com

 *E-mail: darsh...@wso2.com darsh...@wso2.com*
 *Mobile: +94718566859 %2B94718566859*Lean . Enterprise . Middleware




 --
 Poshitha Dabare
 Software Engineer

 Mob: 075 536 8005




-- 
Regards,


*Darshana Gunawardana*Software Engineer
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com darsh...@wso2.com*
*Mobile: +94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to put a file to Carbon Registry from a Java client.

2014-10-03 Thread Supun Sethunga
Hi Sajith,

Thanks!

On Fri, Oct 3, 2014 at 11:04 PM, Sajith Kariyawasam saj...@wso2.com wrote:

 Hi Supun,

 You can find a sample in GREG distribution. In
 G-Reg-home/samples/ws-client

 Thanks,
 Sajith

 On Fri, Oct 3, 2014 at 10:49 PM, Supun Sethunga sup...@wso2.com wrote:

 Hi,

 What is the best way to put a file (i.e. text file) to the carbon
 registry via a java client? Is there any article/sample-code I can refer to?

 Thanks,
 Supun

 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Sajith Kariyawasam*


 *Committer and PMC member, Apache Stratos,WSO2 Inc., http://wso2.com
 http://wso2.comAMIE (SL)Mobile: +94772269575*




-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Signature verification error - Signature length not correct: got 203 but was expecting 128

2014-10-03 Thread Danushka Fernando
Hi Prabath.
I guess you missed the last line of my mail. ;)
We are going to do what you suggested in M7. For just M6 we are trying to
go with this solution. Any way even for that solution we need this to work
right? So any idea what's going wrong here?

Thanks  Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Fri, Oct 3, 2014 at 10:14 PM, Prabath Siriwardena prab...@wso2.com
wrote:

 I thought we agreed to go ahead with self-issued access tokens?

 Thanks  regards,
 -Prabath

 On Fri, Oct 3, 2014 at 10:04 PM, Danushka Fernando danush...@wso2.com
 wrote:
  Hi All
  I am trying to send some singed string from client to the server and in
  server side I am trying to verify it. My code is as per below.
 
  Client Side
 
  //Get the filesystem keystore default primary certificate
  KeyStoreManager keyStoreManager;
  keyStoreManager =
  KeyStoreManager.getInstance(MultitenantConstants.SUPER_TENANT_ID);
  Signature signature;
  try {
  //Sign the secret
  keyStoreManager.getDefaultPrimaryCertificate();
  signature = Signature.getInstance(SHA1WithRSA);
  signature.initSign(keyStoreManager.getDefaultPrivateKey());
  signature.update(serverSecret.getBytes());
  String signatureString = new String(signature.sign());
  String headerString = new String(username + : + signatureString + : +
  serverSecret);
 
  // Set authorization header to service client
  List headerList = new ArrayList();
  Header header = new Header();
  header.setName(HTTPConstants.HEADER_AUTHORIZATION);
  header.setValue(CloudLogin  +
  Base64Utils.encode(headerString.getBytes()));
  headerList.add(header);
  serviceClient.getOptions().setProperty(HTTPConstants.HTTP_HEADERS,
  headerList);
  } catch (Exception e) {
  String msg = Failed to get primary default certificate;
  log.error(msg, e);
  throw new AppFactoryException(msg, e);
  }
 
 
 
  Server Side
 
  //Get the filesystem keystore default primary certificate
 KeyStoreManager keyStoreManager =
  KeyStoreManager.getInstance(MultitenantConstants.SUPER_TENANT_ID);
 X509Certificate cert =
  keyStoreManager.getDefaultPrimaryCertificate();
 
 //Authorization: CloudLogin xxx
 //header data base64encode(username:signature:secret)
 String authorizationHeader =
  request.getHeader(HTTPConstants.HEADER_AUTHORIZATION);
 String[] headerData =
 decodeAuthorizationHeader(authorizationHeader);
 
 Signature signature = Signature.getInstance(SHA1WithRSA);
 signature.initVerify(cert.getPublicKey());
 signature.update(headerData[2].getBytes());
 
 if (signature.verify(headerData[1].getBytes())) {
 //my logic goes here
  }
  } catch (Exception e) {
  log.error(Error authenticating the user  + e.getMessage(),
 e);
  }
  return isAuthenticated;
  }
 
  I ended up with the error [1]. Any idea what I am doing wrong. And idea
  would be appreciated.
  @Prabath: We are going to do what you suggested in M7. For just M6 we are
  trying to go with this solution.
 
  [1][2014-10-03 21:40:52,242] ERROR
  {org.wso2.carbon.identity.authenticator.cloud.CloudAuthenticator} -
 Error
  authenticating the user Signature length not correct: got 203 but was
  expecting 128
  java.security.SignatureException: Signature length not correct: got 203
 but
  was expecting 128
  at sun.security.rsa.RSASignature.engineVerify(RSASignature.java:189)
  at java.security.Signature$Delegate.engineVerify(Signature.java:1172)
  at java.security.Signature.verify(Signature.java:623)
  at
 
 org.wso2.carbon.identity.authenticator.cloud.CloudAuthenticator.isAuthenticated(CloudAuthenticator.java:114)
  at
 
 org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.isAuthenticated(AuthenticationHandler.java:187)
  at
 
 org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.authenticate(AuthenticationHandler.java:96)
  at
 
 org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.invoke(AuthenticationHandler.java:66)
  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.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
  at
 org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
  at
 
 org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
  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