Re: [scxml] ANN: SCION-Java project

2012-06-11 Thread Jacob Beard
Hi,

I opened a task in JIRA to update the SCXML Commons home page, and
provided a patch, here:
https://issues.apache.org/jira/browse/SCXML-166

Thanks,

Jake

On Thu, May 31, 2012 at 9:45 AM, Jacob Beard  wrote:
> Will do. Thanks,
>
> Jake
>
> On Thu, May 31, 2012 at 9:31 AM, Rahul Akolkar  
> wrote:
>> If you want to provide a patch to the Commons SCXML home page source
>> via JIRA, we could add this to the "Related Projects" section [1].
>>
>> -Rahul
>>
>> [1] http://commons.apache.org/scxml/#Related_Projects
>>
>>
>> On Wed, May 30, 2012 at 5:36 PM, Jacob Beard  wrote:
>>> Hi,
>>>
>>> While not specifically related to SCXML Commons, I wanted to draw your
>>> attention to a new SCXML-related project I have just released called
>>> SCION-Java [0]. SCION is an implementation of SCXML in JavaScript [1],
>>> and SCION-Java provides lightweight bindings to the SCION library for
>>> Java. Some advantages of SCION-Java are:
>>>
>>> * liberally licensed (Apache 2)
>>> * extremely simple Java API (just one class)
>>> * well-tested, using the SCXML Test Framework [2]
>>> * supports scripting with ECMAScript out of the box
>>>
>>> The Java API is not quite complete yet, as I still need to allow
>>> registering state change listeners from Java.
>>>
>>> If you have any questions or comments, please do not hesitate to
>>> contact me. Thanks,
>>>
>>> Jake
>>>
>>>
>>> [0] https://github.com/jbeard4/SCION-Java
>>> [1] https://github.com/jbeard4/SCION
>>> [2] https://github.com/jbeard4/scxml-test-framework
>>>
>>> -
>>> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
>>> For additional commands, e-mail: user-h...@commons.apache.org
>>>
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
>> For additional commands, e-mail: user-h...@commons.apache.org
>>

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [vfs] How to resolve a share path to a FileObject

2012-06-11 Thread ldp
Do you have all of the dependencies you need?   
*My classpath is:*
























Turn up logging to see what providers VFS is loading.  *How can I do this?*
 

org.apache.commons.vfs2.FileSystemException: Badly formed URI
"smb://Administrator:***@10.21.20.21/e/Varie/WinXP_key.txt".
at
org.apache.commons.vfs2.provider.url.UrlFileProvider.findFile(UrlFileProvider.java:91)
at
org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:713)
at
org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:621)
at FileTransfer.copyFileUsingVFS(FileTransfer.java:97)
at FileTransfer.main(FileTransfer.java:67)
Caused by: java.net.MalformedURLException: unknown protocol: smb
at java.net.URL.(Unknown Source)
at java.net.URL.(Unknown Source)
at java.net.URL.(Unknown Source)
at
org.apache.commons.vfs2.provider.url.UrlFileProvider.findFile(UrlFileProvider.java:72)
... 4 more

--
View this message in context: 
http://apache-commons.680414.n4.nabble.com/How-to-resolve-a-share-path-to-a-FileObject-tp4634909p4634920.html
Sent from the Commons - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [vfs] How to resolve a share path to a FileObject

2012-06-11 Thread ldp
[Do you have all of the dependencies you need?]  *My classpath is:


   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
*

Turn up logging to see what providers VFS is loading.  
*How can I do this?*
In trunk it looks like the SMB stuff is in the sandbox.  It requires JCIFS,
it looks like.  Do you have 
that? *yes*
The full error trace is:
org.apache.commons.vfs2.FileSystemException: Badly formed URI
"smb://usr:***@hostname/filename".
at
org.apache.commons.vfs2.provider.url.UrlFileProvider.findFile(UrlFileProvider.java:91)
at
org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:713)
at
org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:621)
at FileTransfer.copyFileUsingVFS(FileTransfer.java:97)
at FileTransfer.main(FileTransfer.java:67)
Caused by: java.net.MalformedURLException: unknown protocol: smb
at java.net.URL.(Unknown Source)
at java.net.URL.(Unknown Source)
at java.net.URL.(Unknown Source)
at
org.apache.commons.vfs2.provider.url.UrlFileProvider.findFile(UrlFileProvider.java:72)
... 4 more


