[seam/rest] b760ed: SEAMREST-32
by noreply@github.com
Branch: refs/heads/master
Home: https://github.com/seam/rest
Commit: b760ede00f6098414ad128b719587ae2bcfa95ba
https://github.com/seam/rest/commit/b760ede00f6098414ad128b719587ae2bcfa95ba
Author: Jozef Hartinger <jharting(a)redhat.com>
Date: 2011-02-16 (Wed, 16 Feb 2011)
Changed paths:
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/example/tasks/statistics/ErrorInterceptor.java
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/example/tasks/statistics/ReportResultEvent.java
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/example/tasks/statistics/SeamTasksAction.java
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/example/tasks/statistics/SeamTasksService.java
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/example/tasks/statistics/Table.java
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/example/tasks/statistics/analyzers/HistoryAnalyzer.java
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/example/tasks/statistics/analyzers/LexicalAnalyzer.java
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/example/tasks/statistics/analyzers/MapEntryValueComparator.java
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/example/tasks/statistics/analyzers/SimpleAnalyzer.java
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/example/tasks/statistics/analyzers/TodoRename.java
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/example/tasks/statistics/entity/Category.java
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/example/tasks/statistics/entity/Task.java
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/example/tasks/statistics/geo/GeonamesService.java
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/example/tasks/statistics/geo/SearchAction.java
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/example/tasks/statistics/geo/SearchResult.java
R examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/ErrorInterceptor.java
R examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/ReportResultEvent.java
R examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/SeamTasksAction.java
R examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/SeamTasksService.java
R examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/Table.java
R examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/analyzers/HistoryAnalyzer.java
R examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/analyzers/LexicalAnalyzer.java
R examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/analyzers/MapEntryValueComparator.java
R examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/analyzers/SimpleAnalyzer.java
R examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/analyzers/TodoRename.java
R examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/entity/Category.java
R examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/entity/Task.java
R examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/geo/GeonamesService.java
R examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/geo/SearchAction.java
R examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/geo/SearchResult.java
Log Message:
-----------
SEAMREST-32
13 years, 10 months
[seam/rest] d42186: SEAMREST-21
by noreply@github.com
Branch: refs/heads/master
Home: https://github.com/seam/rest
Commit: d421869c383b2d1271918341148be25d2d043051
https://github.com/seam/rest/commit/d421869c383b2d1271918341148be25d2d043051
Author: Jozef Hartinger <jharting(a)redhat.com>
Date: 2011-02-16 (Wed, 16 Feb 2011)
Changed paths:
M examples/tasks-statistics/pom.xml
A examples/tasks-statistics/src/main/glassfish/WEB-INF/web.xml
M examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/ErrorInterceptor.java
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/SeamTasksAction.java
R examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/SeamTasksClient.java
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/geo/GeonamesService.java
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/geo/SearchAction.java
A examples/tasks-statistics/src/main/java/org/jboss/seam/rest/tasks/statistics/geo/SearchResult.java
R examples/tasks-statistics/src/main/resources/META-INF/beans.xml
A examples/tasks-statistics/src/main/webapp/WEB-INF/beans.xml
M examples/tasks-statistics/src/main/webapp/main.xhtml
A examples/tasks-statistics/src/main/webapp/search.xhtml
M examples/tasks-statistics/src/main/webapp/style.css
M pom.xml
Log Message:
-----------
SEAMREST-21
13 years, 10 months
[seam/rest] 0ce16c: Added null check
by noreply@github.com
Branch: refs/heads/master
Home: https://github.com/seam/rest
Commit: 0ce16c364bb92e2450446565a4c30db63fa6ceb5
https://github.com/seam/rest/commit/0ce16c364bb92e2450446565a4c30db63fa6ceb5
Author: Jozef Hartinger <jharting(a)redhat.com>
Date: 2011-02-14 (Mon, 14 Feb 2011)
Changed paths:
M impl/src/main/java/org/jboss/seam/rest/SeamRestStartup.java
Log Message:
-----------
Added null check
Commit: 2ebdf1f81f7c7e156f093a8926f2190c3898d566
https://github.com/seam/rest/commit/2ebdf1f81f7c7e156f093a8926f2190c3898d566
Author: Jozef Hartinger <jharting(a)redhat.com>
Date: 2011-02-14 (Mon, 14 Feb 2011)
Changed paths:
M impl/src/main/java/org/jboss/seam/rest/client/DefaultClientExecutorProducer.java
M impl/src/main/java/org/jboss/seam/rest/client/RestClientProducer.java
Log Message:
-----------
SEAMREST-27 Register ClientErrorInterceptors automatically
Commit: 85e7fbb05f9878df1339abe536faf07822e77c28
https://github.com/seam/rest/commit/85e7fbb05f9878df1339abe536faf07822e77c28
Author: Shane Bryzak <sbryzak(a)gmail.com>
Date: 2011-02-16 (Wed, 16 Feb 2011)
Changed paths:
M dist/src/main/assembly/assembly.xml
A dist/src/main/assembly/license.txt
A dist/src/main/assembly/notice.txt
A dist/src/main/assembly/readme.txt
Log Message:
-----------
convert to asl
Commit: 648672e9cf22af08d6e25cf3062d0184ec92a0df
https://github.com/seam/rest/commit/648672e9cf22af08d6e25cf3062d0184ec92a0df
Author: Shane Bryzak <sbryzak(a)gmail.com>
Date: 2011-02-16 (Wed, 16 Feb 2011)
Changed paths:
R lgpl.txt
Log Message:
-----------
removed lgpl.txt
Commit: 027ef3af51f12117ffe1cd7aab0b0a618806e861
https://github.com/seam/rest/commit/027ef3af51f12117ffe1cd7aab0b0a618806e861
Author: Shane Bryzak <sbryzak(a)gmail.com>
Date: 2011-02-16 (Wed, 16 Feb 2011)
Changed paths:
M docs/reference/pom.xml
R docs/reference/src/main/docbook/en-US/client.xml
R docs/reference/src/main/docbook/en-US/dependencies.xml
R docs/reference/src/main/docbook/en-US/exception-mapping.xml
R docs/reference/src/main/docbook/en-US/installation.xml
M docs/reference/src/main/docbook/en-US/master.xml
R docs/reference/src/main/docbook/en-US/preface.xml
A docs/reference/src/main/docbook/en-US/rest-client.xml
A docs/reference/src/main/docbook/en-US/rest-dependencies.xml
A docs/reference/src/main/docbook/en-US/rest-exception-mapping.xml
A docs/reference/src/main/docbook/en-US/rest-installation.xml
A docs/reference/src/main/docbook/en-US/rest-preface.xml
A docs/reference/src/main/docbook/en-US/rest-templating.xml
A docs/reference/src/main/docbook/en-US/rest-validation.xml
R docs/reference/src/main/docbook/en-US/templating.xml
R docs/reference/src/main/docbook/en-US/validation.xml
Log Message:
-----------
restructure docs for bundled build
Commit: 43d4c03181d705b7c91cf102805cf40c6e073d4c
https://github.com/seam/rest/commit/43d4c03181d705b7c91cf102805cf40c6e073d4c
Author: Jozef Hartinger <jharting(a)redhat.com>
Date: 2011-02-16 (Wed, 16 Feb 2011)
Log Message:
-----------
Merge branch 'master' of github.com:seam/rest
13 years, 10 months
Seam SVN: r14053 - in branches/enterprise/JBPAPP_5_0/src/test/integration/src/org/jboss/seam/test/integration: bpm and 1 other directory.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2011-02-16 10:49:20 -0500 (Wed, 16 Feb 2011)
New Revision: 14053
Modified:
branches/enterprise/JBPAPP_5_0/src/test/integration/src/org/jboss/seam/test/integration/BusinessProcessTest.java
branches/enterprise/JBPAPP_5_0/src/test/integration/src/org/jboss/seam/test/integration/bpm/SeamExpressionEvaluatorTestController.java
Log:
JBPAPP-5517 - asynchronous integration test in jbpm-jpdl process definition
Modified: branches/enterprise/JBPAPP_5_0/src/test/integration/src/org/jboss/seam/test/integration/BusinessProcessTest.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/test/integration/src/org/jboss/seam/test/integration/BusinessProcessTest.java 2011-02-16 15:47:09 UTC (rev 14052)
+++ branches/enterprise/JBPAPP_5_0/src/test/integration/src/org/jboss/seam/test/integration/BusinessProcessTest.java 2011-02-16 15:49:20 UTC (rev 14053)
@@ -1,6 +1,11 @@
package org.jboss.seam.test.integration;
+import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+import org.jboss.seam.annotations.TransactionPropagationType;
+import org.jboss.seam.annotations.Transactional;
+import org.jboss.seam.annotations.async.Asynchronous;
import org.jboss.seam.annotations.bpm.CreateProcess;
import org.jboss.seam.mock.SeamTest;
import org.testng.annotations.Test;
@@ -46,7 +51,7 @@
}.run();
}
- @Test
+ @Test (dependsOnMethods = "asyncExceptionHandling" )
public void exceptionHandling() throws Exception
{
new FacesRequest(){
@@ -66,6 +71,19 @@
}
}.run();
}
+
+ @Test
+ public void asyncExceptionHandling() throws Exception
+ {
+ new FacesRequest(){
+
+ @Override
+ protected void invokeApplication() throws Exception
+ {
+ invokeAction("#{bpmTest.startAsyncExceptionPageflow}");
+ }
+ }.run();
+ }
@Name("bpmTest")
@@ -82,5 +100,23 @@
public void startExceptionPageflow()
{
}
+
+ @CreateProcess(definition="TestProcess6" )
+ public void startAsyncExceptionPageflow()
+ {
+ }
}
+
+ @Name("asyncEcho")
+ //(a)Scope(ScopeType.EVENT)
+ public class AsynchEcho {
+
+ @Asynchronous //(a)Transactional(TransactionPropagationType.REQUIRED)
+ public void asyncExceptionThrowing()
+ {
+ System.out.println("calling async method ********************");
+ //throw new RuntimeException("Exception is thrown - test handling");
+ }
+ }
+
}
Modified: branches/enterprise/JBPAPP_5_0/src/test/integration/src/org/jboss/seam/test/integration/bpm/SeamExpressionEvaluatorTestController.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/test/integration/src/org/jboss/seam/test/integration/bpm/SeamExpressionEvaluatorTestController.java 2011-02-16 15:47:09 UTC (rev 14052)
+++ branches/enterprise/JBPAPP_5_0/src/test/integration/src/org/jboss/seam/test/integration/bpm/SeamExpressionEvaluatorTestController.java 2011-02-16 15:49:20 UTC (rev 14053)
@@ -3,6 +3,10 @@
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Factory;
import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+import org.jboss.seam.annotations.TransactionPropagationType;
+import org.jboss.seam.annotations.Transactional;
+import org.jboss.seam.annotations.async.Asynchronous;
import org.jboss.seam.annotations.bpm.CreateProcess;
@Name("seamExpressionEvaluatorTestController")
@@ -59,7 +63,13 @@
public void exceptionThrowing()
{
throw new RuntimeException("Exception is thrown - test handling");
+ }
+
+ @Asynchronous //(a)Transactional(TransactionPropagationType.REQUIRED)
+ public void asyncExceptionThrowing()
+ {
+ System.out.println("calling async method ********************");
+ //throw new RuntimeException("Exception is thrown - test handling");
}
-
}
\ No newline at end of file
13 years, 10 months
Seam SVN: r14052 - branches/enterprise/JBPAPP_5_0/src/test/integration/resources.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2011-02-16 10:47:09 -0500 (Wed, 16 Feb 2011)
New Revision: 14052
Added:
branches/enterprise/JBPAPP_5_0/src/test/integration/resources/testProcess6.jpdl.xml
Log:
JBPAPP-5517 - forgot to add jbpm definition for integration test
Added: branches/enterprise/JBPAPP_5_0/src/test/integration/resources/testProcess6.jpdl.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/test/integration/resources/testProcess6.jpdl.xml (rev 0)
+++ branches/enterprise/JBPAPP_5_0/src/test/integration/resources/testProcess6.jpdl.xml 2011-02-16 15:47:09 UTC (rev 14052)
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+
+<process-definition
+ name="TestProcess6"
+ xmlns="urn:jbpm.org:jpdl-3.2"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:jbpm.org:jpdl-3.2 http://jbpm.org/xsd/jpdl-3.2.xsd"
+ >
+
+ <start-state name="start">
+ <transition to="process"/>
+ </start-state>
+
+ <task-node name="process" >
+ <transition name="shipped" to="problem">
+ <action expression="#{seamExpressionEvaluatorTestController.log}"/>
+ </transition>
+ <transition name="cancel" to="cancelled"/>
+ </task-node>
+
+ <state name="problem">
+ <event type="node-enter">
+ <action expression="#{seamExpressionEvaluatorTestController.asyncExceptionThrowing}" />
+ </event>
+ <transition to="complete" />
+ </state>
+
+ <end-state name="complete"/>
+ <end-state name="cancelled"/>
+
+</process-definition>
13 years, 10 months
Seam SVN: r14051 - in branches/enterprise/JBPAPP_5_0/src: main/org/jboss/seam/navigation and 2 other directories.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2011-02-16 10:45:42 -0500 (Wed, 16 Feb 2011)
New Revision: 14051
Modified:
branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/bpm/BusinessProcessInterceptor.java
branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/bpm/ProcessInstance.java
branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/navigation/TaskControl.java
branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/pageflow/Page.java
branches/enterprise/JBPAPP_5_0/src/test/integration/resources/WEB-INF/components.xml
Log:
JBPAPP-5517 - integration test for exception handling in jbpm EL expression and cleaning log messages if there is re-throw exceptions
Modified: branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/bpm/BusinessProcessInterceptor.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/bpm/BusinessProcessInterceptor.java 2011-02-16 12:51:22 UTC (rev 14050)
+++ branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/bpm/BusinessProcessInterceptor.java 2011-02-16 15:45:42 UTC (rev 14051)
@@ -147,7 +147,6 @@
BusinessProcess.instance().endTask( method.getAnnotation(EndTask.class).transition() );
}
catch (Exception e) {
- //log.error("Closing JBPM context because exception(s) was thrown!", e);
throw new RuntimeException(e);
}
finally
@@ -166,7 +165,6 @@
BusinessProcess.instance().transition(transitionName);
}
catch (Exception e) {
- //log.error("Closing JBPM context because exception(s) was thrown!", e);
throw new RuntimeException(e);
}
finally
Modified: branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/bpm/ProcessInstance.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/bpm/ProcessInstance.java 2011-02-16 12:51:22 UTC (rev 14050)
+++ branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/bpm/ProcessInstance.java 2011-02-16 15:45:42 UTC (rev 14051)
@@ -46,7 +46,7 @@
if (processId!=null)
{
//TODO: do we need to cache this??
- return ManagedJbpmContext.instance().getProcessInstanceForUpdate(processId);
+ return ManagedJbpmContext.instance().getProcessInstance(processId);
}
else
{
Modified: branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/navigation/TaskControl.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/navigation/TaskControl.java 2011-02-16 12:51:22 UTC (rev 14050)
+++ branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/navigation/TaskControl.java 2011-02-16 15:45:42 UTC (rev 14051)
@@ -31,7 +31,6 @@
BusinessProcess.instance().endTask(transition == null ? null : transition.getValue());
}
catch (Exception e) {
- log.debug("Closing JBPM context because exception(s) was thrown!");
throw new RuntimeException(e);
}
finally
Modified: branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/pageflow/Page.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/pageflow/Page.java 2011-02-16 12:51:22 UTC (rev 14050)
+++ branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/pageflow/Page.java 2011-02-16 15:45:42 UTC (rev 14051)
@@ -110,7 +110,6 @@
BusinessProcess.instance().endTask(transition);
}
catch (Exception e) {
- log.debug("Closing JBPM context because exception(s) was thrown!");
throw new RuntimeException(e);
}
finally
Modified: branches/enterprise/JBPAPP_5_0/src/test/integration/resources/WEB-INF/components.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/test/integration/resources/WEB-INF/components.xml 2011-02-16 12:51:22 UTC (rev 14050)
+++ branches/enterprise/JBPAPP_5_0/src/test/integration/resources/WEB-INF/components.xml 2011-02-16 15:45:42 UTC (rev 14051)
@@ -38,6 +38,8 @@
<value>testProcess2.jpdl.xml</value>
<value>testProcess3.jpdl.xml</value>
<value>testProcess4.jpdl.xml</value>
+ <value>testProcess5.jpdl.xml</value>
+ <value>testProcess6.jpdl.xml</value>
</bpm:process-definitions>
</bpm:jbpm>
13 years, 10 months
Seam SVN: r14050 - branches/community/Seam_2_2/ui/src/main/java/org/jboss/seam/ui/component.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2011-02-16 07:51:22 -0500 (Wed, 16 Feb 2011)
New Revision: 14050
Modified:
branches/community/Seam_2_2/ui/src/main/java/org/jboss/seam/ui/component/UISeamCommandBase.java
Log:
JBSEAM-4780 - applied provided patch
Modified: branches/community/Seam_2_2/ui/src/main/java/org/jboss/seam/ui/component/UISeamCommandBase.java
===================================================================
--- branches/community/Seam_2_2/ui/src/main/java/org/jboss/seam/ui/component/UISeamCommandBase.java 2011-02-16 11:44:05 UTC (rev 14049)
+++ branches/community/Seam_2_2/ui/src/main/java/org/jboss/seam/ui/component/UISeamCommandBase.java 2011-02-16 12:51:22 UTC (rev 14050)
@@ -78,7 +78,7 @@
url.addParameter(uiAction);
}
- PropagationType propagationType = PropagationType.valueOf(getPropagation());
+ PropagationType propagationType = PropagationType.valueOf(getPropagation().toUpperCase());
if (propagationType == PropagationType.DEFAULT || propagationType == PropagationType.JOIN ||
propagationType == PropagationType.NESTED || propagationType == PropagationType.END)
{
13 years, 10 months