Hi,
If u hav not yet got the solution for this problem u can try this out..
Before calling any CommAPI routine, insert the following statements. The
driver.initialize() statement will emit a "Caught..." message, just as before, but
this time you can ignore it!
String drivername = "com.sun.comm.Win32Driver";
try
{
CommDriver driver = (CommDriver)
Class.forName(drivername).newInstance();
driver.initialize();
}
catch (Exception e)
{just do nothing, it doesn't really matter}
I had a similar problem with applets and its working fine now with this piece of
code,
Hope it'll work for u also now..this solution was available in the java discussion
forums...
Regards
Haripriya
Jair CONSTANTINO wrote:
>
> Hi.
>
> I'm developing an applet, and I'm testing it with appletviewer, but when I
> call the SmartCard.start() function I got the following error:
>
> CardTerminalException: java.lang.NullPointerException: name can't be null
>
> I really don't know what's happening because I only have one opencard.properties
> file and it works perfectly for stant alone applications (non applets). My
> opencard.properties file is as follows:
>
> ###############################
> # Card service configuration #
> ###############################
>
> OpenCard.services = \
> com.ibm.opencard.factory.MFCCardServiceFactory \
> opencard.opt.util.PassThruCardServiceFactory
>
> ###############################
> # Card terminal configuration #
> ###############################
>
> OpenCard.terminals = \
> com.gemplus.opencard.terminal.GemplusCardTerminalFactory|MyGemCore|GCR410|COM1
>
> ###############################
> # Trace configuration #
> ###############################
>
> OpenCard.trace = opencard:5
>
> Anythig I put as the third parameter is invalid, but if I don't put it, the
> program says me that three parameters are needed.
>
> Does anybody knows what could be happening?
>
> Thanks a lot.
>
> Jair Constantino Briones
> [EMAIL PROTECTED]
>
> ---
> > Visit the OpenCard web site at http://www.opencard.org/ for more
> > information on OpenCard---binaries, source code, documents.
> > This list is being archived at http://www.opencard.org/archive/opencard/
>
> ! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
> ! to
> ! [EMAIL PROTECTED]
> ! containing the word
> ! unsubscribe
> ! in the body.
---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/
! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
! [EMAIL PROTECTED]
! containing the word
! unsubscribe
! in the body.