--
View this message in context: 
http://apache-commons.680414.n4.nabble.com/How-to-resolve-a-share-path-to-a-FileObject-tp4634909p4634919.html
Sent from the Commons - User mailing list archive at Nabble.com.

R: [vfs] How to resolve a share path to a FileObject

2012-06-11 Thread ldp
[Do you have all of the dependencies you need?]  My classpath is:


   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   


Turn up logging to see what providers VFS is loading.
How can I do this?
In trunk it looks like the SMB stuff is in the sandbox.  It requires JCIFS, it 
looks like.  Do you have
that? yes





Laura Delli Paoli

[Discovery]
Via del Giorgione, 59
00147 - Roma - ITALY
phone: +39 06 844341
l.dellipa...@reply.it
www.reply.it

Da: James Carman [via Apache Commons] 
[mailto:ml-node+s680414n4634917...@n4.nabble.com]
Inviato: lunedì 11 giugno 2012 15:59
A: Delli Paoli Laura
Oggetto: Re: [vfs] How to resolve a share path to a FileObject

Do you have all of the dependencies you need?  Turn up logging to see
what providers VFS is loading.  In trunk it looks like the SMB stuff
is in the sandbox.  It requires JCIFS, it looks like.  Do you have
that?

On Mon, Jun 11, 2012 at 8:28 AM, ldp <[hidden 
email]> wrote:

> I get the same error
>
> --
> View this message in context: 
> http://apache-commons.680414.n4.nabble.com/How-to-resolve-a-share-path-to-a-FileObject-tp4634909p4634915.html
> Sent from the Commons - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: [hidden 
> email]
> For additional commands, e-mail: [hidden 
> email]
>

-
To unsubscribe, e-mail: [hidden 
email]
For additional commands, e-mail: [hidden 
email]



If you reply to this email, your message will be added to the discussion below:
http://apache-commons.680414.n4.nabble.com/How-to-resolve-a-share-path-to-a-FileObject-tp4634909p4634917.html
To unsubscribe from How to resolve a share path to a FileObject, click 
here.
NAML



--
The information transmitted is intended for the person or entity to which it is 
addressed and may contain confidential and/or privileged material. Any review, 
retransmission, dissemination or other use of, or taking of any action in 
reliance upon, this information by persons or entities other than the intended 
recipient is prohibited. If you received this in error, please contact the 
sender and delete the material from any computer.


--
View this message in context: 
http://apache-commons.680414.n4.nabble.com/R-vfs-How-to-resolve-a-share-path-to-a-FileObject-tp4634918.html
Sent from the Commons - User mailing list archive at Nabble.com.

Re: [vfs] How to resolve a share path to a FileObject

2012-06-11 Thread James Carman
Do you have all of the dependencies you need?  Turn up logging to see
what providers VFS is loading.  In trunk it looks like the SMB stuff
is in the sandbox.  It requires JCIFS, it looks like.  Do you have
that?

On Mon, Jun 11, 2012 at 8:28 AM, ldp  wrote:
> I get the same error
>
> --
> View this message in context: 
> http://apache-commons.680414.n4.nabble.com/How-to-resolve-a-share-path-to-a-FileObject-tp4634909p4634915.html
> Sent from the Commons - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [vfs] How to resolve a share path to a FileObject

2012-06-11 Thread ldp
I get the same error

--
View this message in context: 
http://apache-commons.680414.n4.nabble.com/How-to-resolve-a-share-path-to-a-FileObject-tp4634909p4634915.html
Sent from the Commons - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [vfs] How to resolve a share path to a FileObject

