[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DanteServer has a Timing Error Error on Startup?



>I'm not seeing the problem here, but the following two patches should
>help you narrow down the problem.  Let me know which of these is
>showing the wrong principal.

	Both do.  By the way, I'd already put a trace call at the
entry to installProtocol(), you might have seen its output in my
original report.  Here's the patch:

    static void installProtocol(TypeID pid, String name, Principal principal)
    {
        //***CMR*:
        Trace.trace(Trace.ANTS_DYNLOAD, "installProtocol(name=" + name +
                    ", principal=" + principal + ")");
        //end patch


	Anyway, here's some trace output, which this *and other traces*
added.  Sadly, some lines have been broken buy cut-and-pasting.  I've
added comments in asterisk blocks.

Janos Java NodeOS v1.1.5
Parsing config file dante.config.cmr
Parsing command node
ANTS v2.0
Parsing command channel
Proxy addr: (null ; null)
Phys addr: (if/ipv4/udp ; *:8039:localhost)
Parsing command application
Creating app cfg ants.dante.DanteServer with args.length=11; argsStart=3
Config file command parsing complete.
Reading route table '/dev/null' for node 128.9.160.165
Installing ants.core.DLProtocol[(builtin)]
Installing protocol ants.core.DLProtocol[(builtin)](with principal=Principal[Rem
oteUsers])
PrimordialMessagger.installProtocol(principal=RemoteUsers)
java.lang.Exception: Stack trace
        at java.lang.Thread.dumpStack(Thread.java)
        at ants.core.PrimordialMessenger.installProtocol(PrimordialMessenger.jav
a:177)
        at ants.core.Protocol.activate(Protocol.java:255)
        at ants.core.DLProtocol.activate(DLProtocol.java:88)
        at ants.core.Node.register(Node.java:336)
        at ants.core.Node.register(Node.java:320)
        at ants.core.PrimordialNode.start(PrimordialNode.java:386)
        at ants.core.ConfigurationManager.run(ConfigurationManager.java:386)
        at edu.utah.janos.nodeos.FlowInitializer.startInitialClass(FlowInitializ
er.java:107)
        at edu.utah.janos.nodeos.FlowInitializer.run(FlowInitializer.java:71)
        at edu.utah.janos.nodeos.pj_Thread$ThreadWrapper.run(pj_Thread.java:71)
CodeGroup for gid 177487.. -> null
publishing CodeGroup[gid=177487..; ct=0; cmask=0; builtin]
publishing CapsuleClass[ants.core.DLRequestCapsule; mid=abe1a9..]
publishing CapsuleClass[ants.core.DLResponseCapsule; mid=54d682..]
publishing CapsuleClass[ants.core.MIDIDRequestCapsule; mid=94f763..]
Registering CodeGroup[gid=177487..; ct=0; cmask=0; builtin] in Flow[name=Primori
dal ANTS Flow;objid=0x50ce1d4]
Added class ants.core.DLRequestCapsule to CodeGroup[gid=177487..; ct=0; cmask=0;
 builtin]
Added class ants.core.DLResponseCapsule to CodeGroup[gid=177487..; ct=0; cmask=0
; builtin]
Added class ants.core.MIDIDRequestCapsule to CodeGroup[gid=177487..; ct=0; cmask
=0; builtin]
CodeGroup for gid 4df792.. -> null
publishing CodeGroup[gid=4df792..; ct=0; cmask=0; builtin]
publishing CapsuleClass[ants.core.MIDIDResponseCapsule; mid=a20a2f..]
Registering CodeGroup[gid=4df792..; ct=0; cmask=0; builtin] in Flow[name=Primori
dal ANTS Flow;objid=0x50ce1d4]
Added class ants.core.MIDIDResponseCapsule to CodeGroup[gid=4df792..; ct=0; cmas
k=0; builtin]
Installing ants.core.DataProtocol[(builtin)]
Installing protocol ants.core.DataProtocol[(builtin)](with principal=Principal[R
emoteUsers])
PrimordialMessagger.installProtocol(principal=RemoteUsers)
java.lang.Exception: Stack trace
        at java.lang.Thread.dumpStack(Thread.java)
        at ants.core.PrimordialMessenger.installProtocol(PrimordialMessenger.jav
a:177)
        at ants.core.Protocol.activate(Protocol.java:255)
        at ants.core.Node.register(Node.java:336)
        at ants.core.Node.register(Node.java:320)
        at ants.core.PrimordialNode.start(PrimordialNode.java:396)
        at ants.core.ConfigurationManager.run(ConfigurationManager.java:386)
        at edu.utah.janos.nodeos.FlowInitializer.startInitialClass(FlowInitializ
er.java:107)
        at edu.utah.janos.nodeos.FlowInitializer.run(FlowInitializer.java:71)
        at edu.utah.janos.nodeos.pj_Thread$ThreadWrapper.run(pj_Thread.java:71)
CodeGroup for gid 7aca17.. -> null
publishing CodeGroup[gid=7aca17..; ct=0; cmask=0; builtin]
publishing CapsuleClass[ants.core.DataCapsule; mid=fc109d..]
Registering CodeGroup[gid=7aca17..; ct=0; cmask=0; builtin] in Flow[name=Primori
dal ANTS Flow;objid=0x50ce1d4]
Added class ants.core.DataCapsule to CodeGroup[gid=7aca17..; ct=0; cmask=0; buil
tin]
fireUpNewFlow(className=ants.core.AppBooster, args.length=9).
args[0]=ants.dante.DanteServer
args[1]=-port
args[2]=14
args[3]=-start
args[4]=128.9.160.165
args[5]=-end
args[6]=128.9.160.170
args[7]=-principal
args[8]=DanteUser
installProtocol(name=ants.core.DLProtocol, principal=Principal[RemoteUsers])
java.lang.Exception: Stack trace
        at java.lang.Thread.dumpStack(Thread.java)
        at ants.core.PrimordialNode.installProtocol(PrimordialNode.java:906)
        at ants.core.PrimordialMessenger.dispatchInstallProtocol(PrimordialMesse
nger.java:95)
        at ants.core.PrimordialMessenger.run(PrimordialMessenger.java:130)
        at edu.utah.janos.nodeos.pj_Thread$ThreadWrapper.run(pj_Thread.java:71)
fireUpNewFlow(className=ants.core.ProtocolBooster, args.length=0).
App ants.dante.DanteServer principal=Principal[DanteUser]
got puller
got port=14
passed queue to primordial flow
Starting unknown protocol. flow=Flow[name=Protocol <unknown>;objid=0x50cfad1]
installProtocol(pid=b99b0b..; name=ants.core.DLProtocol; principal=Principal[Rem
oteUsers])
installProtocol(name=ants.core.DataProtocol, principal=Principal[RemoteUsers])
java.lang.Exception: Stack trace
        at java.lang.Thread.dumpStack(Thread.java)
        at ants.core.PrimordialNode.installProtocol(PrimordialNode.java:906)
        at ants.core.PrimordialMessenger.dispatchInstallProtocol(PrimordialMesse
nger.java:95)
        at ants.core.PrimordialMessenger.run(PrimordialMessenger.java:130)
        at edu.utah.janos.nodeos.pj_Thread$ThreadWrapper.run(pj_Thread.java:71)
fireUpNewFlow(className=ants.core.ProtocolBooster, args.length=0).
set application port
Unknown protocol on its way! flow=Flow[name=Protocol <unknown>;objid=0x50cfad1]
Starting unknown protocol. flow=Flow[name=Protocol <unknown>;objid=0x50d0267]
ProtocolBooster.java: LOCAL_PROTOCOL ants.core.DLProtocol in Flow[name=Protocol 
<unknown>;objid=0x50cfad1]
ProtocolBooster.java: LOCAL_PROTOCOL ants.core.DLProtocol principal is Principal
[RemoteUsers]
Flow[name=Protocol ants.core.DLProtocol;objid=0x50cfad1] loading LOCAL_PROTOCOL 
ants.core.DLProtocol
realPort=14
Local node principal=Principal[DanteUser]
App ants.dante.DanteServer attached at port 14
installProtocol(pid=d60dce..; name=ants.core.DataProtocol; principal=Principal[R
emoteUsers])
Installing protocol ants.dante.DanteProtocol[(dl'd)](with principal=Principal[Re
moteUsers])
*******************************************************************************
* Wrong Principal above!!!!!!!  This is from Node.register().  Incidentally, I
* fixed a typo in the Trace.trace() call:  "princial" => "principal".  This
* is the first mention of DanteProtocol.
*******************************************************************************
PrimordialMessagger.installProtocol(principal=RemoteUsers)
java.lang.Exception: Stack trace
        at java.lang.Thread.dumpStack(Thread.java)
        at ants.core.PrimordialMessenger.installProtocol(PrimordialMessenger.jav
a:177)
        at ants.core.Protocol.activate(Protocol.java:255)
        at ants.core.Node.register(Node.java:336)
        at ants.core.Node.register(Node.java:320)
        at ants.dante.DanteServer.start(DanteServer.java:92)
        at ants.core.AppBooster.run(AppBooster.java:155)
        at edu.utah.janos.nodeos.FlowInitializer.startInitialClass(FlowInitializ
er.java:107)
        at edu.utah.janos.nodeos.FlowInitializer.run(FlowInitializer.java:71)
        at edu.utah.janos.nodeos.pj_Thread$ThreadWrapper.run(pj_Thread.java:71)
CodeGroup for gid e24072.. -> null
publishing CodeGroup[gid=e24072..; ct=0; cmask=0; dynamic]
publishing CapsuleClass[ants.dante.DanteConstants; mid=0ca4a3..]
publishing CapsuleClass[ants.dante.DanteCapsule; mid=50caff..]
Registering CodeGroup[gid=e24072..; ct=4; cmask=0; dynamic] in Flow[name=App ant
s.dante.DanteServer;objid=0x50cf98f]
Added class ants.dante.DanteConstants to CodeGroup[gid=e24072..; ct=4; cmask=0; 
dynamic]
Added class ants.dante.DanteCapsule to CodeGroup[gid=e24072..; ct=4; cmask=0; dy
namic]
Unknown protocol on its way! flow=Flow[name=Protocol <unknown>;objid=0x50d0267]
installProtocol(name=ants.dante.DanteProtocol, principal=Principal[RemoteUsers])
*******************************************************************************
* Uh-oh, wrong principal above!
*******************************************************************************
java.lang.Exception: Stack trace
        at java.lang.Thread.dumpStack(Thread.java)
        at ants.core.PrimordialNode.installProtocol(PrimordialNode.java:906)
        at ants.core.PrimordialMessenger.dispatchInstallProtocol(PrimordialMesse
nger.java:95)
        at ants.core.PrimordialMessenger.run(PrimordialMessenger.java:130)
        at edu.utah.janos.nodeos.pj_Thread$ThreadWrapper.run(pj_Thread.java:71)
fireUpNewFlow(className=ants.core.ProtocolBooster, args.length=0).
ProtocolBooster.java: LOCAL_PROTOCOL ants.core.DataProtocol in Flow[name=Protoco
l <unknown>;objid=0x50d0267]
ProtocolBooster.java: LOCAL_PROTOCOL ants.core.DataProtocol principal is Princip
al[RemoteUsers]
*******************************************************************************
* It's already too late:  the Principal is wrong.
*******************************************************************************
Flow[name=Protocol ants.core.DataProtocol;objid=0x50d0267] loading LOCAL_PROTOCO
L ants.core.DataProtocol
CodeGroup for gid 7aca17.. -> null
publishing CodeGroup[gid=7aca17..; ct=0; cmask=0; builtin]
publishing CapsuleClass[ants.core.DataCapsule; mid=fc109d..]
Activating CodeGroup[gid=7aca17..; ct=0; cmask=ffffffff; builtin] in Flow[name=P
rotocol ants.core.DataProtocol;objid=0x50d0267]
Registering CodeGroup[gid=7aca17..; ct=0; cmask=ffffffff; builtin] in Flow[name=
Protocol ants.core.DataProtocol;objid=0x50d0267]
Added class ants.core.DataCapsule to CodeGroup[gid=7aca17..; ct=0; cmask=fffffff
f; builtin]
new capsule channel: class=class ants.core.DataCapsule; classifier=pj_Demultiple
xKey[totalLength=52; segments={pj_DemultiplexKey.ANEPHeader[offset=0; headerMask
=pj_DemultiplexKey.ByteMask[offset=0; length=4; sequence='01 XX 00 02 '; mask=[Z
@50d04b2]]+pj_DemultiplexKey.ByteMask[offset=4; length=16; sequence='fc 00 fd 05
 0e 02 0b 0a 0f 0c 05 fc f8 09 0c 06 '; mask=null]}]
Created InChan for unknown packets: pj_InChannel[flow=Flow[name=Protocol ants.co
re.DLProtocol;objid=0x50cfad1]; handler=PacketHandler[source=pj_PortAddressMask[
srcAddrMask=pj_InetAddressMask[*.*.*.*]; srcPort=-1; destPort=8039; destAddrMask
=pj_InetAddressMask[127.0.0.1]]]; classifier=pj_DemultiplexKey[totalLength=32; s
egments={pj_DemultiplexKey.ANEPHeader[offset=0; headerMask=pj_DemultiplexKey.Byt
eMask[offset=0; length=4; sequence='01 XX 00 02 '; mask=[Z@50d04b2]]}]; threadPo
ol=edu.utah.janos.nodeos.pj_ThreadPool@50d049f; deliverFunc=UnknownPacketHandler
 for Node[a=128.9.160.165]]
Starting unknown protocol. flow=Flow[name=Protocol <unknown>;objid=0x50d095e]
installProtocol(pid=33abf6..; name=ants.dante.DanteProtocol; principal=Principal
[RemoteUsers])
Unknown protocol on its way! flow=Flow[name=Protocol <unknown>;objid=0x50d095e]
Flow[name=Protocol ants.core.DataProtocol;objid=0x50d0267] loading LOCAL_PROTOCO
L ants.core.DataProtocol
CodeGroup for gid 177487.. -> null
ProtocolBooster.java: LOCAL_PROTOCOL ants.dante.DanteProtocol in Flow[name=Proto
col <unknown>;objid=0x50d095e]
ProtocolBooster.java: LOCAL_PROTOCOL ants.dante.DanteProtocol principal is Princ
ipal[RemoteUsers]
publishing CodeGroup[gid=177487..; ct=0; cmask=0; builtin]
publishing CapsuleClass[ants.core.DLRequestCapsule; mid=abe1a9..]
Flow[name=Protocol ants.dante.DanteProtocol;objid=0x50d095e] loading LOCAL_PROTO
COL ants.dante.DanteProtocol
publishing CapsuleClass[ants.core.DLResponseCapsule; mid=54d682..]
publishing CapsuleClass[ants.core.MIDIDRequestCapsule; mid=94f763..]
Activating CodeGroup[gid=177487..; ct=0; cmask=ffffffff; builtin] in Flow[name=P
rotocol ants.core.DLProtocol;objid=0x50cfad1]
Registering CodeGroup[gid=177487..; ct=0; cmask=ffffffff; builtin] in Flow[name=
Protocol ants.core.DLProtocol;objid=0x50cfad1]
Added class ants.core.DLRequestCapsule to CodeGroup[gid=177487..; ct=0; cmask=ff
ffffff; builtin]
Added class ants.core.DLResponseCapsule to CodeGroup[gid=177487..; ct=0; cmask=f
fffffff; builtin]
Added class ants.core.MIDIDRequestCapsule to CodeGroup[gid=177487..; ct=0; cmask
=ffffffff; builtin]
CodeGroup for gid 4df792.. -> null
publishing CodeGroup[gid=4df792..; ct=0; cmask=0; builtin]
publishing CapsuleClass[ants.core.MIDIDResponseCapsule; mid=a20a2f..]
Activating CodeGroup[gid=4df792..; ct=0; cmask=ffffffff; builtin] in Flow[name=P
rotocol ants.core.DLProtocol;objid=0x50cfad1]
Registering CodeGroup[gid=4df792..; ct=0; cmask=ffffffff; builtin] in Flow[name=
Protocol ants.core.DLProtocol;objid=0x50cfad1]
Added class ants.core.MIDIDResponseCapsule to CodeGroup[gid=4df792..; ct=0; cmas
k=ffffffff; builtin]
new capsule channel: class=class ants.core.MIDIDResponseCapsule; classifier=pj_D
emultiplexKey[totalLength=52; segments={pj_DemultiplexKey.ANEPHeader[offset=0; h
eaderMask=pj_DemultiplexKey.ByteMask[offset=0; length=4; sequence='01 XX 00 02 '
; mask=[Z@50d04b2]]+pj_DemultiplexKey.ByteMask[offset=4; length=16; sequence='f2
 0a 0f f5 0f 0e 00 f3 0c 0b 09 fc fa 07 0e 02 '; mask=null]}]
CodeGroup for gid e24072.. -> null
publishing CodeGroup[gid=e24072..; ct=0; cmask=0; dynamic]
publishing CapsuleClass[ants.dante.DanteConstants; mid=0ca4a3..]
publishing CapsuleClass[ants.dante.DanteCapsule; mid=50caff..]
Activating CodeGroup[gid=e24072..; ct=4; cmask=ffffffff; dynamic] in Flow[name=P
rotocol ants.dante.DanteProtocol;objid=0x50d095e]
Registering CodeGroup[gid=e24072..; ct=4; cmask=ffffffff; dynamic] in Flow[name=
Protocol ants.dante.DanteProtocol;objid=0x50d095e]
Added class ants.dante.DanteConstants to CodeGroup[gid=e24072..; ct=4; cmask=fff
fffff; dynamic]
Flow[name=Protocol ants.core.DLProtocol;objid=0x50cfad1] loading LOCAL_PROTOCOL 
ants.core.DLProtocol
Added class ants.dante.DanteCapsule to CodeGroup[gid=e24072..; ct=4; cmask=fffff
fff; dynamic]
new capsule channel: class=interface ants.dante.DanteConstants; classifier=pj_De
multiplexKey[totalLength=52; segments={pj_DemultiplexKey.ANEPHeader[offset=0; he
aderMask=pj_DemultiplexKey.ByteMask[offset=0; length=4; sequence='01 XX 00 02 ';
 mask=[Z@50d04b2]]+pj_DemultiplexKey.ByteMask[offset=4; length=16; sequence='0c 
f4 f3 f1 f3 f4 05 f3 ff f6 0d 01 fe 04 0d fe '; mask=null]}]
new capsule channel: class=class ants.core.MIDIDRequestCapsule; classifier=pj_De
multiplexKey[totalLength=84; segments={pj_DemultiplexKey.ANEPHeader[offset=0; he
aderMask=pj_DemultiplexKey.ByteMask[offset=0; length=4; sequence='01 XX 00 02 ';
 mask=[Z@50d04b2]]+pj_DemultiplexKey.ByteMask[offset=4; length=16; sequence='f4 
f7 03 ff fc 0b f9 02 f5 fb 06 fe f7 0b 0f 0f '; mask=null]+pj_DemultiplexKey.Byt
eMask[offset=16; length=16; sequence='0c f4 f3 f1 f3 f4 05 f3 ff f6 0d 01 fe 04 
0d fe '; mask=null]}]
new capsule channel: class=class ants.core.DLRequestCapsule; classifier=pj_Demul
tiplexKey[totalLength=84; segments={pj_DemultiplexKey.ANEPHeader[offset=0; heade
rMask=pj_DemultiplexKey.ByteMask[offset=0; length=4; sequence='01 XX 00 02 '; ma
sk=[Z@50d04b2]]+pj_DemultiplexKey.ByteMask[offset=4; length=16; sequence='fb f1 
f9 06 08 f4 fb f8 fb 0f 04 0a 03 0c 0d fd '; mask=null]+pj_DemultiplexKey.ByteMa
sk[offset=16; length=16; sequence='0c f4 f3 f1 f3 f4 05 f3 ff f6 0d 01 fe 04 0d 
fe '; mask=null]}]
new capsule channel: class=class ants.dante.DanteCapsule; classifier=pj_Demultip
lexKey[totalLength=52; segments={pj_DemultiplexKey.ANEPHeader[offset=0; headerMa
sk=pj_DemultiplexKey.ByteMask[offset=0; length=4; sequence='01 XX 00 02 '; mask=
[Z@50d04b2]]+pj_DemultiplexKey.ByteMask[offset=4; length=16; sequence='00 fa ff 
f5 fa f9 f7 0a 03 f9 fb fa f6 f3 f5 f2 '; mask=null]}]
new capsule channel: class=class ants.core.MIDIDRequestCapsule; classifier=pj_De
multiplexKey[totalLength=84; segments={pj_DemultiplexKey.ANEPHeader[offset=0; he
aderMask=pj_DemultiplexKey.ByteMask[offset=0; length=4; sequence='01 XX 00 02 ';
 mask=[Z@50d04b2]]+pj_DemultiplexKey.ByteMask[offset=4; length=16; sequence='f4 
f7 03 ff fc 0b f9 02 f5 fb 06 fe f7 0b 0f 0f '; mask=null]+pj_DemultiplexKey.Byt
eMask[offset=16; length=16; sequence='00 fa ff f5 fa f9 f7 0a 03 f9 fb fa f6 f3 
f5 f2 '; mask=null]}]
new capsule channel: class=class ants.core.DLRequestCapsule; classifier=pj_Demul
tiplexKey[totalLength=84; segments={pj_DemultiplexKey.ANEPHeader[offset=0; heade
rMask=pj_DemultiplexKey.ByteMask[offset=0; length=4; sequence='01 XX 00 02 '; ma
sk=[Z@50d04b2]]+pj_DemultiplexKey.ByteMask[offset=4; length=16; sequence='fb f1 
f9 06 08 f4 fb f8 fb 0f 04 0a 03 0c 0d fd '; mask=null]+pj_DemultiplexKey.ByteMa
sk[offset=16; length=16; sequence='00 fa ff f5 fa f9 f7 0a 03 f9 fb fa f6 f3 f5 
f2 '; mask=null]}]
Flow[name=Protocol ants.dante.DanteProtocol;objid=0x50d095e] loading LOCAL_PROTO
COL ants.dante.DanteProtocol
buf.length = 112, payloadStart = 52
capsule channel instantiating class ants.dante.DanteCapsule
Capsule ants.dante.DanteCapsule[s=255.255.255.255;d=18.31.12.255;p=0.0.0.0] exploded: Invalid access: Principal[RemoteUsers] rawSend execute
ants.core.security.ReferenceMonitorException: Invalid access: Principal[RemoteUsers] rawSend execute
        at ants.core.security.ReferenceMonitor.checkPermission(ReferenceMonitor.java:98)
        at ants.core.Node.sendToNeighbor(Node.java:524)
        at ants.dante.DanteCapsule.evaluate(DanteCapsule.java:97)
        at ants.core.CapsuleChannel.receive(CapsuleChannel.java:161)
        at edu.utah.janos.nodeos.pj_ThreadPool.run(pj_ThreadPool.java:212)
        at edu.utah.janos.nodeos.pj_Thread$ThreadWrapper.run(pj_Thread.java:71)

buf.length = 112, payloadStart = 52
capsule channel instantiating class ants.dante.DanteCapsule
Capsule ants.dante.DanteCapsule[s=255.255.255.255;d=18.31.12.255;p=0.0.0.0] exploded: Invalid access: Principal[RemoteUsers] rawSend execute
ants.core.security.ReferenceMonitorException: Invalid access: Principal[RemoteUsers] rawSend execute
        at ants.core.security.ReferenceMonitor.checkPermission(ReferenceMonitor.java:98)
        at ants.core.Node.sendToNeighbor(Node.java:524)
        at ants.dante.DanteCapsule.evaluate(DanteCapsule.java:97)
        at ants.core.CapsuleChannel.receive(CapsuleChannel.java:161)
        at edu.utah.janos.nodeos.pj_ThreadPool.run(pj_ThreadPool.java:212)
        at edu.utah.janos.nodeos.pj_Thread$ThreadWrapper.run(pj_Thread.java:71)





[ Janos ] [ OSKit ] [ Network Testbed ] [ Flick ] [ Fluke ]
Flux Research Group / Department of Computer Science / University of Utah