[LAS-74] Starting Service throws AgentAlreadyRegisteredException Created: 01/Jul/14  Updated: 09/Oct/14  Resolved: 09/Oct/14

Status: Closed
Project: las2peer
Component/s: las2peer Monitoring
Affects Version/s: None
Fix Version/s: v0.3

Type: Bug Priority: Minor
Reporter: Thomas Cujé Assignee: Thomas Cujé
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

LAS2peer seed network


Fix Release Date: 18/May/15

 Description   

Starting the MonitoringDataProcessingService or MonitoringDataProvisionService throws an i5.las2peer.p2p.AgentAlreadyRegisteredException.

exception in executed line: startService('i5.las2peer.services.monitoring.provision.MonitoringDataProvisionService')

i5.las2peer.execution.L2pServiceException: Error registering the service at the node!
at i5.las2peer.tools.L2pNodeLauncher.startService(L2pNodeLauncher.java:525)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at i5.las2peer.tools.CommandPrompt.executeMethod(CommandPrompt.java:349)
at i5.las2peer.tools.CommandPrompt.handleCommand(CommandPrompt.java:297)
at i5.las2peer.tools.CommandPrompt.handleLine(CommandPrompt.java:456)
at i5.las2peer.tools.CommandPrompt.prompt(CommandPrompt.java:778)
at i5.las2peer.tools.CommandPrompt.startPrompt(CommandPrompt.java:794)
at i5.las2peer.tools.L2pNodeLauncher.interactive(L2pNodeLauncher.java:628)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at i5.las2peer.tools.CommandPrompt.executeMethod(CommandPrompt.java:349)
at i5.las2peer.tools.CommandPrompt.handleCommand(CommandPrompt.java:297)
at i5.las2peer.tools.CommandPrompt.handleLine(CommandPrompt.java:456)
at i5.las2peer.tools.L2pNodeLauncher.launchSingle(L2pNodeLauncher.java:737)
at i5.las2peer.tools.L2pNodeLauncher.main(L2pNodeLauncher.java:879)
Caused by: i5.las2peer.p2p.AgentAlreadyRegisteredException: This agent is already running here!
at i5.las2peer.p2p.Node.registerReceiver(Node.java:580)
at i5.las2peer.p2p.PastryNodeImpl.registerReceiver(PastryNodeImpl.java:471)
at i5.las2peer.tools.L2pNodeLauncher.startService(L2pNodeLauncher.java:582)
at i5.las2peer.tools.L2pNodeLauncher.startService(L2pNodeLauncher.java:518)
... 19 more



 Comments   
Comment by Peter de Lange [ 04/Jul/14 ]

Hm..could it be that you try to start a monitoring node into a network that had a monitoring node / service already started? The monitoring, or in particular the frontend of the provision service uses an own agent that might already have been registered to the network before. Sorry for this, one could just catch the exeception service side, but I think the monitoring node should always be the first in a network (arguable..).

Comment by Thomas Cujé [ 25/Sep/14 ]

cannot reproduce

Comment by Thomas Cujé [ 09/Oct/14 ]

reopen to edit fix version

Generated at Mon May 20 05:33:00 CEST 2019 using JIRA 7.8.0#78000-sha1:4568b9d484113d74dfb6f152fb925b5fa1be2ef7.