2012-06-11 Thread Indudhar Devanath
>
> I'm trying to use VFS2 to copy a file from a remote path to a local folder.
>
> If I run
>
> FileObject srcFile = fsManager.resolveFile(//+hostname+"/"+filename);
>
> localFile.getName().getURI() returns something like file:path and
> srcFile.exists() returns false.
>
> On the othe hand
>
> FileObject srcFile =
>
> fsManager.resolveFile("smb://"+user+":"+pw+"@"+hostname+"/"+filename);
>
> fails with the following exception:
>
> Badly formed URI "smb://user:***@hostname/filename"
>

Did you try checking if you can access the file with URI
"smb://user:***@hostname/filename"
There are chances that this URI might indeed be badly formed.

Also try this:
String srcURI = "smb://"+user+":"+pw+"@"+hostname+"/"+filename;
FileObject srcFile = fsManager.resolveFile(srcURI, new FileSystemOptions());

Indu


Re: [javaflow] Working with dynamic proxies

2012-06-11 Thread George Georgovassilis
Thank you for the reply, James. The continuation is created in the
InvocationHandler but the exception originates from within javaflow when it
resumes the continuation. Please mind that this is not a basic question
about proxies, as far as I understand it javaflow incorrectly restores the
stack and tries to restore the proxy itself instead of the
invocationhandler.

On Mon, Jun 11, 2012 at 1:05 PM, James Carman
wrote:

> InvocationHandlers don't implement the interface.  You'd have to have the
> proxy instance itself.
>
> Sent from tablet device.  Please excuse typos and brevity.
> On Jun 11, 2012 4:55 AM, "George Georgovassilis" <
> g.georgovassi...@gmail.com>
> wrote:
>
> > Hello list,
> >
> > I am trying to suspend a call where the stack goes through a dynamic
> proxy.
> > When resumed, I get a ClassCastException which tries to cast the
> > InvocationHandler of the proxy to the interface it is proxying. Classes
> are
> > prepared with the ant-task, both bcel and asm modes fail.Can this be done
> > and all and yes, then how?
> >
>


Re: [javaflow] Working with dynamic proxies

2012-06-11 Thread James Carman
InvocationHandlers don't implement the interface.  You'd have to have the
proxy instance itself.

Sent from tablet device.  Please excuse typos and brevity.
On Jun 11, 2012 4:55 AM, "George Georgovassilis" 
wrote:

> Hello list,
>
> I am trying to suspend a call where the stack goes through a dynamic proxy.
> When resumed, I get a ClassCastException which tries to cast the
> InvocationHandler of the proxy to the interface it is proxying. Classes are
> prepared with the ant-task, both bcel and asm modes fail.Can this be done
> and all and yes, then how?
>


How to resolve a share path to a FileObject

2012-06-11 Thread Delli Paoli Laura
Hello everybody!

I'm trying to use VFS2 to copy a file from a remote path to a local folder.

If I run

FileObject srcFile = fsManager.resolveFile(//+hostname+"/"+filename);

localFile.getName().getURI() returns something like 
file:path and srcFile.exists() returns false.

On the othe hand

FileObject srcFile =

fsManager.resolveFile("smb://"+user+":"+pw+"@"+hostname+"/"+filename);

fails with the following exception:

Badly formed URI "smb://user:***@hostname/filename"



Can anyone help me??

How can I resolve a share path to a FileObject??

thanks
Laura



Laura Delli Paoli

[Discovery]
Via del Giorgione, 59
00147 - Roma - ITALY
phone: +39 06 844341
l.dellipa...@reply.it
www.reply.it




--
The information transmitted is intended for the person or entity to which it is 
addressed and may contain confidential and/or privileged material. Any review, 
retransmission, dissemination or other use of, or taking of any action in 
reliance upon, this information by persons or entities other than the intended 
recipient is prohibited. If you received this in error, please contact the 
sender and delete the material from any computer.


[javaflow] Working with dynamic proxies

2012-06-11 Thread George Georgovassilis
Hello list,

I am trying to suspend a call where the stack goes through a dynamic proxy.
When resumed, I get a ClassCastException which tries to cast the
InvocationHandler of the proxy to the interface it is proxying. Classes are
prepared with the ant-task, both bcel and asm modes fail.Can this be done
and all and yes, then how?