[jira] Reopened: (BEANUTILS-362) Add serialVersionUID to Serializable classes

2010-03-23 Thread Niall Pemberton (JIRA)

 [ 
https://issues.apache.org/jira/browse/BEANUTILS-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Niall Pemberton reopened BEANUTILS-362:
---


 Add serialVersionUID to Serializable classes
 

 Key: BEANUTILS-362
 URL: https://issues.apache.org/jira/browse/BEANUTILS-362
 Project: Commons BeanUtils
  Issue Type: Bug
Reporter: Sebb
Assignee: Niall Pemberton
 Fix For: 1.8.3

 Attachments: beanutils-362.diff


 The following classes are Serializable, but don't have serialVersionUID 
 defined:
 BasicDynaBean
 BasicDynaClass 
 DynaProperty 
 LazyDynaBean 
 LazyDynaList 
 Performance (and JVM interoperability) would be improved by adding the UIDs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (BEANUTILS-362) Add serialVersionUID to Serializable classes

2010-03-23 Thread Niall Pemberton (JIRA)

 [ 
https://issues.apache.org/jira/browse/BEANUTILS-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Niall Pemberton updated BEANUTILS-362:
--

Fix Version/s: (was: 1.8.3)
   LATER THAN 1.8.3

The next release is going to be a minor bugfix release so, on thinking about 
it, seems unwise to risk screwing anyone up - however minor - so I've reverted 
the change:

http://svn.apache.org/viewvc?view=revisionrevision=926529



 Add serialVersionUID to Serializable classes
 

 Key: BEANUTILS-362
 URL: https://issues.apache.org/jira/browse/BEANUTILS-362
 Project: Commons BeanUtils
  Issue Type: Bug
Reporter: Sebb
Assignee: Niall Pemberton
 Fix For: LATER THAN 1.8.3

 Attachments: beanutils-362.diff


 The following classes are Serializable, but don't have serialVersionUID 
 defined:
 BasicDynaBean
 BasicDynaClass 
 DynaProperty 
 LazyDynaBean 
 LazyDynaList 
 Performance (and JVM interoperability) would be improved by adding the UIDs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Created: (EXEC-45) Error while executing a command like echo

2010-03-23 Thread varma (JIRA)
Error while executing a command like echo
-

 Key: EXEC-45
 URL: https://issues.apache.org/jira/browse/EXEC-45
 Project: Commons Exec
  Issue Type: Bug
Affects Versions: 1.0.1
 Environment: OS: Windows XP SP3
Reporter: varma
Priority: Blocker



Hello,
After looking at the javaDoc for DefaultExecutor, I've tried a simple command 
the does an echo and re-direct the output to a file. But, I'm getting 
IOException. Not sure what I am missing here or is it possible to execute a 
command directly without specifying the path to an executable? I appreciate 
your help.

This is what I'm trying:
{code:title=CommandExec.java|borderStyle=solid}
public final void executeEcho()
{
  try
  {
 final CommandLine command = new CommandLine( echo someValue );
 command.addArgument(  c:\test.txt );

 final DefaultExecutor executor = new DefaultExecutor();
 final int value = executor.execute( command );
 System.out.println(value);
  }
  catch(Exception e)
  {
 e.printStackTrace();
  }
}
{code}

Exception being thrown:
{code:title=exception}
java.io.IOException: Cannot run program echo someValue: CreateProcess 
error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at 
org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
at 
org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:246)
at 
org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:302)
at 
org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:149)
at 
org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:136)
at testing.CommandExex.main(CommandExex.java:15)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find 
the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.init(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 8 more
{code}

From DefaultExecutor's JavaDoc:
{code}
Executor exec = new DefaultExecutor();
CommandLine cl = new CommandLine(ls -l);
int exitvalue = exec.execute(cl);
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (EXEC-45) Error while executing a command like echo

2010-03-23 Thread varma (JIRA)

 [ 
https://issues.apache.org/jira/browse/EXEC-45?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

varma updated EXEC-45:
--

   Priority: Major  (was: Blocker)
Description: 
Hello,
After looking at the javaDoc for DefaultExecutor, I've tried a simple command 
that does an echo and re-direct the output to a file. But, I'm getting 
IOException. Not sure what I am missing here or is it possible to execute a 
command directly without specifying the path to an executable? I appreciate 
your help.

This is what I'm trying:
{code:title=CommandExec.java|borderStyle=solid}
public final void executeEcho()
{
  try
  {
 final CommandLine command = new CommandLine( echo someValue );
 command.addArgument(  c:\test.txt );

 final DefaultExecutor executor = new DefaultExecutor();
 final int value = executor.execute( command );
 System.out.println(value);
  }
  catch(Exception e)
  {
 e.printStackTrace();
  }
}
{code}

Exception being thrown:
{code:title=exception}
java.io.IOException: Cannot run program echo someValue: CreateProcess 
error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at 
org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
at 
org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:246)
at 
org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:302)
at 
org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:149)
at 
org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:136)
at testing.CommandExex.main(CommandExex.java:15)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find 
the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.init(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 8 more
{code}

From DefaultExecutor's JavaDoc:
{code}
Executor exec = new DefaultExecutor();
CommandLine cl = new CommandLine(ls -l);
int exitvalue = exec.execute(cl);
{code}

  was:

Hello,
After looking at the javaDoc for DefaultExecutor, I've tried a simple command 
the does an echo and re-direct the output to a file. But, I'm getting 
IOException. Not sure what I am missing here or is it possible to execute a 
command directly without specifying the path to an executable? I appreciate 
your help.

This is what I'm trying:
{code:title=CommandExec.java|borderStyle=solid}
public final void executeEcho()
{
  try
  {
 final CommandLine command = new CommandLine( echo someValue );
 command.addArgument(  c:\test.txt );

 final DefaultExecutor executor = new DefaultExecutor();
 final int value = executor.execute( command );
 System.out.println(value);
  }
  catch(Exception e)
  {
 e.printStackTrace();
  }
}
{code}

Exception being thrown:
{code:title=exception}
java.io.IOException: Cannot run program echo someValue: CreateProcess 
error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at 
org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
at 
org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:246)
at 
org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:302)
at 
org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:149)
at 
org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:136)
at testing.CommandExex.main(CommandExex.java:15)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find 
the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.init(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 8 more
{code}

From DefaultExecutor's JavaDoc:
{code}
Executor exec = new DefaultExecutor();
CommandLine cl = new CommandLine(ls -l);
int exitvalue = exec.execute(cl);
{code}


 Error while executing a command like echo
 -

 Key: EXEC-45
 URL: https://issues.apache.org/jira/browse/EXEC-45
 Project: Commons Exec
  Issue Type: Bug
Affects Versions: 1.0.1
 Environment: OS: Windows XP SP3
Reporter: varma

 Hello,
 After looking at the javaDoc for DefaultExecutor, I've tried a simple command 
 that does an echo and re-direct the output to a file. But, I'm getting 
 IOException. Not sure what I am missing here or is it possible to execute a 
 command directly without specifying the path to an executable? I 

[jira] Issue Comment Edited: (VFS-302) FTP Filename Encoding

2010-03-23 Thread Nikos-Filippos Avdoulos (JIRA)

[ 
https://issues.apache.org/jira/browse/VFS-302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12848128#action_12848128
 ] 

Nikos-Filippos Avdoulos edited comment on VFS-302 at 3/23/10 1:39 PM:
--

I had the same problem with greek file names with FTP. I solved it by adding 
the following line : client.setControlEncoding(utf-8) in the 
org.apache.commons.vfs.provider.ftp.FtpClientFactory's method 
createConnection(). It worked and now i can handle files with greek file 
names on a ftp server.

  was (Author: alkmanas):
I had the same problem with greek file names with FTP. I solved it by 
adding the following line : client.setControlEncoding(utf-8) in the 
org.apache.commons.net.ftp.FtpClientFactory's method createConnection(). 
It worked and now i can handle files with greek file names on a ftp server.
  
 FTP Filename Encoding
 -

 Key: VFS-302
 URL: https://issues.apache.org/jira/browse/VFS-302
 Project: Commons VFS
  Issue Type: Bug
Affects Versions: 1.1
 Environment: Linux, vsftpd
Reporter: Oliver Tupran
 Attachments: Modified_FtpClientFactory.java


 I tried to copy a file like münchen.jpeg using VFS to a remote ftp server, 
 which resulted in a wrong encoded filename on the server.
 See also a similar issue from the commons-fileupload project: 
 http://issues.apache.org/jira/browse/FILEUPLOAD-56.
 Forgive my newbieness on VFS, but I would really appreciate a solution.
 I tried something that worked, but it really seems like a dirty trick:
 String encodedFilename = new String(filename.getBytes(), ISO-8859-1);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Created: (MATH-357) Bicubic interpolation

2010-03-23 Thread Gilles (JIRA)
Bicubic interpolation
-

 Key: MATH-357
 URL: https://issues.apache.org/jira/browse/MATH-357
 Project: Commons Math
  Issue Type: New Feature
Reporter: Gilles
Priority: Minor


Second feature requested in [https://issues.apache.org/jira/browse/MATH-353]


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (MATH-357) Bicubic interpolation

2010-03-23 Thread Gilles (JIRA)

 [ 
https://issues.apache.org/jira/browse/MATH-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gilles updated MATH-357:


Attachment: bci.tar.gz

Here is my attempt at implementing this feature.
Please have a look; if there are no obvious blunders, I'll commit the changes 
so that they can make it to the 2.1 release.

The tests should probably be refined. Currently, I've set the tolerances 
arbitrarily so that the tests will pass. Maybe at some point, someone can 
provide more sensible values (e.g. from running another implementation).

Please also check the form (e.g. I'm not sure I've inserted the correct svn 
tags for the new files).


 Bicubic interpolation
 -

 Key: MATH-357
 URL: https://issues.apache.org/jira/browse/MATH-357
 Project: Commons Math
  Issue Type: New Feature
Reporter: Gilles
Priority: Minor
 Attachments: bci.tar.gz


 Second feature requested in [https://issues.apache.org/jira/browse/MATH-353]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Closed: (EXEC-45) Error while executing a command like echo

2010-03-23 Thread Sebb (JIRA)

 [ 
https://issues.apache.org/jira/browse/EXEC-45?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sebb closed EXEC-45.



 Error while executing a command like echo
 -

 Key: EXEC-45
 URL: https://issues.apache.org/jira/browse/EXEC-45
 Project: Commons Exec
  Issue Type: Bug
Affects Versions: 1.0.1
 Environment: OS: Windows XP SP3
Reporter: varma

 Hello,
 After looking at the javaDoc for DefaultExecutor, I've tried a simple command 
 that does an echo and re-direct the output to a file. But, I'm getting 
 IOException. Not sure what I am missing here or is it possible to execute a 
 command directly without specifying the path to an executable? I appreciate 
 your help.
 This is what I'm trying:
 {code:title=CommandExec.java|borderStyle=solid}
 public final void executeEcho()
 {
   try
   {
  final CommandLine command = new CommandLine( echo someValue );
  command.addArgument(  c:\test.txt );
  final DefaultExecutor executor = new DefaultExecutor();
  final int value = executor.execute( command );
  System.out.println(value);
   }
   catch(Exception e)
   {
  e.printStackTrace();
   }
 }
 {code}
 Exception being thrown:
 {code:title=exception}
 java.io.IOException: Cannot run program echo someValue: CreateProcess 
 error=2, The system cannot find the file specified
   at java.lang.ProcessBuilder.start(Unknown Source)
   at java.lang.Runtime.exec(Unknown Source)
   at 
 org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
   at 
 org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:246)
   at 
 org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:302)
   at 
 org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:149)
   at 
 org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:136)
   at testing.CommandExex.main(CommandExex.java:15)
 Caused by: java.io.IOException: CreateProcess error=2, The system cannot find 
 the file specified
   at java.lang.ProcessImpl.create(Native Method)
   at java.lang.ProcessImpl.init(Unknown Source)
   at java.lang.ProcessImpl.start(Unknown Source)
   ... 8 more
 {code}
 From DefaultExecutor's JavaDoc:
 {code}
 Executor exec = new DefaultExecutor();
 CommandLine cl = new CommandLine(ls -l);
 int exitvalue = exec.execute(cl);
 {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Resolved: (EXEC-45) Error while executing a command like echo

2010-03-23 Thread Sebb (JIRA)

 [ 
https://issues.apache.org/jira/browse/EXEC-45?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sebb resolved EXEC-45.
--

Resolution: Invalid

echo is not a valid executable; it is a  built-in DOS command, so the 
behaviour of EXEC is correct.

Also, JIRA is not a support forum; please address usage questions to the 
Commons User list.


 Error while executing a command like echo
 -

 Key: EXEC-45
 URL: https://issues.apache.org/jira/browse/EXEC-45
 Project: Commons Exec
  Issue Type: Bug
Affects Versions: 1.0.1
 Environment: OS: Windows XP SP3
Reporter: varma

 Hello,
 After looking at the javaDoc for DefaultExecutor, I've tried a simple command 
 that does an echo and re-direct the output to a file. But, I'm getting 
 IOException. Not sure what I am missing here or is it possible to execute a 
 command directly without specifying the path to an executable? I appreciate 
 your help.
 This is what I'm trying:
 {code:title=CommandExec.java|borderStyle=solid}
 public final void executeEcho()
 {
   try
   {
  final CommandLine command = new CommandLine( echo someValue );
  command.addArgument(  c:\test.txt );
  final DefaultExecutor executor = new DefaultExecutor();
  final int value = executor.execute( command );
  System.out.println(value);
   }
   catch(Exception e)
   {
  e.printStackTrace();
   }
 }
 {code}
 Exception being thrown:
 {code:title=exception}
 java.io.IOException: Cannot run program echo someValue: CreateProcess 
 error=2, The system cannot find the file specified
   at java.lang.ProcessBuilder.start(Unknown Source)
   at java.lang.Runtime.exec(Unknown Source)
   at 
 org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
   at 
 org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:246)
   at 
 org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:302)
   at 
 org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:149)
   at 
 org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:136)
   at testing.CommandExex.main(CommandExex.java:15)
 Caused by: java.io.IOException: CreateProcess error=2, The system cannot find 
 the file specified
   at java.lang.ProcessImpl.create(Native Method)
   at java.lang.ProcessImpl.init(Unknown Source)
   at java.lang.ProcessImpl.start(Unknown Source)
   ... 8 more
 {code}
 From DefaultExecutor's JavaDoc:
 {code}
 Executor exec = new DefaultExecutor();
 CommandLine cl = new CommandLine(ls -l);
 int exitvalue = exec.execute(cl);
 {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (MATH-357) Bicubic interpolation

2010-03-23 Thread Luc Maisonobe (JIRA)

[ 
https://issues.apache.org/jira/browse/MATH-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12848905#action_12848905
 ] 

Luc Maisonobe commented on MATH-357:


I've reviewed your patch and it seems very good to me. It even includes errors 
messages translations.
So to be really picky, it would be even better with a paragraph or two in the 
user guide and an entry in the changes.xml file to explain the new feature.
Thanks for the good work

 Bicubic interpolation
 -

 Key: MATH-357
 URL: https://issues.apache.org/jira/browse/MATH-357
 Project: Commons Math
  Issue Type: New Feature
Reporter: Gilles
Priority: Minor
 Attachments: bci.tar.gz


 Second feature requested in [https://issues.apache.org/jira/browse/MATH-353]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Resolved: (DAEMON-155) BOOL docmdRunService(LPAPXCMDLINE lpCmdline) has strange check for StartServiceCtrlDispatcherW return

2010-03-23 Thread Sebb (JIRA)

 [ 
https://issues.apache.org/jira/browse/DAEMON-155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sebb resolved DAEMON-155.
-

Resolution: Fixed

URL: http://svn.apache.org/viewvc?rev=926881view=rev
Log:
DAEMON-155 BOOL docmdRunService(LPAPXCMDLINE lpCmdline) has strange check for 
StartServiceCtrlDispatcherW return

Modified:
   commons/proper/daemon/trunk/src/native/nt/procrun/apps/prunsrv/prunsrv.c

 BOOL docmdRunService(LPAPXCMDLINE lpCmdline) has strange check for 
 StartServiceCtrlDispatcherW return
 -

 Key: DAEMON-155
 URL: https://issues.apache.org/jira/browse/DAEMON-155
 Project: Commons Daemon
  Issue Type: Bug
  Components: Procrun
Reporter: Sebb
Priority: Minor

 docmdRunService calls docmdRunService as follows:
 {code}
 rv = (StartServiceCtrlDispatcherW(_service_table) == FALSE);
 {code}
 However, the documentation for StartServiceCtrlDispatcherW states that it 
 returns 0 (i.e. FALSE here) only if it fails.
 Thus rv is set FALSE iff the call fails. That's surely the wrong way round? 
 It would explain why the log says 
 [error] Commons Daemon procrun failed with exit value: 4
 I think the code should read
 {code}
 rv = (StartServiceCtrlDispatcherW(_service_table) != 0);
 {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.