You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Massimiliano Dongiovanni (JIRA)" <ji...@apache.org> on 2012/09/08 11:58:07 UTC
[jira] [Created] (MATH-858) BlockRealMatrix
java.beans.IntrospectionException
Massimiliano Dongiovanni created MATH-858:
---------------------------------------------
Summary: BlockRealMatrix java.beans.IntrospectionException
Key: MATH-858
URL: https://issues.apache.org/jira/browse/MATH-858
Project: Commons Math
Issue Type: Bug
Affects Versions: 3.0
Environment: MacOSX 10.8.1 (Macbook Air 4Gb RAM)- IntelliJ IDEA 11 - Grails 2.10
Reporter: Massimiliano Dongiovanni
When I try to read properties (like getColumnSize) to an instance of class BlockRealMatrix (org.apache.commons.math3.linear.BlockRealMatrix) system raise this exception:
Class - java.beans.IntrospectionException
Message - type mismatch between indexed read and indexed write methods: columnMatrix
=================
Code
import org.apache.commons.math3.stat.correlation.PearsonsCorrelation
import strategoianalysis.util.math.matrix.MatrixStatutils
import org.apache.commons.math3.linear.*
class JohnsonRWAController {
private double[] computeRWA(double[][] data) {
BlockRealMatrix correlationMatrix = new PearsonsCorrelation().computeCorrelationMatrix(data)
int rowDim = correlationMatrix.getRowDimension()
//EXCEPTION HERE
.... etc.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (MATH-858) BlockRealMatrix
java.beans.IntrospectionException
Posted by "Massimiliano Dongiovanni (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Massimiliano Dongiovanni closed MATH-858.
-----------------------------------------
Resolution: Invalid
The problem is not related to apache commons math library.
> BlockRealMatrix java.beans.IntrospectionException
> -------------------------------------------------
>
> Key: MATH-858
> URL: https://issues.apache.org/jira/browse/MATH-858
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 3.0
> Environment: MacOSX 10.8.1 (Macbook Air 4Gb RAM)- IntelliJ IDEA 11 - Grails 2.10
> Reporter: Massimiliano Dongiovanni
> Labels: BlockRealMatrix
>
> When I try to read properties (like getColumnDimension) of an instance of class BlockRealMatrix (org.apache.commons.math3.linear.BlockRealMatrix), system raise this exception:
> Class - java.beans.IntrospectionException
> Message - type mismatch between indexed read and indexed write methods: columnMatrix
> =================
> Code
> import org.apache.commons.math3.stat.correlation.PearsonsCorrelation
> import strategoianalysis.util.math.matrix.MatrixStatutils
> import org.apache.commons.math3.linear.*
> class JohnsonRWAController {
> private double[] computeRWA(double[][] data) {
> BlockRealMatrix correlationMatrix = new PearsonsCorrelation().computeCorrelationMatrix(data)
> int rowDim = correlationMatrix.getRowDimension()
>
> //EXCEPTION HERE
> .... etc.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MATH-858) BlockRealMatrix
java.beans.IntrospectionException
Posted by "Massimiliano Dongiovanni (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Massimiliano Dongiovanni updated MATH-858:
------------------------------------------
Description:
When I try to read properties (like getColumnDimension) to an instance of class BlockRealMatrix (org.apache.commons.math3.linear.BlockRealMatrix) system raise this exception:
Class - java.beans.IntrospectionException
Message - type mismatch between indexed read and indexed write methods: columnMatrix
=================
Code
import org.apache.commons.math3.stat.correlation.PearsonsCorrelation
import strategoianalysis.util.math.matrix.MatrixStatutils
import org.apache.commons.math3.linear.*
class JohnsonRWAController {
private double[] computeRWA(double[][] data) {
BlockRealMatrix correlationMatrix = new PearsonsCorrelation().computeCorrelationMatrix(data)
int rowDim = correlationMatrix.getRowDimension()
//EXCEPTION HERE
.... etc.
was:
When I try to read properties (like getColumnSize) to an instance of class BlockRealMatrix (org.apache.commons.math3.linear.BlockRealMatrix) system raise this exception:
Class - java.beans.IntrospectionException
Message - type mismatch between indexed read and indexed write methods: columnMatrix
=================
Code
import org.apache.commons.math3.stat.correlation.PearsonsCorrelation
import strategoianalysis.util.math.matrix.MatrixStatutils
import org.apache.commons.math3.linear.*
class JohnsonRWAController {
private double[] computeRWA(double[][] data) {
BlockRealMatrix correlationMatrix = new PearsonsCorrelation().computeCorrelationMatrix(data)
int rowDim = correlationMatrix.getRowDimension()
//EXCEPTION HERE
.... etc.
> BlockRealMatrix java.beans.IntrospectionException
> -------------------------------------------------
>
> Key: MATH-858
> URL: https://issues.apache.org/jira/browse/MATH-858
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 3.0
> Environment: MacOSX 10.8.1 (Macbook Air 4Gb RAM)- IntelliJ IDEA 11 - Grails 2.10
> Reporter: Massimiliano Dongiovanni
> Labels: BlockRealMatrix
>
> When I try to read properties (like getColumnDimension) to an instance of class BlockRealMatrix (org.apache.commons.math3.linear.BlockRealMatrix) system raise this exception:
> Class - java.beans.IntrospectionException
> Message - type mismatch between indexed read and indexed write methods: columnMatrix
> =================
> Code
> import org.apache.commons.math3.stat.correlation.PearsonsCorrelation
> import strategoianalysis.util.math.matrix.MatrixStatutils
> import org.apache.commons.math3.linear.*
> class JohnsonRWAController {
> private double[] computeRWA(double[][] data) {
> BlockRealMatrix correlationMatrix = new PearsonsCorrelation().computeCorrelationMatrix(data)
> int rowDim = correlationMatrix.getRowDimension()
>
> //EXCEPTION HERE
> .... etc.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MATH-858) BlockRealMatrix
java.beans.IntrospectionException
Posted by "Massimiliano Dongiovanni (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451364#comment-13451364 ]
Massimiliano Dongiovanni commented on MATH-858:
-----------------------------------------------
Yes sorry, the right line of code is this:
{noformat}RealMatrix correlationMatrix = (new PearsonsCorrelation()).computeCorrelationMatrix(data);{noformat}
When I try to access to getRowDimension() method, the exception occurs.
I'm working on Grails 2.10 platform with apache commons math3 3.0 libraries.
After some other tests, it seems to be a spring/groovy trouble. Error messages comes from Groovy compiler, which raise an org.codehaus.groovy.runtime.InvokerInvocationException.
So it's not a commons math bug. Really thanks for quick response Gilles, and sorry for this _off topic_ issue.
I'm going to close this issue.
> BlockRealMatrix java.beans.IntrospectionException
> -------------------------------------------------
>
> Key: MATH-858
> URL: https://issues.apache.org/jira/browse/MATH-858
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 3.0
> Environment: MacOSX 10.8.1 (Macbook Air 4Gb RAM)- IntelliJ IDEA 11 - Grails 2.10
> Reporter: Massimiliano Dongiovanni
> Labels: BlockRealMatrix
>
> When I try to read properties (like getColumnDimension) of an instance of class BlockRealMatrix (org.apache.commons.math3.linear.BlockRealMatrix), system raise this exception:
> Class - java.beans.IntrospectionException
> Message - type mismatch between indexed read and indexed write methods: columnMatrix
> =================
> Code
> import org.apache.commons.math3.stat.correlation.PearsonsCorrelation
> import strategoianalysis.util.math.matrix.MatrixStatutils
> import org.apache.commons.math3.linear.*
> class JohnsonRWAController {
> private double[] computeRWA(double[][] data) {
> BlockRealMatrix correlationMatrix = new PearsonsCorrelation().computeCorrelationMatrix(data)
> int rowDim = correlationMatrix.getRowDimension()
>
> //EXCEPTION HERE
> .... etc.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MATH-858) BlockRealMatrix
java.beans.IntrospectionException
Posted by "Massimiliano Dongiovanni (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Massimiliano Dongiovanni updated MATH-858:
------------------------------------------
Description:
When I try to read properties (like getColumnDimension) of an instance of class BlockRealMatrix (org.apache.commons.math3.linear.BlockRealMatrix), system raise this exception:
Class - java.beans.IntrospectionException
Message - type mismatch between indexed read and indexed write methods: columnMatrix
=================
Code
import org.apache.commons.math3.stat.correlation.PearsonsCorrelation
import strategoianalysis.util.math.matrix.MatrixStatutils
import org.apache.commons.math3.linear.*
class JohnsonRWAController {
private double[] computeRWA(double[][] data) {
BlockRealMatrix correlationMatrix = new PearsonsCorrelation().computeCorrelationMatrix(data)
int rowDim = correlationMatrix.getRowDimension()
//EXCEPTION HERE
.... etc.
was:
When I try to read properties (like getColumnDimension) to an instance of class BlockRealMatrix (org.apache.commons.math3.linear.BlockRealMatrix) system raise this exception:
Class - java.beans.IntrospectionException
Message - type mismatch between indexed read and indexed write methods: columnMatrix
=================
Code
import org.apache.commons.math3.stat.correlation.PearsonsCorrelation
import strategoianalysis.util.math.matrix.MatrixStatutils
import org.apache.commons.math3.linear.*
class JohnsonRWAController {
private double[] computeRWA(double[][] data) {
BlockRealMatrix correlationMatrix = new PearsonsCorrelation().computeCorrelationMatrix(data)
int rowDim = correlationMatrix.getRowDimension()
//EXCEPTION HERE
.... etc.
> BlockRealMatrix java.beans.IntrospectionException
> -------------------------------------------------
>
> Key: MATH-858
> URL: https://issues.apache.org/jira/browse/MATH-858
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 3.0
> Environment: MacOSX 10.8.1 (Macbook Air 4Gb RAM)- IntelliJ IDEA 11 - Grails 2.10
> Reporter: Massimiliano Dongiovanni
> Labels: BlockRealMatrix
>
> When I try to read properties (like getColumnDimension) of an instance of class BlockRealMatrix (org.apache.commons.math3.linear.BlockRealMatrix), system raise this exception:
> Class - java.beans.IntrospectionException
> Message - type mismatch between indexed read and indexed write methods: columnMatrix
> =================
> Code
> import org.apache.commons.math3.stat.correlation.PearsonsCorrelation
> import strategoianalysis.util.math.matrix.MatrixStatutils
> import org.apache.commons.math3.linear.*
> class JohnsonRWAController {
> private double[] computeRWA(double[][] data) {
> BlockRealMatrix correlationMatrix = new PearsonsCorrelation().computeCorrelationMatrix(data)
> int rowDim = correlationMatrix.getRowDimension()
>
> //EXCEPTION HERE
> .... etc.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MATH-858) BlockRealMatrix
java.beans.IntrospectionException
Posted by "Gilles (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451322#comment-13451322 ]
Gilles commented on MATH-858:
-----------------------------
Which version of Commons Math are you using?
In the current development version, this code:
{noformat}
BlockRealMatrix correlationMatrix = new PearsonsCorrelation().computeCorrelationMatrix(data);
{noformat}
does not even compile.
When you report a bug, please provide a fully working minimal code example.
Could you also provide the stack trace of the exception?
Moreover I cannot find any Commons Math error message that contains the string "mismatch between indexed read"...
> BlockRealMatrix java.beans.IntrospectionException
> -------------------------------------------------
>
> Key: MATH-858
> URL: https://issues.apache.org/jira/browse/MATH-858
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 3.0
> Environment: MacOSX 10.8.1 (Macbook Air 4Gb RAM)- IntelliJ IDEA 11 - Grails 2.10
> Reporter: Massimiliano Dongiovanni
> Labels: BlockRealMatrix
>
> When I try to read properties (like getColumnDimension) of an instance of class BlockRealMatrix (org.apache.commons.math3.linear.BlockRealMatrix), system raise this exception:
> Class - java.beans.IntrospectionException
> Message - type mismatch between indexed read and indexed write methods: columnMatrix
> =================
> Code
> import org.apache.commons.math3.stat.correlation.PearsonsCorrelation
> import strategoianalysis.util.math.matrix.MatrixStatutils
> import org.apache.commons.math3.linear.*
> class JohnsonRWAController {
> private double[] computeRWA(double[][] data) {
> BlockRealMatrix correlationMatrix = new PearsonsCorrelation().computeCorrelationMatrix(data)
> int rowDim = correlationMatrix.getRowDimension()
>
> //EXCEPTION HERE
> .... etc.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira