Re: [OMPI users] java.lang.ArrayIndexOutOfBoundsException in openmpi-dev-178-ga16c1e4

2014-10-29 Thread Oscar Vega-Gisbert
Hi, There is an error in the program. First you declare a 256 char buffer (BUF_SIZE = 256). When it is executed the line 96: buffer = (MPI.getProcessorName()).toCharArray(); The buffer length becomes less than 256. So, when the next iteration is executed, at line 92 you could get an except

Re: [OMPI users] java.lang.ArrayIndexOutOfBoundsException in openmpi-dev-178-ga16c1e4

2014-10-29 Thread Ralph Castain
Looks to me like a buffer isn’t getting initialized to NULL - the message is correct (as is the length), but the rest of the array is random garbage. However, note that MPI messages don’t initialize their buffers for performance reasons. So your program should only be checking the first 6 bytes

[OMPI users] java.lang.ArrayIndexOutOfBoundsException in openmpi-dev-178-ga16c1e4

2014-10-29 Thread Siegmar Gross
Hi, today a tested some small Java programs with openmpi-dev-178-ga16c1e4. One program throws an exception ArrayIndexOutOfBoundsException. The program worked fine in older MPI versions, e.g., openmpi-1.8.2a1r31804. tyr java 138 mpiexec -np 2 java MsgSendRecvMain Now 1 process sends its greeting