Re: [Dev] EI tooling - Adding collection and resource properties

2018-10-16 Thread Godwin Shrimal
Thanks for the response Prabushi. I created [1] to track issue which is not
allowing to add resource properties.

[1] https://github.com/wso2/product-ei/issues/2752

Thanks
Godwin

On Wed, Oct 17, 2018 at 8:21 AM Prabushi Samarakoon 
wrote:

> Hi Godwin,
>
> Please find the related documentation below.
>
>- Collection creation - [1]
>
>- Adding properties - [2]
>
> 
>
>
> Thanks & Best Regards,
> Prabushi
>
> [1] - https://docs.wso2.com/display/EI6xx/Working+with+Registry+Artifacts
> [2] -
> https://docs.wso2.com/display/DVS380/Managing+the+Registry#ManagingtheRegistry-Addingproperties,associations,dependencies,commentsandtagsforaresourceorcollection
>
> On Tue, Oct 16, 2018 at 6:45 PM Godwin Shrimal  wrote:
>
>> Hi EI Folks,
>>
>> I can't find an option to create collection and adding resource
>> properties in EI tooling (In the Registry resource project). Is it a
>> limitation or if not can someone point me that ?
>>
>> Thanks
>> Godwin
>> --
>> *Godwin Amila Shrimal*
>> Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94761124419*
>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>> *
>> twitter: https://twitter.com/godwinamila
>> 
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> *Prabushi Samarakoon*
> Mobile: +94715434580
> Email: prabus...@wso2.com
>
>
>

-- 
*Godwin Amila Shrimal*
Associate Technical Lead
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94761124419*
linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
*
twitter: https://twitter.com/godwinamila

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


Re: [Dev] EI tooling - Adding collection and resource properties

2018-10-16 Thread Prabushi Samarakoon
Hi Godwin,

Please find the related documentation below.

   - Collection creation - [1]
   
   - Adding properties - [2]
   



Thanks & Best Regards,
Prabushi

[1] - https://docs.wso2.com/display/EI6xx/Working+with+Registry+Artifacts
[2] -
https://docs.wso2.com/display/DVS380/Managing+the+Registry#ManagingtheRegistry-Addingproperties,associations,dependencies,commentsandtagsforaresourceorcollection

On Tue, Oct 16, 2018 at 6:45 PM Godwin Shrimal  wrote:

> Hi EI Folks,
>
> I can't find an option to create collection and adding resource properties
> in EI tooling (In the Registry resource project). Is it a limitation or if
> not can someone point me that ?
>
> Thanks
> Godwin
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94761124419*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> *
> twitter: https://twitter.com/godwinamila
> 
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*Prabushi Samarakoon*
Mobile: +94715434580
Email: prabus...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] About product documentation offline in PDF

2018-10-16 Thread Jorge
Hi all.
I can see the option "Export to PDF" but before I can download the entire
documentation with the child pages. Now I just can download the current
page.
How can I download the entire documentation?

Regards,
Jorge.

El lun., 15 oct. 2018 a las 20:29, Omindu Rathnaweera ()
escribió:
>
> Adding documentation team.
>
> On Sun, Oct 14, 2018 at 4:28 PM Jorge  wrote:
>>
>> Hi all.
>> How can I download the documentation in PDF format using this link:
https://docs.wso2.com/display/IS570/ .
>>
>> In previous versions I can, now I don´t see the option.
>>
>> Regards,
>> Jorge.
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
> --
> Omindu Rathnaweera
> Senior Software Engineer, WSO2 Inc.

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


[Dev] Issue running a wso2IS fresh build

2018-10-16 Thread Jorge
Hi all.

I build from sources  the wso2is 5.7.0 and when I try to start in windows
8.1 with:
java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)


With this error:

[2018-10-16 00:34:40,745]  INFO
{org.wso2.carbon.humantask.deployer.HumanTaskDeployer} -  Initializing
HumanTask Deployer for tenant -1234.
[2018-10-16 00:35:04,207] FATAL
{org.wso2.carbon.core.init.CarbonServerManager} -  WSO2 Carbon
initialization Failed
org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid
UTF-8 middle byte 0x3f (at char #2621, byte #-1)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:296)
at
org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:109)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:570)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:566)
at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:592)
at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:575)
at
org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)
at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:91)
at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:887)
at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
at
org.wso2.carbon.core.init.CarbonServerManager.getClientConfigurationContext(CarbonServerManager.java:573)
at
org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:458)
at
org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:291)
at
org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:118)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x3f
(at char #2621, byte #-1)
at
com.ctc.wstx.sr.StreamScanner.constructFromIOE(StreamScanner.java:625)
at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:997)
at com.ctc.wstx.sr.StreamScanner.getNext(StreamScanner.java:754)
at
com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2000)
at
com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1134)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:681)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:214)
... 18 more
Caused by: java.io.CharConversionException: Invalid UTF-8 middle byte 0x3f
(at char #2621, byte #-1)
at
com.ctc.wstx.io.UTF8Reader.reportInvalidOther(UTF8Reader.java:314)
at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:212)
at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:87)
at
com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57)
at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:991)
... 23 more


