Re: [Dev] [EMM] Adding Oracle database support to EMM

2014-06-19 Thread Chan
IM we need to add an object to application scope that has the right db.json
file. This json should be a combination of generic queries and queries for
the selected database.

On Thursday, June 19, 2014, Harshan Liyanage  wrote:

> Hi,
>
> We could categorize the sql queries under each database type in db.js
> file. IMO we need a mechanism to detect the database type (mysql, h2,
> oracle etc) & return appropriate sql query based on the db type.
>
> WDYT?
>
> Thanks,
>
> Best Regards,
>
> Lakshitha Harshan
> Software Engineer
> Mobile: *+94724423048*
> Email: hars...@wso2.com 
>
> Blog : http://harshanliyanage.blogspot.com/
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>
>
> On Thu, Jun 19, 2014 at 10:51 AM, Inosh Perera  > wrote:
>
>> Hi all,
>> I was looking into adding Oracle database support to EMM and wrote the
>> scripts to create tables in Oracle. Since auto increment and is not
>> available in Oracle, I wrote sequences and triggers. Afterwards, I started
>> checking the SQL queries, that we use in the back end with Oracle, and came
>> across 2 issues,
>>
>> 1.  Query - SELECT * FROM notifications WHERE device_id = ? ORDER BY id
>> DESC LIMIT 1
>>
>> LIMIT is not supported by Oracle- They use ROWNUM for this purpose. Since
>> we have one db.js file for all the databases that contain all the db
>> queries, how should this be handled custom queries?
>>
>>
>> 2.  Query- Notifications - select query 12
>>
>> select * from notifications where `device_id`=? and `feature_code`= ? and
>> `status`='R' and `id` = (select MAX(`id`) from notifications where
>> `device_id`=? and `feature_code`= ? and `status`='R') ORDER BY sent_date
>> ASC",
>>
>> This query contains a special character "`" , for example `device_id`
>> that is not supported by Oracle. I will modify the query and use since its
>> not a big issue.
>>
>> Also mdm_report.js file has some select queries written inside it, and
>> those must be moved to db.js
>> The rest of the queries in db.js is running with Oracle. I will do an
>> integration test, once server start up is successful with oracle.
>>
>> Thank you,
>> Inosh
>>
>> --
>> Inosh Perera
>> Software Engineer, WSO2 Inc.
>> Tel: 0785293686
>>
>
>

-- 
Chan (Dulitha Wijewantha)
Software Engineer - Mobile Development
WSO2Mobile
Lean.Enterprise.Mobileware
 * ~Email   duli...@wso2.com *
*  ~Mobile +94712112165*
*  ~Website   dulitha.me *
*  ~Twitter @dulitharw *
  *~Github @dulichan *
  *~SO @chan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Greg focused ES release update

2014-06-19 Thread Sameera Medagammaddegedara
Hi,

This mail thread will track the vital changes that are expected from the ES
for the next GREG release.The following list indicates the issues based on
priority:

   1. https://wso2.org/jira/browse/STORE-441. Create an ES feature that
   will designate apps with an es prefix
   2. https://wso2.org/jira/browse/STORE-430, Can't use RXT without provider
   3. https://wso2.org/jira/browse/STORE-428, SQL based social
   implementation
   4. https://wso2.org/jira/browse/STORE-440, Add support for documentation
   tab
   5. https://wso2.org/jira/browse/STORE-442, Asset extension files will
   need to be stored on a per tenant basis
   6. https://wso2.org/jira/browse/STORE-443, Allow each asset type to
   define its own artifact manager


*STORE-441*

   - We have created a new store feature : org.wso2.es.feature
   - This can be accessed from
   https://github.com/wso2/enterprise-store/tree/greg-changes-store-feature
   - This needs to be tested


*STORE-430*

   - When testing this with the service.rxt that uses the namespace
   attribute in the storage path we noticed that the namespace value was been
   set to null.
   - This is a result of the way the GenericArtifact instance is created
   prior to been added
   - When adding through the carbon console the artifact is constructed
   with a QName element that explicitly recieves the name and namespace
   - However, the ES uses an overloaded version of the newGenericArtifact
   method that does not set the namespace
   - In the add method the namespace is not taken from the attribute list
   but rather by calling a getNamespaceURI method.This namespace is then
   written back to the attribute list
   - Since the ES implementation does not set a namespace value the
   namespace attribute ends up been null
   - Thus, when saving services using the ES they do not follow the storage
   path
   - *Solution:*
  - Allow each asset type to override the artifact manager
  - This is already supported in the Store

*STORE-442*

   - We already store the publisher and store config files based on the
   tenant
   - This will need to be extended to support extension configuration files
   - We will also need to think about how we can store template and script
   files of asset types

Thank You,
Sameera
-- 
Sameera Medagammaddegedara
Software Engineer

Contact:
Email: samee...@wso2.com
Mobile: + 94 077 255 3005
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] REST call to GetApplications does not show any application

2014-06-19 Thread Udara Liyanage
Hi,

I have created few apps and they are visible under MyApplications page.

However when I try to view them by provided rest calls, they are not visible

curl -X POST -c cookies
http://localhost:9763/store/site/blocks/user/login/ajax/login.jag -d
'action=login&username=admin&password=admin'

curl -b cookies
http://localhost:9763/store/site/blocks/application/application-list/ajax/application-list.jag?action=getApplications

{"applications" : [], "error" : false}


Am I missing some step?
-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Greg focused ES release update

2014-06-19 Thread Subash Chaturanga
Hi Pulasthi
Let's add this feature to the pack and test inside G-Reg.  We might
identify some more blockers, if there is any.


On Thu, Jun 19, 2014 at 12:54 PM, Sameera Medagammaddegedara <
samee...@wso2.com> wrote:

