How to open several MappedByteBuffer in parallel in Java?

JAVA HELP!!??? jGRASP?

  • how would you fix this or any suggestions. it's been coming up every time i run my program on jGrasp, it says the following: Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException… -1 at ConnectFour.play(ConnectFour.java:98) at ConnectFourListener.mouseClicked(Connect… at java.awt.Component.processMouseEvent(Com… at javax.swing.JComponent.processMouseEvent… at java.awt.Component.processEvent(Componen… at java.awt.Container.processEvent(Containe… at java.awt.Component.dispatchEventImpl(Com… at java.awt.Container.dispatchEventImpl(Con… at java.awt.Component.dispatchEvent(Compone… at java.awt.LightweightDispatcher.retargetM… at java.awt.LightweightDispatcher.processMo… at java.awt.LightweightDispatcher.dispatchE… at java.awt.Container.dispatchEventImpl(Con… at java.awt.Window.dispatchEventImpl(Window… at java.awt.Component.dispatchEvent(Compone… at java.awt.EventQueue.dispatchEventImpl(Ev… at java.awt.EventQueue.access$000(EventQueu… at java.awt.EventQueue$3.run(EventQueue.jav… at java.awt.EventQueue$3.run(EventQueue.jav… at java.security.AccessController.doPrivile… Method) at java.security.ProtectionDomain$1.doInter… at java.security.ProtectionDomain$1.doInter… at java.awt.EventQueue$4.run(EventQueue.jav… at java.awt.EventQueue$4.run(EventQueue.jav… at java.security.AccessController.doPrivile… Method) at java.security.ProtectionDomain$1.doInter… at java.awt.EventQueue.dispatchEvent(EventQ… at java.awt.EventDispatchThread.pumpOneEven… at java.awt.EventDispatchThread.pumpEventsF… at java.awt.EventDispatchThread.pumpEventsF… at java.awt.EventDispatchThread.pumpEvents(… at java.awt.EventDispatchThread.pumpEvents(… at java.awt.EventDispatchThread.run(EventDi…

  • Answer:

    Would ConnectFour.java:98 be the line number in your program where the error is occurring?

Shorty24... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

I don't know, isn't "java.lang.ArrayIndexOutOfBoundsExceptio… an error of referencing or declaring your arrays with the wrong index number..... .... wild guess....

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.