I check  [1], [2] and [3] and -Dfile.encoding=UTF8  is by default.

[1]
https://stackoverflow.com/questions/47921787/wso2-carbon-initialization-failed-fatal-error
[2] https://bugs.openjdk.java.net/browse/JDK-8189789
[3] http://mail.wso2.org/mailarchive/dev/2017-December/075320.html

Also in catalina-server.xml I set compression="off" in both connectors with
the same results..

Any idea?

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


[Dev] EI tooling - Adding collection and resource properties

2018-10-16 Thread Godwin Shrimal
Hi EI Folks,

I can't find an option to create collection and adding resource properties
in EI tooling (In the Registry resource project). Is it a limitation or if
not can someone point me that ?

Thanks
Godwin
-- 
*Godwin Amila Shrimal*
Associate Technical Lead
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94761124419*
linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
*
twitter: https://twitter.com/godwinamila

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


Re: [Dev] Unzip not working WSO2

2018-10-16 Thread Aman Singh
Hi,

Basically I don't know the name of the file that will be unzipped, so for
that I am using regex in source path.

Is something wrong there. Cause if I give specific file name with .zip
extension it is successfully able to unzip it.

Thanks


On Tue, 16 Oct 2018, 15:41 Aman Singh,  wrote:

> Hi ,
>
> The file connector version is 2.0.10
> and the EI  is 6.2.0
>
> Thanks
>
> On Tue, Oct 16, 2018 at 3:37 PM Cyril Rognon  wrote:
>
>> Hi
>>
>> We would need to know the version of EI you are using. And the version of
>> the fileconnector if it was added.
>>
>> Thanks
>> Cyril
>>
>> Le mar. 16 oct. 2018 à 09:56, Aman Singh  a
>> écrit :
>>
>>> Hi All,
>>>
>>> I have created an inbound-endpoint which copies a "zip" file with any
>>> name from server to local. Below is the code for my inbounf-endpoint:-
>>> 
>>> >> sequence="sequence1" suspend="false" xmlns="
>>> http://ws.apache.org/ns/synapse";>
>>> 
>>> 1000
>>> true
>>> true
>>> >> name="transport.vfs.ContentType">application/octet-stream
>>> >> name="transport.vfs.LockReleaseSameNode">false
>>> true
>>> >> name="transport.vfs.ActionAfterFailure">MOVE
>>> >> name="transport.vfs.ActionAfterProcess">MOVE
>>> >> name="transport.vfs.FileURI">sftp://username:password@hostname
>>> /home/folder1?sftpPathFromRoot=true
>>> >> name="transport.vfs.MoveAfterFailure">D:/Fail
>>> false
>>> .*.*
>>> D:
>>> /AfterProcess
>>> disable
>>> >> name="transport.vfs.FileSortAttribute">none
>>> >> name="transport.vfs.FileSortAscending">true
>>> true
>>> false
>>> false
>>> 
>>> 
>>>
>>> Now I want to unzip the file from picking it from copied location, my
>>> code for that is below:-
>>>
>>> 
>>> http://ws.apache.org/ns/synapse";>
>>> 
>>> 
>>> 
>>> >> language="js">
>>> 
>>> file:///D:/AfterProcess/.*.zip
>>> file:///D:/001/
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> 
>>>
>>> But it is unable to unzip my file. Rest Log mediator message are
>>> printing but unzip is not working
>>> Can anybody help with the issue here? Why the unzipping is failing. What
>>> do I need to change?
>>>
>>> Thank you.
>>>
>>> ___
>>> 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] Unzip not working WSO2

2018-10-16 Thread Aman Singh
Hi ,

The file connector version is 2.0.10
and the EI  is 6.2.0

Thanks

On Tue, Oct 16, 2018 at 3:37 PM Cyril Rognon  wrote:

