Help with JPOS

D

duke3113

Hi,

I've written a fairly simple java class that handles a few things
with a signature capture device using java comm. When run under Linux,
It works without error when a single user executes it. However,
whenever a second user executes a instance of the class, errors are
thrown - typically an ArrayOutOfBounds exception.

I think it is related to the way in which the class is instantiated
when executed, but I'm clueless. I've posted the primary code below.
BTW, it runs headless from the command line rather than a GUI.

Any hints?

- Duke


import java.awt.*;
import java.awt.event.*;
import java.awt.image.BufferedImage;
import java.beans.*;
import javax.comm.*;
import java.io.*;
import java.util.*;
import java.lang.Thread;

public class JSig implements DataListener
{

public static void main( String args[] )
{
JSig js = null;

try
{
js = new JSig( args );
js.process();
}
catch( Exception e )
{
System.out.println("JSig:Error in execution: " +
e.getMessage());
System.exit( 1 );
}

}

}
 
O

Oliver Wong

Hi,

I've written a fairly simple java class that handles a few things
with a signature capture device using java comm. When run under Linux,
It works without error when a single user executes it. However,
whenever a second user executes a instance of the class, errors are
thrown - typically an ArrayOutOfBounds exception.

Post the stacktrace and code that the stack trace refers to.

- Oliver
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top