> Hi,
>
> This mail thread will track the vital changes that are expected from the
> ES for the next GREG release.The following list indicates the issues based
> on priority:
>
>1. https://wso2.org/jira/browse/STORE-441. Create an ES feature that
>will designate apps with an es prefix
>2. https://wso2.org/jira/browse/STORE-430, Can't use RXT without
>provider
>3. https://wso2.org/jira/browse/STORE-428, SQL based social
>implementation
>4. https://wso2.org/jira/browse/STORE-440, Add support for
>documentation tab
>5. https://wso2.org/jira/browse/STORE-442, Asset extension files will
>need to be stored on a per tenant basis
>6. https://wso2.org/jira/browse/STORE-443, Allow each asset type to
>define its own artifact manager
>
>
> *STORE-441*
>
>- We have created a new store feature : org.wso2.es.feature
>- This can be accessed from
>https://github.com/wso2/enterprise-store/tree/greg-changes-store-feature
>- This needs to be tested
>
>
> *STORE-430*
>
>- When testing this with the service.rxt that uses the namespace
>attribute in the storage path we noticed that the namespace value was been
>set to null.
>- This is a result of the way the GenericArtifact instance is created
>prior to been added
>- When adding through the carbon console the artifact is constructed
>with a QName element that explicitly recieves the name and namespace
>- However, the ES uses an overloaded version of the newGenericArtifact
>method that does not set the namespace
>- In the add method the namespace is not taken from the attribute list
>but rather by calling a getNamespaceURI method.This namespace is then
>written back to the attribute list
>- Since the ES implementation does not set a namespace value the
>namespace attribute ends up been null
>- Thus, when saving services using the ES they do not follow the
>storage path
>- *Solution:*
>   - Allow each asset type to override the artifact manager
>   - This is already supported in the Store
>
> *STORE-442*
>
>- We already store the publisher and store config files based on the
>tenant
>- This will need to be extended to support extension configuration
>files
>- We will also need to think about how we can store template and
>script files of asset types
>
> Thank You,
> Sameera
> --
> Sameera Medagammaddegedara
> Software Engineer
>
> Contact:
> Email: samee...@wso2.com
> Mobile: + 94 077 255 3005
>



-- 
Thanks
/subash

*Subash Chaturanga*
Senior Software Engineer & Lead WSO2 Governance Registry
Platform TG; WSO2 Inc. http://wso2.com
Contact:
email: sub...@wso2.com
blog:  http://subashsdm.blogspot.com/
twitter: @subash89
phone: +9477 2225922
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] How to get Application ID for a application

2014-06-19 Thread Udara Liyanage
Hi,

According to [1] "Add Subscription" REST API requires Application ID of the
application. How do I get the Application Id from a given application name.

I tried below getApplications also. However it does not return anything.

curl -b cookies
http://localhost:9763/store/site/blocks/application/application-list/ajax/application-list.jag
?action=getApplications

[1] https://docs.wso2.org/display/AM160/Store+APIs

-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] Rest endpoints should return a more meaning full error message

2014-06-19 Thread Udara Liyanage
Hi,

I tried to remove an application by executing below REST endpoint. The
return message just say there was an error occurred while removing app. IMO
error=true also implies the same thing.

Error message does not indicate what is the error occurred, rather it says
there is an error. I had to look into backend logs to see what is the error
was. IMO someone who call a REST endpoint should be displayed what is the
exact error occurred to give more information what happened.

 curl -X POST -b cookies
http://localhost:9763/store/site/blocks/application/application-remove/ajax/application-remove.jag
-d "action=removeApplication&application=app2"
*{"message" : "Error occurred while executing the action
removeApplication", "error" : true*}

-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Greg focused ES release update

2014-06-19 Thread Pulasthi Supun
Hi All,

Yes will add it see.

Regards,
Pulasthi


On Thu, Jun 19, 2014 at 2:00 PM, Subash Chaturanga  wrote:

> Hi Pulasthi
> Let's add this feature to the pack and test inside G-Reg.  We might
> identify some more blockers, if there is any.
>
>
> On Thu, Jun 19, 2014 at 12:54 PM, Sameera Medagammaddegedara <
> samee...@wso2.com> wrote:
>
>> Hi,
>>
>> This mail thread will track the vital changes that are expected from the
>> ES for the next GREG release.The following list indicates the issues based
>> on priority:
>>
>>1. https://wso2.org/jira/browse/STORE-441. Create an ES feature that
>>will designate apps with an es prefix
>>2. https://wso2.org/jira/browse/STORE-430, Can't use RXT without
>>provider
>>3. https://wso2.org/jira/browse/STORE-428, SQL based social
>>implementation
>>4. https://wso2.org/jira/browse/STORE-440, Add support for
>>documentation tab
>>5. https://wso2.org/jira/browse/STORE-442, Asset extension files will
>>need to be stored on a per tenant basis
>>6. https://wso2.org/jira/browse/STORE-443, Allow each asset type to
>>define its own artifact manager
>>
>>
>> *STORE-441*
>>
>>- We have created a new store feature : org.wso2.es.feature
>>- This can be accessed from
>>https://github.com/wso2/enterprise-store/tree/greg-changes-store-feature
>>- This needs to be tested
>>
>>
>> *STORE-430*
>>
>>- When testing this with the service.rxt that uses the namespace
>>attribute in the storage path we noticed that the namespace value was been
>>set to null.
>>- This is a result of the way the GenericArtifact instance is created
>>prior to been added
>>- When adding through the carbon console the artifact is constructed
>>with a QName element that explicitly recieves the name and namespace
>>- However, the ES uses an overloaded version of the
>>newGenericArtifact method that does not set the namespace
>>- In the add method the namespace is not taken from the attribute
>>list but rather by calling a getNamespaceURI method.This namespace is then
>>written back to the attribute list
>>- Since the ES implementation does not set a namespace value the
>>namespace attribute ends up been null
>>- Thus, when saving services using the ES they do not follow the
>>storage path
>>- *Solution:*
>>   - Allow each asset type to override the artifact manager
>>   - This is already supported in the Store
>>
>> *STORE-442*
>>
>>- We already store the publisher and store config files based on the
>>tenant
>>- This will need to be extended to support extension configuration
>>files
>>- We will also need to think about how we can store template and
>>script files of asset types
>>
>> Thank You,
>> Sameera
>>  --
>> Sameera Medagammaddegedara
>> Software Engineer
>>
>> Contact:
>> Email: samee...@wso2.com
>> Mobile: + 94 077 255 3005
>>
>
>
>
> --
> Thanks
> /subash
>
> *Subash Chaturanga*
> Senior Software Engineer & Lead WSO2 Governance Registry
> Platform TG; WSO2 Inc. http://wso2.com
> Contact:
> email: sub...@wso2.com
> blog:  http://subashsdm.blogspot.com/
> twitter: @subash89
> phone: +9477 2225922
> Lean . Enterprise . Middleware
>



-- 
--
Pulasthi Supun
Software Engineer; WSO2 Inc.; http://wso2.com,
Email: pulas...@wso2.com
Mobile: +94 (71) 9258281
Blog : http://pulasthisupun.blogspot.com/
Git hub profile: https://github.com/pulasthi
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Student Introduction, GSoC-2014 project: "UI Testing Framework for Developer Studio"

2014-06-19 Thread Melan Nimesh
Hi Nila,

I am not sure what is the real cause for the error you mentioned by looking
at error log that you attached. Could you please attach full error log
file. in meantime I will try your project locally. I think we have to
filter and add correct set of dependences to pom file. some dependences
that you added to pom may not contains in developer studio 3.6.0 repo.
(e.g. com.google.collect [1]).

Also I noticed your using  tycho version 1.14.0 (for tycho-maven-plugin and
tycho-surefire-plugin ) but latest is 0.20.0, I think it's better to use
latest stable version, version 0.19.0 is used by developer studio build .

[1] 
org.wso2.developerstudio
com.google.collect
0.0.0
eclipse-plugin


Thanks,
Melan


On Thu, Jun 19, 2014 at 2:25 AM, Nila  wrote:

> And the build error is described as flows by the Maven [1].
>
> //This error is reported in case the execution of a plugin failed due to
> some unforeseen event. For example, uncatched runtime exceptions caused by
> the plugin will raise this error. You should report this problem to the
> maintainer of the plugin.//
>
> [1]
> https://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
>
>
> Regards,
> Tharshayene Loganathan
> Undergraduate,
> Dept. of Computer Science & Engineering,
> IIT,Sri Lanka.
>
>
>
>
> On 19 June 2014 02:23, Nila  wrote:
>
>> I've tried with adding a single dependency that is
>> org.wso2.developerstudio.eclipse.esb.core.
>>
>> The p2 repositories used in the pom [1]
>>
>> SWTBot (with Kepler support):
>>
>> http://download.eclipse.org/technology/swtbot/releases/latest/
>>
>> Eclipse (Kepler) :
>>
>> http://download.eclipse.org/releases/kepler
>>
>> Dev Studio:
>>
>> http://dist.wso2.org/p2/developer-studio/releases/3.6.0/ 
>>
>>
>> [ERROR] Failed to execute goal
>> org.eclipse.tycho:tycho-surefire-plugin:0.14.1:test (default-test) on
>> project org.wso2.developerstudio.eclipse.test.esb: Execution default-test
>> of goal org.eclipse.tycho:tycho-surefire-plugin:0.14.1:test failed:
>> "Messages while trying children repositories.": ["": ["Problems downloading
>> artifact: osgi.bundle,org.wso2.developerstudio.eclipse.libraries,3.6.0.":
>> ["Error reading signed content:/tmp/signatureFile5428770762066386577.jar"],
>> "Problems downloading artifact:
>> osgi.bundle,org.wso2.developerstudio.eclipse.esb.core,3.6.0.": ["Error
>> reading signed content:/tmp/signatureFile2679040866387976102.jar"],
>> "Problems downloading artifact:
>> osgi.bundle,org.wso2.developerstudio.eclipse.logging,3.6.0.": ["Error
>> reading signed content:/tmp/signatureFile1943200598424150640.jar"],
>> "Problems downloading artifact:
>> osgi.bundle,org.wso2.developerstudio.eclipse.platform.core,3.6.0.": ["Error
>> reading signed content:/tmp/signatureFile2737266192417490199.jar"],
>> "Problems downloading artifact:
>> osgi.bundle,org.wso2.developerstudio.eclipse.utils,3.6.0.": ["Error reading
>> signed content:/tmp/signatureFile4237022354253305524.jar"], "Problems
>> downloading artifact:
>> osgi.bundle,org.wso2.developerstudio.eclipse.maven,3.6.0.": ["Error reading
>> signed content:/tmp/signatureFile1335516704927992367.jar"], "Problems
>> downloading artifact:
>> osgi.bundle,org.wso2.developerstudio.eclipse.samples,3.6.0.": ["Error
>> reading signed content:/tmp/signatureFile1060962926948217294.jar"]]] ->
>> [Help 1]
>> [ERROR]
>>
>>
>> Please assist me to solve this.
>>
>> [1] https://github.com/Tharshayene/DevStudioUITestAutomation
>>
>>
>> Regards,
>>  Tharshayene Loganathan
>> Undergraduate,
>> Dept. of Computer Science & Engineering,
>> IIT,Sri Lanka.
>>
>>
>>
>>
>> On 19 June 2014 02:08, Nila  wrote:
>>
>>> I've added hamcrest-all.org 1.3 to the pom.xml thus now the kepler
>>> support is there. The repository [1] has the pom.xml (removed the Developer
>>> Studio Dependencies).
>>>
>>> When building the pom.xml Developer Studio bundle dependencies I
>>> confronted errors that are attached in the previous mail in this thread.
>>>
>>> Is it because of any jar sign corruption issue? Is it because my JDT [2]
>>> or any other config didn't support?
>>>
>>> But I could be able to install via Eclipse (Kepler) and use Developer
>>> Studio.
>>>
>>> Other thing I've noticed that each time I run 'mvn clean install' the p2
>>> plugins are redownloaed. But inside the,
>>> .m2/repository/p2/osgi/bundle/org.wso2.developerstudio.eclipse.*.*/3.6.0
>>> nothing is found. But other group ID plugins contains Jar other than
>>> 'org.wso2.developerstudio.eclipse'. And even I add a single dependency the
>>> whole p2 is downloaded (may be due to transitive dependencies). Are these
>>> are normal behaviors?
>>>
>>> Please help. Please leave a hint or clarify what is | may causing |
>>> cause this issue.
>>>
>>> [1] https://github.com/Tharshayene/DevStudioUITestAutomation
>>>
>>> [2] https://github.com/reficio/p2-maven-plugin/issues/10
>>> 
>>>
>>>
>>> Regards,
>>> Tharshayene Loganathan
>>> Undergraduate

Re: [Dev] "java.lang.IllegalStateException" observed continuously in AF stack trace

2014-06-19 Thread Manuranga Perera
Hi Ruchira,
Ajantan has updated the diff. I am committing and creating the patch.
please let me know if you think any improvement should be done to the patch.

https://wso2.org/jira/secure/attachment/32357/APPFAC-2217.diff


On Wed, Jun 11, 2014 at 1:38 PM, Ajanthan Balachandran 
wrote:

>
>
>
> On Wed, Jun 11, 2014 at 12:58 PM, Ruchira Wageesha 
> wrote:
>
>> Don't we need to reset the original classloader of the thread after doing
>> call?
>>
> yes we need.I will update the patch.
> thanks
>
>> Thread.currentThread().setContextClassLoader(ccl);
>>
>>
>>
>> On Wed, Jun 11, 2014 at 12:53 PM, Ajanthan Balachandran <
>> ajant...@wso2.com> wrote:
>>
>>> Hi Ruchira,
>>> Setting the class-loader of the caller of setTimeout method to the task
>>> solve the issue[0].I have attached the patch[1] to the issue.Can you please
>>> review the fix?
>>> Thanks.
>>>
>>> [0]https://wso2.org/jira/browse/APPFAC-2217
>>> [1]https://wso2.org/jira/secure/attachment/32355/APPFAC-2217.diff
>>>
>>> --
>>> ajanthan
>>> --
>>> Ajanthan Balachandiran
>>> Senior Software Engineer;
>>> Solutions Technologies Team ;WSO2, Inc.;  http://wso2.com/
>>>
>>> email: ajanthan @wso2.com; cell: +94775581497
>>> blog: http://bkayts.blogspot.com/
>>>
>>> Lean . Enterprise . Middleware
>>>
>>
>>
>>
>> --
>>
>> *Ruchira Wageesha**Associate Technical Lead*
>> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com *
>>
>> *email: ruch...@wso2.com ,   blog:
>> ruchirawageesha.blogspot.com ,
>> mobile: +94 77 5493444 <%2B94%2077%205493444>*
>>
>
>
>
> --
> ajanthan
> --
> Ajanthan Balachandiran
> Senior Software Engineer;
> Solutions Technologies Team ;WSO2, Inc.;  http://wso2.com/
>
> email: ajanthan @wso2.com; cell: +94775581497
> blog: http://bkayts.blogspot.com/
>
> Lean . Enterprise . Middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ESB Proxy | DOCTYPE Return not allowed

2014-06-19 Thread Manil Liyanage
Hi All,

I Use the following code to send a post request to soundcloud API. In rest
client widget in firefox above url works. But when I do this from the ESB
proxy I get an error which I have shown at last.

I tried adding  after the  tag and I tried
adding true after the 
tag.

It still gives me the same error. Please let me know a solution for this.
Thanks in Advance.

Regards,
Manil Liyanage

http://ws.apache.org/ns/synapse";
   name="soundcloud"
   transports="https,http"
   statistics="disable"
   trace="disable"
   startOnLoad="true">
   
  
 
 

   http://schemas.xmlsoap.org/soap/envelope/";>
  
  
   


 
 

   https://api.soundcloud.com/me/connections.xml?oauth_token=MYTOKEN&service=twitter&redirect_uri=https://www.example.com/soundcloud"/>

 
 
 
  
  
  
   
   



ERROR MESSAGE IN ESB CONSOLE

[2014-06-19 18:09:43,354] ERROR - RelayUtils Error while building
Passthrough stream
org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException:
ParseError at [row,col]:[3,68]
Message: DOCTYPE is not allowed
at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:296)
at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:204)
at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSOAPModelBuilder.java:154)
at 
org.apache.axiom.om.impl.AbstractOMMetaFactory.createStAXSOAPModelBuilder(AbstractOMMetaFactory.java:73)
at 
org.apache.axiom.om.impl.AbstractOMMetaFactory.createSOAPModelBuilder(AbstractOMMetaFactory.java:79)
at 
org.apache.axiom.om.OMXMLBuilderFactory.createSOAPModelBuilder(OMXMLBuilderFactory.java:196)
at 
org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:55)
at 
org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:138)
at 
org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:107)
at 
org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:82)
at 
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:68)
at 
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:239)
at 
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:556)
at 
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:198)
at 
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
at 
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at 
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
at 
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,68]
Message: DOCTYPE is not allowed
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ConcurrentModificationException at server startup (https://wso2.org/jira/browse/APIMANAGER-2241)

2014-06-19 Thread Manoj Kumara
Hi,

This issue was reported on APIM 1.7.0 and i sent the pull request [1]
relevant to the latest fixes. This also contain some fixes on
*startup/org.wso2.carbon.startup* module but I couldn't find the relevant
git repository for this. Appreciate if someone can guide me on this.

[1] https://github.com/wso2-dev/carbon-mediation/pull/20

Thanks,
Manoj


*Manoj Kumara*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94713448188


On Sun, May 18, 2014 at 1:21 PM, Isuru Udana  wrote:

>
>
>
> On Sun, May 18, 2014 at 12:52 PM, Sanjeewa Malalgoda 
> wrote:
>
>> Hi,
>> I have created mediation initializer server and aggregate features and
>> added required things to chunk 11 components and feature poms.  I think we
>> need to update ELB p2 pom as well.
>>
> Done. Thanks for informing.
>
>>
>> Thanks,
>> sanjeewa.
>>
>>
>> On Sat, May 17, 2014 at 11:41 PM, Manoj Kumara  wrote:
>>
>>> Hi Sanjeewa,
>>>
>>> The fix relevant to this was added to patch0007 
>>> org.wso2.carbon.application.deployer
>>> module with r200859 and to org.wso2.carbon.mediation.initializer/4.2.2 with
>>> r202047 as mentioned on the jira.
>>> I have committed to 4.2.2 version since it was in APIM 1.7.0 product.
>>> But seems this was released under chunk-07 [1]. seems like I missed that at
>>> that point.
>>>
>>> I have reverted this change under r203033 and created the new version
>>> 4.2.3 for this under [2] please use this in the product. Sorry about the
>>> trouble.
>>>
>>> [1]
>>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/product-releases/chunk-07/components/pom.xml
>>> [2]
>>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/mediation-initializer/org.wso2.carbon.mediation.initializer/4.2.3/
>>>
>>> Thanks,
>>> Manoj
>>>
>>>
>>> *Manoj Kumara*
>>> Software Engineer
>>> WSO2 Inc. http://wso2.com/
>>> *lean.enterprise.middleware*
>>> Mobile: +94713448188
>>>
>>>
>>> On Sat, May 17, 2014 at 11:13 AM, Sanjeewa Malalgoda 
>>> wrote:
>>>
 Hi Manoj,
 AFAIK you fixed this issue[1] in patch0007. But it seems this issue is
 still there in latest packs. Do you have any idea what went wrong? This is
 urgent issue that we should fix before release. So really appreciate if
  you can have a quick look at.

 [1]https://wso2.org/jira/browse/APIMANAGER-2241

 Thanks,
 sanjeewa

 --

 *Sanjeewa Malalgoda*
 WSO2 Inc.
 Mobile : +94713068779

  blog
 :http://sanjeewamalalgoda.blogspot.com/
 



>>>
>>
>>
>> --
>>
>> *Sanjeewa Malalgoda*
>> WSO2 Inc.
>> Mobile : +94713068779
>>
>>  blog
>> :http://sanjeewamalalgoda.blogspot.com/
>> 
>>
>>
>>
>
>
> --
> *Isuru Udana*
>  Senior
> * Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
> twitter: http://twitter.com/isudana
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC project: Progress of Automation Test Case Generation Tool

2014-06-19 Thread Rukshan Chathuranga
Hi all,

I could automate the ProxyServiceAdmin Admin service to upload the proxy to
ESB. Also it support, Confirm whether it is successful or not. This steps
was possible to written in robot test script.
Thus i'm try to scripting and automate to invoke the uploaded proxy
services. for that can you let me know, what are the available options to
invoke the proxy services.

Thanks and regards.


On Thu, Jun 19, 2014 at 11:56 AM, Malintha Adikari 
wrote:

> Please note the update for the test scenario :
>
>
> On Thu, Jun 19, 2014 at 11:52 AM, Malintha Adikari 
> wrote:
>
>> Hi Rukshan,
>>
>> As the next step we can evaluate the usability of robot scripts. Then  we
>> have to come up with a way to enhance the usability of the test scripts
>> based on that evaluation. Could you try to develop an automated test case
>> using robot for following test scenario and compare the original script and
>> robot script and evaluate the differences between two
>>
>> *. login to Application server
> * upload a service to application server
> * confirm the uploaded server has been deployed successfully
> (this should be your back end service for the ESB proxy service)
>
>
>> 1.login to esb
>> 2.upload a proxy to esb
>> 3.check whether it was deployed successfully
>> 4.send a payload to the proxy
>> 5.Get the response
>> 6.Check the response is correct/incorrect
>>
>> Regards,
>> Malintha Adikari
>>
>>
>> On Tue, Jun 17, 2014 at 2:14 PM, Rukshan Chathuranga <
>> rcruksha...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>>  I added a xml file to keep stub name and wsdl file name of each admin
>>> services. its structure is looks like this.
>>>
>>> >> name="StatisticsAdmin" wsdl="StatisticsAdmin" lib="StatisticsAdminLibrary"/>
>>>
>>> Then added new java method to return wsdl name and stub class name. It
>>> is like this.
>>>
>>> public static String[] getServiceInfor(String lib) {
>>> File pomfile = new File("service.xml");
>>>  String[] res;
>>> try {
>>>
>>> DocumentBuilder dBuilder = DocumentBuilderFactory.newInstance()
>>>  .newDocumentBuilder();
>>> Document doc = dBuilder.parse(pomfile);
>>> System.out.println("Root element :"
>>>  + doc.getDocumentElement().getNodeName());
>>>
>>> NodeList service = doc.getElementsByTagName("service");
>>>  for (int i = 0; i < service.getLength(); i++) {
>>> Element ele = (Element) service.item(i);
>>> if (ele.getAttribute("lib").equals(lib)) {
>>>  res = new String[2];
>>> res[0] = ele.getAttribute("stub");
>>> res[1] = ele.getAttribute("wsdl");
>>>  return res;
>>> }
>>>
>>> }
>>> return null;
>>>
>>> } catch (Exception e) {
>>> System.out.println(e.getMessage());
>>> return null;
>>>  }
>>> }
>>>
>>>
>>> So if there are any issue in this procedure please let me know.
>>>
>>>
>>> Thanks and regards.
>>>
>>>
>>>
>>>
>>> On Sat, Jun 14, 2014 at 9:10 AM, Rukshan Chathuranga <
>>> rcruksha...@gmail.com> wrote:
>>>
 Hi Dharshana,

 No. it was not the resolving the dependencies of the client. Sorry if
 my mail is not much clear. :)

  I wanted to import required classes for Client that generated based on
 the Stub classes. My first step was taking package information from the
 POM.xml as you said. but it contain only some parent package names and also
 those get mapped to the new package names(rename). Thus it was difficulty
 to extract all the classes. Also some extra libraries get imported and some
 required libraries not get imported.

 But using reflection it is possible to get all the operation's
 information of the stub classes. Then importing required class for
 parameters and return type was much easier.

 ex:
 import org.wso2.carbon.service.mgt.stub.ServiceAdminStub;
 import
 org.wso2.carbon.service.mgt.stub.types.carbon.ServiceDownloadData;
 import
 org.wso2.carbon.service.mgt.stub.types.carbon.ServiceGroupMetaData;


 Thanks and regards.




 On Sat, Jun 14, 2014 at 12:18 AM, Dharshana Warusavitharana <
 dharsha...@wso2.com> wrote:

> Hi Rekshan,
>
> Do we really need this step. AFAICU you are trying to automate the
> dependency resolving of your client library.
> Basically, there is a limited set of dependency for external
> libraries when you are generating the client. That won't expand much over
> introducing new stubs.
> You can have general pom file which have basic dependencies which are
> common to the general stubs.
>
> And im not clear how you would identify extra libraries you need by
> just using reflection.
>
> Correct me if im wrong
>
> Thank you,
> Dharshana.
>
>
> On Fri, Jun 13, 2014 at 10:51 AM, Rukshan Chathuranga <
> rcruksha...@gmail.com> wrote:
>
>> Hi All,
>>
>> I could manage the issue occurred during Client generation from Stub.
>> I get operations from the WSDL file and used Java reflection to identify
>> the information of those o

Re: [Dev] [IS] OAuth configuration within identity.xml

2014-06-19 Thread Dulanja Liyanage
Hi Udara,

Could you please create a JIRA for this?

Thanks
Dulanja


On Tue, Jun 17, 2014 at 7:37 PM, Udara Rathnayake  wrote:

> Hi all,
>
> Under the $subject I can find following elements. Are these comments
> correct?
>
> 
>
> 3600
> 
>
> 3600
>
> I have noticed this on IS-4.6.0.
>
>
> Regards,
> UdaraR
>  --
> *Udara Rathnayake*
> Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile : +94 772207239
> Twitter : http://twitter.com/udarakr
> Blog: http://udarakr.blogspot.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Dulanja Liyanage
WSO2 Inc.
M: +94776764717
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Why we use " disabled='true' " in configuration files