> Hi
>
> We would need to know the version of EI you are using. And the version of
> the fileconnector if it was added.
>
> Thanks
> Cyril
>
> Le mar. 16 oct. 2018 à 09:56, Aman Singh  a
> écrit :
>
>> Hi All,
>>
>> I have created an inbound-endpoint which copies a "zip" file with any
>> name from server to local. Below is the code for my inbounf-endpoint:-
>> 
>> > sequence="sequence1" suspend="false" xmlns="
>> http://ws.apache.org/ns/synapse";>
>> 
>> 1000
>> true
>> true
>> > name="transport.vfs.ContentType">application/octet-stream
>> > name="transport.vfs.LockReleaseSameNode">false
>> true
>> > name="transport.vfs.ActionAfterFailure">MOVE
>> > name="transport.vfs.ActionAfterProcess">MOVE
>> > name="transport.vfs.FileURI">sftp://username:password@hostname
>> /home/folder1?sftpPathFromRoot=true
>> > name="transport.vfs.MoveAfterFailure">D:/Fail
>> false
>> .*.*
>> D:
>> /AfterProcess
>> disable
>> none
>> true
>> true
>> false
>> false
>> 
>> 
>>
>> Now I want to unzip the file from picking it from copied location, my
>> code for that is below:-
>>
>> 
>> http://ws.apache.org/ns/synapse";>
>> 
>> 
>> 
>> > language="js">
>> 
>> file:///D:/AfterProcess/.*.zip
>> file:///D:/001/
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> 
>>
>> But it is unable to unzip my file. Rest Log mediator message are printing
>> but unzip is not working
>> Can anybody help with the issue here? Why the unzipping is failing. What
>> do I need to change?
>>
>> Thank you.
>>
>> ___
>> 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] JsonStreamFormatter fail to convert XML to JSON in DSS

2018-10-16 Thread Bernard Paris
Hi devs,

we are facing this issue with IE6.3.0
https://github.com/wso2/product-ei/issues/2523

Is there any workaround or fix ?  Is this issue present in newer 6.4.0 version ?

Many thanks,
regards

Bernard
https://www.uclouvain.be
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Siddhi] "Over Query Limit" error in geocode(stream function) in Siddhi

2018-10-16 Thread Gangani Ariyarathne
Hi all,

I've used geocode(stream function) of Geo-extension of Siddhi to find the
latitude and longitude values by giving the location. That stream function
doesn't work as expected and gives "OVER QUERY LIMIT" error after running
my siddhi application a few times. I did a background search on this error
and below are the results:

   - As I found Siddhi uses Google Map API for this and they use this
   without a developer's account.
   - This error normally happens due to exceeding the Google Maps Platform
   web services usage limits by sending too many requests per day, sending
   requests too fast, sending requests too fast for too long or otherwise
   abusing the web service [2]. But without these reasons also I'm receiving
   the same error message.
   - That Google's geocode provides another way to use that by configuring
   a paid developer's account for the Google Map API[3]. I tried that one also
   by fixing the siddhi function at the code level. But the error still
   remains the same.

Below is the error that I encountered while executing the siddhi
application which uses geocode function.
[image: Screenshot from 2018-10-16 09-46-03.png]
 I've posted a Git Issue[1] related to this error.

Any help would be highly appreciated.

[1] https://github.com/wso2-extensions/siddhi-execution-geo/issues/47
[2]
https://developers.google.com/maps/premium/previous-licenses/articles/usage-limits
[3] https://developers.google.com/maps/documentation/maps-static/get-api-key

Best regards,
-- 

*Gangani Chamika*

*Intern - Software Engineering*
*WSO2*

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


[Dev] Unzip not working WSO2

2018-10-16 Thread Aman Singh
Hi All,

I have created an inbound-endpoint which copies a "zip" file with any name
from server to local. Below is the code for my inbounf-endpoint:-

http://ws.apache.org/ns/synapse
">

1000
true
true
application/octet-stream
false
true
MOVE
MOVE
sftp://username:password@hostname
/home/folder1?sftpPathFromRoot=true
D:/Fail
false
.*.*
D:
/AfterProcess
disable
none
true
true
false
false



Now I want to unzip the file from picking it from copied location, my code
for that is below:-


http://ws.apache.org/ns/synapse";>





file:///D:/AfterProcess/.*.zip
file:///D:/001/










But it is unable to unzip my file. Rest Log mediator message are printing
but unzip is not working
Can anybody help with the issue here? Why the unzipping is failing. What do
I need to change?

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