Jérôme Serré | 29 Jul 09:54 2014
Picon

[daemon]

Hello,

Sorry if I’m posting in a wrong way but it’s difficult to search in
thousands messages from the archive.

I want to use prunserv (Commons Daemon procrun (1.0.15.0 64-bit)) like a
windows 7 x64 service with simple java class but it doesn’t work as I want.

1.        Registration of prunser is ok

2.        Inst service is ok

3.        Running service in prunserv console is ok

4.        Running service in service windows console is NOT ok

I get this error : service doesn’t start. File not found.

CMD =

TestService //IS//TestService --DisplayName="Test Service"
--Install="Z:\Jerome\SoftWare\Divers\Developpement\java\test\TestService.exe
" --Jvm="C:\Program Files\Java\jre7\bin\server\jvm.dll" --StartMode=jvm
--StartClass=Main --StopMode=jvm --StopClass=Main --JavaHome="C:\Program
Files\Java\jre7" --StartMethod=start --StopMethod=stop --StdError=auto
--LogPath="Z:\Jerome\SoftWare\Divers\Developpement\java\test\logs"

TestService start

Thank you for your help.
(Continue reading)

Jérôme Serré | 29 Jul 10:04 2014
Picon

[daemon]

Hello,

Sorry if I’m posting in a wrong way but it’s difficult to search in
thousands messages from the archive.

I want to use prunserv (Commons Daemon procrun (1.0.15.0 64-bit)) like a
windows 7 x64 service with simple java class but it doesn’t work as I want.

1.        Registration of prunser is ok

2.        Inst service is ok

3.        Running service in prunserv console is ok

4.        Running service in service windows console is NOT ok

I get this error : service doesn’t start. File not found.

CMD =

TestService //IS//TestService --DisplayName="Test Service"
--Install="Z:\Jerome\SoftWare\Divers\Developpement\java\test\TestService.exe
" --Jvm="C:\Program Files\Java\jre7\bin\server\jvm.dll" --StartMode=jvm
--StartClass=Main --StopMode=jvm --StopClass=Main --JavaHome="C:\Program
Files\Java\jre7" --StartMethod=start --StopMethod=stop --StdError=auto
--LogPath="Z:\Jerome\SoftWare\Divers\Developpement\java\test\logs"

TestService start

Thank you for your help.
(Continue reading)

Mehmet Ozan Kabak | 24 Jul 09:36 2014
Picon

[math] Rank-one updates for matrix decompositions

Hello all,

I have an application where I need to efficiently update the QR decomposition, after a rank-one
modification, of some matrix A. I want to do this because I'd like to use multiple linear regression on a
growing set of regressors. I checked the documentation to see whether a method is provided for such
rank-one updates, but I couldn't find it. Is there any? If not, do you know of an alternative, yet still
efficient, way to approach this task?

Thanks!

Mehmet Ozan Kabak
Benedikt Ritter | 21 Jul 07:47 2014
Picon

[ANNOUNCE] Apache Commons DbUtils 1.6 released!

The Apache Commons Team is pleased to announce the release of Apache
Commons DbUtils 1.6.

The Commons DbUtils library is a small set of classes designed to make
working with JDBC easier. JDBC resource cleanup code is mundane, error
prone work so these classes abstract out all of the cleanup tasks from your
code leaving you with what you really wanted to do with JDBC in the first
place: query and update data.

1.6 is fully binary compatible to the last release. No client code changes
are required to migrate from version 1.5 to 1.6. The minimum required JDK
version for this release is 1.6.

Source and binary distributions are available for download from the Apache
Commons download site:
  http://commons.apache.org/proper/commons-dbutils/download_dbutils.cgi

When downloading, please verify signatures using the KEYS file available at
the above location when downloading the release.

Alternatively the release can be pulled via maven:
  <groupId>commons-dbutils</groupId>
  <artifactId>commons-dbutils</artifactId>
  <version>1.6</version>

Full details of all the changes in 1.6 can be found in the changelog:
  http://commons.apache.org/proper/commons-dbutils/changes-report.html

For complete information on Commons DbUtils, including instructions on how
to submit bug reports, patches, or suggestions for improvement, see the
(Continue reading)

Madiba Soft | 18 Jul 09:44 2014
Picon

[email] Map cid's to attachments? (Rendering html content)

Hi,

I'm trying to figure out how to display the output of
MimeMessageParser's getHtmlContent() into a dojo html widget.
Obviously the cid: links are not understood by any parser.
In my previous implementation (using javax.mail) I simply replaced all
the cid: links with url's pointing back to a web service which served
those attachtments.

But with commons-email, I cannot find a way to figure out which cid:
corresponds to which attachment (parser.getAttachmentList();) since
the DataSource only shows the attachment name.

Could anyone point me at a way to figure out which cid maps to which attachment?

Please note I am loading emails from file, not constructing them
myself, so HtmlEmail is of no use, unless there is some why perhaps to
create an HtmlEmail from a saved email - but even then, the inlineEmbeds field
is proptected, so I cannot access it.

many thanks
Eldon Carman | 17 Jul 18:44 2014

[io] ByteArrayOutputStream/DataOutputStream without synchronization?

Hi,

