We've delevoped a system which needs to transmit data to a number of line clients. We are using NIO socket connections.
The system is devoloped for JDK 1.5 - mainly because this is the latest version available for Mac OS X 10.4.
The system works fine in offline mode. On online mode it works fine on all systems except Mac OS X / Apple VM.
See the system at:
http://traclive.dk/events/event_20080827_DanishOpen/?flight=6On apple system it works fine launched as a java program. However when launched from a browser (Safari or FireFox) we get the following error:
Exception in thread "Thread-7" java.lang.ExceptionInIniti
alizerErro
r
at sun.nio.ch.KQueueSelectorI
mpl.<init>
(KQueueSel
ectorImpl.
java:51)
at sun.nio.ch.KQueueSelectorP
rovider.op
enSelector
(KQueueSel
ectorProvi
der.java:2
0)
at java.nio.channels.Selector
.open(Sele
ctor.java:
209)
at com.maptrack.c.l.aZ(Unknow
n Source)
at com.maptrack.clientsail.j.
run(Unknow
n Source)
at java.lang.Thread.run(Threa
d.java:613
)
Caused by: java.security.AccessContro
lException
: access denied (java.util.PropertyPermiss
ion sun.arch.data.model read)
at java.security.AccessContro
lContext.c
heckPermis
sion(Acces
sControlCo
ntext.java
:264)
at java.security.AccessContro
ller.check
Permission
(AccessCon
troller.ja
va:427)
at java.lang.SecurityManager.
checkPermi
ssion(Secu
rityManage
r.java:532
)
at java.lang.SecurityManager.
checkPrope
rtyAccess(
SecurityMa
nager.java
:1285)
at java.lang.System.getProper
ty(System.
java:628)
at sun.nio.ch.KQueueArrayWrap
per.<clini
t>(KQueueA
rrayWrappe
r.java:67)
... 6 more
basic: Starting applet
We are trying to connect to a port (4400) on the same server (traclive.dk) as the applet was loaded from.
What to do?
Start Free Trial