Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 78660200B46 for ; Fri, 1 Jul 2016 20:45:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 76F71160A4D; Fri, 1 Jul 2016 18:45:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C10CC160A61 for ; Fri, 1 Jul 2016 20:45:14 +0200 (CEST) Received: (qmail 46577 invoked by uid 500); 1 Jul 2016 18:45:14 -0000 Mailing-List: contact dev-help@quarks.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@quarks.incubator.apache.org Delivered-To: mailing list dev@quarks.incubator.apache.org Received: (qmail 46547 invoked by uid 99); 1 Jul 2016 18:45:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2016 18:45:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 861BB187827 for ; Fri, 1 Jul 2016 18:45:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id rac00Rdp7U6g for ; Fri, 1 Jul 2016 18:45:12 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with SMTP id 1ADB15F4E7 for ; Fri, 1 Jul 2016 18:45:12 +0000 (UTC) Received: (qmail 45897 invoked by uid 99); 1 Jul 2016 18:45:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2016 18:45:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6B3DB2C029E for ; Fri, 1 Jul 2016 18:45:11 +0000 (UTC) Date: Fri, 1 Jul 2016 18:45:11 +0000 (UTC) From: "Victor Dogaru (JIRA)" To: dev@quarks.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (QUARKS-210) Submit an app, closing an app and then attempting to resubmit an app "kills" the parent app MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 01 Jul 2016 18:45:15 -0000 [ https://issues.apache.org/jira/browse/QUARKS-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15359455#comment-15359455 ] Victor Dogaru commented on QUARKS-210: -------------------------------------- With functionality provided from QUARKS-215 (now delivered) you should be able to resubmit an application after the previous job has closed. > Submit an app, closing an app and then attempting to resubmit an app "kills" the parent app > ------------------------------------------------------------------------------------------- > > Key: QUARKS-210 > URL: https://issues.apache.org/jira/browse/QUARKS-210 > Project: Quarks > Issue Type: Bug > Components: Runtime > Reporter: Susan L. Cline > Assignee: Daniel John Debrunner > Priority: Critical > > I have a quarks application that creates an IotProvider and registers two applications. One is called piCpuSensor. > Once the main program (the one with IotProvider) is started and registers the two applications I send a device command to the piCpuSensor. > At that point the piCpuSensor starts spitting out temperature readings every second. > Now I send a "CLOSE" command to piCpuSensor. At this point the temperature readings stop. > Now, I want to restart my piCpuSensor application. I send a submit command again. At that point an error is thrown and my main program is no longer functional. (i.e ,it can not receive or send any info) > Here is the stack trace: > Jun 22, 2016 1:12:17 PM quarks.runtime.etiao.ThreadFactoryTracker trackedThreadUncaughtException > SEVERE: Uncaught exception in thread pool-2-thread-4-quarksIotCommandsToControl > java.lang.RuntimeException: java.lang.reflect.InvocationTargetException > at quarks.providers.iot.IotProvider.lambda$null$6cfee445$1(IotProvider.java:239) > at quarks.providers.iot.IotProvider$$Lambda$27/12209492.accept(Unknown Source) > at quarks.function.Functions$ThreadSafeConsumer.accept(Functions.java:204) > at quarks.runtime.etiao.SettableForwarder.accept(SettableForwarder.java:54) > at quarks.oplet.core.Pipe.submit(Pipe.java:65) > at quarks.oplet.functional.Filter.accept(Filter.java:37) > at quarks.runtime.etiao.SettableForwarder.accept(SettableForwarder.java:54) > at quarks.oplet.core.Pipe.submit(Pipe.java:65) > at quarks.oplet.plumbing.Isolate.run(Isolate.java:86) > at quarks.oplet.plumbing.Isolate.lambda$initialize$3(Isolate.java:64) > at quarks.oplet.plumbing.Isolate$$Lambda$20/10725227.run(Unknown Source) > at quarks.runtime.etiao.ThreadFactoryTracker$2.run(ThreadFactoryTracker.java:88) > at java.lang.Thread.run(Thread.java:744) > Caused by: java.lang.reflect.InvocationTargetException > 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:483) > at quarks.runtime.jsoncontrol.JsonControlService.executeMethod(JsonControlService.java:241) > at quarks.runtime.jsoncontrol.JsonControlService.controlOperation(JsonControlService.java:180) > at quarks.runtime.jsoncontrol.JsonControlService.controlRequest(JsonControlService.java:101) > at quarks.providers.iot.IotProvider.lambda$null$6cfee445$1(IotProvider.java:237) > ... 12 more > Caused by: java.lang.IllegalStateException > at quarks.runtime.jsoncontrol.JsonControlService.registerControl(JsonControlService.java:123) > at quarks.runtime.etiao.EtiaoJob.(EtiaoJob.java:71) > at quarks.runtime.etiao.Executable.createJob(Executable.java:271) > at quarks.providers.direct.DirectTopology.executeCallable(DirectTopology.java:104) > at quarks.providers.direct.DirectProvider.submit(DirectProvider.java:87) > at quarks.providers.direct.DirectProvider.submit(DirectProvider.java:52) > at quarks.providers.iot.IotProvider.submit(IotProvider.java:188) > at quarks.providers.iot.IotProvider.submit(IotProvider.java:81) > at quarks.runtime.appservice.AppServiceControl.submit(AppServiceControl.java:66) > ... 20 more -- This message was sent by Atlassian JIRA (v6.3.4#6332)