I am looking for a version of ByteArrayOutputStream and DataOutputStream
without synchronization. Does Apache Commons IO have this as part of their
library? Or do you have a suggestion on an other class that has the same
functionality with out synchronization. In my case, I can get 10 to 20%
boost in performance by only removing synchronization from these class.

Thanks for your feedback,
Eldon
Andrew Martin | 17 Jul 18:24 2014

[daemon]

Hi,

 

I’m trying to run a java daemon using jsvc and the Daemon interface. The java project is a jar file which has a bunch of dependencies in a manifest file (including commons-daemon), and I add this jar file to the classpath when running jsvc. When I try to execute via jsvc however, I get this stacktrace in stderr:

 

java.lang.InstantiationException: com.mycomany.mypackage.MyClass

        at java.lang.Class.newInstance(Class.java:359)

        at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:190)

17/07/2014 17:03:34 9904 jsvc.exec error: Cannot load daemon

17/07/2014 17:03:34 9903 jsvc.exec error: Service exit with a return value of 3

 

Where MyClass is the class that I pass into jsvc.

 

I have tried using the –verbose option to help diagnose the problem, and with that I can see in stdout that it loads all the dependencies from the manifest just fine, but no additional information is provided to help diagnose the problem. Is there a way to get more information about what causes this InstantationException?

 

Best,

Andrew



  Andrew Martin
Software Engineering Co-op, Software Development | exactEarth Ltd.
 
60 Struck Ct. Cambridge, Ontario N1R 8L2
office. +1.519.622.4445
email. Andrew.Martin <at> exactearth.com

web. www.exactearth.com

 



This e-mail and any attachment is for authorized use by the intended recipient(s) only. It contains proprietary or confidential information and is not to be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail, any attachment and all copies and inform the sender. Thank you.

anshul gangwar | 16 Jul 14:16 2014
Picon

[SCXML] mapping of data types used to store values of datamodel with the java datatypes

Hi,

I have one query regarding datatypes used to store values of SCXM datamodel.

Suppose there is a string A = "1234567891". This variable is sent in
payload when event is fired and is assigned in the SCXML datamodel through
<assign> tag.
Now when I am fetching this variable A in invoker class, its value is in
exponential form. So, in order to get the actual value I have perform below
steps:

                double d =
Double.parseDouble(String.valueOf(lastParams.get("A")));
                String deviceId = BigDecimal.valueOf(d).toPlainString();

If the value of A does not reach to specific range then it simply convert
it into float instead of converting it in exponential form.

I would like to know how commons SCXML datatypes are mapped with the java
datatypes? Is this the right way of doing converting Integer values from
SCXML?
Which document can I refer for such details?

Thanks in advance.

Regards,
Anshul
Mansour Al Akeel | 15 Jul 15:02 2014
Picon

Parsing and solving algebraic equation from string

I am new to commons-math. I need to solve simple equations in the form
"x + 3 = 10"
The closest thing I was able to find is
http://commons.apache.org/proper/commons-math/userguide/linear.html#a3.4_Solving_linear_systems

However, this needs a square matrix, and can not build the
coefficients and constants from the string.
Is there a matrix builder that I can use to create the 2 dimensional
arrays to solve this equation ?

Thank you.
Thomas Neidhart | 11 Jul 17:06 2014
Picon

[ANNOUNCEMENT] Commons Logging 1.2 Released

The Apache Commons Team is pleased to announce the availability of
Apache Commons Logging 1.2.

Commons-Logging is a thin adapter allowing configurable bridging to other,
well-known logging systems.

Details of the changes and bug fixes in this release can be found
in the release notes at
  http://www.apache.org/dist/commons/logging/RELEASE-NOTES.txt

The most notable change being that support for Java 1.1 has been dropped,
which should result in improved performance, see [LOGGING-37] for more
information.

Source and binary distributions are available for download from the
Apache Commons download site:
  http://commons.apache.org/proper/commons-logging/download_logging.cgi

When downloading, please verify signatures using the KEYS file available
at the above location when downloading the release.

For complete information on Commons Logging, including instructions
on how to submit bug reports, patches, or suggestions for improvement,
see the Apache Commons Logging website:

http://commons.apache.org/proper/commons-logging/

Thomas, on behalf of the Apache Commons community
Thomas Neidhart | 11 Jul 16:59 2014
Picon

[ANNOUNCEMENT] Commons Email 1.3.3 Released

The Apache Commons Team is pleased to announce the availability of
Apache Commons Email 1.3.3.

Commons-Email aims to provide an API for sending email.
It is built on top of the JavaMail API, which it aims to simplify.

Details of the changes and bug fixes in this release can be found
in the release notes at
  http://www.apache.org/dist/commons/email/RELEASE-NOTES.txt

Source and binary distributions are available for download from the
Apache Commons download site:
  http://commons.apache.org/proper/commons-email/download_email.cgi

When downloading, please verify signatures using the KEYS file available
at the above location when downloading the release.

For complete information on Commons Email, including instructions
on how to submit bug reports, patches, or suggestions for improvement,
see the Apache Commons Email website:

http://commons.apache.org/proper/commons-email/

Thomas, on behalf of the Apache Commons community

Gmane