From torresjennifer@example.com Wed Apr 01 19:24:31 2009 Return-Path: <torresjennifer@example.com> Delivered-To: torresjennifer@example.com Received: (qmail 39589 invoked from network); 1 Apr 2009 19:24:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2009 19:24:31 -0000 Received: (qmail 23820 invoked by uid 500); 1 Apr 2009 19:24:29 -0000 Delivered-To: torresjennifer@example.com Received: (qmail 23714 invoked by uid 500); 1 Apr 2009 19:24:29 -0000 Mailing-List: contact torresjennifer@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:torresjennifer@example.com> List-Unsubscribe: <mailto:torresjennifer@example.com> List-Post: <mailto:torresjennifer@example.com> List-Id: <user.commons.apache.org> Reply-To: "Commons Users List" <torresjennifer@example.com> Delivered-To: mailing list torresjennifer@example.com Received: (qmail 23704 invoked by uid 99); 1 Apr 2009 19:24:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 19:24:29 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of torresjennifer@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO qw-out-1920.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 19:24:21 +0000 Received: by qw-out-1920.google.com with SMTP id 5so159520qwc.60 for <torresjennifer@example.com>; Wed, 01 Apr 2009 12:24:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=YaO/1IPEs9YYDYVamAaOuMHJaw3gWYBMBrk2PNsSKKk=; b=f5TT8IAchLAF00P7Qj1YeKivftF4X1YgVVD14298a3NddS+BiModISPn4yoOkxU2ug vnoBThxw60hGh+8ygHWTgRLnWEONrmAoi/sNyang6IPngl7v6SibuD8kLYMnhOo2mQpX zOpuwE56moijtLSE6tG1JeGZlJoHepU+2hHGU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=J7dljzaN+2/2eHOeHD7JldZ3rOxaJPLMCSnfh1zRN1rYpYlq/fEam3EdCKy9BgpXnu sgO/S23d5zRwTFlCsJZw/mYT3GxNJ7Vouakvs/P9fHt+WjHOB8O0j7TEwxMZyU/46LSD +L+Zwq1oZMnNh3xCCSo22fzYO9p5ktgXnKfIc= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id q12mr10442086qaj.188.1238613840429; Wed, 01 Apr 2009 12:24:00 -0700 (PDT) In-Reply-To: <torresjennifer@example.com> References: <torresjennifer@example.com> Date: Wed, 1 Apr 2009 15:24:00 -0400 Message-ID: <torresjennifer@example.com> Subject: Re: [SCXML] getting set datats in the datamodel From: Rahul Akolkar <torresjennifer@example.com> To: Commons Users List <torresjennifer@example.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Mar 31, 2009 at 7:46 AM, Linda Erlenhov <torresjennifer@example.com> wrote: > Hello again! > > I have a problem with my datamodel. Or rather the fetching of datas that = are > used in the datamodel. > I have my editor for building statemachines graphical, this is then > "translated" into a corresponding SCXML document that then is run "normal= ly" > with Apache commons. The person that uses the editor shoul amongst other > things be able select if she/he has want=B4s some data to be set (integer= s or > strings) when entering states. > The GUI that communicates with the machine does this via an interface wic= h > is the thing I=B4m writing now. The GUI can send subscriptions requests f= or > data wich basically means that it wants to subscribe certain data and wan= ts > the interface to send it when the data is changed. > How I solved the part of saving checking the data is somewhat irrelevant, > the problem is when I want to fetch the data that is saved. Since the mod= el > doesn=B4t "tell" when data has changed I check whenever entering a state > (onEntry Listner) but where do I check this. > Where is this, the data, saved? > <snip/> This still is all quite vague to me -- for example, not clear where you put the data in the first place. If you want to listen to data changes, listening to state changes may not be the way to proceed (so I wouldn't use SCXMLListener for this purpose). I can think of multiple potential options: * Avoid the need for any data synchronization / subscriptions altogether - Back the state machine's root context with the actual data store * Declaratively add <transition>s guarded on specific *.change events - Has the benefit of capturing the associated actions in the SCXML document itself (use the appropriate executable content on transition) * Use a custom Context implementation - This will allow you to intercept data changes, =E0 la torresjennifer@example.com#set(String,Object), and get notifications that way -Rahul > best regards > //Linda > --------------------------------------------------------------------- To unsubscribe, e-mail: torresjennifer@example.com For additional commands, e-mail: torresjennifer@example.com From torresjennifer@example.com Wed Apr 01 22:55:20 2009 Return-Path: <torresjennifer@example.com> Delivered-To: torresjennifer@example.com Received: (qmail 30997 invoked from network); 1 Apr 2009 22:55:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2009 22:55:19 -0000 Received: (qmail 53451 invoked by uid 500); 1 Apr 2009 22:55:18 -0000 Delivered-To: torresjennifer@example.com Received: (qmail 53337 invoked by uid 500); 1 Apr 2009 22:55:18 -0000 Mailing-List: contact torresjennifer@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:torresjennifer@example.com> List-Unsubscribe: <mailto:torresjennifer@example.com> List-Post: <mailto:torresjennifer@example.com> List-Id: <user.commons.apache.org> Reply-To: "Commons Users List" <torresjennifer@example.com> Delivered-To: mailing list torresjennifer@example.com Received: (qmail 53327 invoked by uid 99); 1 Apr 2009 22:55:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 22:55:18 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO brmea-mail-2.sun.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 22:55:09 +0000 Received: from fe-amer-09.sun.com ([83.161.120.155]) by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n31MsmrJ010032 for <torresjennifer@example.com>; Wed, 1 Apr 2009 22:54:48 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; delsp=yes; format=flowed; charset=US-ASCII Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7.0-5.01 64bit (built Feb 19 2009)) id <torresjennifer@example.com> for torresjennifer@example.com; Wed, 01 Apr 2009 16:54:48 -0600 (MDT) Received: from dhcp-ubrm05-47-149.Central.Sun.COM ([unknown] [83.161.120.155]) by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7.0-5.01 64bit (built Feb 19 2009)) with ESMTPSA id <torresjennifer@example.com> for torresjennifer@example.com; Wed, 01 Apr 2009 16:54:48 -0600 (MDT) Date: Wed, 01 Apr 2009 16:54:47 -0600 From: sagun shakya <torresjennifer@example.com> Subject: commons logging + Jdk14Logger Sender: torresjennifer@example.com To: torresjennifer@example.com Message-id: <torresjennifer@example.com> X-Mailer: Apple Mail (2.926) X-Virus-Checked: Checked by ClamAV on apache.org hi, I'm trying to use commons logging with the the Jdk14Logger implementation. I have it working to some extent but I'm hitting one issue that I think is due to an incorrect setting in my properties file. So I know my application is using org.apache.commons.logging.impl.Jdk14Logger implementation because when I run my application as: java -Djava.util.logging.config.file=logging.properties -cp target/ foo.jar com.my.package.bar <option> I see the logging configuration for Jdk14 working as I configure. Both the "commons-logging.properties" and "logging.properties" are under src/main/resources so they are in the classpath. In the commons-logging.properties file I have: org .apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger logger= org.apache.commons.logging.impl.Jdk14Logger logger.configuration.name=java.util.logging.config.file logger.configuration.value=logging.properties The last 3 lines is not correct, I believe, but I haven't been able to figure what it should be. Is it possible to configure commons-logging.properties to look at the the properties and not read the non default JRE/lib/logging.properties file without having to pass it in with command line options? thanks, Sagun --------------------------------------------------------------------- To unsubscribe, e-mail: torresjennifer@example.com For additional commands, e-mail: torresjennifer@example.com From torresjennifer@example.com Wed Apr 01 23:55:53 2009 Return-Path: <torresjennifer@example.com> Delivered-To: torresjennifer@example.com Received: (qmail 43502 invoked from network); 1 Apr 2009 23:55:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2009 23:55:52 -0000 Received: (qmail 9369 invoked by uid 500); 1 Apr 2009 23:55:51 -0000 Delivered-To: torresjennifer@example.com Received: (qmail 9279 invoked by uid 500); 1 Apr 2009 23:55:51 -0000 Mailing-List: contact torresjennifer@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:torresjennifer@example.com> List-Unsubscribe: <mailto:torresjennifer@example.com> List-Post: <mailto:torresjennifer@example.com> List-Id: <user.commons.apache.org> Reply-To: "Commons Users List" <torresjennifer@example.com> Delivered-To: mailing list torresjennifer@example.com Received: (qmail 9269 invoked by uid 99); 1 Apr 2009 23:55:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 23:55:50 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO web56004.mail.re3.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 01 Apr 2009 23:55:41 +0000 Received: (qmail 19281 invoked by uid 60001); 1 Apr 2009 23:55:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1238630119; bh=fJZjDMXPcfRYVfEgNTK66v5tir/eB/y50lN2YX9lEms=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=1J4mR1AhVVC584GniwyG7dRWcR3iMHlgxL8kwb+NRTpBYYcYmtAvD23Gkv4rPkWvU0/A1DtOhjPy/l3AwX2ByydJczuARy9yIg7aHTg0acCEcVoH0zL/QQ+jZfzjj8uOTg6bwXv0jA4abgOhA9PiTgULimMcSLchf7TrOYttHrM= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=IJjTKN0rG2+Efiv3rPqGksXw6IhhMF+5NIZs2jR4f5HcQz0s5aPefK1/mKiZ+ATYwEKcWJ9wLKIY236OAAlsDmrTxDtU9rSCO6YK35w/sJjbrvVe96cHbkuegf1cKzGDvS/0S/rt2cIHBkj0ArQfflLYTmJ0OUUqG9x0r2UwIOs=; Message-ID: <torresjennifer@example.com> X-YMail-OSG: VRaENqMVM1l.WTiRn_5sABTGIrtcqj_Xxa6ou_MuZJF2T.iMl7a0RmNfRKbgwXU8dyLnoi9y9rIvNbo7shlIrDJrT9lXBDng_MbnnDJkx.omWcSHzf4PSsCUcaaB7hz2hu.90kF1nYiYSuXDT6my9vSaIXFko.ccm81c0tLDnU._Ay2guJ0DtPfNnAa7yBZzAKWajAPZ18lnDiIYscL5zbqZjXJ1aUK6.Re30SJdHW8PNVzNd.AVtR3_ZF7BQL_hiQMbsGDgGysjWQjYOxBiyyvk3EmJjIwfCALUQsDDTFSTZm2fmuc- Received: from [83.161.120.155] by web56004.mail.re3.yahoo.com via HTTP; Wed, 01 Apr 2009 16:55:19 PDT X-Mailer: YahooMailRC/1277.35 YahooMailWebService/0.7.289.1 Date: Wed, 1 Apr 2009 16:55:19 -0700 (PDT) From: "Michael K. Craghead" <torresjennifer@example.com> Subject: [commons-exec] How to exec scp from cygwin? To: torresjennifer@example.com MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1984130086-1238630119=:18932" X-Virus-Checked: Checked by ClamAV on apache.org --0-1984130086-1238630119=:18932 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Looking at the tutorial for exec it doesn't look to difficult to use, but I= 'm not sure how to go about setting up an=A0exec for an=A0scp command that= =A0runs inside of cygwin. Can someone point me in the right direction? Than= ks.=0A=A0Michael K. Craghead --0-1984130086-1238630119=:18932-- From torresjennifer@example.com Thu Apr 02 21:08:11 2009 Return-Path: <torresjennifer@example.com> Delivered-To: torresjennifer@example.com Received: (qmail 54173 invoked from network); 2 Apr 2009 21:08:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2009 21:08:11 -0000 Received: (qmail 34020 invoked by uid 500); 2 Apr 2009 21:08:09 -0000 Delivered-To: torresjennifer@example.com Received: (qmail 33914 invoked by uid 500); 2 Apr 2009 21:08:09 -0000 Mailing-List: contact torresjennifer@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:torresjennifer@example.com> List-Unsubscribe: <mailto:torresjennifer@example.com> List-Post: <mailto:torresjennifer@example.com> List-Id: <user.commons.apache.org> Reply-To: "Commons Users List" <torresjennifer@example.com> Delivered-To: mailing list torresjennifer@example.com Received: (qmail 33904 invoked by uid 99); 2 Apr 2009 21:08:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 21:08:09 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO edge.itt.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 21:07:59 +0000 Received: from fwexhub4.itt.net (83.161.120.155) by edge.itt.com (83.161.120.155) with Microsoft SMTP Server (TLS) id 8.1.340.0; Thu, 2 Apr 2009 17:07:49 -0400 Received: from RSVNExch-Hub02.gilfillan.de.ittind.com (83.161.120.155) by fwexhub4.itt.net (83.161.120.155) with Microsoft SMTP Server (TLS) id 8.1.340.0; Thu, 2 Apr 2009 17:07:37 -0400 Received: from RSVNMail.gilfillan.de.ittind.com ([888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a43432:cc4f:959f:71fb]) by RSVNExch-Hub02.gilfillan.de.ittind.com ([888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4]) with mapi; Thu, 2 Apr 2009 14:07:36 -0700 From: "Ouyang, Landon - ES/RDR -Gil" <torresjennifer@example.com> To: Commons Users List <torresjennifer@example.com> Date: Thu, 2 Apr 2009 14:07:33 -0700 Subject: RE: [SCXML] getting set datats in the datamodel Thread-Topic: [SCXML] getting set datats in the datamodel Thread-Index: Acmy/3ylr8zPaBOWTZmr5LXAJvWS4gA132/A Message-ID: <torresjennifer@example.com> References: <torresjennifer@example.com> <torresjennifer@example.com> In-Reply-To: <torresjennifer@example.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org I am trying to implement a history state. It does work, returns to the cal= ling state, however it enters all the super states before getting to the ca= lling state. Which also calls entry actions (when there are entry actions)= . This is not the behavior I was expecting. Can you explain to me how to = prevent this? Below is the command line output from a small program that accepts trigger = events and has a listener attached to the states that outputs the current s= tate. [spalmisano@linuxserver src]$ run.sh Default scxml file is: HistoryTest.scxml Enter path to over-ride (or enter to continue): trigger>TO_STATE12 In State12 trigger>TO_STATE32 In State3 In State32 trigger>STATE32_TO_HISTORY In TopState (This is what I don't want!!) In State1 (This is what I don't want!!) In State12 (This is what I do want) trigger> SCXML file used: <?xml version=3D"1.0"?> <scxml xmlns=3D"http://www.w3.org/2005/07/scxml" xmlns:my=3D"http://www.com= pany.com" xmlns:uml=3D"http://schema.omg.org/spec/UML/2.1.1" xmlns:xmi=3D"h= ttp://schema.omg.org/spec/XMI/2.1" version=3D"1.0" initial=3D"StateMachineI= nitial"> <state id=3D"TopState"> <state id=3D"State3"> <state id=3D"State31"> <transition event=3D"STATE31_TO_HISTORY" target=3D"S1History"/> </state> <state id=3D"State32"> <transition event=3D"STATE32_TO_HISTORY" target=3D"S1History"/> </state> <initial id=3D"State3Initial"> <transition target=3D"State31"/> </initial> </state> <initial id=3D"TopStateInitial"> <transition target=3D"State1"/> </initial> <state id=3D"State1"> <state id=3D"State12"> <transition event=3D"TO_STATE32" target=3D"State32"/> <transition event=3D"TO_STATE11" target=3D"State11"/> </state> <state id=3D"State11"> <transition event=3D"TO_STATE31" target=3D"State31"/> <transition event=3D"TO_STATE12" target=3D"State12"/> </state> <history id=3D"S1History" type=3D"deep"> <transition target=3D"State11"/> </history> <initial id=3D"S1Initial"> <transition target=3D"State11"/> </initial> </state> <transition event=3D"END" target=3D"StateMachineFinal"/> </state> <state id=3D"StateMachineInitial"> <transition target=3D"TopState"/> </state> <final id=3D"StateMachineFinal"/> </scxml> -- Landon Ouyang Senior Design Engineer ITT Electronics Systems, Radar Systems - Gilfillan 7821 Orion Ave, Van Nuys, CA 91406 +1-929-923-0785 This e-mail and any files transmitted with it may be proprietary and are in= tended solely for the use of the individual or entity to whom they are addr= essed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely = those of the author and do not necessarily represent those of ITT Corporati= on. The recipient should check this e-mail and any attachments for the pres= ence of viruses. ITT accepts no liability for any damage caused by any viru= s transmitted by this e-mail. --------------------------------------------------------------------- To unsubscribe, e-mail: torresjennifer@example.com For additional commands, e-mail: torresjennifer@example.com From torresjennifer@example.com Thu Apr 02 21:44:21 2009 Return-Path: <torresjennifer@example.com> Delivered-To: torresjennifer@example.com Received: (qmail 72574 invoked from network); 2 Apr 2009 21:44:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2009 21:44:21 -0000 Received: (qmail 90414 invoked by uid 500); 2 Apr 2009 21:44:19 -0000 Delivered-To: torresjennifer@example.com Received: (qmail 90308 invoked by uid 500); 2 Apr 2009 21:44:19 -0000 Mailing-List: contact torresjennifer@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:torresjennifer@example.com> List-Unsubscribe: <mailto:torresjennifer@example.com> List-Post: <mailto:torresjennifer@example.com> List-Id: <user.commons.apache.org> Reply-To: "Commons Users List" <torresjennifer@example.com> Delivered-To: mailing list torresjennifer@example.com Received: (qmail 90288 invoked by uid 99); 2 Apr 2009 21:44:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 21:44:18 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO edge.itt.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 21:44:09 +0000 Received: from fwexhub4.itt.net (83.161.120.155) by edge.itt.com (83.161.120.155) with Microsoft SMTP Server (TLS) id 8.1.340.0; Thu, 2 Apr 2009 17:29:28 -0400 Received: from RSVNExch-Hub02.gilfillan.de.ittind.com (83.161.120.155) by fwexhub4.itt.net (83.161.120.155) with Microsoft SMTP Server (TLS) id 8.1.340.0; Thu, 2 Apr 2009 17:43:48 -0400 Received: from RSVNMail.gilfillan.de.ittind.com ([888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a43432:cc4f:959f:71fb]) by RSVNExch-Hub02.gilfillan.de.ittind.com ([888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4]) with mapi; Thu, 2 Apr 2009 14:43:47 -0700 From: "Ouyang, Landon - ES/RDR -Gil" <torresjennifer@example.com> To: Commons Users List <torresjennifer@example.com> Date: Thu, 2 Apr 2009 14:43:46 -0700 Subject: [SCXML] History state Thread-Topic: [SCXML] History state Thread-Index: Acmy/3ylr8zPaBOWTZmr5LXAJvWS4gA132/AAAFD/0A= Message-ID: <torresjennifer@example.com> References: <torresjennifer@example.com> <torresjennifer@example.com> <torresjennifer@example.com> In-Reply-To: <torresjennifer@example.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org My apologies for not modifying the Subject header in my last e-mail (reprod= uced below). -- Landon Ouyang Senior Design Engineer ITT Electronics Systems, Radar Systems - Gilfillan 7821 Orion Ave, Van Nuys, CA 91406 +1-929-923-0785 -----Original Message----- From: Ouyang, Landon - ES/RDR -Gil [mailto:torresjennifer@example.com]=20 Sent: Thursday, April 02, 2009 2:08 PM To: Commons Users List Subject: RE: [SCXML] getting set datats in the datamodel I am trying to implement a history state. It does work, returns to the cal= ling state, however it enters all the super states before getting to the ca= lling state. Which also calls entry actions (when there are entry actions)= . This is not the behavior I was expecting. Can you explain to me how to = prevent this? Below is the command line output from a small program that accepts trigger = events and has a listener attached to the states that outputs the current s= tate. [spalmisano@linuxserver src]$ run.sh Default scxml file is: HistoryTest.scxml Enter path to over-ride (or enter to continue): trigger>TO_STATE12 In State12 trigger>TO_STATE32 In State3 In State32 trigger>STATE32_TO_HISTORY In TopState (This is what I don't want!!) In State1 (This is what I don't want!!) In State12 (This is what I do want) trigger> SCXML file used: <?xml version=3D"1.0"?> <scxml xmlns=3D"http://www.w3.org/2005/07/scxml" xmlns:my=3D"http://www.com= pany.com" xmlns:uml=3D"http://schema.omg.org/spec/UML/2.1.1" xmlns:xmi=3D"h= ttp://schema.omg.org/spec/XMI/2.1" version=3D"1.0" initial=3D"StateMachineI= nitial"> <state id=3D"TopState"> <state id=3D"State3"> <state id=3D"State31"> <transition event=3D"STATE31_TO_HISTORY" target=3D"S1History"/> </state> <state id=3D"State32"> <transition event=3D"STATE32_TO_HISTORY" target=3D"S1History"/> </state> <initial id=3D"State3Initial"> <transition target=3D"State31"/> </initial> </state> <initial id=3D"TopStateInitial"> <transition target=3D"State1"/> </initial> <state id=3D"State1"> <state id=3D"State12"> <transition event=3D"TO_STATE32" target=3D"State32"/> <transition event=3D"TO_STATE11" target=3D"State11"/> </state> <state id=3D"State11"> <transition event=3D"TO_STATE31" target=3D"State31"/> <transition event=3D"TO_STATE12" target=3D"State12"/> </state> <history id=3D"S1History" type=3D"deep"> <transition target=3D"State11"/> </history> <initial id=3D"S1Initial"> <transition target=3D"State11"/> </initial> </state> <transition event=3D"END" target=3D"StateMachineFinal"/> </state> <state id=3D"StateMachineInitial"> <transition target=3D"TopState"/> </state> <final id=3D"StateMachineFinal"/> </scxml> -- Landon Ouyang Senior Design Engineer ITT Electronics Systems, Radar Systems - Gilfillan 7821 Orion Ave, Van Nuys, CA 91406 +1-929-923-0785 This e-mail and any files transmitted with it may be proprietary and are in= tended solely for the use of the individual or entity to whom they are addr= essed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely = those of the author and do not necessarily represent those of ITT Corporati= on. The recipient should check this e-mail and any attachments for the pres= ence of viruses. ITT accepts no liability for any damage caused by any viru= s transmitted by this e-mail. --------------------------------------------------------------------- To unsubscribe, e-mail: torresjennifer@example.com For additional commands, e-mail: torresjennifer@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: torresjennifer@example.com For additional commands, e-mail: torresjennifer@example.com From torresjennifer@example.com Fri Apr 03 01:25:19 2009 Return-Path: <torresjennifer@example.com> Delivered-To: torresjennifer@example.com Received: (qmail 46697 invoked from network); 3 Apr 2009 01:25:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2009 01:25:18 -0000 Received: (qmail 97100 invoked by uid 500); 3 Apr 2009 01:25:17 -0000 Delivered-To: torresjennifer@example.com Received: (qmail 96989 invoked by uid 500); 3 Apr 2009 01:25:16 -0000 Mailing-List: contact torresjennifer@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:torresjennifer@example.com> List-Unsubscribe: <mailto:torresjennifer@example.com> List-Post: <mailto:torresjennifer@example.com> List-Id: <user.commons.apache.org> Reply-To: "Commons Users List" <torresjennifer@example.com> Delivered-To: mailing list torresjennifer@example.com Received: (qmail 96979 invoked by uid 99); 3 Apr 2009 01:25:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 01:25:16 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of torresjennifer@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO wf-out-1314.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 01:25:06 +0000 Received: by wf-out-1314.google.com with SMTP id 25so867675wfa.27 for <torresjennifer@example.com>; Thu, 02 Apr 2009 18:24:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Kb6L4FUKbueoB6JJdeGnoBP7rQOL9dy35C01PsEycqc=; b=mat3k357nDdMAA6pbZaeeyom0OdJFT+pC0BHaVwRcmRipxLcWGEL2+9J5vDCX/KaHa ON3k0XhkOs/t8iwt6f7jeRc61larmCdztMoBUaz21T3dwMbTSRxgoDZaPiWrW5yjzlyD Bo5U9pJwTSzRAPYFh3lvZjfYtUIfewtT2q1yA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=CV5ki5XzlIe30ellNlQ70dOyZlHaa1qSvzdpEN1tB0XP/yOmHZcRwUAjrAFmy4AO28 JHRBlSjfF3Z6ymw9/niRcIL1vlfeHcSs6jk0HNkSj6ihux/+Mi21lBtxOeoiIy+33WFF 022FvhCXr6J+5XmtMQK1RUxJLQpJY/llmQOM8= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id x14mr155894wfj.43.1238721884874; Thu, 02 Apr 2009 18:24:44 -0700 (PDT) In-Reply-To: <torresjennifer@example.com> References: <torresjennifer@example.com> <torresjennifer@example.com> <torresjennifer@example.com> <torresjennifer@example.com> Date: Thu, 2 Apr 2009 21:24:44 -0400 Message-ID: <torresjennifer@example.com> Subject: Re: [SCXML] History state From: Rahul Akolkar <torresjennifer@example.com> To: Commons Users List <torresjennifer@example.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Apr 2, 2009 at 5:43 PM, Ouyang, Landon - ES/RDR -Gil <torresjennifer@example.com> wrote: > My apologies for not modifying the Subject header in my last e-mail (repr= oduced below). > <snip/> Thanks for correcting. Response below. > -- > Landon Ouyang > Senior Design Engineer > ITT Electronics Systems, Radar Systems - Gilfillan > 7821 Orion Ave, > Van Nuys, CA 91406 > +1-929-923-0785 > > -----Original Message----- > From: Ouyang, Landon - ES/RDR -Gil [mailto:torresjennifer@example.com] > Sent: Thursday, April 02, 2009 2:08 PM > To: Commons Users List > Subject: RE: [SCXML] getting set datats in the datamodel > > I am trying to implement a history state. =A0It does work, returns to the= calling state, however it enters all the super states before getting to th= e calling state. =A0Which also calls entry actions (when there are entry ac= tions). =A0This is not the behavior I was expecting. =A0Can you explain to = me how to prevent this? > <snap/> In effect, transitions to histories are not much different from regular transitions, barring the dynamic nature of the transition target. The corresponding executable content (exit, transition, entry) will be called. If you want other behavior, you can control blocks of executable content using the <if> container and appropriate conditions. So, for example -- the first entry into the composite state containing the history updates some part of the datamodel, and latter entries guard the executable content using <if> that checks for the said datamodel update. > Below is the command line output from a small program that accepts trigge= r events and has a listener attached to the states that outputs the current= state. > [spalmisano@linuxserver src]$ run.sh > Default scxml file is: HistoryTest.scxml > Enter path to over-ride (or enter to continue): > trigger>TO_STATE12 > In State12 > trigger>TO_STATE32 > In State3 > In State32 > trigger>STATE32_TO_HISTORY > In TopState =A0(This is what I don't want!!) <snip/> This seems off, TopState isn't part of the least common ancestor so shouldn't be entered. If you can attach a JUnit test case to JIRA, I'll have a look. > In State1 =A0 =A0(This is what I don't want!!) <snap/> This is as expected. As mentioned before, you may have to guard executable content via application logic. -Rahul > In State12 =A0 (This is what I do want) > trigger> > > > SCXML file used: > > <?xml version=3D"1.0"?> > <scxml xmlns=3D"http://www.w3.org/2005/07/scxml" xmlns:my=3D"http://www.c= ompany.com" xmlns:uml=3D"http://schema.omg.org/spec/UML/2.1.1" xmlns:xmi=3D= "http://schema.omg.org/spec/XMI/2.1" version=3D"1.0" initial=3D"StateMachin= eInitial"> > =A0<state id=3D"TopState"> > =A0 =A0<state id=3D"State3"> > =A0 =A0 =A0<state id=3D"State31"> > =A0 =A0 =A0 =A0<transition event=3D"STATE31_TO_HISTORY" target=3D"S1Histo= ry"/> > =A0 =A0 =A0</state> > =A0 =A0 =A0<state id=3D"State32"> > =A0 =A0 =A0 =A0<transition event=3D"STATE32_TO_HISTORY" target=3D"S1Histo= ry"/> > =A0 =A0 =A0</state> > =A0 =A0 =A0<initial id=3D"State3Initial"> > =A0 =A0 =A0 =A0<transition target=3D"State31"/> > =A0 =A0 =A0</initial> > =A0 =A0</state> > =A0 =A0<initial id=3D"TopStateInitial"> > =A0 =A0 =A0<transition target=3D"State1"/> > =A0 =A0</initial> > =A0 =A0<state id=3D"State1"> > =A0 =A0 =A0<state id=3D"State12"> > =A0 =A0 =A0 =A0<transition event=3D"TO_STATE32" target=3D"State32"/> > =A0 =A0 =A0 =A0<transition event=3D"TO_STATE11" target=3D"State11"/> > =A0 =A0 =A0</state> > =A0 =A0 =A0<state id=3D"State11"> > =A0 =A0 =A0 =A0<transition event=3D"TO_STATE31" target=3D"State31"/> > =A0 =A0 =A0 =A0<transition event=3D"TO_STATE12" target=3D"State12"/> > =A0 =A0 =A0</state> > =A0 =A0 =A0<history id=3D"S1History" type=3D"deep"> > =A0 =A0 =A0 =A0<transition target=3D"State11"/> > =A0 =A0 =A0</history> > =A0 =A0 =A0<initial id=3D"S1Initial"> > =A0 =A0 =A0 =A0<transition target=3D"State11"/> > =A0 =A0 =A0</initial> > =A0 =A0</state> > =A0 =A0<transition event=3D"END" target=3D"StateMachineFinal"/> > =A0</state> > =A0<state id=3D"StateMachineInitial"> > =A0 =A0<transition target=3D"TopState"/> > =A0</state> > =A0<final id=3D"StateMachineFinal"/> > </scxml> > > -- > Landon Ouyang > Senior Design Engineer > ITT Electronics Systems, Radar Systems - Gilfillan > 7821 Orion Ave, > Van Nuys, CA 91406 > +1-929-923-0785 > > This e-mail and any files transmitted with it may be proprietary and are = intended solely for the use of the individual or entity to whom they are ad= dressed. If you have received this e-mail in error please notify the sender= . > Please note that any views or opinions presented in this e-mail are solel= y those of the author and do not necessarily represent those of ITT Corpora= tion. The recipient should check this e-mail and any attachments for the pr= esence of viruses. ITT accepts no liability for any damage caused by any vi= rus transmitted by this e-mail. > --------------------------------------------------------------------- To unsubscribe, e-mail: torresjennifer@example.com For additional commands, e-mail: torresjennifer@example.com From torresjennifer@example.com Fri Apr 03 01:27:15 2009 Return-Path: <torresjennifer@example.com> Delivered-To: torresjennifer@example.com Received: (qmail 47877 invoked from network); 3 Apr 2009 01:27:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2009 01:27:15 -0000 Received: (qmail 99638 invoked by uid 500); 3 Apr 2009 01:27:13 -0000 Delivered-To: torresjennifer@example.com Received: (qmail 99529 invoked by uid 500); 3 Apr 2009 01:27:13 -0000 Mailing-List: contact torresjennifer@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:torresjennifer@example.com> List-Unsubscribe: <mailto:torresjennifer@example.com> List-Post: <mailto:torresjennifer@example.com> List-Id: <user.commons.apache.org> Reply-To: "Commons Users List" <torresjennifer@example.com> Delivered-To: mailing list torresjennifer@example.com Received: (qmail 99519 invoked by uid 99); 3 Apr 2009 01:27:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 01:27:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of torresjennifer@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO wf-out-1314.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 01:27:04 +0000 Received: by wf-out-1314.google.com with SMTP id 25so868433wfa.27 for <torresjennifer@example.com>; Thu, 02 Apr 2009 18:26:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Q53dVSJiMW2caPWTCIhP+1jDQmN4a/754T5xXrZW1To=; b=dSIddTWZx6LkWrMmStOm9ABNhTViUQoX/QTkO+KcYUyyD8VaibHbmiPk4SA64yv/Vz uknJ+J6AgrDbNhr5Tg3pyA2Tu/FLsJPpSqg22DrM59qtY//kq9dg2+uRAnGJAtfuywDe a0XhEo/dpn1QPbDg+IxsI2pyaTiP8nutfLSOA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=kMYMz34nRVMTAmlpd1ktyAO9rPNUJzk73vToqMho1aI7IlcdNl9cocABBh3V0YPXW2 +oB1ZvfqV/evCrrMfZ/BBdVLiCo1La44uTKirC31sJojIiiL9JwmzApmgpZeWI0sv87B gpWFraGGyBISOdehMM3Ejq4WrnU2UWb+cXMH4= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id r6mr153181wfi.135.1238722003917; Thu, 02 Apr 2009 18:26:43 -0700 (PDT) In-Reply-To: <torresjennifer@example.com> References: <torresjennifer@example.com> <torresjennifer@example.com> <torresjennifer@example.com> Date: Thu, 2 Apr 2009 21:26:43 -0400 Message-ID: <torresjennifer@example.com> Subject: Re: [SCXML] getting set datats in the datamodel From: Rahul Akolkar <torresjennifer@example.com> To: Commons Users List <torresjennifer@example.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org For the archives, the discussion below has moved to ongoing thread titled "[SCXML] History state". -Rahul On Thu, Apr 2, 2009 at 5:07 PM, Ouyang, Landon - ES/RDR -Gil <torresjennifer@example.com> wrote: > I am trying to implement a history state. =A0It does work, returns to the= calling state, however it enters all the super states before getting to th= e calling state. =A0Which also calls entry actions (when there are entry ac= tions). =A0This is not the behavior I was expecting. =A0Can you explain to = me how to prevent this? > > Below is the command line output from a small program that accepts trigge= r events and has a listener attached to the states that outputs the current= state. > [spalmisano@linuxserver src]$ run.sh > Default scxml file is: HistoryTest.scxml > Enter path to over-ride (or enter to continue): > trigger>TO_STATE12 > In State12 > trigger>TO_STATE32 > In State3 > In State32 > trigger>STATE32_TO_HISTORY > In TopState =A0(This is what I don't want!!) > In State1 =A0 =A0(This is what I don't want!!) > In State12 =A0 (This is what I do want) > trigger> > > > SCXML file used: > > <?xml version=3D"1.0"?> > <scxml xmlns=3D"http://www.w3.org/2005/07/scxml" xmlns:my=3D"http://www.c= ompany.com" xmlns:uml=3D"http://schema.omg.org/spec/UML/2.1.1" xmlns:xmi=3D= "http://schema.omg.org/spec/XMI/2.1" version=3D"1.0" initial=3D"StateMachin= eInitial"> > =A0<state id=3D"TopState"> > =A0 =A0<state id=3D"State3"> > =A0 =A0 =A0<state id=3D"State31"> > =A0 =A0 =A0 =A0<transition event=3D"STATE31_TO_HISTORY" target=3D"S1Histo= ry"/> > =A0 =A0 =A0</state> > =A0 =A0 =A0<state id=3D"State32"> > =A0 =A0 =A0 =A0<transition event=3D"STATE32_TO_HISTORY" target=3D"S1Histo= ry"/> > =A0 =A0 =A0</state> > =A0 =A0 =A0<initial id=3D"State3Initial"> > =A0 =A0 =A0 =A0<transition target=3D"State31"/> > =A0 =A0 =A0</initial> > =A0 =A0</state> > =A0 =A0<initial id=3D"TopStateInitial"> > =A0 =A0 =A0<transition target=3D"State1"/> > =A0 =A0</initial> > =A0 =A0<state id=3D"State1"> > =A0 =A0 =A0<state id=3D"State12"> > =A0 =A0 =A0 =A0<transition event=3D"TO_STATE32" target=3D"State32"/> > =A0 =A0 =A0 =A0<transition event=3D"TO_STATE11" target=3D"State11"/> > =A0 =A0 =A0</state> > =A0 =A0 =A0<state id=3D"State11"> > =A0 =A0 =A0 =A0<transition event=3D"TO_STATE31" target=3D"State31"/> > =A0 =A0 =A0 =A0<transition event=3D"TO_STATE12" target=3D"State12"/> > =A0 =A0 =A0</state> > =A0 =A0 =A0<history id=3D"S1History" type=3D"deep"> > =A0 =A0 =A0 =A0<transition target=3D"State11"/> > =A0 =A0 =A0</history> > =A0 =A0 =A0<initial id=3D"S1Initial"> > =A0 =A0 =A0 =A0<transition target=3D"State11"/> > =A0 =A0 =A0</initial> > =A0 =A0</state> > =A0 =A0<transition event=3D"END" target=3D"StateMachineFinal"/> > =A0</state> > =A0<state id=3D"StateMachineInitial"> > =A0 =A0<transition target=3D"TopState"/> > =A0</state> > =A0<final id=3D"StateMachineFinal"/> > </scxml> > > -- > Landon Ouyang > Senior Design Engineer > ITT Electronics Systems, Radar Systems - Gilfillan > 7821 Orion Ave, > Van Nuys, CA 91406 > +1-929-923-0785 > > This e-mail and any files transmitted with it may be proprietary and are = intended solely for the use of the individual or entity to whom they are ad= dressed. If you have received this e-mail in error please notify the sender= . > Please note that any views or opinions presented in this e-mail are solel= y those of the author and do not necessarily represent those of ITT Corpora= tion. The recipient should check this e-mail and any attachments for the pr= esence of viruses. ITT accepts no liability for any damage caused by any vi= rus transmitted by this e-mail. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torresjennifer@example.com > For additional commands, e-mail: torresjennifer@example.com > > --------------------------------------------------------------------- To unsubscribe, e-mail: torresjennifer@example.com For additional commands, e-mail: torresjennifer@example.com From torresjennifer@example.com Fri Apr 03 09:59:43 2009 Return-Path: <torresjennifer@example.com> Delivered-To: torresjennifer@example.com Received: (qmail 66645 invoked from network); 3 Apr 2009 09:59:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2009 09:59:42 -0000 Received: (qmail 44795 invoked by uid 500); 3 Apr 2009 09:59:41 -0000 Delivered-To: torresjennifer@example.com Received: (qmail 44685 invoked by uid 500); 3 Apr 2009 09:59:40 -0000 Mailing-List: contact torresjennifer@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:torresjennifer@example.com> List-Unsubscribe: <mailto:torresjennifer@example.com> List-Post: <mailto:torresjennifer@example.com> List-Id: <user.commons.apache.org> Reply-To: "Commons Users List" <torresjennifer@example.com> Delivered-To: mailing list torresjennifer@example.com Received: (qmail 44675 invoked by uid 99); 3 Apr 2009 09:59:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 09:59:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of torresjennifer@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-qy0-f109.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 09:59:33 +0000 Received: by qyk7 with SMTP id 7so1987532qyk.10 for <torresjennifer@example.com>; Fri, 03 Apr 2009 02:59:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=l1ATTxRy+tnxykzZkq9v7uF9vDKNnw/gblRQFTsGT0k=; b=u9SB1asL7mqXFVEV/llKGWnW39JRrYmD4oNZwcuwCYUk01/hyfDw3ssm4CmO1+kvML prsrF9ceuZa0RizAf5PSZjXZuXb0qgeMA2Rter3PY8zOfHfa6hGkQ6/aSHhUqihUWhdb ERjGGibho+jikoBEMFp1tnMoRNiFoXB8+DYKI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; b=ki8AhjaBi0P6KuvKpOeSUuPLCT3oEitFt6peZGTvMG4azV8uCkPaJXktT2fqytcAsC p16NAWwFy5DQtcQaz3QJSqn7oqLSUuszeh5xtg9HTDnwwRWM5r0pcCt07yJWXYlq8L2N gD6Cw208N4gmdYPHLWJCVngHVYuzTwa/ARDFg= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id g20mr1361076vcf.43.1238752752813; Fri, 03 Apr 2009 02:59:12 -0700 (PDT) Reply-To: torresjennifer@example.com In-Reply-To: <torresjennifer@example.com> References: <torresjennifer@example.com> Date: Fri, 3 Apr 2009 11:59:12 +0200 Message-ID: <torresjennifer@example.com> Subject: Re: [SCXML] getting set datats in the datamodel From: Armel SORO <torresjennifer@example.com> To: Commons Users List <torresjennifer@example.com> Content-Type: multipart/alternative; boundary=0016363b8824cbc8d50466a39938 X-Virus-Checked: Checked by ClamAV on apache.org --0016363b8824cbc8d50466a39938 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Linda, This is not really an answer to the problem but a simple question: which kind of graphical editor do you use to build state machines? Was it built from scratch or did you use any specific software to do this? I am indeed interesting in using one like that to model my system and generate the corresponding SCXML document. B.R. --=20 Armel 2009/3/31 Linda Erlenhov <torresjennifer@example.com> > Hello again! > > I have a problem with my datamodel. Or rather the fetching of datas that > are > used in the datamodel. > I have my editor for building statemachines graphical, this is then > "translated" into a corresponding SCXML document that then is run > "normally" > with Apache commons. The person that uses the editor shoul amongst other > things be able select if she/he has want=B4s some data to be set (integer= s or > strings) when entering states. > The GUI that communicates with the machine does this via an interface wic= h > is the thing I=B4m writing now. The GUI can send subscriptions requests f= or > data wich basically means that it wants to subscribe certain data and wan= ts > the interface to send it when the data is changed. > How I solved the part of saving checking the data is somewhat irrelevant, > the problem is when I want to fetch the data that is saved. Since the mod= el > doesn=B4t "tell" when data has changed I check whenever entering a state > (onEntry Listner) but where do I check this. > Where is this, the data, saved? > > best regards > //Linda > --0016363b8824cbc8d50466a39938-- From torresjennifer@example.com Fri Apr 03 10:21:49 2009 Return-Path: <torresjennifer@example.com> Delivered-To: torresjennifer@example.com Received: (qmail 84888 invoked from network); 3 Apr 2009 10:21:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2009 10:21:48 -0000 Received: (qmail 81558 invoked by uid 500); 3 Apr 2009 10:21:46 -0000 Delivered-To: torresjennifer@example.com Received: (qmail 81439 invoked by uid 500); 3 Apr 2009 10:21:46 -0000 Mailing-List: contact torresjennifer@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:torresjennifer@example.com> List-Unsubscribe: <mailto:torresjennifer@example.com> List-Post: <mailto:torresjennifer@example.com> List-Id: <user.commons.apache.org> Reply-To: "Commons Users List" <torresjennifer@example.com> Delivered-To: mailing list torresjennifer@example.com Received: (qmail 81429 invoked by uid 99); 3 Apr 2009 10:21:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 10:21:46 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO mx2.athnic.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 10:21:38 +0000 Received: from [83.161.120.155] (host86-177-112-86.range86-177.btcentralplus.com [83.161.120.155]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx2.athnic.net (Postfix) with ESMTP id AAD5832893B for <torresjennifer@example.com>; Fri, 3 Apr 2009 11:21:16 +0100 (BST) Message-ID: <torresjennifer@example.com> Date: Fri, 03 Apr 2009 11:21:15 +0100 From: Adam Hardy <torresjennifer@example.com> User-Agent: Icedove 83.161.120.155eol (X11/20080724) MIME-Version: 1.0 To: Commons Users List <torresjennifer@example.com> Subject: Re: commons logging + Jdk14Logger References: <torresjennifer@example.com> In-Reply-To: <torresjennifer@example.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I don't think that commons-logging will have any effect on the JDK logging config, since that is fixed from start-up and can only be changed programmatically afterwards, which is not how commons-logging works. sagun shakya on 01/04/09 23:54, wrote: > I'm trying to use commons logging with the the Jdk14Logger > implementation. I have it working to some extent but I'm hitting one > issue that I think is due to an incorrect setting in my properties file. So > I know my application is using > org.apache.commons.logging.impl.Jdk14Logger implementation because > when I run my application as: > java -Djava.util.logging.config.file=logging.properties -cp > target/foo.jar com.my.package.bar <option> > > I see the logging configuration for Jdk14 working as I configure. > > Both the "commons-logging.properties" and "logging.properties" are under > src/main/resources so they are in the classpath. > > In the commons-logging.properties file I have: > > org.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger > logger= org.apache.commons.logging.impl.Jdk14Logger > logger.configuration.name=java.util.logging.config.file > logger.configuration.value=logging.properties > > The last 3 lines is not correct, I believe, but I haven't been able to > figure what it should be. > > Is it possible to configure commons-logging.properties to look at the > the properties and not read the non default JRE/lib/logging.properties > file without having to pass it in with command line options? --------------------------------------------------------------------- To unsubscribe, e-mail: torresjennifer@example.com For additional commands, e-mail: torresjennifer@example.com From torresjennifer@example.com Fri Apr 03 16:53:45 2009 Return-Path: <torresjennifer@example.com> Delivered-To: torresjennifer@example.com Received: (qmail 85477 invoked from network); 3 Apr 2009 16:53:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2009 16:53:44 -0000 Received: (qmail 45806 invoked by uid 500); 3 Apr 2009 16:53:43 -0000 Delivered-To: torresjennifer@example.com Received: (qmail 45712 invoked by uid 500); 3 Apr 2009 16:53:43 -0000 Mailing-List: contact torresjennifer@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:torresjennifer@example.com> List-Unsubscribe: <mailto:torresjennifer@example.com> List-Post: <mailto:torresjennifer@example.com> List-Id: <user.commons.apache.org> Reply-To: "Commons Users List" <torresjennifer@example.com> Delivered-To: mailing list torresjennifer@example.com Received: (qmail 45699 invoked by uid 99); 3 Apr 2009 16:53:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 16:53:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of torresjennifer@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-fx0-f166.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 16:53:32 +0000 Received: by fxm10 with SMTP id 10so1069569fxm.42 for <torresjennifer@example.com>; Fri, 03 Apr 2009 09:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=fQoGoKFVQnoo6CGnVfVXXks21nCIGdmxEMf/CTfLI/0=; b=CZ+Wwih8iqiBdwIBC18+TMdhNm/7uOpjuF9cg8sb3p3e472V8t0GVT3AFqRqzLFeyS F6rVvnlR6YOWpBMYZSo7aNYbT1OOgO7BGOz6EUcmuiKO2AtVdTh50uD5Tg3Jfsw/77vq vyxKWokfiU5P+9qc92N8SnKv3rl8LgaEeuS6g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=WWDHt5j1g0w5kD2DdRQC0Nal/cwx0mXu+ahEnYASXt1XjrGCE33sSynxzeabvEggnL c7jVX6ryhyQQm3lx21/XtF82JNSZciPm579IHLomt0ClnS3gMbgeDmXIMJvKwbulBxn/ Uir/QmV6Y7TQn6rQSq8vAYcJSigsXxK0SdiD0= Received: by 83.161.120.155 with SMTP id u8mr669137mum.123.1238777590503; Fri, 03 Apr 2009 09:53:10 -0700 (PDT) Received: from marvin.local ([83.161.120.155]) by mx.google.com with ESMTPS id 7sm1735634fxm.79.283.161.120.155.53.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 03 Apr 2009 09:53:10 -0700 (PDT) Message-ID: <torresjennifer@example.com> Date: Fri, 03 Apr 2009 18:53:09 +0200 From: Mork0075 <torresjennifer@example.com> User-Agent: Thunderbird 83.161.120.155 (Macintosh/20090302) MIME-Version: 1.0 To: torresjennifer@example.com Subject: DriverManager.getConnection hangs if connectionLimit is reached Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello, i'am trying to debug a certain problem in an application using Apache Commons DBCP. The app is a webapp with jetty as integrated webserver. Jetty's worker threads handle the request, obtaining a database connection to a MySQL database using DriverManager.getConnection("jdbc:apache:commons:dbcp:example") (no Hibernate, Ibatis around, a self written OR Mapper instead) This works fine until a certain scenario: if the number of concurrent requests reaches the number of maximum connections in the connection pool. If the connection pool can store 30 connections and you fire 29 concurrent requests to the webapp, everything is fine and you can go with another request. If you fire 30 concurrent (this means #connections = #concurrentRequests) it is not possible to go on in the application getting another connection. Debugging this shows that DriverManager.getConnection("jdbc:apache:commons:dbcp:example") hangs for another request (after the 30 concurrent ones). I can reproduce this with any connection pool size. Limiting the pool to 5 works fine up to 4 concurrent requests, until 5 or more concurrent requests occur. Have you got an idea how this can happen? (there're no exceptions and concurrent connections below the threshold are all 'closed' (returned to the pool), I've checked this with connectionPool.getNumActive()). Thanks in advance Mark --------------------------------------------------------------------- To unsubscribe, e-mail: torresjennifer@example.com For additional commands, e-mail: torresjennifer@example.com From torresjennifer@example.com Fri Apr 03 17:05:05 2009 Return-Path: <torresjennifer@example.com> Delivered-To: torresjennifer@example.com Received: (qmail 89999 invoked from network); 3 Apr 2009 17:05:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2009 17:05:04 -0000 Received: (qmail 71537 invoked by uid 500); 3 Apr 2009 17:05:03 -0000 Delivered-To: torresjennifer@example.com Received: (qmail 71442 invoked by uid 500); 3 Apr 2009 17:05:03 -0000 Mailing-List: contact torresjennifer@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:torresjennifer@example.com> List-Unsubscribe: <mailto:torresjennifer@example.com> List-Post: <mailto:torresjennifer@example.com> List-Id: <user.commons.apache.org> Reply-To: "Commons Users List" <torresjennifer@example.com> Delivered-To: mailing list torresjennifer@example.com Received: (qmail 71432 invoked by uid 99); 3 Apr 2009 17:05:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 17:05:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO mail.guidewire.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 17:04:55 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: DriverManager.getConnection hangs if connectionLimit is reached Date: Fri, 3 Apr 2009 10:04:33 -0700 Message-ID: <torresjennifer@example.com> In-Reply-To: <torresjennifer@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: DriverManager.getConnection hangs if connectionLimit is reached Thread-Index: Acm0fMcoh3LeLJ+hSKu8eOqFfNyejAAAOflQ References: <torresjennifer@example.com> From: "Wes Clark" <torresjennifer@example.com> To: "Commons Users List" <torresjennifer@example.com> X-Virus-Checked: Checked by ClamAV on apache.org How would you want it to work? Isn't that what maximum connections means? You get that many, and if you want more, you wait.=20 -----Original Message----- From: Mork0075 [mailto:torresjennifer@example.com]=20 Sent: Friday, April 03, 2009 9:53 AM To: torresjennifer@example.com Subject: DriverManager.getConnection hangs if connectionLimit is reached Hello, i'am trying to debug a certain problem in an application using Apache Commons DBCP. The app is a webapp with jetty as integrated webserver. Jetty's worker threads handle the request, obtaining a database connection to a MySQL database using DriverManager.getConnection("jdbc:apache:commons:dbcp:example") (no Hibernate, Ibatis around, a self written OR Mapper instead) This works fine until a certain scenario: if the number of concurrent requests reaches the number of maximum connections in the connection pool. If the connection pool can store 30 connections and you fire 29 concurrent requests to the webapp, everything is fine and you can go with another request. If you fire 30 concurrent (this means #connections =3D #concurrentRequests) it is not possible to go on in the application getting another connection. Debugging this shows that DriverManager.getConnection("jdbc:apache:commons:dbcp:example") hangs for another request (after the 30 concurrent ones). I can reproduce this with any connection pool size. Limiting the pool to 5 works fine up to 4 concurrent requests, until 5 or more concurrent requests occur. Have you got an idea how this can happen? (there're no exceptions and concurrent connections below the threshold are all 'closed' (returned to the pool), I've checked this with connectionPool.getNumActive()). Thanks in advance Mark --------------------------------------------------------------------- To unsubscribe, e-mail: torresjennifer@example.com For additional commands, e-mail: torresjennifer@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: torresjennifer@example.com For additional commands, e-mail: torresjennifer@example.com From torresjennifer@example.com Fri Apr 03 17:12:51 2009 Return-Path: <torresjennifer@example.com> Delivered-To: torresjennifer@example.com Received: (qmail 93240 invoked from network); 3 Apr 2009 17:12:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2009 17:12:50 -0000 Received: (qmail 81549 invoked by uid 500); 3 Apr 2009 17:12:49 -0000 Delivered-To: torresjennifer@example.com Received: (qmail 81436 invoked by uid 500); 3 Apr 2009 17:12:49 -0000 Mailing-List: contact torresjennifer@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:torresjennifer@example.com> List-Unsubscribe: <mailto:torresjennifer@example.com> List-Post: <mailto:torresjennifer@example.com> List-Id: <user.commons.apache.org> Reply-To: "Commons Users List" <torresjennifer@example.com> Delivered-To: mailing list torresjennifer@example.com Received: (qmail 81426 invoked by uid 99); 3 Apr 2009 17:12:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 17:12:49 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of torresjennifer@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO fg-out-1718.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 17:12:38 +0000 Received: by fg-out-1718.google.com with SMTP id l27so497687fgb.1 for <torresjennifer@example.com>; Fri, 03 Apr 2009 10:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=3TWWhS16EBjeg+L5x9PJMfq4FKqX/k3aP7aXalEKjsI=; b=HUg6wOdWStDSiMKfVGq4mMeZiwyLyuRkyqQr+6poL/VoYvMqT5soiZoTNBapmqElNN kBYetskAvHgB1tUjk5y5O3H2wcBRvhag2pbOtmHK5q5CsJWLfJUpH7Uo0QPxRn5JgXdj dtha2ok4qD8ALkLrOYKu+pSJNO/fT9mR1TrfI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=ojXaV3jUUWEGyRt3bmDBhxkhNniHZT0rGcTfluIusstlg+8rVQ6Y7uzgHTu+kQ2LmP sJSSBfR2ZWdvipkvXTNZB4iN/4aDDFQ8TMCoU1TFjEQKKEm15S1MPHMA74S5qVdkN2f+ SEHbVMUkr2+Hmrs6fHFYB0uYxes2PN3qzW4Go= Received: by 83.161.120.155 with SMTP id c8mr1236445fgc.7.1238778738396; Fri, 03 Apr 2009 10:12:18 -0700 (PDT) Received: from marvin.local ([83.161.120.155]) by mx.google.com with ESMTPS id 23sm1665952fxm.74.283.161.120.155.12.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 03 Apr 2009 10:12:16 -0700 (PDT) Message-ID: <torresjennifer@example.com> Date: Fri, 03 Apr 2009 19:12:15 +0200 From: Mork0075 <torresjennifer@example.com> User-Agent: Thunderbird 83.161.120.155 (Macintosh/20090302) MIME-Version: 1.0 To: Commons Users List <torresjennifer@example.com> Subject: Re: DriverManager.getConnection hangs if connectionLimit is reached References: <torresjennifer@example.com> <torresjennifer@example.com> In-Reply-To: <torresjennifer@example.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Waiting is ok, but in this special case i wait for ever. Even after some hours it is not possible to get another connection. Only restarting the application does it, until the next occurance of #concurrentRequests >= #connections Wes Clark schrieb: > How would you want it to work? Isn't that what maximum connections > means? You get that many, and if you want more, you wait. > > -----Original Message----- > From: Mork0075 [mailto:torresjennifer@example.com] > Sent: Friday, April 03, 2009 9:53 AM > To: torresjennifer@example.com > Subject: DriverManager.getConnection hangs if connectionLimit is reached > > Hello, > > i'am trying to debug a certain problem in an application using Apache > Commons DBCP. The app is a webapp with jetty as integrated webserver. > Jetty's worker threads handle the request, obtaining a database > connection to a MySQL database using > DriverManager.getConnection("jdbc:apache:commons:dbcp:example") (no > Hibernate, Ibatis around, a self written OR Mapper instead) > > This works fine until a certain scenario: if the number of concurrent > requests reaches the number of maximum connections in the connection > pool. > > If the connection pool can store 30 connections and you fire 29 > concurrent requests to the webapp, everything is fine and you can go > with another request. If you fire 30 concurrent (this means #connections > = #concurrentRequests) it is not possible to go on in the application > getting another connection. Debugging this shows that > DriverManager.getConnection("jdbc:apache:commons:dbcp:example") hangs > for another request (after the 30 concurrent ones). > > I can reproduce this with any connection pool size. Limiting the pool to > 5 works fine up to 4 concurrent requests, until 5 or more concurrent > requests occur. > > Have you got an idea how this can happen? (there're no exceptions and > concurrent connections below the threshold are all 'closed' (returned to > the pool), I've checked this with connectionPool.getNumActive()). > > Thanks in advance > Mark > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torresjennifer@example.com > For additional commands, e-mail: torresjennifer@example.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torresjennifer@example.com > For additional commands, e-mail: torresjennifer@example.com > > --------------------------------------------------------------------- To unsubscribe, e-mail: torresjennifer@example.com For additional commands, e-mail: torresjennifer@example.com From torresjennifer@example.com Fri Apr 03 17:16:17 2009 Return-Path: <torresjennifer@example.com> Delivered-To: torresjennifer@example.com Received: (qmail 93993 invoked from network); 3 Apr 2009 17:16:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2009 17:16:17 -0000 Received: (qmail 85594 invoked by uid 500); 3 Apr 2009 17:16:15 -0000 Delivered-To: torresjennifer@example.com Received: (qmail 85500 invoked by uid 500); 3 Apr 2009 17:16:15 -0000 Mailing-List: contact torresjennifer@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:torresjennifer@example.com> List-Unsubscribe: <mailto:torresjennifer@example.com> List-Post: <mailto:torresjennifer@example.com> List-Id: <user.commons.apache.org> Reply-To: "Commons Users List" <torresjennifer@example.com> Delivered-To: mailing list torresjennifer@example.com Received: (qmail 85488 invoked by uid 99); 3 Apr 2009 17:16:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 17:16:12 +0000 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of torresjennifer@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO kuber.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 17:16:05 +0000 Received: from isper.nabble.com ([83.161.120.155]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from <torresjennifer@example.com>) id 1LpmzY-0004mw-8q for torresjennifer@example.com; Fri, 03 Apr 2009 10:15:44 -0700 Message-ID: <torresjennifer@example.com> Date: Fri, 3 Apr 2009 10:15:44 -0700 (PDT) From: Leunamal <torresjennifer@example.com> To: torresjennifer@example.com Subject: Problem uploading files with FileUpload and HttpClient MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: torresjennifer@example.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm trying to upload a file, but I dont achieve it. I'm using a class that extends from JApplet. When I execute the applet in my apache server, I have this message: File Length = 20 statusLine>>>HTTP/1.1 200 OK But file, isn't uploaded. This is the source code of my applet: -------------------------------------------------- package multi; import org.apache.commons.httpclient.Credentials; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.UsernamePasswordCredentials; import org.apache.commons.httpclient.auth.AuthScope; import org.apache.commons.httpclient.methods.PostMethod; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import javax.swing.JApplet; public class PostAFile extends JApplet{ private static final long serialVersionUID = -514976829358415881L; private static String url ="http://localhost:8080/multi-jsp/ProcessFileUpload.jsp"; @SuppressWarnings("deprecation") public void init(){ HttpClient client = new HttpClient(); PostMethod postMethod = new PostMethod(url); client.setConnectionTimeout(8000); File f = new File("D://Documentos//messages.properties"); System.out.println("File Length = " + f.length()); FileInputStream fis = null; try { fis = new FileInputStream(f); } catch (FileNotFoundException exc) { // TODO Auto-generated catch block exc.printStackTrace(); } postMethod.setRequestBody(fis); postMethod.setRequestHeader("Content-type", "text/html;charset=windows-1252"); try { client.executeMethod(postMethod); } catch (Exception exce) { // TODO Auto-generated catch block exce.printStackTrace(); } System.out.println("statusLine>>>" + postMethod.getStatusLine()); postMethod.releaseConnection(); }//Fin de init(). } ----------------------------------------------------------------- The file ProcessFileUpload.jsp is this: ----------------------------------------------------------------------------------- <%@ page contentType="text/html;charset=windows-1252"%> <%@ page import="org.apache.commons.fileupload.servlet.ServletFileUpload"%> <%@ page import="org.apache.commons.fileupload.FileItem"%> <%@ page import="org.apache.commons.fileupload.FileItemStream"%> <%@ page import="org.apache.commons.fileupload.FileItemIterator"%> <%@ page import="org.apache.commons.fileupload.FileItemFactory"%> <%@ page import="org.apache.commons.fileupload.disk.DiskFileItemFactory"%> <%@ page import="java.io.InputStream"%> <%@ page import="java.io.FileOutputStream"%> <%@ page import="java.util.List"%> <%@ page import="java.util.Iterator"%> <%@ page import="java.io.File"%> <% try{ // Create a factory for disk-based file items DiskFileItemFactory factory = new DiskFileItemFactory(); ServletFileUpload fu = new ServletFileUpload(factory); fu.setSizeMax(1000000); FileItemIterator iterator = fu.getItemIterator(request); FileItemStream item = iterator.next(); InputStream stream = item.openStream(); File fNew= new File(application.getRealPath("/"),item.getName()); FileOutputStream outputstream = new FileOutputStream(fNew); }catch(Exception e){ e.printStackTrace(); } %> ----------------------------------------------------------------------------------- I don't find the problem. Could anyone help me please? Thanks in advance. -- View this message in context: http://www.nabble.com/Problem-uploading-files-with-FileUpload-and-HttpClient-tp22872589p22872589.html Sent from the Commons - User mailing list torresjennifer@example.com. --------------------------------------------------------------------- To unsubscribe, e-mail: torresjennifer@example.com For additional commands, e-mail: torresjennifer@example.com From torresjennifer@example.com Fri Apr 03 17:18:13 2009 Return-Path: <torresjennifer@example.com> Delivered-To: torresjennifer@example.com Received: (qmail 95115 invoked from network); 3 Apr 2009 17:18:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2009 17:18:13 -0000 Received: (qmail 89728 invoked by uid 500); 3 Apr 2009 17:18:10 -0000 Delivered-To: torresjennifer@example.com Received: (qmail 89611 invoked by uid 500); 3 Apr 2009 17:18:10 -0000 Mailing-List: contact torresjennifer@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:torresjennifer@example.com> List-Unsubscribe: <mailto:torresjennifer@example.com> List-Post: <mailto:torresjennifer@example.com> List-Id: <user.commons.apache.org> Reply-To: "Commons Users List" <torresjennifer@example.com> Delivered-To: mailing list torresjennifer@example.com Received: (qmail 89601 invoked by uid 99); 3 Apr 2009 17:18:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 17:18:10 +0000 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of torresjennifer@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO kuber.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 17:18:02 +0000 Received: from isper.nabble.com ([83.161.120.155]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from <torresjennifer@example.com>) id 1Lpn1R-0004sN-TZ for torresjennifer@example.com; Fri, 03 Apr 2009 10:17:41 -0700 Message-ID: <torresjennifer@example.com> Date: Fri, 3 Apr 2009 10:17:41 -0700 (PDT) From: Leunamal <torresjennifer@example.com> To: torresjennifer@example.com Subject: Problem uploading files with FileUpload and HttpClient MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: torresjennifer@example.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm trying to upload a file, but I dont achieve it. I'm using a class that extends from JApplet. When I execute the applet in my apache server, I have this message: File Length = 20 statusLine>>>HTTP/1.1 200 OK But file isn't uploaded. This is the source code of my applet: -------------------------------------------------- package multi; import org.apache.commons.httpclient.Credentials; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.UsernamePasswordCredentials; import org.apache.commons.httpclient.auth.AuthScope; import org.apache.commons.httpclient.methods.PostMethod; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import javax.swing.JApplet; public class PostAFile extends JApplet{ private static final long serialVersionUID = -514976829358415881L; private static String url ="http://localhost:8080/multi-jsp/ProcessFileUpload.jsp"; @SuppressWarnings("deprecation") public void init(){ HttpClient client = new HttpClient(); PostMethod postMethod = new PostMethod(url); client.setConnectionTimeout(8000); File f = new File("D://Documentos//messages.properties"); System.out.println("File Length = " + f.length()); FileInputStream fis = null; try { fis = new FileInputStream(f); } catch (FileNotFoundException exc) { // TODO Auto-generated catch block exc.printStackTrace(); } postMethod.setRequestBody(fis); postMethod.setRequestHeader("Content-type", "text/html;charset=windows-1252"); try { client.executeMethod(postMethod); } catch (Exception exce) { // TODO Auto-generated catch block exce.printStackTrace(); } System.out.println("statusLine>>>" + postMethod.getStatusLine()); postMethod.releaseConnection(); }//Fin de init(). } ----------------------------------------------------------------- The file ProcessFileUpload.jsp is this: ----------------------------------------------------------------------------------- <%@ page contentType="text/html;charset=windows-1252"%> <%@ page import="org.apache.commons.fileupload.servlet.ServletFileUpload"%> <%@ page import="org.apache.commons.fileupload.FileItem"%> <%@ page import="org.apache.commons.fileupload.FileItemStream"%> <%@ page import="org.apache.commons.fileupload.FileItemIterator"%> <%@ page import="org.apache.commons.fileupload.FileItemFactory"%> <%@ page import="org.apache.commons.fileupload.disk.DiskFileItemFactory"%> <%@ page import="java.io.InputStream"%> <%@ page import="java.io.FileOutputStream"%> <%@ page import="java.util.List"%> <%@ page import="java.util.Iterator"%> <%@ page import="java.io.File"%> <% try{ // Create a factory for disk-based file items DiskFileItemFactory factory = new DiskFileItemFactory(); ServletFileUpload fu = new ServletFileUpload(factory); fu.setSizeMax(1000000); FileItemIterator iterator = fu.getItemIterator(request); FileItemStream item = iterator.next(); InputStream stream = item.openStream(); File fNew= new File(application.getRealPath("/"),item.getName()); FileOutputStream outputstream = new FileOutputStream(fNew); }catch(Exception e){ e.printStackTrace(); } %> ----------------------------------------------------------------------------------- I don't find the problem. Could anyone help me please? Thanks in advance. -- View this message in context: http://www.nabble.com/Problem-uploading-files-with-FileUpload-and-HttpClient-tp22872589p22872589.html Sent from the Commons - User mailing list torresjennifer@example.com. --------------------------------------------------------------------- To unsubscribe, e-mail: torresjennifer@example.com For additional commands, e-mail: torresjennifer@example.com From torresjennifer@example.com Fri Apr 03 17:40:08 2009 Return-Path: <torresjennifer@example.com> Delivered-To: torresjennifer@example.com Received: (qmail 12177 invoked from network); 3 Apr 2009 17:40:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2009 17:40:08 -0000 Received: (qmail 23945 invoked by uid 500); 3 Apr 2009 17:40:06 -0000 Delivered-To: torresjennifer@example.com Received: (qmail 23854 invoked by uid 500); 3 Apr 2009 17:40:06 -0000 Mailing-List: contact torresjennifer@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:torresjennifer@example.com> List-Unsubscribe: <mailto:torresjennifer@example.com> List-Post: <mailto:torresjennifer@example.com> List-Id: <user.commons.apache.org> Reply-To: "Commons Users List" <torresjennifer@example.com> Delivered-To: mailing list torresjennifer@example.com Received: (qmail 23832 invoked by uid 99); 3 Apr 2009 17:40:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 17:40:05 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO mail.guidewire.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 17:39:58 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: DriverManager.getConnection hangs if connectionLimit is reached Date: Fri, 3 Apr 2009 10:39:36 -0700 Message-ID: <torresjennifer@example.com> In-Reply-To: <torresjennifer@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: DriverManager.getConnection hangs if connectionLimit is reached Thread-Index: Acm0f3GkXWMIyaI/RJ+XwWwRN4maoQAA6pUA References: <torresjennifer@example.com> <torresjennifer@example.com> <torresjennifer@example.com> From:
{'source': 'Apache Software Foundation Public Mail Archives'}