[JBoss JIRA] Created: (JBREM-1122) Checking out JBREM from SVN casuses test case compilation error
by Radim Chlad (JIRA)
Checking out JBREM from SVN casuses test case compilation error
---------------------------------------------------------------
Key: JBREM-1122
URL: https://jira.jboss.org/jira/browse/JBREM-1122
Project: JBoss Remoting
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 2.2.2.SP12
Environment: Widows XP + eclipse + SVN checkout of branch
JBossRemoting-2.2.2.SP11_JBREM-1112
Reporter: Radim Chlad
Priority: Trivial
Checking out JBREM branch JBossRemoting-2.2.2.SP11_JBREM-1112
from SVN - casuses 2 test case compilation errors
Client.USE_ALL_PARAMS cannot be resolved
ConnectionValidatorDisconnectTimeoutTestCase.java
JBossRemoting-2.2.2.SP11_JBREM-1112/src/tests/org/jboss/test/remoting/connection
line 228 and line 271
probably last version of org.jboss.remoting.Client class is not commited to SVN
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years
[JBoss JIRA] Created: (JBPORTAL-2382) Admin portlet exception/timeout during load testing
by Agustin Barriada (JIRA)
Admin portlet exception/timeout during load testing
---------------------------------------------------
Key: JBPORTAL-2382
URL: https://jira.jboss.org/jira/browse/JBPORTAL-2382
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal Core Admin
Affects Versions: 2.7.2 Final
Environment: I have been testing in Windows and SQL Server but it doesn't matter the problem should be in the code. I have just download the latest version jboss-portal-2.7.2-bundled
Reporter: Agustin Barriada
Priority: Optional
When you go to administer users it seems that the admin portlet load all the dashboards nodes for all users in the JBoss Portal database.
I could manage to administer 10000 users in the database but now, with more than 17000 users loaded, it is impossible to open the admin portlet to continue loading users.
We want to test the system with 200000 users registered and randomly select 800 concurrent users navigating inside the portal.
Could you please fix this issue?. I think it is the same as when you manage the search of users. You can select up to 100 user showed per page.
Why do you need to load all the dashboards if you do not know what I want to administer?.
If I want to change something in the user's dashboard then the admin portlet should request to search this particular dashboard to edit.
The error is produced after executing these queries
select children0_.PARENT_KEY as PARENT4_1_, children0_.PK as PK1_, children0_.NAME as NAME1_, children0_.PK as PK64_0_,
children0_.PATH as PATH64_0_, children0_.NAME as NAME64_0_, children0_.PARENT_KEY as PARENT4_64_0_
from JBP_OBJECT_NODE children0_
where children0_.PARENT_KEY= 8
PARENT4_1_ PK1_ NAME1_ PK64_0_ PATH64_0_ NAME64_0_ PARENT4_64_0_
8 39 admin 39 dashboard:admin admin 8
8 280 usr_0001 280 dashboard:usr_0001 usr_0001 8
8 296 usr_0002 296 dashboard:usr_0002 usr_0002 8
8 312 usr_0003 312 dashboard:usr_0003 usr_0003 8
8 328 usr_0004 328 dashboard:usr_0004 usr_0004 8
8 344 usr_0005 344 dashboard:usr_0005 usr_0005 8
...
select portalobje0_.PK as PK65_0_, portalobje0_.LISTENER as LISTENER65_0_, portalobje0_4_.INSTANCE_REF as INSTANCE2_73_0_,
case
when portalobje0_1_.PK is not null then 1
when portalobje0_2_.PK is not null then 2
when portalobje0_3_.PK is not null then 3
when portalobje0_4_.PK is not null then 4
when portalobje0_.PK is not null then 0 end as clazz_0_,
declaredpr1_.OBJECT_KEY as OBJECT1_2_, declaredpr1_.jbp_VALUE as jbp2_2_, declaredpr1_.NAME as NAME2_, modes2_.PK as PK3_, modes2_.name as name3_, windowstat3_.PK as PK4_, windowstat3_.name as name4_
from JBP_PORTAL_OBJECT portalobje0_
left outer join JBP_CONTEXT portalobje0_1_ on portalobje0_.PK=portalobje0_1_.PK
left outer join JBP_PORTAL portalobje0_2_ on portalobje0_.PK=portalobje0_2_.PK
left outer join JBP_PAGE portalobje0_3_ on portalobje0_.PK=portalobje0_3_.PK
left outer join JBP_WINDOW portalobje0_4_ on portalobje0_.PK=portalobje0_4_.PK
left outer join JBP_PORTAL_OBJECT_PROPS declaredpr1_ on portalobje0_.PK=declaredpr1_.OBJECT_KEY
left outer join JBP_PORTAL_MODE modes2_ on portalobje0_.PK=modes2_.PK
left outer join JBP_PORTAL_WINDOW_STATE windowstat3_ on portalobje0_.PK=windowstat3_.PK
where portalobje0_.PK= 280
And all the PK from the previous query (296, 312, 328, and so on) until timeout. Obviously it is not a solution (could be a work around) to increase the timeout
HTTP Status 500 -
________________________________________
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The transaction is not active!
org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:276)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years
[JBoss JIRA] Created: (JBPORTAL-2353) property to connect a TLS mail server
by Luca Stancapiano (JIRA)
property to connect a TLS mail server
-------------------------------------
Key: JBPORTAL-2353
URL: https://jira.jboss.org/jira/browse/JBPORTAL-2353
Project: JBoss Portal
Issue Type: Patch
Security Level: Public (Everyone can see)
Affects Versions: 2.7.2 Final
Environment: JBoss Portal 2.7.2, gmail server
Reporter: Luca Stancapiano
Fix For: 2.8 Final
I try to connect to smtp.gmail.com through mail service of JBoss Portal declared into META-INF/jboss-service.xml :
<mbean code="org.jboss.portal.core.impl.mail.MailModuleImpl" name="portal:service=Module,type=Mail" xmbean-dd=""
xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
<xmbean/>
<depends>jboss:service=Mail</depends>
<depends>portal:service=Module,type=IdentityServiceController</depends>
<attribute name="QueueCapacity">-1</attribute>
<attribute name="Gateway">localhost</attribute>
<attribute name="SmtpUser"></attribute>
<attribute name="SmtpPassword"></attribute>
<attribute name="JavaMailDebugEnabled">false</attribute>
<attribute name="SMTPConnectionTimeout">100000</attribute>
<attribute name="SMTPTimeout">10000</attribute>
<attribute name="JNDIName">java:portal/MailModule</attribute>
</mbean>
I need to configure a javamail property called mail.smtp.starttls.enable
This property, if true, lets to connect to a TLS mail server as google mail server
In org.jboss.portal.core.impl.mail.MailModuleImpl class we can to add that property so:
/** SMTP Start TLS enable. */
private boolean SMTPStarttlsEnable = false;
public boolean getSMTPStarttlsEnable()
{
return SMTPStarttlsEnable;
}
public void setSMTPStarttlsEnable(boolean SMTPStarttlsEnable)
{
this.SMTPStarttlsEnable = SMTPStarttlsEnable;
}
and into startService() method we can to add this:
properties.setProperty("mail.smtp.starttls.enable", "" + SMTPStarttlsEnable);
in jboss-service.xml we can to add the property to false as default:
<mbean code="org.jboss.portal.core.impl.mail.MailModuleImpl" name="portal:service=Module,type=Mail" xmbean-dd=""
xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
<xmbean/>
<depends>jboss:service=Mail</depends>
<depends>portal:service=Module,type=IdentityServiceController</depends>
<attribute name="QueueCapacity">-1</attribute>
<attribute name="Gateway">localhost</attribute>
<attribute name="SmtpUser"></attribute>
<attribute name="SmtpPassword"></attribute>
<attribute name="JavaMailDebugEnabled">false</attribute>
<attribute name="SMTPConnectionTimeout">100000</attribute>
<attribute name="SMTPTimeout">10000</attribute>
<attribute name="JNDIName">java:portal/MailModule</attribute>
---------- new ---------
<attribute name="SMTPStarttlsEnable">false</attribute>
---------------------------
</mbean>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years
[JBoss JIRA] Created: (JBRULES-2085) Modify raises NPE when using "from"
by Edson Tirelli (JIRA)
Modify raises NPE when using "from"
-----------------------------------
Key: JBRULES-2085
URL: https://jira.jboss.org/jira/browse/JBRULES-2085
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-core
Affects Versions: 5.0.0.CR1
Reporter: Edson Tirelli
Assignee: Edson Tirelli
Fix For: 5.0.0.GA
The attached file should generate everyting into a subdirectory ./movie and compile and execute.
You'll have to modify the classpath, though.
Regards
-W
# Shell this file to create subdir movie with *.java, Movie.drl, database.xml
#
# you'll have to modify the classpath setting - see below
#
mkdir movie || true
cat <<'TheEnd' >movie/Main.java
package movie;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.util.Collection;
import javax.xml.bind.JAXBContext;
import org.drools.KnowledgeBase;
import org.drools.KnowledgeBaseFactory;
import org.drools.builder.KnowledgeBuilder;
import org.drools.builder.KnowledgeBuilderError;
import org.drools.builder.KnowledgeBuilderFactory;
import org.drools.builder.ResourceType;
import org.drools.definition.KnowledgePackage;
import org.drools.io.ResourceFactory;
import org.drools.runtime.StatefulKnowledgeSession;
import javax.xml.bind.Unmarshaller;
public class Main {
private StatefulKnowledgeSession session;
public Main(){
}
public void init() throws Exception {
KnowledgeBase kBase = KnowledgeBaseFactory.newKnowledgeBase();
KnowledgeBuilder kBuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kBuilder.add( ResourceFactory.newFileResource( "movie/Movie.drl" ),
ResourceType.DRL );
if( kBuilder.hasErrors() ){
for( KnowledgeBuilderError err: kBuilder.getErrors() ){
System.out.println( err.toString() );
}
throw new IllegalStateException( "DRL errors" );
}
kBase.addKnowledgePackages( kBuilder.getKnowledgePackages() );
File xml = new File( "database.xml" );
JAXBContext jc = JAXBContext.newInstance( Database.class );
Unmarshaller u = jc.createUnmarshaller();
InputStream inputStream = new FileInputStream( xml );
Database db = (Database)u.unmarshal( inputStream );
inputStream.close();
session = kBase.newStatefulKnowledgeSession();
for( Movie m: db.getMovie() ){
session.insert( m );
}
for( Actor a: db.getActor() ){
session.insert( a );
}
for( Role r: db.getRole() ){
session.insert( r );
}
session.fireAllRules();
}
public static void main( String[] args ) throws Exception {
Main rf = new Main();
rf.init();
}
}
TheEnd
cat <<'TheEnd' >movie/Role.java
package movie;
import javax.xml.bind.annotation.XmlAttribute;
public class Role implements Item {
private String actor;
private String movie;
public Role(){
}
@XmlAttribute
public String getActor() {
return actor;
}
public void setActor(String actor) {
this.actor = actor;
}
@XmlAttribute
public String getMovie() {
return movie;
}
public void setMovie(String movie) {
this.movie = movie;
}
@Override
public String toString(){
return actor + " plays in " + movie;
}
}
TheEnd
cat <<'TheEnd' >movie/Movie.java
package movie;
import java.util.HashSet;
import java.util.Set;
import javax.xml.bind.annotation.XmlAttribute;
public class Movie implements Item {
private String title;
private Set<Actor> cast;
public Movie(){
}
@XmlAttribute
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public Set<Actor> getCast(){
if( cast == null ) cast = new HashSet<Actor>();
return cast;
}
@Override
public int hashCode(){
return title.hashCode();
}
@Override
public boolean equals( Object o ){
if( ! (o instanceof Movie ) ) return false;
return this.title.equals( ((Movie)o).getTitle() );
}
@Override
public String toString(){
StringBuilder sb = new StringBuilder();
sb.append( title ).append( "\n" );
for( Actor a: getCast() ){
sb.append( " " ).append( a.getName() ).append( "\n" );
}
return sb.toString();
}
}
TheEnd
cat <<'TheEnd' >movie/Item.java
package movie;
/**
* Marker interface for WMEs
* @author Wolfgang Laun
*/
public interface Item {
}
TheEnd
cat <<'TheEnd' >movie/Database.java
package movie;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlRootElement
@XmlType(propOrder={"movie", "actor" , "role" })
public class Database {
private List<Movie> movie;
private List<Actor> actor;
private List<Role> role;
public Database(){
}
@XmlElement
public List<Movie> getMovie() {
if( movie == null ) movie = new ArrayList<Movie>();
return movie;
}
@XmlElement
public List<Actor> getActor() {
if( actor == null ) actor = new ArrayList<Actor>();
return actor;
}
@XmlElement
public List<Role> getRole() {
if( role == null ) role = new ArrayList<Role>();
return role;
}
}
TheEnd
cat <<'TheEnd' >movie/Actor.java
package movie;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAttribute;
public class Actor implements Item {
private String name;
private List<Movie> movies;
public Actor(){
}
@XmlAttribute
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List<Movie> getMovies(){
if( movies == null ) movies = new ArrayList<Movie>();
return movies;
}
@Override
public String toString(){
StringBuilder sb = new StringBuilder();
sb.append( name ).append( "\n" );
for( Movie m: getMovies() ){
sb.append( " " ).append( m.getTitle() ).append( "\n" );
}
return sb.toString();
}
@Override
public int hashCode(){
return name.hashCode();
}
@Override
public boolean equals( Object o ){
if( ! (o instanceof Actor ) ) return false;
return this.name.equals( ((Actor)o).getName() );
}
}
TheEnd
cat <<'TheEnd' >movie/Movie.drl
package movie;
/***
- List<?> as fact field type
- Set<?> as fact field type
- Match WMEs with elements from field with List<?> type: from
- inline eval() for determining membership in Collection()
- Write rules for a set of WME types using a "marker" interface.
*/
#
# Fill the Movies' cast lists with data from Role.
#
rule fillCast
salience 100
when
$r : Role( $actor : actor, $movie : movie )
$a : Actor( name == $actor )
$m : Movie( title == $movie )
then
modify( $m ){
getCast().add( $a );
}
retract( $r );
end
#
# Fill the Actors' list of movies with data from a Movie's cast list
#
rule fillMovies
salience 90
when
$m : Movie( $cast : cast )
$a : Actor() from $cast
then
System.out.println( "movie " + $m.getTitle() + " actor " + $a.getName() );
modify( $a ){
getMovies().add( $m );
}
end
#
# Find a movie where HB and LB are in together
#
rule findHBLB
when
$hb : Actor( name == "Humphrey Bogart" )
$lb : Actor( name == "Lauren Bacall" )
$m : Movie( $title : title, $cast : cast, eval( $cast.contains( $hb ) && $cast.contains( $lb ) ) )
then
System.out.println( "HB & LB together in " + $title );
end
#
# Display any WME
#
rule showItem
salience -100
when
$i : Item()
then
System.out.println( $i.toString() );
end
TheEnd
cat <<'TheEnd' >database.xml
<?xml version="1.0" encoding="UTF-8"?>
<database>
<movie title="Casablanca"/>
<movie title="Key Largo"/>
<movie title="To Have and Have Not"/>
<movie title="The African Queen"/>
<actor name="Humphrey Bogart"/>
<actor name="Katherine Hepburn"/>
<actor name="Ingrid Bergman"/>
<actor name="Lauren Bacall"/>
<role actor="Humphrey Bogart" movie="Casablanca"/>
<role actor="Ingrid Bergman" movie="Casablanca"/>
<role actor="Humphrey Bogart" movie="The African Queen"/>
<role actor="Humphrey Bogart" movie="Key Largo"/>
<role actor="Humphrey Bogart" movie="To Have and Have Not"/>
<role actor="Lauren Bacall" movie="To Have and Have Not"/>
<role actor="Lauren Bacall" movie="Key Largo"/>
<role actor="Katherine Hepburn" movie="The African Queen"/>
</database>
TheEnd
export CLASSPATH=.:/extra/Drools-5.0.1.SNAPSHOT/drools-core.jar:/extra/Drools-5.0.1.SNAPSHOT/drools-api.jar:/extra/Drools-5.0.1.SNAPSHOT/drools-compiler.jar:/extra/Drools-5.0.1.SNAPSHOT/drools-ant.jar:/extra/Drools-5.0.1.SNAPSHOT/antlr-runtime.jar:/usr/local/eclipse/plugins/org.eclipse.jdt.core_3.4.4.v_894_R34x.jar:/extra/Drools-5.0.0.CR1/bin/lib/mvel2-2.0.8pre1.jar
javac movie/*.java
java movie/Main
cat <<'TheEnd'
#
# This is what I get:
#
movie Casablanca actor Ingrid Bergman
Exception in thread "main" org.drools.runtime.rule.ConsequenceException: java.lang.NullPointerException
at org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:23)
at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:943)
at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:885)
at org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1086)
at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:682)
at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:649)
at org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:183)
at movie.Main.init(Main.java:65)
at movie.Main.main(Main.java:70)
Caused by: java.lang.NullPointerException
at org.drools.base.DefaultKnowledgeHelper.modifyRetract(DefaultKnowledgeHelper.java:190)
at movie.Rule_fillMovies_0.consequence(Rule_fillMovies_0.java:8)
at movie.Rule_fillMovies_0ConsequenceInvoker.evaluate(Rule_fillMovies_0ConsequenceInvoker.java:28)
at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:934)
... 7 more
TheEnd
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years