From 4e9caaeecd2c46eb9ba0f403ba7312b5859068aa Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Wed, 19 Jul 2017 18:40:18 +0000 Subject: [PATCH] ref 8819: Extend The Algorithms Importer to Manage Many Processes as Black Boxes https://support.d4science.org/issues/8819 Updated the support Social Notification Service git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@151165 82a268e6-3cf1-43bd-a215-b396298e98cf --- pom.xml | 9 +- .../client/project/ProjectManager.java | 20 +- .../client/tools/ToolsPanel.java | 26 +- .../tools/explorer/ExplorerProjectPanel.java | 36 +- .../server/SessionUtil.java | 8 +- .../server/StatAlgoImporterServiceImpl.java | 5 +- .../server/generator/ProjectDeploy.java | 11 +- .../server/is/InformationSystemUtils.java | 76 ++ .../poolmanager/DataMinerPoolManager.java | 4 +- .../server/social/AlgorithmNotification.java | 292 ++++++- .../shared/Constants.java | 9 +- .../statalgoimporter.gwt.xml | 6 +- .../statalgoimporter.gwt.xml | 2 +- .../ISResourceTest.java | 44 +- .../SocialNetworkingTest.java | 96 +++ test.log | 773 ++++++++++++++++++ 16 files changed, 1344 insertions(+), 73 deletions(-) create mode 100644 src/test/java/org/gcube/portlets/user/statisticalalgorithmsimporter/SocialNetworkingTest.java diff --git a/pom.xml b/pom.xml index 19a5fee..a5c76a1 100644 --- a/pom.xml +++ b/pom.xml @@ -252,6 +252,12 @@ provided + + + org.json + json + 20170516 + @@ -307,7 +313,8 @@ org.gcube.portlets.widgets workspace-explorer - [1.0.0-SNAPSHOT,2.0.0-SNAPSHOT) + + 1.6.0-SNAPSHOT diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/project/ProjectManager.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/project/ProjectManager.java index 27bacf9..9bf9b58 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/project/ProjectManager.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/project/ProjectManager.java @@ -474,11 +474,13 @@ public class ProjectManager { } private void saveInputDataForMainSet(final InputData inputData, final ItemDescription itemDescription) { + final StatAlgoImporterMonitor monitor=new StatAlgoImporterMonitor(); + StatAlgoImporterServiceAsync.INSTANCE.saveProject(inputData, new AsyncCallback() { @Override public void onSuccess(Void result) { - setMainCodeOnServer(itemDescription); + setMainCodeOnServer(itemDescription, monitor); /* * UtilsGXT3.info("Save", "Project saved!"); * fireProjectStatusExplorerRefreshEvent(); @@ -487,6 +489,7 @@ public class ProjectManager { @Override public void onFailure(Throwable caught) { + monitor.hide(); if (caught instanceof StatAlgoImporterSessionExpiredException) { eventBus.fireEvent(new SessionExpiredEvent(SessionExpiredType.EXPIREDONSERVER)); } else { @@ -499,13 +502,14 @@ public class ProjectManager { }); } - private void setMainCodeOnServer(final ItemDescription itemDescription) { + private void setMainCodeOnServer(final ItemDescription itemDescription,final StatAlgoImporterMonitor monitor) { Log.debug("Set Main Code: " + itemDescription); StatAlgoImporterServiceAsync.INSTANCE.setMainCode(itemDescription, new AsyncCallback() { @Override public void onFailure(Throwable caught) { + monitor.hide(); if (caught instanceof StatAlgoImporterSessionExpiredException) { eventBus.fireEvent(new SessionExpiredEvent(SessionExpiredType.EXPIREDONSERVER)); } else { @@ -518,6 +522,7 @@ public class ProjectManager { @Override public void onSuccess(Project result) { + monitor.hide(); project = result; fireProjectStatusMainCodeSetEvent(); } @@ -567,15 +572,18 @@ public class ProjectManager { } private void saveInputDataForBinarySet(final InputData inputData, final ItemDescription itemDescription) { + final StatAlgoImporterMonitor monitor=new StatAlgoImporterMonitor(); + StatAlgoImporterServiceAsync.INSTANCE.saveProject(inputData, new AsyncCallback() { @Override public void onSuccess(Void result) { - setBinaryCodeOnServer(itemDescription); + setBinaryCodeOnServer(itemDescription,monitor); } @Override public void onFailure(Throwable caught) { + monitor.hide(); if (caught instanceof StatAlgoImporterSessionExpiredException) { eventBus.fireEvent(new SessionExpiredEvent(SessionExpiredType.EXPIREDONSERVER)); } else { @@ -588,13 +596,14 @@ public class ProjectManager { }); } - private void setBinaryCodeOnServer(final ItemDescription itemDescription) { + private void setBinaryCodeOnServer(final ItemDescription itemDescription, final StatAlgoImporterMonitor monitor) { Log.debug("Set Binary Code: " + itemDescription); StatAlgoImporterServiceAsync.INSTANCE.setBinaryCode(itemDescription, new AsyncCallback() { @Override public void onFailure(Throwable caught) { + monitor.hide(); if (caught instanceof StatAlgoImporterSessionExpiredException) { eventBus.fireEvent(new SessionExpiredEvent(SessionExpiredType.EXPIREDONSERVER)); } else { @@ -607,6 +616,7 @@ public class ProjectManager { @Override public void onSuccess(Project result) { + monitor.hide(); project = result; fireProjectStatusBinaryCodeSetEvent(); } @@ -853,7 +863,7 @@ public class ProjectManager { retrieveOperationDeployLogs(operationId, monitor); break; - case "INPROGRESS": + case "IN PROGRESS": monitorDeployOperation.repeat(); break; default: diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/tools/ToolsPanel.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/tools/ToolsPanel.java index fcc5768..8aaf78c 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/tools/ToolsPanel.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/tools/ToolsPanel.java @@ -45,24 +45,28 @@ public class ToolsPanel extends ContentPanel { } private void bindToEvents() { - eventBus.addHandler(ProjectStatusEvent.TYPE, - new ProjectStatusEvent.ProjectStatusEventHandler() { + eventBus.addHandler(ProjectStatusEvent.TYPE, new ProjectStatusEvent.ProjectStatusEventHandler() { - @Override - public void onProjectStatus(ProjectStatusEvent event) { - Log.debug("Tools Panel Catch ProjectStatusEvent"+event); - doProjectStatusCommand(event); + @Override + public void onProjectStatus(ProjectStatusEvent event) { + Log.debug("Tools Panel Catch ProjectStatusEvent" + event); + doProjectStatusCommand(event); - } - }); + } + }); Log.debug("ToolsPanel bind to Event do!"); } private void doProjectStatusCommand(ProjectStatusEvent event) { - if (first) { - expand(); - } else { + try { + if (first) { + expand(); + } else { + } + } catch (Throwable e) { + Log.debug("Error in expand: " + e.getLocalizedMessage(), e); + e.printStackTrace(); } } diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/tools/explorer/ExplorerProjectPanel.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/tools/explorer/ExplorerProjectPanel.java index e578168..3a8b56b 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/tools/explorer/ExplorerProjectPanel.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/tools/explorer/ExplorerProjectPanel.java @@ -106,7 +106,11 @@ public class ExplorerProjectPanel extends ContentPanel { } private void manageProjectStatusEvents(ProjectStatusEvent event) { - + if (event == null || event.getProjectStatusEventType() == null) { + Log.error("Invalid event: " + event); + return; + } + Log.debug("Project Status Event: " + event.getProjectStatusEventType()); switch (event.getProjectStatusEventType()) { case START: break; @@ -119,7 +123,7 @@ public class ExplorerProjectPanel extends ContentPanel { break; case SAVE: case MAIN_CODE_SET: - case BINARY_CODE_SET: + case BINARY_CODE_SET: case SOFTWARE_CREATED: case SOFTWARE_PUBLISH: case SOFTWARE_REPACKAGE: @@ -206,8 +210,8 @@ public class ExplorerProjectPanel extends ContentPanel { dnd.addWorkspaceUploadNotificationListener(workspaceUploaderListener); // ToolBar - if (event.getProject().getProjectConfig().getProjectSupport() instanceof ProjectSupportBlackBox|| - event.getProject().getProjectConfig().getProjectSupport() instanceof ProjectSupportBashEdit) { + if (event.getProject().getProjectConfig().getProjectSupport() instanceof ProjectSupportBlackBox + || event.getProject().getProjectConfig().getProjectSupport() instanceof ProjectSupportBashEdit) { btnSetMain = new TextButton("Set Code"); btnSetMain.setIcon(StatAlgoImporterResources.INSTANCE.add16()); btnSetMain.setScale(ButtonScale.SMALL); @@ -293,8 +297,8 @@ public class ExplorerProjectPanel extends ContentPanel { add(v, new MarginData(new Margins(0))); forceLayout(); - } catch (Exception e) { - Log.error("Error opening wsResourceExplorerPanel"); + } catch (Throwable e) { + Log.error("Error opening wsResourceExplorerPanel: " + e.getLocalizedMessage(), e); e.printStackTrace(); } } @@ -306,14 +310,18 @@ public class ExplorerProjectPanel extends ContentPanel { } - - private void deleteItem(SelectEvent event) { - ItemDescription itemDescription = new ItemDescription(selectedItem.getId(), selectedItem.getName(), - selectedItem.getOwner(), selectedItem.getPath(), selectedItem.getType().name()); - DeleteItemEvent deleteItemEvent = new DeleteItemEvent(itemDescription); - eventBus.fireEvent(deleteItemEvent); - Log.debug("Fired: " + deleteItemEvent); + Log.debug("Selected Item: "+selectedItem); + if (selectedItem != null) { + ItemDescription itemDescription = new ItemDescription(selectedItem.getId(), selectedItem.getName(), + selectedItem.getOwner(), selectedItem.getPath(), selectedItem.getType().name()); + DeleteItemEvent deleteItemEvent = new DeleteItemEvent(itemDescription); + Log.debug("DeleteItemEvent: " + itemDescription); + eventBus.fireEvent(deleteItemEvent); + Log.debug("Fired: " + deleteItemEvent); + } else { + UtilsGXT3.info("Attention", "Select a item!"); + } } private void setMainCode(SelectEvent event) { @@ -325,7 +333,6 @@ public class ExplorerProjectPanel extends ContentPanel { } } - private void setMainCodeData() { ItemDescription itemDescription = new ItemDescription(selectedItem.getId(), selectedItem.getName(), selectedItem.getOwner(), selectedItem.getPath(), selectedItem.getType().name()); @@ -344,7 +351,6 @@ public class ExplorerProjectPanel extends ContentPanel { } } - private void setBinaryCodeData() { ItemDescription itemDescription = new ItemDescription(selectedItem.getId(), selectedItem.getName(), selectedItem.getOwner(), selectedItem.getPath(), selectedItem.getType().name()); diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/SessionUtil.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/SessionUtil.java index d997d16..7fe5a59 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/SessionUtil.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/SessionUtil.java @@ -193,15 +193,15 @@ public class SessionUtil { } // - public static ArrayList getRecipients(ServletContext servletContest) { + public static ArrayList getDefaultRecipients(ServletContext servletContest) { @SuppressWarnings("unchecked") - ArrayList recipients = (ArrayList) servletContest.getAttribute(Constants.RECIPIENTS); + ArrayList recipients = (ArrayList) servletContest.getAttribute(Constants.DEFAULT_RECIPIENTS); return recipients; } - public static ArrayList setRecipients(ServletContext servletContest, ArrayList recipients) { - servletContest.setAttribute(Constants.RECIPIENTS, recipients); + public static ArrayList setDefaultRecipients(ServletContext servletContest, ArrayList recipients) { + servletContest.setAttribute(Constants.DEFAULT_RECIPIENTS, recipients); return recipients; } diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/StatAlgoImporterServiceImpl.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/StatAlgoImporterServiceImpl.java index 1c2b3f2..9f66aec 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/StatAlgoImporterServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/StatAlgoImporterServiceImpl.java @@ -92,7 +92,7 @@ public class StatAlgoImporterServiceImpl extends RemoteServiceServlet implements } System.out.println("Recipients: " + recipients); - SessionUtil.setRecipients(this.getServletContext(), recipients); + SessionUtil.setDefaultRecipients(this.getServletContext(), recipients); } @@ -701,7 +701,6 @@ public class StatAlgoImporterServiceImpl extends RemoteServiceServlet implements HttpServletRequest httpRequest = this.getThreadLocalRequest(); ServiceCredentials serviceCredentials = SessionUtil.getServiceCredentials(httpRequest); logger.debug("PublishSoftware()"); - ArrayList recipients = SessionUtil.getRecipients(httpRequest.getServletContext()); Project project = SessionUtil.getProjectSession(httpRequest, serviceCredentials); if (project != null) { SAIDescriptor saiDescriptor = SessionUtil.getSAIDescriptor(httpRequest, serviceCredentials); @@ -709,7 +708,7 @@ public class StatAlgoImporterServiceImpl extends RemoteServiceServlet implements project = projectBuilder.buildDeploy(); SessionUtil.setProjectSession(httpRequest, serviceCredentials, project); ProjectArchiver.archive(project, serviceCredentials); - ProjectDeploy projectDeploy = new ProjectDeploy(httpRequest, serviceCredentials, project, recipients); + ProjectDeploy projectDeploy = new ProjectDeploy(httpRequest, serviceCredentials, project); DeploySave deploySave = projectDeploy.deploy(); if (saiDescriptor != null && saiDescriptor.getPoolManagerConfig() != null && saiDescriptor.getPoolManagerConfig().isEnable()) { diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/generator/ProjectDeploy.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/generator/ProjectDeploy.java index 9e561cd..47d3fd1 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/generator/ProjectDeploy.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/generator/ProjectDeploy.java @@ -1,11 +1,8 @@ package org.gcube.portlets.user.statisticalalgorithmsimporter.server.generator; -import java.util.ArrayList; - import javax.servlet.http.HttpServletRequest; import org.gcube.portlets.user.statisticalalgorithmsimporter.server.social.AlgorithmNotification; -import org.gcube.portlets.user.statisticalalgorithmsimporter.server.social.Recipient; import org.gcube.portlets.user.statisticalalgorithmsimporter.server.storage.DeploySave; import org.gcube.portlets.user.statisticalalgorithmsimporter.server.util.ServiceCredentials; import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.exception.StatAlgoImporterServiceException; @@ -25,14 +22,12 @@ public class ProjectDeploy { private ServiceCredentials serviceCredentials; private Project project; - private ArrayList recipients; private HttpServletRequest httpServletRequest; - public ProjectDeploy(HttpServletRequest httpServletRequest, ServiceCredentials serviceCredentials, Project project, - ArrayList recipients) { + public ProjectDeploy(HttpServletRequest httpServletRequest, ServiceCredentials serviceCredentials, + Project project) { this.serviceCredentials = serviceCredentials; this.project = project; - this.recipients = recipients; this.httpServletRequest = httpServletRequest; } @@ -50,7 +45,7 @@ public class ProjectDeploy { } private void sendNotify(String body) { - AlgorithmNotification notify = new AlgorithmNotification(httpServletRequest, serviceCredentials, recipients, + AlgorithmNotification notify = new AlgorithmNotification(httpServletRequest, serviceCredentials, body); notify.run(); } diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/is/InformationSystemUtils.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/is/InformationSystemUtils.java index 89d2d84..490abfe 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/is/InformationSystemUtils.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/is/InformationSystemUtils.java @@ -171,5 +171,81 @@ public class InformationSystemUtils { throw new StatAlgoImporterServiceException(error, e); } } + + + public static String retrieveSocialNetworkingService(String scope) throws StatAlgoImporterServiceException { + try { + logger.debug("Retrieve SocialNetworkingService"); + if (scope == null || scope.length() == 0) + return null; + + ScopeProvider.instance.set(scope); + logger.debug("SocialNetworkingService resource in scope: " + scope); + + SimpleQuery query = ICFactory.queryFor(GCoreEndpoint.class); + + query.addCondition("$resource/Profile/ServiceClass/text() eq '" + Constants.SOCIAL_NETWORKING_CLASS + "'") + .addCondition("$resource/Profile/ServiceName/text() eq '" + Constants.SOCIAL_NETWORKING_NAME + "'") + .setResult("$resource"); + + DiscoveryClient client = ICFactory.clientFor(GCoreEndpoint.class); + List socialNetworkingResources = client.submit(query); + logger.debug("Resources: " + socialNetworkingResources); + + String socialNetworkingURI=null; + + for (GCoreEndpoint gCoreEndpoint : socialNetworkingResources) { + if (gCoreEndpoint.scopes() != null) { + ScopeGroup scopes = gCoreEndpoint.scopes(); + Iterator iterator = scopes.iterator(); + String scopeFound = null; + boolean found = false; + while (iterator.hasNext() && !found) { + scopeFound = iterator.next(); + if (scopeFound.compareTo(scope) == 0) { + found = true; + } + } + if (found) { + try { + logger.debug( + "SocialNetworking Endpoints map: " + gCoreEndpoint.profile().endpointMap()); + Map endpointMap = gCoreEndpoint.profile().endpointMap(); + Endpoint dataMinerEndpoint = endpointMap.get("jersey-servlet"); + logger.debug("SocialNetworking Endpoint: " + dataMinerEndpoint); + + if (dataMinerEndpoint != null && dataMinerEndpoint.uri() != null) { + socialNetworkingURI=dataMinerEndpoint.uri().toString(); + } + + } catch (Throwable e) { + String error = "Error in discovery SocialNetworking gCubeEndpoint resource on IS in scope: " + + scope; + logger.error(error); + logger.error( + "Error {resource=" + gCoreEndpoint + ", error=" + e.getLocalizedMessage() + "}"); + e.printStackTrace(); + throw new StatAlgoImporterServiceException(error, e); + } + break; + + } + + } + } + + + logger.debug("SocialNetworking URI: " + socialNetworkingURI); + return socialNetworkingURI; + + } catch (StatAlgoImporterServiceException e) { + throw e; + } catch (Throwable e) { + String error = "Error in discovery SocialNetworking gCubeEndpoint resource on IS in scope : " + scope; + logger.error(error); + logger.error("Error: " + e.getLocalizedMessage(), e); + throw new StatAlgoImporterServiceException(error, e); + } + } } diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/poolmanager/DataMinerPoolManager.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/poolmanager/DataMinerPoolManager.java index 3423ab1..99134a9 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/poolmanager/DataMinerPoolManager.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/poolmanager/DataMinerPoolManager.java @@ -80,7 +80,7 @@ public class DataMinerPoolManager { URL urlObj = new URL(requestUrl); HttpURLConnection connection = (HttpURLConnection) urlObj.openConnection(); connection.setRequestMethod("GET"); - connection.setDoOutput(true); + // connection.setRequestProperty("Authorization", "Basic " + // encoded); InputStream is = connection.getInputStream(); @@ -128,7 +128,6 @@ public class DataMinerPoolManager { URL urlObj = new URL(requestUrl); HttpURLConnection connection = (HttpURLConnection) urlObj.openConnection(); connection.setRequestMethod("GET"); - connection.setDoOutput(true); InputStream is = connection.getInputStream(); BufferedReader reader = new BufferedReader(new InputStreamReader(is)); @@ -176,7 +175,6 @@ public class DataMinerPoolManager { URL urlObj = new URL(requestUrl); HttpURLConnection connection = (HttpURLConnection) urlObj.openConnection(); connection.setRequestMethod("GET"); - connection.setDoOutput(true); InputStream is = connection.getInputStream(); BufferedReader reader = new BufferedReader(new InputStreamReader(is)); diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/social/AlgorithmNotification.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/social/AlgorithmNotification.java index 4cd8733..47d5103 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/social/AlgorithmNotification.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/social/AlgorithmNotification.java @@ -1,5 +1,13 @@ package org.gcube.portlets.user.statisticalalgorithmsimporter.server.social; +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.OutputStreamWriter; +import java.net.HttpURLConnection; +import java.net.MalformedURLException; +import java.net.URL; import java.util.ArrayList; import java.util.List; @@ -16,31 +24,37 @@ import org.gcube.common.homelibrary.home.workspace.Workspace; import org.gcube.common.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException; import org.gcube.portal.notifications.bean.GenericItemBean; import org.gcube.portal.notifications.thread.MessageNotificationsThread; +import org.gcube.portlets.user.statisticalalgorithmsimporter.server.SessionUtil; +import org.gcube.portlets.user.statisticalalgorithmsimporter.server.is.InformationSystemUtils; import org.gcube.portlets.user.statisticalalgorithmsimporter.server.util.ServiceCredentials; +import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.Constants; +import org.json.JSONArray; +import org.json.JSONObject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** - * TDMNotification notification sharing TR, templates or rules + * * * @author Giancarlo Panichi * * */ public class AlgorithmNotification extends Thread { + private static final String MESSAGE_SUBJECT = "[SAI] New software publication requested"; private static Logger logger = LoggerFactory.getLogger(AlgorithmNotification.class); private HttpServletRequest httpServletRequest; private ServiceCredentials serviceCredentials; + private String socialNetworkingServiceURL; private ArrayList recipients; private String body; + private boolean serviceUp; public AlgorithmNotification(HttpServletRequest httpServletRequest, ServiceCredentials serviceCredentials, - ArrayList recipients, String body) { + String body) { this.serviceCredentials = serviceCredentials; - this.recipients = recipients; this.httpServletRequest = httpServletRequest; - this.body=body; - + this.body = body; } public void run() { @@ -49,15 +63,269 @@ public class AlgorithmNotification extends Thread { private void algorithmPublicationEmail() { try { + retrieveSocialNetworkingService(); + testSocialNetworksingServiceIsUp(); + retrieveRecipient(); + sendEmailToAdministrators(); + } catch (Throwable e) { + logger.error("AlgorithmPublicationEmail(): " + e.getLocalizedMessage(), e); + e.printStackTrace(); + + } + + } + + public void retrieveSocialNetworkingService() { + try { + socialNetworkingServiceURL = InformationSystemUtils + .retrieveSocialNetworkingService(Constants.DEFAULT_SCOPE); + logger.info("SocialNetworkingServiceURL: " + socialNetworkingServiceURL); + } catch (Throwable e) { + logger.error(e.getLocalizedMessage(), e); + + } + } + + private void testSocialNetworksingServiceIsUp() { + if (socialNetworkingServiceURL == null || socialNetworkingServiceURL.isEmpty()) { + logger.error("SocialNetworkingService URL is undefined"); + serviceUp = false; + return; + } else { + try { + String requestUrl = socialNetworkingServiceURL + "/"; + logger.debug("SocialNetworkingUrl request=" + requestUrl); + + URL urlObj = new URL(requestUrl); + HttpURLConnection connection = (HttpURLConnection) urlObj.openConnection(); + connection.setRequestMethod("GET"); + int code = connection.getResponseCode(); + if (code == 200) { + serviceUp = true; + } else { + serviceUp = false; + } + + return; + } catch (MalformedURLException e) { + logger.error("SocialNetworksingService URL seems to be invalid: " + e.getLocalizedMessage(), e); + serviceUp = false; + } catch (IOException e) { + logger.error("SocialNetworksingService error occured in request: " + e.getLocalizedMessage(), e); + serviceUp = false; + } catch (Throwable e) { + logger.error("SocialNetworksingService error occured: " + e.getLocalizedMessage(), e); + serviceUp = false; + } + } + } + + private void retrieveRecipient() { + if (serviceUp) { + logger.error("SocialNetworkingService retrieve administartors"); + + // https://socialnetworking-d-d4s.d4science.org/social-networking-library-ws/rest/2/users/get-usernames-by-global-role?role-name=DataMiner-Manager&gcube-token= + // serviceURL=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest + // we must add this + // 2/users/get-usernames-by-global-role?role-name=DataMiner-Manager&gcube-token= + try { + String requestUrl = socialNetworkingServiceURL + + "/2/users/get-usernames-by-global-role?role-name=DataMiner-Manager&gcube-token=" + + serviceCredentials.getToken(); + logger.debug("SocialNetworkingService request=" + requestUrl); + + URL urlObj = new URL(requestUrl); + HttpURLConnection connection = (HttpURLConnection) urlObj.openConnection(); + connection.setRequestMethod("GET"); + // connection.setRequestProperty("Authorization", "Basic " + + // encoded); + InputStream is = connection.getInputStream(); + BufferedReader reader = new BufferedReader(new InputStreamReader(is)); + String line = null; + StringBuffer usersWithAdminRole = new StringBuffer(); + logger.info("SocialNetworkingService retrieve response"); + while ((line = reader.readLine()) != null) { + usersWithAdminRole.append(line); + } + + + logger.debug("SocialNetworkingService response: "+usersWithAdminRole.toString()); + convertJSONIntoRecipient(usersWithAdminRole.toString()); + return; + + } catch (MalformedURLException e) { + logger.error("SocialNetworkingService URL seems to be invalid: " + e.getLocalizedMessage(), e); + logger.info("Use default administrators for notifications"); + recipients = SessionUtil.getDefaultRecipients(httpServletRequest.getServletContext()); + + } catch (IOException e) { + logger.error("SocialNetworkingService error occured in request: " + e.getLocalizedMessage(), e); + logger.info("Use default administrators for notifications"); + recipients = SessionUtil.getDefaultRecipients(httpServletRequest.getServletContext()); + } catch (Throwable e) { + logger.error("SocialNetworkingService error occured: " + e.getLocalizedMessage(), e); + logger.info("Use default administrators for notifications"); + recipients = SessionUtil.getDefaultRecipients(httpServletRequest.getServletContext()); + } + } else { + logger.info("Use default administrators for notifications"); + recipients = SessionUtil.getDefaultRecipients(httpServletRequest.getServletContext()); + } + + } + + private void convertJSONIntoRecipient(String usersWithAdminRole) { + try { + JSONObject usersWithAdminRoleObject = new JSONObject(usersWithAdminRole); + boolean requestSuccess = usersWithAdminRoleObject.getBoolean("success"); + if (requestSuccess) { + recipients = new ArrayList<>(); + JSONArray usersAdminArray = usersWithAdminRoleObject.getJSONArray("result"); + for (int i = 0; i < usersAdminArray.length(); i++) { + String usernameAdmin = usersAdminArray.getString(i); + if (usernameAdmin != null && !usernameAdmin.isEmpty()) { + Recipient userAdmin = new Recipient(usernameAdmin, "", ""); + recipients.add(userAdmin); + } + } + if (recipients.isEmpty()) { + recipients = SessionUtil.getDefaultRecipients(httpServletRequest.getServletContext()); + logger.info("Use default administrators for notifications"); + } + + } else { + recipients = SessionUtil.getDefaultRecipients(httpServletRequest.getServletContext()); + logger.info("Use default administrators for notifications"); + + } + + } catch (Throwable e) { + logger.error("SocialNetworkingService error occured retrieving administrators: " + e.getLocalizedMessage(), + e); + logger.info("Use default administrators for notifications"); + recipients = SessionUtil.getDefaultRecipients(httpServletRequest.getServletContext()); + + } + } + + private void sendEmailToAdministrators() { + if (serviceUp) { + sendByService(); + } else { + sendByNotificationManager(); + } + + } + + private void sendByService() { + // 2/messages/write-message + try { + String requestUrl = socialNetworkingServiceURL + "/2/messages/write-message?gcube-token=" + + serviceCredentials.getToken(); + logger.debug("SocialNetworkingService request=" + requestUrl); + + URL urlObj = new URL(requestUrl); + HttpURLConnection connection = (HttpURLConnection) urlObj.openConnection(); + connection.addRequestProperty("Content-Type", "application/json"); + connection.setRequestMethod("POST"); + connection.setDoInput(true); + connection.setDoOutput(true); + + String parameter = createJSONMessage(); + OutputStreamWriter wr = new OutputStreamWriter(connection.getOutputStream()); + wr.write(parameter); + wr.flush(); + wr.close(); + + int code = connection.getResponseCode(); + logger.info("Response Code: " + code); + if (code == 200 || code == 201) { + logger.info("Mesage send to administrators"); + InputStream is = connection.getInputStream(); + BufferedReader reader = new BufferedReader(new InputStreamReader(is)); + String line = null; + StringBuffer response = new StringBuffer(); + logger.info("SocialNetworkingService retrieve response"); + while ((line = reader.readLine()) != null) { + response.append(line); + } + logger.debug("SocialNetworkingService response: " + response.toString()); + } else { + if (code == 500) { + + logger.error("Error sending message to administrators"); + InputStream es = connection.getErrorStream(); + BufferedReader reader = new BufferedReader(new InputStreamReader(es)); + String line = null; + StringBuffer response = new StringBuffer(); + logger.info("SocialNetworkingService retrieve error"); + while ((line = reader.readLine()) != null) { + response.append(line); + } + + logger.debug("SocialNetworkingService error: " + response.toString()); + } else { + + } + } + } catch (MalformedURLException e) { + logger.error("SocialNetworkingService URL seems to be invalid: " + e.getLocalizedMessage(), e); + } catch (IOException e) { + logger.error("SocialNetworkingService error occured in request: " + e.getLocalizedMessage(), e); + } catch (Throwable e) { + logger.error("SocialNetworkingService error occured: " + e.getLocalizedMessage(), e); + + } + + } + + private String createJSONMessage() { + try { + // + // "body": "string" /* The body of the message */ + // "subject": "string" /* The subject of the message */ + // "recipients": [ + // { /* A recipient object */ + // "id": "string" /* The id of the recipient */ + // } + // ] + // + + JSONObject message = new JSONObject(); + message.put("subject", MESSAGE_SUBJECT); + String bodyEscaped=body.replace("\\", "\\\\"); + logger.debug("body: "+body); + logger.debug("bodyEscaped: "+bodyEscaped); + + message.put("body", bodyEscaped); + JSONArray messageRecipipientsArray = new JSONArray(); + for (Recipient recipient : recipients) { + JSONObject rec = new JSONObject(); + rec.put("id", recipient.getUser()); + messageRecipipientsArray.put(rec); + } + message.put("recipients", messageRecipipientsArray); + logger.debug("Message: "+message.toString()); + return message.toString(); + } catch (Throwable e) { + logger.error("SocialNetworkingService error in message creation: " + e.getLocalizedMessage(), e); + e.printStackTrace(); + throw e; + } + + } + + private void sendByNotificationManager() { + try { Workspace workspace = HomeLibrary.getUserWorkspace(serviceCredentials.getUserName()); List recipientIds = retrieveListAddressee(); List recipients = retrieveRecipients(); - String subject = "[SAI] New software publication requested"; + String subject = MESSAGE_SUBJECT; String messageId; @@ -75,10 +343,9 @@ public class AlgorithmNotification extends Thread { Thread thread = new Thread(new MessageNotificationsThread(recipients, messageId, subject, body, nm)); thread.start(); - } catch (InternalErrorException | WorkspaceFolderNotFoundException | HomeNotFoundException e) { - logger.error("AlgorithmPublicationEmail(): " + e.getLocalizedMessage()); + } catch (WorkspaceFolderNotFoundException | InternalErrorException | HomeNotFoundException e) { + logger.error("Error send SAI notfications to admin: " + e.getLocalizedMessage(), e); e.printStackTrace(); - } } @@ -101,10 +368,5 @@ public class AlgorithmNotification extends Thread { return addressee; } - - private void retrieveUsersInRole(){ - //https://socialnetworking-d-d4s.d4science.org/social-networking-library-ws/rest/2/users/get-usernames-by-global-role?role-name=DataMiner-Manager&gcube-token= - - } - + } diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/shared/Constants.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/shared/Constants.java index 54e8d9f..bed412f 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/shared/Constants.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/shared/Constants.java @@ -17,13 +17,13 @@ public class Constants { public static final String STATISTICAL_ALGORITHMS_IMPORTER_LANG = "SAILang"; public static final String DEFAULT_USER = "giancarlo.panichi"; - public final static String DEFAULT_SCOPE = "/gcube/devNext"; - public final static String DEFAULT_TOKEN = "16e65d4f-11e0-4e4a-84b9-351688fccc12-98187548"; + public final static String DEFAULT_SCOPE = "/gcube/devNext/NextNext"; + public final static String DEFAULT_TOKEN = "ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548"; public static final String DEFAULT_ROLE = "OrganizationMember"; public static final String FILE_UPLOADED_FIELD = "FileUploadedField"; public static final String STATISTICAL_ALGORITHMS_IMPORTER_JAR_PUBLIC_LINK = "JarPublicLink"; - public static final String RECIPIENTS = "Recipients"; + public static final String DEFAULT_RECIPIENTS = "DEFAULT_RECIPIENTS"; // Session public static final String CURR_GROUP_ID = "CURR_GROUP_ID"; @@ -35,6 +35,9 @@ public class Constants { public static final String SAI_NAME = "SAIProfile"; public static final String SAI_CATEGORY = "SAI"; + public static final String SOCIAL_NETWORKING_NAME = "SocialNetworking"; + public static final String SOCIAL_NETWORKING_CLASS = "Portal"; + public static final String POOL_MANAGER_SERVICE_NAME = "dataminer-pool-manager"; public static final String POOL_MANAGER_SERVICE_CLASS = "DataAnalysis"; diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/statalgoimporter.gwt.xml b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/statalgoimporter.gwt.xml index ab20875..591ab9d 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/statalgoimporter.gwt.xml +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/statalgoimporter.gwt.xml @@ -55,15 +55,15 @@ name="locale" values="es" /> --> - + /> --> - + diff --git a/src/main/resources/org/gcube/portlets/user/statisticalalgorithmsimporter/statalgoimporter.gwt.xml b/src/main/resources/org/gcube/portlets/user/statisticalalgorithmsimporter/statalgoimporter.gwt.xml index c0dbf33..d94f2ea 100644 --- a/src/main/resources/org/gcube/portlets/user/statisticalalgorithmsimporter/statalgoimporter.gwt.xml +++ b/src/main/resources/org/gcube/portlets/user/statisticalalgorithmsimporter/statalgoimporter.gwt.xml @@ -68,7 +68,7 @@ - + diff --git a/src/test/java/org/gcube/portlets/user/statisticalalgorithmsimporter/ISResourceTest.java b/src/test/java/org/gcube/portlets/user/statisticalalgorithmsimporter/ISResourceTest.java index 4ca548c..9e9fc13 100644 --- a/src/test/java/org/gcube/portlets/user/statisticalalgorithmsimporter/ISResourceTest.java +++ b/src/test/java/org/gcube/portlets/user/statisticalalgorithmsimporter/ISResourceTest.java @@ -8,11 +8,13 @@ import java.util.List; import javax.xml.bind.JAXBContext; import org.gcube.portlets.user.statisticalalgorithmsimporter.server.is.AvailableProjectConfigJAXB; +import org.gcube.portlets.user.statisticalalgorithmsimporter.server.is.InformationSystemUtils; import org.gcube.portlets.user.statisticalalgorithmsimporter.server.is.PoolManagerJAXB; import org.gcube.portlets.user.statisticalalgorithmsimporter.server.is.SAIDescriptorJAXB; import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.Constants; import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.descriptor.ProjectLanguageType; import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.descriptor.ProjectSupportType; +import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -27,7 +29,8 @@ import junit.framework.TestCase; public class ISResourceTest extends TestCase { private static Logger logger = LoggerFactory.getLogger(ISResourceTest.class); - public void test() { + @Test + public void testSaiDescriptor() { if (Constants.TEST_ENABLE) { try { @@ -76,5 +79,44 @@ public class ISResourceTest extends TestCase { assertTrue("Success", true); } } + + + @Test + public void testSocialNotificationService() { + if (Constants.TEST_ENABLE) { + + try { + String socialNetworkingServiceURL=InformationSystemUtils.retrieveSocialNetworkingService(Constants.DEFAULT_SCOPE); + logger.info("SocialNetworkingService: "+socialNetworkingServiceURL); + assertTrue("Success", true); + } catch (Throwable e) { + logger.error(e.getLocalizedMessage(), e); + fail("Error:" + e.getLocalizedMessage()); + + } + + } else { + assertTrue("Success", true); + } + } + + @Test + public void testDataMinerPoolManagerService() { + if (Constants.TEST_ENABLE) { + + try { + String dataMinerPoolManagerURL=InformationSystemUtils.retrieveDataMinerPoolManager(Constants.DEFAULT_SCOPE); + logger.info("DataMinerPoolManager: "+dataMinerPoolManagerURL); + assertTrue("Success", true); + } catch (Throwable e) { + logger.error(e.getLocalizedMessage(), e); + fail("Error:" + e.getLocalizedMessage()); + + } + + } else { + assertTrue("Success", true); + } + } } diff --git a/src/test/java/org/gcube/portlets/user/statisticalalgorithmsimporter/SocialNetworkingTest.java b/src/test/java/org/gcube/portlets/user/statisticalalgorithmsimporter/SocialNetworkingTest.java new file mode 100644 index 0000000..3793606 --- /dev/null +++ b/src/test/java/org/gcube/portlets/user/statisticalalgorithmsimporter/SocialNetworkingTest.java @@ -0,0 +1,96 @@ +package org.gcube.portlets.user.statisticalalgorithmsimporter; + +import java.io.BufferedReader; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.OutputStreamWriter; +import java.net.HttpURLConnection; +import java.net.URL; + +import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.Constants; +import org.json.JSONObject; +import org.junit.Test; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import junit.framework.TestCase; + +/** + * + * @author Giancarlo Panichi + * + * + */ +public class SocialNetworkingTest extends TestCase { + private static Logger logger = LoggerFactory.getLogger(SocialNetworkingTest.class); + + @Test + public void testMessage() { + if (Constants.TEST_ENABLE) { + + try { + String requestUrl = "http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548"; + logger.debug("SocialNetworkingService request=" + requestUrl); + JSONObject par = new JSONObject( + "{\"subject\":\"[SAI] New software publication requested\",\"recipients\":[{\"id\":\"roberto.cirillo\"},{\"id\":\"ngalante\"},{\"id\":\"lucio.lelii\"},{\"id\":\"gianpaolo.coro\"},{\"id\":\"giancarlo.panichi\"},{\"id\":\"scarponi\"}],\"body\":\"Username: giancarlo.panichi\\nFull Name: Giancarlo Panichi\\nEmail: g.panichi@isti.cnr.it\\n\\nin VRE: /gcube/devNext/NextNext\\n\\nhas requested to publish the algorithm: \\nLanguage: Knime-Workflow\\nAlgorithm Name: KNIMEBLACKBOX\\nClass Name: org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox\\nAlgorithm Description: KnimeBlackBox\\nAlgorithm Category: BLACK_BOX\\n\\nInterpreter Version: 3.2.1\\n\\nwith the following original jar: http://data-d.d4science.org/YUxwK1NwdlA4b3JLYjVkUVNpTzNZU0xta2Fic1VzaytHbWJQNStIS0N6Yz0\\nadmin copy jar: http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0\\n\\nInstaller: \\n./addAlgorithm.sh KNIMEBLACKBOX BLACK_BOX org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox /gcube/devNext/NextNext transducerers N http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0 \\\"KnimeBlackBox\\\"\"}"); + logger.debug(par.toString()); + + URL urlObj = new URL(requestUrl); + HttpURLConnection connection = (HttpURLConnection) urlObj.openConnection(); + connection.addRequestProperty("Content-Type", "application/json"); + connection.setRequestMethod("POST"); + connection.setDoInput(true); + connection.setDoOutput(true); + + String parameter = par.toString(); + OutputStreamWriter wr = new OutputStreamWriter(connection.getOutputStream()); + wr.write(parameter); + wr.flush(); + wr.close(); + + int code = connection.getResponseCode(); + logger.info("Response Code: " + code); + if (code == 200 || code == 201) { + logger.info("Mesage send to administrators"); + InputStream is = connection.getInputStream(); + BufferedReader reader = new BufferedReader(new InputStreamReader(is)); + String line = null; + StringBuffer response = new StringBuffer(); + logger.info("SocialNetworkingService retrieve response"); + while ((line = reader.readLine()) != null) { + response.append(line); + } + logger.debug("SocialNetworkingService response: " + response.toString()); + } else { + if (code == 500) { + + logger.error("Error sending message to administrators"); + InputStream es = connection.getErrorStream(); + BufferedReader reader = new BufferedReader(new InputStreamReader(es)); + String line = null; + StringBuffer response = new StringBuffer(); + logger.info("SocialNetworkingService retrieve error"); + while ((line = reader.readLine()) != null) { + response.append(line); + } + + logger.debug("SocialNetworkingService error: " + response.toString()); + } else { + + } + } + + assertTrue("Success", true); + } catch (Throwable e) { + logger.error(e.getLocalizedMessage(), e); + e.printStackTrace(); + fail("Error:" + e.getLocalizedMessage()); + + } + + } else { + assertTrue("Success", true); + } + } + +} diff --git a/test.log b/test.log index 6551f5b..f6c5673 100644 --- a/test.log +++ b/test.log @@ -37,3 +37,776 @@ java.lang.ClassCastException: org.gcube.portlets.user.statisticalalgorithmsimpor 2017-07-17 12:51:01 DEBUG ISResourceTest:63 - SAIDescriptor: SAIDescriptorJAXB [poolmanager=PoolManagerJAXB [enable=true], availableprojectconfiguration=[AvailableProjectConfigJAXB [language=R, support=REdit], AvailableProjectConfigJAXB [language=Linux-compiled, support=BlackBox], AvailableProjectConfigJAXB [language=Octave, support=BlackBox]]] 2017-07-17 18:29:07 DEBUG ISResourceTest:62 - truehttp://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.RRREditLinux-compiledBlackBoxOctaveBlackBox 2017-07-17 18:29:07 DEBUG ISResourceTest:66 - SAIDescriptor: SAIDescriptorJAXB [poolmanager=PoolManagerJAXB [enable=true], remotetemplatefile=http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.R, availableprojectconfiguration=[AvailableProjectConfigJAXB [language=R, support=REdit], AvailableProjectConfigJAXB [language=Linux-compiled, support=BlackBox], AvailableProjectConfigJAXB [language=Octave, support=BlackBox]]] +2017-07-18 15:02:21 INFO SessionUtil:73 - No credential found in session, use test user! +2017-07-18 15:02:21 INFO SessionUtil:86 - Set SecurityToken: ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-18 15:02:21 INFO SessionUtil:88 - Set ScopeProvider: /gcube/devNext/NextNext +2017-07-18 15:02:21 INFO ScopeProviderScanner:50 - using scope provider org.gcube.common.scope.impl.DefaultScopeProvider@5c1daea6 +2017-07-18 15:02:21 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 34 +2017-07-18 15:02:21 INFO SessionUtil:190 - ServiceCredentials: ServiceCredentials [userName=giancarlo.panichi, fullName=null, name=null, lastName=null, email=null, scope=/gcube/devNext/NextNext, groupId=null, groupName=null, userAvatarURL=null, token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548] +2017-07-18 15:02:21 DEBUG StatAlgoImporterServiceImpl:108 - hello() +2017-07-18 15:02:21 DEBUG StatAlgoImporterServiceImpl:112 - UserInfo: UserInfo [username=giancarlo.panichi, groupId=null, groupName=null, scope=/gcube/devNext/NextNext, userEmailAddress=null, userFullName=null] +2017-07-18 15:02:22 INFO SessionUtil:73 - No credential found in session, use test user! +2017-07-18 15:02:22 INFO SessionUtil:86 - Set SecurityToken: ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-18 15:02:22 INFO SessionUtil:88 - Set ScopeProvider: /gcube/devNext/NextNext +2017-07-18 15:02:22 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 37 +2017-07-18 15:02:22 INFO SessionUtil:190 - ServiceCredentials: ServiceCredentials [userName=giancarlo.panichi, fullName=null, name=null, lastName=null, email=null, scope=/gcube/devNext/NextNext, groupId=null, groupName=null, userAvatarURL=null, token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548] +2017-07-18 15:02:22 DEBUG StatAlgoImporterServiceImpl:131 - getSAIDescriptor() +2017-07-18 15:02:22 INFO BuildSAIDescriptor:29 - Debug Mode +2017-07-18 15:02:22 DEBUG BuildSAIDescriptor:167 - SAIDescriptor: SAIDescriptor [poolManagerConfig=PoolManagerConfig [enable=false], remoteTemplateFile=http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.R, availableProjectConfigurations=[ProjectSetup [language=R, projectSupportType=REdit], ProjectSetup [language=R-blackbox, projectSupportType=BlackBox], ProjectSetup [language=Java, projectSupportType=BlackBox], ProjectSetup [language=Knime-Workflow, projectSupportType=BlackBox], ProjectSetup [language=Linux-compiled, projectSupportType=BlackBox], ProjectSetup [language=Octave, projectSupportType=BlackBox], ProjectSetup [language=Python, projectSupportType=BlackBox], ProjectSetup [language=Windows-compiled, projectSupportType=BlackBox], ProjectSetup [language=Pre-Installed, projectSupportType=BashEdit]]] +2017-07-18 15:06:18 INFO SessionUtil:73 - No credential found in session, use test user! +2017-07-18 15:06:18 INFO SessionUtil:86 - Set SecurityToken: ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-18 15:06:18 INFO SessionUtil:88 - Set ScopeProvider: /gcube/devNext/NextNext +2017-07-18 15:06:18 INFO ScopeProviderScanner:50 - using scope provider org.gcube.common.scope.impl.DefaultScopeProvider@103094a3 +2017-07-18 15:06:18 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 32 +2017-07-18 15:06:18 INFO SessionUtil:190 - ServiceCredentials: ServiceCredentials [userName=giancarlo.panichi, fullName=null, name=null, lastName=null, email=null, scope=/gcube/devNext/NextNext, groupId=null, groupName=null, userAvatarURL=null, token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548] +2017-07-18 15:06:18 DEBUG StatAlgoImporterServiceImpl:108 - hello() +2017-07-18 15:06:18 DEBUG StatAlgoImporterServiceImpl:112 - UserInfo: UserInfo [username=giancarlo.panichi, groupId=null, groupName=null, scope=/gcube/devNext/NextNext, userEmailAddress=null, userFullName=null] +2017-07-18 15:06:20 INFO SessionUtil:73 - No credential found in session, use test user! +2017-07-18 15:06:20 INFO SessionUtil:86 - Set SecurityToken: ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-18 15:06:20 INFO SessionUtil:88 - Set ScopeProvider: /gcube/devNext/NextNext +2017-07-18 15:06:20 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 36 +2017-07-18 15:06:20 INFO SessionUtil:190 - ServiceCredentials: ServiceCredentials [userName=giancarlo.panichi, fullName=null, name=null, lastName=null, email=null, scope=/gcube/devNext/NextNext, groupId=null, groupName=null, userAvatarURL=null, token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548] +2017-07-18 15:06:20 DEBUG StatAlgoImporterServiceImpl:131 - getSAIDescriptor() +2017-07-18 15:06:20 INFO BuildSAIDescriptor:29 - Debug Mode +2017-07-18 15:06:20 DEBUG BuildSAIDescriptor:167 - SAIDescriptor: SAIDescriptor [poolManagerConfig=PoolManagerConfig [enable=false], remoteTemplateFile=http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.R, availableProjectConfigurations=[ProjectSetup [language=R, projectSupportType=REdit], ProjectSetup [language=R-blackbox, projectSupportType=BlackBox], ProjectSetup [language=Java, projectSupportType=BlackBox], ProjectSetup [language=Knime-Workflow, projectSupportType=BlackBox], ProjectSetup [language=Linux-compiled, projectSupportType=BlackBox], ProjectSetup [language=Octave, projectSupportType=BlackBox], ProjectSetup [language=Python, projectSupportType=BlackBox], ProjectSetup [language=Windows-compiled, projectSupportType=BlackBox], ProjectSetup [language=Pre-Installed, projectSupportType=BashEdit]]] +2017-07-18 15:37:21 INFO SessionUtil:73 - No credential found in session, use test user! +2017-07-18 15:37:21 INFO SessionUtil:86 - Set SecurityToken: ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-18 15:37:21 INFO SessionUtil:88 - Set ScopeProvider: /gcube/devNext/NextNext +2017-07-18 15:37:21 INFO ScopeProviderScanner:50 - using scope provider org.gcube.common.scope.impl.DefaultScopeProvider@577869f8 +2017-07-18 15:37:21 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 34 +2017-07-18 15:37:21 INFO SessionUtil:190 - ServiceCredentials: ServiceCredentials [userName=giancarlo.panichi, fullName=null, name=null, lastName=null, email=null, scope=/gcube/devNext/NextNext, groupId=null, groupName=null, userAvatarURL=null, token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548] +2017-07-18 15:37:21 DEBUG StatAlgoImporterServiceImpl:108 - hello() +2017-07-18 15:37:21 DEBUG StatAlgoImporterServiceImpl:112 - UserInfo: UserInfo [username=giancarlo.panichi, groupId=null, groupName=null, scope=/gcube/devNext/NextNext, userEmailAddress=null, userFullName=null] +2017-07-18 15:37:22 INFO SessionUtil:73 - No credential found in session, use test user! +2017-07-18 15:37:22 INFO SessionUtil:86 - Set SecurityToken: ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-18 15:37:22 INFO SessionUtil:88 - Set ScopeProvider: /gcube/devNext/NextNext +2017-07-18 15:37:22 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 36 +2017-07-18 15:37:22 INFO SessionUtil:190 - ServiceCredentials: ServiceCredentials [userName=giancarlo.panichi, fullName=null, name=null, lastName=null, email=null, scope=/gcube/devNext/NextNext, groupId=null, groupName=null, userAvatarURL=null, token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548] +2017-07-18 15:37:22 DEBUG StatAlgoImporterServiceImpl:131 - getSAIDescriptor() +2017-07-18 15:37:22 INFO BuildSAIDescriptor:29 - Debug Mode +2017-07-18 15:37:22 DEBUG BuildSAIDescriptor:167 - SAIDescriptor: SAIDescriptor [poolManagerConfig=PoolManagerConfig [enable=false], remoteTemplateFile=http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.R, availableProjectConfigurations=[ProjectSetup [language=R, projectSupportType=REdit], ProjectSetup [language=R-blackbox, projectSupportType=BlackBox], ProjectSetup [language=Java, projectSupportType=BlackBox], ProjectSetup [language=Knime-Workflow, projectSupportType=BlackBox], ProjectSetup [language=Linux-compiled, projectSupportType=BlackBox], ProjectSetup [language=Octave, projectSupportType=BlackBox], ProjectSetup [language=Python, projectSupportType=BlackBox], ProjectSetup [language=Windows-compiled, projectSupportType=BlackBox], ProjectSetup [language=Pre-Installed, projectSupportType=BashEdit]]] +2017-07-19 16:46:32 DEBUG InformationSystemUtils:178 - Retrieve SocialNetworkingService +2017-07-19 16:46:32 INFO ScopeProviderScanner:50 - using scope provider org.gcube.common.scope.impl.DefaultScopeProvider@28f67ac7 +2017-07-19 16:46:32 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 1 +2017-07-19 16:46:32 DEBUG InformationSystemUtils:183 - SocialNetworkingService resource in scope: /gcube/devNext/NextNext +2017-07-19 16:46:33 INFO DefaultScanner:63 - matched 15 resources from 175 urls in 258 ms +2017-07-19 16:46:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/devsec.servicemap +2017-07-19 16:46:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/farm.servicemap +2017-07-19 16:46:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/edison.servicemap +2017-07-19 16:46:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/sobigdata.servicemap +2017-07-19 16:46:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/gcube.servicemap +2017-07-19 16:46:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/openaire.servicemap +2017-07-19 16:46:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/smartarea.servicemap +2017-07-19 16:46:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/d4science.servicemap +2017-07-19 16:46:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/gcubeapps.servicemap +2017-07-19 16:46:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/isti.servicemap +2017-07-19 16:46:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/devnext.servicemap +2017-07-19 16:46:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/parthenosvo.servicemap +2017-07-19 16:46:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/cnr.servicemap +2017-07-19 16:46:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/d4research.servicemap +2017-07-19 16:46:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/preprod.servicemap +2017-07-19 16:46:33 INFO ICClient:75 - connectinfg to http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess +2017-07-19 16:46:33 INFO StubFactory:147 - fetching wsdl for XQueryAccessService at http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess?wsdl +2017-07-19 16:46:33 INFO StubCache:63 - caching stub for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub +2017-07-19 16:46:33 DEBUG MethodRetriever:18 - for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub the proxy class is com.sun.proxy.$Proxy35 +2017-07-19 16:46:33 INFO ICClient:57 - executing query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'Portal') and ($resource/Profile/ServiceName/text() eq 'SocialNetworking') return $resource +2017-07-19 16:46:33 INFO Helper:200 - submitting filtered query: declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; declare namespace functx = "http://www.functx.com"; declare function functx:is-value-in-sequence ( $value as xs:anyAtomicType? , $seq as xs:anyAtomicType* ) as xs:boolean { $value = $seq } ; + for $entry0ValueAuth in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource/Scopes + +where (functx:is-value-in-sequence('/gcube/devNext/NextNext',$entry0ValueAuth/child::*[local-name()='Scope']/text()) or functx:is-value-in-sequence('/gcube/devNext',$entry0ValueAuth/child::*[local-name()='Scope']/text())) and ( ($entry0ValueAuth/../Profile/ServiceClass/text() eq 'Portal') and ($entry0ValueAuth/../Profile/ServiceName/text() eq 'SocialNetworking') ) +return $entry0ValueAuth/.. +2017-07-19 16:46:34 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.ScopeHandler@378542de +2017-07-19 16:46:34 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.AuthorizationHandler@11bd0f3b +2017-07-19 16:46:34 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.TargetServiceHandler@1eb5174b +2017-07-19 16:46:34 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.ClientInfoHandler@5fd4f8f5 +2017-07-19 16:46:34 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.LegacyWSAddressingHandler@53976f5c +2017-07-19 16:46:34 INFO ICClient:65 - executed query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'Portal') and ($resource/Profile/ServiceName/text() eq 'SocialNetworking') return $resource in 344 ms +2017-07-19 16:46:34 DEBUG InformationSystemUtils:193 - Resources: [GCoreEndpoint [id=4b101571-34f9-417f-b444-f1861895b1c5, scopes=[/gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=b3d3e00b-d750-415a-b5a9-9912720fba91], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=6/5/17 12:22 PM, terminationTime=, status=down, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]], GCoreEndpoint [id=9bdf1903-9778-4976-aebf-e6d37fb3195b, scopes=[/gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=0901d7d2-5a71-4780-ada1-4ac2badd4f4e], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=5/26/17 2:26 PM, terminationTime=, status=down, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]], GCoreEndpoint [id=e9ab9193-6df6-425b-9111-7b15ebc4e733, scopes=[/gcube/devNext/NextNext, /gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=46ea149d-2f85-4328-a515-204654475659], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=7/7/17 12:33 PM, terminationTime=, status=ready, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]]] +2017-07-19 16:46:34 DEBUG InformationSystemUtils:211 - SocialNetworking Endpoints map: {jersey-servlet=Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], SocialNetworking-remote-management=Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]} +2017-07-19 16:46:34 DEBUG InformationSystemUtils:215 - SocialNetworking Endpoint: null +2017-07-19 16:46:34 DEBUG InformationSystemUtils:238 - SocialNetworking URI: null +2017-07-19 16:46:34 INFO ISResourceTest:90 - SocialNetworkingService: null +2017-07-19 16:46:34 DEBUG ISResourceTest:65 - truehttp://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.RRREditLinux-compiledBlackBoxOctaveBlackBox +2017-07-19 16:46:34 DEBUG ISResourceTest:69 - SAIDescriptor: SAIDescriptorJAXB [poolmanager=PoolManagerJAXB [enable=true], remotetemplatefile=http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.R, availableprojectconfiguration=[AvailableProjectConfigJAXB [language=R, support=REdit], AvailableProjectConfigJAXB [language=Linux-compiled, support=BlackBox], AvailableProjectConfigJAXB [language=Octave, support=BlackBox]]] +2017-07-19 16:49:19 DEBUG ISResourceTest:65 - truehttp://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.RRREditLinux-compiledBlackBoxOctaveBlackBox +2017-07-19 16:49:19 DEBUG ISResourceTest:69 - SAIDescriptor: SAIDescriptorJAXB [poolmanager=PoolManagerJAXB [enable=true], remotetemplatefile=http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.R, availableprojectconfiguration=[AvailableProjectConfigJAXB [language=R, support=REdit], AvailableProjectConfigJAXB [language=Linux-compiled, support=BlackBox], AvailableProjectConfigJAXB [language=Octave, support=BlackBox]]] +2017-07-19 16:49:19 DEBUG InformationSystemUtils:178 - Retrieve SocialNetworkingService +2017-07-19 16:49:19 INFO ScopeProviderScanner:50 - using scope provider org.gcube.common.scope.impl.DefaultScopeProvider@78c03f1f +2017-07-19 16:49:19 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 1 +2017-07-19 16:49:19 DEBUG InformationSystemUtils:183 - SocialNetworkingService resource in scope: /gcube/devNext/NextNext +2017-07-19 16:49:20 INFO DefaultScanner:63 - matched 15 resources from 175 urls in 289 ms +2017-07-19 16:49:20 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/devsec.servicemap +2017-07-19 16:49:20 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/farm.servicemap +2017-07-19 16:49:20 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/edison.servicemap +2017-07-19 16:49:20 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/sobigdata.servicemap +2017-07-19 16:49:20 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/gcube.servicemap +2017-07-19 16:49:20 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/openaire.servicemap +2017-07-19 16:49:20 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/smartarea.servicemap +2017-07-19 16:49:20 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/d4science.servicemap +2017-07-19 16:49:20 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/gcubeapps.servicemap +2017-07-19 16:49:20 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/isti.servicemap +2017-07-19 16:49:20 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/devnext.servicemap +2017-07-19 16:49:20 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/parthenosvo.servicemap +2017-07-19 16:49:20 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/cnr.servicemap +2017-07-19 16:49:20 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/d4research.servicemap +2017-07-19 16:49:20 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/preprod.servicemap +2017-07-19 16:49:20 INFO ICClient:75 - connectinfg to http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess +2017-07-19 16:49:20 INFO StubFactory:147 - fetching wsdl for XQueryAccessService at http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess?wsdl +2017-07-19 16:49:20 INFO StubCache:63 - caching stub for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub +2017-07-19 16:49:20 DEBUG MethodRetriever:18 - for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub the proxy class is com.sun.proxy.$Proxy35 +2017-07-19 16:49:20 INFO ICClient:57 - executing query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'Portal') and ($resource/Profile/ServiceName/text() eq 'SocialNetworking') return $resource +2017-07-19 16:49:20 INFO Helper:200 - submitting filtered query: declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; declare namespace functx = "http://www.functx.com"; declare function functx:is-value-in-sequence ( $value as xs:anyAtomicType? , $seq as xs:anyAtomicType* ) as xs:boolean { $value = $seq } ; + for $entry0ValueAuth in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource/Scopes + +where (functx:is-value-in-sequence('/gcube/devNext/NextNext',$entry0ValueAuth/child::*[local-name()='Scope']/text()) or functx:is-value-in-sequence('/gcube/devNext',$entry0ValueAuth/child::*[local-name()='Scope']/text())) and ( ($entry0ValueAuth/../Profile/ServiceClass/text() eq 'Portal') and ($entry0ValueAuth/../Profile/ServiceName/text() eq 'SocialNetworking') ) +return $entry0ValueAuth/.. +2017-07-19 16:49:20 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.ScopeHandler@be35cd9 +2017-07-19 16:49:20 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.AuthorizationHandler@a3d8174 +2017-07-19 16:49:20 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.TargetServiceHandler@272ed83b +2017-07-19 16:49:20 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.ClientInfoHandler@625732 +2017-07-19 16:49:20 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.LegacyWSAddressingHandler@cad498c +2017-07-19 16:49:20 INFO ICClient:65 - executed query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'Portal') and ($resource/Profile/ServiceName/text() eq 'SocialNetworking') return $resource in 176 ms +2017-07-19 16:49:20 DEBUG InformationSystemUtils:193 - Resources: [GCoreEndpoint [id=4b101571-34f9-417f-b444-f1861895b1c5, scopes=[/gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=b3d3e00b-d750-415a-b5a9-9912720fba91], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=6/5/17 12:22 PM, terminationTime=, status=down, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]], GCoreEndpoint [id=9bdf1903-9778-4976-aebf-e6d37fb3195b, scopes=[/gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=0901d7d2-5a71-4780-ada1-4ac2badd4f4e], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=5/26/17 2:26 PM, terminationTime=, status=down, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]], GCoreEndpoint [id=e9ab9193-6df6-425b-9111-7b15ebc4e733, scopes=[/gcube/devNext/NextNext, /gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=46ea149d-2f85-4328-a515-204654475659], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=7/7/17 12:33 PM, terminationTime=, status=ready, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]]] +2017-07-19 16:49:20 DEBUG InformationSystemUtils:211 - SocialNetworking Endpoints map: {jersey-servlet=Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], SocialNetworking-remote-management=Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]} +2017-07-19 16:49:20 DEBUG InformationSystemUtils:215 - SocialNetworking Endpoint: null +2017-07-19 16:49:20 DEBUG InformationSystemUtils:238 - SocialNetworking URI: null +2017-07-19 16:49:20 INFO ISResourceTest:90 - SocialNetworkingService: null +2017-07-19 16:49:20 DEBUG InformationSystemUtils:102 - Retrieve dataminer-pool-manager +2017-07-19 16:49:20 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 1 +2017-07-19 16:49:20 DEBUG InformationSystemUtils:107 - Retrieve DataMiner Pool Manager resource in scope: /gcube/devNext/NextNext +2017-07-19 16:49:20 INFO ICClient:75 - connectinfg to http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess +2017-07-19 16:49:20 INFO StubCache:70 - using cached stub for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub +2017-07-19 16:49:20 DEBUG MethodRetriever:18 - for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub the proxy class is com.sun.proxy.$Proxy35 +2017-07-19 16:49:20 INFO ICClient:57 - executing query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'DataAnalysis') and ($resource/Profile/ServiceName/text() eq 'dataminer-pool-manager') return $resource +2017-07-19 16:49:20 INFO Helper:200 - submitting filtered query: declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; declare namespace functx = "http://www.functx.com"; declare function functx:is-value-in-sequence ( $value as xs:anyAtomicType? , $seq as xs:anyAtomicType* ) as xs:boolean { $value = $seq } ; + for $entry0ValueAuth in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource/Scopes + +where (functx:is-value-in-sequence('/gcube/devNext/NextNext',$entry0ValueAuth/child::*[local-name()='Scope']/text()) or functx:is-value-in-sequence('/gcube/devNext',$entry0ValueAuth/child::*[local-name()='Scope']/text())) and ( ($entry0ValueAuth/../Profile/ServiceClass/text() eq 'DataAnalysis') and ($entry0ValueAuth/../Profile/ServiceName/text() eq 'dataminer-pool-manager') ) +return $entry0ValueAuth/.. +2017-07-19 16:49:20 INFO ICClient:65 - executed query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'DataAnalysis') and ($resource/Profile/ServiceName/text() eq 'dataminer-pool-manager') return $resource in 112 ms +2017-07-19 16:49:20 DEBUG InformationSystemUtils:117 - Resources: [GCoreEndpoint [id=8b408743-9ee8-4c14-9ebc-e282491152a4, scopes=[/gcube/devNext/NextNext, /gcube/devNext], type=RunningInstance, version=0.4.x, profile=[description=, version=0.0.1, ghn=[id=a7b55832-5716-4fd1-95d6-84905cbeabce], service=[id=dataminer-pool-managerDataAnalysis0.0.1], serviceName=dataminer-pool-manager, serviceClass=DataAnalysis, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=7/18/17 3:28 PM, terminationTime=, status=ready, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=REST-API, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api], Endpoint [name=dataminer-pool-manager-remote-management, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/gcube/resource]], specificData=[doc: null], accountings=[]]]] +2017-07-19 16:49:20 DEBUG InformationSystemUtils:135 - DataMiner PoolManager Endpoints map: {REST-API=Endpoint [name=REST-API, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api], dataminer-pool-manager-remote-management=Endpoint [name=dataminer-pool-manager-remote-management, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/gcube/resource]} +2017-07-19 16:49:20 DEBUG InformationSystemUtils:139 - DataMiner PoolManager Endpoint: Endpoint [name=REST-API, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api] +2017-07-19 16:49:20 DEBUG InformationSystemUtils:162 - DataMiner PoolManager URI: http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api +2017-07-19 16:49:20 INFO ISResourceTest:109 - DataMinerPoolManager: http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api +2017-07-19 16:56:32 DEBUG ISResourceTest:65 - truehttp://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.RRREditLinux-compiledBlackBoxOctaveBlackBox +2017-07-19 16:56:32 DEBUG ISResourceTest:69 - SAIDescriptor: SAIDescriptorJAXB [poolmanager=PoolManagerJAXB [enable=true], remotetemplatefile=http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.R, availableprojectconfiguration=[AvailableProjectConfigJAXB [language=R, support=REdit], AvailableProjectConfigJAXB [language=Linux-compiled, support=BlackBox], AvailableProjectConfigJAXB [language=Octave, support=BlackBox]]] +2017-07-19 16:56:32 DEBUG InformationSystemUtils:178 - Retrieve SocialNetworkingService +2017-07-19 16:56:32 INFO ScopeProviderScanner:50 - using scope provider org.gcube.common.scope.impl.DefaultScopeProvider@78c03f1f +2017-07-19 16:56:32 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 1 +2017-07-19 16:56:32 DEBUG InformationSystemUtils:183 - SocialNetworkingService resource in scope: /gcube/devNext/NextNext +2017-07-19 16:56:33 INFO DefaultScanner:63 - matched 15 resources from 175 urls in 271 ms +2017-07-19 16:56:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/devsec.servicemap +2017-07-19 16:56:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/farm.servicemap +2017-07-19 16:56:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/edison.servicemap +2017-07-19 16:56:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/sobigdata.servicemap +2017-07-19 16:56:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/gcube.servicemap +2017-07-19 16:56:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/openaire.servicemap +2017-07-19 16:56:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/smartarea.servicemap +2017-07-19 16:56:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/d4science.servicemap +2017-07-19 16:56:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/gcubeapps.servicemap +2017-07-19 16:56:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/isti.servicemap +2017-07-19 16:56:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/devnext.servicemap +2017-07-19 16:56:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/parthenosvo.servicemap +2017-07-19 16:56:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/cnr.servicemap +2017-07-19 16:56:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/d4research.servicemap +2017-07-19 16:56:33 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/preprod.servicemap +2017-07-19 16:56:33 INFO ICClient:75 - connectinfg to http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess +2017-07-19 16:56:33 INFO StubFactory:147 - fetching wsdl for XQueryAccessService at http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess?wsdl +2017-07-19 16:56:33 INFO StubCache:63 - caching stub for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub +2017-07-19 16:56:33 DEBUG MethodRetriever:18 - for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub the proxy class is com.sun.proxy.$Proxy35 +2017-07-19 16:56:33 INFO ICClient:57 - executing query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'Portal') and ($resource/Profile/ServiceName/text() eq 'SocialNetworking') return $resource +2017-07-19 16:56:33 INFO Helper:200 - submitting filtered query: declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; declare namespace functx = "http://www.functx.com"; declare function functx:is-value-in-sequence ( $value as xs:anyAtomicType? , $seq as xs:anyAtomicType* ) as xs:boolean { $value = $seq } ; + for $entry0ValueAuth in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource/Scopes + +where (functx:is-value-in-sequence('/gcube/devNext/NextNext',$entry0ValueAuth/child::*[local-name()='Scope']/text()) or functx:is-value-in-sequence('/gcube/devNext',$entry0ValueAuth/child::*[local-name()='Scope']/text())) and ( ($entry0ValueAuth/../Profile/ServiceClass/text() eq 'Portal') and ($entry0ValueAuth/../Profile/ServiceName/text() eq 'SocialNetworking') ) +return $entry0ValueAuth/.. +2017-07-19 16:56:33 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.ScopeHandler@be35cd9 +2017-07-19 16:56:33 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.AuthorizationHandler@a3d8174 +2017-07-19 16:56:33 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.TargetServiceHandler@272ed83b +2017-07-19 16:56:33 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.ClientInfoHandler@625732 +2017-07-19 16:56:33 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.LegacyWSAddressingHandler@cad498c +2017-07-19 16:56:33 INFO ICClient:65 - executed query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'Portal') and ($resource/Profile/ServiceName/text() eq 'SocialNetworking') return $resource in 176 ms +2017-07-19 16:56:33 DEBUG InformationSystemUtils:193 - Resources: [GCoreEndpoint [id=4b101571-34f9-417f-b444-f1861895b1c5, scopes=[/gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=b3d3e00b-d750-415a-b5a9-9912720fba91], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=6/5/17 12:22 PM, terminationTime=, status=down, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]], GCoreEndpoint [id=9bdf1903-9778-4976-aebf-e6d37fb3195b, scopes=[/gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=0901d7d2-5a71-4780-ada1-4ac2badd4f4e], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=5/26/17 2:26 PM, terminationTime=, status=down, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]], GCoreEndpoint [id=e9ab9193-6df6-425b-9111-7b15ebc4e733, scopes=[/gcube/devNext/NextNext, /gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=46ea149d-2f85-4328-a515-204654475659], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=7/7/17 12:33 PM, terminationTime=, status=ready, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]]] +2017-07-19 16:56:33 DEBUG InformationSystemUtils:211 - SocialNetworking Endpoints map: {jersey-servlet=Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], SocialNetworking-remote-management=Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]} +2017-07-19 16:56:33 DEBUG InformationSystemUtils:215 - SocialNetworking Endpoint: Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest] +2017-07-19 16:56:33 DEBUG InformationSystemUtils:238 - SocialNetworking URI: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest +2017-07-19 16:56:33 INFO ISResourceTest:90 - SocialNetworkingService: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest +2017-07-19 16:56:33 DEBUG InformationSystemUtils:102 - Retrieve dataminer-pool-manager +2017-07-19 16:56:33 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 1 +2017-07-19 16:56:33 DEBUG InformationSystemUtils:107 - Retrieve DataMiner Pool Manager resource in scope: /gcube/devNext/NextNext +2017-07-19 16:56:33 INFO ICClient:75 - connectinfg to http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess +2017-07-19 16:56:33 INFO StubCache:70 - using cached stub for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub +2017-07-19 16:56:33 DEBUG MethodRetriever:18 - for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub the proxy class is com.sun.proxy.$Proxy35 +2017-07-19 16:56:33 INFO ICClient:57 - executing query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'DataAnalysis') and ($resource/Profile/ServiceName/text() eq 'dataminer-pool-manager') return $resource +2017-07-19 16:56:33 INFO Helper:200 - submitting filtered query: declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; declare namespace functx = "http://www.functx.com"; declare function functx:is-value-in-sequence ( $value as xs:anyAtomicType? , $seq as xs:anyAtomicType* ) as xs:boolean { $value = $seq } ; + for $entry0ValueAuth in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource/Scopes + +where (functx:is-value-in-sequence('/gcube/devNext/NextNext',$entry0ValueAuth/child::*[local-name()='Scope']/text()) or functx:is-value-in-sequence('/gcube/devNext',$entry0ValueAuth/child::*[local-name()='Scope']/text())) and ( ($entry0ValueAuth/../Profile/ServiceClass/text() eq 'DataAnalysis') and ($entry0ValueAuth/../Profile/ServiceName/text() eq 'dataminer-pool-manager') ) +return $entry0ValueAuth/.. +2017-07-19 16:56:33 INFO ICClient:65 - executed query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'DataAnalysis') and ($resource/Profile/ServiceName/text() eq 'dataminer-pool-manager') return $resource in 71 ms +2017-07-19 16:56:33 DEBUG InformationSystemUtils:117 - Resources: [GCoreEndpoint [id=8b408743-9ee8-4c14-9ebc-e282491152a4, scopes=[/gcube/devNext/NextNext, /gcube/devNext], type=RunningInstance, version=0.4.x, profile=[description=, version=0.0.1, ghn=[id=a7b55832-5716-4fd1-95d6-84905cbeabce], service=[id=dataminer-pool-managerDataAnalysis0.0.1], serviceName=dataminer-pool-manager, serviceClass=DataAnalysis, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=7/18/17 3:28 PM, terminationTime=, status=ready, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=REST-API, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api], Endpoint [name=dataminer-pool-manager-remote-management, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/gcube/resource]], specificData=[doc: null], accountings=[]]]] +2017-07-19 16:56:33 DEBUG InformationSystemUtils:135 - DataMiner PoolManager Endpoints map: {REST-API=Endpoint [name=REST-API, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api], dataminer-pool-manager-remote-management=Endpoint [name=dataminer-pool-manager-remote-management, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/gcube/resource]} +2017-07-19 16:56:33 DEBUG InformationSystemUtils:139 - DataMiner PoolManager Endpoint: Endpoint [name=REST-API, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api] +2017-07-19 16:56:33 DEBUG InformationSystemUtils:162 - DataMiner PoolManager URI: http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api +2017-07-19 16:56:33 INFO ISResourceTest:109 - DataMinerPoolManager: http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api +2017-07-19 18:47:24 DEBUG InformationSystemUtils:102 - Retrieve dataminer-pool-manager +2017-07-19 18:47:24 INFO ScopeProviderScanner:50 - using scope provider org.gcube.common.scope.impl.DefaultScopeProvider@58651fd0 +2017-07-19 18:47:24 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 1 +2017-07-19 18:47:24 DEBUG InformationSystemUtils:107 - Retrieve DataMiner Pool Manager resource in scope: /gcube/devNext/NextNext +2017-07-19 18:47:25 INFO DefaultScanner:63 - matched 15 resources from 11 urls in 188 ms +2017-07-19 18:47:25 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/devsec.servicemap +2017-07-19 18:47:25 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/farm.servicemap +2017-07-19 18:47:25 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/edison.servicemap +2017-07-19 18:47:25 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/sobigdata.servicemap +2017-07-19 18:47:25 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/gcube.servicemap +2017-07-19 18:47:25 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/openaire.servicemap +2017-07-19 18:47:25 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/smartarea.servicemap +2017-07-19 18:47:25 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/d4science.servicemap +2017-07-19 18:47:25 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/gcubeapps.servicemap +2017-07-19 18:47:25 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/isti.servicemap +2017-07-19 18:47:25 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/devnext.servicemap +2017-07-19 18:47:25 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/parthenosvo.servicemap +2017-07-19 18:47:25 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/cnr.servicemap +2017-07-19 18:47:25 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/d4research.servicemap +2017-07-19 18:47:25 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/preprod.servicemap +2017-07-19 18:47:25 INFO ICClient:75 - connectinfg to http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess +2017-07-19 18:47:25 INFO StubFactory:147 - fetching wsdl for XQueryAccessService at http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess?wsdl +2017-07-19 18:47:25 INFO StubCache:63 - caching stub for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub +2017-07-19 18:47:25 DEBUG MethodRetriever:18 - for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub the proxy class is com.sun.proxy.$Proxy35 +2017-07-19 18:47:25 INFO ICClient:57 - executing query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'DataAnalysis') and ($resource/Profile/ServiceName/text() eq 'dataminer-pool-manager') return $resource +2017-07-19 18:47:25 INFO Helper:200 - submitting filtered query: declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; declare namespace functx = "http://www.functx.com"; declare function functx:is-value-in-sequence ( $value as xs:anyAtomicType? , $seq as xs:anyAtomicType* ) as xs:boolean { $value = $seq } ; + for $entry0ValueAuth in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource/Scopes + +where (functx:is-value-in-sequence('/gcube/devNext/NextNext',$entry0ValueAuth/child::*[local-name()='Scope']/text()) or functx:is-value-in-sequence('/gcube/devNext',$entry0ValueAuth/child::*[local-name()='Scope']/text())) and ( ($entry0ValueAuth/../Profile/ServiceClass/text() eq 'DataAnalysis') and ($entry0ValueAuth/../Profile/ServiceName/text() eq 'dataminer-pool-manager') ) +return $entry0ValueAuth/.. +2017-07-19 18:47:25 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.ScopeHandler@38102d01 +2017-07-19 18:47:25 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.AuthorizationHandler@4e3958e7 +2017-07-19 18:47:25 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.TargetServiceHandler@5c90e579 +2017-07-19 18:47:25 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.ClientInfoHandler@38e79ae3 +2017-07-19 18:47:25 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.LegacyWSAddressingHandler@291b4bf5 +2017-07-19 18:47:25 INFO ICClient:65 - executed query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'DataAnalysis') and ($resource/Profile/ServiceName/text() eq 'dataminer-pool-manager') return $resource in 183 ms +2017-07-19 18:47:25 DEBUG InformationSystemUtils:117 - Resources: [GCoreEndpoint [id=8b408743-9ee8-4c14-9ebc-e282491152a4, scopes=[/gcube/devNext/NextNext, /gcube/devNext], type=RunningInstance, version=0.4.x, profile=[description=, version=0.0.1, ghn=[id=a7b55832-5716-4fd1-95d6-84905cbeabce], service=[id=dataminer-pool-managerDataAnalysis0.0.1], serviceName=dataminer-pool-manager, serviceClass=DataAnalysis, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=7/18/17 3:28 PM, terminationTime=, status=ready, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=REST-API, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api], Endpoint [name=dataminer-pool-manager-remote-management, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/gcube/resource]], specificData=[doc: null], accountings=[]]]] +2017-07-19 18:47:25 DEBUG InformationSystemUtils:135 - DataMiner PoolManager Endpoints map: {REST-API=Endpoint [name=REST-API, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api], dataminer-pool-manager-remote-management=Endpoint [name=dataminer-pool-manager-remote-management, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/gcube/resource]} +2017-07-19 18:47:25 DEBUG InformationSystemUtils:139 - DataMiner PoolManager Endpoint: Endpoint [name=REST-API, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api] +2017-07-19 18:47:25 DEBUG InformationSystemUtils:162 - DataMiner PoolManager URI: http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api +2017-07-19 18:47:25 INFO ISResourceTest:109 - DataMinerPoolManager: http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api +2017-07-19 18:47:25 DEBUG InformationSystemUtils:178 - Retrieve SocialNetworkingService +2017-07-19 18:47:25 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 1 +2017-07-19 18:47:25 DEBUG InformationSystemUtils:183 - SocialNetworkingService resource in scope: /gcube/devNext/NextNext +2017-07-19 18:47:25 INFO ICClient:75 - connectinfg to http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess +2017-07-19 18:47:25 INFO StubCache:70 - using cached stub for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub +2017-07-19 18:47:25 DEBUG MethodRetriever:18 - for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub the proxy class is com.sun.proxy.$Proxy35 +2017-07-19 18:47:25 INFO ICClient:57 - executing query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'Portal') and ($resource/Profile/ServiceName/text() eq 'SocialNetworking') return $resource +2017-07-19 18:47:25 INFO Helper:200 - submitting filtered query: declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; declare namespace functx = "http://www.functx.com"; declare function functx:is-value-in-sequence ( $value as xs:anyAtomicType? , $seq as xs:anyAtomicType* ) as xs:boolean { $value = $seq } ; + for $entry0ValueAuth in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource/Scopes + +where (functx:is-value-in-sequence('/gcube/devNext/NextNext',$entry0ValueAuth/child::*[local-name()='Scope']/text()) or functx:is-value-in-sequence('/gcube/devNext',$entry0ValueAuth/child::*[local-name()='Scope']/text())) and ( ($entry0ValueAuth/../Profile/ServiceClass/text() eq 'Portal') and ($entry0ValueAuth/../Profile/ServiceName/text() eq 'SocialNetworking') ) +return $entry0ValueAuth/.. +2017-07-19 18:47:25 INFO ICClient:65 - executed query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'Portal') and ($resource/Profile/ServiceName/text() eq 'SocialNetworking') return $resource in 67 ms +2017-07-19 18:47:25 DEBUG InformationSystemUtils:193 - Resources: [GCoreEndpoint [id=4b101571-34f9-417f-b444-f1861895b1c5, scopes=[/gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=b3d3e00b-d750-415a-b5a9-9912720fba91], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=6/5/17 12:22 PM, terminationTime=, status=down, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]], GCoreEndpoint [id=9bdf1903-9778-4976-aebf-e6d37fb3195b, scopes=[/gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=0901d7d2-5a71-4780-ada1-4ac2badd4f4e], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=5/26/17 2:26 PM, terminationTime=, status=down, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]], GCoreEndpoint [id=e9ab9193-6df6-425b-9111-7b15ebc4e733, scopes=[/gcube/devNext/NextNext, /gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=46ea149d-2f85-4328-a515-204654475659], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=7/7/17 12:33 PM, terminationTime=, status=ready, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]]] +2017-07-19 18:47:25 DEBUG InformationSystemUtils:211 - SocialNetworking Endpoints map: {jersey-servlet=Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], SocialNetworking-remote-management=Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]} +2017-07-19 18:47:25 DEBUG InformationSystemUtils:215 - SocialNetworking Endpoint: Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest] +2017-07-19 18:47:25 DEBUG InformationSystemUtils:238 - SocialNetworking URI: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest +2017-07-19 18:47:25 INFO ISResourceTest:90 - SocialNetworkingService: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest +2017-07-19 18:47:25 DEBUG ISResourceTest:65 - truehttp://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.RRREditLinux-compiledBlackBoxOctaveBlackBox +2017-07-19 18:47:25 DEBUG ISResourceTest:69 - SAIDescriptor: SAIDescriptorJAXB [poolmanager=PoolManagerJAXB [enable=true], remotetemplatefile=http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.R, availableprojectconfiguration=[AvailableProjectConfigJAXB [language=R, support=REdit], AvailableProjectConfigJAXB [language=Linux-compiled, support=BlackBox], AvailableProjectConfigJAXB [language=Octave, support=BlackBox]]] +2017-07-19 18:48:57 DEBUG InformationSystemUtils:178 - Retrieve SocialNetworkingService +2017-07-19 18:48:57 INFO ScopeProviderScanner:50 - using scope provider org.gcube.common.scope.impl.DefaultScopeProvider@58651fd0 +2017-07-19 18:48:57 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 1 +2017-07-19 18:48:57 DEBUG InformationSystemUtils:183 - SocialNetworkingService resource in scope: /gcube/devNext/NextNext +2017-07-19 18:48:58 INFO DefaultScanner:63 - matched 15 resources from 11 urls in 188 ms +2017-07-19 18:48:58 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/devsec.servicemap +2017-07-19 18:48:58 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/farm.servicemap +2017-07-19 18:48:58 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/edison.servicemap +2017-07-19 18:48:58 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/sobigdata.servicemap +2017-07-19 18:48:58 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/gcube.servicemap +2017-07-19 18:48:58 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/openaire.servicemap +2017-07-19 18:48:58 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/smartarea.servicemap +2017-07-19 18:48:58 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/d4science.servicemap +2017-07-19 18:48:58 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/gcubeapps.servicemap +2017-07-19 18:48:58 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/isti.servicemap +2017-07-19 18:48:58 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/devnext.servicemap +2017-07-19 18:48:58 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/parthenosvo.servicemap +2017-07-19 18:48:58 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/cnr.servicemap +2017-07-19 18:48:58 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/d4research.servicemap +2017-07-19 18:48:58 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/preprod.servicemap +2017-07-19 18:48:58 INFO ICClient:75 - connectinfg to http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess +2017-07-19 18:48:58 INFO StubFactory:147 - fetching wsdl for XQueryAccessService at http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess?wsdl +2017-07-19 18:48:58 INFO StubCache:63 - caching stub for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub +2017-07-19 18:48:58 DEBUG MethodRetriever:18 - for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub the proxy class is com.sun.proxy.$Proxy35 +2017-07-19 18:48:58 INFO ICClient:57 - executing query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'Portal') and ($resource/Profile/ServiceName/text() eq 'SocialNetworking') return $resource +2017-07-19 18:48:58 INFO Helper:200 - submitting filtered query: declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; declare namespace functx = "http://www.functx.com"; declare function functx:is-value-in-sequence ( $value as xs:anyAtomicType? , $seq as xs:anyAtomicType* ) as xs:boolean { $value = $seq } ; + for $entry0ValueAuth in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource/Scopes + +where (functx:is-value-in-sequence('/gcube/devNext/NextNext',$entry0ValueAuth/child::*[local-name()='Scope']/text()) or functx:is-value-in-sequence('/gcube/devNext',$entry0ValueAuth/child::*[local-name()='Scope']/text())) and ( ($entry0ValueAuth/../Profile/ServiceClass/text() eq 'Portal') and ($entry0ValueAuth/../Profile/ServiceName/text() eq 'SocialNetworking') ) +return $entry0ValueAuth/.. +2017-07-19 18:48:58 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.ScopeHandler@38102d01 +2017-07-19 18:48:58 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.AuthorizationHandler@4e3958e7 +2017-07-19 18:48:58 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.TargetServiceHandler@5c90e579 +2017-07-19 18:48:58 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.ClientInfoHandler@38e79ae3 +2017-07-19 18:48:58 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.LegacyWSAddressingHandler@291b4bf5 +2017-07-19 18:48:58 INFO ICClient:65 - executed query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'Portal') and ($resource/Profile/ServiceName/text() eq 'SocialNetworking') return $resource in 198 ms +2017-07-19 18:48:58 DEBUG InformationSystemUtils:193 - Resources: [GCoreEndpoint [id=4b101571-34f9-417f-b444-f1861895b1c5, scopes=[/gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=b3d3e00b-d750-415a-b5a9-9912720fba91], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=6/5/17 12:22 PM, terminationTime=, status=down, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]], GCoreEndpoint [id=9bdf1903-9778-4976-aebf-e6d37fb3195b, scopes=[/gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=0901d7d2-5a71-4780-ada1-4ac2badd4f4e], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=5/26/17 2:26 PM, terminationTime=, status=down, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]], GCoreEndpoint [id=e9ab9193-6df6-425b-9111-7b15ebc4e733, scopes=[/gcube/devNext/NextNext, /gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=46ea149d-2f85-4328-a515-204654475659], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=7/7/17 12:33 PM, terminationTime=, status=ready, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]]] +2017-07-19 18:48:58 DEBUG InformationSystemUtils:211 - SocialNetworking Endpoints map: {jersey-servlet=Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], SocialNetworking-remote-management=Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]} +2017-07-19 18:48:58 DEBUG InformationSystemUtils:215 - SocialNetworking Endpoint: Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest] +2017-07-19 18:48:58 DEBUG InformationSystemUtils:238 - SocialNetworking URI: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest +2017-07-19 18:48:58 INFO ISResourceTest:90 - SocialNetworkingService: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest +2017-07-19 18:48:58 DEBUG InformationSystemUtils:102 - Retrieve dataminer-pool-manager +2017-07-19 18:48:58 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 1 +2017-07-19 18:48:58 DEBUG InformationSystemUtils:107 - Retrieve DataMiner Pool Manager resource in scope: /gcube/devNext/NextNext +2017-07-19 18:48:58 INFO ICClient:75 - connectinfg to http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess +2017-07-19 18:48:58 INFO StubCache:70 - using cached stub for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub +2017-07-19 18:48:58 DEBUG MethodRetriever:18 - for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub the proxy class is com.sun.proxy.$Proxy35 +2017-07-19 18:48:58 INFO ICClient:57 - executing query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'DataAnalysis') and ($resource/Profile/ServiceName/text() eq 'dataminer-pool-manager') return $resource +2017-07-19 18:48:58 INFO Helper:200 - submitting filtered query: declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; declare namespace functx = "http://www.functx.com"; declare function functx:is-value-in-sequence ( $value as xs:anyAtomicType? , $seq as xs:anyAtomicType* ) as xs:boolean { $value = $seq } ; + for $entry0ValueAuth in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource/Scopes + +where (functx:is-value-in-sequence('/gcube/devNext/NextNext',$entry0ValueAuth/child::*[local-name()='Scope']/text()) or functx:is-value-in-sequence('/gcube/devNext',$entry0ValueAuth/child::*[local-name()='Scope']/text())) and ( ($entry0ValueAuth/../Profile/ServiceClass/text() eq 'DataAnalysis') and ($entry0ValueAuth/../Profile/ServiceName/text() eq 'dataminer-pool-manager') ) +return $entry0ValueAuth/.. +2017-07-19 18:48:58 INFO ICClient:65 - executed query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'DataAnalysis') and ($resource/Profile/ServiceName/text() eq 'dataminer-pool-manager') return $resource in 71 ms +2017-07-19 18:48:58 DEBUG InformationSystemUtils:117 - Resources: [GCoreEndpoint [id=8b408743-9ee8-4c14-9ebc-e282491152a4, scopes=[/gcube/devNext/NextNext, /gcube/devNext], type=RunningInstance, version=0.4.x, profile=[description=, version=0.0.1, ghn=[id=a7b55832-5716-4fd1-95d6-84905cbeabce], service=[id=dataminer-pool-managerDataAnalysis0.0.1], serviceName=dataminer-pool-manager, serviceClass=DataAnalysis, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=7/18/17 3:28 PM, terminationTime=, status=ready, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=REST-API, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api], Endpoint [name=dataminer-pool-manager-remote-management, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/gcube/resource]], specificData=[doc: null], accountings=[]]]] +2017-07-19 18:48:58 DEBUG InformationSystemUtils:135 - DataMiner PoolManager Endpoints map: {REST-API=Endpoint [name=REST-API, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api], dataminer-pool-manager-remote-management=Endpoint [name=dataminer-pool-manager-remote-management, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/gcube/resource]} +2017-07-19 18:48:58 DEBUG InformationSystemUtils:139 - DataMiner PoolManager Endpoint: Endpoint [name=REST-API, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api] +2017-07-19 18:48:58 DEBUG InformationSystemUtils:162 - DataMiner PoolManager URI: http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api +2017-07-19 18:48:58 INFO ISResourceTest:109 - DataMinerPoolManager: http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api +2017-07-19 18:48:58 DEBUG ISResourceTest:65 - truehttp://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.RRREditLinux-compiledBlackBoxOctaveBlackBox +2017-07-19 18:48:58 DEBUG ISResourceTest:69 - SAIDescriptor: SAIDescriptorJAXB [poolmanager=PoolManagerJAXB [enable=true], remotetemplatefile=http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.R, availableprojectconfiguration=[AvailableProjectConfigJAXB [language=R, support=REdit], AvailableProjectConfigJAXB [language=Linux-compiled, support=BlackBox], AvailableProjectConfigJAXB [language=Octave, support=BlackBox]]] +2017-07-19 19:31:18 DEBUG SocialNetworkingTest:29 - SocialNetworkingService request=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-19 19:31:18 ERROR SocialNetworkingTest:46 - Error sending message to administrators +2017-07-19 19:33:34 DEBUG SocialNetworkingTest:32 - SocialNetworkingService request=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-19 19:33:34 ERROR SocialNetworkingTest:49 - Error sending message to administrators +2017-07-19 19:33:34 ERROR SocialNetworkingTest:66 - Server returned HTTP response code: 500 for URL: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +java.io.IOException: Server returned HTTP response code: 500 for URL: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 + at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) + at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) + at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) + at java.lang.reflect.Constructor.newInstance(Constructor.java:423) + at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1890) + at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1885) + at java.security.AccessController.doPrivileged(Native Method) + at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1884) + at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1457) + at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) + at org.gcube.portlets.user.statisticalalgorithmsimporter.SocialNetworkingTest.testMessage(SocialNetworkingTest.java:51) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at junit.framework.TestCase.runTest(TestCase.java:168) + at junit.framework.TestCase.runBare(TestCase.java:134) + at junit.framework.TestResult$1.protect(TestResult.java:110) + at junit.framework.TestResult.runProtected(TestResult.java:128) + at junit.framework.TestResult.run(TestResult.java:113) + at junit.framework.TestCase.run(TestCase.java:124) + at junit.framework.TestSuite.runTest(TestSuite.java:232) + at junit.framework.TestSuite.run(TestSuite.java:227) + at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) + at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) + at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) +Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 + at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840) + at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) + at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) + at org.gcube.portlets.user.statisticalalgorithmsimporter.SocialNetworkingTest.testMessage(SocialNetworkingTest.java:45) + ... 19 more +2017-07-19 19:35:33 DEBUG SocialNetworkingTest:32 - SocialNetworkingService request=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-19 19:35:33 ERROR SocialNetworkingTest:49 - Error sending message to administrators +2017-07-19 19:35:33 ERROR SocialNetworkingTest:66 - Server returned HTTP response code: 500 for URL: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +java.io.IOException: Server returned HTTP response code: 500 for URL: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 + at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) + at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) + at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) + at java.lang.reflect.Constructor.newInstance(Constructor.java:423) + at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1890) + at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1885) + at java.security.AccessController.doPrivileged(Native Method) + at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1884) + at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1457) + at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) + at org.gcube.portlets.user.statisticalalgorithmsimporter.SocialNetworkingTest.testMessage(SocialNetworkingTest.java:51) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at junit.framework.TestCase.runTest(TestCase.java:168) + at junit.framework.TestCase.runBare(TestCase.java:134) + at junit.framework.TestResult$1.protect(TestResult.java:110) + at junit.framework.TestResult.runProtected(TestResult.java:128) + at junit.framework.TestResult.run(TestResult.java:113) + at junit.framework.TestCase.run(TestCase.java:124) + at junit.framework.TestSuite.runTest(TestSuite.java:232) + at junit.framework.TestSuite.run(TestSuite.java:227) + at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) + at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) + at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) +Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 + at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840) + at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) + at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) + at org.gcube.portlets.user.statisticalalgorithmsimporter.SocialNetworkingTest.testMessage(SocialNetworkingTest.java:45) + ... 19 more +2017-07-19 19:37:02 DEBUG SocialNetworkingTest:32 - SocialNetworkingService request=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-19 19:37:02 ERROR SocialNetworkingTest:49 - Error sending message to administrators +2017-07-19 19:37:02 ERROR SocialNetworkingTest:67 - Already connected +java.lang.IllegalStateException: Already connected + at java.net.URLConnection.setDoInput(URLConnection.java:870) + at org.gcube.portlets.user.statisticalalgorithmsimporter.SocialNetworkingTest.testMessage(SocialNetworkingTest.java:50) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at junit.framework.TestCase.runTest(TestCase.java:168) + at junit.framework.TestCase.runBare(TestCase.java:134) + at junit.framework.TestResult$1.protect(TestResult.java:110) + at junit.framework.TestResult.runProtected(TestResult.java:128) + at junit.framework.TestResult.run(TestResult.java:113) + at junit.framework.TestCase.run(TestCase.java:124) + at junit.framework.TestSuite.runTest(TestSuite.java:232) + at junit.framework.TestSuite.run(TestSuite.java:227) + at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) + at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) + at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) +2017-07-19 19:37:24 DEBUG SocialNetworkingTest:32 - SocialNetworkingService request=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-19 19:37:24 ERROR SocialNetworkingTest:50 - Error sending message to administrators +2017-07-19 19:37:24 ERROR SocialNetworkingTest:68 - Server returned HTTP response code: 500 for URL: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +java.io.IOException: Server returned HTTP response code: 500 for URL: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 + at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) + at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) + at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) + at java.lang.reflect.Constructor.newInstance(Constructor.java:423) + at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1890) + at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1885) + at java.security.AccessController.doPrivileged(Native Method) + at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1884) + at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1457) + at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) + at org.gcube.portlets.user.statisticalalgorithmsimporter.SocialNetworkingTest.testMessage(SocialNetworkingTest.java:53) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at junit.framework.TestCase.runTest(TestCase.java:168) + at junit.framework.TestCase.runBare(TestCase.java:134) + at junit.framework.TestResult$1.protect(TestResult.java:110) + at junit.framework.TestResult.runProtected(TestResult.java:128) + at junit.framework.TestResult.run(TestResult.java:113) + at junit.framework.TestCase.run(TestCase.java:124) + at junit.framework.TestSuite.runTest(TestSuite.java:232) + at junit.framework.TestSuite.run(TestSuite.java:227) + at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) + at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) + at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) +Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 + at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840) + at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) + at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) + at org.gcube.portlets.user.statisticalalgorithmsimporter.SocialNetworkingTest.testMessage(SocialNetworkingTest.java:46) + ... 19 more +2017-07-19 19:39:58 DEBUG SocialNetworkingTest:32 - SocialNetworkingService request=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-19 19:39:58 ERROR SocialNetworkingTest:61 - Error sending message to administrators +2017-07-19 19:39:58 INFO SocialNetworkingTest:66 - SocialNetworkingService retrieve error +2017-07-19 19:39:58 DEBUG SocialNetworkingTest:72 - SocialNetworkingService error: { "success" : false, "message" : "HTTP 415 Unsupported Media Type", "result" : null} +2017-07-19 19:47:25 DEBUG SocialNetworkingTest:32 - SocialNetworkingService request=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-19 19:47:25 ERROR SocialNetworkingTest:62 - Error sending message to administrators +2017-07-19 19:47:25 INFO SocialNetworkingTest:67 - SocialNetworkingService retrieve error +2017-07-19 19:47:25 DEBUG SocialNetworkingTest:73 - SocialNetworkingService error: Unrecognized token 'input': was expecting ('true', 'false' or 'null') at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@19ab44de; line: 1, column: 7] +2017-07-19 19:47:52 DEBUG SocialNetworkingTest:32 - SocialNetworkingService request=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-19 19:47:52 ERROR SocialNetworkingTest:62 - Error sending message to administrators +2017-07-19 19:47:52 INFO SocialNetworkingTest:67 - SocialNetworkingService retrieve error +2017-07-19 19:47:52 DEBUG SocialNetworkingTest:73 - SocialNetworkingService error: Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@3f81f7f3; line: 1, column: 239] (through reference chain: org.gcube.portal.social.networking.ws.inputs.MessageInputBean["body"]) +2017-07-19 19:51:38 DEBUG SocialNetworkingTest:32 - SocialNetworkingService request=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-19 19:51:38 ERROR SocialNetworkingTest:62 - Error sending message to administrators +2017-07-19 19:51:38 INFO SocialNetworkingTest:67 - SocialNetworkingService retrieve error +2017-07-19 19:51:38 DEBUG SocialNetworkingTest:73 - SocialNetworkingService error: Unexpected character ('K' (code 75)): was expecting comma to separate OBJECT entries at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@39f95f05; line: 1, column: 1074] +2017-07-19 20:01:56 DEBUG SocialNetworkingTest:33 - SocialNetworkingService request=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-19 20:01:56 ERROR SocialNetworkingTest:85 - Expected a ',' or '}' at character 1073 of {"subject":"[SAI] New software publication requested","recipients":[{"id":"roberto.cirillo"},{"id":"ngalante"},{"id":"lucio.lelii"},{"id":"gianpaolo.coro"},{"id":"giancarlo.panichi"},{"id":"scarponi"}],"body":"Username: giancarlo.panichi\nFull Name: Giancarlo Panichi\nEmail: g.panichi@isti.cnr.it\n\nin VRE: /gcube/devNext/NextNext\n\nhas requested to publish the algorithm: \nLanguage: Knime-Workflow\nAlgorithm Name: KNIMEBLACKBOX\nClass Name: org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox\nAlgorithm Description: KnimeBlackBox\nAlgorithm Category: BLACK_BOX\n\nInterpreter Version: 3.2.1\n\nwith the following original jar: http://data-d.d4science.org/YUxwK1NwdlA4b3JLYjVkUVNpTzNZU0xta2Fic1VzaytHbWJQNStIS0N6Yz0\nadmin copy jar: http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0\n\nInstaller: \n./addAlgorithm.sh KNIMEBLACKBOX BLACK_BOX org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox /gcube/devNext/NextNext transducerers N http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0 "KnimeBlackBox""} +org.json.JSONException: Expected a ',' or '}' at character 1073 of {"subject":"[SAI] New software publication requested","recipients":[{"id":"roberto.cirillo"},{"id":"ngalante"},{"id":"lucio.lelii"},{"id":"gianpaolo.coro"},{"id":"giancarlo.panichi"},{"id":"scarponi"}],"body":"Username: giancarlo.panichi\nFull Name: Giancarlo Panichi\nEmail: g.panichi@isti.cnr.it\n\nin VRE: /gcube/devNext/NextNext\n\nhas requested to publish the algorithm: \nLanguage: Knime-Workflow\nAlgorithm Name: KNIMEBLACKBOX\nClass Name: org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox\nAlgorithm Description: KnimeBlackBox\nAlgorithm Category: BLACK_BOX\n\nInterpreter Version: 3.2.1\n\nwith the following original jar: http://data-d.d4science.org/YUxwK1NwdlA4b3JLYjVkUVNpTzNZU0xta2Fic1VzaytHbWJQNStIS0N6Yz0\nadmin copy jar: http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0\n\nInstaller: \n./addAlgorithm.sh KNIMEBLACKBOX BLACK_BOX org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox /gcube/devNext/NextNext transducerers N http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0 "KnimeBlackBox""} + at org.json.JSONTokener.syntaxError(JSONTokener.java:451) + at org.json.JSONObject.(JSONObject.java:222) + at org.json.JSONObject.(JSONObject.java:326) + at org.gcube.portlets.user.statisticalalgorithmsimporter.SocialNetworkingTest.testMessage(SocialNetworkingTest.java:42) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at junit.framework.TestCase.runTest(TestCase.java:168) + at junit.framework.TestCase.runBare(TestCase.java:134) + at junit.framework.TestResult$1.protect(TestResult.java:110) + at junit.framework.TestResult.runProtected(TestResult.java:128) + at junit.framework.TestResult.run(TestResult.java:113) + at junit.framework.TestCase.run(TestCase.java:124) + at junit.framework.TestSuite.runTest(TestSuite.java:232) + at junit.framework.TestSuite.run(TestSuite.java:227) + at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) + at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) + at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) +2017-07-19 20:02:14 DEBUG SocialNetworkingTest:33 - SocialNetworkingService request=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-19 20:02:14 ERROR SocialNetworkingTest:85 - Expected a ',' or '}' at character 1073 of {"subject":"[SAI] New software publication requested","recipients":[{"id":"roberto.cirillo"},{"id":"ngalante"},{"id":"lucio.lelii"},{"id":"gianpaolo.coro"},{"id":"giancarlo.panichi"},{"id":"scarponi"}],"body":"Username: giancarlo.panichi\nFull Name: Giancarlo Panichi\nEmail: g.panichi@isti.cnr.it\n\nin VRE: /gcube/devNext/NextNext\n\nhas requested to publish the algorithm: \nLanguage: Knime-Workflow\nAlgorithm Name: KNIMEBLACKBOX\nClass Name: org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox\nAlgorithm Description: KnimeBlackBox\nAlgorithm Category: BLACK_BOX\n\nInterpreter Version: 3.2.1\n\nwith the following original jar: http://data-d.d4science.org/YUxwK1NwdlA4b3JLYjVkUVNpTzNZU0xta2Fic1VzaytHbWJQNStIS0N6Yz0\nadmin copy jar: http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0\n\nInstaller: \n./addAlgorithm.sh KNIMEBLACKBOX BLACK_BOX org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox /gcube/devNext/NextNext transducerers N http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0 "KnimeBlackBox""} +org.json.JSONException: Expected a ',' or '}' at character 1073 of {"subject":"[SAI] New software publication requested","recipients":[{"id":"roberto.cirillo"},{"id":"ngalante"},{"id":"lucio.lelii"},{"id":"gianpaolo.coro"},{"id":"giancarlo.panichi"},{"id":"scarponi"}],"body":"Username: giancarlo.panichi\nFull Name: Giancarlo Panichi\nEmail: g.panichi@isti.cnr.it\n\nin VRE: /gcube/devNext/NextNext\n\nhas requested to publish the algorithm: \nLanguage: Knime-Workflow\nAlgorithm Name: KNIMEBLACKBOX\nClass Name: org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox\nAlgorithm Description: KnimeBlackBox\nAlgorithm Category: BLACK_BOX\n\nInterpreter Version: 3.2.1\n\nwith the following original jar: http://data-d.d4science.org/YUxwK1NwdlA4b3JLYjVkUVNpTzNZU0xta2Fic1VzaytHbWJQNStIS0N6Yz0\nadmin copy jar: http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0\n\nInstaller: \n./addAlgorithm.sh KNIMEBLACKBOX BLACK_BOX org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox /gcube/devNext/NextNext transducerers N http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0 "KnimeBlackBox""} + at org.json.JSONTokener.syntaxError(JSONTokener.java:451) + at org.json.JSONObject.(JSONObject.java:222) + at org.json.JSONObject.(JSONObject.java:326) + at org.gcube.portlets.user.statisticalalgorithmsimporter.SocialNetworkingTest.testMessage(SocialNetworkingTest.java:42) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at junit.framework.TestCase.runTest(TestCase.java:168) + at junit.framework.TestCase.runBare(TestCase.java:134) + at junit.framework.TestResult$1.protect(TestResult.java:110) + at junit.framework.TestResult.runProtected(TestResult.java:128) + at junit.framework.TestResult.run(TestResult.java:113) + at junit.framework.TestCase.run(TestCase.java:124) + at junit.framework.TestSuite.runTest(TestSuite.java:232) + at junit.framework.TestSuite.run(TestSuite.java:227) + at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) + at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) + at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) +2017-07-19 20:03:08 DEBUG SocialNetworkingTest:33 - SocialNetworkingService request=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-19 20:03:08 ERROR SocialNetworkingTest:86 - Expected a ',' or '}' at character 1073 of {"subject":"[SAI] New software publication requested","recipients":[{"id":"roberto.cirillo"},{"id":"ngalante"},{"id":"lucio.lelii"},{"id":"gianpaolo.coro"},{"id":"giancarlo.panichi"},{"id":"scarponi"}],"body":"Username: giancarlo.panichi\nFull Name: Giancarlo Panichi\nEmail: g.panichi@isti.cnr.it\n\nin VRE: /gcube/devNext/NextNext\n\nhas requested to publish the algorithm: \nLanguage: Knime-Workflow\nAlgorithm Name: KNIMEBLACKBOX\nClass Name: org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox\nAlgorithm Description: KnimeBlackBox\nAlgorithm Category: BLACK_BOX\n\nInterpreter Version: 3.2.1\n\nwith the following original jar: http://data-d.d4science.org/YUxwK1NwdlA4b3JLYjVkUVNpTzNZU0xta2Fic1VzaytHbWJQNStIS0N6Yz0\nadmin copy jar: http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0\n\nInstaller: \n./addAlgorithm.sh KNIMEBLACKBOX BLACK_BOX org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox /gcube/devNext/NextNext transducerers N http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0 "KnimeBlackBox""} +org.json.JSONException: Expected a ',' or '}' at character 1073 of {"subject":"[SAI] New software publication requested","recipients":[{"id":"roberto.cirillo"},{"id":"ngalante"},{"id":"lucio.lelii"},{"id":"gianpaolo.coro"},{"id":"giancarlo.panichi"},{"id":"scarponi"}],"body":"Username: giancarlo.panichi\nFull Name: Giancarlo Panichi\nEmail: g.panichi@isti.cnr.it\n\nin VRE: /gcube/devNext/NextNext\n\nhas requested to publish the algorithm: \nLanguage: Knime-Workflow\nAlgorithm Name: KNIMEBLACKBOX\nClass Name: org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox\nAlgorithm Description: KnimeBlackBox\nAlgorithm Category: BLACK_BOX\n\nInterpreter Version: 3.2.1\n\nwith the following original jar: http://data-d.d4science.org/YUxwK1NwdlA4b3JLYjVkUVNpTzNZU0xta2Fic1VzaytHbWJQNStIS0N6Yz0\nadmin copy jar: http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0\n\nInstaller: \n./addAlgorithm.sh KNIMEBLACKBOX BLACK_BOX org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox /gcube/devNext/NextNext transducerers N http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0 "KnimeBlackBox""} + at org.json.JSONTokener.syntaxError(JSONTokener.java:451) + at org.json.JSONObject.(JSONObject.java:222) + at org.json.JSONObject.(JSONObject.java:326) + at org.gcube.portlets.user.statisticalalgorithmsimporter.SocialNetworkingTest.testMessage(SocialNetworkingTest.java:34) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at junit.framework.TestCase.runTest(TestCase.java:168) + at junit.framework.TestCase.runBare(TestCase.java:134) + at junit.framework.TestResult$1.protect(TestResult.java:110) + at junit.framework.TestResult.runProtected(TestResult.java:128) + at junit.framework.TestResult.run(TestResult.java:113) + at junit.framework.TestCase.run(TestCase.java:124) + at junit.framework.TestSuite.runTest(TestSuite.java:232) + at junit.framework.TestSuite.run(TestSuite.java:227) + at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) + at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) + at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) +2017-07-19 20:06:07 DEBUG SocialNetworkingTest:33 - SocialNetworkingService request=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-19 20:06:07 DEBUG SocialNetworkingTest:35 - {"subject":"[SAI] New software publication requested","recipients":[{"id":"roberto.cirillo"},{"id":"ngalante"},{"id":"lucio.lelii"},{"id":"gianpaolo.coro"},{"id":"giancarlo.panichi"},{"id":"scarponi"}],"body":"Username: giancarlo.panichi\nFull Name: Giancarlo Panichi\nEmail: g.panichi@isti.cnr.it\n\nin VRE: /gcube/devNext/NextNext\n\nhas requested to publish the algorithm: \nLanguage: Knime-Workflow\nAlgorithm Name: KNIMEBLACKBOX\nClass Name: org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox\nAlgorithm Description: KnimeBlackBox\nAlgorithm Category: BLACK_BOX\n\nInterpreter Version: 3.2.1\n\nwith the following original jar: http://data-d.d4science.org/YUxwK1NwdlA4b3JLYjVkUVNpTzNZU0xta2Fic1VzaytHbWJQNStIS0N6Yz0\nadmin copy jar: http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0\n\nInstaller: \n./addAlgorithm.sh KNIMEBLACKBOX BLACK_BOX org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox /gcube/devNext/NextNext transducerers N http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0 \"KnimeBlackBox\""} +2017-07-19 20:06:10 ERROR SocialNetworkingTest:67 - Error sending message to administrators +2017-07-19 20:06:10 ERROR SocialNetworkingTest:86 - +java.lang.NullPointerException + at java.io.Reader.(Reader.java:78) + at java.io.InputStreamReader.(InputStreamReader.java:72) + at org.gcube.portlets.user.statisticalalgorithmsimporter.SocialNetworkingTest.testMessage(SocialNetworkingTest.java:69) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at junit.framework.TestCase.runTest(TestCase.java:168) + at junit.framework.TestCase.runBare(TestCase.java:134) + at junit.framework.TestResult$1.protect(TestResult.java:110) + at junit.framework.TestResult.runProtected(TestResult.java:128) + at junit.framework.TestResult.run(TestResult.java:113) + at junit.framework.TestCase.run(TestCase.java:124) + at junit.framework.TestSuite.runTest(TestSuite.java:232) + at junit.framework.TestSuite.run(TestSuite.java:227) + at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) + at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) + at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) +2017-07-19 20:08:18 DEBUG SocialNetworkingTest:33 - SocialNetworkingService request=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-19 20:08:18 DEBUG SocialNetworkingTest:35 - {"subject":"[SAI] New software publication requested","recipients":[{"id":"roberto.cirillo"},{"id":"ngalante"},{"id":"lucio.lelii"},{"id":"gianpaolo.coro"},{"id":"giancarlo.panichi"},{"id":"scarponi"}],"body":"Username: giancarlo.panichi\nFull Name: Giancarlo Panichi\nEmail: g.panichi@isti.cnr.it\n\nin VRE: /gcube/devNext/NextNext\n\nhas requested to publish the algorithm: \nLanguage: Knime-Workflow\nAlgorithm Name: KNIMEBLACKBOX\nClass Name: org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox\nAlgorithm Description: KnimeBlackBox\nAlgorithm Category: BLACK_BOX\n\nInterpreter Version: 3.2.1\n\nwith the following original jar: http://data-d.d4science.org/YUxwK1NwdlA4b3JLYjVkUVNpTzNZU0xta2Fic1VzaytHbWJQNStIS0N6Yz0\nadmin copy jar: http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0\n\nInstaller: \n./addAlgorithm.sh KNIMEBLACKBOX BLACK_BOX org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox /gcube/devNext/NextNext transducerers N http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0 \"KnimeBlackBox\""} +2017-07-19 20:08:19 ERROR SocialNetworkingTest:65 - Error sending message to administrators +2017-07-19 20:08:19 ERROR SocialNetworkingTest:84 - +java.lang.NullPointerException + at java.io.Reader.(Reader.java:78) + at java.io.InputStreamReader.(InputStreamReader.java:72) + at org.gcube.portlets.user.statisticalalgorithmsimporter.SocialNetworkingTest.testMessage(SocialNetworkingTest.java:67) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at junit.framework.TestCase.runTest(TestCase.java:168) + at junit.framework.TestCase.runBare(TestCase.java:134) + at junit.framework.TestResult$1.protect(TestResult.java:110) + at junit.framework.TestResult.runProtected(TestResult.java:128) + at junit.framework.TestResult.run(TestResult.java:113) + at junit.framework.TestCase.run(TestCase.java:124) + at junit.framework.TestSuite.runTest(TestSuite.java:232) + at junit.framework.TestSuite.run(TestSuite.java:227) + at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) + at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) + at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) +2017-07-19 20:09:20 DEBUG SocialNetworkingTest:33 - SocialNetworkingService request=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-19 20:09:20 DEBUG SocialNetworkingTest:36 - {"subject":"[SAI] New software publication requested","recipients":[{"id":"roberto.cirillo"},{"id":"ngalante"},{"id":"lucio.lelii"},{"id":"gianpaolo.coro"},{"id":"giancarlo.panichi"},{"id":"scarponi"}],"body":"Username: giancarlo.panichi\nFull Name: Giancarlo Panichi\nEmail: g.panichi@isti.cnr.it\n\nin VRE: /gcube/devNext/NextNext\n\nhas requested to publish the algorithm: \nLanguage: Knime-Workflow\nAlgorithm Name: KNIMEBLACKBOX\nClass Name: org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox\nAlgorithm Description: KnimeBlackBox\nAlgorithm Category: BLACK_BOX\n\nInterpreter Version: 3.2.1\n\nwith the following original jar: http://data-d.d4science.org/YUxwK1NwdlA4b3JLYjVkUVNpTzNZU0xta2Fic1VzaytHbWJQNStIS0N6Yz0\nadmin copy jar: http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0\n\nInstaller: \n./addAlgorithm.sh KNIMEBLACKBOX BLACK_BOX org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox /gcube/devNext/NextNext transducerers N http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0 \"KnimeBlackBox\""} +2017-07-19 20:09:21 INFO SocialNetworkingTest:52 - Response Code: 201 +2017-07-19 20:12:03 DEBUG SocialNetworkingTest:33 - SocialNetworkingService request=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-19 20:12:03 DEBUG SocialNetworkingTest:36 - {"subject":"[SAI] New software publication requested","recipients":[{"id":"roberto.cirillo"},{"id":"ngalante"},{"id":"lucio.lelii"},{"id":"gianpaolo.coro"},{"id":"giancarlo.panichi"},{"id":"scarponi"}],"body":"Username: giancarlo.panichi\nFull Name: Giancarlo Panichi\nEmail: g.panichi@isti.cnr.it\n\nin VRE: /gcube/devNext/NextNext\n\nhas requested to publish the algorithm: \nLanguage: Knime-Workflow\nAlgorithm Name: KNIMEBLACKBOX\nClass Name: org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox\nAlgorithm Description: KnimeBlackBox\nAlgorithm Category: BLACK_BOX\n\nInterpreter Version: 3.2.1\n\nwith the following original jar: http://data-d.d4science.org/YUxwK1NwdlA4b3JLYjVkUVNpTzNZU0xta2Fic1VzaytHbWJQNStIS0N6Yz0\nadmin copy jar: http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0\n\nInstaller: \n./addAlgorithm.sh KNIMEBLACKBOX BLACK_BOX org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox /gcube/devNext/NextNext transducerers N http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0 \"KnimeBlackBox\""} +2017-07-19 20:12:04 INFO SocialNetworkingTest:52 - Response Code: 201 +2017-07-19 20:12:04 INFO SocialNetworkingTest:54 - Mesage send to administrators +2017-07-19 20:12:04 INFO SocialNetworkingTest:59 - SocialNetworkingService retrieve response +2017-07-19 20:12:04 DEBUG SocialNetworkingTest:63 - SocialNetworkingService response: { "success" : true, "message" : null, "result" : "651ebede-2562-4ce3-955d-d99624b95367"} +2017-07-19 20:23:10 DEBUG SocialNetworkingTest:33 - SocialNetworkingService request=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-19 20:23:10 DEBUG SocialNetworkingTest:36 - {"subject":"[SAI] New software publication requested","recipients":[{"id":"roberto.cirillo"},{"id":"ngalante"},{"id":"lucio.lelii"},{"id":"gianpaolo.coro"},{"id":"giancarlo.panichi"},{"id":"scarponi"}],"body":"Username: giancarlo.panichi\nFull Name: Giancarlo Panichi\nEmail: g.panichi@isti.cnr.it\n\nin VRE: /gcube/devNext/NextNext\n\nhas requested to publish the algorithm: \nLanguage: Knime-Workflow\nAlgorithm Name: KNIMEBLACKBOX\nClass Name: org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox\nAlgorithm Description: KnimeBlackBox\nAlgorithm Category: BLACK_BOX\n\nInterpreter Version: 3.2.1\n\nwith the following original jar: http://data-d.d4science.org/YUxwK1NwdlA4b3JLYjVkUVNpTzNZU0xta2Fic1VzaytHbWJQNStIS0N6Yz0\nadmin copy jar: http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0\n\nInstaller: \n./addAlgorithm.sh KNIMEBLACKBOX BLACK_BOX org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox /gcube/devNext/NextNext transducerers N http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0 \"KnimeBlackBox\""} +2017-07-19 20:23:12 INFO SocialNetworkingTest:52 - Response Code: 201 +2017-07-19 20:23:12 INFO SocialNetworkingTest:54 - Mesage send to administrators +2017-07-19 20:23:12 INFO SocialNetworkingTest:59 - SocialNetworkingService retrieve response +2017-07-19 20:23:12 DEBUG SocialNetworkingTest:63 - SocialNetworkingService response: { "success" : true, "message" : null, "result" : "6feb952e-ac5a-4cb4-9ecf-ec6047151804"} +2017-07-19 20:23:12 DEBUG InformationSystemUtils:178 - Retrieve SocialNetworkingService +2017-07-19 20:23:12 INFO ScopeProviderScanner:50 - using scope provider org.gcube.common.scope.impl.DefaultScopeProvider@58651fd0 +2017-07-19 20:23:12 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 1 +2017-07-19 20:23:12 DEBUG InformationSystemUtils:183 - SocialNetworkingService resource in scope: /gcube/devNext/NextNext +2017-07-19 20:23:12 INFO DefaultScanner:63 - matched 15 resources from 11 urls in 186 ms +2017-07-19 20:23:12 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/devsec.servicemap +2017-07-19 20:23:12 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/farm.servicemap +2017-07-19 20:23:12 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/edison.servicemap +2017-07-19 20:23:12 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/sobigdata.servicemap +2017-07-19 20:23:12 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/gcube.servicemap +2017-07-19 20:23:12 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/openaire.servicemap +2017-07-19 20:23:12 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/smartarea.servicemap +2017-07-19 20:23:12 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/d4science.servicemap +2017-07-19 20:23:12 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/gcubeapps.servicemap +2017-07-19 20:23:12 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/isti.servicemap +2017-07-19 20:23:12 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/devnext.servicemap +2017-07-19 20:23:12 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/parthenosvo.servicemap +2017-07-19 20:23:12 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/cnr.servicemap +2017-07-19 20:23:12 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/d4research.servicemap +2017-07-19 20:23:12 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/preprod.servicemap +2017-07-19 20:23:12 INFO ICClient:75 - connectinfg to http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess +2017-07-19 20:23:12 INFO StubFactory:147 - fetching wsdl for XQueryAccessService at http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess?wsdl +2017-07-19 20:23:12 INFO StubCache:63 - caching stub for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub +2017-07-19 20:23:13 DEBUG MethodRetriever:18 - for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub the proxy class is com.sun.proxy.$Proxy35 +2017-07-19 20:23:13 INFO ICClient:57 - executing query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'Portal') and ($resource/Profile/ServiceName/text() eq 'SocialNetworking') return $resource +2017-07-19 20:23:13 INFO Helper:200 - submitting filtered query: declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; declare namespace functx = "http://www.functx.com"; declare function functx:is-value-in-sequence ( $value as xs:anyAtomicType? , $seq as xs:anyAtomicType* ) as xs:boolean { $value = $seq } ; + for $entry0ValueAuth in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource/Scopes + +where (functx:is-value-in-sequence('/gcube/devNext/NextNext',$entry0ValueAuth/child::*[local-name()='Scope']/text()) or functx:is-value-in-sequence('/gcube/devNext',$entry0ValueAuth/child::*[local-name()='Scope']/text())) and ( ($entry0ValueAuth/../Profile/ServiceClass/text() eq 'Portal') and ($entry0ValueAuth/../Profile/ServiceName/text() eq 'SocialNetworking') ) +return $entry0ValueAuth/.. +2017-07-19 20:23:13 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.ScopeHandler@37883b97 +2017-07-19 20:23:13 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.AuthorizationHandler@77f80c04 +2017-07-19 20:23:13 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.TargetServiceHandler@58ea606c +2017-07-19 20:23:13 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.ClientInfoHandler@63070bab +2017-07-19 20:23:13 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.LegacyWSAddressingHandler@2d2ffcb7 +2017-07-19 20:23:13 INFO ICClient:65 - executed query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'Portal') and ($resource/Profile/ServiceName/text() eq 'SocialNetworking') return $resource in 211 ms +2017-07-19 20:23:13 DEBUG InformationSystemUtils:193 - Resources: [GCoreEndpoint [id=4b101571-34f9-417f-b444-f1861895b1c5, scopes=[/gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=b3d3e00b-d750-415a-b5a9-9912720fba91], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=6/5/17 12:22 PM, terminationTime=, status=down, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]], GCoreEndpoint [id=9bdf1903-9778-4976-aebf-e6d37fb3195b, scopes=[/gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=0901d7d2-5a71-4780-ada1-4ac2badd4f4e], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=5/26/17 2:26 PM, terminationTime=, status=down, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]], GCoreEndpoint [id=e9ab9193-6df6-425b-9111-7b15ebc4e733, scopes=[/gcube/devNext/NextNext, /gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=46ea149d-2f85-4328-a515-204654475659], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=7/7/17 12:33 PM, terminationTime=, status=ready, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]]] +2017-07-19 20:23:13 DEBUG InformationSystemUtils:211 - SocialNetworking Endpoints map: {jersey-servlet=Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], SocialNetworking-remote-management=Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]} +2017-07-19 20:23:13 DEBUG InformationSystemUtils:215 - SocialNetworking Endpoint: Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest] +2017-07-19 20:23:13 DEBUG InformationSystemUtils:238 - SocialNetworking URI: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest +2017-07-19 20:23:13 INFO ISResourceTest:90 - SocialNetworkingService: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest +2017-07-19 20:23:13 DEBUG InformationSystemUtils:102 - Retrieve dataminer-pool-manager +2017-07-19 20:23:13 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 1 +2017-07-19 20:23:13 DEBUG InformationSystemUtils:107 - Retrieve DataMiner Pool Manager resource in scope: /gcube/devNext/NextNext +2017-07-19 20:23:13 INFO ICClient:75 - connectinfg to http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess +2017-07-19 20:23:13 INFO StubCache:70 - using cached stub for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub +2017-07-19 20:23:13 DEBUG MethodRetriever:18 - for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub the proxy class is com.sun.proxy.$Proxy35 +2017-07-19 20:23:13 INFO ICClient:57 - executing query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'DataAnalysis') and ($resource/Profile/ServiceName/text() eq 'dataminer-pool-manager') return $resource +2017-07-19 20:23:13 INFO Helper:200 - submitting filtered query: declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; declare namespace functx = "http://www.functx.com"; declare function functx:is-value-in-sequence ( $value as xs:anyAtomicType? , $seq as xs:anyAtomicType* ) as xs:boolean { $value = $seq } ; + for $entry0ValueAuth in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource/Scopes + +where (functx:is-value-in-sequence('/gcube/devNext/NextNext',$entry0ValueAuth/child::*[local-name()='Scope']/text()) or functx:is-value-in-sequence('/gcube/devNext',$entry0ValueAuth/child::*[local-name()='Scope']/text())) and ( ($entry0ValueAuth/../Profile/ServiceClass/text() eq 'DataAnalysis') and ($entry0ValueAuth/../Profile/ServiceName/text() eq 'dataminer-pool-manager') ) +return $entry0ValueAuth/.. +2017-07-19 20:23:13 INFO ICClient:65 - executed query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'DataAnalysis') and ($resource/Profile/ServiceName/text() eq 'dataminer-pool-manager') return $resource in 75 ms +2017-07-19 20:23:13 DEBUG InformationSystemUtils:117 - Resources: [GCoreEndpoint [id=8b408743-9ee8-4c14-9ebc-e282491152a4, scopes=[/gcube/devNext/NextNext, /gcube/devNext], type=RunningInstance, version=0.4.x, profile=[description=, version=0.0.1, ghn=[id=a7b55832-5716-4fd1-95d6-84905cbeabce], service=[id=dataminer-pool-managerDataAnalysis0.0.1], serviceName=dataminer-pool-manager, serviceClass=DataAnalysis, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=7/18/17 3:28 PM, terminationTime=, status=ready, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=REST-API, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api], Endpoint [name=dataminer-pool-manager-remote-management, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/gcube/resource]], specificData=[doc: null], accountings=[]]]] +2017-07-19 20:23:13 DEBUG InformationSystemUtils:135 - DataMiner PoolManager Endpoints map: {REST-API=Endpoint [name=REST-API, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api], dataminer-pool-manager-remote-management=Endpoint [name=dataminer-pool-manager-remote-management, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/gcube/resource]} +2017-07-19 20:23:13 DEBUG InformationSystemUtils:139 - DataMiner PoolManager Endpoint: Endpoint [name=REST-API, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api] +2017-07-19 20:23:13 DEBUG InformationSystemUtils:162 - DataMiner PoolManager URI: http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api +2017-07-19 20:23:13 INFO ISResourceTest:109 - DataMinerPoolManager: http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api +2017-07-19 20:23:13 DEBUG ISResourceTest:65 - truehttp://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.RRREditLinux-compiledBlackBoxOctaveBlackBox +2017-07-19 20:23:13 DEBUG ISResourceTest:69 - SAIDescriptor: SAIDescriptorJAXB [poolmanager=PoolManagerJAXB [enable=true], remotetemplatefile=http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.R, availableprojectconfiguration=[AvailableProjectConfigJAXB [language=R, support=REdit], AvailableProjectConfigJAXB [language=Linux-compiled, support=BlackBox], AvailableProjectConfigJAXB [language=Octave, support=BlackBox]]] +2017-07-19 20:28:12 DEBUG SocialNetworkingTest:33 - SocialNetworkingService request=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message?gcube-token=ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548 +2017-07-19 20:28:12 DEBUG SocialNetworkingTest:36 - {"subject":"[SAI] New software publication requested","recipients":[{"id":"roberto.cirillo"},{"id":"ngalante"},{"id":"lucio.lelii"},{"id":"gianpaolo.coro"},{"id":"giancarlo.panichi"},{"id":"scarponi"}],"body":"Username: giancarlo.panichi\nFull Name: Giancarlo Panichi\nEmail: g.panichi@isti.cnr.it\n\nin VRE: /gcube/devNext/NextNext\n\nhas requested to publish the algorithm: \nLanguage: Knime-Workflow\nAlgorithm Name: KNIMEBLACKBOX\nClass Name: org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox\nAlgorithm Description: KnimeBlackBox\nAlgorithm Category: BLACK_BOX\n\nInterpreter Version: 3.2.1\n\nwith the following original jar: http://data-d.d4science.org/YUxwK1NwdlA4b3JLYjVkUVNpTzNZU0xta2Fic1VzaytHbWJQNStIS0N6Yz0\nadmin copy jar: http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0\n\nInstaller: \n./addAlgorithm.sh KNIMEBLACKBOX BLACK_BOX org.gcube.dataanalysis.executor.rscripts.KnimeBlackBox /gcube/devNext/NextNext transducerers N http://data-d.d4science.org/czlwQkNPTEJYSGRMemxpcXplVXYzZUJ5eEZyT2ExcDRHbWJQNStIS0N6Yz0 \"KnimeBlackBox\""} +2017-07-19 20:28:14 INFO SocialNetworkingTest:52 - Response Code: 201 +2017-07-19 20:28:14 INFO SocialNetworkingTest:54 - Mesage send to administrators +2017-07-19 20:28:14 INFO SocialNetworkingTest:59 - SocialNetworkingService retrieve response +2017-07-19 20:28:14 DEBUG SocialNetworkingTest:63 - SocialNetworkingService response: { "success" : true, "message" : null, "result" : "f184fcb3-5bdc-44fe-b103-db5935cf9196"} +2017-07-19 20:28:14 DEBUG InformationSystemUtils:178 - Retrieve SocialNetworkingService +2017-07-19 20:28:14 INFO ScopeProviderScanner:50 - using scope provider org.gcube.common.scope.impl.DefaultScopeProvider@58651fd0 +2017-07-19 20:28:14 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 1 +2017-07-19 20:28:14 DEBUG InformationSystemUtils:183 - SocialNetworkingService resource in scope: /gcube/devNext/NextNext +2017-07-19 20:28:15 INFO DefaultScanner:63 - matched 15 resources from 11 urls in 200 ms +2017-07-19 20:28:15 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/devsec.servicemap +2017-07-19 20:28:15 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/farm.servicemap +2017-07-19 20:28:15 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/edison.servicemap +2017-07-19 20:28:15 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/sobigdata.servicemap +2017-07-19 20:28:15 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/gcube.servicemap +2017-07-19 20:28:15 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/openaire.servicemap +2017-07-19 20:28:15 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/smartarea.servicemap +2017-07-19 20:28:15 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/d4science.servicemap +2017-07-19 20:28:15 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/gcubeapps.servicemap +2017-07-19 20:28:15 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/isti.servicemap +2017-07-19 20:28:15 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/devnext.servicemap +2017-07-19 20:28:15 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/parthenosvo.servicemap +2017-07-19 20:28:15 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/cnr.servicemap +2017-07-19 20:28:15 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/d4research.servicemap +2017-07-19 20:28:15 INFO ServiceMapScanner:52 - loading jar:file:/home/giancarlo/.m2/repository/org/gcube/core/common-scope-maps/1.0.7-SNAPSHOT/common-scope-maps-1.0.7-SNAPSHOT.jar!/preprod.servicemap +2017-07-19 20:28:15 INFO ICClient:75 - connectinfg to http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess +2017-07-19 20:28:15 INFO StubFactory:147 - fetching wsdl for XQueryAccessService at http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess?wsdl +2017-07-19 20:28:15 INFO StubCache:63 - caching stub for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub +2017-07-19 20:28:15 DEBUG MethodRetriever:18 - for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub the proxy class is com.sun.proxy.$Proxy35 +2017-07-19 20:28:15 INFO ICClient:57 - executing query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'Portal') and ($resource/Profile/ServiceName/text() eq 'SocialNetworking') return $resource +2017-07-19 20:28:15 INFO Helper:200 - submitting filtered query: declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; declare namespace functx = "http://www.functx.com"; declare function functx:is-value-in-sequence ( $value as xs:anyAtomicType? , $seq as xs:anyAtomicType* ) as xs:boolean { $value = $seq } ; + for $entry0ValueAuth in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource/Scopes + +where (functx:is-value-in-sequence('/gcube/devNext/NextNext',$entry0ValueAuth/child::*[local-name()='Scope']/text()) or functx:is-value-in-sequence('/gcube/devNext',$entry0ValueAuth/child::*[local-name()='Scope']/text())) and ( ($entry0ValueAuth/../Profile/ServiceClass/text() eq 'Portal') and ($entry0ValueAuth/../Profile/ServiceName/text() eq 'SocialNetworking') ) +return $entry0ValueAuth/.. +2017-07-19 20:28:15 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.ScopeHandler@37883b97 +2017-07-19 20:28:15 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.AuthorizationHandler@77f80c04 +2017-07-19 20:28:15 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.TargetServiceHandler@58ea606c +2017-07-19 20:28:15 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.ClientInfoHandler@63070bab +2017-07-19 20:28:15 INFO HandlerRegistry:30 - loaded call handler org.gcube.common.clients.stubs.jaxws.handlers.LegacyWSAddressingHandler@2d2ffcb7 +2017-07-19 20:28:15 INFO ICClient:65 - executed query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'Portal') and ($resource/Profile/ServiceName/text() eq 'SocialNetworking') return $resource in 184 ms +2017-07-19 20:28:15 DEBUG InformationSystemUtils:193 - Resources: [GCoreEndpoint [id=4b101571-34f9-417f-b444-f1861895b1c5, scopes=[/gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=b3d3e00b-d750-415a-b5a9-9912720fba91], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=6/5/17 12:22 PM, terminationTime=, status=down, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]], GCoreEndpoint [id=9bdf1903-9778-4976-aebf-e6d37fb3195b, scopes=[/gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=0901d7d2-5a71-4780-ada1-4ac2badd4f4e], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=5/26/17 2:26 PM, terminationTime=, status=down, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]], GCoreEndpoint [id=e9ab9193-6df6-425b-9111-7b15ebc4e733, scopes=[/gcube/devNext/NextNext, /gcube/preprod, /gcube/devNext, /gcube, /gcube/devsec, /gcube/devsec/SmartCamera, /gcube/devsec/devVRE], type=RunningInstance, version=0.4.x, profile=[description=SocialNetworking Service, version=2.0.0-SNAPSHOT, ghn=[id=46ea149d-2f85-4328-a515-204654475659], service=[id=SocialNetworkingPortal2.0.0-SNAPSHOT], serviceName=SocialNetworking, serviceClass=Portal, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=7/7/17 12:33 PM, terminationTime=, status=ready, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]], specificData=[doc: null], accountings=[]]]] +2017-07-19 20:28:15 DEBUG InformationSystemUtils:211 - SocialNetworking Endpoints map: {jersey-servlet=Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest], SocialNetworking-remote-management=Endpoint [name=SocialNetworking-remote-management, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/gcube/resource]} +2017-07-19 20:28:15 DEBUG InformationSystemUtils:215 - SocialNetworking Endpoint: Endpoint [name=jersey-servlet, uri=http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest] +2017-07-19 20:28:15 DEBUG InformationSystemUtils:238 - SocialNetworking URI: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest +2017-07-19 20:28:15 INFO ISResourceTest:90 - SocialNetworkingService: http://socialnetworking-d-d4s.d4science.org:80/social-networking-library-ws/rest +2017-07-19 20:28:15 DEBUG InformationSystemUtils:102 - Retrieve dataminer-pool-manager +2017-07-19 20:28:15 DEBUG DefaultScopeProvider:38 - setting scope /gcube/devNext/NextNext in thread 1 +2017-07-19 20:28:15 DEBUG InformationSystemUtils:107 - Retrieve DataMiner Pool Manager resource in scope: /gcube/devNext/NextNext +2017-07-19 20:28:15 INFO ICClient:75 - connectinfg to http://node22.d.d4science.research-infrastructures.eu:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess +2017-07-19 20:28:15 INFO StubCache:70 - using cached stub for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub +2017-07-19 20:28:15 DEBUG MethodRetriever:18 - for interface org.gcube.resources.discovery.icclient.stubs.CollectorStub the proxy class is com.sun.proxy.$Proxy35 +2017-07-19 20:28:15 INFO ICClient:57 - executing query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'DataAnalysis') and ($resource/Profile/ServiceName/text() eq 'dataminer-pool-manager') return $resource +2017-07-19 20:28:15 INFO Helper:200 - submitting filtered query: declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; declare namespace functx = "http://www.functx.com"; declare function functx:is-value-in-sequence ( $value as xs:anyAtomicType? , $seq as xs:anyAtomicType* ) as xs:boolean { $value = $seq } ; + for $entry0ValueAuth in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource/Scopes + +where (functx:is-value-in-sequence('/gcube/devNext/NextNext',$entry0ValueAuth/child::*[local-name()='Scope']/text()) or functx:is-value-in-sequence('/gcube/devNext',$entry0ValueAuth/child::*[local-name()='Scope']/text())) and ( ($entry0ValueAuth/../Profile/ServiceClass/text() eq 'DataAnalysis') and ($entry0ValueAuth/../Profile/ServiceName/text() eq 'dataminer-pool-manager') ) +return $entry0ValueAuth/.. +2017-07-19 20:28:15 INFO ICClient:65 - executed query declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry'; for $resource in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource where ($resource/Profile/ServiceClass/text() eq 'DataAnalysis') and ($resource/Profile/ServiceName/text() eq 'dataminer-pool-manager') return $resource in 63 ms +2017-07-19 20:28:15 DEBUG InformationSystemUtils:117 - Resources: [GCoreEndpoint [id=8b408743-9ee8-4c14-9ebc-e282491152a4, scopes=[/gcube/devNext/NextNext, /gcube/devNext], type=RunningInstance, version=0.4.x, profile=[description=, version=0.0.1, ghn=[id=a7b55832-5716-4fd1-95d6-84905cbeabce], service=[id=dataminer-pool-managerDataAnalysis0.0.1], serviceName=dataminer-pool-manager, serviceClass=DataAnalysis, runningInstanceInterfaces=[], platform=null, deploymentData=[instanceName=null, localPath=null, activationTime=7/18/17 3:28 PM, terminationTime=, status=ready, messageState=null, plugins=[]], functions=[], endpoints=[Endpoint [name=REST-API, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api], Endpoint [name=dataminer-pool-manager-remote-management, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/gcube/resource]], specificData=[doc: null], accountings=[]]]] +2017-07-19 20:28:15 DEBUG InformationSystemUtils:135 - DataMiner PoolManager Endpoints map: {REST-API=Endpoint [name=REST-API, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api], dataminer-pool-manager-remote-management=Endpoint [name=dataminer-pool-manager-remote-management, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/gcube/resource]} +2017-07-19 20:28:15 DEBUG InformationSystemUtils:139 - DataMiner PoolManager Endpoint: Endpoint [name=REST-API, uri=http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api] +2017-07-19 20:28:15 DEBUG InformationSystemUtils:162 - DataMiner PoolManager URI: http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api +2017-07-19 20:28:15 INFO ISResourceTest:109 - DataMinerPoolManager: http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-2.0.0-SNAPSHOT/api +2017-07-19 20:28:15 DEBUG ISResourceTest:65 - truehttp://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.RRREditLinux-compiledBlackBoxOctaveBlackBox +2017-07-19 20:28:15 DEBUG ISResourceTest:69 - SAIDescriptor: SAIDescriptorJAXB [poolmanager=PoolManagerJAXB [enable=true], remotetemplatefile=http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/RConfiguration/RD4SFunctions/SAITemplateForExternalInvocation.R, availableprojectconfiguration=[AvailableProjectConfigJAXB [language=R, support=REdit], AvailableProjectConfigJAXB [language=Linux-compiled, support=BlackBox], AvailableProjectConfigJAXB [language=Octave, support=BlackBox]]]