beet-users Mailing List for beet
Status: Beta
Brought to you by:
tormp
You can subscribe to this list here.
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2010 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Pierre Q. <pie...@ze...> - 2010-06-17 20:21:27
|
From b52e8ee9cc0ce74b99e8c439fe4fda438290bd0e Mon Sep 17 00:00:00 2001
From: Pierre Queinnec <pie...@ze...>
Date: Thu, 17 Jun 2010 14:49:12 +0200
Subject: [PATCH 2/2] Add PostgreSQL support to the beet-utils. Use with the '-tool csv'.
---
utils/src/main/sh/load-events-postgresql.sh | 58 ++++++++++++++++++++
utils/src/main/sql/etl/postgresql/create_etl.sql | 56 +++++++++++++++++++
.../main/sql/etl/postgresql/event_summarize.sql | 27 +++++++++
.../etl/postgresql/load_event_csv-client_copy.ctl | 1 +
.../src/main/sql/etl/postgresql/load_event_csv.ctl | 16 ++++++
5 files changed, 158 insertions(+), 0 deletions(-)
create mode 100755 utils/src/main/sh/load-events-postgresql.sh
create mode 100644 utils/src/main/sql/etl/postgresql/create_etl.sql
create mode 100644 utils/src/main/sql/etl/postgresql/event_summarize.sql
create mode 100644 utils/src/main/sql/etl/postgresql/load_event_csv-client_copy.ctl
create mode 100644 utils/src/main/sql/etl/postgresql/load_event_csv.ctl
diff --git a/utils/src/main/sh/load-events-postgresql.sh b/utils/src/main/sh/load-events-postgresql.sh
new file mode 100755
index 0000000..c42ac7f
--- /dev/null
+++ b/utils/src/main/sh/load-events-postgresql.sh
@@ -0,0 +1,58 @@
+#!/bin/bash -x
+
+## function to echo a usage message and exit.
+function usage {
+ cat <<EOF
+
+Usage: $0 [psql client args] [event log]
+
+ Example:
+
+ > $0 '-U beet analysis' log.bxml.gz.20080101000000
+
+EOF
+ exit 1
+}
+
+## check arg count.
+if [[ $# < 2 ]]; then
+ usage;
+fi
+
+## verify that second arg is an actual file.
+if [ ! -f $2 ]; then
+ echo
+ echo "\"$2\" does not exist or is not a regular file."
+ usage;
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ JAVA=java
+else
+ JAVA=$JAVA_HOME/bin/java
+fi
+
+echo "Loading $2 into behavior tracking database at $1."
+echo "Start: " $(date)
+
+case "`uname`" in
+# FIXME Cygwin support
+Darwin)
+ gzcat "$2" |
+ "$JAVA" -jar beet-utils.jar -tool csv |
+ sed 's/,$//' |
+ psql -c "$(cat sql/etl/postgresql/load_event_csv.ctl)" $1
+ ;;
+
+*)
+ zcat "$2" |
+ "$JAVA" -jar beet-utils.jar -tool csv |
+ sed 's/,$//' |
+ psql -c "$(cat sql/etl/postgresql/load_event_csv.ctl)" $1
+ ;;
+esac
+
+echo "Summarizing data..."
+psql -f sql/etl/postgresql/event_summarize.sql $1
+
+echo "End: " $(date)
diff --git a/utils/src/main/sql/etl/postgresql/create_etl.sql b/utils/src/main/sql/etl/postgresql/create_etl.sql
new file mode 100644
index 0000000..8abec99
--- /dev/null
+++ b/utils/src/main/sql/etl/postgresql/create_etl.sql
@@ -0,0 +1,56 @@
+-- event data table for basic analysis
+create table BEHAVIOR_TRACKING_EVENT (
+ EVENT_ID VARCHAR(100) NOT NULL,
+ PARENT_EVENT_ID VARCHAR(100),
+ EVENT_TYPE VARCHAR(20) NOT NULL,
+ EVENT_NAME VARCHAR(256) NOT NULL,
+ EVENT_START DATE NOT NULL,
+ USER_ID VARCHAR(64),
+ SESSION_ID VARCHAR(64),
+ APPLICATION VARCHAR(64) NOT NULL,
+ DURATION_NS BIGINT NOT NULL,
+ EVENT_DATA VARCHAR(4000),
+ ERROR VARCHAR(512),
+ SUMMARIZED CHAR(1)
+);
+create index EVENT_NAME_IDX on BEHAVIOR_TRACKING_EVENT (
+ EVENT_NAME ASC
+);
+
+-- event summary table for trending over long periods of time
+create table BEHAVIOR_TRACKING_SUMMARY (
+ SUMMARY_DATE VARCHAR(100) NOT NULL,
+ EVENT_TYPE VARCHAR(20) NOT NULL,
+ EVENT_NAME VARCHAR(256) NOT NULL,
+ PERIOD_START DATE NOT NULL,
+ PERIOD_END DATE NOT NULL,
+ COUNT BIGINT NOT NULL,
+ AVERAGE_NS BIGINT NOT NULL,
+ MINIMUM_NS BIGINT NOT NULL,
+ MAXIMUM_NS BIGINT NOT NULL,
+ MEDIAN_NS BIGINT NOT NULL,
+ STANDARD_DEVIATION BIGINT NOT NULL,
+ ERROR_COUNT BIGINT NOT NULL
+);
+
+-- MEDIAN, taken from Scott Bailey 'Artacus'
+CREATE OR REPLACE FUNCTION _final_median(numeric[])
+ RETURNS numeric AS
+$$
+ SELECT AVG(val)
+ FROM (
+ SELECT val
+ FROM unnest($1) val
+ ORDER BY 1
+ LIMIT 2 - MOD(array_upper($1, 1), 2)
+ OFFSET CEIL(array_upper($1, 1) / 2.0) - 1
+ ) sub;
+$$
+LANGUAGE 'sql' IMMUTABLE;
+
+CREATE AGGREGATE median(numeric) (
+ SFUNC=array_append,
+ STYPE=numeric[],
+ FINALFUNC=_final_median,
+ INITCOND='{}'
+);
diff --git a/utils/src/main/sql/etl/postgresql/event_summarize.sql b/utils/src/main/sql/etl/postgresql/event_summarize.sql
new file mode 100644
index 0000000..87445c5
--- /dev/null
+++ b/utils/src/main/sql/etl/postgresql/event_summarize.sql
@@ -0,0 +1,27 @@
+BEGIN;
+INSERT INTO BEHAVIOR_TRACKING_SUMMARY
+ (SUMMARY_DATE, EVENT_TYPE, EVENT_NAME, PERIOD_START, PERIOD_END, COUNT,
+ AVERAGE_NS, MINIMUM_NS, MAXIMUM_NS, median_ns, STANDARD_DEVIATION, ERROR_COUNT)
+SELECT NOW(), evt.*
+ FROM (
+ SELECT event.event_type, event.event_name,
+ MIN(event_start) period_start,
+ MAX(event_start) period_end,
+ COUNT(*) event_count,
+ AVG(duration_ns) average_ns,
+ MIN(duration_ns) min_ns,
+ MAX(duration_ns) max_ns,
+ MEDIAN(duration_ns) median_ns,
+ STDDEV(duration_ns) std_dev_ns,
+ (SELECT COUNT(*)
+ FROM BEHAVIOR_TRACKING_EVENT tmp
+ WHERE tmp.summarized is NULL
+ and event_name = event.event_name
+ and event_type = event.event_type
+ and error IS NOT NULL) error_cnt
+ FROM BEHAVIOR_TRACKING_EVENT event
+ WHERE event.summarized IS NULL
+ GROUP BY event_name, event_type
+ ) evt;
+ UPDATE BEHAVIOR_TRACKING_EVENT SET summarized='Y' WHERE summarized IS NULL;
+ COMMIT;
diff --git a/utils/src/main/sql/etl/postgresql/load_event_csv-client_copy.ctl b/utils/src/main/sql/etl/postgresql/load_event_csv-client_copy.ctl
new file mode 100644
index 0000000..fa299df
--- /dev/null
+++ b/utils/src/main/sql/etl/postgresql/load_event_csv-client_copy.ctl
@@ -0,0 +1 @@
+\COPY BEHAVIOR_TRACKING_EVENT (EVENT_ID, PARENT_EVENT_ID, EVENT_TYPE, EVENT_NAME, APPLICATION, EVENT_START, DURATION_NS, USER_ID, SESSION_ID, ERROR, EVENT_DATA) FROM STDIN WITH CSV HEADER
diff --git a/utils/src/main/sql/etl/postgresql/load_event_csv.ctl b/utils/src/main/sql/etl/postgresql/load_event_csv.ctl
new file mode 100644
index 0000000..2b1784c
--- /dev/null
+++ b/utils/src/main/sql/etl/postgresql/load_event_csv.ctl
@@ -0,0 +1,16 @@
+COPY BEHAVIOR_TRACKING_EVENT
+ (
+ EVENT_ID,
+ PARENT_EVENT_ID,
+ EVENT_TYPE,
+ EVENT_NAME,
+ APPLICATION,
+ EVENT_START,
+ DURATION_NS,
+ USER_ID,
+ SESSION_ID,
+ ERROR,
+ EVENT_DATA
+ )
+ FROM STDIN
+ WITH CSV HEADER;
--
1.7.1
|
|
From: Pierre Q. <pie...@ze...> - 2010-06-17 20:19:32
|
From 59fb42994bd7339ae6c9bc138271ebf393e148cb Mon Sep 17 00:00:00 2001
From: Pierre Queinnec <pie...@ze...>
Date: Thu, 17 Jun 2010 14:47:08 +0200
Subject: [PATCH 1/2] Add MySQL support to the beet-utils. Use with the '-tool csv'.
---
utils/src/main/sh/load-events-mysql.sh | 59 ++++++++++++++++++++++
utils/src/main/sql/etl/mysql/create_etl.sql | 38 ++++++++++++++
utils/src/main/sql/etl/mysql/event_summarize.sql | 40 +++++++++++++++
utils/src/main/sql/etl/mysql/load_event_csv.ctl | 17 ++++++
4 files changed, 154 insertions(+), 0 deletions(-)
create mode 100755 utils/src/main/sh/load-events-mysql.sh
create mode 100644 utils/src/main/sql/etl/mysql/create_etl.sql
create mode 100644 utils/src/main/sql/etl/mysql/event_summarize.sql
create mode 100644 utils/src/main/sql/etl/mysql/load_event_csv.ctl
diff --git a/utils/src/main/sh/load-events-mysql.sh b/utils/src/main/sh/load-events-mysql.sh
new file mode 100755
index 0000000..415b75e
--- /dev/null
+++ b/utils/src/main/sh/load-events-mysql.sh
@@ -0,0 +1,59 @@
+#!/bin/bash
+
+## function to echo a usage message and exit.
+function usage {
+ cat <<EOF
+
+Usage: $0 [mysql client args] [event log]
+
+ Example:
+
+ > $0 '-h 127.0.0.1 -P 3306 -D analysis' log.bxml.gz.20080101000000
+
+EOF
+ exit 1
+}
+
+## check arg count.
+if [[ $# < 2 ]]; then
+ usage;
+fi
+
+## verify that second arg is an actual file.
+if [ ! -f $2 ]; then
+ echo
+ echo "\"$2\" does not exist or is not a regular file."
+ usage;
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ JAVA=java
+else
+ JAVA=$JAVA_HOME/bin/java
+fi
+
+echo "Loading $2 into behavior tracking database at $1."
+echo "Start: " $(date)
+
+case "`uname`" in
+# FIXME Cygwin support
+Darwin)
+ # FIXME use a randfile
+ mkfifo /tmp/import-mysql.fifo
+ gzcat "$2" | "$JAVA" -jar beet-utils.jar -tool csv > /tmp/import-mysql.fifo &
+ mysql $1 < sql/etl/mysql/load_event_csv.ctl
+ rm /tmp/import-mysql.fifo
+ ;;
+
+*)
+ mkfifo /tmp/import-mysql.fifo
+ zcat "$2" | "$JAVA" -jar beet-utils.jar -tool csv > /tmp/import-mysql.fifo &
+ mysql $1 < sql/etl/mysql/load_event_csv.ctl
+ rm /tmp/import-mysql.fifo
+ ;;
+esac
+
+echo "Summarizing data..."
+mysql $1 < sql/etl/mysql/event_summarize.sql
+
+echo "End: " $(date)
diff --git a/utils/src/main/sql/etl/mysql/create_etl.sql b/utils/src/main/sql/etl/mysql/create_etl.sql
new file mode 100644
index 0000000..8eff6f4
--- /dev/null
+++ b/utils/src/main/sql/etl/mysql/create_etl.sql
@@ -0,0 +1,38 @@
+-- this script showcases a strange MySQL bug (probably) on case-insensitive FS,
+-- where the event table name ends up in lowercase and the summary one in upper
+-- You'll need to use the classic 'set-variable=lower_case_table_names=0'
+
+-- event data table for basic analysis
+create table BEHAVIOR_TRACKING_EVENT (
+ EVENT_ID VARCHAR(100) NOT NULL,
+ PARENT_EVENT_ID VARCHAR(100),
+ EVENT_TYPE VARCHAR(20) NOT NULL,
+ EVENT_NAME VARCHAR(256) NOT NULL,
+ EVENT_START DATE NOT NULL,
+ USER_ID VARCHAR(64),
+ SESSION_ID VARCHAR(64),
+ APPLICATION VARCHAR(64) NOT NULL,
+ DURATION_NS BIGINT(16) NOT NULL,
+ EVENT_DATA BLOB,
+ ERROR VARCHAR(512),
+ SUMMARIZED CHAR(1)
+);
+create index EVENT_NAME_IDX on BEHAVIOR_TRACKING_EVENT (
+ EVENT_NAME ASC
+);
+
+-- event summary table for trending over long periods of time
+create table BEHAVIOR_TRACKING_SUMMARY (
+ SUMMARY_DATE VARCHAR(100) NOT NULL,
+ EVENT_TYPE VARCHAR(20) NOT NULL,
+ EVENT_NAME VARCHAR(256) NOT NULL,
+ PERIOD_START DATE NOT NULL,
+ PERIOD_END DATE NOT NULL,
+ `COUNT` BIGINT(16) NOT NULL,
+ AVERAGE_NS BIGINT(16) NOT NULL,
+ MINIMUM_NS BIGINT(16) NOT NULL,
+ MAXIMUM_NS BIGINT(16) NOT NULL,
+ MEDIAN_NS BIGINT(16) NOT NULL,
+ STANDARD_DEVIATION BIGINT(16) NOT NULL,
+ ERROR_COUNT BIGINT(16) NOT NULL
+);
diff --git a/utils/src/main/sql/etl/mysql/event_summarize.sql b/utils/src/main/sql/etl/mysql/event_summarize.sql
new file mode 100644
index 0000000..44af0de
--- /dev/null
+++ b/utils/src/main/sql/etl/mysql/event_summarize.sql
@@ -0,0 +1,40 @@
+-- FIXME benchmark this median impl against the median UDF and the Wikipedia impl
+-- (the following one uses a self-join...)
+INSERT INTO BEHAVIOR_TRACKING_SUMMARY
+ (SUMMARY_DATE, EVENT_TYPE, EVENT_NAME, PERIOD_START, PERIOD_END, COUNT,
+ AVERAGE_NS, MINIMUM_NS, MAXIMUM_NS, median_ns, STANDARD_DEVIATION, ERROR_COUNT)
+SELECT NOW(), evt.*
+ FROM (
+ SELECT event.event_type, event.event_name,
+ MIN(event_start) period_start,
+ MAX(event_start) period_end,
+ COUNT(*) event_count,
+ AVG(duration_ns) average_ns,
+ MIN(duration_ns) min_ns,
+ MAX(duration_ns) max_ns,
+
+ (SELECT AVG(tmp.median) AS median_ns
+ FROM (
+ SELECT x.duration_ns as median
+ FROM BEHAVIOR_TRACKING_EVENT x, BEHAVIOR_TRACKING_EVENT y
+ GROUP BY x.duration_ns
+ HAVING
+ ((SUM(SIGN(1 - SIGN(y.duration_ns - x.duration_ns)))) >= FLOOR((COUNT(*) + 1) / 2))
+ AND
+ ((SUM(SIGN(1 + SIGN(y.duration_ns - x.duration_ns)))) >= FLOOR((COUNT(*) + 1) / 2))
+ ) AS tmp
+ ),
+
+ STDDEV(duration_ns) std_dev_ns,
+ (SELECT COUNT(*)
+ FROM BEHAVIOR_TRACKING_EVENT tmp
+ WHERE tmp.summarized is NULL
+ and event_name = event.event_name
+ and event_type = event.event_type
+ and error IS NOT NULL) error_cnt
+ FROM BEHAVIOR_TRACKING_EVENT event
+ WHERE event.summarized IS NULL
+ GROUP BY event_name, event_type
+ ) evt;
+ UPDATE BEHAVIOR_TRACKING_EVENT SET summarized='Y' WHERE summarized IS NULL;
+ COMMIT;
diff --git a/utils/src/main/sql/etl/mysql/load_event_csv.ctl b/utils/src/main/sql/etl/mysql/load_event_csv.ctl
new file mode 100644
index 0000000..35ffd6a
--- /dev/null
+++ b/utils/src/main/sql/etl/mysql/load_event_csv.ctl
@@ -0,0 +1,17 @@
+LOAD DATA INFILE '/tmp/import-mysql.fifo'
+ INTO TABLE BEHAVIOR_TRACKING_EVENT
+ FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
+ IGNORE 1 LINES
+ (
+ EVENT_ID,
+ PARENT_EVENT_ID,
+ EVENT_TYPE,
+ EVENT_NAME,
+ APPLICATION,
+ EVENT_START,
+ DURATION_NS,
+ USER_ID,
+ SESSION_ID,
+ ERROR,
+ EVENT_DATA
+ )
--
1.7.1
|
|
From: Pierre Q. <pie...@ze...> - 2010-06-01 10:08:48
|
Hi guys,
I've been trying to rebuild Beet but it fails on beet-utils with the Ivy
stacktrace at the end of the mail. I've slightly changed the Ivy files
so that it works, but I'm no Ivy/EasyAnt expert so please take it with a
grain of salt. The patches are attached. For the record, my environment
is Mac OS X 10.5, Java 6 and EasyAnt 0.7.
The Ivy stacktrace :
======================================================================
Entering project "module.ivy"
In /usr/local/src/beet-git/utils
======================================================================
[easyant] Loading build module : /usr/local/src/beet-git/utils/module.ivy
[echo] Building net.sourceforge.beet beet-utils with
org.apache.easyant.buildtypes#build-std-java...
[easyant] :: loading settings :: file = ./src/build/ant/ivysettings.xml
======================================================================
Executing [release] on beet-utils
======================================================================
beet-utils.compile-test:abstract-compile-test-java:init:
Trying to override old definition of datatype junit
Trying to override old definition of datatype junitreport
beet-utils.manifest:init:
[mkdir] Created dir:
/usr/local/src/beet-git/utils/target/main/classes/META-INF
beet-utils.cobertura:init:
[mkdir] Created dir:
/usr/local/src/beet-git/utils/target/report/coverage
beet-utils.lib-resolve:
[ivy:resolve] :: resolving dependencies ::
net.sourceforge.beet#beet-utils;1.4.0_rc1
[ivy:resolve] confs: [base, source, javadoc, compile, test, 1.5,
1.6, default]
[ivy:resolve] found net.sourceforge.beet#beet-core;1.4.0_rc1 in
build.main
[ivy:resolve] [1.4.0_rc1]
net.sourceforge.beet#beet-core;latest.integration
[ivy:resolve] found net.sf.saxon#saxon;8.7 in maven-central
[ivy:resolve] found net.sf.saxon#saxon-dom;8.7 in maven-central
[ivy:resolve] found xerces#xercesImpl;2.8.1 in maven-central
[ivy:resolve] found xml-apis#xml-apis;1.3.03 in maven-central
[ivy:resolve] found com.sun.xml.fastinfoset#FastInfoset;1.2.2 in
maven-central
[ivy:resolve] found stax#stax;1.2.0 in maven-central
[ivy:resolve] found stax#stax-api;1.0.1 in maven-central
[ivy:resolve] found junit#junit;4.4 in maven-central
[ivy:resolve] found xmlunit#xmlunit;1.2 in maven-central
[ivy:resolve] :: resolution report :: resolve 387ms :: artifacts dl 120009ms
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| base | 1 | 0 | 0 | 0 || 1 | 0 |
| source | 1 | 0 | 0 | 0 || 1 | 0 |
| javadoc | 1 | 0 | 0 | 0 || 1 | 0 |
| compile | 8 | 0 | 0 | 0 || 8 | 0 |
| test | 10 | 0 | 0 | 0 || 10 | 0 |
| 1.5 | 8 | 0 | 0 | 0 || 8 | 0 |
| 1.6 | 6 | 0 | 0 | 0 || 6 | 0 |
| default | 6 | 0 | 0 | 0 || 6 | 0 |
---------------------------------------------------------------------
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve] Unable to parse included ivy file ../ivy.xml:
/usr/local/src/beet-git/target/cache/net.sourceforge.beet/ivy.xml (No
such file or directory) in
file:/usr/local/src/beet-git/target/cache/net.sourceforge.beet/ivy.xml
[ivy:resolve] [FAILED ]
net.sourceforge.beet#beet-core;1.4.0_rc1!beet-core.jar: impossible to
get lock for net.sourceforge.beet#beet-core;1.4.0_rc1 (0ms)
[ivy:resolve] [FAILED ]
net.sourceforge.beet#beet-core;1.4.0_rc1!beet-core.jar: impossible to
get lock for net.sourceforge.beet#beet-core;1.4.0_rc1 (0ms)
[ivy:resolve] ==== build.main: tried
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: FAILED DOWNLOADS ::
[ivy:resolve] :: ^ see resolution messages for details ^ ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] ::
net.sourceforge.beet#beet-core;1.4.0_rc1!beet-core.jar
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
======================================================================
Exiting failing project "beet-utils"
======================================================================
======================================================================
Exiting failing project "beet"
======================================================================
BUILD FAILED - at 6/1/10 11:09 AM
/Users/queinnec/.easyant/easyant-cache/org.apache.easyant.plugins/ivy-provisioning/ants/ivy-provisioning-0.1.ant:70:
impossible to resolve dependencies:
resolve failed - see output for details
Total time: 3 minutes 54 seconds
/Users/queinnec/.easyant/easyant-cache/org.apache.easyant.plugins/ivy-provisioning/ants/ivy-provisioning-0.1.ant:70:
impossible to resolve dependencies:
resolve failed - see output for details
/Users/queinnec/.easyant/easyant-cache/org.apache.easyant.plugins/ivy-provisioning/ants/ivy-provisioning-0.1.ant:70:
impossible to resolve dependencies:
resolve failed - see output for details
at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:318)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1212)
at org.apache.easyant.tasks.SubModule.execute(SubModule.java:293)
at org.apache.easyant.tasks.SubModule.execute(SubModule.java:137)
at
org.apache.easyant.core.ant.MetaBuildExecutor.executeTargets(MetaBuildExecutor.java:106)
at org.apache.tools.ant.Project.executeTargets(Project.java:1212)
at org.apache.easyant.core.EasyAntEngine.doBuild(EasyAntEngine.java:555)
at
org.apache.easyant.core.EasyAntEngine.runBuild(EasyAntEngine.java:610)
at org.apache.easyant.core.EasyAntMain.runBuild(EasyAntMain.java:611)
at org.apache.easyant.core.EasyAntMain.startAnt(EasyAntMain.java:169)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: resolve failed - see output for details
at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:251)
... 22 more
--
Pierre Queinnec
CTO - Zenika
http://www.zenika.com
|
|
From: Jason T. <tru...@gm...> - 2010-01-16 03:40:29
|
Got it. I posted some follow-ups: https://sourceforge.net/tracker/index.php?func=detail&aid=2932391&group_id=258926&atid=1127321 https://sourceforge.net/tracker/?func=detail&aid=2932387&group_id=258926&atid=1127323 hopefully this gets you a little further. jt On Fri, Jan 15, 2010 at 6:52 AM, Ben Darfler <be...@lo...> wrote: > I opened a few bugs yesterday they might be due to 3.0 not sure but I > couldn't get past startup > > On Fri, Jan 15, 2010 at 1:59 AM, Jason Trump <tru...@gm...> > wrote: > > Hi Ben, > > > > Beet is tested against both 2.0.8+ and 2.5.x. 3.x support is on the > roadmap > > but I haven't had the opportunity to try it yet. If you *do* happen to > give > > it a shot, could you post a message back and let me know how it works > out? > > > > jt > > > > On Thu, Jan 14, 2010 at 2:21 PM, Ben Darfler <be...@lo...> wrote: > >> > >> Can I use beet 1.4.0 rc1 with spring 3? I see it has spring 2.0.8 as a > >> dependency. > >> > >> -- > >> Software Engineer > >> LocaModa > >> Connecting People & Places > > > > > > > > -- > Software Engineer > LocaModa > Connecting People & Places > |
|
From: Ben D. <be...@lo...> - 2010-01-15 14:52:53
|
I opened a few bugs yesterday they might be due to 3.0 not sure but I couldn't get past startup On Fri, Jan 15, 2010 at 1:59 AM, Jason Trump <tru...@gm...> wrote: > Hi Ben, > > Beet is tested against both 2.0.8+ and 2.5.x. 3.x support is on the roadmap > but I haven't had the opportunity to try it yet. If you *do* happen to give > it a shot, could you post a message back and let me know how it works out? > > jt > > On Thu, Jan 14, 2010 at 2:21 PM, Ben Darfler <be...@lo...> wrote: >> >> Can I use beet 1.4.0 rc1 with spring 3? I see it has spring 2.0.8 as a >> dependency. >> >> -- >> Software Engineer >> LocaModa >> Connecting People & Places > > -- Software Engineer LocaModa Connecting People & Places |
|
From: Jason T. <tru...@gm...> - 2010-01-15 06:59:10
|
Hi Ben, Beet is tested against both 2.0.8+ and 2.5.x. 3.x support is on the roadmap but I haven't had the opportunity to try it yet. If you *do* happen to give it a shot, could you post a message back and let me know how it works out? jt On Thu, Jan 14, 2010 at 2:21 PM, Ben Darfler <be...@lo...> wrote: > Can I use beet 1.4.0 rc1 with spring 3? I see it has spring 2.0.8 as a > dependency. > > -- > Software Engineer > LocaModa > Connecting People & Places > |
|
From: Ben D. <be...@lo...> - 2010-01-15 02:23:26
|
Can I use beet 1.4.0 rc1 with spring 3? I see it has spring 2.0.8 as a dependency. -- Software Engineer LocaModa Connecting People & Places |
|
From: Jason T. <tru...@gm...> - 2010-01-04 01:24:25
|
Details on the project site: http://beet.sourceforge.net And happy new year! jason |
|
From: Jason T. <tru...@gm...> - 2009-07-21 15:29:46
|
Hi José, Thanks for the report. The issue you've encountered only shows up in unit tests -- it is actually a problem integrating beet with Spring's TestContext. It is fixed in source control, and will be included in the forthcoming rc1 (if you're curious, the checkin that resolved the issue is here: http://beet.git.sourceforge.net/git/gitweb.cgi?p=beet;a=commitdiff;h=68101059c70b5a5b6b32737771cfc3fb6dfffbfd ). I've also created an issue for the problem in case anyone else runs into this: https://sourceforge.net/tracker/?func=detail&aid=2824858&group_id=258926&atid=1127321 . On the issue of 1.4 -- as soon as humanly possible :) It's code-complete (assuming no other critical issues discovered in rc1) and is long overdue (I had hoped to be done a month ago). I need to fix some problems with the release build and do a full regression test on the tutorial and example web app. cheers jason 2009/7/21 Rodriguez, José <Jos...@ge...> > Hi, > > I'm having a look at Beet to monitor our applications and I may find a bug. > When I write a JUnit test with annotations, I have the following exception > : > > |
|
From: Rodriguez, J. <Jos...@ge...> - 2009-07-21 08:52:19
|
Hi,
I'm having a look at Beet to monitor our applications and I may find a bug.
When I write a JUnit test with annotations, I have the following exception :
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:201)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:255)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:111)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:148)
at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:97)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [applicationContext-fwk-test-beet.xml]; nested exception is java.lang.ClassCastException: org.springframework.context.support.GenericApplicationContext
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:81)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:42)
at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:173)
at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:197)
... 17 more
Caused by: java.lang.ClassCastException: org.springframework.context.support.GenericApplicationContext
at com.mtgi.analytics.aop.config.TemplateBeanDefinitionParser.doParse(TemplateBeanDefinitionParser.java:94)
at org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.parseInternal(AbstractSingleBeanDefinitionParser.java:84)
at org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:56)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
... 27 more
It's quite easy to reproduce by writing a junit test using :
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.ContextConfiguration;
....
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "/applicationContext-foo.xml"})
public class FooTestCase {
....
Beet seems promising, keep on with the good work !
By the way, when do you plan to release 1.4?
Thanks.
J.
|
|
From: Jason T. <tru...@gm...> - 2009-05-06 21:40:02
|
Hello people of the future, I've activated the beet-users mailing list. Since beet is new and doesn't really have a "community" outside of its developers, we'll use this list for release announcements, user feedback, and any other communication related to the project. Usually anything announced on the list will show up on http://beet.sourceforge.net first; you can check there or subscribe to the RSS feed on the front page as an alternative to the mailing list subscription. Also: first post! -jason |