[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ajug-members]: caught java.lang.nullpointerexception: name can'tbe null while loading driver com.sun.comm.win32driver
I'd be very surprised if the security model of an applet would permit
opening a serial port (although I could be wrong). Wouldn't it need to
be a signed applet?
Jason
Phelix wrote:
> Hi, all
>
> I am writting an applet to open the serial port using javax.comm api.
> The applet is on the same machine of the serail port. I use
> appletviewer to run my applet. I keep getting this error:
>
> caught java.lang.nullpointerexception: name can't be null while
> loading driver com.sun.comm.win32driver
>
> Seached on the web, but still could not get any progress. Somebody
> said this error is due to a "Comm API" / "JDK1.2 Security Model"
> mismatch. Is there any way to work around it?
>
>
> String drivername = "com.sun.comm.Win32Driver";
> try {
> CommDriver driver = (CommDriver) Class.forName(drivername).newInstance();
> driver.initialize(); //error occured
> } catch (myException e) {
>
> }
>
> Thanks a lot
> Phelix
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! Small Business $15K Web Design Giveaway
> <http://us.rd.yahoo.com/evt=23609/*http://promotions.yahoo.com/design_giveaway/static/index2.html>
> - Enter today