{"action":"created","issue":{"url":"https://api.github.com/repos/sarl/sarl/issues/329","labels_url":"https://api.github.com/repos/sarl/sarl/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/sarl/sarl/issues/329/comments","events_url":"https://api.github.com/repos/sarl/sarl/issues/329/events","html_url":"https://github.com/sarl/sarl/issues/329","id":114507331,"number":329,"title":"Getting UnimplementedCapacityException when instantiating from Java Code","user":{"login":"fnmartinez","id":774253,"avatar_url":"https://avatars.githubusercontent.com/u/774253?v=3","gravatar_id":"","url":"https://api.github.com/users/fnmartinez","html_url":"https://github.com/fnmartinez","followers_url":"https://api.github.com/users/fnmartinez/followers","following_url":"https://api.github.com/users/fnmartinez/following{/other_user}","gists_url":"https://api.github.com/users/fnmartinez/gists{/gist_id}","starred_url":"https://api.github.com/users/fnmartinez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnmartinez/subscriptions","organizations_url":"https://api.github.com/users/fnmartinez/orgs","repos_url":"https://api.github.com/users/fnmartinez/repos","events_url":"https://api.github.com/users/fnmartinez/events{/privacy}","received_events_url":"https://api.github.com/users/fnmartinez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sarl/sarl/labels/1%20-%20Ready","name":"1 - Ready","color":"CCCCCC"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/sarl/sarl/milestones/3","html_url":"https://github.com/sarl/sarl/milestones/1.0.0","labels_url":"https://api.github.com/repos/sarl/sarl/milestones/3/labels","id":708996,"number":3,"title":"1.0.0","description":"First major version.","creator":{"login":"gallandarakhneorg","id":4200154,"avatar_url":"https://avatars.githubusercontent.com/u/4200154?v=3","gravatar_id":"","url":"https://api.github.com/users/gallandarakhneorg","html_url":"https://github.com/gallandarakhneorg","followers_url":"https://api.github.com/users/gallandarakhneorg/followers","following_url":"https://api.github.com/users/gallandarakhneorg/following{/other_user}","gists_url":"https://api.github.com/users/gallandarakhneorg/gists{/gist_id}","starred_url":"https://api.github.com/users/gallandarakhneorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gallandarakhneorg/subscriptions","organizations_url":"https://api.github.com/users/gallandarakhneorg/orgs","repos_url":"https://api.github.com/users/gallandarakhneorg/repos","events_url":"https://api.github.com/users/gallandarakhneorg/events{/privacy}","received_events_url":"https://api.github.com/users/gallandarakhneorg/received_events","type":"User","site_admin":false},"open_issues":39,"closed_issues":26,"state":"open","created_at":"2014-07-03T07:41:37Z","updated_at":"2015-11-02T10:54:20Z","due_on":"2015-09-29T22:00:00Z","closed_at":null},"comments":2,"created_at":"2015-11-02T01:27:33Z","updated_at":"2015-11-02T11:44:21Z","closed_at":null,"body":"Hi! I'm having trouble with the instantiation with Janus from the Java code in my app. I'm getting an UnimplementedCapacityException thrown by Agent.getSkill at line 181 of Agent.java (although a believe it ought to be at line 174). \r\n\r\nThis occurs when I try to create a new task in my agent. I believe it's because the Schedules capacity is never added to the agent capacities map, since the line:\r\n```java\r\nS skill = capacity.cast(this.capacities.get(capacity));\r\n```\r\nSets skill to null.\r\n\r\n<!---\r\n@huboard:{\"order\":296.0,\"milestone_order\":329,\"custom_state\":\"\"}\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/sarl/sarl/issues/comments/152996210","html_url":"https://github.com/sarl/sarl/issues/329#issuecomment-152996210","issue_url":"https://api.github.com/repos/sarl/sarl/issues/329","id":152996210,"user":{"login":"fnmartinez","id":774253,"avatar_url":"https://avatars.githubusercontent.com/u/774253?v=3","gravatar_id":"","url":"https://api.github.com/users/fnmartinez","html_url":"https://github.com/fnmartinez","followers_url":"https://api.github.com/users/fnmartinez/followers","following_url":"https://api.github.com/users/fnmartinez/following{/other_user}","gists_url":"https://api.github.com/users/fnmartinez/gists{/gist_id}","starred_url":"https://api.github.com/users/fnmartinez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnmartinez/subscriptions","organizations_url":"https://api.github.com/users/fnmartinez/orgs","repos_url":"https://api.github.com/users/fnmartinez/repos","events_url":"https://api.github.com/users/fnmartinez/events{/privacy}","received_events_url":"https://api.github.com/users/fnmartinez/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T11:44:21Z","updated_at":"2015-11-02T11:44:21Z","body":"Hi! Here is the code where I'm launching the Janus part of the app\r\n```java\r\npublic class JanusManager {\r\n\t\r\n\tprivate static final Class<? extends Agent> ELECTORAL_COMMITTEE_AGENT_TYPE = ElectoralCommitteeAgent.class;\r\n\tprivate static final Class<? extends Agent> CANDIDATE_AGENT_TYPE = CandidateAgent.class;\r\n\tprivate static final Class<? extends Agent> VOTER_AGENT_TYPE = VoterAgent.class;\t\r\n\t\r\n\tprivate final Kernel kernel;\r\n\tprivate int millisPerYear = 4000;\r\n\tprivate int yearsPerElection = 4;\r\n\t\r\n\tpublic JanusManager() throws Exception {\r\n\t\tClass<? extends Module> dumbModule = null;\r\n\t\tthis.kernel = Boot.startJanus(dumbModule, ELECTORAL_COMMITTEE_AGENT_TYPE, millisPerYear, yearsPerElection);\r\n\t}\r\n}\r\n```\r\n\r\nRegarding the `-ea` flag, I will try to see how to use it from now on. "}}