2014-06-19 Thread Dulanja Liyanage
Hi Aruna,

Yes, proper way is to use enabled="false"

Thanks
Dulanja


On Tue, Jun 17, 2014 at 2:23 PM, Aruna Karunarathna  wrote:

> Hi all,
>
>
> I was trying to configure SSO foor WSO2 servers [1]  and saw that
> configuration it says,
>
> 
>
> Wouldn't it be better if we use,
>
> 
>
> Is there a particular reason/convention for using this format?.
>
>
> [1]. https://docs.wso2.org/display/IS500/Enabling+SSO+for+WSO2+Servers
>
> Regards
> --
>
> * Aruna Sujith Karunarathna* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Dulanja Liyanage
WSO2 Inc.
M: +94776764717
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] OSGi best practices for using third party OSGi bundles

2014-06-19 Thread Kasun Gajasinghe
Hi,

There are lot of third party libraries in the carbon platform that we
extend by leveraging their extension points. In most cases, this means that
third-party library loads carbon classes via Java reflection. Refer the
following example.

* Tomcat - Carbon uses the webapp classloader extension point of tomcat
with o.w.c.webapp.mgt.loader.CarbonWebappClassLoader

* Hazecast - Carbon uses Hz distributed maps with
o.w.c.caching.impl.CacheEntry class where Hz itself is a OSGi bundle

