Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Applet uses JavaComm Exception "...name can't be null"
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 22nd April 12:32
michael
External User
 
Posts: 1
Default Applet uses JavaComm Exception "...name can't be null"



in an html page. Standalone I'm using the same JDK as I am with the plugin.

I've signed the Applet.
I've configured the security policy for the plugin to allow all permissions.

------------------ java.policy -------------
grant codeBase "http://dev.caughey.com/-" {
permission java.security.AllPermission;
};
--------------------------------------------

Here is the out put from the Console window.

---------------- CONSOLE START ----------------------
Java(TM) Plug-in: Version 1.4.1_02
Using JRE version 1.4.1_02 Java HotSpot(TM) Client VM
User home directory = C:\WINNT\Profiles\mcaughey.001
Proxy Configuration: No proxy


----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system properties
t: dump thread list
v: dump thread stack x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
Applet.jbInt()
CheckPanel.jbInt()
name can't be null
java.lang.NullPointerException: name can't be null at java.io.FilePermission.init(Unknown Source)
at java.io.FilePermission.<init>(Unknown Source)
at java.lang.SecurityManager.checkWrite(Unknown Source)
at sun.plugin.security.ActivatorSecurityManager.check Delete(Unknown Source)
at
javax.comm.CommPortIdentifier.getPortIdentifier(Co mmPortIdentifier.java:89)
at com.epaysol.comm.CommPort.open(CommPort.java:123) <---- *** Last
Line of my code ***
at
com.epaysol.magtek.micrimage.impl.MicrImageDeviceI mpl.disableImage(MicrImage
DeviceImpl.java:47)
at com.epaysol.applet.CheckPanel.initScreen(CheckPane l.java:123) at com.epaysol.applet.CheckPanel.jbInit(CheckPanel.ja va:108)
at com.epaysol.applet.CheckPanel.<init>(CheckPanel.ja va:44)
at com.epaysol.applet.ReadCheckApplet.jbInit(ReadChec kApplet.java:45)
at com.epaysol.applet.ReadCheckApplet.init(ReadCheckA pplet.java:34)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
---------------- CONSOLE END ----------------------


I have configured the plugin VM parameters with
-Djava.library.path=J:/javacomm

This is where i have installed the dll and placed the javax.com.properties
file which javacomm require.

If there is a better way to do this, I'm al ears. I hat the fact that I
have to have the user manually
modify the java.policy and place the two files on their file system.

Primarily i'm looking to get this working.


Thanks in advanced,
Michael
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666