Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

Help with JPOS

Thread view: 
duke3113@mypacks.net - 28 Aug 2006 06:39 GMT
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 );
       }

   }

}
Oliver Wong - 30 Aug 2006 20:54 GMT
> Hi,
>
[quoted text clipped - 3 lines]
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.