So, in a case like this what's the best way to handle this? Do we have to
wrap the original OSGi bundles just to add DynamicImport-Package header?
I'd like to know how OSGi recommends to develop libraries that provide
extension points like above.

Thanks,
KasunG

-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error not logged in ESB sample 4

2014-06-19 Thread Malaka Silva
According to the latest code error will not be printed in the mentioned
situation. Maybe the screen shot is outdated.

http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/synapse/2.1.2-wso2v4/modules/core/src/main/java/org/apache/synapse/endpoints/IndirectEndpoint.java

Adding Dev Support group

Best Regards,
Malaka


On Thu, Jun 19, 2014 at 4:42 PM, colinr Roy-Ehri  wrote:

> Hello,
>
> While I was executing the ESB sample 4, I found an issue.  this sample
> 
> did not report a ERROR in the logs, even though a custom error handler was
> invoked.
>
> Here is the client side invocation:
>  ant stockquote -Daddurl=
> http://localhost:9000/services/SimpleStockQuoteService
> -Dtrpurl=http://localhost:8280/ -Dsymbol=SUN
>
> Here is some of the output:
> [2014-06-19 16:28:53,370] DEBUG - SequenceMediator Mediation started from
> mediator position : 0
> [2014-06-19 16:28:53,370] DEBUG - SendMediator Start : Send mediator
> [2014-06-19 16:28:53,370] DEBUG - IndirectEndpoint Loading real endpoint
> with key : sunPort
> [2014-06-19 16:28:53,370]  WARN - FaultHandler FaultHandler executing
> impl: org.apache.synapse.mediators.MediatorFaultHandler
> [2014-06-19 16:28:53,370]  WARN - MediatorFaultHandler Executing fault
> handler mediator : sunErrorHandler
> [2014-06-19 16:28:53,370] DEBUG - SequenceMediator Start : Sequence
> 
> [2014-06-19 16:28:53,370] DEBUG - SequenceMediator Sequence
>  :: mediate()
> [2014-06-19 16:28:53,370] DEBUG - SequenceMediator Mediation started from
> mediator position : 0
> [2014-06-19 16:28:53,370] DEBUG - LogMediator Start : Log mediator
> [2014-06-19 16:28:53,370]  INFO - LogMediator text = An unexpected error
> occured for stock SUN, message = Couldn't find the endpoint with the key :
> sunPort
> [2014-06-19 16:28:53,371] DEBUG - LogMediator End : Log mediator
> [2014-06-19 16:28:53,371] DEBUG - DropMediator Start : Drop mediator
> [2014-06-19 16:28:53,371] DEBUG - DropMediator End : Drop mediator
> [2014-06-19 16:28:53,371] DEBUG - SequenceMediator End : Sequence
> 
>
> Note that the custom error handler is invoked (see the INFO message), but
> there is no ERROR level log message.
>
> I'm running java 1.7.0_060 and ESB 4.8.1.
>
> Please let me know if you need any more information!
>
> Thanks,
> Colin Roy-Ehri
> Software Engineer
> *WSO2, Inc. : wso2.com *
> *Mobile*  : 812-219-6517
>



-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/


Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] OSGi best practices for using third party OSGi bundles

2014-06-19 Thread Afkham Azeez
In the OSGi world, getting linked to extension implementations is through
OSGi services. Unfortunately, for that to work, all jars should be proper,
well-behaved OSGi bundles.


On Fri, Jun 20, 2014 at 1:44 AM, Kasun Gajasinghe  wrote:

> Hi,
>
> There are lot of third party libraries in the carbon platform that we
> extend by leveraging their extension points. In most cases, this means that
> third-party library loads carbon classes via Java reflection. Refer the
> following example.
>
> * Tomcat - Carbon uses the webapp classloader extension point of tomcat
> with o.w.c.webapp.mgt.loader.CarbonWebappClassLoader
>
> * Hazecast - Carbon uses Hz distributed maps with
> o.w.c.caching.impl.CacheEntry class where Hz itself is a OSGi bundle
>
> So, in a case like this what's the best way to handle this? Do we have to
> wrap the original OSGi bundles just to add DynamicImport-Package header?
> I'd like to know how OSGi recommends to develop libraries that provide
> extension points like above.
>
> Thanks,
> KasunG
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919 blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

* linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


[Dev] Connector uploading error in ESB!

2014-06-19 Thread Asanki Fernando
Hi All,

I'm writing an ESB connector to foursquare, and most of the times when I
try to upload the connector to the ESB, it gives me the following error. I
checked all the possible syntax errors that could be made. Is this coz of a
syntax error? Please let me know a way to solve this.

[2014-06-20 09:38:00,431] ERROR - LibraryArtifactDeployer Artifact
representing the filename
/home/ian/Documents/Software/ESB2/wso2esb-4.8.1/repository/deployment/server/synapse-libs/foursquare.zip
is not deployed on Synapse
[2014-06-20 09:38:00,431]  INFO - DeploymentEngine
org.apache.axis2.deployment.DeploymentException: Artifact representing the
filename
/home/ian/Documents/Software/ESB2/wso2esb-4.8.1/repository/deployment/server/synapse-libs/foursquare.zip
is not deployed on Synapse
[2014-06-20 09:38:00,598] ERROR - LibDeployerUtils artifact.xml is invalid.
Error occurred while resolving Synapse Library :
{org.wso2.carbon.connectors}foursquare
[2014-06-20 09:38:00,598]  WARN - LibDeployerUtils Could not build lib
artifact for path :
/home/ian/Documents/Software/ESB2/wso2esb-4.8.1/tmp/libs/1403237280432foursquare.zip/fourSq_venues
Synapse Library :{org.wso2.carbon.connectors}foursquare. Continue searching
for other lib artifacts
[2014-06-20 09:38:00,605] ERROR - LibraryArtifactDeployer Deployment of
synapse artifact failed for synapse libray at :
/home/ian/Documents/Software/ESB2/wso2esb-4.8.1/repository/deployment/server/synapse-libs/foursquare.zip
: Error when resolving Dependencies for lib :
{org.wso2.carbon.connectors}foursquare
org.apache.synapse.deployers.SynapseArtifactDeploymentException: Error when
resolving Dependencies for lib : {org.wso2.carbon.connectors}foursquare
at
org.apache.synapse.libraries.util.LibDeployerUtils.searchAndResolveDependencies(LibDeployerUtils.java:244)
at
org.apache.synapse.libraries.util.LibDeployerUtils.createSynapseLibrary(LibDeployerUtils.java:80)
at
org.apache.synapse.deployers.LibraryArtifactDeployer.deploy(LibraryArtifactDeployer.java:60)
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)


Thank you.
Best Regards,
Asanki Fernando.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Connector uploading error in ESB!

2014-06-19 Thread Vanjikumaran Sivajothy
Can you please cross check the name of artifact in the meta data?
Its seems like not correct *{org.wso2.carbon.connectors}foursquare*


On Fri, Jun 20, 2014 at 9:44 AM, Asanki Fernando 
wrote:

> Hi All,
>
> I'm writing an ESB connector to foursquare, and most of the times when I
> try to upload the connector to the ESB, it gives me the following error. I
> checked all the possible syntax errors that could be made. Is this coz of a
> syntax error? Please let me know a way to solve this.
>
> [2014-06-20 09:38:00,431] ERROR - LibraryArtifactDeployer Artifact
> representing the filename
> /home/ian/Documents/Software/ESB2/wso2esb-4.8.1/repository/deployment/server/synapse-libs/foursquare.zip
> is not deployed on Synapse
> [2014-06-20 09:38:00,431]  INFO - DeploymentEngine
> org.apache.axis2.deployment.DeploymentException: Artifact representing the
> filename
> /home/ian/Documents/Software/ESB2/wso2esb-4.8.1/repository/deployment/server/synapse-libs/foursquare.zip
> is not deployed on Synapse
> [2014-06-20 09:38:00,598] ERROR - LibDeployerUtils artifact.xml is
> invalid. Error occurred while resolving Synapse Library :
> {org.wso2.carbon.connectors}foursquare
> [2014-06-20 09:38:00,598]  WARN - LibDeployerUtils Could not build lib
> artifact for path :
> /home/ian/Documents/Software/ESB2/wso2esb-4.8.1/tmp/libs/1403237280432foursquare.zip/fourSq_venues
> Synapse Library :{org.wso2.carbon.connectors}foursquare. Continue searching
> for other lib artifacts
> [2014-06-20 09:38:00,605] ERROR - LibraryArtifactDeployer Deployment of
> synapse artifact failed for synapse libray at :
> /home/ian/Documents/Software/ESB2/wso2esb-4.8.1/repository/deployment/server/synapse-libs/foursquare.zip
> : Error when resolving Dependencies for lib :
> {org.wso2.carbon.connectors}foursquare
> org.apache.synapse.deployers.SynapseArtifactDeploymentException: Error
> when resolving Dependencies for lib : {org.wso2.carbon.connectors}foursquare
> at
> org.apache.synapse.libraries.util.LibDeployerUtils.searchAndResolveDependencies(LibDeployerUtils.java:244)
>  at
> org.apache.synapse.libraries.util.LibDeployerUtils.createSynapseLibrary(LibDeployerUtils.java:80)
> at
> org.apache.synapse.deployers.LibraryArtifactDeployer.deploy(LibraryArtifactDeployer.java:60)
>  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)
>
>
> Thank you.
> Best Regards,
> Asanki Fernando.
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sivajothy Vanjikumaran
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com *
*Mobile:(+94)777219209*
[image: Facebook]  [image: Twitter]
 [image: LinkedIn]
 [image:
Blogger]  [image: SlideShare]


This communication may contain privileged or other confidential information
and is intended exclusively for the addressee/s. If you are not the
intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print,
copy, re-transmit, disseminate, or otherwise use the information contained
in this communication. Internet commu

Re: [Dev] Connector uploading error in ESB!

