[jira] [Updated] (DBCP-356) ManagedDataSource doesn't work with an active transaction in progress on IBM JDK 6+
[ https://issues.apache.org/jira/browse/DBCP-356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Allan Saddi updated DBCP-356: - Attachment: commons-dbcp-TransactionRegistry.diff Running into this issue with Apple's JDK 1.6.0_31, OpenEJB, and the PostgreSQL 9.1 JDBC4 driver. (Though it works fine with the PostgreSQL 8.4 JDBC4 driver.) Balazs' patch also fixes it in DBCP 1.4 -- the version that OpenEJB 4.0.0 uses. However, I had to tweak the patch a bit because the TestBasicManagedDataSource.testReallyClose unit test was failing. ManagedDataSource doesn't work with an active transaction in progress on IBM JDK 6+ --- Key: DBCP-356 URL: https://issues.apache.org/jira/browse/DBCP-356 Project: Commons Dbcp Issue Type: Bug Affects Versions: 1.3, 1.4 Environment: IBM JDK 6 java version 1.6.0 Java(TM) SE Runtime Environment (build pwa6460sr9fp1-20110208_03(SR9 FP1)) IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows 7 amd64-64 jvmwa6460sr9-20110203_74623 (JIT enabled, AOT enabled) J9VM - 20110203_074623 JIT - r9_20101028_17488ifx3 GC - 20101027_AA) JCL - 20110203_01 commons-dbcp of version 1.3 / 1.4 Reporter: an envy guest Labels: ibm, xaresource Fix For: 1.3.1, 1.4.1 Attachments: TransactionRegistry.java.patch, TransactionRegistry.java.patch, commons-dbcp-TransactionRegistry.diff When using IBM JDK 6+ and trying to build commons-dbcp, these tests fail: org.apache.commons.dbcp.managed.TestBasicManagedDataSource org.apache.commons.dbcp.managed.TestManagedDataSourceInTx with error: java.sql.SQLException: Connection does not have a registered XAResource null, UserName=null, null at org.apache.commons.dbcp.managed.TransactionRegistry.getXAResource(TransactionRegistry.java:81) at org.apache.commons.dbcp.managed.TransactionContext.setSharedConnection(TransactionContext.java:88) at org.apache.commons.dbcp.managed.ManagedConnection.updateTransactionStatus(ManagedConnection.java:131) at org.apache.commons.dbcp.managed.ManagedConnection.init(ManagedConnection.java:55) at org.apache.commons.dbcp.managed.ManagedDataSource.getConnection(ManagedDataSource.java:76) at org.apache.commons.dbcp.managed.TestManagedDataSource.getConnection(TestManagedDataSource.java:53) at org.apache.commons.dbcp.TestConnectionPool.newConnection(TestConnectionPool.java:81) at org.apache.commons.dbcp.managed.TestManagedDataSourceInTx.testMaxActive(TestManagedDataSourceInTx.java:102) When used in conjunction with OpenEJB 3.1.4 examples, the error is the same. The problem disappears when switched to Oracle JDK 1.6.24 (so, all tests are passed and OpenEJB examples are working). I beleive this has something to do with differences in java.lang.ref.WeakReference implementations between IBM and Oracle JDKs, which was already discussed here: http://www.mail-archive.com/dev@commons.apache.org/msg13107.html -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (NET-467) IMAPClient#fetch() does not handle literal strings
[ https://issues.apache.org/jira/browse/NET-467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebb updated NET-467: - Summary: IMAPClient#fetch() does not handle literal strings (was: IMAPClient#fetch() does not handle counted strings) IMAPClient#fetch() does not handle literal strings -- Key: NET-467 URL: https://issues.apache.org/jira/browse/NET-467 Project: Commons Net Issue Type: Bug Reporter: Sebb As reported on the user list, IMAP#fetch(1,body[header]) fails with an error such as: org.apache.commons.net.MalformedServerReplyException: Received unexpected IMAP protocol response from server: 'Return-Path: snip' This is because the code does not currently handle literal strings, i.e. {nnn}CRLF textCRLF ... See http://tools.ietf.org/html/rfc3501#section-4.3 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (NET-467) IMAPClient#fetch() does not handle literal strings
[ https://issues.apache.org/jira/browse/NET-467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebb resolved NET-467. -- Resolution: Fixed IMAPClient#fetch() does not handle literal strings -- Key: NET-467 URL: https://issues.apache.org/jira/browse/NET-467 Project: Commons Net Issue Type: Bug Affects Versions: 3.1 Reporter: Sebb Fix For: 3.2 As reported on the user list, IMAP#fetch(1,body[header]) fails with an error such as: org.apache.commons.net.MalformedServerReplyException: Received unexpected IMAP protocol response from server: 'Return-Path: snip' This is because the code does not currently handle literal strings, i.e. {nnn}CRLF textCRLF ... See http://tools.ietf.org/html/rfc3501#section-4.3 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (IMAGING-5) Broken documentation link on the web site
[ https://issues.apache.org/jira/browse/IMAGING-5?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Damjan Jovanovic resolved IMAGING-5. Resolution: Fixed Fixed in SVN trunk. Thank you for your bug report. Broken documentation link on the web site - Key: IMAGING-5 URL: https://issues.apache.org/jira/browse/IMAGING-5 Project: Apache Commons Imaging Issue Type: Bug Components: Documentation Affects Versions: 0.97 Reporter: Ralph Louis Vinciguerra Priority: Minor Labels: documentation Fix For: 1.0 On this page: http://commons.apache.org/sanselan/ the Documentation link in the left navigation box is broken, and leads to: Not Found The requested URL /SANSELAN/ was not found on this server. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (IMAGING-61) Include a test utility for timing and memory in project example classes
[ https://issues.apache.org/jira/browse/IMAGING-61?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Damjan Jovanovic resolved IMAGING-61. - Resolution: Fixed Fix Version/s: 1.0 Applied to SVN trunk. Thank you for your contribution. Include a test utility for timing and memory in project example classes --- Key: IMAGING-61 URL: https://issues.apache.org/jira/browse/IMAGING-61 Project: Apache Commons Imaging Issue Type: New Feature Reporter: Gary Lucas Priority: Minor Fix For: 1.0 Attachments: ApacheImagingSpeedAndMemoryTest.java For the convenience of developers, I've written a little test class for measuring the time and memory required to load a file using Apache Imaging. Code can be modified for use for other purposes (such as writing files, etc.).I propse that this class be added to the examples in the Apache Imaging code distribution. The Java file I've included with this upload includes a lot of explanation of why I do certain things when I'm testing. I don't claim that it's the last word in testing procedures. Really, it's more of a first word and lead to further discussion and even more useful tools. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MATH-764) New sample() API should accept RandomGenerator as parameter
[ https://issues.apache.org/jira/browse/MATH-764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13284066#comment-13284066 ] Gilles commented on MATH-764: - Sorry for the delay in coming back to this issue. The patch must be missing quite a few important things, since it leads to 29 compilation errors. Also, some of the changes certainly cannot make it in 3.1 because they'd break compatibility (namely the removal of the sample methods from the distribution classes; those should be marked as deprecated). If you want to submit another patch, please also check the code formatting (no tabs, 4-space indentation). Thanks. New sample() API should accept RandomGenerator as parameter --- Key: MATH-764 URL: https://issues.apache.org/jira/browse/MATH-764 Project: Commons Math Issue Type: Improvement Affects Versions: 3.0 Reporter: Alex Bertram Attachments: sampler-refactor.diff Original Estimate: 48h Remaining Estimate: 48h This may come to late as I know the 3.0 release is nearing completion, but I had some concerns about the new sample() method on the math3 RealDistribution interface. Specifically, there doesn't seem to be a way to supply a random generator to the sampler. Perhaps it would be better to have a factory method on the RealDistribution interface that accepted a RandomGenerator and returns an instance of some new interface, Sampler, which contains the sample() methods. That is: interface RealDistribution { Sampler createSampler(RandomGenerator generator); Sample createSampler(); // uses default RandomGenerator } interface Sampler { double sample(); double[] sample(int sampleSize); } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MATH-726) Ridders derivative
[ https://issues.apache.org/jira/browse/MATH-726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gilles updated MATH-726: Attachment: (was: RiddersFirstDerivative.java) Ridders derivative -- Key: MATH-726 URL: https://issues.apache.org/jira/browse/MATH-726 Project: Commons Math Issue Type: New Feature Reporter: Gilles Assignee: Gilles Priority: Minor Labels: features Fix For: 3.1 Implementation of the numerical first derivative, as described in: {noformat} Accurate computation of F'(x) and F'(x) F''(x) C. J. F. Ridders Adv. Eng. Software, 1982, Vol 4, No. 2 {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (MATH-726) Ridders derivative
[ https://issues.apache.org/jira/browse/MATH-726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gilles resolved MATH-726. - Resolution: Incomplete Fix Version/s: (was: 3.1) The provided code was buggy. Since the proposed API is not satisfying, and this does not seem to be high priority, it's better to revisit this once the basic interfaces have been set up. Ridders derivative -- Key: MATH-726 URL: https://issues.apache.org/jira/browse/MATH-726 Project: Commons Math Issue Type: New Feature Reporter: Gilles Assignee: Gilles Priority: Minor Labels: features Implementation of the numerical first derivative, as described in: {noformat} Accurate computation of F'(x) and F'(x) F''(x) C. J. F. Ridders Adv. Eng. Software, 1982, Vol 4, No. 2 {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (MATH-463) Monte Carlo engine with 1D path
[ https://issues.apache.org/jira/browse/MATH-463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gilles resolved MATH-463. - Resolution: Incomplete Fix Version/s: (was: 3.1) Closing, since no update is expected in the short term, as per the last comment from the reporter (and sole contributor of the code). Monte Carlo engine with 1D path --- Key: MATH-463 URL: https://issues.apache.org/jira/browse/MATH-463 Project: Commons Math Issue Type: New Feature Reporter: Pavel Ryzhov Attachments: mc1.patch Quite simple Monte-Carlo engine: 1. Generates N samples (paths) of Ito process with given drift and diffusion. It uses simple Euler discretization on equally spaced time scale. 2. For each path evaluate some path function and provide this value to SummaryStatistics. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira