<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-319</id>
	<title>Nabble - Commons - User</title>
	<updated>2009-11-10T19:04:06Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Commons---User-f319.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Commons---User-f319.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26295332</id>
	<title>[VFS] Re: How to create file with samba vfs?</title>
	<published>2009-11-10T19:04:06Z</published>
	<updated>2009-11-10T19:04:06Z</updated>
	<author>
		<name>Ralph Goers</name>
	</author>
	<content type="html">What version of VFS are you using? I would suggest you check out trunk and try that.
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Nov 10, 2009, at 4:17 PM, geek.shrek wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm trying to build some functions for samba, such as create file, delete, etc.
&lt;br&gt;&amp;gt; I can read a file from my samba, but when I tried to create or delete I keep having this error
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; org.apache.commons.vfs.FileSystemException: Could not create file &amp;quot;smb://MYDOMAIN;myusername:mypassword@sharefolder/Folder1/myfoldert/Test2/myfile.txt&amp;quot;.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at org.apache.commons.vfs.provider.AbstractFileObject.createFile(AbstractFileObject.java:797)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;gt; Caused by: org.apache.commons.vfs.FileSystemException: Could not determine the type of file &amp;quot;smb://MYDOMAIN;myusername:mypassword@sharefolder/Folder1/myfolder/Test2/myfile.txt&amp;quot;.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1305)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at org.apache.commons.vfs.provider.AbstractFileObject.getType(AbstractFileObject.java:412)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at org.apache.commons.vfs.provider.AbstractFileObject.exists(AbstractFileObject.java:402)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at org.apache.commons.vfs.provider.AbstractFileObject.createFile(AbstractFileObject.java:780)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;... 2 more
&lt;br&gt;&amp;gt; Caused by: jcifs.smb.SmbException: The system cannot find the file specified.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:542)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at jcifs.smb.SmbTransport.send(SmbTransport.java:644)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at jcifs.smb.SmbSession.send(SmbSession.java:224)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at jcifs.smb.SmbTree.send(SmbTree.java:111)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at jcifs.smb.SmbFile.send(SmbFile.java:770)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at jcifs.smb.SmbFile.open0(SmbFile.java:975)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at jcifs.smb.SmbFile.open(SmbFile.java:992)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at jcifs.smb.SmbFileInputStream.&amp;lt;init&amp;gt;(SmbFileInputStream.java:73)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at jcifs.smb.SmbFileInputStream.&amp;lt;init&amp;gt;(SmbFileInputStream.java:65)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at jcifs.smb.SmbFile.getInputStream(SmbFile.java:2826)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at org.apache.commons.vfs.provider.url.UrlFileObject.doGetType(UrlFileObject.java:89)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1296)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;... 5 more
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here is my code.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; FileSystemManager fsManager;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fsManager = VFS.getManager();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FileObject sourceFile = fsManager.resolveFile(&amp;quot;smb://MYDOMAIN;myusername:mypassword@sharefolder/Folder1/myfolder&amp;quot;,authenticate());
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FileObject f = sourceFile.resolveFile(&amp;quot;Test2/myfile.txt&amp;quot;); 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;f.createFile();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (FileSystemException e)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;e.printStackTrace();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Can someone please help me 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;__________________________________________________________________________________
&lt;br&gt;&amp;gt; Win 1 of 4 Sony home entertainment packs thanks to Yahoo!7.
&lt;br&gt;&amp;gt; Enter now: &lt;a href=&quot;http://au.docs.yahoo.com/homepageset/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://au.docs.yahoo.com/homepageset/&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26295332&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26295332&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-create-file-with-samba-vfs--tp26293875p26295332.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26293875</id>
	<title>How to create file with samba vfs?</title>
	<published>2009-11-10T16:17:19Z</published>
	<updated>2009-11-10T16:17:19Z</updated>
	<author>
		<name>geek.shrek</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm trying to build some functions for samba, such as create file, delete, etc.
&lt;br&gt;I can read a file from my samba, but when I tried to create or delete I keep having this error
&lt;br&gt;&lt;br&gt;&lt;br&gt;org.apache.commons.vfs.FileSystemException: Could not create file &amp;quot;smb://MYDOMAIN;myusername:mypassword@sharefolder/Folder1/myfoldert/Test2/myfile.txt&amp;quot;.
&lt;br&gt;&amp;nbsp; &amp;nbsp; at org.apache.commons.vfs.provider.AbstractFileObject.createFile(AbstractFileObject.java:797)
&lt;br&gt;&amp;nbsp; &amp;nbsp; ...
&lt;br&gt;Caused by: org.apache.commons.vfs.FileSystemException: Could not determine the type of file &amp;quot;smb://MYDOMAIN;myusername:mypassword@sharefolder/Folder1/myfolder/Test2/myfile.txt&amp;quot;.
&lt;br&gt;&amp;nbsp; &amp;nbsp; at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1305)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at org.apache.commons.vfs.provider.AbstractFileObject.getType(AbstractFileObject.java:412)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at org.apache.commons.vfs.provider.AbstractFileObject.exists(AbstractFileObject.java:402)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at org.apache.commons.vfs.provider.AbstractFileObject.createFile(AbstractFileObject.java:780)
&lt;br&gt;&amp;nbsp; &amp;nbsp; ... 2 more
&lt;br&gt;Caused by: jcifs.smb.SmbException: The system cannot find the file specified.
&lt;br&gt;&amp;nbsp; &amp;nbsp; at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:542)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at jcifs.smb.SmbTransport.send(SmbTransport.java:644)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at jcifs.smb.SmbSession.send(SmbSession.java:224)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at jcifs.smb.SmbTree.send(SmbTree.java:111)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at jcifs.smb.SmbFile.send(SmbFile.java:770)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at jcifs.smb.SmbFile.open0(SmbFile.java:975)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at jcifs.smb.SmbFile.open(SmbFile.java:992)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at jcifs.smb.SmbFileInputStream.&amp;lt;init&amp;gt;(SmbFileInputStream.java:73)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at jcifs.smb.SmbFileInputStream.&amp;lt;init&amp;gt;(SmbFileInputStream.java:65)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at jcifs.smb.SmbFile.getInputStream(SmbFile.java:2826)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at org.apache.commons.vfs.provider.url.UrlFileObject.doGetType(UrlFileObject.java:89)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1296)
&lt;br&gt;&amp;nbsp; &amp;nbsp; ... 5 more
&lt;br&gt;&lt;br&gt;&lt;br&gt;Here is my code.
&lt;br&gt;&lt;br&gt;FileSystemManager fsManager;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fsManager = VFS.getManager();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FileObject sourceFile = fsManager.resolveFile(&amp;quot;smb://MYDOMAIN;myusername:mypassword@sharefolder/Folder1/myfolder&amp;quot;,authenticate());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FileObject f = sourceFile.resolveFile(&amp;quot;Test2/myfile.txt&amp;quot;); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; f.createFile();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (FileSystemException e)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.printStackTrace();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;Can someone please help me 
&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; __________________________________________________________________________________
&lt;br&gt;Win 1 of 4 Sony home entertainment packs thanks to Yahoo!7.
&lt;br&gt;Enter now: &lt;a href=&quot;http://au.docs.yahoo.com/homepageset/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://au.docs.yahoo.com/homepageset/&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-create-file-with-samba-vfs--tp26293875p26293875.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26291478</id>
	<title>Re: java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Hex.encodeHexString([B)Ljava/lang/String;</title>
	<published>2009-11-10T13:25:15Z</published>
	<updated>2009-11-10T13:25:15Z</updated>
	<author>
		<name>jwcarman</name>
	</author>
	<content type="html">It's obviously a classpath issue. &amp;nbsp;Throw this code somewhere where it
&lt;br&gt;can be executed in your environment where you're having troubles:
&lt;br&gt;&lt;br&gt;final URL loc = Hex.class.getProtectionDomain().getCodeSource().getLocation();
&lt;br&gt;System.out.println(&amp;quot;Found jar file at &amp;quot; + loc);
&lt;br&gt;final JarFile jarFile = new JarFile(new File(loc.toURI()));
&lt;br&gt;System.out.println(&amp;quot;The version is &amp;quot; +
&lt;br&gt;jarFile.getManifest().getMainAttributes().getValue(&amp;quot;Specification-Version&amp;quot;));
&lt;br&gt;&lt;br&gt;On Tue, Nov 10, 2009 at 2:59 PM, Java Struts &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26291478&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;struts234@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Julis,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks a lot for the response. Here is the info. I am thinking it might be
&lt;br&gt;&amp;gt; the classpath issue. But i am not 100% sure.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, Nov 10, 2009 at 2:12 PM, Julius Davies &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26291478&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;juliusdavies@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Can you supply some version information?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Local machine
&lt;br&gt;&amp;gt;&amp;gt; -----------------------------
&lt;br&gt;&amp;gt;&amp;gt; OS Type and Version? *Windows Xp Pro*
&lt;br&gt;&amp;gt;&amp;gt; Java Version? *1.5*
&lt;br&gt;&amp;gt;&amp;gt; Websphere version? *6.0*
&lt;br&gt;&amp;gt;&amp;gt; Commons-Codec version? *1.4*
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Dev machine
&lt;br&gt;&amp;gt;&amp;gt; -----------------------------
&lt;br&gt;&amp;gt;&amp;gt; OS Type and Version?   Linux. *HP-UX,  B.11.11 *
&lt;br&gt;&amp;gt;&amp;gt; Java Version? :1.5
&lt;br&gt;&amp;gt;&amp;gt; Websphere version? 6.0
&lt;br&gt;&amp;gt;&amp;gt; Commons-Codec version? 1.4
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Also, can you find out if any different versions of commons-codec are
&lt;br&gt;&amp;gt;&amp;gt; also present on the dev machine?  Perhaps several versions of the jar
&lt;br&gt;&amp;gt;&amp;gt; file are sitting around, and Websphere is picking up an old one?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; yours,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Julius
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Tue, Nov 10, 2009 at 10:13 AM, Java Struts &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26291478&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;struts234@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Hi Folks,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; I am using Apache Commons Codec, to convert the encrypted bytes into a
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; HexString to pass through the URL. So when i am using it in local machine
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; which is working fine. when the same into Dev(Linux websphere) it's not
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; working and it's throwing the following exception.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; *java.lang.NoSuchMethodError:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; org.apache.commons.codec.binary.Hex.encodeHexString([B)Ljava/lang/String;*
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Here is the code i am using for it.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; *public static String encryptString(SecretKey key, String input) throws
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException {
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;        logger.error(&amp;quot; Input String to Encrypt: &amp;quot; + input );
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;        Cipher cipher = Cipher.getInstance(&amp;quot;DESede&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;        cipher.init(Cipher.ENCRYPT_MODE, key);
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;        //byte[] inputBytes = input.getBytes();
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;        String encryptedString =&amp;quot;&amp;quot;;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;        byte[] inputBytes;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;        try {
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;            logger.error(&amp;quot; Inside Try block of Encrypted String Method&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;            inputBytes = input.getBytes(&amp;quot;UTF-8&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;            byte[] encryptedBytes= cipher.doFinal(inputBytes);
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;            logger.error(&amp;quot; got encrypted bytes&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;            encryptedString= Hex.encodeHexString(encryptedBytes);
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;            logger.error(&amp;quot; Encrypted String : &amp;quot; +encryptedString);
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;            }
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;        catch (UnsupportedEncodingException e) {
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;    // TODO Auto-generated catch block
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;            logger.error(&amp;quot;Inside Unsupported Catch Block &amp;quot; +
&lt;br&gt;&amp;gt;&amp;gt; e.getMessage()
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; + &amp;quot; : &amp;quot;+  e );
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;            e.printStackTrace();
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;        }
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;        catch (Throwable e) {
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;            // TODO Auto-generated catch block
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;            logger.error(&amp;quot;Inside Exception Catch Block &amp;quot; + e.getMessage()
&lt;br&gt;&amp;gt;&amp;gt; +
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;quot; : &amp;quot; +e );
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;            e.printStackTrace();
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;                }
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;        return encryptedString;*
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Could you please help me guys, I am just wondering why this is throwing
&lt;br&gt;&amp;gt;&amp;gt; in
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Dev. It's throwing the exceptions at the below line.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;  *encryptedString= Hex.encodeHexString(encryptedBytes);
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; *
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; and catching at here
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; *catch (Throwable e) {
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;            // TODO Auto-generated catch block
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;            logger.error(&amp;quot;Inside Exception Catch Block &amp;quot; + e.getMessage()
&lt;br&gt;&amp;gt;&amp;gt; +
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;quot; : &amp;quot; +e );
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;            e.printStackTrace();
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;                }
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; *any idea what's going on here?* *I would appreciate for your help.*
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; *Thanks,*
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; *
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; yours,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Julius Davies
&lt;br&gt;&amp;gt;&amp;gt; 250-592-2284 (Home)
&lt;br&gt;&amp;gt;&amp;gt; 250-893-4579 (Mobile)
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://juliusdavies.ca/logging.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://juliusdavies.ca/logging.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26291478&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26291478&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26291478&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26291478&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/java.lang.NoSuchMethodError%3A-org.apache.commons.codec.binary.Hex.encodeHexString%28-B%29Ljava-lang-String--tp26288544p26291478.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26290228</id>
	<title>Re: java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Hex.encodeHexString([B)Ljava/lang/String;</title>
	<published>2009-11-10T11:59:24Z</published>
	<updated>2009-11-10T11:59:24Z</updated>
	<author>
		<name>Struts234</name>
	</author>
	<content type="html">Hi Julis,
&lt;br&gt;&lt;br&gt;Thanks a lot for the response. Here is the info. I am thinking it might be
&lt;br&gt;the classpath issue. But i am not 100% sure.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Tue, Nov 10, 2009 at 2:12 PM, Julius Davies &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26290228&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;juliusdavies@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Can you supply some version information?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Local machine
&lt;br&gt;&amp;gt; -----------------------------
&lt;br&gt;&amp;gt; OS Type and Version? *Windows Xp Pro*
&lt;br&gt;&amp;gt; Java Version? *1.5*
&lt;br&gt;&amp;gt; Websphere version? *6.0*
&lt;br&gt;&amp;gt; Commons-Codec version? *1.4*
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Dev machine
&lt;br&gt;&amp;gt; -----------------------------
&lt;br&gt;&amp;gt; OS Type and Version? &amp;nbsp; Linux. *HP-UX, &amp;nbsp;B.11.11 *
&lt;br&gt;&amp;gt; Java Version? :1.5
&lt;br&gt;&amp;gt; Websphere version? 6.0
&lt;br&gt;&amp;gt; Commons-Codec version? 1.4
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Also, can you find out if any different versions of commons-codec are
&lt;br&gt;&amp;gt; also present on the dev machine? &amp;nbsp;Perhaps several versions of the jar
&lt;br&gt;&amp;gt; file are sitting around, and Websphere is picking up an old one?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; yours,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Julius
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, Nov 10, 2009 at 10:13 AM, Java Struts &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26290228&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;struts234@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hi Folks,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I am using Apache Commons Codec, to convert the encrypted bytes into a
&lt;br&gt;&amp;gt; &amp;gt; HexString to pass through the URL. So when i am using it in local machine
&lt;br&gt;&amp;gt; &amp;gt; which is working fine. when the same into Dev(Linux websphere) it's not
&lt;br&gt;&amp;gt; &amp;gt; working and it's throwing the following exception.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; *java.lang.NoSuchMethodError:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.commons.codec.binary.Hex.encodeHexString([B)Ljava/lang/String;*
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Here is the code i am using for it.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; *public static String encryptString(SecretKey key, String input) throws
&lt;br&gt;&amp;gt; &amp;gt; NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;logger.error(&amp;quot; Input String to Encrypt: &amp;quot; + input );
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Cipher cipher = Cipher.getInstance(&amp;quot;DESede&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cipher.init(Cipher.ENCRYPT_MODE, key);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//byte[] inputBytes = input.getBytes();
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String encryptedString =&amp;quot;&amp;quot;;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] inputBytes;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;logger.error(&amp;quot; Inside Try block of Encrypted String Method&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;inputBytes = input.getBytes(&amp;quot;UTF-8&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] encryptedBytes= cipher.doFinal(inputBytes);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;logger.error(&amp;quot; got encrypted bytes&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;encryptedString= Hex.encodeHexString(encryptedBytes);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;logger.error(&amp;quot; Encrypted String : &amp;quot; +encryptedString);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (UnsupportedEncodingException e) {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;// TODO Auto-generated catch block
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;logger.error(&amp;quot;Inside Unsupported Catch Block &amp;quot; +
&lt;br&gt;&amp;gt; e.getMessage()
&lt;br&gt;&amp;gt; &amp;gt; + &amp;quot; : &amp;quot;+ &amp;nbsp;e );
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;e.printStackTrace();
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (Throwable e) {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// TODO Auto-generated catch block
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;logger.error(&amp;quot;Inside Exception Catch Block &amp;quot; + e.getMessage()
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot; : &amp;quot; +e );
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;e.printStackTrace();
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return encryptedString;*
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Could you please help me guys, I am just wondering why this is throwing
&lt;br&gt;&amp;gt; in
&lt;br&gt;&amp;gt; &amp;gt; Dev. It's throwing the exceptions at the below line.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;*encryptedString= Hex.encodeHexString(encryptedBytes);
&lt;br&gt;&amp;gt; &amp;gt; *
&lt;br&gt;&amp;gt; &amp;gt; and catching at here
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; *catch (Throwable e) {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// TODO Auto-generated catch block
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;logger.error(&amp;quot;Inside Exception Catch Block &amp;quot; + e.getMessage()
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot; : &amp;quot; +e );
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;e.printStackTrace();
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; *any idea what's going on here?* *I would appreciate for your help.*
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; *Thanks,*
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; *
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; yours,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Julius Davies
&lt;br&gt;&amp;gt; 250-592-2284 (Home)
&lt;br&gt;&amp;gt; 250-893-4579 (Mobile)
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://juliusdavies.ca/logging.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://juliusdavies.ca/logging.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26290228&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26290228&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/java.lang.NoSuchMethodError%3A-org.apache.commons.codec.binary.Hex.encodeHexString%28-B%29Ljava-lang-String--tp26288544p26290228.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26289539</id>
	<title>Re: java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Hex.encodeHexString([B)Ljava/lang/String;</title>
	<published>2009-11-10T11:12:09Z</published>
	<updated>2009-11-10T11:12:09Z</updated>
	<author>
		<name>juliusdavies</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Can you supply some version information?
&lt;br&gt;&lt;br&gt;Local machine
&lt;br&gt;-----------------------------
&lt;br&gt;OS Type and Version?
&lt;br&gt;Java Version?
&lt;br&gt;Websphere version?
&lt;br&gt;Commons-Codec version?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Dev machine
&lt;br&gt;-----------------------------
&lt;br&gt;OS Type and Version? &amp;nbsp; Linux.
&lt;br&gt;Java Version?
&lt;br&gt;Websphere version?
&lt;br&gt;Commons-Codec version?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Also, can you find out if any different versions of commons-codec are
&lt;br&gt;also present on the dev machine? &amp;nbsp;Perhaps several versions of the jar
&lt;br&gt;file are sitting around, and Websphere is picking up an old one?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;yours,
&lt;br&gt;&lt;br&gt;Julius
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Tue, Nov 10, 2009 at 10:13 AM, Java Struts &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26289539&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;struts234@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Folks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am using Apache Commons Codec, to convert the encrypted bytes into a
&lt;br&gt;&amp;gt; HexString to pass through the URL. So when i am using it in local machine
&lt;br&gt;&amp;gt; which is working fine. when the same into Dev(Linux websphere) it's not
&lt;br&gt;&amp;gt; working and it's throwing the following exception.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; *java.lang.NoSuchMethodError:
&lt;br&gt;&amp;gt; org.apache.commons.codec.binary.Hex.encodeHexString([B)Ljava/lang/String;*
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here is the code i am using for it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; *public static String encryptString(SecretKey key, String input) throws
&lt;br&gt;&amp;gt; NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException {
&lt;br&gt;&amp;gt;        logger.error(&amp;quot; Input String to Encrypt: &amp;quot; + input );
&lt;br&gt;&amp;gt;        Cipher cipher = Cipher.getInstance(&amp;quot;DESede&amp;quot;);
&lt;br&gt;&amp;gt;        cipher.init(Cipher.ENCRYPT_MODE, key);
&lt;br&gt;&amp;gt;        //byte[] inputBytes = input.getBytes();
&lt;br&gt;&amp;gt;        String encryptedString =&amp;quot;&amp;quot;;
&lt;br&gt;&amp;gt;        byte[] inputBytes;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;        try {
&lt;br&gt;&amp;gt;            logger.error(&amp;quot; Inside Try block of Encrypted String Method&amp;quot;);
&lt;br&gt;&amp;gt;            inputBytes = input.getBytes(&amp;quot;UTF-8&amp;quot;);
&lt;br&gt;&amp;gt;            byte[] encryptedBytes= cipher.doFinal(inputBytes);
&lt;br&gt;&amp;gt;            logger.error(&amp;quot; got encrypted bytes&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;            encryptedString= Hex.encodeHexString(encryptedBytes);
&lt;br&gt;&amp;gt;            logger.error(&amp;quot; Encrypted String : &amp;quot; +encryptedString);
&lt;br&gt;&amp;gt;            }
&lt;br&gt;&amp;gt;        catch (UnsupportedEncodingException e) {
&lt;br&gt;&amp;gt;    // TODO Auto-generated catch block
&lt;br&gt;&amp;gt;            logger.error(&amp;quot;Inside Unsupported Catch Block &amp;quot; + e.getMessage()
&lt;br&gt;&amp;gt; + &amp;quot; : &amp;quot;+  e );
&lt;br&gt;&amp;gt;            e.printStackTrace();
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;        }
&lt;br&gt;&amp;gt;        catch (Throwable e) {
&lt;br&gt;&amp;gt;            // TODO Auto-generated catch block
&lt;br&gt;&amp;gt;            logger.error(&amp;quot;Inside Exception Catch Block &amp;quot; + e.getMessage() +
&lt;br&gt;&amp;gt; &amp;quot; : &amp;quot; +e );
&lt;br&gt;&amp;gt;            e.printStackTrace();
&lt;br&gt;&amp;gt;                }
&lt;br&gt;&amp;gt;        return encryptedString;*
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Could you please help me guys, I am just wondering why this is throwing in
&lt;br&gt;&amp;gt; Dev. It's throwing the exceptions at the below line.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  *encryptedString= Hex.encodeHexString(encryptedBytes);
&lt;br&gt;&amp;gt; *
&lt;br&gt;&amp;gt; and catching at here
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; *catch (Throwable e) {
&lt;br&gt;&amp;gt;            // TODO Auto-generated catch block
&lt;br&gt;&amp;gt;            logger.error(&amp;quot;Inside Exception Catch Block &amp;quot; + e.getMessage() +
&lt;br&gt;&amp;gt; &amp;quot; : &amp;quot; +e );
&lt;br&gt;&amp;gt;            e.printStackTrace();
&lt;br&gt;&amp;gt;                }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; *any idea what's going on here?* *I would appreciate for your help.*
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; *Thanks,*
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; *
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;yours,
&lt;br&gt;&lt;br&gt;Julius Davies
&lt;br&gt;250-592-2284 (Home)
&lt;br&gt;250-893-4579 (Mobile)
&lt;br&gt;&lt;a href=&quot;http://juliusdavies.ca/logging.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://juliusdavies.ca/logging.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26289539&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26289539&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/java.lang.NoSuchMethodError%3A-org.apache.commons.codec.binary.Hex.encodeHexString%28-B%29Ljava-lang-String--tp26288544p26289539.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26288544</id>
	<title>java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Hex.encodeHexString([B)Ljava/lang/String;</title>
	<published>2009-11-10T10:13:42Z</published>
	<updated>2009-11-10T10:13:42Z</updated>
	<author>
		<name>Struts234</name>
	</author>
	<content type="html">Hi Folks,
&lt;br&gt;&lt;br&gt;I am using Apache Commons Codec, to convert the encrypted bytes into a
&lt;br&gt;HexString to pass through the URL. So when i am using it in local machine
&lt;br&gt;which is working fine. when the same into Dev(Linux websphere) it's not
&lt;br&gt;working and it's throwing the following exception.
&lt;br&gt;&lt;br&gt;*java.lang.NoSuchMethodError:
&lt;br&gt;org.apache.commons.codec.binary.Hex.encodeHexString([B)Ljava/lang/String;*
&lt;br&gt;&lt;br&gt;Here is the code i am using for it.
&lt;br&gt;&lt;br&gt;*public static String encryptString(SecretKey key, String input) throws
&lt;br&gt;NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; logger.error(&amp;quot; Input String to Encrypt: &amp;quot; + input );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Cipher cipher = Cipher.getInstance(&amp;quot;DESede&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cipher.init(Cipher.ENCRYPT_MODE, key);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //byte[] inputBytes = input.getBytes();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String encryptedString =&amp;quot;&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; byte[] inputBytes;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; logger.error(&amp;quot; Inside Try block of Encrypted String Method&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inputBytes = input.getBytes(&amp;quot;UTF-8&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; byte[] encryptedBytes= cipher.doFinal(inputBytes);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; logger.error(&amp;quot; got encrypted bytes&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; encryptedString= Hex.encodeHexString(encryptedBytes);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; logger.error(&amp;quot; Encrypted String : &amp;quot; +encryptedString);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (UnsupportedEncodingException e) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; // TODO Auto-generated catch block
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; logger.error(&amp;quot;Inside Unsupported Catch Block &amp;quot; + e.getMessage()
&lt;br&gt;+ &amp;quot; : &amp;quot;+ &amp;nbsp;e );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.printStackTrace();
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (Throwable e) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // TODO Auto-generated catch block
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; logger.error(&amp;quot;Inside Exception Catch Block &amp;quot; + e.getMessage() +
&lt;br&gt;&amp;quot; : &amp;quot; +e );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.printStackTrace();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return encryptedString;*
&lt;br&gt;&lt;br&gt;&lt;br&gt;Could you please help me guys, I am just wondering why this is throwing in
&lt;br&gt;Dev. It's throwing the exceptions at the below line.
&lt;br&gt;&lt;br&gt;&amp;nbsp; *encryptedString= Hex.encodeHexString(encryptedBytes);
&lt;br&gt;*
&lt;br&gt;and catching at here
&lt;br&gt;&lt;br&gt;*catch (Throwable e) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // TODO Auto-generated catch block
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; logger.error(&amp;quot;Inside Exception Catch Block &amp;quot; + e.getMessage() +
&lt;br&gt;&amp;quot; : &amp;quot; +e );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.printStackTrace();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;*any idea what's going on here?* *I would appreciate for your help.*
&lt;br&gt;&lt;br&gt;*Thanks,*
&lt;br&gt;&lt;br&gt;&lt;br&gt;*
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/java.lang.NoSuchMethodError%3A-org.apache.commons.codec.binary.Hex.encodeHexString%28-B%29Ljava-lang-String--tp26288544p26288544.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26256231</id>
	<title>Re: [LANG] 2.4: ExceptionUtils.getFullStackTrace()</title>
	<published>2009-11-08T10:07:44Z</published>
	<updated>2009-11-08T10:07:44Z</updated>
	<author>
		<name>Henri Yandell</name>
	</author>
	<content type="html">I think if the full stack trace isn't being shown, then it's a bug. I
&lt;br&gt;think the bug is in the first nested exception though - it should be
&lt;br&gt;printing the rest of the stack trace and it sounds like it isn't in
&lt;br&gt;your situation.
&lt;br&gt;&lt;br&gt;Which matches my experience with the ServletException (and I guess
&lt;br&gt;JasperException) in Tomcat. They don't print the rest of their stack
&lt;br&gt;trace, making debugging very hard.
&lt;br&gt;&lt;br&gt;Hen
&lt;br&gt;&lt;br&gt;On Fri, Nov 6, 2009 at 11:26 AM, Charles Deal &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256231&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chuckdeal97@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; If the code is trying to protect against cycles, maybe it should try a
&lt;br&gt;&amp;gt; different approach.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In my specific case, I have a JasperException thrown by Tomcat 5.5.17.  It
&lt;br&gt;&amp;gt; contains a NPE as the rootCause.  When I simply printStackTrace() (via slf4j
&lt;br&gt;&amp;gt; logger) I only get the JasperException stackTrace.  When I used the
&lt;br&gt;&amp;gt; getFullStackTrace() method, I still only got the JasperException trace.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I suppose it is a good idea to prevent cyclic stacktraces and too many
&lt;br&gt;&amp;gt; exceptions being rendered, but I think at least ONE of the nested exceptions
&lt;br&gt;&amp;gt; should be printed.  Ultimately, though, the developer asked for the
&lt;br&gt;&amp;gt; fullstacktrace, so I'm not so sure that the total number of exceptions being
&lt;br&gt;&amp;gt; printed is a concern.  Cyclic exceptions, however, would be problematic and
&lt;br&gt;&amp;gt; while I agree that this code prevents the cycles, it also prevents it from
&lt;br&gt;&amp;gt; displaying any nested exceptions (at least in the cause of the Tomcat
&lt;br&gt;&amp;gt; JasperException).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm ok using the modified version of the method, but before I wrote JIRA on
&lt;br&gt;&amp;gt; the issue, I figured I'd better see if it is truly an issue.  It seems to be
&lt;br&gt;&amp;gt; a misleading method name at the very least.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, Nov 5, 2009 at 12:57 PM, Paul Benedict &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256231&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pbenedict@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Exception traces can also be cyclic. An exception may set itself as
&lt;br&gt;&amp;gt;&amp;gt; the root cause, or A -&amp;gt; B -&amp;gt; A.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Thu, Nov 5, 2009 at 11:21 AM, Henri Yandell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256231&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;flamefew@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; I think the issue is that if you print the nested exception and keep
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; going, you'll get a lot of duplicates as the nested exception will
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; print all its children, then you'll go ahead and loop into the child.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Looking at the source to getThrowableList - it seems to me that the
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; throwable list is top down (ie: exception received and then into its
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; causes and its causes causes etc) so much like your comment on
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; reverse.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; On Wed, Nov 4, 2009 at 2:08 PM, Charles Deal &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256231&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chuckdeal97@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; The getFullStackTrace() method javadoc states &amp;quot;A way to get the entire
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; nested stack-trace of an throwable....&amp;quot;.  However, after gathering the
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; nested Throwables, it performs a check while processing the array of
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Throwables that causes it to abort before it renders the nested
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; stacktraces.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; My question is: Should the if check be there?  Why go through the
&lt;br&gt;&amp;gt;&amp;gt; trouble of
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; getting the nested Throwables if you are going to short-circuit the
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; rendering loop?  I suppose it is possible that the intent was to iterate
&lt;br&gt;&amp;gt;&amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; list in REVERSE and stop the rendering when you hit the Throwable that
&lt;br&gt;&amp;gt;&amp;gt; had a
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; root Cause.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Any thoughts?  I ended up capturing the getFullStackTrace method and
&lt;br&gt;&amp;gt;&amp;gt; removed
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; the if check within the loop and got exactly what I was looking for.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256231&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256231&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256231&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256231&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256231&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256231&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-LANG--2.4%3A-ExceptionUtils.getFullStackTrace%28%29-tp26205518p26256231.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26246290</id>
	<title>OutOfMemoryError when using FileUpload's DiskFileItem</title>
	<published>2009-11-07T08:24:09Z</published>
	<updated>2009-11-07T08:24:09Z</updated>
	<author>
		<name>rrc7cz</name>
	</author>
	<content type="html">I am getting OutOfMemoryErrors when uploading large (&amp;gt;300MB) files to
&lt;br&gt;a servlet utilizing Commons FileUpload 1.2.1. It seems odd, because
&lt;br&gt;the entire point of using DiskFileItem is to prevent the (possibly
&lt;br&gt;large) file from residing in memory. I am using the default size
&lt;br&gt;threshold of 10KB, so that's all that should ever be loaded into the
&lt;br&gt;heap, right? Here is the partial stack trace:
&lt;br&gt;&lt;br&gt;java.lang.OutOfMemoryError
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.io.FileInputStream.readBytes(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.io.FileInputStream.read(FileInputStream.java:177)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.commons.fileupload.disk.DiskFileItem.get(DiskFileItem.java:334)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.springframework.web.multipart.commons.CommonsMultipartFile.getBytes(CommonsMultipartFile.java:114)
&lt;br&gt;&lt;br&gt;Is there some configuration I'm missing? Any tips/tricks to avoid this
&lt;br&gt;situation?
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26246290&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26246290&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/OutOfMemoryError-when-using-FileUpload%27s-DiskFileItem-tp26246290p26246290.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26237639</id>
	<title>[ANNOUNCEMENT] Apache Commons Email 1.2 Released</title>
	<published>2009-11-06T11:43:57Z</published>
	<updated>2009-11-06T11:43:57Z</updated>
	<author>
		<name>Siegfried Goeschl</name>
	</author>
	<content type="html">The commons-email-team is pleased to announce the commons-email-1.2.jar
&lt;br&gt;release!
&lt;br&gt;&lt;br&gt;Commons-Email aims to provide an API for sending email. It is built on
&lt;br&gt;top of
&lt;br&gt;the JavaMail API, which it aims to simplify.
&lt;br&gt;&lt;br&gt;Changes in this version include:
&lt;br&gt;&lt;br&gt;New features:
&lt;br&gt;o Email.setFrom and Email.addTo are using Email.charset to properly
&lt;br&gt;encode the name. &amp;nbsp;Issue: EMAIL-75. Thanks to Yu Kobayashi.
&lt;br&gt;o SimpleEmail#setMsg() with UTF-8 content honors correct charset in
&lt;br&gt;header and
&lt;br&gt;does encode the content correctly now. &amp;nbsp;Issue: EMAIL-79. Thanks to Edvin
&lt;br&gt;Syse, Corey Scott.
&lt;br&gt;o Created additional methods to support timeouts. &amp;nbsp;Issue: EMAIL-84.
&lt;br&gt;Thanks to Claudio Miranda.
&lt;br&gt;o Create an overridable method in Email.java to create the MimeMessage
&lt;br&gt;instance. &amp;nbsp;Issue: EMAIL-74. Thanks to Jim McCabe, Corey Scott.
&lt;br&gt;o Add getTo and getReplyTo to Email class. &amp;nbsp;Issue: EMAIL-81. Thanks to
&lt;br&gt;Travis Reader, Corey Scott.
&lt;br&gt;&lt;br&gt;Fixed Bugs:
&lt;br&gt;o Using &amp;quot;&lt;a href=&quot;http://example.invalid&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://example.invalid&lt;/a&gt;&amp;quot; for a bad url - &amp;quot;.invalid&amp;quot; is reserved
&lt;br&gt;and not intended to be installed as a top-level domain in the global
&lt;br&gt;Domain Name System (DNS) of the Internet. Thanks to sebb.
&lt;br&gt;o Made BaseEmailTestCase abstract and fixed a few coding issues. Thanks
&lt;br&gt;to sebb.
&lt;br&gt;o HtmlEmail invokes java.net.URL.equals(Object), which blocks to do
&lt;br&gt;domain name resolution. This
&lt;br&gt;is avoided by using &amp;quot;url.toExternalForm().equals()&amp;quot; instead of
&lt;br&gt;&amp;quot;url.equals()&amp;quot;. &amp;nbsp;Issue: EMAIL-87. Thanks to sebb.
&lt;br&gt;o If setHostName() has not been called, getHostName() tries to return
&lt;br&gt;this.session.getProperty(MAIL_HOST). If mail session has not been
&lt;br&gt;created yet, this will throw a NullPointerException. Now getHostName()
&lt;br&gt;checks that this.session is not null before trying to access it. &amp;nbsp;Issue:
&lt;br&gt;EMAIL-71. Thanks to Teemu Lang, Corey Scott.
&lt;br&gt;o Provide better diagnostics when attaching &amp;nbsp;documents fail. &amp;nbsp;Issue:
&lt;br&gt;EMAIL-78. Thanks to Aaron Digulla, Corey Scott.
&lt;br&gt;o When mail authentication is required and no username/password is supplied
&lt;br&gt;than the provided mail session is used. If a username/password is found
&lt;br&gt;the implementation creates a new mail session and a DefaultAuthenticator
&lt;br&gt;as convinence implementation. &amp;nbsp;Issue: EMAIL-70. Thanks to F. Andy Seidl.
&lt;br&gt;o Using Kenneth's implementation of HtmlEmail.buildMimeMessage() to fix a
&lt;br&gt;couple of HtmlEmail layout issues. Also thanks to Martin Lau and Morten
&lt;br&gt;Hattesen for providing in-depth analysis of the problem &amp;nbsp;Issue:
&lt;br&gt;EMAIL-65. Thanks to Kenneth Gendron.
&lt;br&gt;o During regression tests write out the generated MimeMessage instead of
&lt;br&gt;WiserEmail.toString().
&lt;br&gt;&lt;br&gt;Changes:
&lt;br&gt;o Changing groupId from &amp;quot;commons-email&amp;quot; to &amp;quot;org.apache.commons&amp;quot;
&lt;br&gt;because the 1.1 release was already using &amp;quot;org.apache.commons&amp;quot;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Have fun!
&lt;br&gt;-commons-email-team
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237639&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237639&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-ANNOUNCEMENT--Apache-Commons-Email-1.2-Released-tp26237639p26237639.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26237416</id>
	<title>Re: [LANG] 2.4: ExceptionUtils.getFullStackTrace()</title>
	<published>2009-11-06T11:26:22Z</published>
	<updated>2009-11-06T11:26:22Z</updated>
	<author>
		<name>Charles Deal</name>
	</author>
	<content type="html">If the code is trying to protect against cycles, maybe it should try a
&lt;br&gt;different approach.
&lt;br&gt;&lt;br&gt;In my specific case, I have a JasperException thrown by Tomcat 5.5.17. &amp;nbsp;It
&lt;br&gt;contains a NPE as the rootCause. &amp;nbsp;When I simply printStackTrace() (via slf4j
&lt;br&gt;logger) I only get the JasperException stackTrace. &amp;nbsp;When I used the
&lt;br&gt;getFullStackTrace() method, I still only got the JasperException trace.
&lt;br&gt;&lt;br&gt;I suppose it is a good idea to prevent cyclic stacktraces and too many
&lt;br&gt;exceptions being rendered, but I think at least ONE of the nested exceptions
&lt;br&gt;should be printed. &amp;nbsp;Ultimately, though, the developer asked for the
&lt;br&gt;fullstacktrace, so I'm not so sure that the total number of exceptions being
&lt;br&gt;printed is a concern. &amp;nbsp;Cyclic exceptions, however, would be problematic and
&lt;br&gt;while I agree that this code prevents the cycles, it also prevents it from
&lt;br&gt;displaying any nested exceptions (at least in the cause of the Tomcat
&lt;br&gt;JasperException).
&lt;br&gt;&lt;br&gt;I'm ok using the modified version of the method, but before I wrote JIRA on
&lt;br&gt;the issue, I figured I'd better see if it is truly an issue. &amp;nbsp;It seems to be
&lt;br&gt;a misleading method name at the very least.
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, Nov 5, 2009 at 12:57 PM, Paul Benedict &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237416&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pbenedict@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Exception traces can also be cyclic. An exception may set itself as
&lt;br&gt;&amp;gt; the root cause, or A -&amp;gt; B -&amp;gt; A.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, Nov 5, 2009 at 11:21 AM, Henri Yandell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237416&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;flamefew@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; I think the issue is that if you print the nested exception and keep
&lt;br&gt;&amp;gt; &amp;gt; going, you'll get a lot of duplicates as the nested exception will
&lt;br&gt;&amp;gt; &amp;gt; print all its children, then you'll go ahead and loop into the child.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Looking at the source to getThrowableList - it seems to me that the
&lt;br&gt;&amp;gt; &amp;gt; throwable list is top down (ie: exception received and then into its
&lt;br&gt;&amp;gt; &amp;gt; causes and its causes causes etc) so much like your comment on
&lt;br&gt;&amp;gt; &amp;gt; reverse.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Wed, Nov 4, 2009 at 2:08 PM, Charles Deal &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237416&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chuckdeal97@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; The getFullStackTrace() method javadoc states &amp;quot;A way to get the entire
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; nested stack-trace of an throwable....&amp;quot;. &amp;nbsp;However, after gathering the
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; nested Throwables, it performs a check while processing the array of
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Throwables that causes it to abort before it renders the nested
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; stacktraces.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; My question is: Should the if check be there? &amp;nbsp;Why go through the
&lt;br&gt;&amp;gt; trouble of
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; getting the nested Throwables if you are going to short-circuit the
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; rendering loop? &amp;nbsp;I suppose it is possible that the intent was to iterate
&lt;br&gt;&amp;gt; the
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; list in REVERSE and stop the rendering when you hit the Throwable that
&lt;br&gt;&amp;gt; had a
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; root Cause.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Any thoughts? &amp;nbsp;I ended up capturing the getFullStackTrace method and
&lt;br&gt;&amp;gt; removed
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; the if check within the loop and got exactly what I was looking for.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237416&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237416&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237416&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237416&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-LANG--2.4%3A-ExceptionUtils.getFullStackTrace%28%29-tp26205518p26237416.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26236888</id>
	<title>Re: File upload: not identified content type.</title>
	<published>2009-11-06T10:50:21Z</published>
	<updated>2009-11-06T10:50:21Z</updated>
	<author>
		<name>vijay shanker-2</name>
	</author>
	<content type="html">Thanks guys;
&lt;br&gt;&lt;br&gt;I am using spring-mvc for my web application. So have been looking in to the
&lt;br&gt;spring lib to get some thing relevant. But sorry to say; I have got no
&lt;br&gt;results.
&lt;br&gt;&lt;br&gt;I think finding with file extension will do and will save me every time.
&lt;br&gt;&lt;br&gt;May be spring lib has some thing to support me; any body can point!
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Vijay Shanker Dubey
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Fri, Nov 6, 2009 at 11:00 AM, Raghuveer.V &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236888&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;raghuveerv@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Please validate on client side if file is uploaded and in serverside side
&lt;br&gt;&amp;gt; check for extension of file before checking application/octet-stream
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; if(file!=null){
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strFileName = file.getFileName();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stContentType = file.getContentType();
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;}
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; if ( strFileName != null &amp;&amp; !strFileName.trim().equalsIgnoreCase(&amp;quot;&amp;quot;)) {
&lt;br&gt;&amp;gt; //if
&lt;br&gt;&amp;gt; filename not null
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; strExtension=strFileName.substring(strFileName.lastIndexOf(&amp;quot;.&amp;quot;)+1);
&lt;br&gt;&amp;gt; strExtension=strExtension.toUpperCase();
&lt;br&gt;&amp;gt; if(&amp;quot;application/octet-stream&amp;quot;.equalsIgnoreCase(stContentType)
&lt;br&gt;&amp;gt; &amp;nbsp;){
&lt;br&gt;&amp;gt; /////process///
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Raghuveer
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: vijay shanker [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236888&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vijay.shad@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Wednesday, November 04, 2009 10:56 PM
&lt;br&gt;&amp;gt; To: user
&lt;br&gt;&amp;gt; Subject: File upload: not identified content type.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hello friends;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am using commons file upload library to upload files. I have been
&lt;br&gt;&amp;gt; noticing
&lt;br&gt;&amp;gt; some time my library does not get file content type correct. For such a
&lt;br&gt;&amp;gt; file
&lt;br&gt;&amp;gt; it saves *application*/*octet*-*stream. *
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Can any body describe how it does happens?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If some of you have known for such a situation. Please share the
&lt;br&gt;&amp;gt; information.
&lt;br&gt;&amp;gt; **
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Vijay Shanker Dubey
&lt;br&gt;&amp;gt; Ph: +91-9818311884
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236888&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236888&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/File-upload%3A-not-identified-content-type.-tp26200790p26236888.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26227175</id>
	<title>RE: File upload: not identified content type.</title>
	<published>2009-11-05T21:30:41Z</published>
	<updated>2009-11-05T21:30:41Z</updated>
	<author>
		<name>raghuveerv</name>
	</author>
	<content type="html">Please validate on client side if file is uploaded and in serverside side
&lt;br&gt;check for extension of file before checking application/octet-stream
&lt;br&gt;&lt;br&gt;&lt;br&gt;if(file!=null){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; strFileName = file.getFileName();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stContentType = file.getContentType();
&lt;br&gt;&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&lt;br&gt;if ( strFileName != null &amp;&amp; !strFileName.trim().equalsIgnoreCase(&amp;quot;&amp;quot;)) { //if
&lt;br&gt;filename not null
&lt;br&gt;&amp;nbsp;
&lt;br&gt;strExtension=strFileName.substring(strFileName.lastIndexOf(&amp;quot;.&amp;quot;)+1);
&lt;br&gt;strExtension=strExtension.toUpperCase();
&lt;br&gt;if(&amp;quot;application/octet-stream&amp;quot;.equalsIgnoreCase(stContentType)
&lt;br&gt;&amp;nbsp; ){
&lt;br&gt;/////process///
&lt;br&gt;}
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Raghuveer
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: vijay shanker [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26227175&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vijay.shad@...&lt;/a&gt;] 
&lt;br&gt;Sent: Wednesday, November 04, 2009 10:56 PM
&lt;br&gt;To: user
&lt;br&gt;Subject: File upload: not identified content type.
&lt;br&gt;&lt;br&gt;Hello friends;
&lt;br&gt;&lt;br&gt;I am using commons file upload library to upload files. I have been noticing
&lt;br&gt;some time my library does not get file content type correct. For such a file
&lt;br&gt;it saves *application*/*octet*-*stream. *
&lt;br&gt;&lt;br&gt;Can any body describe how it does happens?
&lt;br&gt;&lt;br&gt;If some of you have known for such a situation. Please share the
&lt;br&gt;information.
&lt;br&gt;**
&lt;br&gt;Regards,
&lt;br&gt;Vijay Shanker Dubey
&lt;br&gt;Ph: +91-9818311884
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26227175&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26227175&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/File-upload%3A-not-identified-content-type.-tp26200790p26227175.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26219909</id>
	<title>Re: [lang] collapsing unicode white space</title>
	<published>2009-11-05T10:28:13Z</published>
	<updated>2009-11-05T10:28:13Z</updated>
	<author>
		<name>Scott Wilson-11</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;div&gt;Well after a bit of research I finally found a solution to this problem, and though StringUtils and CharSetUtils play a role, there was still a bit of a gap.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Here is the code:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre; &quot;&gt;	&lt;/span&gt;&lt;span style=&quot;color: rgb(127, 0, 85); &quot;&gt;private&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: rgb(127, 0, 85); &quot;&gt;static&lt;/span&gt;&amp;nbsp;String normalize(String in,&amp;nbsp;&lt;span style=&quot;color: rgb(127, 0, 85); &quot;&gt;boolean&lt;/span&gt;&amp;nbsp;includeWhitespace){&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre; &quot;&gt;		&lt;/span&gt;&lt;span style=&quot;color: rgb(127, 0, 85); &quot;&gt;if&lt;/span&gt;&amp;nbsp;(in ==&amp;nbsp;&lt;span style=&quot;color: rgb(127, 0, 85); &quot;&gt;null&lt;/span&gt;)&amp;nbsp;&lt;span style=&quot;color: rgb(127, 0, 85); &quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: rgb(42, 0, 255); &quot;&gt;&quot;&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre; &quot;&gt;		&lt;/span&gt;String out =&amp;nbsp;&lt;span style=&quot;color: rgb(42, 0, 255); &quot;&gt;&quot;&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre; &quot;&gt;		&lt;/span&gt;&lt;span style=&quot;color: rgb(127, 0, 85); &quot;&gt;for&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: rgb(127, 0, 85); &quot;&gt;int&lt;/span&gt;&amp;nbsp;x=0;x&amp;lt;in.length();x++){&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre; &quot;&gt;			&lt;/span&gt;String s = in.substring(x, x+1);&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre; &quot;&gt;			&lt;/span&gt;&lt;span style=&quot;color: rgb(127, 0, 85); &quot;&gt;char&lt;/span&gt;&amp;nbsp;ch = s.charAt(0);&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre; &quot;&gt;			&lt;/span&gt;&lt;span style=&quot;color: rgb(127, 0, 85); &quot;&gt;if&lt;/span&gt;&amp;nbsp;(Character.isSpaceChar(ch) || (Character.isWhitespace(ch) &amp;amp;&amp;amp; includeWhitespace)){&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre; &quot;&gt;				&lt;/span&gt;s =&amp;nbsp;&lt;span style=&quot;color: rgb(42, 0, 255); &quot;&gt;&quot; &quot;&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre; &quot;&gt;			&lt;/span&gt;}&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre; &quot;&gt;			&lt;/span&gt;out = out + s;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre; &quot;&gt;		&lt;/span&gt;}&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre; &quot;&gt;		&lt;/span&gt;out = CharSetUtils.squeeze(out,&amp;nbsp;&lt;span style=&quot;color: rgb(42, 0, 255); &quot;&gt;&quot; &quot;&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre; &quot;&gt;		&lt;/span&gt;out = StringUtils.strip(out);&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre; &quot;&gt;		&lt;/span&gt;&lt;span style=&quot;color: rgb(127, 0, 85); &quot;&gt;return&lt;/span&gt;&amp;nbsp;out;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre; &quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;Monaco&quot; size=&quot;3&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;Interestingly enough there is no &quot;normalize unicode white space/space chars&quot; method in any of the libs that I tested (e.g. jdom, dom4j).&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I've committed the code into Apache Wookie (incubating) as part of a UnicodeUtils class:&amp;nbsp;&lt;a href=&quot;https://svn.apache.org/viewvc/incubator/wookie/trunk/src/org/apache/wookie/util/UnicodeUtils.java?revision=832940&amp;amp;view=markup&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://svn.apache.org/viewvc/incubator/wookie/trunk/src/org/apache/wookie/util/UnicodeUtils.java?revision=832940&amp;amp;view=markup&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;If there is interest in adding the method(s) to StringUtils I can submit a patch.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;S&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;On 29 Oct 2009, at 18:26, Sujit Pal wrote:&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;div&gt;Hi Scott,&lt;br&gt;&lt;br&gt;I just use something like this:&lt;br&gt;&lt;br&gt;s = s.replaceAll(&quot;\\s+&quot;, &quot; &quot;);&lt;br&gt;&lt;br&gt;or since you are doing unicode:&lt;br&gt;&lt;br&gt;String s = &quot;This\u0200\u0200is\u0200a\u0200\u0200test&quot;;&lt;br&gt;System.out.println(&quot;before=&quot; + s);&lt;br&gt;s = s.replaceAll(&quot;\u0200+&quot;, &quot;\u0200&quot;);&lt;br&gt;System.out.println(&quot;after=&quot; + s);&lt;br&gt;&lt;br&gt;Gives me this:&lt;br&gt;before=ThisȀȀisȀaȀȀtest&lt;br&gt;after=ThisȀisȀaȀtest&lt;br&gt;&lt;br&gt;Of course, you lose the null checking that commons-lang gives you. Using&lt;br&gt;CharsetUtils.squeeze() also gives me identical results...&lt;br&gt;&lt;br&gt;String s = &quot;This\u0200\u0200is\u0200a\u0200\u0200test&quot;;&lt;br&gt;System.out.println(&quot;before=&quot; + s);&lt;br&gt;s = org.apache.commons.lang.CharSetUtils.squeeze(s, new String[]&lt;br&gt;{&quot;\u0200&quot;});&lt;br&gt;System.out.println(&quot;after=&quot; + s);&lt;br&gt;&lt;br&gt;Also changed your subject line to include [lang] per guidelines on this&lt;br&gt;list.&lt;br&gt;&lt;br&gt;-sujit&lt;br&gt;&lt;br&gt;On Thu, 2009-10-29 at 16:21 +0000, Scott Wilson wrote:&lt;br&gt;&lt;blockquote type=&quot;cite&quot;&gt;Hi everyone,&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;I need to implement a W3C processing algorithm which states:&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;10.1.8 Rule for Getting Text Content with Normalized White Space&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;The rule for getting text content with normalized white space is given &amp;nbsp;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;in the following algorithm. The algorithm always returns a string, &amp;nbsp;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;which MAY be empty.&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;• Let input be the Element to be processed.&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;• Let result be the result of applying the rule for getting text &amp;nbsp;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;content to input.&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;• In result, convert any sequence of one or more Unicode white space &amp;nbsp;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;characters into a single U+0020 SPACE.&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;• Return result.&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;The step I'm having problems with is &quot;convert any sequence of one or &amp;nbsp;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;more Unicode white space characters into a single U+0020 SPACE.&quot;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;The StringUtils replace() and CharSetUtils squeeze() methods would &amp;nbsp;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;seem to be best suited for solving this one, but there doesn't seem to &amp;nbsp;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;be a set syntax for easily specifying unicode white space chars &amp;nbsp;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;defined for one thing.&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;Has anyone else solved a similar problem using commons lang, or should &amp;nbsp;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;I consider using something else?&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;Thanks!&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;S&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;/-/-/-/-/-/&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;Scott Wilson&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;Apache Wookie: &lt;a href=&quot;http://incubator.apache.org/projects/wookie.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://incubator.apache.org/projects/wookie.html&lt;/a&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26219909&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26219909&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;smime.p7s&lt;/strong&gt; (3K) &lt;a href=&quot;http://old.nabble.com/attachment/26219909/0/smime.p7s&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/collapsing-unicode-white-space-tp26116279p26219909.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26219554</id>
	<title>Re: [VFS] problem on runtime connection to SFTp server</title>
	<published>2009-11-05T10:05:17Z</published>
	<updated>2009-11-05T10:05:17Z</updated>
	<author>
		<name>Ken Tanaka</name>
	</author>
	<content type="html">If you need to call release() (and reinitialize) between processing operations I recommend you use a release method like this:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; public void release() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FileSystem fs = null;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fs = this.src.getFileSystem(); // This works even if the src is closed.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.fsManager.closeFileSystem(fs);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;In order for this release() to work, your class will need to have a
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; private FileObject src = null; // used for cleanup in release()
&lt;br&gt;&lt;br&gt;and some time after setting 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; children = this.sftpFile.getChildren();
&lt;br&gt;&lt;br&gt;you should 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; // Set src for cleanup in release()
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; src = children[0];
&lt;br&gt;&lt;br&gt;There is an example in the wiki at 
&lt;br&gt;&lt;a href=&quot;http://wiki.apache.org/jakarta-commons/SimpleSftpFileDownload&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.apache.org/jakarta-commons/SimpleSftpFileDownload&lt;/a&gt;&lt;br&gt;&lt;br&gt;tlc wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have similar problem. &amp;nbsp;The call to 'resolveFile' failed with 'Unknown
&lt;br&gt;&amp;gt; scheme &amp;quot;sftp&amp;quot;' error on the second operation. &amp;nbsp;I found couple things:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1) URL is of form sftp://user:pass@host/remotepath/ does not work on Tomcat. 
&lt;br&gt;&amp;gt; I had to change to using the below to authenticate:
&lt;br&gt;&amp;gt; StaticUserAuthenticator auth = new StaticUserAuthenticator(null, &amp;quot;username&amp;quot;,
&lt;br&gt;&amp;gt; &amp;quot;password&amp;quot;);
&lt;br&gt;&amp;gt; DefaultFileSystemConfigBuilder.getInstance().setUserAuthenticator(opts,
&lt;br&gt;&amp;gt; auth);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2) fsManager.close() between operations causes the error. &amp;nbsp;You need to
&lt;br&gt;&amp;gt; remove this and close it only once when the whole process completes.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; lmk wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; It seems that the problem comes from release function, when I call It
&lt;br&gt;&amp;gt;&amp;gt; after &amp;nbsp;copying files, the second SFTP connection fail.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; here the release method code:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; public void release() {
&lt;br&gt;&amp;gt;&amp;gt; 		this.fsManager.close();
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 	} // release()
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; lmk wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I have
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;commons-net-2.0
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; commons-vfs-1.0
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; jsch-0.1.40
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the first call works..but the second &amp;nbsp;one does not.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Jörg Schaible-2 wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; lmk wrote at Dienstag, 24. März 2009 14:58:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Sergey,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; here the exception trace
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.apache.commons.vfs.FileSystemException: Unknown scheme &amp;quot;sftp&amp;quot; in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; URI
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;sftp://login:password@host/path/&amp;quot;.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; This is an error message, but not a stack trace. However, it seems that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; you
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; do not have commons-net and jsch in your deps ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; - Jörg
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26219554&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26219554&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26219554&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26219554&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-VFS--problem-on-runtime-connection-to-SFTp-server-tp22664327p26219554.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26219433</id>
	<title>Re: [LANG] 2.4: ExceptionUtils.getFullStackTrace()</title>
	<published>2009-11-05T09:57:15Z</published>
	<updated>2009-11-05T09:57:15Z</updated>
	<author>
		<name>Paul Benedict-2</name>
	</author>
	<content type="html">Exception traces can also be cyclic. An exception may set itself as
&lt;br&gt;the root cause, or A -&amp;gt; B -&amp;gt; A.
&lt;br&gt;&lt;br&gt;On Thu, Nov 5, 2009 at 11:21 AM, Henri Yandell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26219433&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;flamefew@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I think the issue is that if you print the nested exception and keep
&lt;br&gt;&amp;gt; going, you'll get a lot of duplicates as the nested exception will
&lt;br&gt;&amp;gt; print all its children, then you'll go ahead and loop into the child.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Looking at the source to getThrowableList - it seems to me that the
&lt;br&gt;&amp;gt; throwable list is top down (ie: exception received and then into its
&lt;br&gt;&amp;gt; causes and its causes causes etc) so much like your comment on
&lt;br&gt;&amp;gt; reverse.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Wed, Nov 4, 2009 at 2:08 PM, Charles Deal &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26219433&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chuckdeal97@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; The getFullStackTrace() method javadoc states &amp;quot;A way to get the entire
&lt;br&gt;&amp;gt;&amp;gt; nested stack-trace of an throwable....&amp;quot;.  However, after gathering the
&lt;br&gt;&amp;gt;&amp;gt; nested Throwables, it performs a check while processing the array of
&lt;br&gt;&amp;gt;&amp;gt; Throwables that causes it to abort before it renders the nested
&lt;br&gt;&amp;gt;&amp;gt; stacktraces.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; My question is: Should the if check be there?  Why go through the trouble of
&lt;br&gt;&amp;gt;&amp;gt; getting the nested Throwables if you are going to short-circuit the
&lt;br&gt;&amp;gt;&amp;gt; rendering loop?  I suppose it is possible that the intent was to iterate the
&lt;br&gt;&amp;gt;&amp;gt; list in REVERSE and stop the rendering when you hit the Throwable that had a
&lt;br&gt;&amp;gt;&amp;gt; root Cause.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Any thoughts?  I ended up capturing the getFullStackTrace method and removed
&lt;br&gt;&amp;gt;&amp;gt; the if check within the loop and got exactly what I was looking for.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26219433&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26219433&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26219433&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26219433&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-LANG--2.4%3A-ExceptionUtils.getFullStackTrace%28%29-tp26205518p26219433.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26218814</id>
	<title>Re: [LANG] 2.4: ExceptionUtils.getFullStackTrace()</title>
	<published>2009-11-05T09:21:33Z</published>
	<updated>2009-11-05T09:21:33Z</updated>
	<author>
		<name>Henri Yandell</name>
	</author>
	<content type="html">I think the issue is that if you print the nested exception and keep
&lt;br&gt;going, you'll get a lot of duplicates as the nested exception will
&lt;br&gt;print all its children, then you'll go ahead and loop into the child.
&lt;br&gt;&lt;br&gt;Looking at the source to getThrowableList - it seems to me that the
&lt;br&gt;throwable list is top down (ie: exception received and then into its
&lt;br&gt;causes and its causes causes etc) so much like your comment on
&lt;br&gt;reverse.
&lt;br&gt;&lt;br&gt;On Wed, Nov 4, 2009 at 2:08 PM, Charles Deal &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218814&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chuckdeal97@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; The getFullStackTrace() method javadoc states &amp;quot;A way to get the entire
&lt;br&gt;&amp;gt; nested stack-trace of an throwable....&amp;quot;.  However, after gathering the
&lt;br&gt;&amp;gt; nested Throwables, it performs a check while processing the array of
&lt;br&gt;&amp;gt; Throwables that causes it to abort before it renders the nested
&lt;br&gt;&amp;gt; stacktraces.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My question is: Should the if check be there?  Why go through the trouble of
&lt;br&gt;&amp;gt; getting the nested Throwables if you are going to short-circuit the
&lt;br&gt;&amp;gt; rendering loop?  I suppose it is possible that the intent was to iterate the
&lt;br&gt;&amp;gt; list in REVERSE and stop the rendering when you hit the Throwable that had a
&lt;br&gt;&amp;gt; root Cause.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any thoughts?  I ended up capturing the getFullStackTrace method and removed
&lt;br&gt;&amp;gt; the if check within the loop and got exactly what I was looking for.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218814&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218814&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-LANG--2.4%3A-ExceptionUtils.getFullStackTrace%28%29-tp26205518p26218814.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26215812</id>
	<title>[DBCP] Another Transaction question</title>
	<published>2009-11-05T09:20:06Z</published>
	<updated>2009-11-05T09:20:06Z</updated>
	<author>
		<name>newfield</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;Can somebody explain which configuration properties sets the DataSource as org.apache.commons.dbcp.managed.BasicManagedDataSource instance ?
&lt;br&gt;We use commons-dbcp and commons-pool with simple-jndi for our JUnit tests.
&lt;br&gt;Some of our test inside make several DB iteration and it must be in the same transaction.
&lt;br&gt;Is there some way to configure it ?
&lt;br&gt;Thanks in advance.
&lt;br&gt;&lt;br&gt;Michael.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-DBCP--Another-Transaction-question-tp26215812p26215812.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26218698</id>
	<title>Re: lang only depends on JDK 1.2?</title>
	<published>2009-11-05T09:14:54Z</published>
	<updated>2009-11-05T09:14:54Z</updated>
	<author>
		<name>Henri Yandell</name>
	</author>
	<content type="html">Thanks Thomas.
&lt;br&gt;&lt;br&gt;I've removed the PROPOSAL.html file as it's a file created before Lang
&lt;br&gt;was created and I don't know what the value is in having it hang
&lt;br&gt;around is.
&lt;br&gt;&lt;br&gt;Hen
&lt;br&gt;&lt;br&gt;On Mon, Nov 2, 2009 at 1:52 AM, thomas menzel &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218698&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev.tom.menzel@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; hi.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; i was wondering about the proposal statement:
&lt;br&gt;&amp;gt;  Lang relies only on standard JDK 1.2 (or later) APIs for production
&lt;br&gt;&amp;gt;  deployment.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; doesnt that need to be updated to 1.5 b/c at least in ObjectUtils there is a method that uses generics?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; so long
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
&lt;br&gt;&amp;gt; Jetzt freischalten unter &lt;a href=&quot;http://portal.gmx.net/de/go/maxdome01&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://portal.gmx.net/de/go/maxdome01&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218698&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218698&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218698&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218698&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/new-feature%3A-coalesce-operator---method-tp26130280p26218698.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26218672</id>
	<title>Re: new feature: coalesce operator / method</title>
	<published>2009-11-05T09:12:41Z</published>
	<updated>2009-11-05T09:12:41Z</updated>
	<author>
		<name>Henri Yandell</name>
	</author>
	<content type="html">For the record - this went in as a merge with LANG-358.
&lt;br&gt;&lt;br&gt;On Sun, Nov 1, 2009 at 2:36 AM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218672&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev.tom.menzel@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Done. See &lt;a href=&quot;https://issues.apache.org/jira/browse/LANG-550&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LANG-550&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt; From: Ted Dunning [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218672&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ted.dunning@...&lt;/a&gt;]
&lt;br&gt;&amp;gt;&amp;gt; Sent: Freitag, 30. Oktober 2009 20:56
&lt;br&gt;&amp;gt;&amp;gt; To: Commons Users List
&lt;br&gt;&amp;gt;&amp;gt; Subject: Re: new feature: coalesce operator / method
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Write up a JIRA and a patch and go for it!
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I would recommend that the name be &amp;quot;firstNonNull&amp;quot; rather than
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;coalesce&amp;quot;.
&lt;br&gt;&amp;gt;&amp;gt; The verb coalesce implies things coming together rather than selecting
&lt;br&gt;&amp;gt;&amp;gt; one
&lt;br&gt;&amp;gt;&amp;gt; of many.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Fri, Oct 30, 2009 at 6:39 AM, thomas menzel
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218672&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev.tom.menzel@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; hi,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; after writing an if (x != null) {o = ...} else if (y != null) {o = }
&lt;br&gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; cascade, i just thought that we could use a coalesce operator in java
&lt;br&gt;&amp;gt;&amp;gt; as
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; well....
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; until sun will support this i think this could be hosted somewhere in
&lt;br&gt;&amp;gt;&amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; commons.lang package:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Operators.coalesce(final Object... object);
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; this then would return the first non-null objecet from the given
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; list/array.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; alternatively this could also go on ObjectUtils.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; what do u think?
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Neu: GMX DSL bis 50.000 kBit/s und 200,- Euro Startguthaben!
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://portal.gmx.net/de/go/dsl02&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://portal.gmx.net/de/go/dsl02&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218672&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218672&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; Ted Dunning, CTO
&lt;br&gt;&amp;gt;&amp;gt; DeepDyve
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; No virus found in this incoming message.
&lt;br&gt;&amp;gt;&amp;gt; Checked by AVG - www.avg.com
&lt;br&gt;&amp;gt;&amp;gt; Version: 8.5.423 / Virus Database: 270.14.39/2470 - Release Date:
&lt;br&gt;&amp;gt;&amp;gt; 10/30/09 15:18:00
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218672&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218672&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218672&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218672&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/new-feature%3A-coalesce-operator---method-tp26130280p26218672.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26210025</id>
	<title>Re: [configuration] Re: Loading proeprteis according local</title>
	<published>2009-11-04T22:54:29Z</published>
	<updated>2009-11-04T22:54:29Z</updated>
	<author>
		<name>Oliver Heger-3</name>
	</author>
	<content type="html">Ralph Goers schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have been considering either adding something to commons 
&lt;br&gt;&amp;gt; configuration, but more probably creating a new project to do this (or 
&lt;br&gt;&amp;gt; repurposing commons i18n).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The idea is that you want to have XML files that contain 
&lt;br&gt;&amp;gt; internationalized message text. XML because it has a proper way of 
&lt;br&gt;&amp;gt; specifying the encoding. But it would probably use the 
&lt;br&gt;&amp;gt; java.util.Properties XML schema. Then you would have a combined 
&lt;br&gt;&amp;gt; configuration that aggregates the files together in the manner described 
&lt;br&gt;&amp;gt; in the ResourceBundle javadoc. In my case, I also need to add in another 
&lt;br&gt;&amp;gt; factor - allowing the localized files to be overridden per &amp;quot;business 
&lt;br&gt;&amp;gt; client&amp;quot; for multi-tenant support. &amp;nbsp;Ideally, this framework should then 
&lt;br&gt;&amp;gt; be able to be plugged in underneath Spring's MessageSource API, Struts' 
&lt;br&gt;&amp;gt; MessageResources API or even the Java 6 ResourceBundle.Control. &amp;nbsp;Of 
&lt;br&gt;&amp;gt; course, it should also be able to be used directly.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Basic localization can be done today in 1.7-SNAPSHOT with 
&lt;br&gt;&amp;gt; DefaultConfigurationBuilder, DynamicCombinedConfiguration and a set of 
&lt;br&gt;&amp;gt; MultiFileHierarhicalConfigurations. Just make sure that the pattern 
&lt;br&gt;&amp;gt; specified in the DynamicCombinedConfiguration and 
&lt;br&gt;&amp;gt; MultiFileHierarchicalConfigurations contains the variable for the 
&lt;br&gt;&amp;gt; locale. &amp;nbsp;All the framework I am proposing would do would be to wrap this 
&lt;br&gt;&amp;gt; in a standard way and provide a suitable API.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Ralph
&lt;/div&gt;&lt;br&gt;This sounds really cool. In the past there were some thoughts about 
&lt;br&gt;combining [configuration] with the [resources] project (which is now 
&lt;br&gt;dormant). However, this did not get any further.
&lt;br&gt;&lt;br&gt;Oliver
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Nov 4, 2009, at 12:33 PM, Oliver Heger wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; First, please note that this is a shared list. So it is convention to 
&lt;br&gt;&amp;gt;&amp;gt; prefix the subject with the name of the component you are interested 
&lt;br&gt;&amp;gt;&amp;gt; in as I have done now.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Answer below...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; NewWay schrieb:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I mean that i want to be able to use the services available to me in the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; commons-configuration
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; but that the file that I'm using will be retrieved through the Bundle
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; mechanism so i can get it in different locals.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Sorry, I still do not fully get it. Maybe you can elaborate a bit more 
&lt;br&gt;&amp;gt;&amp;gt; on your concrete use case?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Commons Configuration does not have a Configuration implementation on 
&lt;br&gt;&amp;gt;&amp;gt; top of a resource bundle if it is this what you mean. There is no 
&lt;br&gt;&amp;gt;&amp;gt; out-of-the-box way to obtain configuration properties for different 
&lt;br&gt;&amp;gt;&amp;gt; locales.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Oliver
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; - Noa
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26210025&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26210025&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26210025&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26210025&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26210025&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26210025&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Loading-proeprteis-according-local-tp26156700p26210025.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26205518</id>
	<title>[LANG] 2.4: ExceptionUtils.getFullStackTrace()</title>
	<published>2009-11-04T14:08:36Z</published>
	<updated>2009-11-04T14:08:36Z</updated>
	<author>
		<name>Charles Deal</name>
	</author>
	<content type="html">The getFullStackTrace() method javadoc states &amp;quot;A way to get the entire
&lt;br&gt;nested stack-trace of an throwable....&amp;quot;. &amp;nbsp;However, after gathering the
&lt;br&gt;nested Throwables, it performs a check while processing the array of
&lt;br&gt;Throwables that causes it to abort before it renders the nested
&lt;br&gt;stacktraces.
&lt;br&gt;&lt;br&gt;My question is: Should the if check be there? &amp;nbsp;Why go through the trouble of
&lt;br&gt;getting the nested Throwables if you are going to short-circuit the
&lt;br&gt;rendering loop? &amp;nbsp;I suppose it is possible that the intent was to iterate the
&lt;br&gt;list in REVERSE and stop the rendering when you hit the Throwable that had a
&lt;br&gt;root Cause.
&lt;br&gt;&lt;br&gt;Any thoughts? &amp;nbsp;I ended up capturing the getFullStackTrace method and removed
&lt;br&gt;the if check within the loop and got exactly what I was looking for.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-LANG--2.4%3A-ExceptionUtils.getFullStackTrace%28%29-tp26205518p26205518.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26204879</id>
	<title>RE: Managing content in an SCXML file</title>
	<published>2009-11-04T13:23:12Z</published>
	<updated>2009-11-04T13:23:12Z</updated>
	<author>
		<name>Cedric NICOLAS</name>
	</author>
	<content type="html">Ingmar,
&lt;br&gt;&lt;br&gt;Thank you very much for your answer it is exactly what I was expecting, is
&lt;br&gt;how to merge &amp;lt;content&amp;gt; and &amp;lt;send&amp;gt;. I will try what you suggest, and keep you
&lt;br&gt;informed.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;-----Message d'origine-----
&lt;br&gt;De : Ingmar Kliche [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204879&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ingmar.kliche@...&lt;/a&gt;] 
&lt;br&gt;Envoyé : mercredi 4 novembre 2009 20:20
&lt;br&gt;À : Commons Users List
&lt;br&gt;Objet : Re: Managing content in an SCXML file
&lt;br&gt;&lt;br&gt;Cedric,
&lt;br&gt;&lt;br&gt;SCXML's default way to communicate with the outside world ist &amp;lt;send&amp;gt;. &amp;lt;send&amp;gt;
&lt;br&gt;is supported by commons-SCXML and you have to implement the EventDispatcher
&lt;br&gt;Interface and register it at the SCXMLExecutor to hook into the &amp;lt;send&amp;gt;
&lt;br&gt;calls.
&lt;br&gt;&lt;br&gt;One option then would be to put the content into the body of the &amp;lt;send&amp;gt;
&lt;br&gt;element, like this:
&lt;br&gt;&lt;br&gt;&amp;lt;state id=&amp;quot;connect&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;onentry&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;send event=&amp;quot;display&amp;quot; target=&amp;quot;'mobiledevice'&amp;quot;
&lt;br&gt;targettype=&amp;quot;'mobiledevice'&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;content&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt; Welcome ! &amp;lt;/title&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button text=&amp;quot;Click here to continue&amp;quot; action =&amp;quot;send_OK&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button text=&amp;quot;Quit&amp;quot; action =&amp;quot;send_Quit&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/content&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/send&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/onentry&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;transition event=&amp;quot;send_OK&amp;quot; target=&amp;quot;next_state&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;transition event=&amp;quot;send_Quit&amp;quot; target=&amp;quot;final_state&amp;quot;/&amp;gt;
&lt;br&gt;&amp;lt;/state&amp;gt;
&lt;br&gt;&lt;br&gt;Note that commons-SCXML currently does not implement the latest W3C working
&lt;br&gt;draft. I used the syntax from a previous WD [1].
&lt;br&gt;&lt;br&gt;I personally haven't used it like in the example above, but I'd expect that
&lt;br&gt;you would get the body of the &amp;lt;send&amp;gt; element in the EventDispachter.send()
&lt;br&gt;method (in the externalNodes parameter).
&lt;br&gt;&lt;br&gt;The drawback of this option though is, that you can not dynamically change
&lt;br&gt;the &amp;quot;content&amp;quot; at runtime (i.e. it has to be known at authoring time). If you
&lt;br&gt;need to create or change the content dynamically (lets say change the button
&lt;br&gt;text) you could use the namelist parameter of &amp;lt;send&amp;gt; instead and store the
&lt;br&gt;content within the datamodel. Then the markup would look something like
&lt;br&gt;this:
&lt;br&gt;&lt;br&gt;&amp;lt;scxml&amp;gt;
&lt;br&gt;...
&lt;br&gt;&amp;lt;datamodel&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;data id=&amp;quot;content&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;content&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;title&amp;gt; Welcome ! &amp;lt;/title&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;button text=&amp;quot;Click here to continue&amp;quot; action =&amp;quot;send_OK&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;button text=&amp;quot;Quit&amp;quot; action =&amp;quot;send_Quit&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/content&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/data&amp;gt;
&lt;br&gt;&amp;lt;/datamodel&amp;gt;
&lt;br&gt;...
&lt;br&gt;&amp;lt;state id=&amp;quot;connect&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;onentry&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;send event=&amp;quot;display&amp;quot; target=&amp;quot;'mobiledevice'&amp;quot;
&lt;br&gt;targettype=&amp;quot;'mobiledevice'&amp;quot; namelist=&amp;quot;content&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/onentry&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;transition event=&amp;quot;send_OK&amp;quot; target=&amp;quot;next_state&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;transition event=&amp;quot;send_Quit&amp;quot; target=&amp;quot;final_state&amp;quot;/&amp;gt;
&lt;br&gt;&amp;lt;/state&amp;gt;
&lt;br&gt;...
&lt;br&gt;&amp;lt;/scxml&amp;gt;
&lt;br&gt;&lt;br&gt;For more information on using the datamodel look at [2]. I hope this all
&lt;br&gt;addresses your question.
&lt;br&gt;&lt;br&gt;- Ingmar.
&lt;br&gt;&lt;br&gt;[1] &lt;a href=&quot;http://www.w3.org/TR/2009/WD-scxml-20090507/#send&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/2009/WD-scxml-20090507/#send&lt;/a&gt;&lt;br&gt;[2] &lt;a href=&quot;http://commons.apache.org/scxml/guide/datamodel.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://commons.apache.org/scxml/guide/datamodel.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;2009/11/3 Cedric NICOLAS &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204879&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cedric.nicolas@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Dear Rahul and others,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I want to do a quite simple thing : having a state machine on a server
&lt;br&gt;&amp;gt; controlling user interface of mobile clients.
&lt;br&gt;&amp;gt; The state machine would have a lot of states and complex stream, and for
&lt;br&gt;&amp;gt; some specific states it will embedded a simple markup language content
&lt;br&gt;&amp;gt; (e.g.
&lt;br&gt;&amp;gt; an html subset) that will be delivered to the mobile client which when it
&lt;br&gt;&amp;gt; receives it, interpret and display it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For example the server state machine would have &amp;quot;connect&amp;quot; state that will
&lt;br&gt;&amp;gt; be
&lt;br&gt;&amp;gt; triggered when the mobile is establishing a connection, and would react by
&lt;br&gt;&amp;gt; giving to the mobile client the content to be displayed. An simple example
&lt;br&gt;&amp;gt; would be :
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;state id=&amp;quot;connect&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;content&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;title&amp;gt; Welcome ! &amp;lt;/title&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;button&amp;gt; text=&amp;quot;Click here to continue&amp;quot; action =&amp;quot;send_OK&amp;quot;
&lt;br&gt;&amp;gt; &amp;lt;/button&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;button&amp;gt; text=&amp;quot;Quit&amp;quot; action =&amp;quot;send_Quit&amp;quot; &amp;lt;/button&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/content&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;transition event=&amp;quot;send_OK&amp;quot; target=&amp;quot;next_state&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;transition event=&amp;quot;send_Quit&amp;quot; target=&amp;quot;final_state&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/state&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In that case the content in &amp;lt;content&amp;gt; tags will be retrieved by the Java
&lt;br&gt;&amp;gt; code on void connect() method, and sent to the device. Server will listen
&lt;br&gt;&amp;gt; to
&lt;br&gt;&amp;gt; device and when receiving a message like send_OK, trigger this to the
&lt;/div&gt;state
&lt;br&gt;&amp;gt; machine.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To summarize I want to emulate a tiny web server hosting some tiny pages
&lt;br&gt;&amp;gt; with a state machine.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've gone through all the documentation of Commons Scxml, and didn't find
&lt;br&gt;&amp;gt; an
&lt;br&gt;&amp;gt; easy way to do this. The possible ways I see are to use a data model, but
&lt;br&gt;&amp;gt; using &amp;lt;assign&amp;gt; tags for setting my content seems to be quite heavy to
&lt;br&gt;write
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; and don't know how to assign an XML tree to a data model node, and other
&lt;br&gt;&amp;gt; possibility would be to use maybe custom actions, but how to describe in a
&lt;br&gt;&amp;gt; simple way my XML like-content ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Do you have a suggestion to do this in an easy and readable way ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204879&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204879&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204879&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204879&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-SCXML--Retrieving-a-%28wrapped%29-NodeSet-for-an-XPath---user-defined-XPath-functions-tp25976365p26204879.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26204436</id>
	<title>Re: [configuration] Re: Loading proeprteis according local</title>
	<published>2009-11-04T12:52:20Z</published>
	<updated>2009-11-04T12:52:20Z</updated>
	<author>
		<name>Ralph Goers</name>
	</author>
	<content type="html">I have been considering either adding something to commons &amp;nbsp;
&lt;br&gt;configuration, but more probably creating a new project to do this (or &amp;nbsp;
&lt;br&gt;repurposing commons i18n).
&lt;br&gt;&lt;br&gt;The idea is that you want to have XML files that contain &amp;nbsp;
&lt;br&gt;internationalized message text. XML because it has a proper way of &amp;nbsp;
&lt;br&gt;specifying the encoding. But it would probably use the &amp;nbsp;
&lt;br&gt;java.util.Properties XML schema. Then you would have a combined &amp;nbsp;
&lt;br&gt;configuration that aggregates the files together in the manner &amp;nbsp;
&lt;br&gt;described in the ResourceBundle javadoc. In my case, I also need to &amp;nbsp;
&lt;br&gt;add in another factor - allowing the localized files to be overridden &amp;nbsp;
&lt;br&gt;per &amp;quot;business client&amp;quot; for multi-tenant support. &amp;nbsp;Ideally, this &amp;nbsp;
&lt;br&gt;framework should then be able to be plugged in underneath Spring's &amp;nbsp;
&lt;br&gt;MessageSource API, Struts' MessageResources API or even the Java 6 &amp;nbsp;
&lt;br&gt;ResourceBundle.Control. &amp;nbsp;Of course, it should also be able to be used &amp;nbsp;
&lt;br&gt;directly.
&lt;br&gt;&lt;br&gt;Basic localization can be done today in 1.7-SNAPSHOT with &amp;nbsp;
&lt;br&gt;DefaultConfigurationBuilder, DynamicCombinedConfiguration and a set of &amp;nbsp;
&lt;br&gt;MultiFileHierarhicalConfigurations. Just make sure that the pattern &amp;nbsp;
&lt;br&gt;specified in the DynamicCombinedConfiguration and &amp;nbsp;
&lt;br&gt;MultiFileHierarchicalConfigurations contains the variable for the &amp;nbsp;
&lt;br&gt;locale. &amp;nbsp;All the framework I am proposing would do would be to wrap &amp;nbsp;
&lt;br&gt;this in a standard way and provide a suitable API.
&lt;br&gt;&lt;br&gt;Ralph
&lt;br&gt;&lt;br&gt;On Nov 4, 2009, at 12:33 PM, Oliver Heger wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; First, please note that this is a shared list. So it is convention &amp;nbsp;
&lt;br&gt;&amp;gt; to prefix the subject with the name of the component you are &amp;nbsp;
&lt;br&gt;&amp;gt; interested in as I have done now.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Answer below...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; NewWay schrieb:
&lt;br&gt;&amp;gt;&amp;gt; I mean that i want to be able to use the services available to me &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; in the
&lt;br&gt;&amp;gt;&amp;gt; commons-configuration
&lt;br&gt;&amp;gt;&amp;gt; but that the file that I'm using will be retrieved through the Bundle
&lt;br&gt;&amp;gt;&amp;gt; mechanism so i can get it in different locals.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sorry, I still do not fully get it. Maybe you can elaborate a bit &amp;nbsp;
&lt;br&gt;&amp;gt; more on your concrete use case?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Commons Configuration does not have a Configuration implementation &amp;nbsp;
&lt;br&gt;&amp;gt; on top of a resource bundle if it is this what you mean. There is no &amp;nbsp;
&lt;br&gt;&amp;gt; out-of-the-box way to obtain configuration properties for different &amp;nbsp;
&lt;br&gt;&amp;gt; locales.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Oliver
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; - Noa
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204436&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204436&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204436&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204436&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Loading-proeprteis-according-local-tp26156700p26204436.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26204131</id>
	<title>[configuration] Re: Loading proeprteis according local</title>
	<published>2009-11-04T12:33:35Z</published>
	<updated>2009-11-04T12:33:35Z</updated>
	<author>
		<name>Oliver Heger-3</name>
	</author>
	<content type="html">First, please note that this is a shared list. So it is convention to 
&lt;br&gt;prefix the subject with the name of the component you are interested in 
&lt;br&gt;as I have done now.
&lt;br&gt;&lt;br&gt;Answer below...
&lt;br&gt;&lt;br&gt;NewWay schrieb:
&lt;br&gt;&amp;gt; I mean that i want to be able to use the services available to me in the
&lt;br&gt;&amp;gt; commons-configuration
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; but that the file that I'm using will be retrieved through the Bundle
&lt;br&gt;&amp;gt; mechanism so i can get it in different locals.
&lt;br&gt;&lt;br&gt;Sorry, I still do not fully get it. Maybe you can elaborate a bit more 
&lt;br&gt;on your concrete use case?
&lt;br&gt;&lt;br&gt;Commons Configuration does not have a Configuration implementation on 
&lt;br&gt;top of a resource bundle if it is this what you mean. There is no 
&lt;br&gt;out-of-the-box way to obtain configuration properties for different locales.
&lt;br&gt;&lt;br&gt;Oliver
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; - Noa
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204131&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204131&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Loading-proeprteis-according-local-tp26156700p26204131.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26202939</id>
	<title>Re: Managing content in an SCXML file</title>
	<published>2009-11-04T11:19:41Z</published>
	<updated>2009-11-04T11:19:41Z</updated>
	<author>
		<name>Ingmar Kliche</name>
	</author>
	<content type="html">Cedric,
&lt;br&gt;&lt;br&gt;SCXML's default way to communicate with the outside world ist &amp;lt;send&amp;gt;. &amp;lt;send&amp;gt;
&lt;br&gt;is supported by commons-SCXML and you have to implement the EventDispatcher
&lt;br&gt;Interface and register it at the SCXMLExecutor to hook into the &amp;lt;send&amp;gt;
&lt;br&gt;calls.
&lt;br&gt;&lt;br&gt;One option then would be to put the content into the body of the &amp;lt;send&amp;gt;
&lt;br&gt;element, like this:
&lt;br&gt;&lt;br&gt;&amp;lt;state id=&amp;quot;connect&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;onentry&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;send event=&amp;quot;display&amp;quot; target=&amp;quot;'mobiledevice'&amp;quot;
&lt;br&gt;targettype=&amp;quot;'mobiledevice'&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;content&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt; Welcome ! &amp;lt;/title&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button text=&amp;quot;Click here to continue&amp;quot; action =&amp;quot;send_OK&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button text=&amp;quot;Quit&amp;quot; action =&amp;quot;send_Quit&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/content&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/send&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/onentry&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;transition event=&amp;quot;send_OK&amp;quot; target=&amp;quot;next_state&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;transition event=&amp;quot;send_Quit&amp;quot; target=&amp;quot;final_state&amp;quot;/&amp;gt;
&lt;br&gt;&amp;lt;/state&amp;gt;
&lt;br&gt;&lt;br&gt;Note that commons-SCXML currently does not implement the latest W3C working
&lt;br&gt;draft. I used the syntax from a previous WD [1].
&lt;br&gt;&lt;br&gt;I personally haven't used it like in the example above, but I'd expect that
&lt;br&gt;you would get the body of the &amp;lt;send&amp;gt; element in the EventDispachter.send()
&lt;br&gt;method (in the externalNodes parameter).
&lt;br&gt;&lt;br&gt;The drawback of this option though is, that you can not dynamically change
&lt;br&gt;the &amp;quot;content&amp;quot; at runtime (i.e. it has to be known at authoring time). If you
&lt;br&gt;need to create or change the content dynamically (lets say change the button
&lt;br&gt;text) you could use the namelist parameter of &amp;lt;send&amp;gt; instead and store the
&lt;br&gt;content within the datamodel. Then the markup would look something like
&lt;br&gt;this:
&lt;br&gt;&lt;br&gt;&amp;lt;scxml&amp;gt;
&lt;br&gt;...
&lt;br&gt;&amp;lt;datamodel&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;data id=&amp;quot;content&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;content&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;title&amp;gt; Welcome ! &amp;lt;/title&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;button text=&amp;quot;Click here to continue&amp;quot; action =&amp;quot;send_OK&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;button text=&amp;quot;Quit&amp;quot; action =&amp;quot;send_Quit&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/content&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/data&amp;gt;
&lt;br&gt;&amp;lt;/datamodel&amp;gt;
&lt;br&gt;...
&lt;br&gt;&amp;lt;state id=&amp;quot;connect&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;onentry&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;send event=&amp;quot;display&amp;quot; target=&amp;quot;'mobiledevice'&amp;quot;
&lt;br&gt;targettype=&amp;quot;'mobiledevice'&amp;quot; namelist=&amp;quot;content&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/onentry&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;transition event=&amp;quot;send_OK&amp;quot; target=&amp;quot;next_state&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;transition event=&amp;quot;send_Quit&amp;quot; target=&amp;quot;final_state&amp;quot;/&amp;gt;
&lt;br&gt;&amp;lt;/state&amp;gt;
&lt;br&gt;...
&lt;br&gt;&amp;lt;/scxml&amp;gt;
&lt;br&gt;&lt;br&gt;For more information on using the datamodel look at [2]. I hope this all
&lt;br&gt;addresses your question.
&lt;br&gt;&lt;br&gt;- Ingmar.
&lt;br&gt;&lt;br&gt;[1] &lt;a href=&quot;http://www.w3.org/TR/2009/WD-scxml-20090507/#send&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/2009/WD-scxml-20090507/#send&lt;/a&gt;&lt;br&gt;[2] &lt;a href=&quot;http://commons.apache.org/scxml/guide/datamodel.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://commons.apache.org/scxml/guide/datamodel.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;2009/11/3 Cedric NICOLAS &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26202939&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cedric.nicolas@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Dear Rahul and others,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I want to do a quite simple thing : having a state machine on a server
&lt;br&gt;&amp;gt; controlling user interface of mobile clients.
&lt;br&gt;&amp;gt; The state machine would have a lot of states and complex stream, and for
&lt;br&gt;&amp;gt; some specific states it will embedded a simple markup language content
&lt;br&gt;&amp;gt; (e.g.
&lt;br&gt;&amp;gt; an html subset) that will be delivered to the mobile client which when it
&lt;br&gt;&amp;gt; receives it, interpret and display it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For example the server state machine would have &amp;quot;connect&amp;quot; state that will
&lt;br&gt;&amp;gt; be
&lt;br&gt;&amp;gt; triggered when the mobile is establishing a connection, and would react by
&lt;br&gt;&amp;gt; giving to the mobile client the content to be displayed. An simple example
&lt;br&gt;&amp;gt; would be :
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;state id=&amp;quot;connect&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;content&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;title&amp;gt; Welcome ! &amp;lt;/title&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;button&amp;gt; text=&amp;quot;Click here to continue&amp;quot; action =&amp;quot;send_OK&amp;quot;
&lt;br&gt;&amp;gt; &amp;lt;/button&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;button&amp;gt; text=&amp;quot;Quit&amp;quot; action =&amp;quot;send_Quit&amp;quot; &amp;lt;/button&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/content&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;transition event=&amp;quot;send_OK&amp;quot; target=&amp;quot;next_state&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;transition event=&amp;quot;send_Quit&amp;quot; target=&amp;quot;final_state&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/state&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In that case the content in &amp;lt;content&amp;gt; tags will be retrieved by the Java
&lt;br&gt;&amp;gt; code on void connect() method, and sent to the device. Server will listen
&lt;br&gt;&amp;gt; to
&lt;br&gt;&amp;gt; device and when receiving a message like send_OK, trigger this to the state
&lt;br&gt;&amp;gt; machine.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To summarize I want to emulate a tiny web server hosting some tiny pages
&lt;br&gt;&amp;gt; with a state machine.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've gone through all the documentation of Commons Scxml, and didn't find
&lt;br&gt;&amp;gt; an
&lt;br&gt;&amp;gt; easy way to do this. The possible ways I see are to use a data model, but
&lt;br&gt;&amp;gt; using &amp;lt;assign&amp;gt; tags for setting my content seems to be quite heavy to write
&lt;br&gt;&amp;gt; and don't know how to assign an XML tree to a data model node, and other
&lt;br&gt;&amp;gt; possibility would be to use maybe custom actions, but how to describe in a
&lt;br&gt;&amp;gt; simple way my XML like-content ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Do you have a suggestion to do this in an easy and readable way ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26202939&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26202939&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-SCXML--Retrieving-a-%28wrapped%29-NodeSet-for-an-XPath---user-defined-XPath-functions-tp25976365p26202939.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26201470</id>
	<title>Re: File upload: not identified content type.</title>
	<published>2009-11-04T09:56:22Z</published>
	<updated>2009-11-04T09:56:22Z</updated>
	<author>
		<name>Niall Pemberton-2</name>
	</author>
	<content type="html">AIUI it gets it from the request headers:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://commons.apache.org/fileupload/xref/org/apache/commons/fileupload/FileUploadBase.html#993&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://commons.apache.org/fileupload/xref/org/apache/commons/fileupload/FileUploadBase.html#993&lt;/a&gt;&lt;br&gt;&lt;br&gt;Niall
&lt;br&gt;&lt;br&gt;On Wed, Nov 4, 2009 at 5:26 PM, vijay shanker &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26201470&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vijay.shad@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello friends;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am using commons file upload library to upload files. I have been noticing
&lt;br&gt;&amp;gt; some time my library does not get file content type correct. For such a file
&lt;br&gt;&amp;gt; it saves *application*/*octet*-*stream. *
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Can any body describe how it does happens?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If some of you have known for such a situation. Please share the
&lt;br&gt;&amp;gt; information.
&lt;br&gt;&amp;gt; **
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Vijay Shanker Dubey
&lt;br&gt;&amp;gt; Ph: +91-9818311884
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26201470&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26201470&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/File-upload%3A-not-identified-content-type.-tp26200790p26201470.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26200790</id>
	<title>File upload: not identified content type.</title>
	<published>2009-11-04T09:26:29Z</published>
	<updated>2009-11-04T09:26:29Z</updated>
	<author>
		<name>vijay shanker-2</name>
	</author>
	<content type="html">Hello friends;
&lt;br&gt;&lt;br&gt;I am using commons file upload library to upload files. I have been noticing
&lt;br&gt;some time my library does not get file content type correct. For such a file
&lt;br&gt;it saves *application*/*octet*-*stream. *
&lt;br&gt;&lt;br&gt;Can any body describe how it does happens?
&lt;br&gt;&lt;br&gt;If some of you have known for such a situation. Please share the
&lt;br&gt;information.
&lt;br&gt;**
&lt;br&gt;Regards,
&lt;br&gt;Vijay Shanker Dubey
&lt;br&gt;Ph: +91-9818311884
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/File-upload%3A-not-identified-content-type.-tp26200790p26200790.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26194973</id>
	<title>Re: Loading proeprteis according local</title>
	<published>2009-11-04T04:02:00Z</published>
	<updated>2009-11-04T04:02:00Z</updated>
	<author>
		<name>NewWay</name>
	</author>
	<content type="html">I mean that i want to be able to use the services available to me in the commons-configuration
&lt;br&gt;&lt;br&gt;but that the file that I'm using will be retrieved through the Bundle mechanism so i can get it in different locals.
&lt;br&gt;&lt;br&gt;- Noa
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Loading-proeprteis-according-local-tp26156700p26194973.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26188568</id>
	<title>RE: Managing content in an SCXML file</title>
	<published>2009-11-03T15:32:06Z</published>
	<updated>2009-11-03T15:32:06Z</updated>
	<author>
		<name>Cedric NICOLAS</name>
	</author>
	<content type="html">Martin,
&lt;br&gt;&lt;br&gt;Thanks for answer. Events for this state machine are quite simple, and I've
&lt;br&gt;already fully implemented the communication layer. Events type being
&lt;br&gt;triggered to the state machine will be : 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - a first connexion from a device, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - a message from the device
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - an event from a master controller state machine.
&lt;br&gt;&lt;br&gt;The state machine in return can trigger events to :
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - the device that the SM is managing
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - the master controller state machine.
&lt;br&gt;&lt;br&gt;To be a little be more precise, there will be on server side on state
&lt;br&gt;machine instance being created for each new device. Each of these instances
&lt;br&gt;will control the corresponding device state, remotely, if you want. Then
&lt;br&gt;there is a master state machine coordinating all devices children states
&lt;br&gt;machines, as there is no direct communication between devices.
&lt;br&gt;&lt;br&gt;Objective is to have on the mobile device the lightest possible client
&lt;br&gt;software, in order to be able to port easily that software on the different
&lt;br&gt;mobile platforms, and also to have the full control as well of the business
&lt;br&gt;logic but also of the UI on the server side, to be able to upgrade the UI on
&lt;br&gt;the fly. The Scxml file will then fully define the behavior of the device,
&lt;br&gt;but also the UI being displayed. The UI on mobile side is very very simple,
&lt;br&gt;it is much lighter than HTML is. We will have one or two text fields and 3
&lt;br&gt;buttons. It is why our markup language will be very simple as well : a tag
&lt;br&gt;to fill the text field, and a tag to define button text and event.
&lt;br&gt;&lt;br&gt;My only concern here is how to embed easily in an scxml file this 2-tags
&lt;br&gt;markup language for each state. This in order to have in only one state
&lt;br&gt;machine file, as well the full business logic but the UI definition as well.
&lt;br&gt;I don't want to have a separate resource file to handle the UI, in order to
&lt;br&gt;have the scxml file defining and carrying all, it will be much easier to
&lt;br&gt;maintain.
&lt;br&gt;&lt;br&gt;All the other aspects of the project have already been solved.
&lt;br&gt;&lt;br&gt;-----Message d'origine-----
&lt;br&gt;De : Martin Gainty [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26188568&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mgainty@...&lt;/a&gt;] 
&lt;br&gt;Envoyé : mercredi 4 novembre 2009 00:10
&lt;br&gt;À : &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26188568&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;
&lt;br&gt;Objet : RE: Managing content in an SCXML file
&lt;br&gt;&lt;br&gt;&lt;br&gt;Cedric
&lt;br&gt;&lt;br&gt;a markup implies SGML..i assume this might be described as XSD or XML Schema
&lt;br&gt;Definition?
&lt;br&gt;Can you describe the events this state-machine model would support?
&lt;br&gt;can you describe the content each event would carry and or generate?
&lt;br&gt;Can you describe what would be contained in the header for each Event?
&lt;br&gt;Can you describe what the body would look like for each event?
&lt;br&gt;&lt;br&gt;You might be able to implement a simple listener that listens on fixed
&lt;br&gt;host/port and when message is received (EOT is achieved after receiving
&lt;br&gt;header and body)
&lt;br&gt;you can hand the body of the message to device
&lt;br&gt;&lt;br&gt;can you confine the size of the message? 
&lt;br&gt;if not you might want to implement a packet model to buffer the packets to a
&lt;br&gt;known structure
&lt;br&gt;(as in some sort of linked-list) 
&lt;br&gt;until body EOT is achieved 
&lt;br&gt;&lt;br&gt;sounds like a fun project!
&lt;br&gt;Bon Chance
&lt;br&gt;Martin Gainty 
&lt;br&gt;______________________________________________ 
&lt;br&gt;Note de déni et de confidentialité
&lt;br&gt;&amp;nbsp;Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
&lt;br&gt;destinataire prévu, nous te demandons avec bonté que pour satisfaire
&lt;br&gt;informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
&lt;br&gt;de ceci est interdite. Ce message sert à l'information seulement et n'aura
&lt;br&gt;pas n'importe quel effet légalement obligatoire. Étant donné que les email
&lt;br&gt;peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
&lt;br&gt;aucune responsabilité pour le contenu fourni.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26188568&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cedric.nicolas@...&lt;/a&gt;
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26188568&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Managing content in an SCXML file
&lt;br&gt;&amp;gt; Date: Tue, 3 Nov 2009 23:23:01 +0100
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Dear Rahul and others,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I want to do a quite simple thing : having a state machine on a server
&lt;br&gt;&amp;gt; controlling user interface of mobile clients. 
&lt;br&gt;&amp;gt; The state machine would have a lot of states and complex stream, and for
&lt;br&gt;&amp;gt; some specific states it will embedded a simple markup language content
&lt;/div&gt;(e.g.
&lt;br&gt;&amp;gt; an html subset) that will be delivered to the mobile client which when it
&lt;br&gt;&amp;gt; receives it, interpret and display it.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; For example the server state machine would have &amp;quot;connect&amp;quot; state that will
&lt;br&gt;be
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; triggered when the mobile is establishing a connection, and would react by
&lt;br&gt;&amp;gt; giving to the mobile client the content to be displayed. An simple example
&lt;br&gt;&amp;gt; would be :
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;state id=&amp;quot;connect&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;content&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;title&amp;gt; Welcome ! &amp;lt;/title&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;button&amp;gt; text=&amp;quot;Click here to continue&amp;quot; action =&amp;quot;send_OK&amp;quot;
&lt;br&gt;&amp;gt; &amp;lt;/button&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;button&amp;gt; text=&amp;quot;Quit&amp;quot; action =&amp;quot;send_Quit&amp;quot; &amp;lt;/button&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/content&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;transition event=&amp;quot;send_OK&amp;quot; target=&amp;quot;next_state&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;transition event=&amp;quot;send_Quit&amp;quot; target=&amp;quot;final_state&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/state&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In that case the content in &amp;lt;content&amp;gt; tags will be retrieved by the Java
&lt;br&gt;&amp;gt; code on void connect() method, and sent to the device. Server will listen
&lt;/div&gt;to
&lt;br&gt;&amp;gt; device and when receiving a message like send_OK, trigger this to the
&lt;br&gt;state
&lt;br&gt;&amp;gt; machine.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; To summarize I want to emulate a tiny web server hosting some tiny pages
&lt;br&gt;&amp;gt; with a state machine.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've gone through all the documentation of Commons Scxml, and didn't find
&lt;br&gt;an
&lt;br&gt;&amp;gt; easy way to do this. The possible ways I see are to use a data model, but
&lt;br&gt;&amp;gt; using &amp;lt;assign&amp;gt; tags for setting my content seems to be quite heavy to
&lt;br&gt;write
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; and don't know how to assign an XML tree to a data model node, and other
&lt;br&gt;&amp;gt; possibility would be to use maybe custom actions, but how to describe in a
&lt;br&gt;&amp;gt; simple way my XML like-content ?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Do you have a suggestion to do this in an easy and readable way ?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26188568&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26188568&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&amp;nbsp;		 	 &amp;nbsp; 		 &amp;nbsp;
&lt;br&gt;_________________________________________________________________
&lt;br&gt;Windows 7: Unclutter your desktop.
&lt;br&gt;&lt;a href=&quot;http://go.microsoft.com/?linkid=9690331&amp;ocid=PID24727::T:WLMTAGL:ON:WL:en-US&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://go.microsoft.com/?linkid=9690331&amp;ocid=PID24727::T:WLMTAGL:ON:WL:en-US&lt;/a&gt;&lt;br&gt;:WWL_WIN_evergreen:112009
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26188568&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26188568&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-SCXML--Retrieving-a-%28wrapped%29-NodeSet-for-an-XPath---user-defined-XPath-functions-tp25976365p26188568.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26188325</id>
	<title>RE: Managing content in an SCXML file</title>
	<published>2009-11-03T15:10:11Z</published>
	<updated>2009-11-03T15:10:11Z</updated>
	<author>
		<name>mgainty</name>
	</author>
	<content type="html">&lt;br&gt;Cedric
&lt;br&gt;&lt;br&gt;a markup implies SGML..i assume this might be described as XSD or XML Schema Definition?
&lt;br&gt;Can you describe the events this state-machine model would support?
&lt;br&gt;can you describe the content each event would carry and or generate?
&lt;br&gt;Can you describe what would be contained in the header for each Event?
&lt;br&gt;Can you describe what the body would look like for each event?
&lt;br&gt;&lt;br&gt;You might be able to implement a simple listener that listens on fixed host/port and when message is received (EOT is achieved after receiving header and body)
&lt;br&gt;you can hand the body of the message to device
&lt;br&gt;&lt;br&gt;can you confine the size of the message? 
&lt;br&gt;if not you might want to implement a packet model to buffer the packets to a known structure
&lt;br&gt;(as in some sort of linked-list) 
&lt;br&gt;until body EOT is achieved 
&lt;br&gt;&lt;br&gt;sounds like a fun project!
&lt;br&gt;Bon Chance
&lt;br&gt;Martin Gainty 
&lt;br&gt;______________________________________________ 
&lt;br&gt;Note de déni et de confidentialité
&lt;br&gt;&amp;nbsp;Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26188325&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cedric.nicolas@...&lt;/a&gt;
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26188325&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Managing content in an SCXML file
&lt;br&gt;&amp;gt; Date: Tue, 3 Nov 2009 23:23:01 +0100
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Dear Rahul and others,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I want to do a quite simple thing : having a state machine on a server
&lt;br&gt;&amp;gt; controlling user interface of mobile clients. 
&lt;br&gt;&amp;gt; The state machine would have a lot of states and complex stream, and for
&lt;br&gt;&amp;gt; some specific states it will embedded a simple markup language content (e.g.
&lt;br&gt;&amp;gt; an html subset) that will be delivered to the mobile client which when it
&lt;br&gt;&amp;gt; receives it, interpret and display it.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; For example the server state machine would have &amp;quot;connect&amp;quot; state that will be
&lt;br&gt;&amp;gt; triggered when the mobile is establishing a connection, and would react by
&lt;br&gt;&amp;gt; giving to the mobile client the content to be displayed. An simple example
&lt;br&gt;&amp;gt; would be :
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;state id=&amp;quot;connect&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;content&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;title&amp;gt; Welcome ! &amp;lt;/title&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;button&amp;gt; text=&amp;quot;Click here to continue&amp;quot; action =&amp;quot;send_OK&amp;quot;
&lt;br&gt;&amp;gt; &amp;lt;/button&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;button&amp;gt; text=&amp;quot;Quit&amp;quot; action =&amp;quot;send_Quit&amp;quot; &amp;lt;/button&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/content&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;transition event=&amp;quot;send_OK&amp;quot; target=&amp;quot;next_state&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;transition event=&amp;quot;send_Quit&amp;quot; target=&amp;quot;final_state&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/state&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In that case the content in &amp;lt;content&amp;gt; tags will be retrieved by the Java
&lt;br&gt;&amp;gt; code on void connect() method, and sent to the device. Server will listen to
&lt;br&gt;&amp;gt; device and when receiving a message like send_OK, trigger this to the state
&lt;br&gt;&amp;gt; machine.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; To summarize I want to emulate a tiny web server hosting some tiny pages
&lt;br&gt;&amp;gt; with a state machine.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've gone through all the documentation of Commons Scxml, and didn't find an
&lt;br&gt;&amp;gt; easy way to do this. The possible ways I see are to use a data model, but
&lt;br&gt;&amp;gt; using &amp;lt;assign&amp;gt; tags for setting my content seems to be quite heavy to write
&lt;br&gt;&amp;gt; and don't know how to assign an XML tree to a data model node, and other
&lt;br&gt;&amp;gt; possibility would be to use maybe custom actions, but how to describe in a
&lt;br&gt;&amp;gt; simple way my XML like-content ?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Do you have a suggestion to do this in an easy and readable way ?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26188325&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26188325&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&amp;nbsp;		 	 &amp;nbsp; 		 &amp;nbsp;
&lt;br&gt;_________________________________________________________________
&lt;br&gt;Windows 7: Unclutter your desktop.
&lt;br&gt;&lt;a href=&quot;http://go.microsoft.com/?linkid=9690331&amp;ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://go.microsoft.com/?linkid=9690331&amp;ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-SCXML--Retrieving-a-%28wrapped%29-NodeSet-for-an-XPath---user-defined-XPath-functions-tp25976365p26188325.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26187714</id>
	<title>Managing content in an SCXML file</title>
	<published>2009-11-03T14:23:01Z</published>
	<updated>2009-11-03T14:23:01Z</updated>
	<author>
		<name>Cedric NICOLAS</name>
	</author>
	<content type="html">Dear Rahul and others,
&lt;br&gt;&lt;br&gt;I want to do a quite simple thing : having a state machine on a server
&lt;br&gt;controlling user interface of mobile clients. 
&lt;br&gt;The state machine would have a lot of states and complex stream, and for
&lt;br&gt;some specific states it will embedded a simple markup language content (e.g.
&lt;br&gt;an html subset) that will be delivered to the mobile client which when it
&lt;br&gt;receives it, interpret and display it.
&lt;br&gt;&lt;br&gt;For example the server state machine would have &amp;quot;connect&amp;quot; state that will be
&lt;br&gt;triggered when the mobile is establishing a connection, and would react by
&lt;br&gt;giving to the mobile client the content to be displayed. An simple example
&lt;br&gt;would be :
&lt;br&gt;&lt;br&gt;&amp;lt;state id=&amp;quot;connect&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;content&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt; Welcome ! &amp;lt;/title&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button&amp;gt; text=&amp;quot;Click here to continue&amp;quot; action =&amp;quot;send_OK&amp;quot;
&lt;br&gt;&amp;lt;/button&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button&amp;gt; text=&amp;quot;Quit&amp;quot; action =&amp;quot;send_Quit&amp;quot; &amp;lt;/button&amp;gt;
&lt;br&gt;&amp;lt;/content&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;transition event=&amp;quot;send_OK&amp;quot; target=&amp;quot;next_state&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;transition event=&amp;quot;send_Quit&amp;quot; target=&amp;quot;final_state&amp;quot;/&amp;gt;
&lt;br&gt;&amp;lt;/state&amp;gt;
&lt;br&gt;&lt;br&gt;In that case the content in &amp;lt;content&amp;gt; tags will be retrieved by the Java
&lt;br&gt;code on void connect() method, and sent to the device. Server will listen to
&lt;br&gt;device and when receiving a message like send_OK, trigger this to the state
&lt;br&gt;machine.
&lt;br&gt;&lt;br&gt;To summarize I want to emulate a tiny web server hosting some tiny pages
&lt;br&gt;with a state machine.
&lt;br&gt;&lt;br&gt;I've gone through all the documentation of Commons Scxml, and didn't find an
&lt;br&gt;easy way to do this. The possible ways I see are to use a data model, but
&lt;br&gt;using &amp;lt;assign&amp;gt; tags for setting my content seems to be quite heavy to write
&lt;br&gt;and don't know how to assign an XML tree to a data model node, and other
&lt;br&gt;possibility would be to use maybe custom actions, but how to describe in a
&lt;br&gt;simple way my XML like-content ?
&lt;br&gt;&lt;br&gt;Do you have a suggestion to do this in an easy and readable way ?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26187714&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26187714&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-SCXML--Retrieving-a-%28wrapped%29-NodeSet-for-an-XPath---user-defined-XPath-functions-tp25976365p26187714.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26184660</id>
	<title>Re: [SCXML] XPathEvaluator / Error accessing complex event payload</title>
	<published>2009-11-03T10:53:31Z</published>
	<updated>2009-11-03T10:53:31Z</updated>
	<author>
		<name>Rahul Akolkar</name>
	</author>
	<content type="html">On Tue, Nov 3, 2009 at 6:52 AM, Jaroslav Pullmann
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26184660&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaroslav.pullmann@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  Hello Rahul,
&lt;br&gt;&amp;gt;  sorry for the late response, I've been out of office last week.
&lt;br&gt;&amp;gt;  I looked at the code once again and found the error cause. The payload
&lt;br&gt;&amp;gt;  was in deed wrapped into a bean with a dedicated accessor method
&lt;br&gt;&amp;gt;  Node getPayload(), instead of passing the node directly. This worked
&lt;br&gt;&amp;gt;  only with the Jexl-evaluator..
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;lt;snip/&amp;gt;
&lt;br&gt;&lt;br&gt;Cool, makes sense.
&lt;br&gt;&lt;br&gt;-Rahul
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;  Please find attached the extended test suite for XPath. This may
&lt;br&gt;&amp;gt;  be of interest for other users in a comparative documentation of
&lt;br&gt;&amp;gt;  the XPath-based access to event payload and data models        .
&lt;br&gt;&amp;gt;   Best regards
&lt;br&gt;&amp;gt;    Jaro
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Rahul Akolkar wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Sun, Oct 25, 2009 at 11:47 AM, Jaroslav Pullmann
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26184660&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaroslav.pullmann@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;  Hello Rahul,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;  although not yet officially released I like using the J6 branch
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;  (commons-scxml-1.0-SNAPSHOT.jar) because of its XPath support.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;  Recently I experience problems when accessing the complex event
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;  payload (Node: &amp;lt;payload&amp;gt;&amp;lt;data&amp;gt;&amp;lt;status&amp;gt;started&amp;lt;/status&amp;gt;&amp;lt;/data&amp;gt;&amp;lt;/payload&amp;gt;,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;  plain string payload is o.k.)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;  This works fine with JexlEvaluator:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;       &amp;lt;transition event=&amp;quot;statuschange&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;               &amp;lt;log label=&amp;quot;Status changed to&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; expr=&amp;quot;Data(_eventdata.payload,'/data/status')&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;       &amp;lt;/transition&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;  but is broken with XPathEvaluator:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;       &amp;lt;transition event=&amp;quot;statuschange&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;               &amp;lt;log label=&amp;quot;Message&amp;quot; expr=&amp;quot;$_eventdata/data/status&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;       &amp;lt;/transition&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;snip/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The two evaluators handle XPath processing differently, so in order to
&lt;br&gt;&amp;gt;&amp;gt; track down the error below, please say more as to how you obtained the
&lt;br&gt;&amp;gt;&amp;gt; Node that became the event payload. For example, if the
&lt;br&gt;&amp;gt;&amp;gt; DocumentBuilder API is used to parse the above XML, I'd expect it to
&lt;br&gt;&amp;gt;&amp;gt; work in either cases. I would, however, expect the expression when
&lt;br&gt;&amp;gt;&amp;gt; using the XPath evaluator in this case to be either
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;$_eventdata/payload/data/status&amp;quot; or &amp;quot;$_eventdata//data/status&amp;quot; (note
&lt;br&gt;&amp;gt;&amp;gt; two /s before data). As an aside, for good measure, specifying an
&lt;br&gt;&amp;gt;&amp;gt; xmlns on payloads is also recommended practice i.e. &amp;lt;payload
&lt;br&gt;&amp;gt;&amp;gt; xmlns=&amp;quot;&amp;quot;&amp;gt;...&amp;lt;/payload&amp;gt;.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Also say something about the environment and how we're seeing xalan
&lt;br&gt;&amp;gt;&amp;gt; classes in the traces that aren't repackaged. The J6 branch requires
&lt;br&gt;&amp;gt;&amp;gt; JDK 1.6 where, for example, I'd expect to see something like
&lt;br&gt;&amp;gt;&amp;gt; com.sun.org.apache.xpath.internal.XPath as against
&lt;br&gt;&amp;gt;&amp;gt; org.apache.xpath.XPath in the traces.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In order for us to reproduce this, if you can produce a small JUnit
&lt;br&gt;&amp;gt;&amp;gt; test case in the Commons SCXML test suite (see existing ones in
&lt;br&gt;&amp;gt;&amp;gt; src/test/java/...oacse.../xpath) that produces the trace below, that
&lt;br&gt;&amp;gt;&amp;gt; can also help.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -Rahul
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; javax.xml.transform.TransformerException:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org.apache.xpath.objects.XObject
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; incompatible with org.apache.xpath.objects.XNodeSet
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;       at org.apache.xpath.XPath.execute(Unknown Source)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;       at org.apache.xpath.jaxp.XPathExpressionImpl.evaluate(Unknown
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Source)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;       at org.apache.xpath.jaxp.XPathImpl.evaluate(Unknown Source)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;       at
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org.apache.commons.scxml.env.xpath.XPathEvaluator.eval(XPathEvaluator.java:90)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;       at org.apache.commons.scxml.model.Log.execute(Log.java:107)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;       at
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org.apache.commons.scxml.semantics.SCXMLSemanticsImpl.executeActions(SCXMLSemanticsImpl.java:223)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;       at
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org.apache.commons.scxml.SCXMLExecutor.triggerEvents(SCXMLExecutor.java:131)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Caused by: java.lang.ClassCastException: org.apache.xpath.objects.XObject
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; incompatible with org.apache.xpath.objects.XNodeSet
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;       at
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org.apache.xpath.axes.FilterExprIteratorSimple.executeFilterExpr(Unknown
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Source)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;       at org.apache.xpath.axes.FilterExprWalker.setRoot(Unknown Source)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;       at org.apache.xpath.axes.WalkingIterator.setRoot(Unknown Source)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;       at org.apache.xpath.axes.NodeSequence.setRoot(Unknown Source)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;       at org.apache.xpath.axes.LocPathIterator.execute(Unknown Source)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;       ... 13 more
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;       Is this may be due to an incorrect variable naming or whichever
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; user
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; error ?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;   Many thanks for your help!
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;     Jaro
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Jaroslav Pullmann
&lt;br&gt;&amp;gt; Web Compliance Center - Fraunhofer FIT
&lt;br&gt;&amp;gt; Schloss Birlinghoven, D-53757 Sankt Augustin, Germany
&lt;br&gt;&amp;gt; Phone: +49-2241-142623    Fax: +49-2241-142065
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26184660&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26184660&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-SCXML--Retrieving-a-%28wrapped%29-NodeSet-for-an-XPath---user-defined-XPath-functions-tp25976365p26184660.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26178550</id>
	<title>Re: [SCXML] XPathEvaluator / Error accessing complex event payload</title>
	<published>2009-11-03T03:52:10Z</published>
	<updated>2009-11-03T03:52:10Z</updated>
	<author>
		<name>Jaroslav Pullmann-3</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&amp;nbsp; Hello Rahul,
&lt;br&gt;&amp;nbsp; &amp;nbsp;sorry for the late response, I've been out of office last week.
&lt;br&gt;&amp;nbsp; I looked at the code once again and found the error cause. The payload
&lt;br&gt;&amp;nbsp; was in deed wrapped into a bean with a dedicated accessor method
&lt;br&gt;&amp;nbsp; Node getPayload(), instead of passing the node directly. This worked
&lt;br&gt;&amp;nbsp; only with the Jexl-evaluator..
&lt;br&gt;&lt;br&gt;&amp;nbsp; Please find attached the extended test suite for XPath. This may
&lt;br&gt;&amp;nbsp; be of interest for other users in a comparative documentation of
&lt;br&gt;&amp;nbsp; the XPath-based access to event payload and data models	.
&lt;br&gt;&amp;nbsp; &amp;nbsp; Best regards
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Jaro
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Rahul Akolkar wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sun, Oct 25, 2009 at 11:47 AM, Jaroslav Pullmann
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26178550&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaroslav.pullmann@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Hello Rahul,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;although not yet officially released I like using the J6 branch
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;(commons-scxml-1.0-SNAPSHOT.jar) because of its XPath support.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Recently I experience problems when accessing the complex event
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;payload (Node: &amp;lt;payload&amp;gt;&amp;lt;data&amp;gt;&amp;lt;status&amp;gt;started&amp;lt;/status&amp;gt;&amp;lt;/data&amp;gt;&amp;lt;/payload&amp;gt;,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;plain string payload is o.k.)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;This works fine with JexlEvaluator:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;transition event=&amp;quot;statuschange&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;log label=&amp;quot;Status changed to&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; expr=&amp;quot;Data(_eventdata.payload,'/data/status')&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/transition&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;but is broken with XPathEvaluator:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;transition event=&amp;quot;statuschange&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;log label=&amp;quot;Message&amp;quot; expr=&amp;quot;$_eventdata/data/status&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/transition&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;snip/&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The two evaluators handle XPath processing differently, so in order to
&lt;br&gt;&amp;gt; track down the error below, please say more as to how you obtained the
&lt;br&gt;&amp;gt; Node that became the event payload. For example, if the
&lt;br&gt;&amp;gt; DocumentBuilder API is used to parse the above XML, I'd expect it to
&lt;br&gt;&amp;gt; work in either cases. I would, however, expect the expression when
&lt;br&gt;&amp;gt; using the XPath evaluator in this case to be either
&lt;br&gt;&amp;gt; &amp;quot;$_eventdata/payload/data/status&amp;quot; or &amp;quot;$_eventdata//data/status&amp;quot; (note
&lt;br&gt;&amp;gt; two /s before data). As an aside, for good measure, specifying an
&lt;br&gt;&amp;gt; xmlns on payloads is also recommended practice i.e. &amp;lt;payload
&lt;br&gt;&amp;gt; xmlns=&amp;quot;&amp;quot;&amp;gt;...&amp;lt;/payload&amp;gt;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Also say something about the environment and how we're seeing xalan
&lt;br&gt;&amp;gt; classes in the traces that aren't repackaged. The J6 branch requires
&lt;br&gt;&amp;gt; JDK 1.6 where, for example, I'd expect to see something like
&lt;br&gt;&amp;gt; com.sun.org.apache.xpath.internal.XPath as against
&lt;br&gt;&amp;gt; org.apache.xpath.XPath in the traces.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In order for us to reproduce this, if you can produce a small JUnit
&lt;br&gt;&amp;gt; test case in the Commons SCXML test suite (see existing ones in
&lt;br&gt;&amp;gt; src/test/java/...oacse.../xpath) that produces the trace below, that
&lt;br&gt;&amp;gt; can also help.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -Rahul
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; javax.xml.transform.TransformerException: org.apache.xpath.objects.XObject
&lt;br&gt;&amp;gt;&amp;gt; incompatible with org.apache.xpath.objects.XNodeSet
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org.apache.xpath.XPath.execute(Unknown Source)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org.apache.xpath.jaxp.XPathExpressionImpl.evaluate(Unknown Source)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org.apache.xpath.jaxp.XPathImpl.evaluate(Unknown Source)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt;&amp;gt; org.apache.commons.scxml.env.xpath.XPathEvaluator.eval(XPathEvaluator.java:90)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org.apache.commons.scxml.model.Log.execute(Log.java:107)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt;&amp;gt; org.apache.commons.scxml.semantics.SCXMLSemanticsImpl.executeActions(SCXMLSemanticsImpl.java:223)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt;&amp;gt; org.apache.commons.scxml.SCXMLExecutor.triggerEvents(SCXMLExecutor.java:131)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Caused by: java.lang.ClassCastException: org.apache.xpath.objects.XObject
&lt;br&gt;&amp;gt;&amp;gt; incompatible with org.apache.xpath.objects.XNodeSet
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt;&amp;gt; org.apache.xpath.axes.FilterExprIteratorSimple.executeFilterExpr(Unknown
&lt;br&gt;&amp;gt;&amp;gt; Source)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org.apache.xpath.axes.FilterExprWalker.setRoot(Unknown Source)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org.apache.xpath.axes.WalkingIterator.setRoot(Unknown Source)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org.apache.xpath.axes.NodeSequence.setRoot(Unknown Source)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org.apache.xpath.axes.LocPathIterator.execute(Unknown Source)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;... 13 more
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Is this may be due to an incorrect variable naming or whichever user
&lt;br&gt;&amp;gt;&amp;gt; error ?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;Many thanks for your help!
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Jaro
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26178550&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26178550&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Jaroslav Pullmann
&lt;br&gt;Web Compliance Center - Fraunhofer FIT
&lt;br&gt;Schloss Birlinghoven, D-53757 Sankt Augustin, Germany
&lt;br&gt;Phone: +49-2241-142623 &amp;nbsp; &amp;nbsp;Fax: +49-2241-142065
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26178550&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26178550&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;XPathTestSuite.zip&lt;/strong&gt; (8K) &lt;a href=&quot;http://old.nabble.com/attachment/26178550/0/XPathTestSuite.zip&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-SCXML--Retrieving-a-%28wrapped%29-NodeSet-for-an-XPath---user-defined-XPath-functions-tp25976365p26178550.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26164166</id>
	<title>Re: Loading proeprteis according local</title>
	<published>2009-11-02T05:56:28Z</published>
	<updated>2009-11-02T05:56:28Z</updated>
	<author>
		<name>Jörg Schaible-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;NewWay wrote at Montag, 2. November 2009 13:38:
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm trying to understand if the ability to load bundled resources as
&lt;br&gt;&amp;gt; described
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;a href=&quot;http://java.sun.com/j2se/1.4.2/docs/api/java/util/PropertyResourceBundle.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/j2se/1.4.2/docs/api/java/util/PropertyResourceBundle.html&lt;/a&gt;&lt;br&gt;&amp;gt; here &amp;nbsp;goes without saying when I'm using
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;a href=&quot;http://commons.apache.org/configuration/apidocs/org/apache/commons/configuration/PropertiesConfiguration.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://commons.apache.org/configuration/apidocs/org/apache/commons/configuration/PropertiesConfiguration.html&lt;/a&gt;&lt;br&gt;&amp;gt; PropertiesConfiguration
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I would appreciate a reference to a place where this is explained
&lt;br&gt;&lt;br&gt;I am not sure what you mean. Commons Configuration and ResourceBundles are
&lt;br&gt;simply something different. Both can use Java property files for their
&lt;br&gt;data - but that's all what they share.
&lt;br&gt;&lt;br&gt;- Jörg
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26164166&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26164166&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Loading-proeprteis-according-local-tp26156700p26164166.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26156700</id>
	<title>Loading proeprteis according local</title>
	<published>2009-11-02T04:38:50Z</published>
	<updated>2009-11-02T04:38:50Z</updated>
	<author>
		<name>NewWay</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm trying to understand if the ability to load bundled resources as described &lt;a href=&quot;http://java.sun.com/j2se/1.4.2/docs/api/java/util/PropertyResourceBundle.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&amp;nbsp;goes without saying when I'm using &lt;a href=&quot;http://commons.apache.org/configuration/apidocs/org/apache/commons/configuration/PropertiesConfiguration.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;PropertiesConfiguration &lt;/a&gt;&lt;br&gt;&lt;br&gt;I would appreciate a reference to a place where this is explained
&lt;br&gt;&lt;br&gt;Thank you</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Loading-proeprteis-according-local-tp26156700p26156700.html" />
</entry>

</feed>
