[JBoss JIRA] Created: (JBPORTAL-1458) Problem with flash content in IE
by St?phane HUDEC (JIRA)
Problem with flash content in IE
--------------------------------
Key: JBPORTAL-1458
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1458
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal CMS
Affects Versions: 2.4.1 SP1
Environment: JBoss 4.0.5.GA
Portal 2.4.2RC1
Reporter: St?phane HUDEC
Assigned To: Sohil Shah
I have to display a flash stored in CMS in a web page.
However, flash objects are not displayed with an url like /portal/content/.../object.swf in IE except if Jboss is in the same machine (access by localhost).
In Firefox it work fine.
ex :
<object >
<embed src="/portal/content/site/accueil/movies/765x344_v2_sansdemarque.swf"
type="application/x-shockwave-flash" width="765" height="334"
quality="high" wmode="transparent" />
</object>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[JBoss JIRA] Created: (JBAS-4459) Hitting Ping-Pong Bug in 4.0.4.GA
by Rahul Sule (JIRA)
Hitting Ping-Pong Bug in 4.0.4.GA
---------------------------------
Key: JBAS-4459
URL: http://jira.jboss.com/jira/browse/JBAS-4459
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: JMS service
Affects Versions: JBossAS-4.0.4.GA
Environment: OS: Windows XP 5.1 (x86)
Reporter: Rahul Sule
Assigned To: Adrian Brock
I was looking the Ping-Pong bug (JBAS-1489) that was fixed sometime back.
It is now fixed but I am hitting the same issue. We were hitting the same issue with Jobss-3.2.7 also where the stack was a bit different. Now with Jboss-3.0.4.GA we are hitting it again and "at org.jboss.mq.Connection$PingTask.run" in stack trace makes me believe that this is same issue surfaced in Jboss-4.0.4.GA.
We have the exception listeners set as suggested in the workaround before.
Following is what I see in web-console page.
====================================================
Version -
Version: 4.0.4GA(build: CVSTag=JBoss_4_0_4_GA date=200605151000)
Version Name: Zion
Built on: May 15 2006
Hardware -
#CPU: 2
OS: Windows XP 5.1 (x86)
JVM Environment -
Free Memory: 810 MB
Max Memory: 1018 MB
Total Memory: 1018 MB
#Threads: 118
JVM Version: 1.4.2_10-b03 (Sun Microsystems Inc.)
JVM Name: Java HotSpot(TM) Server VM
====================================================
Following is the stack I get ono server stuckup
====================================================
2007-05-31 19:32:25,091 INFO [XXXXXXXXXXXXXXXXXXXXXXXXXXXXX] (ExceptionListener Connection@8451076[token=ConnectionToken:ID:20/d24f31e103c633d6b680a78e3e7b7e4c rcvstate=STARTED]) Detected JMS exception.
org.jboss.mq.SpyJMSException: No pong received; - nested throwable: (java.io.IOException: ping timeout.)
at org.jboss.mq.Connection$PingTask.run(Connection.java:1277)
at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: ping timeout.
... 3 more
2007-05-31 19:32:25,091 WARN [XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX cache] (ExceptionListener Connection@1331620[token=ConnectionToken:ID:17/b765cf139828d66b4f12cbe272d4fdf5 rcvstate=STARTED]) ---------- Detected JMS Exception (in AbstractCache) ----------------
org.jboss.mq.SpyJMSException: No pong received; - nested throwable: (java.io.IOException: ping timeout.)
at org.jboss.mq.Connection$PingTask.run(Connection.java:1277)
at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: ping timeout.
... 3 more
2007-05-31 19:32:25,091 INFO [XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX cache] (ExceptionListener Connection@1331620[token=ConnectionToken:ID:17/b765cf139828d66b4f12cbe272d4fdf5 rcvstate=STARTED]) Reconnecting JMS resources...
2007-05-31 19:32:25,091 INFO [XXXXXXXXXXXXXXXXXXXXXXXXXXXXX] (ExceptionListener Connection@33292728[token=ConnectionToken:ID:22/db775d643d19a48d8e1532dfa41bbe7c rcvstate=STARTED]) Detected JMS exception.
org.jboss.mq.SpyJMSException: No pong received; - nested throwable: (java.io.IOException: ping timeout.)
at org.jboss.mq.Connection$PingTask.run(Connection.java:1277)
at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: ping timeout.
... 3 more
2007-05-31 19:34:32,978 INFO [XXXXXXXXXXXXXXXXX.Application] (ExceptionListener Connection@1276382[token=ConnectionToken:ID:19/6de512f89fdd63fec782954f8d783121 rcvstate=STARTED]) Detected JMS exception.
org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable: (java.net.SocketTimeoutException: Read timed out)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:78)
at org.jboss.mq.Connection.asynchFailure(Connection.java:420)
at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:174)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:440)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:372)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.refill(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.read(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readByte(Unknown Source)
at java.io.ObjectInputStream.readByte(Unknown Source)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:317)
... 1 more
2007-05-31 19:34:55,739 WARN [XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX cache] (ExceptionListener Connection@1331620[token=ConnectionToken:ID:17/b765cf139828d66b4f12cbe272d4fdf5 rcvstate=STARTED]) Error while establishing JMS connection.
org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.SocketTimeoutException: Read timed out)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:78)
at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:63)
at org.jboss.mq.Connection.authenticate(Connection.java:1069)
at org.jboss.mq.Connection.<init>(Connection.java:252)
at org.jboss.mq.Connection.<init>(Connection.java:323)
at org.jboss.mq.SpyConnection.<init>(SpyConnection.java:116)
at org.jboss.mq.SpyConnectionFactory.internalCreateConnection(SpyConnectionFactory.java:137)
at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFactory.java:118)
at XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.connectJMS(AbstractCache.java:401)
at XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.reconnectJMS(AbstractCache.java:376)
at XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.onException(AbstractCache.java:720)
at org.jboss.mq.Connection$ExceptionListenerRunnable.run(Connection.java:1320)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:89)
at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source)
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.<init>(Unknown Source)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:304)
... 1 more
2007-05-31 19:34:55,739 WARN [XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX cache] (ExceptionListener Connection@1331620[token=ConnectionToken:ID:17/b765cf139828d66b4f12cbe272d4fdf5 rcvstate=STARTED]) Error while reconnecting to JMS.
org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.SocketTimeoutException: Read timed out)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:78)
at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:63)
at org.jboss.mq.Connection.authenticate(Connection.java:1069)
at org.jboss.mq.Connection.<init>(Connection.java:252)
at org.jboss.mq.Connection.<init>(Connection.java:323)
at org.jboss.mq.SpyConnection.<init>(SpyConnection.java:116)
at org.jboss.mq.SpyConnectionFactory.internalCreateConnection(SpyConnectionFactory.java:137)
at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFactory.java:118)
at XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.connectJMS(AbstractCache.java:401)
at XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.reconnectJMS(AbstractCache.java:376)
at XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.onException(AbstractCache.java:720)
at org.jboss.mq.Connection$ExceptionListenerRunnable.run(Connection.java:1320)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:89)
at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source)
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.<init>(Unknown Source)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:304)
... 1 more
2007-05-31 19:34:55,739 WARN [XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX cache] (ExceptionListener Connection@1331620[token=ConnectionToken:ID:17/b765cf139828d66b4f12cbe272d4fdf5 rcvstate=STARTED]) ---------- End of handling JMS exception (in AbstractCache) ----------------
2007-05-31 19:35:03,775 ERROR [XXXXXXXXXXXXXXXXXXApplication] (ExceptionListener Connection@33292728[token=ConnectionToken:ID:22/db775d643d19a48d8e1532dfa41bbe7c rcvstate=STARTED]) Got JMSException from JMS provider while closing TS reply receiver: org.jboss.mq.SpyJMSException: Cannot unsubscribe to this destination; - nested throwable: (java.io.IOException: Client is not connected) Vendor specific error code: null Linked exception.
org.jboss.mq.SpyJMSException: Cannot unsubscribe to this destination; - nested throwable: (java.io.IOException: Client is not connected)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:78)
at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:63)
at org.jboss.mq.Connection.removeConsumer(Connection.java:899)
at org.jboss.mq.SpySession.removeConsumer(SpySession.java:968)
at org.jboss.mq.SpyMessageConsumer.close(SpyMessageConsumer.java:563)
at XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.disconnectJMS(Application.java:1191)
at XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.onException(Application.java:3959)
at org.jboss.mq.Connection$ExceptionListenerRunnable.run(Connection.java:1320)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Client is not connected
at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:265)
at org.jboss.mq.il.uil2.SocketManager.sendMessage(SocketManager.java:221)
at org.jboss.mq.il.uil2.UILServerIL.unsubscribe(UILServerIL.java:551)
at org.jboss.mq.Connection.removeConsumer(Connection.java:893)
... 6 more
2007-05-31 19:35:03,775 WARN [org.jboss.mq.Connection] (UIL2.SocketManager.ReadTask#9 client=3.187.30.55:8093) Connection failure, already in the exception listener
org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable: (java.net.SocketTimeoutException: Read timed out)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:78)
at org.jboss.mq.Connection.asynchFailure(Connection.java:420)
at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:174)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:440)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:372)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.refill(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.read(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readByte(Unknown Source)
at java.io.ObjectInputStream.readByte(Unknown Source)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:317)
... 1 more
====================================================
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[JBoss JIRA] Created: (JBPM-975) jbmp-3.2.xsd: start-state doesn't support a timer anymore
by Roland Huss (JIRA)
jbmp-3.2.xsd: start-state doesn't support a timer anymore
---------------------------------------------------------
Key: JBPM-975
URL: http://jira.jboss.com/jira/browse/JBPM-975
Project: JBoss jBPM
Issue Type: Bug
Components: Core Engine
Affects Versions: jBPM jPDL 3.2
Reporter: Roland Huss
Assigned To: Tom Baeyens
Priority: Critical
The XSD Schema jbpm-3.2.xsd doesn't support a <timer> subelement anymore (in contrast to jbpm-3.1.xsd):
<xs:element name="start-state">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="description" />
<xs:element ref="task"/>
<xs:element ref="transition"/>
<xs:element ref="event"/>
<xs:element ref="exception-handler"/>
</xs:choice>
<xs:attribute name="name" type="xs:string"/>
</xs:complexType>
</xs:element>
Adding a <xs:element ref="timer"/> should fix this (except if this should be intended behaviour but I can hardly see the reason for why a timer shouldn't be allowed during a start-state)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[JBoss JIRA] Created: (JBRULES-532) Query feature doesnt seem to work if there is more than one query.
by Sridhar Chandrasekharan (JIRA)
Query feature doesnt seem to work if there is more than one query.
------------------------------------------------------------------
Key: JBRULES-532
URL: http://jira.jboss.com/jira/browse/JBRULES-532
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Sridhar Chandrasekharan
Assigned To: Mark Proctor
Consider the following:-
*******************************************************************************
1) Foo.java
package com.foo;
public class Foo {
private int a;
private int b;
public Foo(int a, int b) {
super();
this.a = a;
this.b = b;
}
public boolean test()
{
return (a > b);
}
public int getA() {
return a;
}
public int getB() {
return b;
}
}
*******************************************************************************************
2) FooTest.java
package com.foo;
import java.io.InputStreamReader;
import java.io.*;
import java.util.*;
import org.drools.RuleBase;
import org.drools.RuleBaseFactory;
import org.drools.WorkingMemory;
import org.drools.compiler.PackageBuilder;
import org.drools.rule.Package;
import org.drools.QueryResults;
import org.drools.QueryResult;
public class FooTest {
/**
* This is a sample file to launch a rule package from a rule source file.
*/
public static final void main(String[] args) {
try {
//load up the rulebase
RuleBase ruleBase = readRule();
WorkingMemory workingMemory = ruleBase.newWorkingMemory();
//go !
workingMemory.fireAllRules();
QueryResults results = workingMemory.getQueryResults( "Foo query" );
if(results == null)
{
System.out.println("Result is null");
return;
}
System.out.println( "we have " + results.size() );
for ( Iterator it = results.iterator(); it.hasNext(); ) {
QueryResult result = ( QueryResult ) it.next();
Foo foo = ( Foo ) result.get( "foo" );
System.out.println( "A="+foo.getA() + " B=" + foo.getB());
}
} catch (Throwable t) {
t.printStackTrace();
}
}
/**
* Please note that this is the "low level" rule assembly API.
*/
private static RuleBase readRule() throws Exception {
//read in the source
Reader source = new InputStreamReader( FooTest.class.getResourceAsStream( "/Foo.drl" ) );
//optionally read in the DSL (if you are using it).
//Reader dsl = new InputStreamReader( DroolsTest.class.getResourceAsStream( "/mylang.dsl" ) );
//Use package builder to build up a rule package.
//An alternative lower level class called "DrlParser" can also be used...
PackageBuilder builder = new PackageBuilder();
//this wil parse and compile in one step
//NOTE: There are 2 methods here, the one argument one is for normal DRL.
builder.addPackageFromDrl( source );
//Use the following instead of above if you are using a DSL:
//builder.addPackageFromDrl( source, dsl );
//get the compiled package (which is serializable)
Package pkg = builder.getPackage();
//add the package to a rulebase (deploy the rule package).
RuleBase ruleBase = RuleBaseFactory.newRuleBase();
ruleBase.addPackage( pkg );
return ruleBase;
}
}
**************************************************
3) Foo.drl
#created on: Oct 9, 2006
package com.foo
rule "Initialization rule"
when
#conditions
then
assert(new Foo(1,1));
assert(new Foo(2,1));
assert(new Foo(2,3));
assert(new Foo(3,2));
assert(new Foo(3,4));
assert(new Foo(4,3));
end
query "Foo query"
foo : Foo()
end
****************************************
The output is as follows:-
we have 6
A=1 B=1
A=2 B=1
A=2 B=3
A=3 B=2
A=3 B=4
A=4 B=3
*****************************************
Now add another query to the Foo.drl file
query "Bar query"
foo : Foo()
end
and the output is
Result is null
Adding a second query caused the first query to stop working properly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[JBoss JIRA] Created: (JBRULES-372) QueryResult.get fires ClassCastException when using the string argument
by Giovanni Cuccu (JIRA)
QueryResult.get fires ClassCastException when using the string argument
-----------------------------------------------------------------------
Key: JBRULES-372
URL: http://jira.jboss.com/jira/browse/JBRULES-372
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Environment: JBoss Rules 3.0.1 and JBoss Rules as downloaded from svn trunk as of 12/07/06
Reporter: Giovanni Cuccu
Assigned To: Mark Proctor
here is the simple test case:
package simpletest;
public class AssertedObject {
private String value;
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public AssertedObject(String value) {
// TODO Auto-generated constructor stub
this.value = value;
}
}
package simpletest;
import simpletest.AssertedObject;
rule rule1
when
then
assert( new AssertedObject( "value1") );
assert( new AssertedObject( "value2") );
end
query "assertedobjquery"
assertedobj : AssertedObject( value=="value1" )
end
package simpletest;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import mit.rules.test.Prestazione;
import mit.rules.test.StrutturaErogante;
import mit.rules.test.TempiAttesa;
import mit.rules.test.TestRules;
import org.drools.QueryResult;
import org.drools.QueryResults;
import org.drools.RuleBase;
import org.drools.RuleBaseFactory;
import org.drools.WorkingMemory;
import org.drools.audit.WorkingMemoryFileLogger;
import org.drools.compiler.PackageBuilder;
public class TestQuery {
public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
final PackageBuilder builder = new PackageBuilder();
builder.addPackageFromDrl( new InputStreamReader( TestQuery.class.getResourceAsStream( "testquery.drl" ) ) );
final RuleBase ruleBase = RuleBaseFactory.newRuleBase();
ruleBase.addPackage( builder.getPackage() );
final WorkingMemory workingMemory = ruleBase.newWorkingMemory();
fireRules(workingMemory);
}
public static void fireRules(WorkingMemory workingMemory) {
final WorkingMemoryFileLogger logger = new WorkingMemoryFileLogger( workingMemory );
logger.setFileName( "log/testquery" );
workingMemory.fireAllRules();
QueryResults results = workingMemory.getQueryResults( "assertedobjquery" );
if (results==null || !results.iterator().hasNext()) {
System.err.println("Empty list");
} else {
for ( Iterator it = results.iterator(); it.hasNext(); ) {
QueryResult result = ( QueryResult )it.next();;
AssertedObject assertedObject=(AssertedObject)result.get( "assertedobj" );
System.out.println("AssertedObject with value " + assertedObject.getValue());
}
}
logger.writeToDisk();
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months