2014-06-19 Thread Gayan Gunarathne
Seems like some of the dependencies refer in the connector are missing.
Please check whether you have include all the dependencies to the lib
folder of the connector zip file.

Thanks,
Gayan


On Fri, Jun 20, 2014 at 9:44 AM, Asanki Fernando 
wrote:

> Hi All,
>
> I'm writing an ESB connector to foursquare, and most of the times when I
> try to upload the connector to the ESB, it gives me the following error. I
> checked all the possible syntax errors that could be made. Is this coz of a
> syntax error? Please let me know a way to solve this.
>
> [2014-06-20 09:38:00,431] ERROR - LibraryArtifactDeployer Artifact
> representing the filename
> /home/ian/Documents/Software/ESB2/wso2esb-4.8.1/repository/deployment/server/synapse-libs/foursquare.zip
> is not deployed on Synapse
> [2014-06-20 09:38:00,431]  INFO - DeploymentEngine
> org.apache.axis2.deployment.DeploymentException: Artifact representing the
> filename
> /home/ian/Documents/Software/ESB2/wso2esb-4.8.1/repository/deployment/server/synapse-libs/foursquare.zip
> is not deployed on Synapse
> [2014-06-20 09:38:00,598] ERROR - LibDeployerUtils artifact.xml is
> invalid. Error occurred while resolving Synapse Library :
> {org.wso2.carbon.connectors}foursquare
> [2014-06-20 09:38:00,598]  WARN - LibDeployerUtils Could not build lib
> artifact for path :
> /home/ian/Documents/Software/ESB2/wso2esb-4.8.1/tmp/libs/1403237280432foursquare.zip/fourSq_venues
> Synapse Library :{org.wso2.carbon.connectors}foursquare. Continue searching
> for other lib artifacts
> [2014-06-20 09:38:00,605] ERROR - LibraryArtifactDeployer Deployment of
> synapse artifact failed for synapse libray at :
> /home/ian/Documents/Software/ESB2/wso2esb-4.8.1/repository/deployment/server/synapse-libs/foursquare.zip
> : Error when resolving Dependencies for lib :
> {org.wso2.carbon.connectors}foursquare
> org.apache.synapse.deployers.SynapseArtifactDeploymentException: Error
> when resolving Dependencies for lib : {org.wso2.carbon.connectors}foursquare
> at
> org.apache.synapse.libraries.util.LibDeployerUtils.searchAndResolveDependencies(LibDeployerUtils.java:244)
>  at
> org.apache.synapse.libraries.util.LibDeployerUtils.createSynapseLibrary(LibDeployerUtils.java:80)
> at
> org.apache.synapse.deployers.LibraryArtifactDeployer.deploy(LibraryArtifactDeployer.java:60)
>  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)
>
>
> Thank you.
> Best Regards,
> Asanki Fernando.
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards,

Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email  : gay...@wso2.com  | mobile : +94 766819985
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Resource Scope-Should be unique?

2014-06-19 Thread Vijayaratha Vijayasingam
IS team;
Currently we are able to add duplicate resource scopes. Don't we need to
make it unique?
I checked the IDN_OAUTH2_SCOPE table, there are   scope-key,name fields are
defined...what is the difference in these two entries?
And currently , when i add a resource scope, i do not see any DB entry
in IDN_OAUTH2_SCOPE table or IDN_OAUTH2_RESOURCE_SCOPE  table..

What i'm doing wrong here?

thanks.



On 19 June 2014 09:32, Nuwan Dias  wrote:

> Why the private threads? What are you trying to hide :) ?
>
> A scope can be used by multiple resources. But there cannot be two scopes
> with the same key.
>
> On Thursday, June 19, 2014, Vijayaratha Vijayasingam 
> wrote:
>
>> Hi all;
>> Resource scope has to be unique or not? , (like we maintain the api
>> name/version/context combination.)
>> Currently we can add duplicate scopes..
>> The follwoing table keeps scope related info...
>>
>>- IDN_OAUTH2_SCOPE- Identity table
>>
>> Do we need to make unique keys? Or do we allow to create duplicate
>> resource entries?
>>
>> Thanks.
>> --
>> -Ratha
>> mobile: (+94)755906608
>>
>
>
> --
> Nuwan Dias
>
> Associate Tech Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>
>


-- 
-Ratha
mobile: (+94)755906608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] IDENTITY-2230 - ( Admin users cannot delete roles created by them ) is blocker for Greg integration tests

2014-06-19 Thread Pulasthi Supun
Hi Darshana,

Has this been completely merged into git now. This is a blocker for GREG
integrations tests.


Regards,
Pulasthi
-- 
--
Pulasthi Supun
Software Engineer; WSO2 Inc.; http://wso2.com,
Email: pulas...@wso2.com
Mobile: +94 (71) 9258281
Blog : http://pulasthisupun.blogspot.com/
Git hub profile: https://github.com/pulasthi
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] IDENTITY-2230 - ( Admin users cannot delete roles created by them ) is blocker for Greg integration tests

2014-06-19 Thread Darshana Gunawardana
Hi Pulasthi,

We have already merged user-mgt components in [1]. But these changes
haven't pushed to [2] as we are in the process finalizing the merging
identity components which we'll complete this week.

Thanks,

[1] https://github.com/wso2-dev/carbon-identity
[2] https://github.com/wso2/carbon-identity/


On Fri, Jun 20, 2014 at 11:08 AM, Pulasthi Supun  wrote:

> Hi Darshana,
>
> Has this been completely merged into git now. This is a blocker for GREG
> integrations tests.
>
>
> Regards,
> Pulasthi
> --
> --
> Pulasthi Supun
> Software Engineer; WSO2 Inc.; http://wso2.com,
> Email: pulas...@wso2.com
> Mobile: +94 (71) 9258281
> Blog : http://pulasthisupun.blogspot.com/
> Git hub profile: https://github.com/pulasthi
>



-- 
Regards,


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

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


[Dev] How to check whether a gadget is loaded?

2014-06-19 Thread Kalpa Welivitigoda
Hi,

I use UESContainer.renderGadget() to embed a gadget (subscriber gadget) in
a div. The message (in pub-sub model) is received by the gadget only if I
use a time out for the publish function. The issue seems to be that the
subscriber gadget is not loaded by the time the message is published.

-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev